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

Bump Dockerfile to 11.22 #108

Closed RandallKent closed 2 years ago

mlapaglia commented 2 years ago

this appears to have built an arm64 version of the code? can it also build amd64 so i can use it? https://hub.docker.com/r/randallkent/speed-camera/tags

RandallKent commented 2 years ago

@mlapaglia - Whoops! Recently got a M1 Mac and didn't think of it. Just rebuilt the image for multiple platforms.

pageauc commented 2 years ago

Randall

I finally upgraded my Texas PC to Windows 10 and was looking to test docker install for speed-camera. Noticed in the Dockerfile on github still showing Gnuplot instead of matplotlib so I updated the file and pushed to repo. I am guessing your intention is to just use python3 for docker. I agree with this. If that is the case then the webserver3.py should be used instead of webserver.py or webserver3.py copied over webserver.py. Also not sure if menubox.sh can be run from the docker. This is a whiptail menu system.

Also do you have an email address or way to communicate via speed camera repo other than using a previous issue to communicate. Thanks Claude ... Claude ...

RandallKent commented 2 years ago

Hey @pageauc -

When I initially got the Docker image up and running and when I bumped the version in the image on dockerhub, I did not do an incredibly deep analysis of speed camera's source nor any optimizations on the Docker image. There are likely several things that can/should be done to improve performance and ensure things are running as you expect them to.

For collaborating I'd love to do as much of it in public as possible so the rest of the speed camera community can jump in and help. To do this, I'd suggest creating GitHub Issues for each of the area's you'd like to dig into. For example:

  1. "Use matplotlib instead of Gnuplot in Docker Image"
  2. "Ensure Docker Image uses python3 consistently"
  3. "Evaluate necessity of whiptail menu system in Docker Image"

Each issue will provide a space for discussion. When code changes are necessary, Pull requests can be made. Some guidelines for Pull Requests inspired by Cypress' Contributing doc...

For more real-time communication, Discord seems to be a popular choice these days. I've created a Discord Server for Speed Camera which can be joined via https://discord.gg/dGPUWK8b

-Randall

pageauc commented 2 years ago

Thanks Randall

I guess I will get a docker image working so I can get some experience. matplotlib is already implemented and sql-make-graph-speed-ave.py and sql-make-graph-count-totals.py scripts can be used to generate graphs (per command line parameters or via config.py matplotlib section settings.. Graphs can be viewed in the webserver per config.py GRAPH_PATH variable..

I have added a rough wiki here https://github.com/pageauc/speed-camera/wiki/How-to-Generate-Speed-Camera-Graphs

Claude ...

On Tue, Jan 4, 2022 at 1:26 PM Randall Kent @.***> wrote:

Hey @pageauc https://github.com/pageauc -

When I initially got the Docker image up and running and when I bumped the version in the image on dockerhub, I did not do an incredibly deep analysis of speed camera's source nor any optimizations on the Docker image. There are likely several things that can/should be done to improve performance and ensure things are running as you expect them to.

For collaborating I'd love to do as much of it in public as possible so the rest of the speed camera community can jump in and help. To do this, I'd suggest creating GitHub Issues https://github.com/pageauc/speed-camera/issues/new/choose for each of the area's you'd like to dig into. For example:

  1. "Use matplotlib instead of Gnuplot in Docker Image"
  2. "Ensure Docker Image uses python3 consistently"
  3. "Evaluate necessity of whiptail menu system in Docker Image"

Each issue will provide a space for discussion. When code changes are necessary, Pull requests can be made. Some guidelines for Pull Requests inspired by Cypress' Contributing doc https://github.com/cypress-io/cypress/blob/develop/CONTRIBUTING.md#pull-requests ...

For more real-time communication, Discord seems to be a popular choice these days. I've created a Discord Server for Speed Camera which can be joined via https://discord.gg/dGPUWK8b

-Randall

— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/pull/108#issuecomment-1005106458, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZER3R6LZX4EWOLKB2DUUNCUZANCNFSM5LAQNRCQ . 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 were mentioned.Message ID: @.***>

-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc