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

Can't get speed-cam and webserver to work from menubox.sh #111

Closed Kurisutian closed 2 years ago

Kurisutian commented 2 years ago

Hi there,

thanks for this awesome project. Got a lot speeding idiots here and this was just what I was looking for. ;-) However I did get the most recent Raspberry Pi OS (Bullseye) installed on an old RPi3 of mine and wanted to run the substream of my outdoor camera through it to not have a to large image to process on this old device. Unfortunately I could not get past the calibration at all since I could not run either one of the programs through the menubox. For the webserver I was able to manually run webserver3.py in the console since the webserver.sh script immediately crashed when started (with no error message whatsoever) and when running the speedcam part it starts but crashes shortly after (perhaps when the first object needs to be detected). So I could not get anything recorded to calibrate at all. Also I noticed an error message about vcgencmd not being in the /opt/ folder. This I was able to solve pointing the entry in the menubox.sh file to the new location at /usr/bin/vcgencmd

Nevertheless this did not help me at all to get the system calibrated and running which I would love and record as much as possible about the speeding situation here and make it public. So I'm kinda counting on this awesome tool to support this idea. ;-)

Thanks a lot and let me know if I can provide any more data that helps with the fixing.

Kurisutian commented 2 years ago

I checked again with the recent code. Still, the webserver cannot be started through the menu and the calibration cannot be done as speedcam seems to exit/crash as soon as there is an object passing by. Anything I might be missing when doing my best to do the calibration following the documentation in the wiki? Or might the rtsp stream cause this and it works with a directly connected webcam only?

pageauc commented 2 years ago

Are you using Debian Bullseye?

On Tue, Feb 15, 2022 at 5:12 AM Kurisutian @.***> wrote:

I checked again with the recent code. Still, the webserver cannot be started through the menu and the calibration cannot be done as speedcam seems to exit/crash as soon as there is an object passing by. Anything I might be missing when doing my best to do the calibration following the documentation in the wiki? Or might the rtsp stream cause this and it works with a directly connected webcam only?

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

Kurisutian commented 2 years ago

Yes, I do. I checked with both variants, 32bit and 64bit as Raspberry OS now supports both as their current version but it did not change anything.

pageauc commented 2 years ago

raspberry pi camera is not supported on Bulleye due to picamera python library that is still in development. I think there are work arounds. I have not done any testing. There may also be issues with my webserver as well.

At this time I advise you to install then raspberry pi OS (Legacy) Buster that will work correctly. When RPI foundation comes out with a rewrite of picamera python library I will test on Bulleye. Regards Claude ...

On Tue, Feb 15, 2022 at 8:16 AM Kurisutian @.***> wrote:

Yes, I do. I checked with both variants, 32bit and 64bit as Raspberry OS now supports both as their current version but it did not change anything.

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

Kurisutian commented 2 years ago

I'm not using a directly connected camera but a rtsp stream of an already existing camera in my network which I can point to the street. Nevertheless I'll reinstall with buster and see how far I can get with this. At the moment I don't mind an older OS as long as I can get it running. Thanks a lot for the recommendation and your reply.

One question out of curiosity: will the docker version of the setup also run on a Linux system like Open Media Vault since I intend to switch to this replacing my qnap nas. So consuming the compose file in portainer is possible but I don't give anything on running this on a Linux system inside docker.

Thanks a lot!

Best regards, Christian

Kurisutian commented 2 years ago

Setting everything up with buster seems to work (although I do not use the picam at all). Thanks a lot for that hint, now I can start calibrating and positioning the camera so it will detect all vehicles (the first test just seemed to detect the bigger vehicles like busses but ignored all cars).

Thank you very much! :smiley: