OpenCV image comparison in Android

后端 未结 3 1805
甜味超标
甜味超标 2020-12-01 01:47

[EDIT] I have devised some code for image comparison. The matching part is still a bit flawed and I would love some assitance. The project can be found at - GitHub.

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 02:24

    Use cv2.absDiff to compute the difference between the pictures and cv2.sumElems to get the sum of all pixels differences.

    Then invent a threshold by which you judge wether two images are similar or not.

提交回复
热议问题