Skip to content

Commit e907f19

Browse files
committed
Refine display
1 parent f74d0ba commit e907f19

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

utils/templates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,3 @@ def __init__(self, label):
9393
'overlap': None,
9494
'boundary': {0: 0} if label == 'right' else {1: 0}}
9595
}
96-

utils/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def map_gesture(gestures, finger_states, landmarks, wrist_angle, direction, boun
184184

185185

186186
def draw_transparent_box(img, pt1, pt2, alpha=0.5, beta=0.5):
187+
""" Draw a transparent rectangle. """
187188
sub_img = img[pt1[1]:pt2[1], pt1[0]:pt2[0]]
188189
white_rect = np.ones(sub_img.shape, dtype=np.uint8) * 255
189190
res = cv2.addWeighted(sub_img, alpha, white_rect, beta, 1.0)
@@ -247,11 +248,6 @@ def display_hand_info(img, hand):
247248
0, 0.6, LINE_COLOR, 2, lineType=cv2.LINE_AA)
248249

249250

250-
251-
#########################################################################
252-
# below functions are specifically for volume control, need check later #
253-
#########################################################################
254-
255251
def draw_vol_bar(img, pt1, pt2, vol_bar, vol, fps, bar_x_range, activated):
256252
""" Draw a volume bar. """
257253
draw_transparent_box(img, pt1, pt2)

vol_controller.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,3 @@ def vol_control(control='continuous', step=10, traj_size=10):
122122
opt = parser.parse_args()
123123

124124
vol_control(**vars(opt))
125-

0 commit comments

Comments
 (0)