PHPOpenCV installer
PHPOpenCV Installer是一个简易安装phpopencv扩展,自动检测编译安装opencv并编译php扩展
First, download the PHPOpenCV installer using Composer:
composer global require "phpopencv/installer"
Make sure to place composer’s system-wide vendor bin directory in your $PATH
so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:
$HOME/.composer/vendor/bin
$HOME/.config/composer/vendor/bin
%USERPROFILE%\AppData\Roaming\Composer\vendor\bin
修改/etc/profile
文件
vim /etc/profile
修改$PATH
变量
export PATH=$HOME/.config/composer/vendor/bin:$PATH
更新缓存
source /etc/profile
Use:
phpopencv install
![]() |
![]() |
---|---|
16+ ✔ | 7+ ✔ |