This workflow pairs frames from a wearable camera with timestamped sensor readings. It stages a masked HDF5 episode and gives a reviewer a contact sheet to check before the run releases the file. Inspect the Factory workflow.
dataset step and its workers enabled. Discuss dataset preview access.- Read metadata
- Prepare episodeNeeds Read metadata.
- Check qualityNeeds Prepare episode.
- Review episodeNeeds Check quality.
- Deliver episodeNeeds Review episode.
Prepare the inputs
Give each capture a unique ID. Keep the original MP4 and its JSON manifest at HTTPS URLs that Editframe can read. The video URL must support byte-range reads and the manifest URL must return the JSON directly. Use links that stay valid until the run has prepared the episode.
The manifest records the SHA-256 of the exact MP4 bytes, the camera calibration, the sensor clocks, and the permissions for training. Before submitting, review the recording for screens, documents, plates, and other details that need masking. Add timed regions for those details. The worker also detects and covers faces in the frames it keeps.
Illustrative capture manifest
Replace the example IDs, sensor rows, calibration, and masking regions with the values for your capture. Use the SHA-256 of your MP4 in source_sha256. Set consent_scope to training when the permission record covers your intended training use.
{
"capture_id": "tabletop-01",
"source_sha256": "SHA256_OF_THE_ORIGINAL_MP4",
"consent_ref": "CAPTURE_PERMISSION_RECORD_ID",
"consent_scope": "training",
"license": "CAPTURE_LICENSE_ID",
"camera": {
"width_px": 640,
"height_px": 480,
"intrinsics": [[500, 0, 320], [0, 500, 240], [0, 0, 1]],
"camera_to_reference": [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]],
"reference_frame": "camera"
},
"sampling": { "fps": 10, "min_frames": 2 },
"privacy": {
"reviewed": true,
"regions": [{ "start_ms": 0, "end_ms": 200, "box": [0, 0, 0.5, 0.5] }]
},
"sensors": {
"imu": {
"timestamps_ms": [1000, 1100, 1200],
"values": [[0, 0, 9.81], [0, 0.01, 9.8], [0, 0.02, 9.8]],
"origin_sensor_ms": 1000,
"origin_video_ms": 0,
"rate": 1,
"max_skew_ms": 5
}
}
}- Camera. Use the dimensions and pinhole intrinsics of the encoded image. Set
target_horizontal_fov_degandhorizontal_fov_tolerance_degtogether insidecamerato check the match against your target camera. - Sampling. Choose an integer
fpsfrom 10 to 30. You can set thresholds for blur (min_sharpness) and near-duplicates (min_hash_distance). Each selected frame keeps its original presentation time relative to the first decoded frame. - Privacy. Each box is normalized
[left, top, right, bottom]. Start times are inclusive and end times are exclusive. Use multiple spans or a box that covers the whole movement. Supply an empty list if your review found no regions to mask. - Sensor clocks. Keep original sensor times in milliseconds. The profile maps them to video time with
(sensor_ms - origin_sensor_ms) * rate + origin_video_ms. It selects the nearest measured sample withinmax_skew_msand checks that the stream spans the frame times. Use an emptysensorsobject for RGB-only data.
The pipeline
| Step | What Editframe does |
|---|---|
probe | Reads video metadata and track information. |
prepare | Uses the egocentric_v1 profile, verifies the capture, samples and masks the video, runs vision models on the masked frames, aligns the recorded sensors, and stages a checked HDF5 episode. |
quality | Allows the review to open when the preparation report passes. |
review | Holds the dataset for a reviewer. A rejection or expiry ends the workflow before delivery. |
deliver | Verifies the approved episode's checksum and adds it to the run's downloadable artifacts. |
The episode includes RGB frames, timestamps, relative depth, semantic masks, hand keypoints, and short descriptions derived from the detected categories and hands. It also records the camera geometry, matched sensor rows and skew, model versions, and capture provenance. The profile exports video frames without audio. The HDF5 dataset is available after approval.
The profile accepts one video track, an MP4 up to 1 GiB, and a manifest up to 16 MiB. Each frame can have up to 8,388,608 pixels and 4096 pixels on either side. Preparation can decode up to 4 billion pixels, retain up to 100 million pixels, and write an HDF5 artifact up to 256 MiB.
Run it
Download the preview definition as egocentric-data.json in the root of your preview checkout. Set EDITFRAME_HOST to the origin of your dataset-enabled installation and EDITFRAME_TOKEN to an API key from that installation. Run the checkout’s CLI from its root.
elements/scripts/editframe pipelines create "Egocentric data" --definition egocentric-data.json --jsonSet PIPELINE_ID to the created pipeline's id. Set CAPTURE_ID to the manifest's capture_id, VIDEO_URL to the recording URL, MANIFEST_URL to the manifest URL, and MANIFEST_SHA256 to the lowercase SHA-256 of the exact manifest bytes.
elements/scripts/editframe pipelines runs create "$PIPELINE_ID" --source-url "$VIDEO_URL" \
--external-id "$CAPTURE_ID" \
--metadata "capture_manifest_url=$MANIFEST_URL" \
--metadata "capture_manifest_sha256=$MANIFEST_SHA256" --jsonCopy the returned run's id into RUN_ID. The prepare output shows the number of retained frames, sensor stream names, and the maximum alignment skew. It also lists the ID of the redacted preview artifact.
elements/scripts/editframe pipelines runs outputs "$RUN_ID" prepareFor a batch, use a pipeline group. Add one run per recording with its own capture ID and manifest metadata.
Review and download
List the run artifacts with your API key.
curl --fail --header "Authorization: Bearer $EDITFRAME_TOKEN" \
"${EDITFRAME_HOST%/}/api/v1/pipeline-runs/$RUN_ID/artifacts"Download the redacted contact sheet, review-preview.jpg, from its url using the same authorization header. Check it alongside the preparation report. Check privacy coverage, alignment, and capture permissions before approving in the Editframe dashboard.
After approval, list the artifacts again and download episode.h5 from its url.
In HDF5, each row of rgb corresponds to a value in time_ms. The camera, sensors, enrichment, and provenance groups hold the other inputs and derived measurements. Keep the episode's capture ID and permission reference with your dataset so you can identify the affected episodes if permission changes.