Spaces:
Runtime error
Runtime error
Foydalanuvchi commited on
Commit ·
72ed78b
1
Parent(s): f1841ce
Optimize denoising parameters for quality_boost
Browse files- filters.py +2 -2
filters.py
CHANGED
|
@@ -2027,8 +2027,8 @@ def apply_quality_boost(image_path, output_path):
|
|
| 2027 |
limg = cv2.merge((cl, a, b))
|
| 2028 |
final = cv2.cvtColor(limg, cv2.COLOR_LAB2BGR)
|
| 2029 |
|
| 2030 |
-
# 3. Denoising (Shovqinni kamaytirish)
|
| 2031 |
-
final = cv2.fastNlMeansDenoisingColored(final, None,
|
| 2032 |
|
| 2033 |
cv2.imwrite(output_path, final)
|
| 2034 |
return output_path
|
|
|
|
| 2027 |
limg = cv2.merge((cl, a, b))
|
| 2028 |
final = cv2.cvtColor(limg, cv2.COLOR_LAB2BGR)
|
| 2029 |
|
| 2030 |
+
# 3. Denoising (Shovqinni kamaytirish - Tabiiy saqlash uchun kuch pasaytirildi)
|
| 2031 |
+
final = cv2.fastNlMeansDenoisingColored(final, None, 4, 4, 5, 15)
|
| 2032 |
|
| 2033 |
cv2.imwrite(output_path, final)
|
| 2034 |
return output_path
|