mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
up
This commit is contained in:
parent
b41842e361
commit
3b000950bd
@ -62,7 +62,7 @@ class OCR(baseocr):
|
|||||||
|
|
||||||
data = {
|
data = {
|
||||||
"image": b64,
|
"image": b64,
|
||||||
"detect_direction": globalconfig["verticalocr"] != 0,
|
"detect_direction": int(globalconfig["verticalocr"]) != 0,
|
||||||
"language_type": self.srclang,
|
"language_type": self.srclang,
|
||||||
}
|
}
|
||||||
interfacetype = self.config["接口"]
|
interfacetype = self.config["接口"]
|
||||||
|
@ -55,7 +55,7 @@ class baseocr(commonbase):
|
|||||||
return whs < 1
|
return whs < 1
|
||||||
|
|
||||||
def common_solve_text_orientation(self, boxs, texts):
|
def common_solve_text_orientation(self, boxs, texts):
|
||||||
vertical = globalconfig["verticalocr"]
|
vertical = int(globalconfig["verticalocr"])
|
||||||
|
|
||||||
def norm48(box):
|
def norm48(box):
|
||||||
return (
|
return (
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 21)
|
set(VERSION_MINOR 21)
|
||||||
set(VERSION_PATCH 1)
|
set(VERSION_PATCH 2)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user