Ubuntu 的库和软件包具有以下命令:
sudo apt-get install libopencv-dev libtesseract-dev git cmake build-essential libleptonica-dev
sudo apt-get install liblog4cplus-dev libcurl3-dev
sudo apt-get install beanstalkd
git clone https://github.com/openalpr/openalpr.git
cd openalpr/src
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc ..
make
wget http://plates.openalpr.com/h786poj.jpg -O lp.jpg alpr lp.jpg
我尝试替换apt-get
为yum
,但出现此消息:No package available
。
答案1
不同的发行版没有相同的包名称。幸运的是,大多数包管理器都有“搜索”功能,即使您不知道确切的名称,也可以帮助您找到包。对于 Ubuntu,这是apt-cache search
.对于 CentOS 7,这是yum search
.例如:
$ yum search log4c
============================== N/S matched: log4c ==============================
log4c-devel.x86_64 : Header files, libraries and development documentation for
: log4c
log4cplus-devel.x86_64 : Development files for log4cplus C++ logging framework
log4cpp-devel.x86_64 : Header files, libraries and development man pages
: log4cpp
log4cpp-doc.x86_64 : Development documentation for log4cpp
mingw32-log4c.noarch : MinGW compiled log4c library for the Win32 target
mingw64-log4c.noarch : MinGW compiled log4c library for the Win64 target
log4c.x86_64 : Library for logging application messages
log4cplus.x86_64 : Logging Framework for C++
log4cpp.x86_64 : C++ logging library
log4cxx.i686 : A port to C++ of the Log4j project
log4cxx.x86_64 : A port to C++ of the Log4j project
log4cxx-devel.i686 : Header files for Log4xcc - a port to C++ of the Log4j
: project
log4cxx-devel.x86_64 : Header files for Log4xcc - a port to C++ of the Log4j
: project
该log4c-devel
软件包可能就是您想要的。同样,yum search tesseract
向我展示了一个tesseract-devel
包。