Spaces:
Sleeping
Sleeping
31
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def process_image_bytes(img_bytes: bytes):
|
|
| 22 |
# lê bytes em numpy + OpenCV
|
| 23 |
nparr = np.frombuffer(img_bytes, np.uint8)
|
| 24 |
img = cv2.imdecode(nparr, cv2.IMREAD_COLOR)
|
| 25 |
-
lab =
|
| 26 |
l, a, b = cv2.split(lab)
|
| 27 |
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
|
| 28 |
l_clahe = clahe.apply(l)
|
|
|
|
| 22 |
# lê bytes em numpy + OpenCV
|
| 23 |
nparr = np.frombuffer(img_bytes, np.uint8)
|
| 24 |
img = cv2.imdecode(nparr, cv2.IMREAD_COLOR)
|
| 25 |
+
lab = cv2.cvtColor(img, cv2.COLOR_BGR2LAB)
|
| 26 |
l, a, b = cv2.split(lab)
|
| 27 |
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
|
| 28 |
l_clahe = clahe.apply(l)
|