Is there any way to integrate OpenCV with PHP?

五迷三道 提交于 2019-11-29 03:18:36

Doing a google search for 'php opencv' suggests - yes you can :)

This one looks decent. http://www.xarg.org/project/php-facedetect/ (I know it's specific to face detaction, but could be a good start-point for you).

Will only be doable if you're using your own server as needs lots of additional core stuff added.

OpenCV for PHP is a new pecl module. Needs a little work to be complete, but a lot of work is already done.

there is another PHP face detection class here:

Apparently it doesn't work 100% on every photo, probably to do with the angle of the face etc, but I've heard good reports on it. I'm thinking about using it on my next project.

Depends on both server restrictions and the target program. If server allows, you can run external programs and pass arguments to them.

These external programs are usually CLI programs, i.e., without GUI. Image would be passed as a path to an image file (rather than data about pixels), i.e., my_opencv_program -resize 1024x768 -infile /tmp/input.jpg -outfile /tmp/output.jpg.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!