Comments (1)
Code should be compatible with opencv3. Let me know if you have an issue. You can reduce stream image size and it should increase fps but everything is a compromise. It still takes time to do the opencv processing so there is a limit to the fps since it will not be dependent on the camera as you are finding out. Speed camera crops the speed rectangle area and uses that to process for motion tracking. You might try reducing the size using config.py variables
# Crop Area for motion detection Tracking
# ---------------------------------------
x_left = 25 # Exclude event if x less than this px position Default=25
x_right = 295 # Exclude event if x greater than this px position Default=295
y_upper = 75 # Exclude event if y less that this value default=100
y_lower = 185 # Exclude event if y greater than this value default=175
These are for 240p image resolution see the config.py.720 if you are using 720p image resolution.
You will need to make sure the motion track area is contained in this rectangle. Should reduce some opencv processing time and speed up fps a little.
Motion Tracking is somewhat dependent on the speed of the objects being tracked. Faster speeds require faster fps but will still work as long as track length stays inside monitoring rectangle.
Regards Claude ...
from speed-camera.
Related Issues (20)
- No Window to view camera HOT 6
- Windows not displaying on host machine HOT 1
- Clarification on calibration HOT 4
- Frames dropped due to contour out of bounds? HOT 2
- Docker Install always 11.22 HOT 1
- Calibration with different Screen Ratio and Framerate HOT 1
- No detections or speed calcs HOT 2
- No images
- How do I manually trigger the camera? HOT 4
- Can I reposition calibration marks? HOT 1
- Capture being triggered by small objects and missing all vehicles. HOT 1
- Warnings in startup log: "Unsupported V4L2 pixel format" HOT 1
- Vehicles at higher speeds being missed. HOT 4
- search-speed / Not compatible with the major rewrite? HOT 2
- Bigger resolution - `picam720` plugin - `speed_camera Out - 0/6` messages HOT 1
- Vehicles detected twice: Ideal `MO_TRACK_EVENT_COUNT`
- `MO_MIN_AREA_PX` is not the area of the rectangle
- Capture video HOT 2
- RPI 5, Bookworm - speed_cam.py process starts, then stops HOT 1
- Over reading speed on large vehicles HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speed-camera.