Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,8 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
60 |
# Create the keyboard buttons
|
61 |
buttonList = []
|
62 |
h, w = img.shape[:2]
|
|
|
|
|
63 |
key_width = int(0.08 * w)
|
64 |
key_height = int(0.1 * h)
|
65 |
font_scale = 0.005 * w
|
|
|
60 |
# Create the keyboard buttons
|
61 |
buttonList = []
|
62 |
h, w = img.shape[:2]
|
63 |
+
cv2.putText(img, w, (int(0.05 * w) , int(0.95 * h)), cv2.FONT_HERSHEY_PLAIN, 5, (0, 0, 0), 5)
|
64 |
+
cv2.putText(img, h, (int(0.2 * w) , int(0.95 * h)), cv2.FONT_HERSHEY_PLAIN, 5, (255, 255, 255), 5)
|
65 |
key_width = int(0.08 * w)
|
66 |
key_height = int(0.1 * h)
|
67 |
font_scale = 0.005 * w
|