Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture being triggered by small objects and missing all vehicles. #162

Open
a113speederbot opened this issue Mar 2, 2024 · 1 comment

Comments

@a113speederbot
Copy link

a113speederbot commented Mar 2, 2024

Hello,

I changed the resolution of the camera to 720 using the plugin and resized the motion box in the picam720.py file. Since then, the camera seems only to be triggered by moving branches on trees, pedestrians, or if we pull one of our cars off the drive (very close to the camera). What have I missed, please?

Thank you.

EDIT: I wonder, since I have increased image resolution, should I increase MO_MIN_AREA_PX = 200, to exclude smaller objects but that still doesn't explain why all the vehicles are being missed.

@SamDecrock
Copy link

SamDecrock commented Mar 23, 2024

I also have set my camera to 720p, here are my tweaks:

MO_TRACK_EVENT_COUNT = 7
MO_MIN_AREA_PX = 9000 
MO_MAX_X_DIFF_PX = 250
MO_MIN_X_DIFF_PX = 5  
IM_BIGGER = 1  

Increased the framerate to 60 here in the library for my camera (not sure if that helped, but I have a 60 fps global shutter Pi camera).

So yes, definitely increase MO_MIN_AREA_PX as you now have more pixels for the same area.

Also make sure your cropping area is bigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants