TensorflowDeepSortTracking
TensorflowDeepSortTracking copied to clipboard
Video file instead of webcam?
I have a 'video.avi' file in the main directory, and I'd like to run this tracker on it. It seems like the only change I would need to make would be the initial thread_image = WebcamThread('Webcam Thread',1) line into something that locates and opens my video.
But I tried doing that and it didn't seem to work. Any suggestions?
@david-schweitzer did you find a solution?
@omarabid59 I tried to change the thread_image = WebcamThread('Webcam Thread',0) to thread_image = WebcamThread('Webcam Thread', 'video.mp4') to use it for a video file but it keeps giving me an error. Can you tell me how to use it for a video file?
Thank you!
You can run it with a video files by changing
thread_image = WebcamThread('Webcam Thread',0)
to
thread_image = WebcamThread('Webcam Thread',"video file path")
But since it's running on a different thread the video run separately without waiting for detection.
@buddhikadissanayake do you know a way where we can make the video files go through detection first?
I'm also working on it. Please do share if you find a way.
Can u load the video into thread_image with opencv?
U can go to threads -> imageinput -> webcamthread to edit from there
Have anybody figured this out?
hey everyone. I've updated the repo to load from a video file. Check it out. Let me know if you have any issues with it.