billw2 / pikrellcam

Raspberry Pi motion vector detection program with OSD web interface.
GNU General Public License v3.0
261 stars 70 forks source link

Method to adjust motion sensitvity (low-light false motion positives) #70

Open NbrTDB opened 3 years ago

NbrTDB commented 3 years ago

I've got essentially the same problem as #29 whereby as it starts to get dark, the noisy/grainy image starts to throw loads of false motion detections.

In that case the solution was to move the camera, but I don't have the luxury of doing so (it is positioned exactly where it has to be). In any case, the motion vectors happen randomly all over the monitored motion regions.

I've had a look, but there does not appear to be any means to adjust the motion sensitivity for pikrellcam? The closest I got was the motion_confirm_gap, but what I really want to do is reduce the sensitivity to motion in the first place.

In terms of sensitivity, I only need to detect large objects (people-sized) moving at a walking pace within about 8m of the camera, up to within 1m of the camera.

kajan001 commented 3 years ago

I have had similar problems at dusk. There are some good pointers in #29. in settings: Play around with number of vectors and vector counts helps a lot. Increase burst frames helps a bit too. I have found that lowering resolution and framerate reduces the amount of dancing pixels and noice.