【问题标题】:Is there a way to check if one image is a part of another image and return it's position in PHP?有没有办法检查一个图像是否是另一个图像的一部分并返回它在 PHP 中的位置?
【发布时间】:2015-04-26 18:56:42
【问题描述】:

我有源图像https://www.imageupload.co.uk/image/ZRor 和一个图像与源图像https://www.imageupload.co.uk/image/ZRol 进行比较

PHP 中有没有办法检查源中是否包含此图像并返回与源相关的左侧和顶部位置?

【问题讨论】:

标签: php image image-processing position


【解决方案1】:

试用 Imagick::compareImages 函数,http://php.net/manual/en/imagick.compareimages.php

它将“返回一个包含重建图像和图像之间差异的数组。”

应该可以。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-15
    • 2011-03-26
    • 1970-01-01
    • 2012-06-09
    • 2012-03-05
    • 2012-02-14
    相关资源
    最近更新 更多