How to detect an image border programmatically?

前端 未结 5 1437
春和景丽
春和景丽 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:06

    A shape recognition algorithm might help you out, providing it has a solid border of some kind, and the background colour is a solid one.

提交回复
热议问题