We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to save the detections of each frame? For an example all the frames generated by one tracker object?
The text was updated successfully, but these errors were encountered:
Hello, I was passing by and I saw your comment. In order to crop a detected object (to then save it), what you can do is :
bbox = track.to_tlbr()
cropped_picture = img[ (int(bbox[1])):(int(bbox[3])), (int(bbox[0])):(int(bbox[2])) ]
cv2.imwrite('result.jpg', cropped_picture)
Sorry, something went wrong.
Hello, I was passing by and I saw your comment. In order to crop a detected object (to then save it), what you can do is : get the bounding box : bbox = track.to_tlbr() Get the cropped picture : cropped_picture = img[ (int(bbox[1])):(int(bbox[3])), (int(bbox[0])):(int(bbox[2])) ] Save it: cv2.imwrite('result.jpg', cropped_picture)
Thank you very much, really appreciate it.🙏🙏
No branches or pull requests
How to save the detections of each frame? For an example all the frames generated by one tracker object?
The text was updated successfully, but these errors were encountered: