-
Notifications
You must be signed in to change notification settings - Fork 753
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
Dev 3.03 : Implement OpenCL #178
Conversation
Notes: * x86 only (no x64 build yet) * based on rev 987 * Highly likely that tesseract and leptonica have different VS Runtimes (tesseract was compiled with VS 2013, while leptonica VS 2012) this will be fixed when I generate the x64 builds. * Confirmed Issue #52 has been resolved. * Could be Interop incompatibilities UNTESTED
Turned out the signature of pixOtsuAdaptiveThreshold was incorrect, fixing it rectified this issue.
Conflicts: src/Common.net45.targets src/Tesseract.Tests.Console/Program.cs
…as throwing a null reference exception with call to .Length)
- Imported pixaReadMultipageTiff, pixaGetCount, and pixaGetPix from Leptonica DLL - Updated Pix.cs to use those methods, imported the enumeration for the access types that pixaGetPix requires from pix.h in the original Leptonica source, and added a CreateArray method that creates a Pix[] to store the pages similar to the existing Create method
- Renamed pixHandle to pixaHandle in Pix.cs - call pixaDestroy on the original handle to the pixa object once the pixArray is created with the individual items extracted
Added multipage tiff reading to Dev 3.03
Please use PixArray.LoadMultiPageTiffFromFile.
Conflicts: Samples/Tesseract.ConsoleDemo/Program.cs src/Tesseract.Tests/EngineTests.cs
Conflicts: Samples/Tesseract.ConsoleDemo/packages.config Samples/Tesseract.WebDemo/packages.config src/Tesseract.Tests/BaseApiTests.cs src/Tesseract.Tests/EngineTests.cs src/Tesseract/Internal/Guard.cs src/Tesseract/Interop/BaseApi.cs src/Tesseract/Interop/LeptonicaApi.cs src/Tesseract/Pix.cs src/Tesseract/TesseractEngine.cs
Conflicts: .gitignore Samples/Tesseract.WebDemo/packages.config src/Tesseract.Tests/BaseApiTests.cs src/Tesseract.Tests/EngineTests.cs src/Tesseract.Tests/Tesseract.Tests.csproj src/Tesseract/Internal/Guard.cs src/Tesseract/Interop/BaseApi.cs src/Tesseract/Interop/LeptonicaApi.cs src/Tesseract/Interop/MarshalHelper.cs src/Tesseract/Pix.cs src/Tesseract/TesseractEngine.cs
Conflicts: Samples/Tesseract.ConsoleDemo/Tesseract.ConsoleDemo.csproj Samples/Tesseract.WebDemo/Tesseract.WebDemo.csproj src/Tesseract.Tests/EngineTests.cs src/Tesseract/BitmapToPixConverter.cs src/Tesseract/Interop/BaseApi.cs src/Tesseract/PixConverter.cs src/Tesseract/Tesseract.csproj
when using ResultIterator to analyze results, the ChoiceIterator can be used to analyze possible alternative choices for symbols.
Feature - added ChoiceIterator to ResultIterator
…n't fail when running under different cultures.
Conflicts: Samples/Tesseract.ConsoleDemo/Tesseract.ConsoleDemo.csproj Samples/Tesseract.ConsoleDemo/app.config src/Tesseract.Tests/Tesseract.Tests.csproj src/Tesseract/Pix.cs
Sorry for the delay, no opencl is not currently supported. I might look at
|
Conflicts: Samples/Tesseract.Samples.sln src/Tesseract.Tests/EngineTests.cs src/Tesseract/Pix.cs
Hello,
Do you have implement OpenCL API (tesseract compilation -enable-opencl=true) in current version ?
(I use currently tesseract on parallel process (.net) and with this example:
One for loop 1 to N with 10 threads tesseract on Intel Xeon Processor , it's very slow (1 hours for 100 documents)
Example
Parallel.foreach (0 to N email with attachment)
{
Parallel.foreach process.tesseract(attachment)
}
if no : Do you will implement it on 3.0.3 ?
Thank you