Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1429,15 +1429,16 @@ def ocr_get_value_with_coordinates(data_set):
)
return "zeuz_failed"

if (topcord > bottomcord or leftcord > rightcord):
# check if the variable name is provided or not
if var_name == "":
CommonUtil.ExecLog(
sModuleInfo, "Please insert correct coordinates", 3
sModuleInfo, "Please provide a variable name to store the extracted value", 3
)
return "zeuz_failed"

if var_name is None:
if (topcord > bottomcord or leftcord > rightcord):
CommonUtil.ExecLog(
sModuleInfo, "Please provide a variable name to store the extracted value", 3
sModuleInfo, "Please insert correct coordinates", 3
)
return "zeuz_failed"

Expand Down Expand Up @@ -1535,6 +1536,13 @@ def ocr_get_value_with_image(data_set):
)
return "zeuz_failed"

# check if the variable name is provided or not
if var_name == "":
CommonUtil.ExecLog(
sModuleInfo, "Please provide a variable name to store the extracted value", 3
)
return "zeuz_failed"

get_bbox_dataset = (
("image", "element parameter", f"{image_name}"),
("get bounding box", "desktop action", "coords")
Expand Down Expand Up @@ -1612,6 +1620,13 @@ def ocr_get_value_with_text(data_set):
)
return "zeuz_failed"

# check if the variable name is provided or not
if var_name == "":
CommonUtil.ExecLog(
sModuleInfo, "Please provide a variable name to store the extracted value", 3
)
return "zeuz_failed"

if reader is None:
ocr_thread = threading.Thread(target=get_easyocr_reader)
ocr_thread.start()
Expand Down