Font IssueSudoku Digit Classifier Issue Report

#1
by rebo-85 - opened

Summary: The current digit classifier model fails to correctly identify the digit "1" on sudoku.com puzzles. The model consistently outputs "7" instead of "1" when the digit "1" is present without an underline. This leads to unsolvable or incorrect puzzle states.

Details:

The model appears to have been trained on samples where the digit "1" includes a horizontal underline (as is sometimes rendered on sudoku.com).
On the current sudoku.com UI, the digit "1" is often rendered without an underline, or the underline is faint and lost during preprocessing.
As a result, the classifier confuses "1" (without underline) with "7", likely due to their similar vertical stroke structure.
No "1" values are ever returned in the output grid, even when "1" is clearly present in the puzzle.
Preprocessing:

The preprocessing pipeline converts the canvas to grayscale and increases contrast before feeding cell images to the model.
Adjusting contrast and grayscale does not resolve the misclassification if the underline is missing or faint.
Impact:

The AI cannot solve puzzles correctly, as all "1"s are misclassified as "7"s.
This issue is reproducible on multiple puzzles and persists across different preprocessing settings.
Recommendation:

Retrain or fine-tune the model with additional samples from sudoku.com, including both underlined and non-underlined "1"s.
Ensure the training set reflects the current rendering style of digits on the target site.

Sign up or log in to comment