Datasets:
Request Access to ModalityNet Dataset
Please complete the questionnaire below and confirm your agreement with the ModalityNet Open Research License to gain access. For commercial licensing, you can contact us at info@modalitynet.com.
Enter an email address that you can access. Use a company, organization, or university email when possible. By submitting this form, you confirm that the information is accurate, agree to the dataset terms as well as receiving followups from our research team.
Log in or Sign Up to review the conditions and access this dataset content.
Numbered stereo fisheye clips, each with two hand-skeleton annotations in the same IMU frame. Clips are grouped into five datasets. Each dataset has its own camera calibration, shared by every clip in that dataset.
Clip folders are 0001/, 0002/, and so on, and the numbering restarts inside each dataset. A clip number is only an index within that dataset. The same number in two datasets is not the same recording. Each clip has its own frame count. Inside one clip, both videos and both annotation files cover the same frames, index 0 β¦ Tβ1. Frame t in a CSV is video frame t of that clip.
Directory Structure
HiPhi-Hand/
βββ README.md
βββ visualize.py
βββ dataset_01/ clips 0001β0208 (208 clips)
β βββ calibration.json
β βββ data/
β βββ 0001/
β β βββ video/
β β β βββ rgb_left.mp4
β β β βββ rgb_right.mp4
β β βββ annotation/
β β β βββ mediapipe21.csv
β β β βββ vicon25.csv
β β βββ visualization/
β β βββ stereo_overlay.mp4
β βββ 0002/
β βββ β¦
βββ dataset_02/ clips 0001β0156 (156 clips)
βββ dataset_03/ clips 0001β0120 (120 clips)
βββ dataset_04/ clips 0001β0206 (206 clips)
βββ dataset_05/ clips 0001β0104 (104 clips)
dataset_02 through dataset_05 use the same layout as dataset_01: calibration.json next to data/<clip>/.
video/rgb_left.mp4,video/rgb_right.mp4: hardware-synchronized fisheye views, 1360Γ1360, H.264, 30 fps.annotation/mediapipe21.csv: 21 MediaPipe hand joints per hand, IMU coordinates, meters.annotation/vicon25.csv: 25 Vicon hand-skeleton joints per hand, same IMU frame, plus a global orientation quaternion.visualization/stereo_overlay.mp4: left and right images side by side (2720Γ1360) with the MediaPipe21 skeleton drawn on.calibration.json: stereo fisheye calibration for the clips in that dataset. Use the file that sits besidedata/, not a copy from another dataset.visualize.py: redraws the overlay from a clip's videos, CSVs, and that dataset's calibration.
Coordinate Frame
Annotations and calibration use one frame, named imu in calibration.json:
| Axis | Direction |
|---|---|
| +x | wearer's right |
| +y | up |
| +z | backward |
Unit is meters. Left / Right are the wearer's hands, not the left and right image.
Annotation CSVs
Both files are UTF-8 CSV. A clip is complete when every frame has both hands and every joint has a finite position. visualize.py rejects a clip that is missing rows.
Common columns:
| Column | Meaning |
|---|---|
frame_index |
Frame number inside this clip, 0 β¦ Tβ1. Equals that clip's video frame index. |
hand_index |
0 left, 1 right. |
hand |
Left or Right. Must match hand_index. |
joint_index |
Joint number inside that hand. See the tables below. |
joint_name |
Joint name. Must match joint_index. |
x_imu_m, y_imu_m, z_imu_m |
Joint position in the IMU frame, meters. |
mediapipe21.csv has 42 rows per frame (2 hands Γ 21 joints). vicon25.csv has 50 rows per frame (2 hands Γ 25 joints) and four extra columns:
| Column | Meaning |
|---|---|
global_quat_x_imu |
Quaternion x |
global_quat_y_imu |
Quaternion y |
global_quat_z_imu |
Quaternion z |
global_quat_w_imu |
Quaternion w (scalar) |
These are unit quaternions, stored in (x, y, z, w) order. The column names describe a global orientation expressed in the IMU frame. The position columns are enough to draw or compare the skeleton; the overlay script does not use the quaternions.
Vicon joint Hand (index 1) is the same 3D point as MediaPipe WRIST (index 0).
MediaPipe21 order
Same names for both hands. Skeleton links used by the overlay: wrist to each finger, then along the finger.
| Index | Name |
|---|---|
| 0 | WRIST |
| 1β4 | THUMB_CMC, THUMB_MCP, THUMB_IP, THUMB_TIP |
| 5β8 | INDEX_FINGER_MCP, INDEX_FINGER_PIP, INDEX_FINGER_DIP, INDEX_FINGER_TIP |
| 9β12 | MIDDLE_FINGER_MCP, MIDDLE_FINGER_PIP, MIDDLE_FINGER_DIP, MIDDLE_FINGER_TIP |
| 13β16 | RING_FINGER_MCP, RING_FINGER_PIP, RING_FINGER_DIP, RING_FINGER_TIP |
| 17β20 | PINKY_MCP, PINKY_PIP, PINKY_DIP, PINKY_TIP |
Vicon25 order
joint_name is the side prefix plus the suffix below (LeftHand, RightForeArm, β¦). Overlay links: 0β1, then each finger chain starting at Hand (index 1). Index continues through HandIndex; the other fingers start directly at Hand.
| Index | Suffix | Role |
|---|---|---|
| 0 | ForeArm |
forearm |
| 1 | Hand |
wrist |
| 2 | HandIndex |
index metacarpal |
| 3β6 | HandIndex1 β¦ HandIndex4 |
index finger |
| 7β10 | HandMiddle1 β¦ HandMiddle4 |
middle finger |
| 11 | HandRing |
ring metacarpal |
| 12β15 | HandRing1 β¦ HandRing4 |
ring finger |
| 16 | HandPinky |
pinky metacarpal |
| 17β20 | HandPinky1 β¦ HandPinky4 |
pinky finger |
| 21β24 | HandThumb1 β¦ HandThumb4 |
thumb |
calibration.json
Stereo fisheye calibration. format_version is 2.0-stereo. The overlay script rejects any other version.
calibration.json
βββ format_version "2.0-stereo"
βββ coordinate_frame IMU frame of the 3D points
βββ transform_convention how to read the 4Γ4 matrices
βββ projection which points are in front of the camera
βββ cameras
βββ left
βββ right
transform_convention:
- Matrices are named
T_target_source:T_camera_imutakes an IMU point into that camera. - Vectors are column vectors.
p_camera = R_camera_imu @ p_imu + t_camera_imu, whereRis the top-left 3Γ3 ofT_camera_imuandtis the top-right 3Γ1.T_imu_camerais the inverse ofT_camera_imu. The script checksT_camera_imu @ T_imu_camera = I, thatRis a rotation (det(R) = 1), and that both cameras are present.
projection.front_condition is camera_z_m > 1e-6. Points on or behind the camera are not drawn.
Each of cameras.left and cameras.right has:
| Field | Meaning |
|---|---|
image_size_px |
[width, height], here [1360, 1360]. Must match the video. |
intrinsics.fx_fy_cx_cy |
[fx, fy, cx, cy] in pixels. |
intrinsics.K |
3Γ3 pinhole matrix built from those four values. The script requires the two to agree. |
distortion.model |
opencv_equidistant_fisheye (OpenCV cv2.fisheye). |
distortion.coefficients |
[k1, k2, k3, k4]. |
extrinsics.T_camera_imu |
4Γ4 IMU β this camera. |
extrinsics.T_imu_camera |
4Γ4 this camera β IMU. |
Distortion is the OpenCV equidistant fisheye model. With normalized camera coordinates (x, y) = (X/Z, Y/Z):
r = hypot(x, y)
theta = atan(r)
theta_d = theta * (1 + k1*theta^2 + k2*theta^4 + k3*theta^6 + k4*theta^8)
scale = 1 if r is about 0, else theta_d / r
u = fx * x * scale + cx
v = fy * y * scale + cy
A point is visible when Z > 1e-6 and (u, v) lies inside the image.
Minimal projection:
import json
import numpy as np
calibration = json.load(open("dataset_01/calibration.json"))
camera = calibration["cameras"]["left"]
T = np.asarray(camera["extrinsics"]["T_camera_imu"])
point_imu = np.array([-0.10, -0.28, -0.48]) # one CSV row, meters
point_camera = T[:3, :3] @ point_imu + T[:3, 3]
Apply the fisheye model above to point_camera to get a pixel in rgb_left.mp4. Use cameras.right for the right video. The same point_imu is projected into both images; do not transform it from one camera to the other first.
Visualization Script
Requirements:
pip install numpy opencv-python
Run from HiPhi-Hand/. For a clip at dataset_XX/data/<clip>, the script looks for calibration.json two directories above the clip, which is dataset_XX/calibration.json.
python visualize.py --clip dataset_01/data/0001 --output check.mp4
Replace dataset_01/data/0001 with any other clip. Pass --calibration only when the calibration file is not in that default place.
Optional arguments:
--layer mediapipe21 # default
--layer vicon25
--layer both
--max-frames 30
The output is a side-by-side MPEG-4 Part 2 video at the source frame rate. The wearer's left hand is drawn cyan and the right hand orange. VLC and similar players can open it; some browser players cannot.
- Downloads last month
- 19