Good day to all, tell me how to use the opencv library in php? At least by the example of this code?

#include <cv.h> #include <highgui.h> #include <stdlib.h> #include <stdio.h> IplImage *search_main_image = 0; int main() { char search_filename[] = "trololo.jpg"; search_main_image = cvLoadImage(search_filename); // ... cvReleaseImage(&search_main_image); return 0; } 

Or maybe what materials are there? I saw a long time ago a guy on php authentication using a videophone, php and open source did, but I can not find. Just don't be scared :) - my goals are a thousand times simpler, just to get some important data from the image.

ps Maybe you can do something on Python, and implement it in php, so to speak. Which way to look in this case?

pps In general, I have a script written in C ++, can I think of something with it too?

    2 answers 2

    From PHP in any way. Use system calls (exec, system, etc) to access your executable file in c ++.