差异:计算图像差异

时间:2021-02-20 16:04:15
【文件属性】:
文件名称:差异:计算图像差异
文件大小:16KB
文件格式:ZIP
更新时间:2021-02-20 16:04:15
PHP 要求不高的差异 计算图像差异。 用法 use Undemanding \ Difference \ Image ; use Undemanding \ Difference \ Method \ EuclideanDistance ; $ image1 = new Image ( "/path/to/image1.png" ); $ image2 = new Image ( "/path/to/image2.png" ); $ difference = $ image1 -> difference ( $ image2 , new EuclideanDistance ()); $ boundary = $ difference -> boundary (); // → ["left" => ..., "top" => ...] $ percentage = $ difference ->
【文件预览】:
difference-main
----license.md(1KB)
----composer.lock(44KB)
----composer.json(447B)
----src()
--------ConnectedDifferences.php(5KB)
--------Transformation()
--------Calculation()
--------Difference.php(4KB)
--------Image.php(3KB)
--------Method()
----code-of-conduct.md(2KB)

网友评论