Resize input source before tracking
badkagola opened this issue · comments
source = "test.mp4" # my input video resolution is (2304 * 1296)
The source is being used in the following code line:
for result in model.track(source=source, show=False, stream=True, agnostic_nms=True):#verbose=False):
I want to resize it like - frame = imutils.resize(frame, width=600) before passing input to the frame. Can you please help with this?
Hi @badkagola 👋🏻 ! So you would like to use a different resolution of the frame from the camera?
Hi @badkagola 👋🏻 ! So you would like to use a different resolution of the frame from the camera?
Yes. How can it be done? I would really appreciate your help on this!
It looks like you can do it this way: model.track(source=source, show=False, stream=True, agnostic_nms=True, imgsz=600):
.