Skip to content

Commit

Permalink
Merge pull request #2 from Pairman/patch-captcha-solver
Browse files Browse the repository at this point in the history
fix normalization
  • Loading branch information
Pairman authored Sep 29, 2024
2 parents 541732c + 9315f23 commit 56faf81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/page/login/jc_captcha.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class SliderCaptchaClientProvider {
var normalized = List<double>.filled(image.width * image.height, 0);
for (int y = 0; y < image.height; y++) {
for (int x = 0; x < image.width; x++) {
normalized.add(image.getPixel(x, y).luminance - mean);
normalized[y * window.width + x] = image.getPixel(x, y).luminance - mean;
}
}
return normalized;
Expand Down

0 comments on commit 56faf81

Please sign in to comment.