Fix an issue in Text Detector
According to what characters is encoded in UTF8, we should count the number of bytes from 0xf8 to 0x100 instead of 0xf80 to 0x100 which is apparently a typo.
@@ -71,7 +71,7 @@ public class TextStatistics {
int continuation = count(0x80, 0xc0);
return utf8 > 0 && continuation <= expectedContinuation &&
- continuation >= expectedContinuation - 3 && count(0xf80, 0x100) == 0 &&
+ continuation >= expectedContinuation - 3 && count(0xf8, 0x100) == 0 &&
(control - safe) * 100 < utf8 * 2;
}
