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

No Window to view camera #149

Closed victor7376 closed 9 months ago

victor7376 commented 9 months ago

Basically I installed on another raspberry to test the new changes and for some reason the camera view won’t open. I’ve copied the settings over from the old version to the new one and got no camera view.

So I upgraded the old version to the latest on the working raspberry and still no camera window.

The settings I have are the following GUI window on = true GUI image win on = true

I have also tried thresh & crop to true but still no window of the camera even though the log says it’s opened up a window.

victor7376 commented 9 months ago

Btw… the program is still seeing the vehicles going past and recording the images and speeds. I just don’t get a window with the live feed is what I mean.

johncblacker commented 9 months ago

I'm running into the same problem...none of the GUI display setting seem to make a difference, no GUI windows yet images are being captured and I can view with webserver app...researching.

johncblacker commented 9 months ago

OK, found the problem here: In module speed-cam.py, lines 1900-1956 must be indented otherwise they are outside the "while scanning..." loop and won't be executed to display the windows. Tested and verified.

victor7376 commented 9 months ago

OK, found the problem here: In module speed-cam.py, lines 1900-1956 must be indented otherwise they are outside the "while scanning..." loop and won't be executed to display the windows. Tested and verified.

can you post the file please?

victor7376 commented 9 months ago

Never mind I've fixed it, for anyone else between lines 1900 & 1954 add 4 spaces to each line then save & run the program

pageauc commented 9 months ago

My mistake. Github updated with fix https://github.com/pageauc/speed-camera Claude

On Thu, Nov 2, 2023 at 3:29 PM victor7376 @.***> wrote:

Never mind I've fixed it, for anyone else between lines 1900 & 1954 add 4 spaces to each line then save & run the program

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