Comments (8)
What OS are you running on. saveRecent executes an shutil copy if creation of a symlink fails. I don't see a message about Unix symlink failing. It might be that there is an existing file in the recent rather than a symlink. You may want to try clearing all files from the recent folder since there may be a combination of symlinks and files. Do ls -l to check folder. Al directory entries should be symlinks on a unix system and only files on a non unix system. Then restart. You did not mention what version of speed-cam.py you are running. The latest should be version 8.86
BTW I have been running this code continuously on a RPI B single core for over three weeks.
Please keep me updated on your findings.
Claude ...
from speed-camera.
BTW. Also check on permissions. When the max entries for recent is reached the oldest symlink/file gets deleted ready for the creation of the new one. Anyway see if all permissions are OK and files have writeable permissions.
Just a thought. Claude ...
from speed-camera.
Thank you for the quick reply.
Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch
I am running the master checkout from yesterday.
I will remove all the files in recent. Will report back if this seems to solve the issue.
Next to this I am using a modified version of webcam480 plugin, this is the config for this
# ---------------- User Configuration Settings for speed-cam.py ---------------------------------
# Ver 8.4 speed-cam.py webcam480 Stream Variable Configuration Settings
#######################################
# speed-cam.py plugin settings
#######################################
# Calibration Settings
# --------------------
cal_obj_px = 370 # Length of a calibration object in pixels
cal_obj_mm = 4500.0 # Length of the calibration object in millimetres
# Crop Area for motion detection Tracking
# ---------------------------------------
x_left = 150 # Default= 150 Exclude event if x less than this px position
x_right = 810 # Default= 490 Exclude event if x greater than this px positioni
y_upper = 300 # Default= 140 Exclude event if y less that this value
y_lower = 600 # Default= 340 Exclude event if y greater than this value
# Motion Event Settings
# ---------------------
SPEED_MPH = True # Set the speed conversion kph=False mph=True
MIN_AREA = 200 # Default= 200 Exclude all contours less than or equal to this sq-px Area
track_len_trig = 75 # Default= 75 Length of track to trigger speed photo
x_diff_max = 35 # Default= 35 Exclude if max px away >= last motion event x pos
x_diff_min = 1 # Default= 1 Exclude if min px away <= last event x pos
track_timeout = 0.0 # Default= 0.0 Optional seconds to wait after track End (Avoid dual tracking)
event_timeout = 0.7 # Default= 0.7 seconds to wait for next motion event before starting new track
log_data_to_CSV = True # Default= True True= Save log data as CSV comma separated values
# Camera Settings
# ---------------
WEBCAM = True # Default= False False=PiCamera True=USB WebCamera
# Web Camera Settings
WEBCAM_SRC = 0 # Default= 0 USB opencv connection number
WEBCAM_WIDTH = 960 # Default= 640 USB Webcam Image width
WEBCAM_HEIGHT = 720 # Default= 480 USB Webcam Image height
# Camera Image Settings
# ---------------------
image_font_size = 15 # Default = 15 Font text height in px for text on images
image_bigger = 1.5 # Default = 1.5 Resize saved speed image by value
# ---------------------------------------------- End of User Variables -----------------------------------------------------```
from speed-camera.
from speed-camera.
After some fiddling with the config I found that increasing the track_timeout setting from 0.0 to 0.5 seems to make it stable. I can possibly shorten this timeout a bit and will test with it some more but for now this issue is solved.
from speed-camera.
I'm having a very similar issue. I have not had the chance to run logging yet, but updating the track_timeout seems to have lengthened the time between service crashes.
from speed-camera.
from speed-camera.
I had a previous issue where the problem was a bad USB camera. Testing showed it crashed other apps after a period of time when being used. Resolution was to replace faulty hardware.
Claude ...
from speed-camera.
Related Issues (20)
- config.py still mentions configcam.py in header HOT 2
- Improvement: Majority Vote for Direction? --- Tracking seems to use "direction" of last track event to set direction of overall track - conflicts if last track mis-identifies direction HOT 5
- Cannot run speed-cam.py - states "Could not import cv2 library" HOT 8
- 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
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.