implemented text recognition (ocr) #658
lint-and-build.yml
on: pull_request
Matrix: Build
Matrix: Pyright
Matrix: ruff
Annotations
50 errors and 28 warnings
ruff (ubuntu-22.04, 3.11)
Process completed with exit code 1.
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplit.py#L953
No overloads for "__init__" match the provided arguments (reportCallIssue)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplit.py#L954
Argument of type "memoryview" cannot be assigned to parameter "data" of type "bytes" in function "__init__"
"memoryview" is incompatible with "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplit.py#L954
Unnecessary "# pyright: ignore" rule: "reportGeneralTypeIssues"
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L174
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L174
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_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 "fromarray" is partially unknown
Type of "fromarray" is "(obj: Unknown, mode: str | None = None) -> Image" (reportUnknownMemberType)
|
Pyright (ubuntu-22.04, 3.10):
src/compare.py#L155
Type of "ratio" is partially unknown
Type of "ratio" is "(s1: Sequence[Hashable], s2: Sequence[Hashable], *, processor: ((...) -> Unknown) | None = None, score_cutoff: float | None = None) -> float" (reportUnknownMemberType)
|
Pyright (ubuntu-22.04, 3.10)
8 errors
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplit.py#L953
No overloads for "__init__" match the provided arguments (reportCallIssue)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplit.py#L954
Argument of type "memoryview" cannot be assigned to parameter "data" of type "bytes" in function "__init__"
"memoryview" is incompatible with "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplit.py#L954
Unnecessary "# pyright: ignore" rule: "reportGeneralTypeIssues"
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L174
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L174
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_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 "fromarray" is partially unknown
Type of "fromarray" is "(obj: Unknown, mode: str | None = None) -> Image" (reportUnknownMemberType)
|
Pyright (ubuntu-22.04, 3.11):
src/compare.py#L155
Type of "ratio" is partially unknown
Type of "ratio" is "(s1: Sequence[Hashable], s2: Sequence[Hashable], *, processor: ((...) -> Unknown) | None = None, score_cutoff: float | None = None) -> float" (reportUnknownMemberType)
|
Pyright (ubuntu-22.04, 3.11)
8 errors
|
ruff (ubuntu-22.04, 3.10)
Process completed with exit code 1.
|
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/AutoSplit.py#L953
No overloads for "__init__" match the provided arguments (reportCallIssue)
|
Pyright (windows-latest, 3.10):
src/AutoSplit.py#L954
Argument of type "memoryview" cannot be assigned to parameter "data" of type "bytes" in function "__init__"
"memoryview" is incompatible with "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
Pyright (windows-latest, 3.10):
src/AutoSplit.py#L954
Unnecessary "# pyright: ignore" rule: "reportGeneralTypeIssues"
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L174
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L174
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_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 "fromarray" is partially unknown
Type of "fromarray" is "(obj: Unknown, mode: str | None = None) -> Image" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.10):
src/compare.py#L155
Type of "ratio" is partially unknown
Type of "ratio" is "(s1: Sequence[Hashable], s2: Sequence[Hashable], *, processor: ((...) -> Unknown) | None = None, score_cutoff: float | None = None) -> float" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.10)
8 errors
|
Pyright (windows-latest, 3.12):
src/AutoSplit.py#L953
No overloads for "__init__" match the provided arguments (reportCallIssue)
|
Pyright (windows-latest, 3.12):
src/AutoSplit.py#L954
Argument of type "memoryview" cannot be assigned to parameter "data" of type "bytes" in function "__init__"
"memoryview" is incompatible with "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
Pyright (windows-latest, 3.12):
src/AutoSplit.py#L954
Unnecessary "# pyright: ignore" rule: "reportGeneralTypeIssues"
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L174
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L174
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_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 "fromarray" is partially unknown
Type of "fromarray" is "(obj: Unknown, mode: str | None = None) -> Image" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.12):
src/compare.py#L155
Type of "ratio" is partially unknown
Type of "ratio" is "(s1: Sequence[Hashable], s2: Sequence[Hashable], *, processor: ((...) -> Unknown) | None = None, score_cutoff: float | None = None) -> float" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.12)
8 errors
|
ruff (windows-latest, 3.11)
Process completed with exit code 1.
|
Pyright (windows-latest, 3.11):
src/AutoSplit.py#L953
No overloads for "__init__" match the provided arguments (reportCallIssue)
|
Pyright (windows-latest, 3.11):
src/AutoSplit.py#L954
Argument of type "memoryview" cannot be assigned to parameter "data" of type "bytes" in function "__init__"
"memoryview" is incompatible with "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
Pyright (windows-latest, 3.11):
src/AutoSplit.py#L954
Unnecessary "# pyright: ignore" rule: "reportGeneralTypeIssues"
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L174
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L174
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_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 "fromarray" is partially unknown
Type of "fromarray" is "(obj: Unknown, mode: str | None = None) -> Image" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.11):
src/compare.py#L155
Type of "ratio" is partially unknown
Type of "ratio" is "(s1: Sequence[Hashable], s2: Sequence[Hashable], *, processor: ((...) -> Unknown) | None = None, score_cutoff: float | None = None) -> float" (reportUnknownMemberType)
|
Pyright (windows-latest, 3.11)
8 errors
|
ruff (ubuntu-22.04, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (ubuntu-22.04, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplit.py#L286
Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
|
Pyright (ubuntu-22.04, 3.10):
src/AutoSplitImage.py#L173
Condition will always evaluate to True 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 (ubuntu-22.04, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplit.py#L286
Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
|
Pyright (ubuntu-22.04, 3.11):
src/AutoSplitImage.py#L173
Condition will always evaluate to True 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)
|
ruff (ubuntu-22.04, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
ruff (windows-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
ruff (windows-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (windows-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (windows-latest, 3.10):
src/AutoSplit.py#L286
Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
|
Pyright (windows-latest, 3.10):
src/AutoSplitImage.py#L173
Condition will always evaluate to True 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.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (windows-latest, 3.12):
src/AutoSplit.py#L286
Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
|
Pyright (windows-latest, 3.12):
src/AutoSplitImage.py#L173
Condition will always evaluate to True 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)
|
ruff (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Pyright (windows-latest, 3.11):
src/AutoSplit.py#L286
Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
|
Pyright (windows-latest, 3.11):
src/AutoSplitImage.py#L173
Condition will always evaluate to True 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)
|
Build (ubuntu-22.04, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build (windows-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Build (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
AutoSplit for ubuntu-22.04 (Python 3.11)
Expired
|
166 MB |
|
AutoSplit for windows-latest (Python 3.11)
Expired
|
137 MB |
|
AutoSplit for windows-latest (Python 3.12)
Expired
|
136 MB |
|
Build logs for ubuntu-22.04 (Python 3.11)
Expired
|
2.15 MB |
|
Build logs for windows-latest (Python 3.11)
Expired
|
2.41 MB |
|
Build logs for windows-latest (Python 3.12)
Expired
|
2.4 MB |
|