Java 2D drawing and editing objects in an image and detecting shapes from images

Can someone get me with the following idea:

I want to upload an image to a java (java swing) application (floor plan or blue font). Let them say that the floor plan image has a white background with three figures on it (rectangle, triangle and circle). Shapes have a black border.

The program should detect these shapes and draw 3 shapes on top of it.

For example: it detects a rectangle, and a new rectangle will be drawn on top of that rectangle from the image. When this extra rectangle is drawn, the user should be able to change this rectangle and do additional things with it, such as filling the rectangle, changing the frame style, ...

For example: in this case, small dots or squares on the corners should be visible so that we can drag / resize / move the rectangle. A bit like this screen shot from visual studio: http://farm1.static.flickr.com/49/132219212_061a1300af_o.png

Does anyone have tutorials for this? Are some of the very useful java algorithms missing? etc...? Any suggestions or help are appreciated.

Tnx in advance

+3
source share
2 answers

, , , . api BufferedImage . , , .

+1

, (, dpi, , ). . , OpenCV Java.

+1

Source: https://habr.com/ru/post/1735106/


All Articles