Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pytracking/evaluation/tracker.py has been modified by adding camera_video and camera_rtsp functions for tracking on both recorded videos and webcam/rtsp streams. The functions are executed in threads and the main purpose is to enable tracking in real time on rtsp streams without video lags.
camera_video is main process (tracking) dependent, that is, the processing will be hardware dependent. As well as a parameter is added by the name of skip_frames which is basically used evaluate tracker performance by skipping any number of frames as well as if someone needs not to process every single frame.
camera_rtsp is a function to provide realtime feed to the main process. So if the hardware is not capable to execute or process the tracker according to the frame rate from the camera it won't lag but process in real time.