# 车牌识别TensorRT
环境:tensorrt 8.2
1. 修改CMakeLists.txt 换成你的cuda tensorrt 以及opencv 路径
```
#cuda
include_directories(/mnt/Gu/softWare/cuda-11.0/targets/x86_64-linux/include)
link_directories(/mnt/Gu/softWare/cuda-11.0/targets/x86_64-linux/lib)
#tensorrt
include_directories(/mnt/Gpan/tensorRT/TensorRT-8.2.0.6/include/)
link_directories(/mnt/Gpan/tensorRT/TensorRT-8.2.0.6/lib/)
```
2. build
```
1. mkdir build
2. cmake ..
3. make
```
3. onnx 转成tensorrt模型 onnx模型在 onnx_model文件夹 或者自己训练模型看这里[车牌检测](https://github.com/we0091234/Chinese_license_plate_detection_recognition) [车牌识别](https://github.com/we0091234/crnn_plate_recognition/tree/plate_color)
```
当前在build目录
#1 生成检测模型
./onnx2trt/onnx2trt ../onnx_model/plate_detect.onnx ./plate_detect.trt 1
#2 生成识别模型
./onnx2trt/onnx2trt ../onnx_model/plate_rec.onnx ./plate_rec.trt 1
```
4. 推理
```
./plate_detect_rec ./plate_detect.trt ./plate_rec.trt ../test_imgs
```
结果显示在控制台
![Image ](example/6.jpg)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
TensorRT_使用TensorRT8部署车牌识别算法chinese_plate_优质算法部署项目实战.zip (28个子文件)
TensorRT_使用TensorRT8部署车牌识别算法chinese_plate_优质算法部署项目实战
plate_rec.cpp 6KB
include
plate_detect.h 2KB
preprocess.h 368B
postprocess.h 542B
logging.h 16KB
utils.hpp 3KB
plate_rec.h 2KB
CMakeLists.txt 1KB
test_imgs
1(6).jpg 657KB
re_1.jpg 1.52MB
re.jpg 1.22MB
double_yellow.jpg 29KB
single_blue.jpg 1.81MB
minghang.jpg 584KB
1(2).jpg 832KB
postprocess.cu 6KB
onnx_model
plate_rec.onnx 702KB
plate_detect.onnx 3.77MB
preprocess.cu 3KB
onnx2trt
CMakeLists.txt 218B
onnx2trt.cpp 7KB
main.cpp 4KB
plate_detect.cpp 6KB
onnx2trt.sh 131B
utils.cpp 6KB
plate_rec.onnx 2.54MB
example
6.jpg 1.53MB
README.md 1KB
共 28 条
- 1
资源评论
极智视界
- 粉丝: 2w+
- 资源: 1425
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功