Comments (1)
Pull request #19 fixes this issue
Example
private async void DEMO_Recognize_AsConfigured(object sender, EventArgs e)
{
// Select image (Not important)
var path = await GetUserSelectedPath();
if (path is null)
{
return;
}
// this Tesseract is injected property
Tesseract.EngineConfiguration = (engine) =>
{
// Engine uses DefaultSegmentationMode, if no other is passed as method parameter.
// If ITesseract is injected to page, this is only way of setting PageSegmentationMode.
// PageSegmentationMode defines how ocr tries to look for text, for example singe character or single word.
// By default uses PageSegmentationMode.Auto.
engine.DefaultSegmentationMode = TesseractOcrMaui.Enums.PageSegmentationMode.Auto;
engine.SetCharacterWhitelist("abcdefgh"); // These characters ocr is looking for
engine.SetCharacterBlacklist("abc"); // These characters ocr is not looking for
// Now ocr should be only finding characters 'defgh'
};
// Recognize image
var result = await Tesseract.RecognizeTextAsync(path);
// For this example I reset engine configuration, because same Object is used in other examples
Tesseract.EngineConfiguration = null;
// Show output (Not important)
ShowOutput("FromPath, Configured", result);
}
from tesseractocrmaui.
Related Issues (11)
- Nuget package does not copy native libraries to build output on Windows HOT 2
- iOS HOT 9
- Text whitelist HOT 9
- Cannot Pix.LoadFromMemory(byte[]) if jpeg image on Android HOT 2
- Unable to detect single digit numbers HOT 3
- Tesseract engine mode access HOT 1
- net7.0-ios compile error HOT 14
- Tesseract with live camera HOT 1
- Configure encoding/decoding to get non-ASCII characters (e.g., Chinese/Japanese/Korean etc.) HOT 10
- Add iterators to have more control over recognition process HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tesseractocrmaui.