码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • DeepStream--测试lpdnet车牌检测模型


     模型地址:https://catalog.ngc.nvidia.com/orgs/nvidia/teams/tao/models/lpdnet/version

    模型格式已经从加密的etlt格式变为onnx格式。这个模型用于从汽车图片上检测出车牌位置,模型有两个,一个用于美国车,一个用于中国车。

    Nvinfer

    [property]
    gpu-id=0
    net-scale-factor=0.0039215697906911373
    model-color-format=0
    labelfile-path=LPD/usa_lpd_label.txt
    model-engine-file=LPD/LPDNet_usa_pruned_tao5.onnx_b16_gpu0_int8.engine
    int8-calib-file=LPD/usa_cal_8.6.1.bin
    onnx-file=LPD/LPDNet_usa_pruned_tao5.onnx
    uff-input-dims=3;480;640;0
    uff-input-blob-name=input_1
    batch-size=16
    ## 0=FP32, 1=INT8, 2=FP16 mode
    network-mode=1
    num-detected-classes=1
    ##1 Primary 2 Secondary
    process-mode=1
    interval=0
    gie-unique-id=2
    #0 detector 1 classifier 2 segmentatio 3 instance segmentation
    network-type=0
    operate-on-gie-id=1
    operate-on-class-ids=0
    #no cluster
    cluster-mode=3
    output-blob-names=output_cov/Sigmoid:0;output_bbox/BiasAdd:0
    input-object-min-height=30
    input-object-min-width=40
    #GPU:1  VIC:2(Jetson only)
    #scaling-compute-hw=2
    #enable-dla=1

    [class-attrs-all]
    pre-cluster-threshold=0.3
    roi-top-offset=0
    roi-bottom-offset=0
    detected-min-w=0
    detected-min-h=0
    detected-max-w=0
    detected-max-h=0

    测试图片来自网络:

    测试命令:

     gst-launch-1.0 filesrc location=Capture.JPG ! jpegdec ! videoconvert ! video/x-raw,format=I420 ! nvvideoconvert ! video/x-rawmemory:NVMM" role="presentation" style="position: relative;">memory:NVMMmemory:NVMM,format=NV12 ! mux.sink_0 nvstreammux name=mux batch-size=1 width=1280 height=720 ! nvinfer config-file-path=./lpd_DetectNet2_us.txt ! nvvideoconvert ! video/x-rawmemory:NVMM" role="presentation" style="position: relative;">memory:NVMMmemory:NVMM,format=RGBA ! nvdsosd ! nvvideoconvert ! video/x-raw,format=I420 ! jpegenc ! filesink location=out.jpg

    测试结果:

  • 相关阅读:
    JavaScript 模块导入导出(export与import)用法
    LeetCode 1038.从二叉搜索树到更大和树
    Prometheus 监测 RocketMQ 最佳实践
    牛客网之SQL100题(6)--时间、日期
    【JQuery_基础练习】基础练习_分析_区分
    Java — 关于异常
    淘宝API详情接口调用示例
    2022双十一有哪些数码好物值得入手?双11实用性强的数码装备推荐
    软件测试基础——功能测试,软件测试提升完整指南
    Linux操作系统之操作系统概论以及操作系统设计思想
  • 原文地址:https://blog.csdn.net/evsqiezi/article/details/134536631
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号