This commit is contained in:
19
docs/snippets/go/config/config_ocr.md
Normal file
19
docs/snippets/go/config/config_ocr.md
Normal file
@@ -0,0 +1,19 @@
|
||||
```go title="Go"
|
||||
package main
|
||||
|
||||
import "github.com/kreuzberg-dev/kreuzberg/packages/go/v5"
|
||||
|
||||
func main() {
|
||||
psm := int32(3)
|
||||
|
||||
_ = kreuzberg.ExtractionConfig{
|
||||
Ocr: &kreuzberg.OcrConfig{
|
||||
Backend: "tesseract",
|
||||
Language: "eng+fra",
|
||||
TesseractConfig: &kreuzberg.TesseractConfig{
|
||||
Psm: &psm,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user