Answer the question
In order to leave comments, you need to log in
How to compare 2 images in php\python?
The bottom line is this, there is a picture with several images, you need to get an id from the database for each image.
Previously, I have never come across an image comparison, I don’t know the subtleties / nuances / pitfalls.
I see 2 ways:
1) Through php using imageMagick
2) Through python and OpenCV
Interested in which of these two options is more accurate and easier to identify images?
Answer the question
In order to leave comments, you need to log in
Keep the solution in php.
Here GD and ImageMagick
usefuldevops.ru/blog/2013/11/07/sravnit '-dva-izobrazhieniia-s-pomoshch'iu-php/
It all depends on whether it is a local project or you will place it somewhere .
Here is python
www.intuit.ru/studies/courses/10621/1105/lecture/1...
As for me, OpenCV is easier, but this is my IMHO.
P.s.
Using OpenCV in conjunction with Python is convenient for creating simple applications, conducting first experiments, and creating prototypes. I note that almost all the functionality of the library is available in Python. Performance could be a weak point, but if you use the "vector-matrix" ideology, then you can get a fairly fast code. To do this, you should avoid processing images pixel-by-pixel and other arrays element-by-element in loops. Instead, use vector functions that operate on the entire image or array at once.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question