mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2025-01-19 08:00:32 +01:00
Make scanner try harder
This commit is contained in:
parent
8997e7202a
commit
f29410f6a2
@ -469,9 +469,13 @@ object ProxyUtil {
|
||||
try {
|
||||
|
||||
val result = try {
|
||||
qrReader.decode(BinaryBitmap(GlobalHistogramBinarizer(source)))
|
||||
qrReader.decode(BinaryBitmap(GlobalHistogramBinarizer(source)), mapOf(
|
||||
DecodeHintType.TRY_HARDER to true
|
||||
))
|
||||
} catch (e: NotFoundException) {
|
||||
qrReader.decode(BinaryBitmap(GlobalHistogramBinarizer(source.invert())))
|
||||
qrReader.decode(BinaryBitmap(GlobalHistogramBinarizer(source.invert())), mapOf(
|
||||
DecodeHintType.TRY_HARDER to true
|
||||
))
|
||||
}
|
||||
|
||||
showLinkAlert(ctx, result.text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user