kerberos-io / machinery

(DEPRECATED) An open source image processing framework, which uses your USB-, IP- or RPi-camera to recognize events (e.g. motion).
https://www.kerberos.io
490 stars 104 forks source link

Lowering resolution when hull coord set, breaks streaming #98

Open gvelim opened 6 years ago

gvelim commented 6 years ago

Hi,

Was running fine on 1024x576 with hull cordinates set accordingly. When changes the camera to a lower resolution I lost streaming.

After a while I figured out the Hull coordinates were failing ....

10/09/2017 21:13:30.249 INFO [trivial] Logging is set to info 10/09/2017 21:13:30.252 INFO [trivial] Starting capture device: USBCamera 10/09/2017 21:13:35.417 INFO [trivial] Stream: Configured stream on port 8889 with quality: 75 10/09/2017 21:13:35.419 INFO [trivial] Starting cloud service: S3 10/09/2017 21:13:35.462 INFO [trivial] Starting conditions: Enabled 10/09/2017 21:13:35.465 INFO [trivial] Starting algorithm: DifferentialCollins 10/09/2017 21:13:35.472 INFO [trivial] Starting expositor: Hull OpenCV Error: Assertion failed (total >= 0 && (depth == CV_32S || depth == CV_32F)) in pointPolygonTest, file /home/cedricverst/kios/output/raspberrypi/build/kerberosio-machinery-develop/opencv/modules/imgproc/src/geometry.cpp, line 103 terminate called after throwing an instance of 'cv::Exception' what(): /home/cedricverst/kios/output/raspberrypi/build/kerberosio-machinery-develop/opencv/modules/imgproc/src/geometry.cpp:103: error: (-215) total >= 0 && (depth == CV_32S || depth == CV_32F) in function pointPolygonTest

/etc/init.d/S85machinery: line 24: 31646 Aborted kerberosio --config $conf Starting kerberos.io machinery

cedricve commented 6 years ago

Hi @gvelim,

Not sure what's happing, but might be that the new resolution isn't supported. Which resolution are you trying?

Cédric