Giter Site home page Giter Site logo

chinese_plate_tensorrt's Introduction

车牌识别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文件夹 或者自己训练模型看这里车牌检测 车牌识别

    当前在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

chinese_plate_tensorrt's People

Contributors

we0091234 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.