2021-11-14 21:11:38 索煒達(dá)電子 766
項(xiàng)目編號(hào):E2259
文件大小:62M
源碼說明:帶中文注釋
開發(fā)環(huán)境:Python
簡(jiǎn)要概述
這個(gè)一個(gè)Python課程實(shí)驗(yàn)項(xiàng)目,完整的實(shí)現(xiàn)了車牌識(shí)別、控制車輛放行、通過Web管理方式管理等功能
涉及到的技術(shù):
-TensorFlow訓(xùn)練中文省份簡(jiǎn)稱以及數(shù)字字母
-Arduino+超聲波距離傳感器+攝像頭+控制電機(jī)
-Flask后臺(tái)管理
代碼結(jié)構(gòu)
├── lpr # 車牌識(shí)別模塊
│ ├── cap_img
│ ├── capture.py # 獲取車輛圖片?
│ ├── iot # Internet of thing?
│ ├── process # 車牌識(shí)別中的字符分割與識(shí)別模塊
│ │ ├── characterSegmentation.py
│ │ ├── images
│ │ ├── __init__.py
│ │ ├── licensePlateLocation.py
│ │ └── __pycache__
│ ├── sonar_read.py # arduino 控制處理程序
│ ├── test.jpg
│ ├── test.py # 車牌識(shí)別的一個(gè)簡(jiǎn)單測(cè)試?yán)?/p>
│ └── train_model # 車牌識(shí)別中的訓(xùn)練模型模塊
│ ├── cnn_chinese.py
│ ├── cnn_engLetter.py
│ ├── cnn_later.py
│ ├── __init__.py
│ ├── model
│ ├── __pycache__
│ ├── readmodel.py
│ └── train
├── readme.md
└── web # web管理模塊
├── aliyunsdkdysmsapi # 阿里云短信API的SDK
│ ├── __init__.py
│ └── request
├── config.py # flask應(yīng)用的相關(guān)配置,例如數(shù)據(jù)庫(kù)信息
├── decorate.py
├── example # 阿里云短信API的簡(jiǎn)易封裝,方便在程序中調(diào)用
│ └── demo_sms_send.py
├── exts.py
├── manage.py
├── migrations
│ ├── alembic.ini
│ ├── env.py
│ ├── README
│ ├── script.py.mako
│ └── versions
├── models.py
├── plate_app.py # flask主程序文件
├── requirements.txt
├── static
│ ├── css
│ ├── images
│ └── js
├── templates
│ ├── base.html
│ ├── bind.html
│ ├── index.html
│ ├── login.html
│ ├── my_info.html
│ └── regist.html
└── untils.py
如何運(yùn)行
下載代碼
cd plate_vision
運(yùn)行web端
cd web
pip install -r requirements.txt # flask 相關(guān)依賴庫(kù)
python plate_app.py
訓(xùn)練模型
cd lpr
pip install -r requirements.txt # 安裝tensorflow、numpy、opencv 相關(guān)依賴庫(kù)
cd lpr/train_model
python cnn_chinese.py
python cnn_engLetter.py
python cnn_later.py
運(yùn)行車牌識(shí)別測(cè)試程序
cd lpr
python test.py
文件列表: