lampongyuen commited on
Commit
4ab77bb
·
1 Parent(s): 42b3e91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ def greet(image, in_contrast, in_brightness):
8
  # brightness [0-100]
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
  return new_image
12
 
13
 
 
8
  # brightness [0-100]
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
+ int k = waitKey(0); // Wait for a keystroke in the window
14
  return new_image
15
 
16