Commit
·
71477f6
1
Parent(s):
c7e3daf
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def greet(image, name, is_morning, temperature):
|
|
10 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
11 |
in_contrast = 1.0
|
12 |
in_brightness = 50
|
13 |
-
new_image =
|
14 |
return new_image, greeting, round(celsius, 2)
|
15 |
|
16 |
|
|
|
10 |
# https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html
|
11 |
in_contrast = 1.0
|
12 |
in_brightness = 50
|
13 |
+
new_image = cv2.convertScaleAbs(image, alpha=in_contrast, beta=in_brightness)
|
14 |
return new_image, greeting, round(celsius, 2)
|
15 |
|
16 |
|