-1

I have done face recognition project in c++(opencv) now i need to integrate my c++ code to php is it possible? how it can be accomplished?

Alan Stokes
  • 18,815
  • 3
  • 45
  • 64
Arjun
  • 3
  • 1
  • see also http://stackoverflow.com/questions/15179755/how-to-make-php-and-c-c-interact-with-each-other?lq=1 , http://stackoverflow.com/questions/1110682/extending-php-with-c – John Carter May 03 '14 at 09:08

2 Answers2

0

Only if you can compile your code to run on the server in order to execute it from php (ie exec/passthru/shell_exec/system etc).

Tanatos
  • 1,857
  • 1
  • 13
  • 12
0

You have to write your own PHP extension to integrate C++ code and OpenCV into php. Here is an example: https://github.com/infusion/PHP-Facedetect

Peter Chung
  • 457
  • 6
  • 14