How to find an image within another image using python

后端 未结 5 1969
时光取名叫无心
时光取名叫无心 2020-12-13 09:50

I\'m trying to use python to determine if one (small) image is within another (large) image.

Any suggestions before I take myself completely down the wrong path?

5条回答
  •  余生分开走
    2020-12-13 10:34

    pyautogui module does the job using pyautogui.locate(small_image, large_image) method which returns 4-integer tuple: (left, top, width, height).

提交回复
热议问题