YOLOV計數檢測源碼下載

2022年10月5日09:05:05YOLOV計數檢測源碼下載已關閉評論 980字閱讀3分16秒(miao)
YOLOV計數檢測源碼下載
所屬分類:福利資料下載 最后更新:2022年10月5日 09:00


1.打開視覺計數包裝機圖像
OpenFileDialog openFile = new OpenFileDialog();
openFile.Filter = "jpg圖片|*.JPG|png圖片|*.PNG|jpeg圖片|*.JPEG";
openFile.Title = "打開圖像文件";
if (openFile.ShowDialog() == DialogResult.OK)
{
sw.Restart();
string mage = openFile.FileName;
imagein = Cv2.ImRead(mage);
imageout = yolov3_model(imagein);
pictureBox1.Image = imageout.ToBitmap();
label2.Text = "取圖" + sw.ElapsedMilliseconds.ToString("f2") + "ms";
}
}2.識別數量處理圖像
private Mat yo_model(Mat imgSrc)
{
Mat org = new Mat();
org = imgSrc;
const float threshold = 0.5f;
const float nmsThreshold = 0.3f;
var cfg = Path.Combine(Location1, Cfg);
var model = Path.Combine(Location1, Weight);
var net = CvDnn.ReadNetFromDarknet(cfg, model);
var blob = CvDnn.BlobFromImage(org, 1.0 / 255, new OpenCvSharp.Size(416, 416), new Scalar(), true, false);
net.SetInput(blob);
var outNames = net.GetUnconnectedOutLayersNames();
var outs = outNames.Select(_ => new Mat()).ToArray();
net.Forward(outs, outNames);
org = GetResult(outs, org, threshold, nmsThreshold);
GC.Collect();
return org;

 

 

繼續閱讀
  • 我的微信
  • 這是我的微信掃一掃
  • weinxin
  • 我的微信公眾號
  • 我的微信公眾號掃一掃
  • weinxin
視覺計數軟件福利 福利資料下載

視覺計數軟件福利

視覺計數軟件下載 安裝方式: 1.解壓文件。 2.點擊Debug文件夾。 3.雙擊setup文件。 4.選擇安裝的路徑。 5.打開圖片。 6.自動識別數量。 7.支持海康相機 8.QQ群7105850...
三菱plc編程軟件下載 福利資料下載

三菱plc編程軟件下載

軟件來自三菱官方網站,安裝過程如果提示需要序列號,請輸入下列其中一個: 570-986818410 804-999559933 998-598638072