1 Star 0 Fork 45

hao / chinese_license_plate_generator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

中国车牌模拟生成器

介绍

中国车牌模拟生成器

支持车牌

黄色、白色、黑色、新能源车牌

单层、双层车牌

安装教程

  • python >= 3.5
  • opencv-python >= 3.4
  • numpy >= 1.15

windows下的字符问题见:https://gitee.com/leijd/chinese_license_plate_generator/issues/I1NOC7

使用说明

1、随机生成车牌

python generate_multi_plate.py --number 10 --save-adr multi_val

随机生成车牌图片并保存

2、生成指定车牌

python generate_special_plate.py --plate-number 湘999999 --double True --bg-color yellow
参数 说明
plate-number 车牌号码
double 是否双层车牌
bg-color 底板颜色

目前支持的底板颜色有:

参数 说明
black 粤港澳
black_shi 使领馆
blue 普通轿车
green_car 新能源轿车
green_truck 新能源卡车
white 白色警车
white_army 白色军车(仅支持单层)
yellow 中型车

请设置符合交通法的车牌,否则报错。比如新能源车牌(green_car/green_truck)都是8位,没有7位。

项目说明见:https://zhuanlan.zhihu.com/p/101352235

MIT License Copyright (c) 2020 leijd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

中国车牌号码模拟生成器 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/haois/chinese_license_plate_generator.git
git@gitee.com:haois/chinese_license_plate_generator.git
haois
chinese_license_plate_generator
chinese_license_plate_generator
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891