ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to find an empty rectangle inside a graphic file
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mazluta

Israel
3 Posts

Posted - May 29 2024 :  05:39:45  Show Profile  Reply
Hi

i have some graphics with rectangles inside.





i want to find that rectangle


I want to check/look for




and all 4 "corners" by "matching" or some other way and find the all area of the rectangle.

is it possible?


Yossi Mazal-Tov

xequte

38610 Posts

Posted - May 29 2024 :  23:52:34  Show Profile  Reply
Hi Yossi

I would suggest trying the line or edge detection:

http://www.imageen.com/help/TIEVisionImage.houghLines.html
http://www.imageen.com/help/TIEVisionImage.canny.html


Another possibility if the rectangles are always a unique color in the image, would be to parse the image content to find matching pixels.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38610 Posts

Posted - May 30 2024 :  23:05:03  Show Profile  Reply
We're also looking into Harris Corner detection, which may help here:

https://docs.opencv.org/4.x/dc/d0d/tutorial_py_features_harris.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: