Increase brightness threshold to reduce false positives. Issue #1731
This commit is contained in:
parent
52be6e5743
commit
e0f8f7c5eb
|
@ -100,7 +100,7 @@ extension CGImage {
|
|||
let avgLuminance = totalLuminance / Double(pixelCount)
|
||||
if totalLuminance == 0 || avgLuminance < 40 {
|
||||
return .dark
|
||||
} else if avgLuminance > 70 {
|
||||
} else if avgLuminance > 180 {
|
||||
return .bright
|
||||
} else {
|
||||
return .regular
|
||||
|
|
Loading…
Reference in New Issue