文章预览
效果 项目 代码 using ByteTrack; using OpenCvSharp; using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace C__yolov8_OnnxRuntime_ByteTrack_Demo { public partial class Form2 : Form { public Form2 () { InitializeComponent(); } string imgFilter = "图片|*.bmp;*.jpg;*.jpeg;*.tiff;*.tiff;*.png" ; YoloV8 yoloV8; Mat image; string image_path = "" ; string model_path; string video_path = "" ; string videoFilter = "视频|*.mp4;*.avi;*.dav" ; VideoCapture vcapture; VideoWriter vwriter; bool saveDetVideo = false ;
………………………………