A sample project for demonstrating web-based GUI for OpenCV. This project using web technologies (HTML5, Javascript, PHP) for the frontend of my face detection program.
Project page: http://goo.gl/jI4xA
Video demo: http://youtube.com/watch?v=0ZDQ7ZH76i0
- Apache web server
- PHP 5.3 or above
- OpenCV 2.4.3 or above
- HTML5 enabled web browser (Google Chrome is recommended)
- First you need to compile
face-detect/face-detect.cpp
.
g++ \`pkg-config --cflags --libs opencv\` face-detect.cpp -o face-detect
- Create a directory in your htdocs, e.g:
web-face-detect
and copy all files into the directory. - Start your web server.
- Open
http://localhost/web-face-detect
with your browser. - Try the sample images in
assets/img/
.
The sample images in assets/img/
are Creative Commons licensed.
- 1.jpg - Wikimedia Commons
- 2.jpg - Flickr
- 3.jpg - Flickr
- 4.jpg - Flickr