ocr
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
ocr
ocr
/
com.m8test.ocr.api
/
TesseractOcr
Tesseract
Ocr
interface
TesseractOcr
:
Ocr
基于 Tesseract 引擎的 OCR 识别接口,继承自基础 OCR 功能接口
See also
Ocr
基础 OCR 功能定义
Members
Functions
analyze
Image
Link copied to clipboard
abstract
fun
analyzeImage
(
image
:
String
,
regionBuilder
:
Rect
.
(
)
->
Unit
?
)
:
OcrResults
对指定图像文件执行文本识别。
analyze
Image
Text
Link copied to clipboard
abstract
fun
analyzeImageText
(
image
:
String
,
regionBuilder
:
Rect
.
(
)
->
Unit
?
)
:
String
对指定图像文件执行文本识别。
analyze
Screen
Link copied to clipboard
abstract
fun
analyzeScreen
(
regionBuilder
:
Rect
.
(
)
->
Unit
?
)
:
OcrResults
对当前屏幕截图执行文本识别(自动申请必要的截图权限)。
analyze
Screen
Text
Link copied to clipboard
abstract
fun
analyzeScreenText
(
regionBuilder
:
Rect
.
(
)
->
Unit
?
)
:
String
对当前屏幕截图执行文本识别(自动申请必要的截图权限)。
close
Link copied to clipboard
abstract
override
fun
close
(
)
get
Context
Link copied to clipboard
abstract
fun
getContext
(
)
:
ScriptContext
is
Closed
Link copied to clipboard
abstract
fun
isClosed
(
)
:
Boolean