Answer the question
In order to leave comments, you need to log in
How to create a web interface for a face recognition program on OpenCV?
Good day to all. Perhaps the question in the title is not set very correctly, so I will describe the task in more detail.
It is necessary to write a face recognition program using OpenCV in python or c ++. The program must be used through a browser i.e. you need a web interface and its binding to the program itself. You need to create something similar , but a little more complicated, namely, you need to scatter photos into albums, transfer them to albums, delete / add to albums, comment on photos, sign the faces of people found, maybe some other functions, but for now that's all.
There is a server where all photos, a database and a recognition program are stored. As I understand it, the easiest way is to use frameworks for python or c ++ languages (correct if wrong). A couple of questions follow from this:
1) What are the best frameworks for a similar task for python or c++?
2) Is it mandatory to use frameworks or are there other ways to work with python or c++ programs using a browser?
3) Any of your thoughts and advice about the described task.
Thank you all in advance for your replies.
ps I don't understand why the first tag in the question is python. the first one was opencv.
Answer the question
In order to leave comments, you need to log in
What's the problem?
We make a normal console application for face recognition in C ++. Then we redirect the input / output streams where necessary and communicate with it through any other language.
In C # and Java, this can definitely be done, but I think there will be no problems in Python either.
PS I did it myself in C#, of course, without a web interface, but I don't see any problems with it. Java can be found here
REST API
(just upload a photo and get face coordinates or whatever you need...)
Maybe this will work: www.webtoolkit.eu/wt/ru
PS We ourselves write a CMS in C++ here: sitev.ru ... The project, at the moment, is still very raw - therefore it is not offered as a solution .. .but the task shown in the video can be done ... We can suffer together)
If the interface is a couple of pages, then flask for python is better, there are a lot of batteries and a community.
In addition to all those who answered, I will also mention tufao . I wrote a small REST API on it for my C ++ project. Basically you can live. But according to my observations, the development speed will be two times lower than in python, so see for yourself what is more important to you.
cpp-netlib.org
Hello world for client and server:
cpp-netlib.org/0.11.1/index.html#hello-world
Your task is divided into the following:
And if you do not have experience in web development, then you should entrust this business to other people.
C/C++ should not be used as a server language. With Python it will be easier and faster.
Here's how your demo works:
face-detect.exe can/should be written in Go/C/C++ languages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question