openalpr在windows10 x64 vs2015编译
来源:互联网 发布:中考倒计时软件下载 编辑:程序博客网 时间:2024/05/22 06:24
懒人版:需要安装cmake(最新版即可), vs2015
(1)从https://github.com/aa12356jm/openalpr_windows10_vs2015.git下载代码到本地openalpr_windows10_vs2015文件夹下;
(2)在windows 10中,按windows键,在搜索栏中输入powershell,可以看到 windows powershell,右键单击以管理员身份运行。
(5)等待编译完成,我的固态硬盘是30分钟左右,时间会比较久。
(6)编译完成后,openalpr_windows10_vs2015\openalpr\windows路径下多一个build文件夹。
所有编译好的库文件在openalpr_windows10_vs2015\openalpr\windows\build\artifacts中;
openalpr生成的exe和库文件在openalpr_windows10_vs2015\openalpr\windows\build\dist\2.2.0\v140\Release\x64 路径下
(7)在openalpr_windows10_vs2015\openalpr\windows\build\dist\2.2.0\v140\Release\x64路径下,放一张美国车牌图片(比如1.jpg),在cmd命令行中,cd到此路径下,执行命令: alpr 1.jpg 会显示识别出来的多个车牌,及对应的概率。
release版本下载:
release版本中包含编译好的库文件和各种语言的接口,可以直接使用。
在这里下载release版本,https://github.com/openalpr/openalpr/releases,
解压之后,参考教程http://doc.openalpr.com/bindings.html使用
我在qt中这样使用:
#pragma once#include <QtWidgets/QMainWindow>#include "ui_mainWindow.h"#include "../openalpr-2.3.0-win-64bit/include/alpr.h"#pragma execution_character_set("utf-8")#pragma comment(lib,"../openalpr-2.3.0-win-64bit/openalpr.lib")class mainWindow : public QMainWindow{Q_OBJECTpublic:mainWindow(QWidget *parent = Q_NULLPTR);private slots:void on_pushButton_clicked();private:Ui::mainWindowClass ui;alpr::Alpr *m_openAlpr;};
手动编译源码:
主要参考这部分点击打开链接,但是有一些错误和需要注意的地方
需要工具和软件
- Visual Studio 2015
- CUDA SDK 7 (如果需要cuda支持的话,就安装。本教程没有使用cuda)
- GIT
- Powershell(windows自带的命令行工具)
开始
(3)下载代码
git clone https://github.com/openalpr/openalpr.git #下载openalpr最新的代码
cd openalpr
git clone https://github.com/peters/openalpr-windows.git windows #下载windows平台的需要的库文件等等
git submodule update --init --recursive
cd windows #进入到下载的windows目录下
- 在windows文件夹下,执行git命令:git clone https://github.com/opencv/opencv.git @190d00e,即可下载到对应的opencv版本,修改文件夹名字为opencv即可
- 在tesseract-ocr文件夹下面,执行git clone https://github.com/tesseract-ocr/tesseract.git @228317c,即可下载到需要的src文件,修改名字为src即可。
- 管理员身份进入powershell中,在windows目录下,执行下面命令:
- 1.编译vs2015的x64 release版本,不带cuda支持,本教程使用这个方式:
- .\build.ps1 -Configuration Release -Platform x64 -PlatformToolset v140 -CudaGeneration None
- 2.编译vs2015的x64 debug版本,不带cuda支持:
- .\build.ps1 -Configuration Debug -Platform x64 -PlatformToolset v140 -CudaGeneration None
- 3.编译所有版本支持v100, v110, v120, v140 with CUDA support:
- .\build.all.ps1 -CudeGeneration All
static const STRING kCharsToEx[] = {"'", "`", "\"", "\\", ",", ".", "〈", "〉", "《", "》", "」", "「", ""};改为:
static const STRING kCharsToEx[] = { "'", "`", "\"", "\\", ",", ".","<", ">", "<<", ">>", "" };也就是去掉符号:
"」", "「",,
并且修改"〈", "〉", "《", "》"为"<", ">", "<<", ">>"
OpenALPR 依赖库
- Giflib 4.1.6
- LibJPEG 8c
- Leptonica 1.7.1
- Libpng 1.4.3
- Libtiff 3.9.4
- Zlib 1.2.8
- Tesseract 3.04-rc1
- OpenCV 2.4.8
支持的平台
- Windows 7
- Windows 8.1
- Windows 10
支持的平台架构
- Win32 (x86)
- X64 (AMD64)
支持的编译器
- v100 (Visual Studio 2010)
- v110 (Visual Studio 2012)
- v120 (Visual Studio 2013)
- v140 (Visual Studio 2015)
- openalpr在windows10 x64 vs2015编译
- NotePad++ 在 windows10 上用 vs2015 编译
- openalpr编译
- flann在VS2015 x64环境下无法编译的问题解决
- LASlib在VS2015 x64平台下的编译
- windows10 x64 vs2015 MPI 1.4.1 环境配置
- openalpr编译步骤-vs2013
- Libevnt 在Windows10 VS2015下分别编译32位和64位库
- 树莓派RaspberryPi2在windows10 iot下运行opencv 基于vs2015
- 【caffe配置】face_detection_alighment在windows10+caffe+vs2015下的配置
- face_detection_alighment在windows10+caffe+vs2015下的配置
- VS2015 X64+OpenCV3.2.0+opencv_contirb CMake3.8.0编译
- OpenGL + VS2015 + Windows10配置
- QT(windows10+VS2015)
- 在windows10 上编译最新版webrtc源码
- MPC-HC在windows10上VS2013编译
- Caffe在Windows10下的编译安装
- GDAL编译 win10 VS2015 WIN32与X64 的 debug与release编译(终极修正)
- C#Interface 接口、接口的特点、接口的用法、多态性、部分类、密封类、ToString()重载
- JS的function的函数
- Vue---slot--->>高级--组件嵌套
- [扫描线 二分图最大匹配 线段树优化网络流] Codeforces 793G Tinkoff Challenge
- The platform command has been renamed. To find out more, run: ionic cordova platform --help
- openalpr在windows10 x64 vs2015编译
- "less is more",用"less”命令查看linux文本文件
- STC15F104E (8脚单片机)实现蓝牙串口控制舵机转向
- sublime text 安装教程与常用插件安装与卸载方法
- poj2976:dropping tests(0/1分数规划)
- properties文件工具类
- 未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序解决办法
- 首个区块链标准《区块链 参考架构》正式发布
- 安卓应用启动时黑屏和白屏的原因及解决办法