|
|
@ -92,10 +92,10 @@ Exception: {e}""")
|
|
|
|
FONT_LINE_STYLE: Final[int] = cv2.LINE_AA
|
|
|
|
FONT_LINE_STYLE: Final[int] = cv2.LINE_AA
|
|
|
|
RECT_THICKNESS: Final[int] = 5
|
|
|
|
RECT_THICKNESS: Final[int] = 5
|
|
|
|
# PYTHON <= 3.7: must use () for assignments
|
|
|
|
# PYTHON <= 3.7: must use () for assignments
|
|
|
|
START_POS_TEXT: Final[Tuple[Point]] = (5, 20)
|
|
|
|
START_POS_TEXT: Final[Point] = (5, 20)
|
|
|
|
NORMAL_COLOR: Final[Tuple[ColorBGR]] = (255, 0, 255)
|
|
|
|
NORMAL_COLOR: Final[ColorBGR] = (255, 0, 255)
|
|
|
|
SUCCESS_COLOR: Final[Tuple[ColorBGR]] = (0, 255, 0)
|
|
|
|
SUCCESS_COLOR: Final[ColorBGR] = (0, 255, 0)
|
|
|
|
FAILURE_COLOR: Final[Tuple[ColorBGR]] = (0, 0, 255)
|
|
|
|
FAILURE_COLOR: Final[ColorBGR] = (0, 0, 255)
|
|
|
|
FONT_DY: Final[Tuple[int, int]] = (0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5)
|
|
|
|
FONT_DY: Final[Tuple[int, int]] = (0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5)
|
|
|
|
|
|
|
|
|
|
|
|
qreader_available = True
|
|
|
|
qreader_available = True
|
|
|
|