Other

项目介绍

sergiomsilva/alpr-unconstrained 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 Other 许可证,目前获得 1.8k 个 Star、584 次 Fork。

仓库全名
sergiomsilva/alpr-unconstrained
开源许可证
Other
Star 数
1.8k
Fork 数
584
未关闭 Issue
106

README 摘要

ALPR in Unscontrained Scenarios Introduction This repository contains the author's implementation of ECCV 2018 paper "License Plate Detection and Recognition in Unconstrained Scenarios". Paper webpage: http://sergiomsilva.com/pubs/alpr-unconstrained/ If you use results produced by our code in any publication, please cite our paper: Requirements In order to easily run the code, you must have installed the Keras…

完整内容见 GitHub 原始 README 或本页 。

常见问题

alpr-unconstrained 用什么语言开发?

主要使用 C 编写,采用 Other 许可证,目前有 1.8k 个 Star。

alpr-unconstrained 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 alpr-unconstrained 的源码?

可以直接克隆仓库:git clone https://github.com/sergiomsilva/alpr-unconstrained.git,默认分支为 master;安装与运行步骤见仓库 README。

alpr-unconstrained 最近还在维护吗?

仓库最近一次更新为 2022年7月1日,当前有 106 个未关闭 Issue;Star 数为 1.8k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

License Plate Detection and Recognition in Unconstrained Scenarios

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
3029
价值分
1242
活跃状态
活跃

README

ALPR in Unscontrained Scenarios

Introduction

This repository contains the author’s implementation of ECCV 2018 paper “License Plate Detection and Recognition in Unconstrained Scenarios”.

If you use results produced by our code in any publication, please cite our paper:

@INPROCEEDINGS{silva2018a,
  author={S. M. Silva and C. R. Jung}, 
  booktitle={2018 European Conference on Computer Vision (ECCV)}, 
  title={License Plate Detection and Recognition in Unconstrained Scenarios}, 
  year={2018}, 
  pages={580-596}, 
  doi={10.1007/978-3-030-01258-8_36}, 
  month={Sep},}

Requirements

In order to easily run the code, you must have installed the Keras framework with TensorFlow backend. The Darknet framework is self-contained in the “darknet” folder and must be compiled before running the tests. To build Darknet just type “make” in “darknet” folder:

$ cd darknet && make

The current version was tested in an Ubuntu 16.04 machine, with Keras 2.2.4, TensorFlow 1.5.0, OpenCV 2.4.9, NumPy 1.14 and Python 2.7.

Download Models

After building the Darknet framework, you must execute the “get-networks.sh” script. This will download all the trained models:

$ bash get-networks.sh

Running a simple test

Use the script “run.sh” to run our ALPR approach. It requires 3 arguments:

  • Input directory (-i): should contain at least 1 image in JPG or PNG format;
  • Output directory (-o): during the recognition process, many temporary files will be generated inside this directory and erased in the end. The remaining files will be related to the automatic annotated image;
  • CSV file (-c): specify an output CSV file.
$ bash get-networks.sh && bash run.sh -i samples/test -o /tmp/output -c /tmp/output/results.csv

Training the LP detector

To train the LP detector network from scratch, or fine-tuning it for new samples, you can use the train-detector.py script. In folder samples/train-detector there are 3 annotated samples which are used just for demonstration purposes. To correctly reproduce our experiments, this folder must be filled with all the annotations provided in the training set, and their respective images transferred from the original datasets.

The following command can be used to train the network from scratch considering the data inside the train-detector folder:

$ mkdir models
$ python create-model.py eccv models/eccv-model-scracth
$ python train-detector.py --model models/eccv-model-scracth --name my-trained-model --train-dir samples/train-detector --output-dir models/my-trained-model/ -op Adam -lr .001 -its 300000 -bs 64

For fine-tunning, use your model with --model option.

A word on GPU and CPU

We know that not everyone has an NVIDIA card available, and sometimes it is cumbersome to properly configure CUDA. Thus, we opted to set the Darknet makefile to use CPU as default instead of GPU to favor an easy execution for most people instead of a fast performance. Therefore, the vehicle detection and OCR will be pretty slow. If you want to accelerate them, please edit the Darknet makefile variables to use GPU.

评论

暂无评论