Ejemplo n.º 1
0
 //构造时初始化相机和端口
 public CameraStrategy(ICameraInfo cameraInfo, ParameterPackage parameters) : base(cameraInfo, parameters)
 {
     this.cameraInfo = cameraInfo;
     this.parameters = parameters;
     //getCameraInfo.TryGetConnect(DeviceType.GigE, out DeviceNum, out AllCameraInfo, out ErrorMessage);
     Icamera = ICamera.getInstance(cameraInfo);
 }
 /// <summary>
 /// 获取整个参数列表
 /// </summary>
 /// <returns>返回参数列表</returns>
 public ParameterPackage[] GetParameters()
 {
     ParameterPackage[] result = null;
     if (0 < Count)
     {
         result = new ParameterPackage[Count];
         ParameterNode node = Head;
         for (int i = 0; node.Next != null && i < result.Length; i++, node = node.Next)
         {
             result[i] = new ParameterPackage
             {
                 Type      = node.Next.Type,
                 Parameter = node.Next.Parameter
             }
         }
         ;
     }
     return(result);
 }
Ejemplo n.º 3
0
 public override IDbDataParameter Convert(ParameterPackage parameter)
 {
     return(new SqlParameter(parameter.ParamName, parameter.Value));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 打包参数
 /// </summary>
 public void PackageParameter()
 {
     Parameters = new ParameterPackage(NameId, Radius, Height, CenterX, CenterY, PixPerMm, LorR,
                                       DeltAx, DeltAy, DeltB, AMinSize, AMaxNum, BMinSize, BMaxNum, Aradius);
 }
Ejemplo n.º 5
0
        public static Detection getinstance(ParameterPackage parameters)
        {
            detection = new Detection(parameters);

            return(detection);
        }
Ejemplo n.º 6
0
 private Detection(ParameterPackage parameters)
 {
     this.parameters = parameters;
 }