emgucv / emgutf

Emgu TF is a cross platform .Net wrapper for the Google Tensorflow library. Allows Tensorflow functions to be called from .NET compatible languages such as C#, VB, VC++, IronPython.
https://www.emgu.com/wiki/index.php/Emgu_TF
Other
214 stars 43 forks source link

Searchable PDF from Tess Engine Broken? #75

Closed ambirdev closed 2 years ago

ambirdev commented 2 years ago

I am trying to use the PDFRenderer on Windows/.NET Standard 2.0 to generate a searchable PDF from image. When I use the PDFRenderer to create the PDF, a zero byte file is created. I followed the sample code in the test cases for OCR:

using (PDFRenderer pdfRenderer = new PDFRenderer("abc.pdf", "./", false)) using (Pix imgPix = new Pix(img.Mat)) { ocr.ProcessPage(imgPix, 1, "img", null, 100000, pdfRenderer); }

I noticed that in recent check-ins of the code that this test case is commented out. Is the PDFRenderer broken?

ambirdev commented 2 years ago

Wrong project.