YOLOV計(jì)數(shù)檢測(cè)源碼下載

9Y 福利資料下載YOLOV計(jì)數(shù)檢測(cè)源碼下載已關(guān)閉評(píng)論75字?jǐn)?shù) 173閱讀0分34秒閱讀模式
YOLOV計(jì)數(shù)檢測(cè)源碼下載
所屬分類:福利資料下載 最后更新:2024年8月22日 19:05


1.打開(kāi)視覺(jué)計(jì)數(shù)包裝機(jī)圖像
OpenFileDialog openFile = new OpenFileDialog();
openFile.Filter = "jpg圖片|*.JPG|png圖片|*.PNG|jpeg圖片|*.JPEG";
openFile.Title = "打開(kāi)圖像文件";
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.識(shí)別數(shù)量處理圖像
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;

 

 

繼續(xù)閱讀
我的微信
這是我的微信掃一掃
weinxin
我的微信
微信號(hào)已復(fù)制
我的微信公眾號(hào)
我的微信公眾號(hào)掃一掃
weinxin
我的公眾號(hào)
公眾號(hào)已復(fù)制
 
視覺(jué)計(jì)數(shù)軟件福利 福利資料下載

視覺(jué)計(jì)數(shù)軟件福利

安裝方式: 1.解壓文件。 2.點(diǎn)擊Debug文件夾。 3.雙擊setup文件。 4.選擇安裝的路徑。 5.打開(kāi)圖片。 6.自動(dòng)識(shí)別數(shù)量。 7.支持??迪鄼C(jī) 8.QQ群710585041。 9.掃碼分...
三菱plc編程軟件下載 福利資料下載

三菱plc編程軟件下載

軟件來(lái)自三菱官方網(wǎng)站,安裝過(guò)程如果提示需要序列號(hào),請(qǐng)輸入下列其中一個(gè): 570-986818410 804-999559933 998-598638072