mp_hand_landmark

MediaPipe 21 点 Hand Landmark 検出

mp_hand_landmark hid, var_rgb, w, h, x1, y1, x2, y2, var_out_xy, var_out_conf_x1000

hid              : hand_landmarks_detector.tflite のハンドル
var_rgb          : 入力 RGB バッファ (w*h*3)
w, h             : 入力画像サイズ
x1,y1,x2,y2      : palm bbox (入力画像座標系)
var_out_xy       : int 配列 (21*2 = 42 要素)
var_out_conf_x1000 : presence confidence * 1000

(プラグイン / モジュール : hsptflite.dll)

解説

palm bbox を 1.5 倍程度に拡張 + 正方形化して切り出し、
224x224 にリサイズ ([0..1] 正規化) → Invoke → 21 点 landmark を
元画像座標系に逆変換して返します。

サンプル逆引き (1)

sample_mediapipe_hand.hsp

情報

プラグイン / モジュールhsptflite.dll
バージョン1.0
作成日2026-04-15
著作者IronHSP / hsptflite
URLhttps://github.com/inovia/IronHSP
備考hsptflite.dll は Google 公式の Tensorflow Lite C API
(tensorflowlite_c.dll) を動的リンクして、HSP から .tflite モデルを
ロード / 推論できるようにする薄いラッパプラグインです。

MediaPipe の .tflite モデル (palm detection / hand landmarker /
pose / face など) を HSP から直接動かすための基盤として設計
されています。高レベル API は iron_mediapipe.hsp を参照。

v1 の API は「Interpreter 16 並列」「任意 dtype のバイナリ直 I/O」
という最小構成です。前処理 (resize / normalize) と後処理
(anchor decode / NMS) はアプリ側または iron_mediapipe.hsp 側で
実装します。
タイプ拡張命令
グループhsptflite (TensorFlow Lite)
対応環境
  • その他 : Win32 / Win64
hs ファイルhsphelp\hsptflite.hs