Git Product home page Git Product logo

hpc203 / pp-vehicle-onnxrun-cpp-py Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 16.0 6.15 MB

使用ONNXRuntime部署百度飞桨开源PP-Vehicle车辆分析,包含车辆检测,识别车型和车辆颜色,车牌检测,车牌识别5个功能,不依赖PaddlePaddle就能运行,包含C++和Python两个版本的程序

C++ 59.46% Python 40.54%
detect-vehicles plate-detection plate-recognition pp-vehicle

pp-vehicle-onnxrun-cpp-py's Introduction

PP-Vehicle-onnxrun-cpp-py

使用ONNXRuntime部署百度飞桨开源PP-Vehicle车辆分析,包含车辆检测,识别车型和车辆颜色,车牌检测,车牌识别5个功能。 起初想使用opencv做部署的,但是opencv的dnn模块读取onnx文件出错了。 因此,使用ONNXRuntime做推理,彻底摆脱对PaddlePaddle的依赖。

onnx文件在百度云盘,下载链接:https://pan.baidu.com/s/1Z1Phr7KPubsAqhHW5edMvQ 提取码:xw2i

由于opencv不支持在图片里写汉字的,而车牌号码的开头的汉字。因此在python程序里,是调用 pillow库加载simhei.ttf文件实现在图片里写汉字的功能。c++程序里,没有把识别的车牌号码, 写在图片里的,其次,在程序里解析rec_word_dict.txt有出现乱码,原因可能是txt文档编码格式有问题, 也有可能是c++程序里解析rec_word_dict.txt的代码要做调整。 在c++程序里,要实现在图片里写汉字,需要依赖opencv和opencv-contrib库的。 具体代码实现,可参考https://gitee.com/cvmart/ev_sdk_demo4.0_pedestrian_intrusion/blob/master/include/ji_utils.h

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.