This commit is contained in:
恍兮惚兮 2024-08-04 18:48:33 +08:00
parent b41842e361
commit 3b000950bd
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class OCR(baseocr):
data = {
"image": b64,
"detect_direction": globalconfig["verticalocr"] != 0,
"detect_direction": int(globalconfig["verticalocr"]) != 0,
"language_type": self.srclang,
}
interfacetype = self.config["接口"]

View File

@ -55,7 +55,7 @@ class baseocr(commonbase):
return whs < 1
def common_solve_text_orientation(self, boxs, texts):
vertical = globalconfig["verticalocr"]
vertical = int(globalconfig["verticalocr"])
def norm48(box):
return (

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 21)
set(VERSION_PATCH 1)
set(VERSION_PATCH 2)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)