Event with Camera Snapshot slow

Moderator: leecollings

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

Event with Camera Snapshot slow

Post by Shyam »

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: 46
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event with Camera Snapshot slow

Post by Shyam »

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: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event with Camera Snapshot slow

Post by lost »

Shyam wrote: Wednesday 20 December 2017 10:17anyone?
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: 46
Joined: Sunday 11 May 2014 22:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event with Camera Snapshot slow

Post by Shyam »

lost wrote: Wednesday 20 December 2017 12:50
Shyam wrote: Wednesday 20 December 2017 10:17anyone?
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: No registered users and 0 guests