Documentation
¶
Overview ¶
Package image 将单页图片和多页 TIFF 导入为带图片与 OCR 文字层的 OFD。
Index ¶
- func Convert(ctx context.Context, input any, output io.Writer, options ...Option) error
- type Importer
- type Option
- func WithDPI(dpi float64) Option
- func WithMaxInputBytes(value int64) Option
- func WithMaxPagePixels(value int64) Option
- func WithMaxPages(value int) Option
- func WithMaxTotalPixels(value int64) Option
- func WithMinConfidence(value float64) Option
- func WithOCR(enabled bool) Option
- func WithOCREngine(engine ocr.Engine) Option
- func WithOCRLanguage(language string) Option
- func WithTextMode(mode TextMode) Option
- type Options
- type TextMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Importer ¶
Importer 是 converter 注册表使用的图片导入器。
func (*Importer) Extensions ¶
type Option ¶
type Option func(*Options)
Option 修改导入选项。
func WithMaxInputBytes ¶
func WithMaxPagePixels ¶
func WithMaxPages ¶
func WithMaxTotalPixels ¶
func WithMinConfidence ¶
func WithOCREngine ¶
func WithOCRLanguage ¶
func WithTextMode ¶
Click to show internal directories.
Click to hide internal directories.