public void Monroe_Horizontal_Ocr_Should_Return_Valid_Lead() { var filename = Path.Combine("c:\\pdf\\", "3820316_monroe_state.pdf"); var target = new MonroeOcr(filename,"Monroe"); var lead = target.GetLeadFromOcr(); Assert.IsTrue(lead.IsValid(), "Lead is not valid"); Assert.IsTrue(lead.Recordeddate != "", "didn't get the recorded date"); }
protected override void PerformOCR(ref Lead lead, LeadType type) { if (type == LeadType.Federal) { var fed = new Federal(lead.Document.Disklocation, "Monroe"); lead = fed.GetLeadFromOcr(); } else { var state = new MonroeOcr(lead.Document.Disklocation,"Monroe"); lead = state.GetLeadFromOcr(); } }