This commit is contained in:
16
docs/snippets/csharp/ocr/ocr_paddleocr.md
Normal file
16
docs/snippets/csharp/ocr/ocr_paddleocr.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```csharp title="C#"
|
||||
using Kreuzberg;
|
||||
|
||||
var config = new ExtractionConfig
|
||||
{
|
||||
Ocr = new OcrConfig
|
||||
{
|
||||
Backend = "paddle-ocr",
|
||||
Language = "en",
|
||||
// PaddleOcrConfig = new PaddleOcrConfig { ModelTier = "server" } // for max accuracy
|
||||
}
|
||||
};
|
||||
|
||||
var result = KreuzbergLib.ExtractFileSync("scanned.pdf", config);
|
||||
Console.WriteLine(result.Content);
|
||||
```
|
||||
Reference in New Issue
Block a user