Spaces:
Runtime error
Runtime error
Commit
·
ad58be3
1
Parent(s):
ce5d79d
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ def greet(image, in_contrast, in_brightness):
|
|
| 9 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
| 10 |
new_image = cv2.convertScaleAbs(image, alpha=in_contrast, beta=in_brightness)
|
| 11 |
|
| 12 |
-
cv2.imshow("Display window", new_image);
|
| 13 |
-
cv2.waitKey(0)
|
| 14 |
return new_image.rotate(45)
|
| 15 |
|
| 16 |
|
|
|
|
| 9 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
| 10 |
new_image = cv2.convertScaleAbs(image, alpha=in_contrast, beta=in_brightness)
|
| 11 |
|
| 12 |
+
# cv2.imshow("Display window", new_image);
|
| 13 |
+
# cv2.waitKey(0)
|
| 14 |
return new_image.rotate(45)
|
| 15 |
|
| 16 |
|