资源简介
树莓派利用python、opencv、PyALPR识别车牌,目前仅限于识别欧洲车辆,国内车牌可自行训练。
代码片段和文件信息
import json shlex subprocess
class PlateReader:
def __init__(self):
#webcam subprocess args
webcam_command = “fswebcam -r 640x480 -S 20 --no-banner --quiet alpr.jpg“
self.webcam_command_args = shlex.split(webcam_command)
#alpr subprocess args
alpr_command = “alpr -c eu -t hr -n 300 -j alpr.jpg“
self.alpr_command_args = shlex.split(alpr_command)
def webcam_subprocess(self):
return subprocess.Popen(self.webcam_command_args stdout=subprocess.PIPE)
def alpr_subprocess(self):
return subprocess.Popen(self.alpr_command_args stdout=subprocess.PIPE)
def alpr_json_results(self):
self.webcam_subprocess().communicate()
alpr_out alpr_error = self.alpr_subprocess().communicate()
if not alpr_error is None:
return None alpr_error
elif “No license plates fou
- 上一篇:python 数独游戏源码
- 下一篇:四种聚类算法实现对控制图时间序列的聚类
相关资源
- python+ selenium教程
- PycURL(Windows7/Win32)Python2.7安装包 P
- 英文原版-Scientific Computing with Python
- 7.图像风格迁移 基于深度学习 pyt
- 基于Python的学生管理系统
- A Byte of Python(简明Python教程)(第
- Python实例174946
- Python 人脸识别
- Python 人事管理系统
- 基于python-flask的个人博客系统
- 计算机视觉应用开发流程
- python 调用sftp断点续传文件
- python socket游戏
- 基于Python爬虫爬取天气预报信息
- python函数编程和讲解
- Python开发的个人博客
- 基于python的三层神经网络模型搭建
- python实现自动操作windows应用
- python人脸识别(opencv)
- python 绘图(方形、线条、圆形)
- python疫情卡UN管控
- python 连连看小游戏源码
- 基于PyQt5的视频播放器设计
- 一个简单的python爬虫
- csv文件行列转换python实现代码
- Python操作Mysql教程手册
- Python Machine Learning Case Studies
- python获取硬件信息
- 量化交易(附python常见函数的使用方
- python 名字用字排行
评论
共有 条评论