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

Updated has errors #140

Closed victor7376 closed 1 year ago

victor7376 commented 1 year ago

Hey m8,

I’ve just updated to the latest version, the new one isn’t downloading the strmcam.py module so had to download that manually.

plus the speed-cam.py has two errors from line 414 with too many “ in it.

pageauc commented 1 year ago

A few implementation issues. strmcam.py was not getting installed on upgrade. Also fixed comments on make_media_dirs() Github repo has been updated. Sorry for the problems. Did not expect anyone to access so quickly. Let me know if you find any other issues. Thanks Claude ...

On Mon, Sep 18, 2023 at 7:26 PM victor7376 @.***> wrote:

Hey m8,

I’ve just updated to the latest version, the new one isn’t downloading the strmcam.py module so had to download that manually.

plus the speed-cam.py has two errors from line 414 with too many “ in it.

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

victor7376 commented 1 year ago

As soon as I fixed the errors manually, it’s all working. Cheers.

I just happened to see there was an update so downloaded it just now lol.

pageauc commented 1 year ago

I have tested end to end with several RPI's. Worked fine but let me know if you find any bugs. This was a pretty big change renaming constants and some functions. Also the strmcam changes. I still think strmpilibcam can be faster. Thanks Regards Claude

On Mon, Sep 18, 2023 at 7:45 PM victor7376 @.***> wrote:

As soon as I fixed the errors manually, it’s all working. Cheers.

I just happened to see there was an update so downloaded it just now lol.

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

victor7376 commented 1 year ago

No problem, will do. I keep changing between the rtsp camera feed & the picamera I got from amazon due to when the sun shines on the window the program doesn’t always save the detections even though the log is showing the detection of the vehicles & the speeds. Only real issue I had yesterday was a white line within the text on the images. But will be doing more testing tomorrow.

victor7376 commented 1 year ago

Found another bug lol

when you start the webserver, it says the IP but then it’s missing the port number at the end.

kummerr commented 1 year ago

After updating to the latest version the web server won’t even start.On Sep 19, 2023, at 6:44 AM, victor7376 @.***> wrote: Found another bug lol when you start the webserver, it says the IP but then it’s missing the port number at the end.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

victor7376 commented 1 year ago

After updating to the latest version the web server won’t even start.On Sep 19, 2023, at 6:44 AM, victor7376 @.> wrote: Found another bug lol when you start the webserver, it says the IP but then it’s missing the port number at the end. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

I have downloaded on another raspberry this morning and it works just fine except for the port number bug I found.

kummerr commented 1 year ago

So I backed up my config.py file and deleted everything and reinstalled the application using the curl command and was able to get the web server to start. However, when I go into settings to reconfigure everything the camera section is not there. Did it get moved or am I missing something?On Sep 19, 2023, at 8:15 AM, victor7376 @.***> wrote:

After updating to the latest version the web server won’t even start.On Sep 19, 2023, at 6:44 AM, victor7376 @.> wrote: Found another bug lol when you start the webserver, it says the IP but then it’s missing the port number at the end. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

I have downloaded on another raspberry this morning and it works just fine except for the port number bug I found.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

victor7376 commented 1 year ago

So I backed up my config.py file and deleted everything and reinstalled the application using the curl command and was able to get the web server to start. However, when I go into settings to reconfigure everything the camera section is not there. Did it get moved or am I missing something?On Sep 19, 2023, at 8:15 AM, victor7376 @.> wrote: After updating to the latest version the web server won’t even start.On Sep 19, 2023, at 6:44 AM, victor7376 @.> wrote: Found another bug lol when you start the webserver, it says the IP but then it’s missing the port number at the end. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> I have downloaded on another raspberry this morning and it works just fine except for the port number bug I found. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

It’s got moved to configcam.py

kummerr commented 1 year ago

Got it, thank you!On Sep 19, 2023, at 9:56 AM, victor7376 @.***> wrote:

So I backed up my config.py file and deleted everything and reinstalled the application using the curl command and was able to get the web server to start. However, when I go into settings to reconfigure everything the camera section is not there. Did it get moved or am I missing something?On Sep 19, 2023, at 8:15 AM, victor7376 @.> wrote: After updating to the latest version the web server won’t even start.On Sep 19, 2023, at 6:44 AM, victor7376 @.> wrote: Found another bug lol when you start the webserver, it says the IP but then it’s missing the port number at the end. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> I have downloaded on another raspberry this morning and it works just fine except for the port number bug I found. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

It’s got moved to configcam.py

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

pageauc commented 1 year ago

Just ran webserver.py (latest github ver) I do not see any problems. see webserver.py output below. Running on bullseye rpi4 with latest update and upgrade.

Importing Configuration Variables from File /home/pi/speed-camera/config.py
----------------------------------------------------------------
webserver.py ver 13.00 written by Claude Pageau modified by Alexandre Strube for python3 compatibility
---------------------------- Settings --------------------------
Server  - WEB_PAGE_TITLE   = SPEED-CAMERA Media
          WEB_SERVER_ROOT  = /home/pi/speed-camera/media
          WEB_SERVER_PORT  = 8080
Content - WEB_IMAGE_HEIGHT = 768 px (height of content)
          WEB_IFRAME_WIDTH = 100%  WEB_IFRAME_HEIGHT = 100%
          WEB_IFRAME_WIDTH_PERCENT = 70% (of avail screen)
          WEB_PAGE_REFRESH_SEC = 900  (default=180 sec)
          WEB_PAGE_BLANK_ON = False ( True=blank left pane until item selected)
Listing - WEB_MAX_LIST_ENTRIES = 0 ( 0=all )
          WEB_LIST_BY_DATETIME_ON = True  sort_decending = True
----------------------------------------------------------------
From a computer on the same LAN. Use a Web Browser to access this server at
Type the URL below into the browser url bar then hit enter key.

                 http://192.168.1.120:8080
                 http://192.168.1.141:8080

IMPORTANT: If You Get - socket.error: [Errno 98] Address already in use
           Check for Another app using port or Wait a minute for webserver to timeout and Retry.
              ctrl-c to exit this webserver script
----------------------------------------------------------------

This ver running on rpi 3 bullseye

Importing Configuration Variables from File /home/pi/speed-camera/config.py
----------------------------------------------------------------
webserver.py ver 13.00 written by Claude Pageau modified by Alexandre Strube for python3 compatibility
---------------------------- Settings --------------------------
Server  - WEB_PAGE_TITLE   = SPEED-CAMERA Media
          WEB_SERVER_ROOT  = /home/pi/speed-camera/media
          WEB_SERVER_PORT  = 8080
Content - WEB_IMAGE_HEIGHT = 768 px (height of content)
          WEB_IFRAME_WIDTH = 100%  WEB_IFRAME_HEIGHT = 100%
          WEB_IFRAME_WIDTH_PERCENT = 70% (of avail screen)
          WEB_PAGE_REFRESH_SEC = 900  (default=180 sec)
          WEB_PAGE_BLANK_ON = False ( True=blank left pane until item selected)
Listing - WEB_MAX_LIST_ENTRIES = 0 ( 0=all )
          WEB_LIST_BY_DATETIME_ON = True  sort_decending = True
----------------------------------------------------------------
From a computer on the same LAN. Use a Web Browser to access this server at
Type the URL below into the browser url bar then hit enter key.

                 http://192.168.1.164:8080

IMPORTANT: If You Get - socket.error: [Errno 98] Address already in use
           Check for Another app using port or Wait a minute for webserver to timeout and Retry.
              ctrl-c to exit this webserver script
----------------------------------------------------------------

Let me know what ver rpi and OS ver. Note ver 13.00 and greater have a new config.py and configcam.py with all renamed variables. New versions should be in config.py.new. See github Readme.md re speed camera upgrade. Please investigate and let know if your problem persists.

Claude .....

pageauc commented 1 year ago

I have added comment in the config.py regarding camera settings now being stored in configcam.py

victor7376 commented 1 year ago

It’s when you launch the webserver from the menu box that there’s no port number.

pageauc commented 1 year ago

OK that makes sense. Will update menubox.sh.

On Tue, Sep 19, 2023 at 6:17 PM victor7376 @.***> wrote:

It’s when you launch the webserver from the menu box that there’s no port number.

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

pageauc commented 1 year ago

menubox.sh web port display fixed. New update on github. Tested and works now.