文件名称:差异:计算图像差异
文件大小:16KB
文件格式:ZIP
更新时间:2024-03-12 09:50:55
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)