資源簡介
yolov3 源碼編譯dll ,c#調(diào)用 ,權(quán)重現(xiàn)在不能共享, 自己網(wǎng)上尋找。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
using?Darknet;
using?System.Diagnostics;
using?HalconDotNet;
using?CCWin;
using?System.IO;
namespace?AI_predicted
{
????public?partial?class?Form1?:?CCSkinMain//Form
????{
????????int?q?=?0;
????????YoloWrapper?yolodetector;//=?new?YoloWrapper(“yolov3-Model_2.cfg“?“yolov3-Model_2_28600.weights“?0);
????????Hobject?Imag_Disp;
????????YoloWrapper.bbox_t[]?Ret;
????????List?classneme;
????????HTuple?hv_AcqHandle?=?null;
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????yolodetector=?new?YoloWrapper(“yolov3-Model_2.cfg“?“yolov3-Model_2_28600.weights“?1);
????????????}
????????????catch?(Exception)
????????????{
????????????????throw;
????????????}
????????????HOperatorSet.SetDraw(hWindowControl1.HalconWindow?“margin“);
????????????HOperatorSet.SetLineWidth(hWindowControl1.HalconWindow?3);
????????????HOperatorSet.SetColor(hWindowControl1.HalconWindow?“green“);
????????????HTuple?front;
????????????HOperatorSet.GetFont(hWindowControl1.HalconWindow?out?front);
????????????//Specify?font?name?and?size?
????????????HTuple???hv_FontWithSize?=?(front.TupleSelect(0))?+?“12-“;
????????????HOperatorSet.SetFont(hWindowControl1.HalconWindow?hv_FontWithSize);
????????????//?Initialize?local?and?output?iconic?variables?
????????????HOperatorSet.GenEmptyObj(out?Imag_Disp);
????????????//Image?Acquisition?01:?Code?generated?by?Image?Acquisition?01
????????????//HOperatorSet.Openframegrabber(“DirectShow“?1?1?0?0?0?0?“default“?8?“rgb“
????????????//????-1?“false“?“default“?“[0]?Integrated?Webcam“?0?-1?out?hv_AcqHandle);
????????????//HOperatorSet.GrabImageStart(hv_AcqHandle?-1);
????????????classneme?=?readclassname();
????????}
????????//保持原始圖像的比例
????????private?void?DispImageFit(HWindowControl?hw_Ctrl?Hobject?hv_image)
????????{
????????????try
????????????{
????????????????if?(hv_image?!=?null)
????????????????{
????????????????????HTuple?hv_imageWidth?hv_imageHeight;
????????????????????//hv_image.GetImageSize(out?hv_imageWidth?out?hv_imageHeight);
????????????????????HOperatorSet.GetImageSize(hv_image?out?hv_imageWidth?out?hv_imageHeight);
????????????????????Double?ratio_win?=?(double)hw_Ctrl.WindowSize.Width?/?(double)hw_Ctrl.WindowSize.Height;
????????????????????Double?ratio_img?=?(double)hv_imageWidth?/?(double)hv_imageHeight;
????????????????????int?_beginRow?_begin_Col?_endRow?_endCol;
????????????????????if?(ratio_win?>=?ratio_img)
????????????????????{
????????????????????????_beginRow?=?0;
????????????????????????_endRow?=?hv_imageHeight?-?1;
???????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\.vs\
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\.vs\AI_predicted\
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\.vs\AI_predicted\DesignTimeBuild\
?????文件?????????184??2019-03-12?17:52??AI_predicted?-?副本\.vs\AI_predicted\DesignTimeBuild\.dtbcache
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\.vs\AI_predicted\v15\
?????文件???????81920??2019-03-13?10:38??AI_predicted?-?副本\.vs\AI_predicted\v15\.suo
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\.vs\AI_predicted\v15\Server\
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\.vs\AI_predicted\v15\Server\sqlite3\
?????文件???????????0??2018-12-14?15:37??AI_predicted?-?副本\.vs\AI_predicted\v15\Server\sqlite3\db.lock
?????文件??????634880??2018-12-18?01:36??AI_predicted?-?副本\.vs\AI_predicted\v15\Server\sqlite3\storage.ide
?????文件???????32768??2019-03-13?10:30??AI_predicted?-?副本\.vs\AI_predicted\v15\Server\sqlite3\storage.ide-shm
?????文件?????4128272??2019-03-12?17:52??AI_predicted?-?副本\.vs\AI_predicted\v15\Server\sqlite3\storage.ide-wal
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\AI_predicted\
?????文件????????1489??2018-12-14?15:46??AI_predicted?-?副本\AI_predicted.sln
?????文件????????4937??2018-12-14?16:25??AI_predicted?-?副本\AI_predicted\AI_predicted.csproj
?????文件?????????187??2018-12-14?15:37??AI_predicted?-?副本\AI_predicted\App.config
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\AI_predicted\bin\
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\AI_predicted\bin\x64\
?????目錄???????????0??2019-03-13?10:52??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\
?????文件??????106973??2018-12-14?16:51??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\12.jpg
?????文件???????38389??2018-12-18?02:12??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\123.jpg
?????文件???????93720??2018-12-14?17:01??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\13.jpg
?????文件???????16896??2019-03-12?17:41??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\AI_predicted.exe
?????文件?????????187??2018-12-14?15:37??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\AI_predicted.exe.config
?????文件???????30208??2019-03-12?17:41??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\AI_predicted.pdb
?????文件???????????9??2018-12-12?07:20??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\box.names
?????文件?????????158??2018-12-11?12:48??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\coco.data
?????文件?????????625??2018-12-11?12:48??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\coco.names
?????文件???????55345??2018-12-17?12:01??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\computer.JPG
?????文件?????1627648??2013-12-19?21:46??AI_predicted?-?副本\AI_predicted\bin\x64\Debug\CSkin.dll
............此處省略93個文件信息
評論
共有 條評論