D
D
Dp762020-11-25 10:55:53
PHP
Dp76, 2020-11-25 10:55:53

How to speed up search for subimage in image?

There is a need to search for a picture in a picture, I do it this way
$canvas = new Imagick("screen.png");
$piece = new Imagick("food.png");

$canvas->subImageMatch($piece, $offset, $similarity);

But, if the original picture is 3mb, then hove it, the speed of the search is 20-30 seconds on a fast wheelbarrow.
Please suggest a faster solution in php.

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-11-25
@Nc_Soft

The solution is opencv, just call through exec.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question