上传界面显示
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
|
||||
using DH.Commons.Enums;
|
||||
using OpenCvSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -28,7 +29,7 @@ namespace DH.Devices.Vision
|
||||
MLGPUEngine.FreePredictor(Model);
|
||||
}
|
||||
catch (Exception e) { }
|
||||
// MLEngine.FreePredictor(Model);
|
||||
// MLEngine.FreePredictor(Model);
|
||||
}
|
||||
public void Dispose2()
|
||||
{
|
||||
@ -41,7 +42,7 @@ namespace DH.Devices.Vision
|
||||
}
|
||||
public SimboVisionMLBase()
|
||||
{
|
||||
// ColorMap = OpenCVHelper.GetColorMap(256);//使用3个通道
|
||||
ColorMap = OpenCVHelper.GetColorMap(256);//使用3个通道
|
||||
// ColorLut = new Mat(1, 256, MatType.CV_8UC3, ColorMap);
|
||||
}
|
||||
}
|
||||
@ -55,16 +56,22 @@ namespace DH.Devices.Vision
|
||||
// "rect": [421, 823, 6, 8]
|
||||
// }]
|
||||
//}
|
||||
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public List<Result> HYolo;
|
||||
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public class Result
|
||||
{
|
||||
|
||||
public double fScore;
|
||||
public int classId;
|
||||
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public string classname;
|
||||
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
|
||||
//public double area;
|
||||
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public List<int> rect;
|
||||
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
|
||||
|
||||
}
|
||||
@ -72,45 +79,28 @@ namespace DH.Devices.Vision
|
||||
}
|
||||
public class SegResult
|
||||
{
|
||||
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public List<Result> SegmentResult;
|
||||
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public class Result
|
||||
{
|
||||
|
||||
public double fScore;
|
||||
public int classId;
|
||||
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public string classname;
|
||||
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
|
||||
public double area;
|
||||
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
public List<int> rect;
|
||||
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public class PreTreatParam
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 参数名称
|
||||
/// </summary>
|
||||
///
|
||||
[Category("预处理参数")]
|
||||
[DisplayName("参数名称")]
|
||||
[Description("参数名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 参数值
|
||||
/// </summary>
|
||||
///
|
||||
[Category("预处理参数")]
|
||||
[DisplayName("参数值")]
|
||||
[Description("参数值")]
|
||||
public string Value { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static class MLGPUEngine
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user