SURF / SIFT image pattern matching library in PHP

I want to know if a SURF library written in PHP is available? Of the small conclusions that I have made so far, the search libraries are either in C ++ / C #, if there is some link to similar technologies that are built into PHP, if provided, this will be appreciated. I was looking my way for some built-in functions, the only thing that was close enough was Image Magick. But from the comments, it looks like a pattern match cannot be made in it.

Let me define my self, I just do not want to compare 2 images, let's say there is a Google logo with an image, and there is an image of the Google logo as a separate image, which I want to find if there is some image where the Google logo / image is reproduced.

+4
source share
2 answers

OpenCV is a great open source library for image processing and computer vision. I found a PHP cover (detailed tutorial here ), BUT I'm afraid that it does not complete the SIFT / SURF code ...

, , . - ( ) , :

<?php
use OpenCV\Image as Image;
use OpenCV\Histogram as Histogram;

echo "Loading sample\n";
$im = Image::load("elephpant_sample.jpg", Image::LOAD_IMAGE_COLOR);
$im2 = Image::load("dragonbe_elephpants.jpg", Image::LOAD_IMAGE_COLOR);

for ($i = 0; $i < 6; $i++) {
$result = $im2->matchTemplate($im, $i);
$result->save("mt_output_$i.jpg");
}

, . - , .

+1

phash (http://phash.org) php. : .

+1

Source: https://habr.com/ru/post/1524276/


All Articles