Hi @charlesw
Any plan to support .NET Core?
Yes, it's next on my list. Can't give an exact ETA but stay tuned.
On Thu., 2 Nov. 2017, 07:03 Gaurav Aroraa, notifications@github.com wrote:
Hi @charlesw https://github.com/charlesw
Any plan to support .NET Core?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/378, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyFuAm40rWYupfYcLqUuGwVgq1d4Nks5syM57gaJpZM4QOvhX
.
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?
Yes, it should be cross platform. The main issues are more to do with the
integration into .net that's not available in dotnet standard like asp.net
and system.drawing.
My current thoughts are just to exclude these bits from the dotnet standard
target. Though this could create some issues if used from asp.net core.
On Thu., 16 Nov. 2017, 08:34 Aidan Ryan, notifications@github.com wrote:
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?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/378#issuecomment-344735882,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyKzt0hLoH3Icjtp4UY9HIK66VEccks5s21jogaJpZM4QOvhX
.
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.
Yes thanks that would be helpful.
As for asp.net that was used to get around how iis creates a shadow copy of
the managed dlls which makes it difficult to find the unmanaged dlls.
On Thu., 16 Nov. 2017, 15:27 Aidan Ryan, notifications@github.com wrote:
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.v2I'll fork and push my work, could be useful at least as a reference, or I
can help out with this if you like.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/378#issuecomment-344812334,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyJ55GiWNUolYXg7Q4ZZCFLDz96_zks5s27mYgaJpZM4QOvhX
.
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.
https://github.com/ajryan/tesseract/commit/f1cad6f22851c4a29cd262c4dbd89a751857ac30
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.
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.
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).
@gtaylor44 - Sounds interesting. Could you please share the Github link for your project?
It's already done, check out the develop branch. Also see #298.
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.
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)
.
Your options are:
On Wed., 16 Jan. 2019, 20:25 AsValeO <[email protected] wrote:
Hello!
Please, describe how to get Tesseract.Pix from byte[] in .NET Core.
I've tried to use leptonica.net but had no success.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/378#issuecomment-454709914,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyGbbVoAXUb0lGyF3q8aqMffhon-Vks5vDvAJgaJpZM4QOvhX
.
Most helpful comment
Yes, it's next on my list. Can't give an exact ETA but stay tuned.
On Thu., 2 Nov. 2017, 07:03 Gaurav Aroraa, notifications@github.com wrote: