Closed vkieboominspark closed 4 years ago
I am not sure what you want.
Sorry, I meant the top left en bottom right corner of the detected bounding boxes as (x,y),(x,y) coordinates on original input image. Hope this clarifies.
You want to draw coordinates as text on the image?
No the rectangle itself, with the coordinates. And with opencv, so not the inference function.
this is a part of yolo.inference
, self.predict
is yolo.predict
yolo.draw_bboxes
draw coordinates as a rectangle.
Ah I see. The 'convert ratio to lenght' part is where it is converted to the right format. Thank you.
Aha :).
bboxes = yolo.predict()
bboxes == [[center_x_ratio, center_y_ratio, width_ratio, height_ratio, class_id, probability], ...]
If the problem is solved, close the issue.
What do you recommend in using for getting the bboxes/ROI for using with cv2.rectangle() function? So getting the original coordinates from yolo.predict()