Git Product home page Git Product logo

motion-track's Issues

Variables not consistent in script/doc

there is some confusion because in config is
IMAGE_VIEW_FT = 72 # Set the width in feet for the road width that the camera width sees

But mostly it is described as
Readme.md:* Use formula below to calculate a value for IMG_VIEW_FT variable

Moving direction

Hi @pageauc,

you compared your script with this one https://github.com/gregtinkers/carspeed.py but does your script analyze the direction too? I tried yours but get strange results if the vehicle moves from LTR, RTL works good - another point is the distance from the vehicles from LTR, we would need a diffrent value for image view ft would differ 1 to 3 meters. Maybe the distance is too short? Got only 13,5 meter.

best regards
andreas

Speed2.py Updated to version 2.08

speed2.py at https://github.com/pageauc/motion-track/tree/master/speed-track-2 now crops the video stream image2 to a predefined motion area rectangle and sends smaller array to opencv for greyscale motion contour processing. This means only the smaller cropped image array needs to be searched for motion contours thus increasing processing speed. Also added and reorganized config.py variables allowing for better control of image fonts, opencv gui window font size Etc.

The opencv gui window display includes the cropped rectangle window. With video streaming, threading and cropping the speed is quite impressive considering the original code ran around 12-15 fps on a single core in SSH terminal mode. Now it runs at approx 87 fps on a RPI B with B+ quadcore running well over 200 fps and RPI3 with V2 camera reporting well over 300 fps. Code should be python3 as well as python2 compatible although I have not tested under python3 due to the need to compile opencv for python3. Have run this code under python2 for quite a while and it seems pretty stable as long as the video FPS is kept reasonable otherwise threading may fail. Increasing value too much can actually slow processing as well. The V2 camera module seems to accept higher values at the same video image size. If you run 2.08 under python3 please drop me a line to let me know if it runs OK or if there are issues.
Thanks Claude ...

Fonts missing in installation instructions

Thanks for all the work on this project. I just wanted to give it a try but first had to

apt-get install fonts-freefont-ttf

before the calibration images were saved. Otherwise, the program crashed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.