我刚刚开始使用 Raspberry PI 3。我正在尝试在其上安装一个名为 OpenALPR 的开源库。它是一个以车辆牌照图像作为参数并返回写在上面的文本的库。我一直在关注此链接来安装该库。
https://blog.vinczejanos.info/2017/05/01/install-openalpr-on-raspberry-pi-3-part-2/
我在上面链接中指定的 install OpenALPR
步骤。我在该步骤的最后一个构建命令中遇到了以下错误,即 make install
[ 21%] Built target support
[ 23%] Built target video
[ 51%] Built target openalpr
[ 52%] Built target alpr
[ 55%] Built target alprd
[ 56%] Built target openalpr-utils-prepcharsfortraining
[ 59%] Built target openalpr-utils-benchmark
[ 60%] Built target openalpr-utils-binarizefontsheet
[ 61%] Built target openalpr-utils-classifychars
[ 63%] Built target openalpr-utils-calibrate
[ 64%] Built target openalpr-utils-tagplates
[ 66%] Built target openalpr-utils-sortstate
[ 69%] Built target unittests
[ 96%] Built target openalpr-static
[ 97%] Built target simpleini
[ 99%] Built target openalprpy
[100%] Built target openalprgo
Install the project...
-- Install configuration: "RelWithDebugInfo"
-- Installing: /usr/bin/alpr
CMake Error at cmake_install.cmake:50 (file):
file INSTALL cannot copy file "/usr/src/openalpr/src/build/alpr" to
"/usr/bin/alpr".
Makefile:126: recipe for target 'install' failed
make: *** [install] Error 1
我可以保证以上所有步骤都已成功完成。请指导我解决此错误。谢谢。
最佳答案
错误已解决。我所做的只是在没有 sudo
的情况下执行命令 make install
,这没有授予复制文件的权限。一旦我以 sudo make install
的形式执行它,它就会完美地执行并且现在可以正常工作。
关于linux - 在 Raspberry PI 3 上安装 OpenALPR 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46882450/