|
|
|
|
|
by nom
2095 days ago
|
|
Can someone explain to me why I would need a library to draw bounding boxes with a label? I don't understand why this is a hard problem that warrants a library. There isn't even any 'fiddly math' in there. I seriously don't get it. Have we become so incapable that we can't draw rectangles and labels anymore by our self? |
|
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.