Let's consider we have a rotated rectangle specified by (centerx, centery, width, height, angle). The question is how to draw this rotated bounding box with a specific filled value e.g. 5 in a image with only a simple command.
What I need is something like the command below:
draw.rectangle(centerx, centery, width, height, angle, value, 'filled')
OpenCV, PIL, shapely and Matplotlib libraries do not have a simple command for this case. I searched in the net and could not find a solution for this.
One solution could be this, but it does not consider filling the rectangle.