Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing OpenCV as php extension under Windows

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

like image 858
Termos Avatar asked Mar 18 '10 15:03

Termos


People also ask

How do I enable PHP extensions in 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.

Can I install OpenCV on Windows?

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.

Can we install OpenCV in Windows 10?

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.


2 Answers

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.

like image 82
Can Guney Aksakalli Avatar answered Sep 23 '22 21:09

Can Guney Aksakalli


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

Regards, Matt

like image 20
Matt Clements Avatar answered Sep 23 '22 21:09

Matt Clements