Example #1
0
        public void RightPosProcess(VisionImage visionImage, Bitmap bitmap)
        {
            switch (Config.Instance.CurrentProductType)
            {
            case "Special_Shape":
                RightPos.ProcessImage(visionImage, frmAAVision.RightOffset);
                break;

            case "Rectangle":
                RightPos.RectRightPos(visionImage, frmAAVision.RightOffset);
                break;

            default:
                break;
            }

            SendCmd = RightPos.RightCali;
            PosCheck_C(bitmap, frmAAVision.acq.hWindowControl1.HalconWindow, RightPos.RightCaliArrary);

            ClearOtherBmp();
            if (frmAAVision.acq.SaveImage)
            {
                SaveImage.SaveResult(frmAAVision.acq.hWindowControl1.HalconWindow, "C1");
            }
            ReceiveCmd = "";
        }
Example #2
0
        public void RightGlueCheck(VisionImage visionImage, Bitmap bitmap, double Comspec, double Markspec)
        {
            switch (Config.Instance.CurrentProductType)
            {
            case "Special_Shape":
                ShapeRightCheck(visionImage, bitmap, Comspec, Markspec);
                break;

            case "Rectangle":
                RectRightCheck(visionImage, bitmap, Comspec, Markspec);
                break;

            default:
                break;
            }

            log.Debug("处理流程结束!");
            if (frmAAVision.acq.SaveImage)
            {
                SaveImage.SaveResult(frmAAVision.acq.hWindowControl2.HalconWindow, "C2");
            }
            ReceiveCmd = "";
        }