コード例 #1
0
ファイル: MonroeOcrTest.cs プロジェクト: Roballen/WebGrab
 public void Federal_Ocr_Should_Return_Valid_Lead()
 {
     var filename = Path.Combine("c:\\pdf\\", "3171370_monroe_federal.pdf");
     var target = new Federal(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
ファイル: MonroeCounty.cs プロジェクト: Roballen/WebGrab
 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();
     }
 }