pageauc / speed-camera

A Unix, Windows, Raspberry Pi Object Speed Camera using python, opencv, video streaming, motion tracking. Includes a Standalone Web Server Interface, Image Search using opencv template match and a whiptail Admin Menu Interface Includes picam and webcam Plugins for motion track security camera configuration including rclone sync script. watch-app allows remotely controller camera configuration from a remote storage service name. Uses sqlite3 and gnuplot for reporting. Recently added openalpr license plate reader support.
Apache License 2.0
960 stars 169 forks source link

Bigger resolution - `picam720` plugin - `speed_camera Out - 0/6` messages #166

Open SamDecrock opened 5 months ago

SamDecrock commented 5 months ago

Hi,

I'm trying out the picam720 plugin for a bigger resolution (Pi4, Bullseye 32bit, Pi Global Shutter Camera, 60fps), however, no cars get detected, I'm seeing this:

----------------------------------------------------------------------
2024-03-22 21:40:17 INFO     speed_camera New  - 0/6 xy(752,383) Start New Track
2024-03-22 21:40:17 INFO     speed_camera  Out - 0/6 xy(221,221) Max D=531>=30px C=30 580x239=138620 sqpx R2L
2024-03-22 21:40:17 INFO     speed_camera  Out - 0/6 xy(431,230) Max D=210>=30px C=31 564x229=129156 sqpx R2L
2024-03-22 21:40:17 INFO     speed_camera  Out - 0/6 xy(571,233) Max D=140>=30px C=31 550x222=122100 sqpx R2L
2024-03-22 21:40:17 INFO     speed_camera  Out - 0/6 xy(329,576) Max D=242>=30px C=27 119x22=2618 sqpx R2L
2024-03-22 21:40:17 INFO     speed_camera  Out - 0/6 xy(194,221) Max D=135>=30px C=45 464x324=150336 sqpx R2L
2024-03-22 21:40:17 INFO     speed_camera  Out - 0/6 xy(370,224) Max D=176>=30px C=32 452x331=149612 sqpx R2L
2024-03-22 21:40:18 INFO     speed_camera  Out - 0/6 xy(547,236) Max D=177>=30px C=25 448x326=146048 sqpx R2L
2024-03-22 21:40:18 INFO     speed_camera  Out - 0/6 xy(714,460) Max D=167>=30px C=27 192x102=19584 sqpx R2L
2024-03-22 21:40:18 INFO     speed_camera  Out - 0/6 xy(892,464) Max D=178>=30px C=35 186x91=16926 sqpx L2R
2024-03-22 21:40:18 INFO     speed_camera  Out - 0/6 xy(1058,467) Max D=166>=30px C=35 63x77=4851 sqpx L2R
2024-03-22 21:40:18 INFO     speed_camera Reset- event_timer 0.42>0.30 sec Exceeded
----------------------------------------------------------------------

What does it mean and what do I need to tweak?

Thanks!

SamDecrock commented 5 months ago

If I understand it correctly, the location of the detected box moved further away than 30 px, thus registering the event as Out, correct?

Zooming out solved it. I guess increasing the MO_MAX_X_DIFF_PX would also have helped?