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

Webcam issues (Windows setup) #130

Closed dbmunn closed 11 months ago

dbmunn commented 1 year ago

First off, this is an awesome project. Thank you for all the time you put into this. I'm going to set this up with a raspberry pi soon, but wanted to go ahead and test on Windows. After setting WEBCAM = True, calibrate = True, and align_cam_on = True in Config.py and running speed-cam.py, three different GUIs pop up but show no image. I've attached the align_cam image in media/recent and the log file. I think I got all the config parameters set right, and the log file doesn't say it had trouble connecting to the webcam. Any ideas? I'm testing with a Razer Kiyo Pro.

Thank for the help! align_cam speed-cam.log

pageauc commented 1 year ago

Looks like opencv processed and image since it has red box. The image size is very large and should be much smaller. I am thinking the laptop logo might be originating from the camera but not sure why. I would try to reduce image size to something like 640 x 480. Also just open up one opencv GUI window. Edit config.sys

gui_window_on = True # True= Turn On All desktop GUI openCV windows. False=Don't Show (req'd for SSH) . gui_show_camera = False # True=Show the camera on gui windows. False=Don't Show (useful for image_sign) show_thresh_on = False # Display desktop GUI openCV cropped threshold window. True=Show, False=Don't Show show_crop_on = True # Same as show_thresh_on but in color. True=Show, False=Don't Show (Default)

Also WEBCAM_WIDTH = 640 # Default= 320 USB Webcam Image width ignored for RTSP cam WEBCAM_HEIGHT = 480 # Default= 240 USB Webcam Image height ignored for RTSP cam

It might be possible webcam is not able to resize. Check what resolutions your camera supports and try to set size to smallest supported size initially to see if you get an image.

You can send me your config.py so I can see other settings.

On Wed, Mar 1, 2023 at 11:30 PM dbmunn @.***> wrote:

First off, this is an awesome project. Thank you for all the time you put into this. I'm going to set this up with a raspberry pi soon, but wanted to go ahead and test on Windows. After setting WEBCAM = True, calibrate = True, and align_cam_on = True in Config.py and running speed-cam.py, three different GUIs pop up but show no image. I've attached the align_cam image in media/recent and the log file. I think I got all the config parameters set right, and the log file doesn't say it had trouble connecting to the webcam. Any ideas? I'm testing with a Razer Kiyo Pro.

Thank for the help! [image: align_cam] https://user-images.githubusercontent.com/34289558/222338384-b34a02af-200a-439f-aba2-f5c0d1a77e20.jpg speed-cam.log https://github.com/pageauc/speed-camera/files/10867885/speed-cam.log

— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/130, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZHDEM45XASKC4QX5X3W2AV6HANCNFSM6AAAAAAVM5LBWA . 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