Dataset Viewer
Auto-converted to Parquet Duplicate
video_id
large_stringlengths
25
35
sentence
large_stringlengths
3
625
features
unknown
shape
listlengths
3
3
--7E2sU6zP4_10-5-rgb_front
"And I call them decorative elements because basically all they're meant to do is to enrich and colo(...TRUNCATED)
"3tkGP56Uuj7ekpi+a08LP3Z9rT5wKZK+YzoNP1QSrj4HHpK+t88OP9wJrz7OF5K+U4YGP0zlrD4lhoq+bhMFP0ztrD6fiIq+NLA(...TRUNCATED)
[ 365, 543, 3 ]
--7E2sU6zP4_11-5-rgb_front
"So they don't really have much of a symbolic meaning other than maybe life is richer, life is beaut(...TRUNCATED)
"9tsMP2jCxT6VRQK/bk0QP3/ftj4d6Pm+a10SP/IQtz6S4fm+th4UP/CEtz4V6vm+KMkKP7Cutj4KgPi+qksJP1S2tj74jfi+zBk(...TRUNCATED)
[ 565, 543, 3 ]
--7E2sU6zP4_12-5-rgb_front
"Now this is very, this is actually an insert of a kind of an envelope for stationary, and this is a(...TRUNCATED)
"0lQLPybLsT5ZOsC+r0wPP9IgpT5OqLS+hGwRP6rYpT5ForS+WFMTP7Bzpj71kbS+fAAKP3QepD63B66+71UIP54ZpD4G/62+mxc(...TRUNCATED)
[ 349, 543, 3 ]
--7E2sU6zP4_13-5-rgb_front
This is all the you know, take off on the idea of the acanthus leaf.
"IEYLP3j7tD5A+wG/VLwOP8Laqj4Cw/O+VS0QP65WrD7jv/O+tcsRP1wNrj69xPO+65IJP7z1pj5t5PK+8LMHP9A4pj7Q8PK+9DE(...TRUNCATED)
[ 144, 543, 3 ]
--7E2sU6zP4_5-5-rgb_front
It's almost has a feathery like posture to it.
"ZvQGP3hQsT7qkXS+knELP5xTpj4W2Va+iIINPzYHpz7i61a+vmsPP+zdpz520Fa+t1wGP7o2pj4yHVG+/uUEP+Rspj6KOVG+Nos(...TRUNCATED)
[ 212, 543, 3 ]
--7E2sU6zP4_6-5-rgb_front
"And so, it's used in architecture as a decorative element in architecture on columns and so on, and(...TRUNCATED)
"97UMPxBksT4DTq++O0kQPzShpT4bOaG+seERP9qlpj7UNqG+C00TP1Tfpz6ZM6G+gsUKP77yoz7iop++2QAJP6D5oz5KpZ++10c(...TRUNCATED)
[ 402, 543, 3 ]
--7E2sU6zP4_7-5-rgb_front
"And so what's happened with the idea of acanthus leaf, is that it has is taken on all these differe(...TRUNCATED)
"XEcIP8qstD6nHLe+63IMPwqRpj7iN6u+7FQOPy6Jpz5BMKu+jvoPP9rEqD4hKqu+XIEHP8x3pT7jNqW+7BMGP9Z2pT4kOaW+M6k(...TRUNCATED)
[ 289, 543, 3 ]
--7E2sU6zP4_8-5-rgb_front
"And it has been wildly colored so you can look at some an acanthus leaf and you can start with the (...TRUNCATED)
"uJgNP+SUtD7Wdue+d6YRP+4Kpj6ictq+CN8TP6aGpj4yddq+KpsVP6Q+pz7SZtq+kbcLP8DSpT7ij9S+O/IJP546pj5SidS+dlg(...TRUNCATED)
[ 364, 543, 3 ]
--7E2sU6zP4_9-5-rgb_front
"Here, actually, I have some samples of traced acanthus leaves from different illuminated manuscript(...TRUNCATED)
"hLEHP24HsD6PBrS+zFAMP7Rsoz7Lv6a+xTQOP7appD7Qu6a+UJkPP27wpT7Qtaa+x5YHP9LJoT5UiqK+rUcGP4R6oT6mlKK+8wQ(...TRUNCATED)
[ 239, 543, 3 ]
--8pSDeC-fg_0-5-rgb_front
Hi.
"AM0FPxb3oz59rT2/X6wKP9b/lj4fKje/PSQNPzLClz45KTe/KB4PP/DZmD5LODe/NtsEP7xylj4VdTS/nmgDP2iWlj4YhDS/h2c(...TRUNCATED)
[ 15, 543, 3 ]
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Split Count
train 31047
validation 1739
test 2343

image

Parquet-shared front mediapipe data from PSewmuthu/How2Sign_Holistic

import cv2
import numpy as np
import tempfile
import os
from datasets import load_dataset
from IPython.display import Video, display

# 1. Initialize Streams
print("Initializing streams...")
landmark_stream = load_dataset("bdanko/how2sign-landmarks-front-raw-parquet", split="train", streaming=True)
rgb_stream = load_dataset("bdanko/how2sign-rgb-front-clips", split="train", streaming=True)

# 2. Get Landmark Sample
landmark_sample = next(iter(landmark_stream))
target_id = landmark_sample['video_id']
landmarks = np.frombuffer(landmark_sample['features'], dtype=np.float32).reshape(landmark_sample['shape'])

# 3. Find matching RGB clip
print(f"Searching for RGB clip: {target_id}...")
rgb_sample = None
for sample in rgb_stream:
    if sample['__key__'] == target_id:
        rgb_sample = sample
        break

if rgb_sample is None:
    print(f"Error: Could not find RGB clip for {target_id}")
else:
    # 4. Handle Video Data
    video_data = rgb_sample['mp4']
    with tempfile.NamedTemporaryFile(suffix=".mp4", delete=False) as tf:
        if isinstance(video_data, bytes): tf.write(video_data)
        elif isinstance(video_data, dict) and 'bytes' in video_data: tf.write(video_data['bytes'])
        else: # Handle path
            tf.close()
            os.remove(tf.name)
            tf.name = video_data if isinstance(video_data, str) else video_data['path']
        video_path = tf.name

    # 5. Initialize Video Writer
    cap = cv2.VideoCapture(video_path)
    w = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
    h = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
    fps = cap.get(cv2.CAP_PROP_FPS) or 25.0
    
    # We'll save to 'output_raw.mp4' first
    output_path = 'overlay_result.mp4'
    fourcc = cv2.VideoWriter_fourcc(*'MP4V') 
    out = cv2.VideoWriter(output_path, fourcc, fps, (w, h))

    print(f"Rendering {len(landmarks)} frames to {output_path}...")
    
    for frame_idx in range(len(landmarks)):
        ret, frame = cap.read()
        if not ret: break
        
        curr_lms = landmarks[frame_idx]
        for i, lm in enumerate(curr_lms):
            x, y = int(lm[0] * w), int(lm[1] * h)
            # Pose=Blue, Face=White, Hands=Green
            color = (255, 0, 0) if i < 33 else (255, 255, 255) if i < 501 else (0, 255, 0)
            cv2.circle(frame, (x, y), 2, color, -1)
        
        out.write(frame)
        if frame_idx % 50 == 0:
            print(f"Progress: {frame_idx}/{len(landmarks)} frames...")

    cap.release()
    out.release()
    
    # 6. Display the result
    print(f"\nProcessing complete! File saved as {output_path}")
    # Note: 'MP4V' is sometimes not playable directly in all browsers. 
    # In Colab, you can use the Video display or download the file from the sidebar.
    display(Video(output_path, embed=True, width=640))
Downloads last month
228