public Detector(Detection.DetectionTemplate dtpl, Mat processingImage, Result.ResultManager resMan, Result.ResultPresenter presenter) { detectionTemplate = dtpl; convertedWThreshold = processingImage.ToImage <Emgu.CV.Structure.Bgr, Byte>(); this.resultManager = resMan; this.presenter = presenter; }
public FormPhieuDangKy() { template = new Detection.DetectionTemplate(); template.MaxMarkArea = 9000; template.MinMarkArea = 3000; template.SearchTopOffset = 0.15; template.SearchBottomOffset = 0.85; template.SearchLeftOffset = 0.25; template.SearchRightOffset = 0.75; template.RatioUBound = 1.2; template.RatioLBound = 0.8; // Page 1, left column fieldWithMarginVertical(4, 901, 2842, 479, 110, 17, "LNgay", 10, 2, "QUESTION_ROW"); fieldWithMarginVertical(514, 901, 2842, 232, 106, 17, "LMonHoc", 5, 2, "QUESTION_ROW"); fieldWithMarginVertical(768, 901, 2842, 270, 54, 17, "LSoTiet", 6, 1, "QUESTION_ROW"); fieldWithMarginVertical(768, 952, 2897, 270, 54, 17, "LHoanThanh", 6, 1, "COUNT"); // Page 1, right column fieldWithMarginVertical(1089, 901, 2842, 479, 110, 17, "RNgay", 10, 2, "QUESTION_ROW"); fieldWithMarginVertical(1590, 901, 2842, 232, 106, 17, "RMonHoc", 5, 2, "QUESTION_ROW"); fieldWithMarginVertical(1839, 901, 2842, 272, 51, 17, "RSoTiet", 6, 1, "QUESTION_ROW"); fieldWithMarginVertical(1839, 949, 2900, 274, 53, 17, "RHoanThanh", 6, 1, "COUNT"); // Identification number addIdentificationNumberField(); // Save template saveTemplate(); }
public FormPhieuDangKyB() { template = new Detection.DetectionTemplate(); template.MaxMarkArea = 9000; template.MinMarkArea = 3000; template.SearchTopOffset = 0.15; template.SearchBottomOffset = 0.85; template.SearchLeftOffset = 0.25; template.SearchRightOffset = 0.75; template.RatioUBound = 1.2; template.RatioLBound = 0.8; // Page 1, left column fieldWithMarginVertical(1, 193, 2869, 472, 102, 23, "LNgay", 10, 2, "QUESTION_ROW"); fieldWithMarginVertical(503, 193, 2869, 236, 101, 23, "LMonHoc", 5, 2, "QUESTION_ROW"); fieldWithMarginVertical(757, 192, 2869, 275, 48, 23, "LSoTiet", 6, 1, "QUESTION_ROW"); fieldWithMarginVertical(757, 240, 2924, 270, 48, 23, "LHoanThanh", 6, 1, "COUNT"); // Page 1, right column fieldWithMarginVertical(1078, 191, 2869, 476, 97, 23, "RNgay", 10, 2, "QUESTION_ROW"); fieldWithMarginVertical(1582, 191, 2869, 228, 101, 23, "RMonHoc", 5, 2, "QUESTION_ROW"); fieldWithMarginVertical(1831, 191, 2869, 275, 48, 23, "RSoTiet", 6, 1, "QUESTION_ROW"); fieldWithMarginVertical(1831, 240, 2924, 270, 48, 23, "RHoanThanh", 6, 1, "COUNT"); // Identification number // addIdentificationNumberField(); // Save template saveTemplate(); }
public DetectionThread(Detection.DetectionTemplate dtpl, int threshold, string[] FileNames, DetectionCallback caller, PresentationCallback pCall, bool saveRecognitionResult) { this.detectionTemplate = dtpl; this.threshold = threshold; this.FileNames = FileNames; this.dCall = caller; this.pCall = pCall; this.saveRecognitionResult = saveRecognitionResult; }