ddddGocr

package module
v0.0.0-...-bf972be Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlideMatch

func SlideMatch(targetStr, backgroundStr string, matchType SlideMatchType, matchEngine MatchEngine) (*ddddgocr.SlideBBox, error)

目标图片路径、背景图片路径/Base64编码、匹配方式、匹配引擎, 比较模式的背景图为完整图片

func SlideMatchWithByte

func SlideMatchWithByte(targetData, backgroundData []byte, matchType SlideMatchType, matchEngine MatchEngine) (*ddddgocr.SlideBBox, error)

目标图片、背景图片、匹配方式、匹配引擎, 比较模式的背景图为完整图片

Types

type MatchEngine

type MatchEngine string
const (
	Default MatchEngine = "default"
	OpenCV  MatchEngine = "opencv"
)

type SlideMatchType

type SlideMatchType string

滑块匹配类型

const (
	Simple     SlideMatchType = "simple"
	Standard   SlideMatchType = "standard"
	Enhanced   SlideMatchType = "enhanced"
	Comparison SlideMatchType = "comparison"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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