Git Product home page Git Product logo

platerecognition's Introduction

简介

本文基于HyperLPR进行修改,完整代码参考https://github.com/Liuyubao/PlateRecognition

HyperLPR是一个使用深度学习针对对中文车牌识别的实现,与较为流行的开源的其他框架相比,它的检测速度和鲁棒性和多场景的适应性都要好于目前开源的框架,HyperLPR可以识别多种中文车牌包括白牌,新能源车牌,使馆车牌,教练车牌,武警车牌等。

使用的目标检测器是基于OpenCV的Haar级联分类器。其速度也达到了不错的效果,对于移动端的大车牌基本可以实时定位。

使用了大概4700张正样本车牌车12000张负样本进行了分类器训练。

训练的方法

使用了OpenALPR的Train - Detector,来进行训练Opencv的Haar级联分类目标检测器。 正样本可以通过手动crop或者使用easypr或者hyperlpr的模块进行crop裁剪。 负样本在train detector目录下已经包含了一些基本的负样本,我们在多次训练后发现,使用这些负样本训练出来的检测器在垂直边缘密集的地方误检特别高。 这时候我们就要使用类似于Hard Sample Mining的策略 将这些部分的误检区域crop出来。加入到分类器中训练。

检测器的使用很简单。使用opencv中的cascadeclassifier进行多尺度检测即可。

可识别和待支持的车牌的类型

  • 单行蓝牌
  • 单行黄牌
  • 新能源车牌
  • 白色警用车牌
  • 使馆/港澳车牌
  • 教练车牌
  • 武警车牌

代码实现

进入对应目录可直接运行 plateRecognition.py 文件。

这里写图片描述

基于HyperLPR进行修改,完整代码参考https://github.com/Liuyubao/PlateRecognition

结果展示

【单个车牌】

这里写图片描述

这里写图片描述

【多个车牌】

这里写图片描述

这里写图片描述

【完整代码参考https://github.com/Liuyubao/PlateRecognition

platerecognition's People

Contributors

liuyubao 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.