Skip to content

Commit

Permalink
6.6.0 - Fix3 - 修复 Temurin 平台无法构建项目; OCR 模块参数数量限制错误
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperMonster003 committed Dec 2, 2024
1 parent 3ec26dc commit d3363f1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Ocr(private val scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime)

@JvmStatic
@RhinoRuntimeFunctionInterface
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) { argList ->
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) { argList ->
val (arg0, arg1, arg2) = argList

when {
Expand Down Expand Up @@ -149,7 +149,7 @@ class Ocr(private val scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime)

@JvmStatic
@RhinoRuntimeFunctionInterface
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) { argList ->
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) { argList ->
val (arg0, arg1, arg2) = argList

when {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class OcrMLKit(private val scriptRuntime: ScriptRuntime) : Augmentable(scriptRun

@JvmStatic
@RhinoRuntimeFunctionInterface
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) {
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) {
Ocr.commonRecognizeText(scriptRuntime, OcrMode.MLKIT, *it)
}

@JvmStatic
@RhinoRuntimeFunctionInterface
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) {
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) {
Ocr.commonDetect(scriptRuntime, OcrMode.MLKIT, *it)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ class OcrPaddle(private val scriptRuntime: ScriptRuntime) : Augmentable(scriptRu

@JvmStatic
@RhinoRuntimeFunctionInterface
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) {
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) {
Ocr.commonRecognizeText(scriptRuntime, OcrMode.PADDLE, *it)
}

@JvmStatic
@RhinoRuntimeFunctionInterface
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) {
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) {
Ocr.commonDetect(scriptRuntime, OcrMode.PADDLE, *it)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class OcrRapid(private val scriptRuntime: ScriptRuntime) : Augmentable(scriptRun

@JvmStatic
@RhinoRuntimeFunctionInterface
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) {
fun recognizeText(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) {
Ocr.commonRecognizeText(scriptRuntime, OcrMode.RAPID, *it)
}

@JvmStatic
@RhinoRuntimeFunctionInterface
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 2) {
fun detect(scriptRuntime: ScriptRuntime, args: Array<out Any?>): NativeArray = ensureArgumentsAtMost(args, 3) {
Ocr.commonDetect(scriptRuntime, OcrMode.RAPID, *it)
}

Expand Down
6 changes: 3 additions & 3 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Mon Dec 02 14:58:14 CST 2024
BUILD_TIME=1733122694239
#Mon Dec 02 16:52:56 CST 2024
BUILD_TIME=1733129576279
COMPILE_SDK_VERSION=34
JAVA_VERSION=23
JAVA_VERSION_MIN_RADICAL=0
Expand All @@ -17,6 +17,6 @@ RAPID_OCR_OPENCV_MOBILE_LABEL_VERSION=13
RAPID_OCR_OPENCV_MOBILE_VERSION=4.5.3
TARGET_SDK_VERSION=34
TARGET_SDK_VERSION_INRT=29
VERSION_BUILD=2882
VERSION_BUILD=2883
VERSION_NAME=6.6.0
VSCODE_EXT_REQUIRED_VERSION=1.0.8

0 comments on commit d3363f1

Please sign in to comment.