Breakthrough / DVR-Scan

:vhs: Tool for extracting scenes with motion from videos (e.g. security camera or DVR footage). Written in Python, uses OpenCV.
http://www.dvr-scan.com/
Other
371 stars 49 forks source link

Please return exit code to indicate whether events were detected #128

Closed reubenfirmin closed 1 year ago

reubenfirmin commented 1 year ago

Description of Problem & Solution

Please use exit codes to indicate whether or not events were detected. I would like to automate passing different parameters into dvr_scan to calibrate against sample videos, but I have nothing to test against.

Perhaps (bash friendly):

0 for event 1 for no event

Breakthrough commented 1 year ago

This was brought up in #96 previously. You probably want to use string searching from the output to determine this info, not the exit code itself. If you are so inclined, you could write a wrapper script/program for this purpose as well. Thanks.