feat: improve furigana filter#41
Merged
sohilsayed merged 2 commits intoJul 2, 2026
Merged
Conversation
Kellenok
commented
Jul 1, 2026
Contributor
- Hybrid Furigana Filter: Replaced the old OwOCR logic with a global filter that checks precise geometry and orientation.
- Massive Accuracy Improvement: Achieved 98.8% accuracy (F1-score) on the benchmark dataset vs 89% before, reducing total errors by nearly 9x (false negatives dropped from 77 down to 4, and false positives from 19 down to 7).
- Faster Processing: Implemented regex-based "early exits" to skip Kanji and alphanumeric strings, making the filter 20% faster (1.19ms vs 1.47ms per page) despite the more thorough checks.
Contributor
Author
|
merger became slightly worse, i'll try improve it tomorrow |
Owner
|
Try to also resolve conflicts |
1845ec3 to
9deff74
Compare
44403a6 to
17e4d15
Compare
Contributor
Author
|
there was more slop code than i expected, sorry from 100 random manga109 images but i checked kuso onna and some other manga and can't say that the results were exactly twice as good as on manga109, just better in some places, worse in others. i don't get it and i'm tired |
Contributor
Author
Owner
|
honestly looks good enough for me we can always keep it for future work |
sohilsayed
added a commit
that referenced
this pull request
Jul 4, 2026
Remove font-family stripping in sanitizeDictionaryStyles() so
dictionary CSS rules like .example-sentence { font-family: serif; }
are preserved instead of being silently discarded.
Closes #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


