Skip to content

Commit

Permalink
Minor Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pageauc committed Oct 10, 2023
1 parent 6547580 commit f3b5b5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/rtsp352.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
MO_MAX_X_DIFF_PX = 26 # Default= 20 Exclude if max px away >= last motion event x position
MO_MIN_X_DIFF_PX = 1 # Default= 1 Exclude if min px away <= last event x position
MO_X_LR_SIDE_BUFF_PX = 10 # Default= 10 Divides motion Rect x for L&R Buffer Space to Ensure contours are in
MO_TRACK_TIMEOUT_SEC = 2.0 # Default= 0.5 Optional seconds to wait after track End (Avoids dual tracking)
MO_TRACK_TIMEOUT_SEC = 0.5 # Default= 0.5 Optional seconds to wait after track End (Avoids dual tracking)
MO_EVENT_TIMEOUT_SEC = 0.3 # Default= 0.3 seconds to wait for next motion event before starting new track
MO_MAX_SPEED_OVER = 0 # Exclude track if Speed less than or equal to value specified 0=All
# Can be useful to exclude pedestrians and/or bikes, Etc or track only fast objects
Expand Down
2 changes: 1 addition & 1 deletion speed-cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ def speed_camera():
print(HORIZ_LINE)
if MO_TRACK_TIMEOUT_SEC > 0:
logging.info(
"MO_TRACK_TIMEOUT_SEC %0.2f sec Sleep to Avoid Tracking Same Object Multiple Times."
"MO_TRACK_TIMEOUT_SEC %0.2f sec Delay to Avoid Tracking Same Object Multiple Times."
% MO_TRACK_TIMEOUT_SEC
)
first_event = True # Reset Track
Expand Down
4 changes: 2 additions & 2 deletions strmusbipcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self,
self.stream = cv2.VideoCapture(src)
self.stream.set(3, size[0])
self.stream.set(4, size[1])
self.framerate = 25 # set ip csm to CBR (constant bitrate)
self.cam_delay = int(1 / self.framerate)
self.framerate = 25.0 # set ip csm to CBR (constant bitrate)
self.cam_delay = float(1.0 / self.framerate)
(self.grabbed, self.frame) = self.stream.read()

# initialize the thread name
Expand Down

0 comments on commit f3b5b5a

Please sign in to comment.