Tracks up to four hands in the video with the MediaPipe Hands models and outputs the 21 points of each hand in 3D, its side (left or right hand), its score and its pinch. Use it for gestural control of parameters, 3D objects or trajectories, without a dedicated sensor.
Two hands found with the default settings: slot 0 in green on the speaker's left hand, slot 1 in red on his right hand.
The models run on a thread of the module, on a copy of the frame: the video is never delayed, and the outputs are those of the last finished inference. Each hand keeps its slot in the arrays while it is followed. In bypass no inference runs and the outputs keep their last values; a restart of the patch clears them. A paused Video Player sends no frame, so nothing is analysed while it is paused. A frame costs about 1.1 ms at 1920 x 1080 and 3.2 ms at 3840 x 2160.
Bypasses the module processing when activated (ON).
Video input flow(s).
Video output flow(s).
Total time used for the calculation of the module.
Minimum score of a palm detection and of a hand, from 0 to 1 (default 0.5). Raise it to drop false hands, lower it for hands that are hard to see. At 1 no hand is found; gloved hands are often missed at the default value.
Number of hand slots, from 1 to 4 (default 2): at most this many hands are followed, and the arrays hold this many slots, 21 values per slot for x, y and z, one value per slot for score, handedness and pinch.
Smoothing of the points, the handedness and the pinch from one inference to the next, from 0 to 0.95 (default 0.5). At 0 the outputs follow each inference exactly; higher values are steadier and react more slowly. The scores are not smoothed.
When ON, the picture is taken as a mirror view, such as the preview of a selfie camera: the left and right hands are swapped in handedness. Leave it OFF (default) for a camera seen as it is.
When ON (default), draws on video out 1 the 21 points and the bones of each hand, in the color of its slot: green, red, blue and yellow for slots 0 to 3. The lines are thicker on large frames, so that they stay visible on a screen. When OFF, video out 1 is the input unchanged.
When ON, video out 1 shows the analysed frame with its own skeletons, kept until the next result: the points line up exactly, but the picture changes only at the rate of the inferences. When OFF (default), it shows the live video with the results of the last inference, a few milliseconds late.
Number of threads ONNX Runtime uses for the models, from 1 to 8 (default 2). Changing it reloads the models. This inlet is hidden by default. At 640 x 360 an inference takes 10 ms with 1 thread, 6.3 ms with 2 and 9 ms with 8.
Number of hands found, from 0 to max hands.
Array of the x of the 21 points of each slot, from 0 (left edge) to 1 (right edge): max hands x 21 values, slot after slot. In each slot, 0 is the wrist, 1 to 4 the thumb, 5 to 8 the index, 9 to 12 the middle finger, 13 to 16 the ring finger and 17 to 20 the little finger, each from its base to its tip. An empty slot gives 21 zeros.
max hands = 2
x = [wrist, thumb 1 to 4, index 1 to 4, middle 1 to 4, ring 1 to 4, little 1 to 4 of slot 0, the same 21 points of slot 1]
x[8] = index tip of slot 0
x[29] = index tip of slot 1
Array of the y of the same points, from 0 (top edge) to 1 (bottom edge), in the same order.
Array of the depth of the same points relative to the wrist, from -1 to 1 in frame widths: a negative value is closer to the camera than the wrist.
Array of the presence score of the hand of each slot, from 0 to 1, one value per slot (0 for an empty slot).
Array of the side of the hand of each slot, from 0 to 1, one value per slot: near 1 for the right hand of the person, near 0 for the left hand (0 also for an empty slot). Turn mirrored ON for a mirror view.
input = the picture above
hand at the left of the picture (his right hand): handedness = 0.84
hand at the right of the picture (his left hand): handedness = 0.12
mirrored ON: 0.16 and 0.88
Array of the pinch of the hand of each slot, from 0 to about 2, one value per slot: the distance from the thumb tip to the index tip divided by the length of the palm (from the wrist to the base of the middle finger). It is measured in 3D, so it does not depend on the turn of the hand or on its distance to the camera: about 0.1 when the two tips touch, 1 to 2 for an open hand (1.2 and 1.55 on the hands of the picture above), 0 for an empty slot.
Time of the last analysis in ms: the palm detector on the whole frame, then the landmark model on each hand. About 6 ms at 640 x 360, 11 ms at 1920 x 1080 and 21 ms at 3840 x 2160 with two hands.
Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.
For more details about information/help creation, see create-help-file.
Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.
visible only in god mode, see setup-panel-tab-expert.
Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).
Read-only, not saved. Private ID used to store and recall the values of this control in presets.
Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.
Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.
Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.
Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.
version 7.0.250921
Edit All Pages