-
Notifications
You must be signed in to change notification settings - Fork 8k
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 get co-ordinates and save image of the objects #7276
Comments
From the CLI there is no magical way to automatically do that. You'd have to write some code to take the bounding boxes, extract the roi, and save them as new images. |
sir, what do i have to edit in image.c?
|
What? No, don't edit image.c! You need to learn to use the API. Or save the coordinates in a file (search for |
Hello Sir,
if i compile after un commenting these lines i get following error /src/image_opencv.cpp:986:84: error: ‘class cv::Mat’ has no member named ‘width’ |
@AlexeyAB I Finally found the solution. I think after the update , "show_img" has been changed from type "Iplimage" to "cv::Mat" and the commented code wasn't updated based on the new conversion so to make the coomented lines work, we need to convert show_img to iplimage type by adding this line
and change the line To and to I'll put up a pull request as well including some other topic related changes |
Here is my pull request where I've addressed the above problem. |
Hi, can you try following code
pull request created for the same |
Hello,
i am using the following command
./darknet detector demo ./customcfg/tinyv3.data ./customcfg/yolov3-tiny.cfg ./weights/yolov3-tiny.weights ./videostest/test1.mp4 -i 0 -thresh 0.25
My question is, How can i save the image of the cropped object in a folder?
The text was updated successfully, but these errors were encountered: