Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -109,6 +109,7 @@ if img_file_buffer is not None:
|
|
109 |
cv2.rectangle(image,(x1,y1),(x2,y2),(0,255,0),2)
|
110 |
cv2.rectangle(image,(x1,y2-35),(x2,y2),(0,255,0),cv2.FILLED)
|
111 |
cv2.putText(image,name,(x1+6,y2-6),cv2.FONT_HERSHEY_COMPLEX,1,(255, 255, 255),2)
|
|
|
112 |
##############
|
113 |
if name:
|
114 |
if output=='happy':
|
|
|
109 |
cv2.rectangle(image,(x1,y1),(x2,y2),(0,255,0),2)
|
110 |
cv2.rectangle(image,(x1,y2-35),(x2,y2),(0,255,0),cv2.FILLED)
|
111 |
cv2.putText(image,name,(x1+6,y2-6),cv2.FONT_HERSHEY_COMPLEX,1,(255, 255, 255),2)
|
112 |
+
image = cv2.UMat.get(image)
|
113 |
##############
|
114 |
if name:
|
115 |
if output=='happy':
|