co-tracker icon indicating copy to clipboard operation
co-tracker copied to clipboard

Is it possible to track specified point in the video from the webcam?

Open newforrestgump001 opened this issue 1 year ago • 8 comments

Is it possible to track the point without putting all the frames as a batch. Thank you a lot.

newforrestgump001 avatar Mar 12 '24 05:03 newforrestgump001

Hi @newforrestgump001, sorry for the late response. Yes, you can check out the online demo.

Is this what you are looking for?

nikitakaraevv avatar Apr 15 '24 19:04 nikitakaraevv

@nikitakaraevv Sincere thanks for your response. Suppose a video with 100 frames, First, give 5 frames as input of network and then gives output; and the output updates when more frames given to the network frame by frame. In other words, does it support tracked result updating frame by frame.

newforrestgump001 avatar Apr 17 '24 07:04 newforrestgump001

Hi @newforrestgump001, yes, that's how this demo works, except for the result is currently updated every four frames, not every frame.

nikitakaraevv avatar Apr 17 '24 10:04 nikitakaraevv

@nikitakaraevv Thanks a lot, I got it.

newforrestgump001 avatar Apr 18 '24 08:04 newforrestgump001

Hi @nikitakaraevv Could we achieve real-time inference by conducting the inference process every four frames? In other words, would it be feasible to perform inference on frames one to four, and then repeat the process on frames five to eight, and so forth? Additionally, would it be necessary to reinitialize the model for each set of four frames? Lastly, could you please share any examples of C++ deployment code that utilizes TensorRT? Your response would be greatly appreciated.

lutianye avatar Apr 18 '24 09:04 lutianye

Hi @lutianye, yes, that's exactly how the online demo works: it initialises the model, waits until it has access to the first 8 frames (the sliding window size is 8 frames, but the step is 4 frames), and then processes 4 new frames at a time while always taking only 8 frames as input at every step. The model is not reinitialised after every step.

Unfortunately, we don't yet have any examples of C++ deployment, but if you let me know what your use case is, we might be able to help you. You can leave your email address or contact me via [email protected], and we can discuss it in more detail.

nikitakaraevv avatar Apr 21 '24 12:04 nikitakaraevv

Hi @nikitakaraevv Thank you for your prompt response. I understand what you mean. Our objective is to capture images from a camera while simultaneously performing tracking, thus we cannot afford to feed all frames to the model. Instead, we need to capture and input frames in real-time. I am considering developing a C++ demo leveraging TensorRT, however, I am concerned that TensorRT might not support certain operators. Please forgive me for the delay in my response.My email address is [email protected].

lutianye avatar Apr 24 '24 05:04 lutianye

Hi, any update for TensorRT? Thanks

dat-nguyenvn avatar May 21 '24 14:05 dat-nguyenvn