且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

寻找图像上的斑点 - 数学方法?

更新时间:2023-02-04 15:45:48

获取您正在搜索的子图像,并在大图中搜索。

Get pieces of your sub-image you're searching and search it in the big image.

您可以使用ImageMagick的子图像搜索:

You can use ImageMagick's sub-image search:

compare -verbose -dissimilarity-threshold 0.1 -subimage-search subimage.jpg bigimage.jpg

了解更多关于此这里这里这里

它会告诉你TooDissimilar或它会告诉你子图像的x,y位置。

It will either tell you "TooDissimilar" or it will tell you the x,y position of the subimage.