implemented text recognition (ocr) #655
Annotations
10 errors and 4 warnings
Analysing the code with Pyright:
src/AutoSplitImage.py#L52
Instance variable "__x" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L53
Instance variable "__xx" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L54
Instance variable "__y" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L55
Instance variable "__yy" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L101
Argument of type "str | None" cannot be assigned to parameter "region" of type "str" in function "__region"
Type "str | None" cannot be assigned to type "str"
"None" is incompatible with "str" (reportGeneralTypeIssues)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L169
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L169
Argument type is partially unknown
Argument corresponds to parameter "capture" in function "extract_and_compare_text"
Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
|
Analysing the code with Pyright:
src/compare.py#L153
Type of "image_string" is partially unknown
Type of "image_string" is "bytes | str | Unknown" (reportUnknownVariableType)
|
Analysing the code with Pyright:
src/compare.py#L153
Type of "image_to_string" is partially unknown
Type of "image_to_string" is "(image: Unknown, lang: Unknown | None = None, config: str = '', nice: int = 0, output_type: str = Output.STRING, timeout: int = 0) -> (bytes | str | dict[str, bytes | str])" (reportUnknownMemberType)
|
Analysing the code with Pyright:
src/compare.py#L153
Type of "lower" is partially unknown
Type of "lower" is "(() -> bytes) | (() -> str) | Unknown" (reportUnknownMemberType)
|
Analysing the code with Pyright:
src/AutoSplit.py#L286
Condition will always evaluate to False since the types "() -> str" and "None" have no overlap (reportUnnecessaryComparison)
|
Analysing the code with Pyright:
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
Analysing the code with Pyright:
src/compare.py#L13
Import "PIL" could not be resolved from source (reportMissingModuleSource)
|
Analysing the code with Pyright:
src/compare.py#L13
Import "PIL.Image" could not be resolved from source (reportMissingModuleSource)
|
The logs for this run have expired and are no longer available.
Loading