public bool Connect()
 {
     if (!cameraOperator.IsCameraOpen)
     {
         var device = cameraOperator.CameraDevice(CameraName);
         int nRet   = cameraOperator.OpenMVS(device);
         if (nRet == 0)
         {
             if (!CameraStartGrabing(cameraOperator))
             {
                 throw new Exception("相机取流错误");
             }
             else
             {
                 Rectangle rectangle = GetCameraROI;
                 Size      size      = GetCameraROIMax;
             }
         }
         else
         {
             throw new Exception(string.Format("连接相机错误:Code({0})", nRet));
         }
     }
     return(true);
 }