Baozimanhua: raise banner detection diff-threshold (#11891)
This commit is contained in:
parent
767ffcbe1c
commit
c90e34cc7d
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.2.5 (2022-05-17)
|
||||||
|
|
||||||
|
- 提高 banner 识别容错率,切除噪声更多的 banner
|
||||||
|
|
||||||
## 1.2.4 (2022-05-14)
|
## 1.2.4 (2022-05-14)
|
||||||
|
|
||||||
- 图源名改为中文
|
- 图源名改为中文
|
||||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Baozimanhua'
|
extName = 'Baozimanhua'
|
||||||
pkgNameSuffix = 'zh.baozimanhua'
|
pkgNameSuffix = 'zh.baozimanhua'
|
||||||
extClass = '.Baozimanhua'
|
extClass = '.Baozimanhua'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -24,7 +24,7 @@ class BannerInterceptor : Interceptor {
|
||||||
banner.recycle()
|
banner.recycle()
|
||||||
buffer
|
buffer
|
||||||
}
|
}
|
||||||
private val threshold by lazy { w * h * 3 / 2 } // 0.5 per pixel per channel
|
private val threshold by lazy { w * h * 3 } // 1 per pixel per channel
|
||||||
|
|
||||||
override fun intercept(chain: Interceptor.Chain): Response {
|
override fun intercept(chain: Interceptor.Chain): Response {
|
||||||
val url = chain.request().url.toString()
|
val url = chain.request().url.toString()
|
||||||
|
|
Loading…
Reference in New Issue