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
987 stars 173 forks source link

getting debug to trigger without motion #107

Closed mlapaglia closed 2 years ago

mlapaglia commented 2 years ago

is there a way to trigger a screenshot to happen while in debug mode? cars don't drive by my house very often, trying to resize the x,y coordinates for the motion detection is troublesome because of this. A button to grab an image, overlay the red boxes, and show the user what the coordinates would look like would be useful.

pageauc commented 2 years ago

Matt

In config.py there are two variables right after calibrate. Just set align_cam_on to True and specify the number of seconds you want between camera shots. These will be in the same folder as the calibration images.. Should be in the media folder

calibrate = True         # Create a calibration image file with calibration
align_cam_on = False     # Default=False  True Saves alignment image to help with camera pointing.
align_delay_sec = 5      # Default=5 seconds delay between each alignment image

Let me know if this solves your problem.

Regards Claude ...

On Tue, Dec 28, 2021 at 10:52 AM Matt LaPaglia @.***> wrote:

is there a way to trigger a screenshot to happen while in debug mode? cars don't drive by my house very often, trying to resize the x,y coordinates for the motion detection is troublesome because of this. A button to grab an image, overlay the red boxes, and show the user what the coordinates would look like would be useful.

— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZHA4CFAKHIZTFE3Y5LUTHTLVANCNFSM5K4OMOIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc

mlapaglia commented 2 years ago

do you mean config.py ? I can't find a config.sys When I look in config.py I see calibrate = True but not align_cam_on. when i add it manually it doesn't appear to do anything.

pageauc commented 2 years ago

my typo yes config.py

I would upgrade to the latest version of speed-camera. If you are running on a RPI. then run the menubox.sh and select the UPGRADE menu option. After upgrade you will need to copy the latest config.py.new to config.py per instructions. If you are using a docker image on a non RPI then speed camera version may be out of date. Someone else set up the docker image and I don't maintain it.

Claude ...

On Thu, Dec 30, 2021 at 9:51 AM Matt LaPaglia @.***> wrote:

do you mean config.py ? I can't find a config.sys When I look in config.py I see calibrate = True but not align_cam_on. when i add it manually it doesn't appear to do anything.

— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/107#issuecomment-1003085252, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZCZCI5R2NOWIQSJH33UTR5ZPANCNFSM5K4OMOIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc

mlapaglia commented 2 years ago

ya i'm running the docker image :(

pageauc commented 2 years ago

The docker image has been updated and I have updated the Readme to include additional Docker Quick Start details https://github.com/pageauc/speed-camera#docker-install-quick-start Randall has upgraded the docker image so you should be able to run docker build command per Readme

Let me know if this is working for you. Claude.

On Fri, Dec 31, 2021 at 8:36 AM Matt LaPaglia @.***> wrote:

ya i'm running the docker image :(

— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/107#issuecomment-1003391056, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZH745DWDI7TEHBI6ODUTW5XFANCNFSM5K4OMOIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc

mlapaglia commented 2 years ago

yep it started working for me after the image got updated, ty!

pageauc commented 2 years ago

Have a Safe, Happy and Prosperous new year and beyond. Let me know your progress.
Regards Claude ...