TensorflowDeepSortTracking icon indicating copy to clipboard operation
TensorflowDeepSortTracking copied to clipboard

Video file instead of webcam?

Open david-schweitzer opened this issue 5 years ago • 8 comments

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 avatar Jun 27 '19 14:06 david-schweitzer

@david-schweitzer did you find a solution?

anzy0621 avatar Aug 09 '19 02:08 anzy0621

@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!

anzy0621 avatar Aug 09 '19 04:08 anzy0621

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 avatar Aug 15 '19 12:08 buddhikadissanayake

@buddhikadissanayake do you know a way where we can make the video files go through detection first?

anzy0621 avatar Aug 15 '19 17:08 anzy0621

I'm also working on it. Please do share if you find a way.

buddhikadissanayake avatar Aug 16 '19 03:08 buddhikadissanayake

Can u load the video into thread_image with opencv?

U can go to threads -> imageinput -> webcamthread to edit from there

chongyeh avatar Aug 21 '19 07:08 chongyeh

Have anybody figured this out?

chongyeh avatar Aug 22 '19 05:08 chongyeh

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.

omarabid59 avatar Sep 07 '19 19:09 omarabid59