当前位置:网站首页>Trial record of ModelBox end cloud collaborative AI development kit (rk3568) (III)
Trial record of ModelBox end cloud collaborative AI development kit (rk3568) (III)
2022-07-28 18:17:00 【Hua Weiyun】
This part is : Use yolov3 Do mask test
Mask detection is different from vehicle detection , Vehicle detection is built into SDK in , Model file 、 Relevant configurations are provided as solutions , The created project is there . The mask detection needs to download the model and configuration files by yourself , And put it into the corresponding project directory , In fact, it is also very convenient .
Download address , Extraction code modbox choice common.zip( Functional units and configurations 、 Task allocation 、 Test video 5M) and rknpu2.zip( Reasoning function unit and process configuration 14M) Download it .
Still use it first create.py Create a mask_det_yolo3 The engineering of , And then use -t infer Option to create a named mask_infer Reasoning function unit of , It'll be in the engineering catalog model The following content is generated under
|-- model| `-- mask_infer| `-- mask_infer.tomltake rknpu2.zip Inside rknn Model files and 2 Configuration files are put into ( Covering the original mask_infer.toml):
workspace/mask_det_yolo3/model/mask_infer/|-- mask_infer.toml|-- yolo3_resnet18_mask_det_288x512.toml`-- yolo3_resnet18_mask_det_288x512_rknpu2.rknnmask_infer.toml The output of three models is defined in , It should be for head Head shoulder 、face、mask masks Information about .
Next, use parameters -t python establish 2 A functional unit , Namely yolo3_post post-processing , and draw_mask_bbox Draw a frame on the original picture , The generated content is as follows :
workspace/mask_det_yolo3/etc/`-- flowunit |-- cpp |-- draw_mask_bbox | |-- draw_mask_bbox.py | `-- draw_mask_bbox.toml |-- readme.txt `-- yolo3_post |-- yolo3_post.py `-- yolo3_post.tomltake common.zip Copy the contents of the functional units inside to overwrite the original file .
Display of results with or without masks , Its logic is realized in the drawing unit : If face Detection box and mask Detection box Coincidence Greater than a certain threshold , It was sentenced to wear a mask ; otherwise , It will be judged as not wearing a mask ; If you don't detect face Check box , Will show Unknown.
The next step is Serial flow chart (graph/mask_det_yolo3.toml), and Configure the input and output of the task (bin/mock_task.toml), Of course, there are already configured files in the download , Copy to the corresponding directory . At the same time, copy the test video to data Catalog .
mask_det_yolo3.toml It's defined in :
The processing flow of each functional unit
data_source_parser > video_demuxer > video_decoder > image_resize > mask_detection > yolo3_post > draw_mask_bbox > video_outas well as Interface docking configuration between output and input between functional units , Don't talk about the details .
The input and output of the configuration task are hello_world And the vehicle inspection department , I won't say .
This is the end of preparations , The following is to enter the project directory , Conduct build_project.sh then bin/main.sh Run the application to detect the wearing of masks in video files , And output the results to the video file .

There is another one in the download camera Configuration file for , Input and output can be configured as video streams , Try again later .
边栏推荐
- C WPF normal project suddenly prompts that the name "initializecomponent" does not exist in the current context
- 视频关联商品销量提升88%
- MediaTek has submitted an application to the US side, striving to supply goods to China after September 15
- 电源适配器 全球定义
- Mysql5.7 compressed package installation tutorial
- vmware虚拟机联网设置(win10自带虚拟机安装win7)
- Tensorflow2.0 (XII) -- realize simple RNN and LSTM networks
- 蛰伏两年!瓴盛科技首款AIoT芯片发布:三星11nm工艺,集成NPU内核!
- Changjiang storage launched its own storage brand "Zhiti", and the first SSD product was exposed
- Electrotechnics Volume II self study notes 1.23
猜你喜欢

矢量网络分析仪(矢网)的校准

Food safety | will the salt content of bread exceed the standard? A few tips to teach you to eat bread correctly!

7-8 romantic profile (25 points) achievements + new problem solving ideas

七个步骤,深入解读数据含义

Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition

Digital filter (I) -- basic structure and matlab implementation of IIR and fir

Fluent: exception handling

Tensorflow2.0 (XI) -- understanding LSTM network

Personal production: ad library, component library, packaging library and 3D model, free of charge

Openmv (V) -- STM32 to realize face recognition
随机推荐
Andorid: pit encountered by zxing.demo QR code scanning framework
视频号从每周2-3场到每天3场
计算机组成原理核心知识点总结&面试笔试要点[通俗易懂]
关于localtion 下的root和alias的区别
长江存储推出自有存储品牌“致钛”,首款SSD产品曝光
Processes, threads, semaphores, and mutexes
【无标题】
美国对华为禁令开始波及欧洲芯片厂商
Openmv (VI) -- STM32 realizes object recognition and handwritten digit recognition
视频号直播支持商品回放
Categories with good sales volume on the video Number
Xcode packaging IPA configuration manual configuration certificate
C# WPF 正常的项目突然提示 当前上下文中不存在名称“InitializeComponent”
做好视频号需要的特质
The US ban on Huawei began to affect European chip manufacturers
USB Type-C 详解
Flutter:异常处理
Live video Number supports product playback
矢量网络分析仪(矢网)组成和原理简介
This tool is enough for video number operation