Event with Camera Snapshot slow

Post Reply
Shyam
Posts: 121
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Event with Camera Snapshot slow

Post by Shyam » Monday 18 December 2017 11:45

Hello,

I've set up an event so that when the door bell is pressed, the chime is sounded, a pushover notification is sent and a snapshot from the camera is emailed. The issue I have is when I added the snapshot send part, it slowed the event right down. It now takes around 20-30seconds, therefore the chime sound is delayed.

Is there a way to make this more efficient? maybe with lua?
Raspberry Pi B+
Rfxcomm rfxtrx433
LigthwaveRF
Byron Door Bell
Accenta Gen4 Security System Integration
HomeEasy PIR
Nest Thermostat
Geofencing
Pushover
Blog: http://www.shyambhundia.com

Shyam
Posts: 121
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Event with Camera Snapshot slow

Post by Shyam » Wednesday 20 December 2017 11:17

anyone?
Raspberry Pi B+
Rfxcomm rfxtrx433
LigthwaveRF
Byron Door Bell
Accenta Gen4 Security System Integration
HomeEasy PIR
Nest Thermostat
Geofencing
Pushover
Blog: http://www.shyambhundia.com

lost
Posts: 191
Joined: Thursday 10 November 2016 10:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Event with Camera Snapshot slow

Post by lost » Wednesday 20 December 2017 13:50

Shyam wrote:
Wednesday 20 December 2017 11:17
anyone?
Maybe changing your logic to have time consuming stuff (the snapshot) done at the end (after ringing the bell)?
Don't think going with Lua will change anything if snapshot takes time. Or find a way to make snapshot a background operation.

Anyway, with so much delay & only 1 snapshot, you'll most probably miss your ringer.

IMO, you should rely on your camera internal capture (able to trigger on movement & send several photos/ short video) to send captures to a FTP (usually, cams include this feature) on the machine hosting Domoticz. When the ring is activated, retrieve the last files (a few seconds before ring) that have been captured : You have better chance to be able to identify anyone (i.e. at least 1 photo centered/face in frond of cam...) doing this way.

Shyam
Posts: 121
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Event with Camera Snapshot slow

Post by Shyam » Wednesday 20 December 2017 17:40

lost wrote:
Wednesday 20 December 2017 13:50
Shyam wrote:
Wednesday 20 December 2017 11:17
anyone?
Maybe changing your logic to have time consuming stuff (the snapshot) done at the end (after ringing the bell)?
Don't think going with Lua will change anything if snapshot takes time. Or find a way to make snapshot a background operation.

Anyway, with so much delay & only 1 snapshot, you'll most probably miss your ringer.

IMO, you should rely on your camera internal capture (able to trigger on movement & send several photos/ short video) to send captures to a FTP (usually, cams include this feature) on the machine hosting Domoticz. When the ring is activated, retrieve the last files (a few seconds before ring) that have been captured : You have better chance to be able to identify anyone (i.e. at least 1 photo centered/face in frond of cam...) doing this way.
Thanks for that, Thats a good solution, I'll try it out!
Raspberry Pi B+
Rfxcomm rfxtrx433
LigthwaveRF
Byron Door Bell
Accenta Gen4 Security System Integration
HomeEasy PIR
Nest Thermostat
Geofencing
Pushover
Blog: http://www.shyambhundia.com

Post Reply

Who is online

Users browsing this forum: HenMus and 4 guests