Could please anyone recommend me a guide/tutorial on how to install OpenCV as php extension under Windows ?
On Windows, you have two ways to load a PHP extension: either compile it into PHP, or load the DLL. Loading a pre-compiled extension is the easiest and preferred way. To load an extension, you need to have it available as a ". dll" file on your system.
In this tutorial, you will learn how to install OpenCV on Windows. This includes a complete guide to installation using prebuilt binaries. After completing this blog post, you will be able to install OpenCV on your Windows machine on your own. You will also be able to choose the method that will suit you the best.
Firstly, you need to install OpenCV library in your system prior to using it for your own dataset. At this stage, there can be two pathways of installing OpenCV in your system namely – (a) Using pip (b) Source Installation. pip is the package manager which is used to install the packages written in python.
My approach is compiling an executable from C code that uses OpenCV library then you can execute your program with Exec() function.
If you are looking for a pure Php solution, check this.
http://www.xarg.org/project/php-facedetect/ is a very good tutorial if you know a little about PHP & Apache Web Server.
Regards, Matt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With