# untuk angka 1
if index_finger_pip_y < middle_finger_tip_y and index_finger_pip_y < ring_finger_tip_y and index_finger_pip_y < pinky_finger_tip_y:
if index_finger_tip_y < middle_finger_pip_y and index_finger_tip_y < ring_finger_pip_y and index_finger_tip_y < pinky_finger_tip_y:
number = int(1)
print(number)
text = str("satu")
# untuk angka 2
if middle_finger_tip_y < ring_finger_pip_y and middle_finger_tip_y < ring_finger_pip_y:
if middle_finger_pip_y < ring_finger_tip_y and middle_finger_pip_y < pinky_finger_tip_y:
if index_finger_tip_y < middle_finger_pip_y and middle_finger_tip_y < index_finger_pip_y:
number = int(2)
print(number)
text = str("dua")
# untuk angka 3
if ring_finger_pip_y < pinky_finger_tip_y and ring_finger_tip_y < pinky_finger_pip_y:
if index_finger_tip_y < ring_finger_pip_y and middle_finger_tip_y < ring_finger_pip_y:
if ring_finger_tip_y < index_finger_pip_y and ring_finger_tip_y < middle_finger_pip_y:
number = int(3)
print(number)
text = str("tiga")
# untuk angka 4
if index_finger_tip_y < pinky_finger_pip_y and middle_finger_tip_y < pinky_finger_pip_y and ring_finger_tip_y < pinky_finger_pip_y:
if pinky_finger_tip_y < index_finger_pip_y and pinky_finger_tip_y < middle_finger_pip_y and pinky_finger_tip_y < ring_finger_pip_y:
if pinky_mcp_y < thumb_tip_y:
number = int(4)
print(number)
text = str("empat")
# untuk angka 5
if index_finger_tip_y < middle_finger_pip_y and index_finger_tip_y < ring_finger_pip_y and index_finger_tip_y < pinky_finger_pip_y and index_finger_tip_y < thumb_pip_y:
if thumb_tip_y < pinky_mcp_y:
number = int(5)
print(number)
text = str("lima")
About
Game that can be played with the help of a finger counter and hand tracking