php-opencv icon indicating copy to clipboard operation
php-opencv copied to clipboard

Using with xampp on windows

Open spartyboy opened this issue 5 years ago • 16 comments

How do i use it on windows with xampp server

spartyboy avatar May 07 '19 14:05 spartyboy

Now You can not use php-opencv in windows..

tarasfrompir avatar May 07 '19 14:05 tarasfrompir

am unable to download opencv on ubuntu, using the methods in phpopencv.org can you please help out?

spartyboy avatar May 07 '19 14:05 spartyboy

Did you try this ? https://github.com/hihozhou/php-opencv#compile-and-install-php-opencv-extension

tarasfrompir avatar May 07 '19 15:05 tarasfrompir

yea didn't work, what version of of ubuntu should i use to be specific

spartyboy avatar May 07 '19 20:05 spartyboy

@spartyboy If you don't want to use docker and want to install it on your own system, you need to compile the new PHP and PHP-OpenCV extensions yourself. This is the php official website on the window support problem, because this project did not join pecl. You can refer to the following article, but it is only available in Chinese. https://hihozhou.com/blog/2018/11/17/window-compile-php-extensions.html

hihozhou avatar May 08 '19 01:05 hihozhou

@spartyboy If you fail to install on ubuntu, please show your error message, I can help you.

hihozhou avatar May 08 '19 01:05 hihozhou

ok

spartyboy avatar May 08 '19 12:05 spartyboy

but what version of ubuntu would you recommend i use

spartyboy avatar May 08 '19 12:05 spartyboy

@spartyboy My main development environment is now 18.04. Specific installation commands, you can refer to the docker script. OpenCV install: https://github.com/hihozhou/opencv-dockerfile/blob/master/build.sh PHPOpenCV extension install : https://github.com/hihozhou/php-opencv/blob/master/Dockerfile

It’s already a very specific command.

hihozhou avatar May 09 '19 03:05 hihozhou

php mast be version 7.2

tarasfrompir avatar May 09 '19 09:05 tarasfrompir

yes mine is 7.2.18

spartyboy avatar May 09 '19 12:05 spartyboy

my problem now is i am gettin opencv not found error after installation

spartyboy avatar May 09 '19 12:05 spartyboy

chek version. Need 4.0.1

tarasfrompir avatar May 13 '19 16:05 tarasfrompir

how do i install it and from what directory followed the steps on php open cv but it never worked

spartyboy avatar May 14 '19 09:05 spartyboy

OpenCV4 and previous versions use pkg-config detection method is different.

OpenCV4:

 pkg-config --modversion opencv4

OpenCV4 previous versions:

 pkg-config --modversion opencv

hihozhou avatar May 14 '19 09:05 hihozhou

https://github.com/opencv/opencv/tree/bd1fd59fc11c07511aabba5ba46899f5220c8eef https://github.com/opencv/opencv_contrib/tree/f0e70cbfd58f4a67e43689e29b406fb4a559c84b you need install 2 tree and compare

tarasfrompir avatar May 14 '19 11:05 tarasfrompir