在 Windows 下安装 OpenCV 作为 php 扩展

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2470820/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:08:56  来源:igfitidea点击:

Installing OpenCV as php extension under Windows

phpwindowsopencv

提问by Termos

Could please anyone recommend me a guide/tutorial on how to install OpenCV as php extension under Windows ?

请任何人向我推荐有关如何在 Windows 下将 OpenCV 安装为 php 扩展的指南/教程?

回答by Can Guney Aksakalli

My approach is compiling an executable from C code that uses OpenCV library then you can execute your program with Exec()function.

我的方法是从使用 OpenCV 库的 C 代码编译可执行文件,然后您可以使用Exec()函数执行您的程序。

If you are looking for a pure Php solution, check this.

如果您正在寻找纯 PHP 解决方案,请检查

回答by Matt Clements

http://www.xarg.org/project/php-facedetect/is a very good tutorial if you know a little about PHP & Apache Web Server.

http://www.xarg.org/project/php-facedetect/是一个非常好的教程,如果您对 PHP 和 Apache Web 服务器有所了解。

Regards, Matt

问候, 马特