-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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 run the detection on rectangular ROIs #1
Comments
Dear @rsingh2083, How do you want to prioritize the found objects? For instance, you found 8 objects. Which two do you want to show? |
Sir I just want to check if there is any person in 4 rectangular ROI. |
Start playing with cv::Rect. Your outcome has a rect around the person, and if you define the 4 regions as rect, you can find the overlap. See https://answers.opencv.org/question/67091/how-to-find-if-2-rectangles-are-overlapping-each-other/ for the math on rects |
Thanks sir. |
The design of the deep learning model determines the dimensions of the input image. In the case of YoloFastestV2, it is 352x352. Regardless of the resolution offered, the first thing the algorithm does is resize to this 352x352 (line 186 of yolo-fastestv2.cpp). As a result, the inference time also remains the same, regardless of the image size. |
Hi Sir,
I want to run this on only two rectangular ROI of the video. For example a rectangular ROI in top left and bottom right, that's it.
Can you please help how to do it .
The text was updated successfully, but these errors were encountered: