put config in this dir. I introduce the definition of attitude and operation here, as well as the syntax of the configuration.
- 7 poses can be detected [i.e. 👍, 👎, ✌️, ☝️, ✊, 👋, 🤟]
- Closed_Fist
- Open_Palm
- Pointing_Up
- Thumb_Down
- Thumb_Up
- Victory
- ILoveYou
- 3 kinds of distance
- Distance between thumb and index finger(Dis_Thumb_Index_Tip)
- Distance between thumb and middle finger(Dis_Thumb_Middle_Tip)
- Distance between index and index finger(Dis_Index_Index_Tip)
- 1 kind of angle
- Angle between thumb and index finger(Angel_Thumb_Index_Tip)
- Left to Right
- concat with
+
- Left hand gesture add
Left/
prefix, Right hand gesture addRight/
prefix - Currently, the recommendation is that one gesture of the left hand is used for one operation. Therefore, it is best to support only 7 operations at present.
Currently, the following semantics are defined, and support for semantic extension is provided.
- Left hand operates the function, right hand implements the logic.
- for example, left hand
Open_Palm
means mouse simulation, right hand wrist point(Right/Wrist
) present position
- for example, left hand
- Both hands achieve the same function simultaneously.
- If both hands determine a certain function, both hands can implement the logic after that, and then both hands can close it.
using 1,2 yet
Due to the real-time nature of the operation, it is not recommended and there is no need to set keyboard keystroke mapping at present. If there is a demand, it can be expanded.
- mouse move
- mouse press
- keyboard input combination
Operations always need a scale,split op and scale with |
- yaml format,define with
pose
andop
- demo as follows
Left/Open_Palm: mouse_move|1000
Left/Open_Palm+Right/Dis_Thumb_Index_Tip: mouse_press_left|30
Left/Open_Palm+Right/Dis_Thumb_Middle_Tip: mouse_press_right|30
Left/Closed_Fist+Right/Closed_Fist: lock
Left/Thumb_Up+Right/Thumb_Up: unlock