float rotation = testResults.get(x).getRotation();
BufferedImage rotatedImage = rotateImage(image, rotation);
LuminanceSource source = new BufferedImageLuminanceSource(rotatedImage);
- BinaryBitmap bitmap = new BinaryBitmap(new GlobalHistogramBinarizer(source));
+ BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
if (decode(bitmap, rotation, expectedText, false)) {
passedCounts[x]++;
}
}
}
-}
\ No newline at end of file
+}