First of all I have asked this question on stackoverflow and got down vote for question being not belonging to the site. I am trying my luck se now(more suitable to se I guess) and I hope I will not get down vote from here too
I want to develop a face recognition app that searches the database for an image. I looked at opencv a little. I really liked it and I want to use it but the problem is I am planning to use PHP for server backend and OpenCV is in C++. My app will require lots of communication between PHP and C++ and also I will have to connect to the database and fetch images from them. Basically what I am planning to do is :
- PHP will get the request which includes the desired image file
- PHP will pass this image to my C++ code
- C++ will search the database to find the person
- C++ will pass the result to PHP
- PHP will return the result to client
However this approach makes me really scared because there are lots of gray areas for me to how to do it. Should I use sockets to do the communication or IPC (POSIX Messages etc if possible) or should I use entirely C++ for my project(C++ server could be very difficult) or should I use PHP extensions(I know almost nothing about it). How can I use OpenCV with a Database and how can I perform a fast search(Hash values for grayscale cropped images maybe?). I also have to detect faces to train some images for a user which also requires the steps above. What are the suggestions you can make? Which way would be easiest for me to implement this application? Excuse me for the language and disorganized structure question but I am really worried about almost everything about the project and I really want to do it. Any guidance will be appreciated
"I'm writing a facial recognition web application powered by a C++ and PHP combination backend. Here are a few details that I'm curious about: [bulleted list] -- This is my specific question about this situation."
:: While being overly specific, I notice you're also deviating into areas of extremely broad scope. After providing general detail about your general situation, ask a very specific question and leave it at that. – user129679 Jun 12 '14 at 7:40