It is necessary to place as closely as possible (without intersection) various shapes of different sizes on the image.
This is what happened with random numbers.
In addition to the obvious problem, the selection of coordinates takes a long time.
Tell me what algorithm to use to solve this problem. Perhaps some kind of library, like OpenCV.
Thank!
