Deleted Comment
In terms of convolution of implementing it, there may be a little more effort in terms of figuring some offsets (e.g., path widths may extend bounds), but it shouldn't be anything excessive I don't think.
More useful to me would be something similar that operates on tensors on the GPU.
Doing image annotations on host/CPU often becomes a bottleneck.
Thank you for the comment!
Either way, your comments might be against HN guidelines [1].
Deleted Comment
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.
With that said, the dependency on OpenCV seems entirely overkill. Surely Pillow would be a much more sensible dependency (with ImageDraw), as all you're doing with this package is drawing rectangles and labels, rather than handling any CV tasks?
I could've definitely used Pillow, but is there any tangible advantage to using Pillow over OpenCV?
Remote: Yes
Willing to relocate: Yes
Technologies: Python, MongoDB, Docker, PyTorch, Tensorflow, Keras, Numpy, OpenCV, AWS
Résumé/CV: https://shoumikchow.com/resume
Email: hello@shoumikchow.com
Website: https://shoumikchow.com
Github: https://github.com/shoumikchow
I have a CS Masters (with thesis), primarily working with neural networks using graphs and images. Looking for full-time opportunities as a Machine Learning Engineer/Deep Learning Engineer, preferably related to Computer vision but can work with NLP as well.