Code Monkey home page Code Monkey logo

php-opencv's Introduction

PHP-OPENCV - PHP extension for OpenCV

Build Status Minimum PHP Version

Installation (2 steps)

Examples

Documentation

Requirements

  • OpenCV 4.5.5+
  • PHP 7.0 / 7.1 / 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2

Features

Helper for autocomplete and highlighting in your IDE

Contributors

php-opencv's People

Contributors

hihozhou avatar junker avatar morozovsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-opencv's Issues

Enable Extention in CentOs 7.9

php 8.0 ^ OpenCV 4.0.0 ^ CentOs7.9
2. in the CentOs we have single Root folder for each of PHP version so i upgrade your CentOS code to this code

yum install -y epel-release http://rpms.remirepo.net/enterprise/remi-release-7.rpm && 
yum-config-manager --enable remi-php80 

yum install -y php-cli wget git php-devel make cmake gcc gcc-c++ phpconfig rpm-build rpmdevtools 



git clone https://github.com/opencv/opencv_contrib.git 

git clone https://github.com/opencv/opencv.git 


cd opencv_contrib && git checkout 3.4 

cd ../opencv && git checkout 3.4 


cd .. && mkdir build && cd build 

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ../opencv 

make -j3 

make install 

cd ../..  


echo "/usr/local/lib64" > etc/ld.so.conf.d/opencv.conf && ldconfig 


yum -y install centos-release-scl && yum makecache && yum -y install devtoolset-7-gcc devtoolset-7-gcc-c++ 


scl enable devtoolset-7 bash 


export PKG_CONFIG=/usr/bin/pkg-config && export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig 

git clone https://github.com/php-opencv/php-opencv.git 


cd php-opencv  && git checkout php8.0 


/opt/cpanel/ea-php80/root/usr/bin/phpize && ./configure --with-php-config=/opt/cpanel/ea-php80/root/usr/bin/php-config 

make -j3

make install 


echo "extension=opencv.so" > /opt/cpanel/ea-php80/root/etc/php.d/opencv.ini

every things works well but in the last line i have problem !
my problem is in the last Line of the above code
if i add the last line of this code i got 503 error when Apache start
or if i add manualy extension=opencv.so on PHP.ini
i got the same error when apache start

also i try to add triple line of codes looklike your tutorial but finally i can't because in the CentOS i cant find the folder with the similar names in this code so i cant input and test it
i mean this ->

echo "extension=opencv.so" > /etc/php/8.1/cli/conf.d/opencv.ini
echo "extension=opencv.so" > /etc/php/8.1/fpm/conf.d/opencv.ini
echo "extension=opencv.so" > /etc/php/8.1/apache2/conf.d/opencv.ini

in the other seen , maybe my problem is locating opencv.so , what is location of opencv.so ? i search whole of the sever and cant find it

Compilation error with php7.4

Hi !

i have a compilation error with php-fpm 7.4 (see Dockerfile here => https://github.com/benjy8001/php-fpm-opencv/blob/master/7.4/Dockerfile)

Cloning into 'php-opencv'...
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking target system type... x86_64-pc-linux-musl
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib
checking for PHP extension directory... /usr/lib/php7/modules
checking for PHP installed headers prefix... /usr/include/php7
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for opencv support... yes, shared
checking for php debug... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for pkg-config... found
checking for opencv... found 4.5.0
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
/bin/sh /opt/php-opencv/libtool --mode=compile g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/php-opencv -DPHP_ATOM_INC -I/opt/php-opencv/include -I/opt/php-opencv/main -I/opt/php-opencv -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -I/usr/local/include/opencv4  -DHAVE_CONFIG_H  -g -O2   -c /opt/php-opencv/opencv.cc -o opencv.lo 
mkdir .libs
 g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/php-opencv -DPHP_ATOM_INC -I/opt/php-opencv/include -I/opt/php-opencv/main -I/opt/php-opencv -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -I/usr/local/include/opencv4 -DHAVE_CONFIG_H -g -O2 -c /opt/php-opencv/opencv.cc  -fPIC -DPIC -o .libs/opencv.o
/bin/sh /opt/php-opencv/libtool --mode=compile g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/php-opencv -DPHP_ATOM_INC -I/opt/php-opencv/include -I/opt/php-opencv/main -I/opt/php-opencv -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -I/usr/local/include/opencv4  -DHAVE_CONFIG_H  -g -O2   -c /opt/php-opencv/source/opencv2/core/opencv_mat.cc -o source/opencv2/core/opencv_mat.lo 
mkdir source/opencv2/core/.libs
 g++ -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/opt/php-opencv -DPHP_ATOM_INC -I/opt/php-opencv/include -I/opt/php-opencv/main -I/opt/php-opencv -I/usr/include/php7 -I/usr/include/php7/main -I/usr/include/php7/TSRM -I/usr/include/php7/Zend -I/usr/include/php7/ext -I/usr/include/php7/ext/date/lib -I/usr/local/include/opencv4 -DHAVE_CONFIG_H -g -O2 -c /opt/php-opencv/source/opencv2/core/opencv_mat.cc  -fPIC -DPIC -o source/opencv2/core/.libs/opencv_mat.o
In file included from /usr/include/php7/Zend/zend.h:27,
                 from /usr/include/php7/main/php.h:33,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/opt/php-opencv/source/opencv2/core/opencv_mat.cc: In function 'void opencv_mat_update_property_by_c_mat(zval*, cv::Mat*)':
/usr/include/php7/Zend/zend_types.h:663:38: error: cannot convert 'zend_object*' {aka '_zend_object*'} to 'zval*' {aka '_zval_struct*'}
  663 | #define Z_OBJ(zval)     (zval).value.obj
      |                         ~~~~~~~~~~~~~^~~
      |                                      |
      |                                      zend_object* {aka _zend_object*}
/usr/include/php7/Zend/zend_types.h:664:28: note: in expansion of macro 'Z_OBJ'
  664 | #define Z_OBJ_P(zval_p)    Z_OBJ(*(zval_p))
      |                            ^~~~~
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:53:46: note: in expansion of macro 'Z_OBJ_P'
   53 |     zend_update_property_long(opencv_mat_ce, Z_OBJ_P(z), "rows", sizeof("rows")-1, mat->rows);
      |                                              ^~~~~~~
In file included from /usr/include/php7/main/php.h:37,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_API.h:339:72: note:   initializing argument 2 of 'void zend_update_property_long(zend_class_entry*, zval*, const char*, size_t, zend_long)'
  339 | ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
      |                                                                  ~~~~~~^~~~~~
In file included from /usr/include/php7/Zend/zend.h:27,
                 from /usr/include/php7/main/php.h:33,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_types.h:663:38: error: cannot convert 'zend_object*' {aka '_zend_object*'} to 'zval*' {aka '_zval_struct*'}
  663 | #define Z_OBJ(zval)     (zval).value.obj
      |                         ~~~~~~~~~~~~~^~~
      |                                      |
      |                                      zend_object* {aka _zend_object*}
/usr/include/php7/Zend/zend_types.h:664:28: note: in expansion of macro 'Z_OBJ'
  664 | #define Z_OBJ_P(zval_p)    Z_OBJ(*(zval_p))
      |                            ^~~~~
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:54:46: note: in expansion of macro 'Z_OBJ_P'
   54 |     zend_update_property_long(opencv_mat_ce, Z_OBJ_P(z), "cols", sizeof("cols")-1, mat->cols);
      |                                              ^~~~~~~
In file included from /usr/include/php7/main/php.h:37,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_API.h:339:72: note:   initializing argument 2 of 'void zend_update_property_long(zend_class_entry*, zval*, const char*, size_t, zend_long)'
  339 | ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
      |                                                                  ~~~~~~^~~~~~
In file included from /usr/include/php7/Zend/zend.h:27,
                 from /usr/include/php7/main/php.h:33,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_types.h:663:38: error: cannot convert 'zend_object*' {aka '_zend_object*'} to 'zval*' {aka '_zval_struct*'}
  663 | #define Z_OBJ(zval)     (zval).value.obj
      |                         ~~~~~~~~~~~~~^~~
      |                                      |
      |                                      zend_object* {aka _zend_object*}
/usr/include/php7/Zend/zend_types.h:664:28: note: in expansion of macro 'Z_OBJ'
  664 | #define Z_OBJ_P(zval_p)    Z_OBJ(*(zval_p))
      |                            ^~~~~
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:55:46: note: in expansion of macro 'Z_OBJ_P'
   55 |     zend_update_property_long(opencv_mat_ce, Z_OBJ_P(z), "dims", sizeof("dims")-1, mat->dims);
      |                                              ^~~~~~~
In file included from /usr/include/php7/main/php.h:37,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_API.h:339:72: note:   initializing argument 2 of 'void zend_update_property_long(zend_class_entry*, zval*, const char*, size_t, zend_long)'
  339 | ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
      |                                                                  ~~~~~~^~~~~~
In file included from /usr/include/php7/Zend/zend.h:27,
                 from /usr/include/php7/main/php.h:33,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_types.h:663:38: error: cannot convert 'zend_object*' {aka '_zend_object*'} to 'zval*' {aka '_zval_struct*'}
  663 | #define Z_OBJ(zval)     (zval).value.obj
      |                         ~~~~~~~~~~~~~^~~
      |                                      |
      |                                      zend_object* {aka _zend_object*}
/usr/include/php7/Zend/zend_types.h:664:28: note: in expansion of macro 'Z_OBJ'
  664 | #define Z_OBJ_P(zval_p)    Z_OBJ(*(zval_p))
      |                            ^~~~~
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:56:46: note: in expansion of macro 'Z_OBJ_P'
   56 |     zend_update_property_long(opencv_mat_ce, Z_OBJ_P(z), "type", sizeof("type")-1, mat->type());
      |                                              ^~~~~~~
In file included from /usr/include/php7/main/php.h:37,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_API.h:339:72: note:   initializing argument 2 of 'void zend_update_property_long(zend_class_entry*, zval*, const char*, size_t, zend_long)'
  339 | ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zend_long value);
      |                                                                  ~~~~~~^~~~~~
In file included from /usr/include/php7/Zend/zend.h:27,
                 from /usr/include/php7/main/php.h:33,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_types.h:663:38: error: cannot convert 'zend_object*' {aka '_zend_object*'} to 'zval*' {aka '_zval_struct*'}
  663 | #define Z_OBJ(zval)     (zval).value.obj
      |                         ~~~~~~~~~~~~~^~~
      |                                      |
      |                                      zend_object* {aka _zend_object*}
/usr/include/php7/Zend/zend_types.h:664:28: note: in expansion of macro 'Z_OBJ'
  664 | #define Z_OBJ_P(zval_p)    Z_OBJ(*(zval_p))
      |                            ^~~~~
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:66:45: note: in expansion of macro 'Z_OBJ_P'
   66 |         zend_update_property(opencv_mat_ce, Z_OBJ_P(z), "shape", sizeof("shape")-1, &shape_zval);
      |                                             ^~~~~~~
In file included from /usr/include/php7/main/php.h:37,
                 from /opt/php-opencv/source/opencv2/core/../../../php_opencv.h:23,
                 from /opt/php-opencv/source/opencv2/core/opencv_mat.cc:18:
/usr/include/php7/Zend/zend_API.h:336:67: note:   initializing argument 2 of 'void zend_update_property(zend_class_entry*, zval*, const char*, size_t, zval*)'
  336 | ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, const char *name, size_t name_length, zval *value);
      |                                                             ~~~~~~^~~~~~
/opt/php-opencv/source/opencv2/core/opencv_mat.cc: In function 'zval* opencv_mat_write_property(zend_object*, zend_string*, zval*, void**)':
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:841:40: error: cannot convert 'zend_object*' {aka '_zend_object*'} to 'zval*' {aka '_zval_struct*'} in argument passing
  841 |     std_object_handlers.write_property(object,member,value,cache_slot);
      |                                        ^~~~~~
      |                                        |
      |                                        zend_object* {aka _zend_object*}
/opt/php-opencv/source/opencv2/core/opencv_mat.cc: In function 'void opencv_mat_init()':
/opt/php-opencv/source/opencv2/core/opencv_mat.cc:857:49: error: invalid conversion from 'zval* (*)(zend_object*, zend_string*, zval*, void**)' {aka '_zval_struct* (*)(_zend_object*, _zend_string*, _zval_struct*, void**)'} to 'zend_object_write_property_t' {aka 'void (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)'} [-fpermissive]
  857 |     opencv_mat_object_handlers.write_property = opencv_mat_write_property;
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                 |
      |                                                 zval* (*)(zend_object*, zend_string*, zval*, void**) {aka _zval_struct* (*)(_zend_object*, _zend_string*, _zval_struct*, void**)}
make: *** [Makefile:194: source/opencv2/core/opencv_mat.lo] Error 1

E: Unable to locate package libjasper-dev

่ฟ‘ๆœŸ้œ€่ฆๅœจubuntu18.04็ณป็ปŸไธŠๅฎ‰่ฃ…opencvไฝ†ๆ˜ฏๅœจๅฎ‰่ฃ…ไพ่ต–ๅŒ…็š„่ฟ‡็จ‹ไธญ๏ผŒๆœ‰ไธ€ไธชไพ่ต–ๅŒ…๏ผŒlibjasper-devๅœจไฝฟ็”จๅ‘ฝไปค

sudo apt-get install libjaster-dev

ๆ็คบ๏ผšerrorE: unable to locate libjasper-dev

ๅŽๆฅgoogleๅˆฐ่งฃๅ†ณๅŠžๆณ•๏ผŒๅคๅˆถๅˆฐ่ฟ™้‡Œ

sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt update
sudo apt install libjasper1 libjasper-dev

ๆˆๅŠŸ็š„่งฃๅ†ณไบ†้—ฎ้ข˜๏ผŒๅ…ถไธญlibjasper1ๆ˜ฏlibjasper-dev็š„ไพ่ต–ๅŒ…

Unsupported format or combination of formats

i downloaded latest model for facedetection from opencv_zoo and when i try to loat it i get error:

OpenCV(4.7.0) /root/opencv/modules/dnn/src/onnx/onnx_importer.cpp:275: error: (-210:Unsupported format or combination of formats) Failed to parse ONNX model: /opt/opencv_zoo-master/models/face_detection_yunet/face_detection_yunet_2022mar.onnx in function 'ONNXImporter'

but when i load onnx model from php-opencv then everything works correctly.

opencv: git@master
opencv_contrib: git@master
php-opencv: git@master

cv::ORB

Hello just installed this and wanted to know if ORB is supported since I get a message saying it is not found.

Uncaught Error: Class 'cv\ORB' not found

also used

use CV\ORB;

I also tried cv\SIFT.

Maybe I am trying to use something in PHP that is not possible and should just use python to do the work

Call to undefined function CV\findContours()

hi,

i am using php 8.2.8 via docker:

RUN wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
RUN unzip opencv.zip
RUN mkdir -p build && cd build && cmake ../opencv-4.x && cmake --build . && make install

RUN apt-get install -y libopencv-dev
RUN git clone https://github.com/php-opencv/php-opencv.git
RUN cd php-opencv && phpize && ./configure --with-php-config=/usr/local/bin/php-config && make && make install && make test
RUN echo "extension=opencv.so" > /usr/local/etc/php/conf.d/docker-php-ext-opencv.ini

and hereยดs my code:

<?php

use function CV\{imread, cvtColor, GaussianBlur, threshold, findContours, drawContours, minAreaRect};
use const CV\{COLOR_BGR2GRAY, THRESH_BINARY, THRESH_OTSU, RETR_EXTERNAL, CHAIN_APPROX_SIMPLE};
use CV\Size;
// ..................
list($contours, $_) = findContours($thresh, RETR_EXTERNAL, CHAIN_APPROX_SIMPLE);

I donยดt understand why findContours is not available.
is my opencv version too old or did I miss something while compiling it ???

thanks for any help!!

install php extension is success,but run example get error 'CV\Face\FacemarkLBF' not found

my php version in docker : php7.3

install from php-opencv/php-opencv php7.3 branch

make and make install is success. but make test has error info.

  • my system info
    php -m:
root@97d369a6a501:/data/php-opencv# php -m
[PHP Modules]
Core
ctype
curl
date
dom
fileinfo
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
opencv
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
SimpleXML
sockets
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

make test failed info:

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
LBPHFaceRecognizer [tests/faceRecognizer.phpt]
LBPHFaceRecognizer with Decode [tests/faceRecognizerDecode.phpt]
FacemarkLBF::create [tests/facemark.phpt]
=====================================================================

use example code:

use CV\CascadeClassifier, CV\Face\FacemarkLBF;
use function CV\{circle, imread, imwrite, cvtColor, equalizeHist, drawContours, putText};
use CV\Scalar;
use CV\Mat;
use const CV\{COLOR_BGR2GRAY};

$src = imread("images/b.jpg");
$gray = cvtColor($src, COLOR_BGR2GRAY);
equalizeHist($gray, $gray);

// face by lbpcascade_frontalface
$faceClassifier = new CascadeClassifier();
$faceClassifier->load('models/lbpcascades/lbpcascade_frontalface.xml');
$faces = null;
$faceClassifier->detectMultiScale($gray, $faces);
//var_export($faces);

php return error:

Fatal error: Uncaught Error: Class 'CV\Face\FacemarkLBF' not found in

About Clahe functions

Hi guys, firstly I would like to thank you guys for the work done on this repo, secondly, it seems that all the links to the Api documentation is not working, and there are some OpenCV functions missing, for example CLAHE functions (createCLAHE), which are from opencv2/imgproc.hpp class. Is it possible to add them? can I do it my self (documentation to do so)? Thanks

Opencv 4.1.1 / php-opencv / CentOS 7.7.1908 - Configure fail

Hi !

I try to compile with library con centos with opencv 4.1.1. But on configure step, opencv was not found ...

export PKG_CONFIG=/usr/bin/pkg-config && export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64/pkgconfig/ && export LD_LIBRARY_PATH="/usr/local/lib64/"
scl enable devtoolset-7 bash
git clone https://github.com/php-opencv/php-opencv.git
cd php-opencv/
phpize
./configure --with-php-config=/usr/bin/php-config
checking for opencv... not found
configure: error: Ooops ! no opencv detected in the system

The configure file is searching opencv with the label 'opencv4' instead of 'opencv' with pkg-config.

What about adding this extension to PECL?

Installing PHP extensions from the pecl repository is much easier than installing them from a github repository (in particular, we can install the latest version without knowing it, the configure options are described by the package.xml file).

So, what about submitting this extension to pecl?

We already have https://pecl.php.net/package/opencv but it seems empty: you could take it over...

Microsoft JScript Runtime Error: 'PHP_OPENCV' is not defined

Hello, initially, thanks for this lib that seems to be very useful for us developers, I'm new to php compilations and I don't have much knowledge about compilation, I already compiled other php dlls for windows, and I had no problems, but when trying to compile the version of php-opencv, in windows environment, I have the problem due to an error : Microsoft JScript Runtime Error: 'PHP_OPENCV' is notdefined

I'm using:

Windows 10
PHP 8.0.2
php-sdk-binary-tools - 2.2.0
Visual Studio 2019 Developer Command Prompt v16.11.17 x64bits

Following the steps in the documentation:

https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2

Log:

Build dir: D:\Php\Php-8.0-sdk\phpdev\vc15\x64\php-src-8.0.20\x64\Release_TS
PHP Core: php8ts.dll and php8ts.lib

Checking for wspiapi.h ...
Enabling IPv6 support
Enabling SAPI sapi\cli
Checking for library edit_a.lib;edit.lib ...
Enabling extension ext\date
Enabling extension ext\hash
Checking for KeccakHash.h ... ext/hash/sha3/generic64lc
Enabling extension ext\json
Enabling extension ext\pcre
Enabling extension ext\reflection
Enabling extension ext\spl
Checking for timelib_config.h ... ext/date/lib
Enabling extension ext\standard
D:\Php\Php-8.0-sdk\phpdev\vc15\x64\php-src-8.0.20\configure.js(6275, 1) Microsoft JScript Runtime Error: 'PHP_OPENCV' is not defined

Update to use with PHP 8.1 and prepare for 8.1

Are there plans to update this extension for PHP 8.1? Also, PHP 8.2 comes out next month, it'd be great to see that as well.

Although I'm interested in this for a hobby project (that is, unfunded), I might be able to contribute some money toward development. Send me a private message if you'd like, [email protected]

่ฏท้—ฎๆœ‰ๆฒกๆœ‰ๆ›ดๅŠ ่ฏฆ็ป†็š„ๆŒ‡ๅผ•ๆ–‡ๆกฃ๏ผŒ่ฎฉๆˆ‘ๅฏไปฅๆ›ด่ฝปๆพ็š„ๅฎ‰่ฃ…ไธ€ๆ•ดๅฅ—php-opencvๅˆฐcentos 7+็‰ˆๆœฌ็š„linuxๆœๅŠกๅ™จไธŠ

ไฝ ๅฅฝ๏ผŒๆœ‰ๆฒกๆœ‰ๆ›ดๅŠ ่ฏฆ็ป†็š„ๆŒ‡ๅผ•ๆ–‡ๆกฃ๏ผŒ่ฎฉๆˆ‘ๅฏไปฅๆ›ด่ฝปๆพ็š„ๅฎ‰่ฃ…ไธ€ๆ•ดๅฅ—php-opencvๅˆฐcentos 7+็‰ˆๆœฌ็š„linuxๆœๅŠกๅ™จไธŠ๏ผŒๆˆ‘ๅœจubuntuๅฎ‰่ฃ…ไนŸไธบๆˆๅŠŸ๏ผŒๆŒ‰็…งๅ‘ฝไปคๆ‰ง่กŒ็ผ–่ฏ‘็š„ๅฏ่ƒฝๆ€งๅคชไฝŽไบ†๏ผŒ็ขฐๅˆฐๅ„็งๆƒ…ๅ†ต๏ผŒไพ‹ๅฆ‚็ผบๅฐ‘ๆ–‡ไปถ็ญ‰๏ผŒๅ…จ้ƒจ้…็ฝฎๅฅฝไบ†๏ผŒ็ณป็ปŸไธญ็š„ไธ€ไบ›php่ฎพ็ฝฎๅ’Œๅ‚ๆ•ฐๅˆๆ‰“ไนฑไบ†ไน‹ๅ‰็š„้…็ฝฎใ€‚

Can't compile on Debian 10

Hi,

I tried to install php-opencv on a my Debian 10, but it won't compile because of this error:

/root/php-opencv/source/opencv2/core/opencv_mat.cc: In function โ€˜void opencv_mat_init()โ€™: /root/php-opencv/source/opencv2/core/opencv_mat.cc:858:49: error: invalid conversion from โ€˜void (*)(zval*, zval*, zval*, void**)โ€™ {aka โ€˜void (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)โ€™} to โ€˜zend_object_write_property_tโ€™ {aka โ€˜_zval_struct* (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)โ€™} [-fpermissive] opencv_mat_object_handlers.write_property = opencv_mat_write_property; ^~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:194: source/opencv2/core/opencv_mat.lo] Error 1

Memory leak in php-opencv?

Sorry for making yet another thread but i found what seems to be a memory issue.

I was working yesterday & today and noticed that my server became very slow after a couple of minutes & it turned out that everytime i used php-opencv on my website the memory usage increased by 200mb per image that was processed, the memory did not get released & after about 30 images all my memory was allocated & the server started using swap memory, so it became really slow:

https://i.imgur.com/YgyeXDl.png (php-fpm uses almost 8GiB of memory in total)

OpenCV has some memory leak issues when using Mat functions/objects & without using delete[] and/or release() properly & since php-opencv uses Mat for blobFromImage etc i checked the sourcecode, primarily "opencv_mat.cc" but it seems like the function "opencv_mat_free_obj()" should release/delete the memory properly of obj->mat & in "opencv_dnn.cc" i added "delete new_obj->mat;" for blobFromImage (just to try to debug the memory leak), i re-compiled & installed the .so again & restarted my server but i still had memory leaks.

I tested installing php-opencv on 3 different Debian10 servers & all of them had the same issue, i asked a friend that uses Ubuntu 18.04.03 if he had the same issue & he said they have, they "solved" it by changing the pool settings to:

pm = ondemand
pm.process_idle_timout = 10s
pm.max_requests 20

These settings incredible low for a production server so the performance suffers alot

So, have anyone else noticed a memory leak on your computer/server when using php-opencv?

I will read through the sourcecode again & see if there is any memory related problems i can find but when i checked earlier today i could not see any obvious issues so maybe there is an issue with ZEND instead? Or the interface between php-opencv and ZEND?

All my servers have default settings & everything is installed from the official repositories (apt install) & all .ini files are unchanged from default

Can't compile for PHP 7.4

After 100% of "building", many screens of "installing" and some lines of "checking", the process ends with this error message:

/php-opencv/source/opencv2/core/opencv_mat.cc: In function 'void opencv_mat_init()':
/php-opencv/source/opencv2/core/opencv_mat.cc:858:49: error: invalid conversion from 'void (*)(zval*, zval*, zval*, void**)' {aka 'void (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)'} to 'zend_object_write_property_t' {aka '_zval_struct* (*)(_zval_struct*, _zval_struct*, _zval_struct*, void**)'} [-fpermissive]
     opencv_mat_object_handlers.write_property = opencv_mat_write_property;
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:194: source/opencv2/core/opencv_mat.lo] Error 1

Some more infos:

PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902

Do php-opencv support full ssd_mobilenet_v2?

First of, thank you morozovsk for creating this version of php-opencv, it seems great ๐Ÿ‘

One question though: Does it work with the full ssd_mobilenet_v2?

The example here: https://github.com/php-opencv/php-opencv-examples/blob/master/detect_objects_by_dnn_mobilenet.php

The example is using ssdlite_mobilenet_v2 and ssd_mobilenet_v1, both of them are having some problems with alot of my animal pictures.

I am using ssd_mobilenet_v2 in Golang and it is much better at recognising animals, almost as good as the caffe model in your example: https://github.com/php-opencv/php-opencv-examples/blob/master/classify_image_by_dnn_mobilenet.php

So i have downloaded the "MobileNet-SSD v2" weights and config from: https://jeanvitor.com/tensorflow-object-detecion-opencv/

I updated my code in "detect_objects_by_dnn_mobilenet.php" to this:

$src = imread($PhotoSource); // opencv loads image to matrix with BGR order


$blob = \CV\DNN\blobFromImage($src, 0.017, new \CV\Size(300,300), new Scalar(127.5, 127.5, 127.5), true, false); // convert image to 4 dimensions matrix
//var_export($blob);

//$net = \CV\DNN\readNetFromTensorflow('models/ssd_mobilenet_v1_coco/frozen_inference_graph.pb', 'models/ssd_mobilenet_v1_coco/ssd_mobilenet_v1_coco.pbtxt');
$net = \CV\DNN\readNetFromTensorflow('opencv/models/mobilenetv2/frozen_inference_graph.pb', 'opencv/models/mobilenetv2/ssd_mobilenet_v2_coco_2018_03_29.pbtxt');
//$net = \CV\DNN\readNetFromTensorflow('opencv/models/ssdlite_mobilenet_v2_coco/frozen_inference_graph.pb', 'opencv/models/ssdlite_mobilenet_v2_coco/ssdlite_mobilenet_v2_coco.pbtxt');


$net->setInput($blob, "");

$r = $net->forward();
// var_export($r);



$rectangles = [];
for ($i = 0; $i < $r->shape[2]; $i++) {
    $classId = $r->atIdx([0,0,$i,1]);
    $confidence = intval($r->atIdx([0,0,$i,2]) * 100);


    if ($classId && $confidence > 3) {
        $startX = $r->atIdx([0,0,$i,3]) * $src->cols;
        $startY = $r->atIdx([0,0,$i,4]) * $src->rows;
        $endX = $r->atIdx([0,0,$i,5]) * $src->cols;
        $endY = $r->atIdx([0,0,$i,6]) * $src->rows;

        $scalar = new Scalar(0, 0, 0);
        \CV\rectangle($src, $startX, $startY, $endX, $endY, $scalar, 4);

        $text = 'ClassID=' . $classId . '  ' . " $confidence% ";
        echo '<br><br>' . $text;
        \CV\rectangle($src, $startX, $startY - 40, $startX + 18 * strlen($text), $startY, new Scalar(0,0,0), -2);
        \CV\putText($src, " $text ", new \CV\Point($startX, $startY - 10), 0, 1, new Scalar(255,255,255), 0);
    }
}

I had to change to $confidence > 3 in the if statement because the confidence score is so low now and the output is really odd, the boxes is not at all correct & i have tested this on 100 pictures and most of the times it just outputs several classId of 1, it rarely finds anything with another class than 1:

As one can see from the picture, the Caffe classifier is by far the best one, on second place is ssdlite_mobilenet_v2 and at last place and does not work at all is ssd_mobilenet_v2 that i downloaded and used in the code.

So, i guess, is ssd_mobilenet_v2 not compatible with php-opencv?

php-opencv configure error on centos 7.8 php72

First - I checked spigorny's resolution in the previous bug and have no such file in my opencv build/unix-install directory.

I followed all the steps for compiling on Centos/PHP72/OpenCv and everything has worked without issue. I'm not really experienced with process, but it would seem opencv is just somewhere config doesn't know to look...(IMHO).

One of the last steps involving php-opencv.

./configure --with-php-config=/usr/bin/php-config
Results in : configure: error: Ooops ! no opencv detected in the system

OpenCV compiled and installed without issue.
/user/local/bin has the following
-rwxr-xr-x. 1 root root 30752 Nov 3 18:14 opencv_annotation
-rwxr-xr-x. 1 root root 144888 Nov 3 18:14 opencv_interactive-calibration
-rwxr-xr-x. 1 root root 31400 Nov 3 18:04 opencv_version
-rwxr-xr-x. 1 root root 53176 Nov 3 18:14 opencv_visualisation
-rwxr-xr-x. 1 root root 14320 Nov 3 18:13 opencv_waldboost_detector
-rwxr-xr-x. 1 root root 676 Nov 3 17:59 setup_vars_opencv4.sh

Here are the results of the ./configure

_./configure --with-php-config=/usr/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.14.3 (ok)
checking for gawk... gawk
checking for opencv support... yes, shared
checking for php debug... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for pkg-config... found
checking for opencv... not found
configure: error: Ooops ! no opencv detected in the system_

The env variables appear to be there
PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/centos/.local/bin:/home/centos/bin
SELINUX_LEVEL_REQUESTED=
HISTCONTROL=ignoredups
SHLVL=2
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
PKG_CONFIG=/usr/bin/pkg-config

When I check my opencv make install this is the output:

Install the project...
-- Install configuration: "RELEASE"
-- Up-to-date: /usr/local/share/licenses/opencv4/ippicv-readme.htm
-- Up-to-date: /usr/local/share/licenses/opencv4/ippicv-EULA.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippicv-third-party-programs.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippiw-support.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippiw-third-party-programs.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/ippiw-EULA.txt
-- Up-to-date: /usr/local/share/licenses/opencv4/opencl-headers-LICENSE.txt
-- Up-to-date: /usr/local/include/opencv4/opencv2/cvconfig.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/opencv_modules.hpp
-- Up-to-date: /usr/local/lib64/cmake/opencv4/OpenCVModules.cmake
-- Up-to-date: /usr/local/lib64/cmake/opencv4/OpenCVModules-release.cmake
-- Up-to-date: /usr/local/lib64/cmake/opencv4/OpenCVConfig-version.cmake
-- Up-to-date: /usr/local/lib64/cmake/opencv4/OpenCVConfig.cmake
-- Up-to-date: /usr/local/bin/setup_vars_opencv4.sh
-- Up-to-date: /usr/local/share/opencv4/valgrind.supp
-- Up-to-date: /usr/local/share/opencv4/valgrind_3rdparty.supp
-- Up-to-date: /usr/local/share/licenses/opencv4/libjpeg-turbo-README.md
-- Up-to-date: /usr/local/share/licenses/opencv4/libjpeg-turbo-LICENSE.md
-- Up-to-date: /usr/local/share/licenses/opencv4/libjpeg-turbo-README.ijg
-- Up-to-date: /usr/local/share/licenses/opencv4/libtiff-COPYRIGHT
-- Up-to-date: /usr/local/share/licenses/opencv4/libopenjp2-README.md
-- Up-to-date: /usr/local/share/licenses/opencv4/libopenjp2-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/libpng-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/libpng-README
-- Up-to-date: /usr/local/share/licenses/opencv4/openexr-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/openexr-AUTHORS.ilmbase
-- Up-to-date: /usr/local/share/licenses/opencv4/openexr-AUTHORS.openexr
-- Up-to-date: /usr/local/share/licenses/opencv4/protobuf-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/protobuf-README.md
-- Up-to-date: /usr/local/share/licenses/opencv4/quirc-LICENSE
-- Up-to-date: /usr/local/share/licenses/opencv4/ittnotify-LICENSE.BSD
-- Up-to-date: /usr/local/share/licenses/opencv4/ittnotify-LICENSE.GPL
-- Up-to-date: /usr/local/include/opencv4/opencv2/opencv.hpp
-- Up-to-date: /usr/local/share/licenses/opencv4/ade-LICENSE
-- Up-to-date: /usr/local/lib64/libopencv_core.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_core.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_core.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/ocl_defs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/opencl_info.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/opencl_svm.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clamdblas.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_clamdfft.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_clamdblas.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_clamdfft.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_gl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_20.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/block.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/border_interpolate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/color.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/common.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/datamov_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/dynamic_smem.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/emulation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/filters.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/funcattrib.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/functional.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/limits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/reduce.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/saturate_cast.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/scan.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/simd_functions.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/transform.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/type_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/utility.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/vec_distance.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/vec_math.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/vec_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/warp.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/warp_reduce.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/warp_shuffle.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/color_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/reduce.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/reduce_key_val.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/transform_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/type_traits_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda/detail/vec_distance_detail.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/affine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/async.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/bindings_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/bufferpool.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/check.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/core_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda_stream_accessor.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cuda_types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cv_cpu_dispatch.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cv_cpu_helper.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvdef.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvstd.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvstd.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/cvstd_wrapper.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/directx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/eigen.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/fast_math.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/hal.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/interface.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_avx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_avx512.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_cpp.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_forward.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_msa.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_neon.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_rvv.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_sse.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_sse_em.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_vsx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/intrin_wasm.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/msa_macros.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/hal/simd_utils.impl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/mat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/mat.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/matx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/neon_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/ocl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/ocl_genbase.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/opengl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/operations.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/optim.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/ovx.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/persistence.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/saturate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/simd_intrinsics.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/softfloat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/sse_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/types_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utility.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/allocator_stats.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/allocator_stats.impl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/filesystem.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/instrumentation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/logger.defines.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/logger.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/logtag.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/tls.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/utils/trace.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/va_intel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/version.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/vsx_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/detail/async_promise.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/core/detail/exception_ptr.hpp
-- Up-to-date: /usr/local/share/licenses/opencv4/SoftFloat-COPYING.txt
-- Up-to-date: /usr/local/lib64/libopencv_flann.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_flann.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_flann.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/all_indices.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/allocator.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/any.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/autotuned_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/composite_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/config.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/defines.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/dist.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/dummy.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/dynamic_bitset.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/flann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/flann_base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/general.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/ground_truth.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/hdf5.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/heap.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/hierarchical_clustering_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/index_testing.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/kdtree_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/kdtree_single_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/kmeans_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/linear_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/logger.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/lsh_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/lsh_table.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/matrix.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/miniflann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/nn_index.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/object_factory.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/params.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/random.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/result_set.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/sampling.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/saving.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/simplex_downhill.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/flann/timer.h
-- Up-to-date: /usr/local/lib64/libopencv_imgproc.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_imgproc.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_imgproc.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/hal/hal.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/hal/interface.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/imgproc_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/types_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgproc/detail/gcgraph.hpp
-- Up-to-date: /usr/local/lib64/libopencv_intensity_transform.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_intensity_transform.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_intensity_transform.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/intensity_transform.hpp
-- Up-to-date: /usr/local/lib64/libopencv_ml.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_ml.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_ml.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/ml.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ml/ml.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ml/ml.inl.hpp
-- Up-to-date: /usr/local/lib64/libopencv_phase_unwrapping.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_phase_unwrapping.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_phase_unwrapping.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/phase_unwrapping.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/phase_unwrapping/histogramphaseunwrapping.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/phase_unwrapping/phase_unwrapping.hpp
-- Up-to-date: /usr/local/lib64/libopencv_photo.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_photo.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_photo.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo/cuda.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/photo/photo.hpp
-- Up-to-date: /usr/local/lib64/libopencv_plot.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_plot.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_plot.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/plot.hpp
-- Up-to-date: /usr/local/lib64/libopencv_quality.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_quality.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_quality.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/quality_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/qualitybase.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/qualitybrisque.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/qualitygmsd.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/qualitymse.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/qualitypsnr.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/quality/qualityssim.hpp
-- Up-to-date: /usr/local/share/opencv4/quality/brisque_model_live.yml
-- Up-to-date: /usr/local/share/opencv4/quality/brisque_range_live.yml
-- Up-to-date: /usr/local/lib64/libopencv_reg.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_reg.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_reg.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/map.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mapaffine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mapper.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mappergradaffine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mappergradeuclid.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mappergradproj.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mappergradshift.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mappergradsimilar.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mapperpyramid.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mapprojec.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/reg/mapshift.hpp
-- Up-to-date: /usr/local/lib64/libopencv_surface_matching.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_surface_matching.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_surface_matching.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/surface_matching.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/surface_matching/icp.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/surface_matching/pose_3d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/surface_matching/ppf_helpers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/surface_matching/ppf_match_3d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/surface_matching/t_hash_int.hpp
-- Up-to-date: /usr/local/lib64/libopencv_xphoto.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_xphoto.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_xphoto.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto/bm3d_image_denoising.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto/dct_image_denoising.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto/inpainting.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto/oilpainting.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto/tonemap.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xphoto/white_balance.hpp
-- Up-to-date: /usr/local/lib64/libopencv_dnn.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_dnn.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_dnn.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/all_layers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/dict.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/dnn.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/dnn.inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/layer.details.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/layer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/shape_utils.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/utils/inference_engine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn/version.hpp
-- Up-to-date: /usr/local/lib64/libopencv_dnn_superres.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_dnn_superres.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_dnn_superres.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/dnn_superres.hpp
-- Up-to-date: /usr/local/lib64/libopencv_features2d.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_features2d.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_features2d.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/features2d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/features2d/features2d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/features2d/hal/interface.h
-- Up-to-date: /usr/local/lib64/libopencv_fuzzy.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_fuzzy.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_fuzzy.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/fuzzy.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/fuzzy/fuzzy_F0_math.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/fuzzy/fuzzy_F1_math.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/fuzzy/fuzzy_image.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/fuzzy/types.hpp
-- Up-to-date: /usr/local/lib64/libopencv_hfs.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_hfs.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_hfs.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/hfs.hpp
-- Up-to-date: /usr/local/lib64/libopencv_img_hash.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_img_hash.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_img_hash.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/average_hash.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/block_mean_hash.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/color_moment_hash.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/img_hash_base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/marr_hildreth_hash.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/phash.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/img_hash/radial_variance_hash.hpp
-- Up-to-date: /usr/local/lib64/libopencv_imgcodecs.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_imgcodecs.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_imgcodecs.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/imgcodecs_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/ios.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/imgcodecs/macosx.h
-- Up-to-date: /usr/local/lib64/libopencv_line_descriptor.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_line_descriptor.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_line_descriptor.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/line_descriptor.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/line_descriptor/descriptor.hpp
-- Up-to-date: /usr/local/lib64/libopencv_saliency.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_saliency.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_saliency.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/saliency.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/saliency/saliencyBaseClasses.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp
-- Up-to-date: /usr/local/lib64/libopencv_text.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_text.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_text.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/text.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/text/erfilter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/text/ocr.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/text/swt_text_detection.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/text/textDetector.hpp
-- Up-to-date: /usr/local/lib64/libopencv_videoio.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_videoio.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_videoio.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/cap_ios.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/registry.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/videoio.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videoio/videoio_c.h
-- Up-to-date: /usr/local/lib64/libopencv_calib3d.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_calib3d.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_calib3d.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/calib3d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/calib3d/calib3d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/calib3d/calib3d_c.h
-- Up-to-date: /usr/local/lib64/libopencv_datasets.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_datasets.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_datasets.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/ar_hmdb.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/ar_sports.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/dataset.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/fr_adience.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/fr_lfw.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/gr_chalearn.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/gr_skig.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/hpe_humaneva.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/hpe_parse.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/ir_affine.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/ir_robot.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/is_bsds.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/is_weizmann.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/msm_epfl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/msm_middlebury.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/or_imagenet.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/or_mnist.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/or_pascal.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/or_sun.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/pd_caltech.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/pd_inria.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/slam_kitti.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/slam_tumindoor.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/sr_bsds.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/sr_div2k.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/sr_general100.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/tr_chars.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/tr_icdar.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/tr_svt.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/track_alov.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/track_vot.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/datasets/util.hpp
-- Up-to-date: /usr/local/lib64/libopencv_highgui.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_highgui.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_highgui.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/highgui.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/highgui/highgui.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/highgui/highgui_c.h
-- Up-to-date: /usr/local/lib64/libopencv_mcc.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_mcc.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_mcc.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/mcc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/mcc/checker_detector.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/mcc/checker_model.hpp
-- Up-to-date: /usr/local/lib64/libopencv_objdetect.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_objdetect.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_objdetect.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect/detection_based_tracker.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/objdetect/objdetect.hpp
-- Up-to-date: /usr/local/lib64/libopencv_rapid.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_rapid.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_rapid.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/rapid.hpp
-- Up-to-date: /usr/local/lib64/libopencv_rgbd.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_rgbd.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_rgbd.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/depth.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/dynafu.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/intrinsics.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/kinfu.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/large_kinfu.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/linemod.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/rgbd/volume.hpp
-- Up-to-date: /usr/local/lib64/libopencv_shape.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_shape.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_shape.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/shape.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/shape/emdL1.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/shape/hist_cost.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/shape/shape.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/shape/shape_distance.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/shape/shape_transformer.hpp
-- Up-to-date: /usr/local/lib64/libopencv_structured_light.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_structured_light.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_structured_light.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/structured_light.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/structured_light/graycodepattern.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/structured_light/sinusoidalpattern.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/structured_light/structured_light.hpp
-- Up-to-date: /usr/local/lib64/libopencv_video.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_video.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_video.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/video.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/background_segm.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/legacy/constants_c.h
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/tracking.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/video/video.hpp
-- Up-to-date: /usr/local/lib64/libopencv_videostab.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_videostab.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_videostab.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/deblurring.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/fast_marching.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/fast_marching_inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/frame_source.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/global_motion.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/inpainting.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/log.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/motion_core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/motion_stabilizing.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/optical_flow.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/outlier_rejection.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/ring_buffer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/stabilizer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/videostab/wobble_suppression.hpp
-- Up-to-date: /usr/local/lib64/libopencv_xfeatures2d.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_xfeatures2d.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_xfeatures2d.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/xfeatures2d.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xfeatures2d/cuda.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/xfeatures2d/nonfree.hpp
-- Up-to-date: /usr/local/lib64/libopencv_ximgproc.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_ximgproc.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_ximgproc.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/brightedges.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/color_match.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/deriche_filter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/disparity_filter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/edge_filter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/edgeboxes.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/edgepreserving_filter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/estimated_covariance.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/fast_hough_transform.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/fast_line_detector.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/fourier_descriptors.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/lsc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/paillou_filter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/peilin.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/ridgefilter.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/run_length_morphology.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/seeds.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/segmentation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/slic.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/sparse_match_interpolator.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/structured_edge_detection.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ximgproc/weighted_median_filter.hpp
-- Up-to-date: /usr/local/lib64/libopencv_xobjdetect.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_xobjdetect.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_xobjdetect.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/xobjdetect.hpp
-- Up-to-date: /usr/local/bin/opencv_waldboost_detector
-- Up-to-date: /usr/local/lib64/libopencv_aruco.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_aruco.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_aruco.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/aruco.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/aruco/charuco.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/aruco/dictionary.hpp
-- Up-to-date: /usr/local/lib64/libopencv_bgsegm.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_bgsegm.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_bgsegm.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/bgsegm.hpp
-- Up-to-date: /usr/local/lib64/libopencv_bioinspired.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_bioinspired.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_bioinspired.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/bioinspired.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/bioinspired/bioinspired.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/bioinspired/retina.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/bioinspired/retinafasttonemapping.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/bioinspired/transientareassegmentationmodule.hpp
-- Up-to-date: /usr/local/lib64/libopencv_ccalib.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_ccalib.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_ccalib.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/ccalib.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ccalib/multicalib.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ccalib/omnidir.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/ccalib/randpattern.hpp
-- Up-to-date: /usr/local/lib64/libopencv_dnn_objdetect.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_dnn_objdetect.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_dnn_objdetect.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/core_detect.hpp
-- Up-to-date: /usr/local/lib64/libopencv_dpm.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_dpm.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_dpm.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/dpm.hpp
-- Up-to-date: /usr/local/lib64/libopencv_face.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_face.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_face.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/face.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/bif.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/face_alignment.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/facemark.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/facemarkAAM.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/facemarkLBF.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/facemark_train.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/facerec.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/mace.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/face/predict_collector.hpp
-- Up-to-date: /usr/local/lib64/libopencv_gapi.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_gapi.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_gapi.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/gcpukernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/cpu/video.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/gfluidbuffer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/gfluidkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/fluid/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/garg.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/garray.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gasync_context.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcall.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcommon.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcompiled.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcompiled_async.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcompoundkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcomputation.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gcomputation_async.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gframe.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gmat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gmetaarg.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gopaque.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gproto.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gpu/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gpu/ggpukernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gpu/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gscalar.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gstreaming.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gtransform.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gtype_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/gtyped.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/bindings_ie.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/ie.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/infer/parsers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/media.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/ocl/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/ocl/goclkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/ocl/imgproc.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/opencv_includes.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/operators.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/assert.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/convert.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/cvdefs.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/exports.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/mat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/saturate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/scalar.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/own/types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/plaidml/core.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/plaidml/gplaidmlkernel.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/plaidml/plaidml.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/render.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/render/render.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/render/render_types.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/rmat.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/s11n.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/s11n/base.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/cap.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/desync.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/streaming/source.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/any.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/compiler_hints.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/optional.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/throw.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/type_traits.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/util.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/util/variant.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/gapi/video.hpp
-- Up-to-date: /usr/local/lib64/libopencv_optflow.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_optflow.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_optflow.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/optflow.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/optflow/motempl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/optflow/pcaflow.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/optflow/rlofflow.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/optflow/sparse_matching_gpc.hpp
-- Up-to-date: /usr/local/lib64/libopencv_stitching.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_stitching.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_stitching.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/warpers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/autocalib.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/blenders.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/camera.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/exposure_compensate.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/matchers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/motion_estimators.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/seam_finders.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/timelapsers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/util.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/util_inl.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/warpers.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stitching/detail/warpers_inl.hpp
-- Up-to-date: /usr/local/lib64/libopencv_superres.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_superres.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_superres.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/superres.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/superres/optical_flow.hpp
-- Up-to-date: /usr/local/lib64/libopencv_tracking.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_tracking.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_tracking.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/feature.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/kalman_filters.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/onlineBoosting.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/onlineMIL.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/tldDataset.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/tracker.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/tracking.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/tracking/tracking_by_matching.hpp
-- Up-to-date: /usr/local/lib64/libopencv_stereo.so.4.5.0
-- Up-to-date: /usr/local/lib64/libopencv_stereo.so.4.5
-- Up-to-date: /usr/local/lib64/libopencv_stereo.so
-- Up-to-date: /usr/local/include/opencv4/opencv2/stereo.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stereo/descriptor.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stereo/quasi_dense_stereo.hpp
-- Up-to-date: /usr/local/include/opencv4/opencv2/stereo/stereo.hpp
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_eye.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_eye_tree_eyeglasses.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalcatface.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalcatface_extended.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt2.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_alt_tree.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_frontalface_default.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_fullbody.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_lefteye_2splits.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_licence_plate_rus_16stages.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_lowerbody.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_profileface.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_righteye_2splits.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_russian_plate_number.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_smile.xml
-- Up-to-date: /usr/local/share/opencv4/haarcascades/haarcascade_upperbody.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalcatface.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalface.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_frontalface_improved.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_profileface.xml
-- Up-to-date: /usr/local/share/opencv4/lbpcascades/lbpcascade_silverware.xml
-- Up-to-date: /usr/local/bin/opencv_annotation
-- Up-to-date: /usr/local/bin/opencv_visualisation
-- Up-to-date: /usr/local/bin/opencv_interactive-calibration
-- Up-to-date: /usr/local/bin/opencv_version
[root@ip-172-31-50-53 build]#

```I am a bit curious about this 
-- Up-to-date: /usr/local/bin/setup_vars_opencv4.sh

process video stream with php-opencv?

Hi,

I'm trying to process a video with CV\VideoCapture , but I 'm unable to open stream.
I've tried with local mp4 and remote hls. Neither works.

What I'm doing wrong?

use CV\VideoCapture;

$url = 'http://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8';
$video=new VideoCapture($url);
var_dump($video->isOpened());
var_dump($video);

Broken opencv.so on php8-fpm ?

I have an issue wiht php-opencv build on php8 fpm alpine :

Configure stage :

./configure --with-php-config=/usr/bin/php-config8
Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking target system type... x86_64-pc-linux-musl
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php8 -I/usr/include/php8/main -I/usr/include/php8/TSRM -I/usr/include/php8/Zend -I/usr/include/php8/ext -I/usr/include/php8/ext/date/lib
checking for PHP extension directory... /usr/lib/php8/modules
checking for PHP installed headers prefix... /usr/include/php8
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for opencv support... yes, shared
checking for php debug... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for pkg-config... found
checking for opencv... found 4.5.0
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h

Test stage : (witch fail)

make test
/bin/sh /opt/php-opencv/libtool --mode=install cp ./opencv.la /opt/php-opencv/modules
cp ./.libs/opencv.so /opt/php-opencv/modules/opencv.so
cp ./.libs/opencv.lai /opt/php-opencv/modules/opencv.la
PATH="$PATH:/sbin" ldconfig -n /opt/php-opencv/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/php-opencv/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /usr/bin/php8 
Fatal error: Internal zvals cannot be refcounted in Unknown on line 0
  
CWD         : /opt/php-opencv
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2021-01-12 10:58:17
=====================================================================
FAIL Check for opencv presence [tests/001.phpt] 
FAIL absdiff function test [tests/absdiff.phpt] 
FAIL CV add function test [tests/add.phpt] 
FAIL Draw circle test [tests/circle.phpt] 
FAIL Check for opencv constant [tests/constant.phpt] 
FAIL CV test [tests/cv.phpt] 
FAIL DNN::blobFromImage [tests/dnn.phpt] 
FAIL Ellipse test [tests/ellipse.phpt] 
FAIL LBPHFaceRecognizer [tests/faceRecognizer.phpt] 
FAIL LBPHFaceRecognizer with Decode [tests/faceRecognizerDecode.phpt] 
FAIL FacemarkLBF::create [tests/facemark.phpt] 
FAIL get_structuring_element function test [tests/get_structuring_element.phpt] 
FAIL CV magnitude function test [tests/magnitude.phpt] 
FAIL Mat __construct [tests/mat.phpt] 
FAIL Exception [tests/opencv_exception.phpt] 
FAIL ROI test [tests/roi.phpt] 
FAIL split test [tests/split.phpt] 
FAIL Type test [tests/type.phpt] 
FAIL CV\VideoCapture Class test [tests/videoCapture.phpt] 
=====================================================================
TIME END 2021-01-12 10:58:18

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :    1
---------------------------------------------------------------------

Number of tests :   19                19
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   19 (100.0%) (100.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Check for opencv presence [tests/001.phpt]
absdiff function test [tests/absdiff.phpt]
CV add function test [tests/add.phpt]
Draw circle test [tests/circle.phpt]
Check for opencv constant [tests/constant.phpt]
CV test [tests/cv.phpt]
DNN::blobFromImage [tests/dnn.phpt]
Ellipse test [tests/ellipse.phpt]
LBPHFaceRecognizer [tests/faceRecognizer.phpt]
LBPHFaceRecognizer with Decode [tests/faceRecognizerDecode.phpt]
FacemarkLBF::create [tests/facemark.phpt]
get_structuring_element function test [tests/get_structuring_element.phpt]
CV magnitude function test [tests/magnitude.phpt]
Mat __construct [tests/mat.phpt]
Exception [tests/opencv_exception.phpt]
ROI test [tests/roi.phpt]
split test [tests/split.phpt]
Type test [tests/type.phpt]
CV\VideoCapture Class test [tests/videoCapture.phpt]
=====================================================================

You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.	You can then email it to [email protected] later.
Do you want to send this report now? [Yns]: n
make: *** [Makefile:132: test] Error 1

Library links :

ldd /usr/lib/php8/modules/opencv.so 
	/lib/ld-musl-x86_64.so.1 (0x7f866603d000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f8665e5d000)
	libopencv_world.so.4.5 => /usr/local/lib64//libopencv_world.so.4.5 (0x7f8661978000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f8661964000)
	libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f866603d000)
	libz.so.1 => /lib/libz.so.1 (0x7f866194a000)
	libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x7f86618d0000)
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7f86618a0000)
Error relocating /usr/lib/php8/modules/opencv.so: convert_to_long: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_register_long_constant: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: add_index_string: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: _zend_new_array_0: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: rc_dtor_func: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_object_std_dtor: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: convert_to_double: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_call_function: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: _emalloc: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: _zend_new_array: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zval_get_long_func: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: php_info_print_table_header: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: object_init_ex: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_parse_parameters_ex: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_register_string_constant: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: _ecalloc: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: add_next_index_long: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: add_next_index_double: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_exception_get_default: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_declare_property_null: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_declare_property: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: php_info_print_table_end: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_hash_next_index_insert: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: php_info_print_table_start: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_declare_class_constant_long: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_update_property_double: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_register_internal_class: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_strpprintf: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_update_property_long: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_update_property: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_object_std_init: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zval_ptr_dtor: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_parse_parameters: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: object_properties_init: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_register_double_constant: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_register_internal_class_ex: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_throw_exception: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: zend_string_init_interned: symbol not found
Error relocating /usr/lib/php8/modules/opencv.so: std_object_handlers: symbol not found

php: symbol lookup error

durza@durza-pc:~/php-opencv-examples$ php detect_face_by_dnn_ssd.php php: symbol lookup error: /usr/lib/php/20170718/opencv.so: undefined symbol: _ZN2cv6imreadERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi durza@durza-pc:~/php-opencv-examples$
OS: Ubuntu 18.04.3 LTS
PHP: 7.2
OpenCV: 3.4

help me pls :(

SOLVED !

Unable to rebuild php-opencv on Debian : no opencv detected in the system

Hello,

I've rebuild opencv 4.7 from source and everything has working well.
No I'm trying to rebuild php-opencv, but I've got the following error on ./configure

...
checking for opencv... not found
configure: error: Ooops ! no opencv detected in the system

Note that I've executed ldconfig and opencv has been installed into. /usr/local

Problem in Class Mat

Hello
Try trying the following coding

<?php 
namespace  CV;
use CV\Mat;
use CV\Scalar;
$mat = new Mat(2, 2, CV_8UC3, new Scalar(0,0,255));
echo "M = \r\n";
$mat->print();
?> 

In windows it displays the following
M = [ ]
In wsl2 ubuntu it displays the following
M = [ 0, 0, 255, 0, 0, 255; 0, 0, 255, 0, 0, 255]

Using blobFromImage with OpenCV 3.4.1 causes Fatal error

I am using branch 3.4 of php-opencv & i am using OpenCV 3.4.1, the installation worked fine and this example works:

use CV\CascadeClassifier, CV\Scalar;
use function CV\{imread, imwrite, cvtColor, equalizeHist, rectangleByRect};
use const CV\{COLOR_BGR2GRAY};
$src = imread("temp/lol2.png");
$gray = cvtColor($src, COLOR_BGR2GRAY);
// face by lbpcascade_frontalface
$faceClassifier = new CascadeClassifier();
$faceClassifier->load('models/lbpcascades/lbpcascade_frontalface.xml');
$faceClassifier->detectMultiScale($gray, $faces);
//var_export($faces);
if ($faces) {
    $scalar = new Scalar(0, 0, 255); //blue
    foreach ($faces as $face) {
        rectangleByRect($src, $face, $scalar, 3);
    }
}

else {
	echo 'face not detected';
}

imwrite("temp/_detect_face_by_cascade_classifier.png", $src);

But non of the examples that is using blobFromImage is working, like this one:

use CV\Scalar;
use function CV\{imread, cvtColor};
$categories = explode("\n", file_get_contents('models/mobilenet/classes.txt'));
$src = imread("temp/cat.jpg"); // opencv loads image to matrix with BGR order
$src = cvtColor($src, CV\COLOR_BGR2RGB); // convert BGR to RGB
//var_export($src);
$blob = \CV\DNN\blobFromImage($src, 0.017, new \CV\Size(224,224), new Scalar(103.94, 116.78, 123.68)); // convert image to 4 dimensions matrix
//var_export($blob);
$net = \CV\DNN\readNetFromCaffe('models/mobilenet/mobilenet_deploy.prototxt', 'models/mobilenet/mobilenet.caffemodel');
$net->setInput($blob, "");
$r = $net->forward();
//var_export($r);
$maxConfidence = 0;
$confidences = [];
for ($i = 0; $i < 1000; $i++) {
    $confidences[$i] = intval($r->atIdx([0,$i,0,0], 1) * 100);
}
// top 5:
arsort($confidences);
$confidences = array_slice($confidences, 0, 5, true);
foreach ($confidences as $label => $confidence) {
    echo "$confidence%: {$categories[$label]}\n";
}

The last one will give me the error "Fatal error: Uncaught Error: Call to undefined function CV\DNN\blobFromImage() in..."

The installation went fine so everything should be working, but nope, blobFromImage is not working, always gives me an error. Would be nice to get object detection to work, so anyone got any tips on where i should start troubleshooting? I would really appreciate it

memory problem

When running classify_image_by_dnn_mobilenet.php from the examples, if using a larger model (than the one provided)

$net = \CV\DNN\readNetFromCaffe('deploy.prototxt', 'caffenet.caffemodel');
the script terminates at

$r = $net->forward();

with the error:

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

which I believe is memory-related. How is the memory used by the underlying C++ process is limited, and how to lift this limit?

unable to install in Docker / php:8.0

I tried installing this with the following Dockerfile without success:

FROM php:8.0

RUN apt update && apt install -y wget
RUN wget https://raw.githubusercontent.com/php-opencv/php-opencv-packages/master/opencv_4.5.0_amd64.deb && dpkg -i opencv_4.5.0_amd64.deb && rm opencv_4.5.0_amd64.deb
RUN apt-get install -y git
RUN git clone https://github.com/php-opencv/php-opencv.git
RUN cd php-opencv && git checkout php7.4 && phpize && ./configure --with-php-config=/usr/bin/php-config && make && make install

Here's the error I got:

configure: error: Cannot find php-config. Please use --with-php-config=PATH

I've compiled extensions before and have never used the --with-php-config option before so I tried to remove that and still got an error:

/php-opencv/source/opencv2/core/opencv_mat.cc: In function 'void opencv_mat_update_property_by_c_mat(zval*, cv::Mat*)':
/php-opencv/source/opencv2/core/opencv_mat.cc:53:46: error: cannot convert 'zval*' {aka '_zval_struct*'} to 'zend_object*' {aka '_zend_object*'}
   53 |     zend_update_property_long(opencv_mat_ce, z, "rows", sizeof("rows")-1, mat->rows);
      |                                              ^
      |                                              |
      |                                              zval* {aka _zval_struct*}
In file included from /usr/local/include/php/main/php.h:35,

Any ideas?

Sponsoring development of PHP-Opencv?

Hello,

We would lie to work with PHP-Opencv for CCTV cameras analysis project.
We don't like python, and we don't have sufficient C++ knowledge to use the lib properly.

So, we are interested into sponsoring PHP-Opencv development to include missing functions

Contact me if you are interested

Regards

OpenCV features support

Found the below in the README page:

Features

  • core
  • imgproc
  • highgui
  • objdetect
  • video
  • ml
  • dnn

Looking to use this library instead of using Python for OpenCV-related tasks. Does this library support
accessing all the features that the Python OpenCV library supports?

Thanks!

Try ....

i try write code function matchTemplate .please correct any error . thanx
add in file opencv_imgproc.cc

void opencv_imgproc_init(int module_number)
{
    opencv_color_conversion_code_init(module_number);
    opencv_line_type_init(module_number);
    opencv_morph_shapes_init(module_number);
    opencv_morph_types_init(module_number);
    opencv_flood_fill_flags_init(module_number);
    opencv_threshold_types_init(module_number);
    opencv_adaptive_threshold_types_init(module_number);
    opencv_retrieval_modes_init(module_number);
    opencv_contour_approximation_modes_init(module_number);
    opencv_type_template_matching_operation_init(module_number);
}
PHP_FUNCTION(opencv_matchTemplate){

    zval *image_zval ,*result_zval, *templ_zval;
    long method;

    if (zend_parse_parameters(ZEND_NUM_ARGS(), "OOzl",
                                &image_zval, opencv_mat_ce,
                                &templ_zval, opencv_mat_ce,
                                &result_zval,
                                &method
    ) == FAILURE) {
        RETURN_NULL();
    }

    opencv_mat_object *image_obj , *templ_obj,*result_object;

    image_obj = Z_PHP_MAT_OBJ_P(image_zval);
    templ_obj = Z_PHP_MAT_OBJ_P(templ_zval);
    zval *result_real_zval = Z_REFVAL_P(result_zval);
    if(Z_TYPE_P(result_real_zval) == IS_OBJECT && Z_OBJCE_P(result_real_zval)==opencv_mat_ce){
        result_object = Z_PHP_MAT_OBJ_P(result_real_zval);
    } else{
        zval_ptr_dtor(result_real_zval);
        zval instance;
        Mat result;
        object_init_ex(&instance,opencv_mat_ce);
        ZVAL_COPY_VALUE(result_real_zval, &instance);
        result_object = Z_PHP_MAT_OBJ_P(result_real_zval);
        result_object->mat = new Mat(result);
    }
    try {
        matchTemplate(*image_obj->mat,*templ_obj->mat,*result_object->mat,(int)method);
        opencv_mat_update_property_by_c_mat(result_real_zval, result_object->mat);

    }catch (Exception e){
        opencv_throw_exception(e.what());
    }
    RETURN_NULL();

}
void opencv_type_template_matching_operation_init(int module_number){
    REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "TM_SQDIFF", TM_SQDIFF, CONST_CS | CONST_PERSISTENT);
    REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "TM_SQDIFF_NORMED", TM_SQDIFF_NORMED, CONST_CS | CONST_PERSISTENT);
    REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "TM_CCORR", TM_CCORR, CONST_CS | CONST_PERSISTENT);
    REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "TM_CCORR_NORMED", TM_CCORR_NORMED, CONST_CS | CONST_PERSISTENT);
    REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "TM_CCOEFF", TM_CCOEFF, CONST_CS | CONST_PERSISTENT);
    REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "TM_CCOEFF_NORMED", TM_CCOEFF_NORMED, CONST_CS | CONST_PERSISTENT);
}

add in opencv_imgproc.h

ZEND_BEGIN_ARG_INFO_EX(opencv_matchTemplate_arginfo, 0, 0, 4)
                ZEND_ARG_INFO(0, image)
                ZEND_ARG_INFO(0, templ)
                ZEND_ARG_INFO(1, result)
                ZEND_ARG_INFO(0, method)
ZEND_END_ARG_INFO()
PHP_FUNCTION(opencv_matchTemplate);
void opencv_imgproc_init(int module_number);
void opencv_color_conversion_code_init(int module_number);
void opencv_line_type_init(int module_number);
void opencv_morph_shapes_init(int module_number);
void opencv_morph_types_init(int module_number);
void opencv_flood_fill_flags_init(int module_number);
void opencv_threshold_types_init(int module_number);
void opencv_adaptive_threshold_types_init(int module_number);
void opencv_retrieval_modes_init(int module_number);
void opencv_contour_approximation_modes_init(int module_number);
void opencv_type_template_matching_operation_init(int module_number);

add in opencv.cc line 229
ZEND_NS_NAMED_FE(OPENCV_NS, matchTemplate, ZEND_FN(opencv_matchTemplate), opencv_matchTemplate_arginfo)

Call to undefined function CV\getPerspectiveTransform()

Hello!

I just started using this library. Installation went smooth, and already using some other functions. But when trying to use getPerspectiveTransform I get the error "Call to undefined function CV\getPerspectiveTransform()". Did I do something wrong in the installation process?

I'm on PHP 8.0 and OpenCV 4.5.0, other functions like imread and drawContours work perfectly.

Thanks!

configure says: "no opencv detected in the system"

I'm installing on CentOS 7 according to the instructions. Everything works until the ./configure line, which says:

checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/cpanel/3rdparty/php/73
checking for PHP includes... -I/usr/local/cpanel/3rdparty/php/73/include/php -I/usr/local/cpanel/3rdparty/php/73/include/php/main -I/usr/local/cpanel/3rdparty/php/73/include/php/TSRM -I/usr/local/cpanel/3rdparty/php/73/include/php/Zend -I/usr/local/cpanel/3rdparty/php/73/include/php/ext -I/usr/local/cpanel/3rdparty/php/73/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/cpanel/3rdparty/php/73/lib/extensions/no-debug-non-zts-20180731
checking for PHP installed headers prefix... /usr/local/cpanel/3rdparty/php/73/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for opencv support... yes, shared
checking for php debug... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for pkg-config... found
checking for opencv... not found
configure: error: Ooops ! no opencv detected in the system

Do you know how can I fix that?
Where does it look for opencv (which was successfully built) and why it can't find it?

Running opencv_version returns 3.4.9-dev. I'm on the 3.4 branch.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.