ddddocr

package
v0.0.0-...-b6ea3c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ModelPath          string
	DetModelPath       string
	DictPath           string
	OnnxRuntimeLibPath string
	UseCustomModel     bool // true = 使用自定义模型 (dddd-trainer)
}

Config ddddocr 配置信息

type DetResult

type DetResult struct {
	Box   [4]int // [x1, y1, x2, y2]
	Score float32
}

DetResult 检测结果结构体

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine ddddocr 引擎

func NewEngine

func NewEngine(cfg Config) (*Engine, error)

NewEngine 初始化引擎

func (*Engine) Classification

func (e *Engine) Classification(img image.Image) (string, error)

Classification 验证码识别

func (*Engine) Destroy

func (e *Engine) Destroy()

func (*Engine) Detect

func (e *Engine) Detect(img image.Image) ([]DetResult, error)

Detect 目标检测

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL