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
489 stars 102 forks source link

Basic ipcamera config fails: out of range error thrown #197

Open ghost opened 5 years ago

ghost commented 5 years ago

Failure when trying to configure a simple IP Camera change So I started to set this up on a virtual machine and did some minor changes in order to test an IP camera.

capture.config

<?xml version="1.0"?>
<captures>
    <IPCamera>
        <url type="text">http://IP:PORT/video.cgi</url>
        <frameWidth type="number">640</frameWidth>
        <frameHeight type="number">480</frameHeight>
        <delay type="number">500</delay>
        <angle type="number">0</angle>
    </IPCamera>
</captures>

I changed the capture file value in config.xml to IPCamera

<capture file="capture.xml">IPCamera</capture>

When executing kerberosio, I get the following failure:

30/06/2019 22:44:30.354 INFO  [trivial] Logging is set to info
30/06/2019 22:44:30.354 INFO  [trivial] Capture: Start capture device: IPCamera
30/06/2019 22:44:30.354 INFO  [trivial] Capture: Trying to open IP camera.
30/06/2019 22:44:30.354 INFO  [trivial] Capture: (Warning) You can change the capture device with the configuration files.
30/06/2019 22:44:30.854 INFO  [trivial] Capture: Succesfully opened IP camera.
30/06/2019 22:44:35.856 INFO  [trivial] Capture: Start streaming thread
30/06/2019 22:44:35.856 INFO  [trivial] Stream: Configured stream on port 8889 with quality: 75
30/06/2019 22:44:35.856 INFO  [trivial] Starting cloud service: S3
terminate called after throwing an instance of 'std::out_of_range'

The host is a x86_64 Ubuntu 16.04.6 LTS

cedricve commented 4 years ago

strange, looks like an element is missing from the config files.