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
983 stars 172 forks source link

Hash Marks Off Center #27

Closed BigDuke6nc closed 6 years ago

BigDuke6nc commented 6 years ago

The hash marks are off-center from the calibration image. Do you know how I can adjust those so it would be easier to capture my image? They appear fine when using the pi camera but when using a USB webcam they are misaligned. I had a rather difficult time fine tuning the calibration of the pi camera and difficulty mounting the pi in the window so I went with USB camera instead. See image link for hash mark example. https://imgur.com/a/rRLUbFY

pageauc commented 6 years ago

OK Thanks. I have never calibrated with webcam since speed camera originally was written for the picamera only. I will fix the problem and maybe add a setting in the calibration function to set the color of the hash lines to allow better contrast if required. I am currently working on an option to put the speed data into a mysql database. Thanks for your feedback. Claude ..

pageauc commented 6 years ago

It was a pretty minor change since I already had an image_width variable and made some minor changes to the calibration function. I tested with one of my web cams. It is running on an old wheezy single core RPI with 500 MB Ram memory. I ran it on 320x240 and it worked OK. If you are having issues with response not being good enough then start at 320x240 res and work your way up. The larger the opencv camera image the more processing has to be done.

You can upgrade using the menubox.sh UPGRADE menu pick.

Let me know results of your testing. Regards Claude .

BigDuke6nc commented 6 years ago

Hash mark issue has been fixed with this version. Thanks for the quick response.