Replies: 1 comment
-
its been 2-3 years since the question was asked, but still going to answer it as it might provide an reference to others
in simple words, this problem is solved by dividing the image into two halves upper and lower, and the bbox of upper and lower halves are sequentially arranged from left to right based upon their position values in each halves
this might or might not be the best way to solve it, have just mentioned an workaround which is accurate for your requirement and few other cases too, for example when viewed this looks like a model to detect number plates in the country Bangladesh, various real world, such as the whole predictions in a single half, or the format of the number or the codes varying from vehicle to vehicle, all these cases have been considered, to be sure and confident make sure that the predicting image supplied as input just contains the number plate to avoid false positives ALSO FOR THE PRECISE WORKING OF THIS TECHNIQUE MAKE SURE THAT THE DISTANCE FROM THE BBOX OF THE UPPER HALF TO THE TOP OF THE IMAGE IS THE SAME OR SIMILAR TO THE DISTANCE OF THE BBOX OF THE BOTTOM HALF TO THE BOTTOM OF THE IMAGEfor example: -------- top of image bbox bbox Any questions related to code, logic, Code not working for few extreme cases etc.. feel free to contact |
Beta Was this translation helpful? Give feedback.
-
I am working detectron2 object detection model, which produced a good output result. I can also see the output predicted result with labels with the help of detectron2.utils.visualizer Visualizer functions like the following:
But I want to print the predicted labels and save them in txt or csv file in the direction from top left side. Ex. Dhaka Metro Ga 128691 How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions