方山网站建设,天津seo网站设计,电子商务排名,如何搭建静态网站源码【官方框架地址】
github.com/PaddlePaddle/PaddleDetection 【算法介绍】
关键点检测算法往往需要部署在轻量化、边缘端设备上#xff0c;因此长期以来都存在一个难题#xff1a;精度高、速度则慢、算法体积也随之增加。而PP-TinyPose的出世彻底打破了这个僵局#xff0c…【官方框架地址】
github.com/PaddlePaddle/PaddleDetection 【算法介绍】
关键点检测算法往往需要部署在轻量化、边缘端设备上因此长期以来都存在一个难题精度高、速度则慢、算法体积也随之增加。而PP-TinyPose的出世彻底打破了这个僵局采用Top-Down的方式先应用3.3M、150FPS的超轻量检测网络PP-PicoDet检测出人体再用基于Lite-HRNet的移动端优化模型检测对应关键点由此确保关键点检测的高精度同时扩大数据集减小输入尺寸预处理与后处理加入AID、UDP和DARK等策略保证模型的高性能。实现速度在FP16下122FPS的情况下精度也可达到51.8%AP不仅比其他类似实现速度更快精度更是提升了130%。
PP-TinyPose除了在日常关键点检测任务上拥有极强的通用性针对小目标出现在大尺幅图像中的产业常见难题场景完成一系列针对性的优化从而对小目标进行关键点检测时依然能保持同样的精度与速。更特别的是PP-TinyPose还能同时实现多人关键点检测且效果超强不仅对于检测人数无限制其速度和精度也依旧优秀与开源界其他类似实现相比检测人数、精度与性能上均有明显优势 【效果展示】 【实现部分代码】
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OpenCvSharp;namespace FIRC
{public partial class Form1 : Form{Mat src new Mat();string det_onnx Application.StartupPath \weights\picodet_v2_s_320_pedestrian\picodet_s_320_lcnet_pedestrian.onnx;string pose_onnx Application.StartupPath \weights\tinypose_256_192\tinypose_256_192.onnx;TinyPoseManager tpm new TinyPoseManager();public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){OpenFileDialog openFileDialog new OpenFileDialog();openFileDialog.Filter 图文件(*.*)|*.jpg;*.png;*.jpeg;*.bmp;openFileDialog.RestoreDirectory true;openFileDialog.Multiselect false;if (openFileDialog.ShowDialog() DialogResult.OK){src Cv2.ImRead(openFileDialog.FileName);pictureBox1.Image OpenCvSharp.Extensions.BitmapConverter.ToBitmap(src);}}private void button2_Click(object sender, EventArgs e){if(pictureBox1.Imagenull){return;}Stopwatch sw new Stopwatch();sw.Start();var resultMat tpm.Inference(src);sw.Stop();this.Text 耗时 sw.Elapsed.TotalSeconds 秒;pictureBox2.Image OpenCvSharp.Extensions.BitmapConverter.ToBitmap(resultMat); //Mat转Bitmap}private void Form1_Load(object sender, EventArgs e){tpm.LoadWeights(pose_onnx, det_onnx);}private void btn_video_Click(object sender, EventArgs e){}}
}【视频演示】
bilibili.com/video/BV1vC4y1e7QL/ 【源码下载】
https://download.csdn.net/download/FL1623863129/88700131 【测试环境】
vs2019
netframework4.7.2或者netframework4.8
opencvsharp4.8.0
无需额外安装openvino运行库即可直接运行 【参考文献】
[1] https://blog.csdn.net/PaddlePaddle/article/details/121623070