Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Any plan to support .NET Core? #378

Closed
garora opened this issue Nov 1, 2017 · 14 comments
Closed

Question: Any plan to support .NET Core? #378

garora opened this issue Nov 1, 2017 · 14 comments

Comments

@garora
Copy link

garora commented Nov 1, 2017

Hi @charlesw
Any plan to support .NET Core?

@charlesw
Copy link
Owner

charlesw commented Nov 2, 2017 via email

@ajryan
Copy link

ajryan commented Nov 15, 2017

Do you intend for it to work cross-platform? Does the [RuntimeDllImport] approach use any APIs not available on .NET core or on certain platforms?

@charlesw
Copy link
Owner

charlesw commented Nov 16, 2017 via email

@ajryan
Copy link

ajryan commented Nov 16, 2017

Great. What aspects of ASP.NET are you using?

I was able to build and run your lib on Windows with a light refactor of the reflection stuff and used a shim for System.Drawing.Imaging: https://www.nuget.org/packages/CoreCompat.System.Drawing.v2

I'll fork and push my work, could be useful at least as a reference, or I can help out with this if you like.

@charlesw
Copy link
Owner

charlesw commented Nov 16, 2017 via email

@ajryan
Copy link

ajryan commented Nov 26, 2017

OK, here's my fork with the main lib and unit tests ported to NetCore. Next thing would be to try running it on linux.

ajryan@f1cad6f

@iammandeep85
Copy link

i am looking for new dll file for asp.net code . because i am using OCR for punjabi language but version 3.2 is not including spaces b/w strings and version 3.4 is including space b/w strings. so please assist me how do i update my dll file to 3.4.

lruckman added a commit to lruckman/DRS that referenced this issue Dec 11, 2017
@pascomartin
Copy link

Hi @charlesw,

I am using Tesseract (3.2.0-alpha4) in my asp .net core project.
For Bitmap image processing I have tried both CoreCompat.System.Drawing (1.0.0-beta006)
and CoreCompat.System.Drawing.v2 (5.2.0-preview1-r131) as advised above.
But still facing Issue - Reference to type 'Bitmap' claims it is defined in 'System.Drawing', but it could not be found
in PixConverter.ToPix & engine.Process(pix).
Please advise how to fix this issue in .net core project while using Tesseract dll.

@gtaylor44
Copy link

Any updates for this issue?

In the meantime I'm thinking of creating a console app or windows service and using SignalR to communicate an image URI and send back results to caller (.net core web application).

@garora
Copy link
Author

garora commented Apr 18, 2018

@gtaylor44 - Sounds interesting. Could you please share the Github link for your project?

@charlesw
Copy link
Owner

It's already done, check out the develop branch. Also see #298.

@charlesw
Copy link
Owner

Note that Bitmaps are not supported when targeting dotnet core. You'll need to either use leptonica directly or convert your images to leptonica's pix structure.

@AsValeO
Copy link

AsValeO commented Jan 16, 2019

Hello!
Please, describe how to get Tesseract.Pix from byte[] in .NET Core.
I've tried to use leptonica.net but had no success: It not supports .NET Core and Leptonica.Pix and Tesseract.Pix are different types (should I use cast?).
I can save byte array to file using System.Drawing.Common package for .NET Core, and then use Pix.LoadFromFile(filePath).

@charlesw
Copy link
Owner

charlesw commented Feb 7, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants