|
|
|
|
|
by shoumikchow
2089 days ago
|
|
You are correct that you do not need this library to draw bounding boxes with a label. You can use OpenCV or Pillow to draw it. However, positioning the label to be exactly above the bounding box can be a little finicky. This just takes care of the math that you'd have to do to place it right above the box. I agree that I am not doing something revolutionary with the math here, but these functions are something that I've had to use over and over again and thought it would be nice to package the whole thing. This library abstracts everything behind two main functions. There are also a few different visualizations that you can use. |
|
Don't get me wrong, I like that you published it and I encourage it as much as I can. But if someone is capable of running complex object detection algorithms, they surely can position a label correctly without the need for another library?! This is just a couple of lines of code you can write without even thinking much about it.
Maybe I'm just out of touch, but it's so weird to me that people out there might find this useful.