How to detect an image border programmatically?

前端 未结 5 1439
春和景丽
春和景丽 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 07:56

    You can use any image processing library such as Opencv. which is in c++ or python. You should look for edge detection functions such as Canny edge detection. Of course this would require some diving into image processing. The example image you gave should be straight forward to detect, how noisy/varied are the images going to be?

提交回复
热议问题