charlesw / tesseract-samples Goto Github PK
View Code? Open in Web Editor NEWSamples for the Tesseract.Net wrapper
License: Apache License 2.0
Samples for the Tesseract.Net wrapper
License: Apache License 2.0
Hello, this does not run on ASP Core 6, can you please update the sample
Is it possible to use an user patterns file for TesseractEngine.Process?
From the image: "This is a lot of 12 point text to test the ocr code..."
"ocr" is output as "cor" when I run the samples.
Is it just me?
I am using the sample code provided in a console application. For some sample files, i am able to get the results printed while in some case it throws an exception. I tried to see the difference between the working and non working images but the meta data seems very similar.
I am using magick.net library with ghost script to convert PDF to TIF/PNG. I use those images in the tesseract engine to validate the results.
using (var img = Pix.LoadFromFile(testImagePath))
: Line 26
Exception:
System.IO.IOException: Failed to load image '\Snakeware.Page1.tif'.
at Tesseract.Pix.LoadFromFile(String filename)
at ConsoleApp3.utils.Ocr.performOCR() in \Ocr.cs:line 26
Almost certianly due to my own stupidity - but I keep getting "The requested URL /Default.aspx was not found on this server"
Any suggestions?
I've set this page as the startup page, etc. - but still get this error.
Thanks!
Previous versions V3 etc where built and signed with a strong name (framework versions)
Can we get a V5 built with a strong name
When I try to deploy the solution to server, I get following issue.
This is the event trace I got. Already tried adding CustomSearchPath to bin x64 and x86 folders, even tried copying those dll to the bin folder.
Following line is causing the above error.
TesseractEngine engine = new TesseractEngine(tesseractDataFolder, "eng", EngineMode.Default);
This works perfectly fine on local machine, even copied server dll to local and tried, then again works fine.
Local machine - Windows 10 and server side - Windows 7 (No idea if there's any link to this issue)
Any suggestions to solve this?
In the console demo, running with no changes, I immediately get the error in the title on line 24 in Program.cs
var text = page.GetText();
stacktrace:
Fatal error. System.Runtime.InteropServices.SEHException (0x80004005): External
component has thrown an exception.
at InteropRuntimeImplementer.TessApiSignaturesInstance.TessApiSignaturesImplementation.BaseApiRecognize(System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef)
at Tesseract.Page.Recognize()
at Tesseract.Page.GetText()
at Tesseract.ConsoleDemo.Program.Main(System.String[])
Hi
I am facing the error while initializing the TesseractEngine. Below is the stacktrace
at Tesseract.TesseractEngine.Initialise(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary
2 initialValues, Boolean setOnlyNonDebugVariables)
at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable1 configFiles, IDictionary
2 initialOptions, Boolean setOnlyNonDebugVariables)
at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode)
at ConsoleApplication.Program.Main(String[] args) i
Can I generate a searchable PDF from .tiff or pdf?
By command line, tesseract allows me to do this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.