speed-camera icon indicating copy to clipboard operation
speed-camera copied to clipboard

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

Open SamDecrock opened this issue 1 year ago • 1 comments

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 avatar Mar 22 '24 20:03 SamDecrock

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?

SamDecrock avatar Mar 23 '24 12:03 SamDecrock