implemented text recognition (ocr) #655
lint-and-build.yml
on: pull_request
Matrix: Build
Matrix: Pyright
Matrix: ruff
Annotations
55 errors and 16 warnings
ruff (ubuntu-22.04, 3.11)
Process completed with exit code 1.
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L52
Instance variable "__x" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L53
Instance variable "__xx" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L54
Instance variable "__y" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L55
Instance variable "__yy" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.11):
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)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L169
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (ubuntu-22.04, 3.11):
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)
|
Pyright (ubuntu-22.04, 3.11):
src/compare.py#L153
Type of "image_string" is partially unknown
Type of "image_string" is "bytes | str | Unknown" (reportUnknownVariableType)
|
Pyright (ubuntu-22.04, 3.11):
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)
|
Pyright (ubuntu-22.04, 3.11):
src/compare.py#L153
Type of "lower" is partially unknown
Type of "lower" is "(() -> bytes) | (() -> str) | Unknown" (reportUnknownMemberType)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L52
Instance variable "__x" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L53
Instance variable "__xx" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L54
Instance variable "__y" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L55
Instance variable "__yy" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (ubuntu-22.04, 3.10):
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)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L169
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (ubuntu-22.04, 3.10):
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)
|
Pyright (ubuntu-22.04, 3.10):
src/compare.py#L153
Type of "image_string" is partially unknown
Type of "image_string" is "bytes | str | Unknown" (reportUnknownVariableType)
|
Pyright (ubuntu-22.04, 3.10):
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)
|
Pyright (ubuntu-22.04, 3.10):
src/compare.py#L153
Type of "lower" is partially unknown
Type of "lower" is "(() -> bytes) | (() -> str) | Unknown" (reportUnknownMemberType)
|
ruff (ubuntu-22.04, 3.10)
Process completed with exit code 1.
|
ruff (windows-latest, 3.11)
Process completed with exit code 1.
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L52
Instance variable "__x" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L53
Instance variable "__xx" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L54
Instance variable "__y" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L55
Instance variable "__yy" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.12):
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)
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L169
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (windows-latest, 3.12):
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)
|
Pyright (windows-latest, 3.12):
src/compare.py#L153
Type of "image_string" is partially unknown
Type of "image_string" is "bytes | str | Unknown" (reportUnknownVariableType)
|
Pyright (windows-latest, 3.12):
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)
|
Pyright (windows-latest, 3.12):
src/compare.py#L153
Type of "lower" is partially unknown
Type of "lower" is "(() -> bytes) | (() -> str) | Unknown" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L52
Instance variable "__x" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L53
Instance variable "__xx" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L54
Instance variable "__y" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L55
Instance variable "__yy" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.11):
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)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L169
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (windows-latest, 3.11):
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)
|
Pyright (windows-latest, 3.11):
src/compare.py#L153
Type of "image_string" is partially unknown
Type of "image_string" is "bytes | str | Unknown" (reportUnknownVariableType)
|
Pyright (windows-latest, 3.11):
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)
|
Pyright (windows-latest, 3.11):
src/compare.py#L153
Type of "lower" is partially unknown
Type of "lower" is "(() -> bytes) | (() -> str) | Unknown" (reportUnknownMemberType)
|
ruff (windows-latest, 3.10)
Process completed with exit code 1.
|
ruff (windows-latest, 3.12)
Process completed with exit code 1.
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L52
Instance variable "__x" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L53
Instance variable "__xx" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L54
Instance variable "__y" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L55
Instance variable "__yy" is not initialized in the class body or __init__ method (reportUninitializedInstanceVariable)
|
Pyright (windows-latest, 3.10):
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)
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L169
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (windows-latest, 3.10):
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)
|
Pyright (windows-latest, 3.10):
src/compare.py#L153
Type of "image_string" is partially unknown
Type of "image_string" is "bytes | str | Unknown" (reportUnknownVariableType)
|
Pyright (windows-latest, 3.10):
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)
|
Pyright (windows-latest, 3.10):
src/compare.py#L153
Type of "lower" is partially unknown
Type of "lower" is "(() -> bytes) | (() -> str) | Unknown" (reportUnknownMemberType)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplit.py#L286
Condition will always evaluate to False since the types "() -> str" and "None" have no overlap (reportUnnecessaryComparison)
|
Pyright (ubuntu-22.04, 3.11):
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplit.py#L286
Condition will always evaluate to False since the types "() -> str" and "None" have no overlap (reportUnnecessaryComparison)
|
Pyright (ubuntu-22.04, 3.10):
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
Pyright (windows-latest, 3.12):
src/AutoSplit.py#L286
Condition will always evaluate to False since the types "() -> str" and "None" have no overlap (reportUnnecessaryComparison)
|
Pyright (windows-latest, 3.12):
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
Pyright (windows-latest, 3.12):
src/compare.py#L13
Import "PIL" could not be resolved from source (reportMissingModuleSource)
|
Pyright (windows-latest, 3.12):
src/compare.py#L13
Import "PIL.Image" could not be resolved from source (reportMissingModuleSource)
|
Pyright (windows-latest, 3.11):
src/AutoSplit.py#L286
Condition will always evaluate to False since the types "() -> str" and "None" have no overlap (reportUnnecessaryComparison)
|
Pyright (windows-latest, 3.11):
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
Pyright (windows-latest, 3.11):
src/compare.py#L13
Import "PIL" could not be resolved from source (reportMissingModuleSource)
|
Pyright (windows-latest, 3.11):
src/compare.py#L13
Import "PIL.Image" could not be resolved from source (reportMissingModuleSource)
|
Pyright (windows-latest, 3.10):
src/AutoSplit.py#L286
Condition will always evaluate to False since the types "() -> str" and "None" have no overlap (reportUnnecessaryComparison)
|
Pyright (windows-latest, 3.10):
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
Pyright (windows-latest, 3.10):
src/compare.py#L13
Import "PIL" could not be resolved from source (reportMissingModuleSource)
|
Pyright (windows-latest, 3.10):
src/compare.py#L13
Import "PIL.Image" could not be resolved from source (reportMissingModuleSource)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
AutoSplit for ubuntu-22.04 (Python 3.11)
Expired
|
165 MB |
|
AutoSplit for windows-latest (Python 3.11)
Expired
|
135 MB |
|
AutoSplit for windows-latest (Python 3.12)
Expired
|
135 MB |
|
Build logs for ubuntu-22.04 (Python 3.11)
Expired
|
2.09 MB |
|
Build logs for windows-latest (Python 3.11)
Expired
|
2.34 MB |
|
Build logs for windows-latest (Python 3.12)
Expired
|
2.35 MB |
|