YOLOV計數檢測源碼下載

9Y 資料下載(zǎi)YOLOV計數檢測源碼下載已關(guān)閉評論1,998字(zì)數(shù) 173閱讀0分34秒閱讀模式(shì)
YOLOV計數檢測源碼下(xià)載(zǎi)
所屬分(fèn)類(lèi):資料下載 最後更新:2024年8月(yuè)22日 19:05


1.打開視覺計(jì)數包裝(zhuāng)機圖像
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.識別數量(liàng)處理圖像
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(locations1, Cfg);
var model = Path.Combine(locations1, 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;

 

 

繼續閱讀
我的(de)微信
這是我的微信掃一(yī)掃
weinxin
我的微信
微信號已複製
我的(de)微信公眾號
我的微信公眾號掃一掃
weinxin
我的公眾號
公眾(zhòng)號已複製
 
視覺計數軟(ruǎn)件福(fú)利 資料下載

視覺計數軟件福利(lì)

安裝方式: 1.解壓文件。 2.點擊Debug文件夾(jiá)。 3.雙擊setup文件。 4.選擇安裝的路徑。 5.打開圖片。 6.自動(dòng)識別數量。 7.支持海康相機 8.QQ群710585041。 9.掃碼分...
三菱plc編程軟件下載 資料下載

三菱plc編程軟件下載

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