How to use WithCustomImageOcr when working with kernel memory as a service? #738
Answered
by
dluc
pfigueiredo
asked this question in
1. Q&A
-
How to use WithCustomImageOcr when working with kernel memory as a service? What is the correct implementation for using with tesseract? |
Beta Was this translation helpful? Give feedback.
Answered by
dluc
Aug 23, 2024
Replies: 1 comment
-
To use Tesseract:
// ...
appBuilder.AddKernelMemory(memoryBuilder =>
{
memoryBuilder.FromAppSettings().WithoutDefaultHandlers();
// ... to // ...
appBuilder.AddKernelMemory(memoryBuilder =>
{
memoryBuilder.FromAppSettings().WithoutDefaultHandlers();
memoryBuilder.WithCustomImageOcr<TesseractOcrEngine>(); // <--- add this line
// ...
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pfigueiredo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use Tesseract:
TesseractOcrEngine
, implementing theIOcrEngine
(code) interfaceappBuilder.AddKernelMemory
), changing this code:to