Out-of-palette pixels render as black ink
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- macos, swift
- Domain
- computer-vision
Research direction
Start with SubtitleImageSource.imageDataToRGBA and createImage, both named in the issue. Trace how an out-of-palette index becomes RGBA data and how that data is treated when creating the OCR image. Change the fallback to transparent and confirm those pixels no longer add black noise.
Written by the indexing model from the issue text.
Description
SubtitleImageSource.imageDataToRGBA maps an index outside the palette to opaque white [255, 255, 255, 255]. createImage then treats it as visible and (by default) inverts it to black, adding black noise to the OCR image.
Fix: map out-of-palette indices to transparent.
- Dominant language
- Swift
- Stars
- 42
- Forks
- 9
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ecdye/macSubtitleOCR
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
ecdye/macSubtitleOCR#98 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ecdye/macSubtitleOCR#97 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ecdye/macSubtitleOCR#95 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
ecdye/macSubtitleOCR#94 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ecdye/macSubtitleOCR#86 ·
All issues in ecdye/macSubtitleOCR
Similar issues
-
[cloud_functions]: Apple platforms ignore custom domains passed as regionPossibly taken @ragavendranbala-TSL claimed this today. OpenNeeds Attention platform: ios platform: macos plugin: functions type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firebase/flutterfire#19015 · 2 comments ·
Maintainers usually reply within 4 days
-
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
macos-15
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
thaw-app/Thaw#1708 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day