Increase brightness threshold to reduce false positives. Issue #1731

This commit is contained in:
Maurice Parker 2020-03-13 10:45:02 -05:00
parent 52be6e5743
commit e0f8f7c5eb
1 changed files with 1 additions and 1 deletions

View File

@ -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