How to detect an image border programmatically?

前端 未结 5 1522
春和景丽
春和景丽 2021-02-11 07:47

I\'m searching for a program which detects the border of a image, for example I have a square and the program detects the X/Y-Coords

Example:

alt text http://img

5条回答
  •  天命终不由人
    2021-02-11 08:13

    From the sounds of it, you just want a blob extraction algorithm. After that, the lowest/highest values for x/y will give you the coordinates of the corners.

提交回复
热议问题