Configuration question/issues
Hello!
I would like to ask if it is possible to do a separate motion detection and if motion is detected then run the object detector if it finds an object on it then save the recording?
But I would like it so that if it finds any object, I don't necessarily want to specify all acceptable objects, because anything can happen.
And could you please help me with this that I turned on "draw_motion" but it doesn't do anything. I set it as in the example config.
Thanks in advance!
My config:
ffmpeg:
camera:
camera_1:
name: vigi_kamera_1
host: !secret camera1_ip
port: 554
path: !secret camera1_path1
username: !secret camera1_user
password: !secret camera1_pswd
fps: 25
width: 2304
height: 1296
stream_format: rtsp
mjpeg_streams:
my_stream:
width: 704
height: 576
draw_objects: true
objects:
draw_objects: true
draw_zones: true
draw_motion: true
draw_motion_mask: true
draw_object_mask: true
substream:
path: !secret camera1_path2
port: 554
stream_format: rtsp
fps: 15
width: 704
height: 576
recorder:
lookback: 15 #esemény elött
idle_timeout: 15 #esemény utan
retain: 30 #meddig tarol nap
mog2:
motion_detector:
cameras:
camera_1:
recorder_keepalive: true
#threshold: 8
fps: 10
#area: 0.009
#history: 200
#detect_shadows: true
trigger_recorder: true
width: 704
height: 576
nvr:
camera_1:
The default behaviour if you configure both motion and object detection is that object detection only runs while there is active motion. It is controlled by the scan_on_motion_only config option.
Currently you cant search for all labels, you need to specify the ones of interest. Will add that to the to-do list!
Motion not being drawn could be a bug, looking into it
Thanks! I'll try it and if it doesn't work I'll get back to you. Can I at least list it in the label? e.g.: label: cat, dog, person ....?
Just did some testing with draw_motion and it works fine on my cameras.
Could you tell me a bit more what it is you are trying?
Can I at least list it in the label? e.g.: label: cat, dog, person ....?
Sadly no, you need separate entries for each label:
labels:
- label: person
confidence: 0.7
trigger_event_recording: true
- label: car
confidence: 0.6
trigger_event_recording: true
- label: vehicle
confidence: 0.6
trigger_event_recording: true
Thank you very much!
I tried what I saw on the page: (the code block after the text). And neither in the live view or in the saved recordings anything is visible. By the way, should the viseron save the things it draws? What should I see anyway? Some red rectangle around the movement?
mjpeg_streams:
my_stream:
width: 704
height: 576
draw_objects: true
objects:
draw_objects: true
draw_zones: true
draw_motion: true
draw_motion_mask: true
draw_object_mask: true
This is in the documentation:
The config example above would give you two streams, available at these endpoints:
http://localhost:8888/front_door/mjpeg-streams/my-big-front-door-stream
http://localhost:8888/front_door/mjpeg-streams/my-small-front-door-stream
So it looks like you should not expect to see streams in the UI but in a stream specific url.
This worked for me:
ffmpeg:
camera:
camera_1:
[snip some config]
mjpeg_streams:
objects:
draw_objects: true
draw_zones: true
draw_motion: true
draw_motion_mask: true
draw_object_mask: true
I then pointed a browser to `http://myhost.prv:8888/camera_1/mjpeg-streams/objects and see the what is configured. For example, the motion mask.
@roflcoopter I do not see how to submit pull requests for the documentation. Let me know and something like this might be good on the FFmpeg and GStreamer component pages:
mjpeg_streams map (optional) MJPEG streams config. See static streams for usage.
Yeah I know it is on the same as the config example/detail...but there are at least 2 of us that missed it :)
The component docs are located here: docs/src/pages/components-explorer/components
There are some docs for the docs (hehe) here: https://viseron.netlify.app/docs/developers/documentation
I am not sure i understand what you are proposing to add, but please feel free to open a PR and i will gladly accept it if it adds value!