mirror of https://github.com/NekoX-Dev/NekoX.git
Make scanner try harder
This commit is contained in:
parent
8997e7202a
commit
f29410f6a2
|
@ -469,9 +469,13 @@ object ProxyUtil {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
val result = try {
|
val result = try {
|
||||||
qrReader.decode(BinaryBitmap(GlobalHistogramBinarizer(source)))
|
qrReader.decode(BinaryBitmap(GlobalHistogramBinarizer(source)), mapOf(
|
||||||
|
DecodeHintType.TRY_HARDER to true
|
||||||
|
))
|
||||||
} catch (e: NotFoundException) {
|
} 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)
|
showLinkAlert(ctx, result.text)
|
||||||
|
|
Loading…
Reference in New Issue