浏览代码

Merge pull request #936 from FlyingQianMM/develop_qh

fix wrong image channel in c# Program.cs
FlyingQianMM 4 年之前
父节点
当前提交
bad2fd2b97
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dygraph/examples/C#_deploy/Program.cs

+ 1 - 1
dygraph/examples/C#_deploy/Program.cs

@@ -38,7 +38,7 @@ namespace ConsoleApp2
             Byte[] labellist = new Byte[1000];    //新建字节数组
 
             //第四个参数为输入图像的通道数
-            ModelPredict(inputData, bmp.Width, bmp.Height, 4, results, boxesInfo, ref labellist[0]);
+            ModelPredict(inputData, bmp.Width, bmp.Height, 3, results, boxesInfo, ref labellist[0]);
             string strGet = System.Text.Encoding.Default.GetString(labellist, 0, labellist.Length);    //将字节数组转换为字符串
             Console.WriteLine("labellist: {0}", strGet);
             for (int i = 0; i < boxesInfo[0]; i++)