php-opencv
php-opencv copied to clipboard
Dll release for windows
Hi, Would you please release the dll for windows I tried to compile it but failed If u can it will b highly appreciated by all php windows developers
I'm trying, but I haven't succeeded yet.
please share dll library fow windows....
I'm trying, but I haven't succeeded yet.
I already did it, just check it on my profile.
Did not start with apache 2.4 - just crash...
Did not start with apache 2.4 - just crash...
PHP version should be 7.4.2, then you should put "opencv_world420.dll" in the same folder as php.exe< then put the "php_opencv.dll" in the extension folder, it should be run. If you want to determine its apache problem or installation problem, you can use the command line "php.exe -m" to print the loaded modules list. If opencv in the list, then the problem should be caused by apache. BTW: You MUST use php 7.4.2 TS version. Good Luck
PHP Warning: PHP Startup: Unable to load dynamic library 'opencv' (tried: C:\xampp\php\ext\opencv (\xd0\x9d\xd0\xb5 \xd0\xbd\xd0\xb0\xd0\xb9\xd0\xb4\xd0\xb5\xd0\xbd \xd1\x83\xd0\xba\xd0\xb0\xd0\xb7\xd0\xb0\xd0\xbd\xd0\xbd\xd1\x8b\xd0\xb9 \xd0\xbc\xd0\xbe\xd0\xb4\xd1\x83\xd0\xbb\xd1\x8c.), C:\xampp\php\ext\php_opencv.dll (\xd0\x9d\xd0\xb5 \xd0\xbd\xd0\xb0\xd0\xb9\xd0\xb4\xd0\xb5\xd0\xbd \xd1\x83\xd0\xba\xd0\xb0\xd0\xb7\xd0\xb0\xd0\xbd\xd0\xbd\xd1\x8b\xd0\xb9 \xd0\xbc\xd0\xbe\xd0\xb4\xd1\x83\xd0\xbb\xd1\x8c.)) in Unknown on line 0
I try all version x64 and x86 -php version 7.4.2
My config
extension=bz2 extension=curl ;extension=ffi extension=fileinfo extension=gd2 extension=gettext ;extension=gmp ;extension=intl ;extension=imap ;extension=ldap extension=opencv extension=mbstring extension=exif ; Must be after mbstring as it depends on it extension=mysqli ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client ;extension=odbc ;extension=openssl ;extension=pdo_firebird extension=pdo_mysql ;extension=pdo_oci ;extension=pdo_odbc ;extension=pdo_pgsql extension=pdo_sqlite ;extension=pgsql ;extension=shmop
Looks like you need put opencv_world420.dll at the folder as php.exe. Otherwise, it may cause this problem. BTW, the x86 version has some problem, please use x64 version.
I try all version - php and opencv. I put files -php_opencv.dll and opencv_world420.dll - at the folder php and folder php/ext/ .
But still getting the same error
Describe your compilation process on Windows
Describe your compilation process on Windows
https://windows.php.net/downloads/releases/php-devel-pack-7.4.2-Win32-vc15-x64.zip Download this dev-pack, use the phpize.bat to compile it. I uploaded the Tester, you can test the opencv_world420.dll by this tool. I think this problem caused by opencv_world420.dll.
Describe your compilation process on Windows
I try all version - php and opencv. I put files -php_opencv.dll and opencv_world420.dll - at the folder php and folder php/ext/ .
But still getting the same error
Did the problem solve?
sorry - have not time to try... Mi work is mi house...
sorry - have not time to try... Mi work is mi house...
Okay, no worries.
Thanks for your improvements dear SlardarZhang. But the test script doesn't work. The library has loaded, but no one of the functions work. Including a test script. The file path was specified explicit. What could be the problem ?
//Obama.php
echo "ЕУІЕ" ;
use function CV\{ imread, imshow, waitkey, namedWindow};
if ($im = imread("http://smarthome.glory.pw/Obama.png")) {
echo "LOADED" ;
} else {
echo "NOLOADED";
}
namedWindow('This is Obama id card',WINDOW_FULLSCREEN);//create window
imshow('This is Obama id card',$im);//show image on window
waitkey(0);
PHP 7.4
Thanks for your improvements dear SlardarZhang. But the test script doesn't work. The library has loaded, but no one of the functions work. Including a test script. The file path was specified explicit. What could be the problem ?
//Obama.php echo "ЕУІЕ" ; use function CV\{ imread, imshow, waitkey, namedWindow}; if ($im = imread("http://smarthome.glory.pw/Obama.png")) { echo "LOADED" ; } else { echo "NOLOADED"; } namedWindow('This is Obama id card',WINDOW_FULLSCREEN);//create window imshow('This is Obama id card',$im);//show image on window waitkey(0);
PHP 7.4
I will push a new version for PHP 7.4.10, please wait for a couple of weeks.
"I will push a new version for PHP 7.4.10, please wait for a couple of weeks.
" Some one change ?
"I will push a new version for PHP 7.4.10, please wait for a couple of weeks.
" Some one change ?
Yes, the php_opencv.dll have problem to call opencv_world420, BTW, I will compile OpenCV4.4 for the next version
Thanks i am wayting
"I will push a new version for PHP 7.4.10, please wait for a couple of weeks. " Some one change ?
Yes, the php_opencv.dll have problem to call opencv_world420, BTW, I will compile OpenCV4.4 for the next version
Hi SlardarZhang... How affairs with next version ?
I am waiting for PHP 8.0 release, currently, MS published a piece of news, they will not support PHP8.0, what do you think of it?
I am cry - wheare my PHPopencv - i dont lacky human......
I am cry - wheare my PHPopencv - i dont lacky human......
Because Microsoft will not support PHP 8.0, do you think we can create a repository of PHP 8.0 for Windows? BTW, I am thinking about the next version of OpenCV for PHP library, I should build 7.4.12 or 8.0, could you give me some suggestion? thanks a lot.
I think - OpenCV for PHP 7.4.12. Windows - is all my life
I think - OpenCV for PHP 7.4.12. Windows - is all my life
The new version is released, you can download it now, this version I build a smart installer, it may help you to install it easier. https://github.com/SlardarZhang/php-opencv/releases/tag/4.5.0%7C1.0.2
Very COOL - i try in mondey... Thanks
Very COOL - i try in mondey... Thanks
Use 1.0.3 please, 1.0.2 has a bug. https://github.com/SlardarZhang/php-opencv/releases/tag/4.5.0%7C1.0.3
Thank you very much. We are waiting for version 8 PHP
Thank you very much. We are waiting for version 8 PHP
PHP 8 compile have lots of problems, may need more time
I see you try do that. so we are waiting...