Exemplo n.º 1
0
 public EImageBW8 GetLatestImage()
 {
     if (E2VCameraHelper.IsImageReady() == true)
     {
         return(E2VCameraHelper.GetImage());
     }
     else
     {
         throw new Exception("Image Not Ready");
     }
 }
Exemplo n.º 2
0
        public EImageBW8 SingleShot()
        {
            if (isSoftwareTriggerAllowed)
            {
                E2VCameraHelper.TriggerSnapShot();
            }
            Stopwatch SW = Stopwatch.StartNew();

            while (SW.ElapsedMilliseconds < timeOut_ms)
            {
                if (E2VCameraHelper.IsImageReady() == true)
                {
                    return(E2VCameraHelper.GetImage());
                }
            }
            throw new TimeoutException("E2V camera Capture Time Out");
        }
Exemplo n.º 3
0
 public bool Connect()
 {
     E2VCameraHelper.Connect();
     return(IsConnected);
 }
Exemplo n.º 4
0
 public string GetErrorMessage()
 {
     return(E2VCameraHelper.GetErrorMessage());
 }
Exemplo n.º 5
0
 public bool ReleaseImage()
 {
     E2VCameraHelper.ReleaseImage();
     return(true);
 }
Exemplo n.º 6
0
 public void Restart()
 {
     E2VCameraHelper.SetImageNotReady();
 }
Exemplo n.º 7
0
 public void Disconnect()
 {
     E2VCameraHelper.Disconnect();
 }