tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

PixConverter .NET Core support.

Open groogiam opened this issue 6 years ago • 6 comments

Allow PixConverter to be used by .NET Standard projects via the System.Drawing.Common nuget package.

groogiam avatar Feb 19 '19 06:02 groogiam

Apart from the refactoring (which should've been done as a separate commit or PR) the System.Drawing seems needed.

SimantoR avatar May 16 '19 08:05 SimantoR

So... does that mean you are not going to merge the pull request?

groogiam avatar May 19 '19 17:05 groogiam

@charlesw @groogiam Why is this not merged yet? It really just needs a System.Drawing.Common nuget package reference

mario-mestrovic avatar Jun 23 '19 14:06 mario-mestrovic

Not sure whether it is possible to create pull request for pull request, so will just write it here. If this to be merged, NETFULL conditions should probably be removed from the following bitmap-related code too:

  • BitmapHelper.cs
  • ColorTests.cs
  • EngineTests.cs
  • LeptonicaPerfomanceTests.cs
  • TesseractEngine.cs

ArXen42 avatar Aug 13 '19 16:08 ArXen42

For anyone in a hurry, use @groogiam's Tesseract_463 in nuget. It seems a forked version of this repo with PixConverter applied. I've migrated .Net 4.7 to Core 3.0 without any trouble with this.

Install-Package Tesseract_463 -Version 3.3.0.1

Note that the tessdata should be this; https://github.com/tesseract-ocr/tessdata/releases/tag/3.04.00

YoungjaeKim avatar Oct 18 '19 08:10 YoungjaeKim

FYI I've released a new package called tesseract.Drawing that pairs with tesseract package to add support for bitmaps.

Does this solve your problems?

Note both are currently prerelease packages, target tesseract 4.1, and require the vs 16 (2019) C++ runtime.

On Fri., 18 Oct. 2019, 19:57 YoungjaeKim, [email protected] wrote:

For anyone in a hurry, use Tesseract_463 in nuget. It seems a forked version of this repo with PixConverter applied. I've migrated .Net 4.7 to Core without any trouble with this.

Install-Package Tesseract_463 -Version 3.3.0.1

Note that the tessdata should be this; https://github.com/tesseract-ocr/tessdata/releases/tag/3.04.00

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/charlesw/tesseract/pull/463?email_source=notifications&email_token=AAB7HSBMTPWIIKT7QO5YR4LQPF3AZA5CNFSM4GYI6Z7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBTN4ZY#issuecomment-543612519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7HSFKJR3RECWL7EPIV73QPF3AZANCNFSM4GYI6Z7A .

charlesw avatar Oct 18 '19 21:10 charlesw