Giter VIP home page Giter VIP logo

tensorrt-lpr's Introduction

TensorRT-LPR

车牌识别 该工程车牌检测技术参考YOLOv3,识别技术参考HyperLPR

基于Retinaface的车牌检测及关键点检测项目可参考Plate-Landmarks-detection

工程基于HyperLPR/prj-Linux修改:

1.修改车牌检测方法,改为yolov3实现;

2.源工程使用opencv-dnn模块对模型进行部署运行,改为caffe+tensorRT部署,可调用GPU进行加速

使用

工程环境:

  1. caffe
  2. OpenCV 3.4.2
  3. TensorRT 6.0.1.5

依赖三方工程:

1.tensorRTWrapper:用于部署YOLOv3等模型;

2.darknet:YOLOv3车牌检测模型训练;

3.darkner2caffe:darknet模型转为caffe模型。

模型:

  1. yolov3对象检测模型百度(提取码:vm66 )

  2. 车牌垂直边界回归模型

  3. e2e车牌识别模型

yolo对象检测模型可使用darknet自行训练,数据集参考CCPD

部署时需要使用darkner2caffe将darknet模型转换为caffe模型(注意工程中yolov3输入尺寸为416)

车牌边界回归以及识别模型来自HyperLPR/prj-Linux

开始:

git clone [email protected]:Fanghc95/TensorRT-LPR.git
#编辑CMakeList.txt配置CUDA,tensorRT,opencv等
mkdir build&&cd build
cmake ../
make -j8
#构建对象检测模型engine
./testPlate 0
#构建车牌识别模型engine
./testPlate 1
#部署并测试单张图片
./testPlate 2 [img_path]

改进方面:

  1. 垂直边界回归没能用到tensorRT,我在部署时没能跑通,大佬们可以继续改进

  2. 字符识别部分我用的是开源模型,效果较好但称不上100%完美,因为没接触过OCR没有进行改进(其实也莫得数据)

  3. 公开数据集CCPD虽数据量大但是场景单一,检测部分训练还需要额外数据进行优化

tensorrt-lpr's People

Contributors

fanghc95 avatar

Stargazers

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

Watchers

 avatar

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.