Пример #1
0
 public void Monroe_Vertical_Ocr_Should_Return_Valid_Lead()
 {
     var filename = Path.Combine("c:\\pdf\\", "4588397_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");
 }
Пример #2
0
 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();
     }
 }