diff --git a/CHANGELOG.md b/CHANGELOG.md index 19be9ec..0d49fef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,12 @@ removed no sooner than the next major (see `docs/API_STABILITY.md`). ## [Unreleased] +- Replace synthetic opening image GIFs with actual Rust ORB detections and dense + block flow on a pinned real TUM camera recording. Replace the illustrative + depth sweep with actual RANSAC plane removal; record frame-level input/output + hashes, source attribution and playback limits. Synchronize both intrinsic + dimensions in the camera-rotation browser fixture before releasing capture. + - Expand the README opening into nine coordinated animations: a pipeline hero and eight cards covering public-cloud processing and synthetic Rust/WASM tracking. Preserve result provenance, label illustrative motion and bound the diff --git a/README.md b/README.md index f746696..644ff31 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ present the saved outputs; playback speed is independent of processing latency. | --- | --- | --- | --- | | explicit wgpu voxel and normal kernels, automatic CPU fallback | **bounds + LOD** partial reads straight off disk — no full-tile load | no C++ / FFI binding layer to fight | one MVP crate: **IO → filter → segment → register** | -

One scene. Many ways to understand it.

+

Real data. Actual Rust results.

01 Capture: public PCL point cloud colored by depth, shown from animated viewpoints @@ -39,19 +39,23 @@ present the saved outputs; playback speed is independent of processing latency.

05 Structure: occupied 8 cm cells computed by SpatialRust from the public scan - 06 Explore: an illustrated depth window sweeps through the same public point cloud + 06 Remove plane: actual Rust plane removal compares centroids before and outliers after RANSAC

- 07 Track: synthetic textured frames with actual Rust/WASM feature tracks; AI off - 08 Measure: actual Rust/WASM image motion on synthetic input; arrows magnified seven times, labels in original pixels; AI off + 07 Features: actual SpatialRust ORB keypoints detected on a real TUM RGB-D camera recording + 08 Motion: actual SpatialRust dense integer optical flow between adjacent real TUM camera frames; arrows use the image display scale

-

Actual Rust outputs · public scan + synthetic image input · animated presentation, not a speed benchmark.
Depth slicing is a geometric illustration. Flow arrows are enlarged ×7. Sources & regeneration.

+

Actual Rust outputs · public PCL scan + real TUM camera recording · playback is not a speed benchmark.
TUM RGB-D: Sturm et al., IROS 2012 · CC BY 4.0; reduced and annotated. Sources & regeneration.

**[Try camera tracking on your phone →](https://rsasaki0109.github.io/SpatialRust/camera/)** Choose **人物サンプル** to see local AI person masking on a public photo without camera permission, or use procedural playback / opt in to your camera. -The GIF uses synthetic frames and the actual CPU Rust/WASM tracker, -with AI off. Experimental 2D image motion; [usage and device limits](docs/MOBILE_CAMERA_DEMO.md). +The image GIFs show **actual CPU Rust ORB detections and dense optical flow** +on the [TUM RGB-D benchmark](https://cvg.cit.tum.de/data/datasets/rgbd-dataset) +recording, using 64 original consecutive frames and showing every second result. +ORB points are independent detections; flow arrows are raw block matches. +The playground uses a separate experimental 2D Rust/WASM tracker; +[usage and device limits](docs/MOBILE_CAMERA_DEMO.md). ## Why SpatialRust? @@ -832,9 +836,9 @@ See also `crates/spatialrust-py/examples/make_gifs.py` and `examples/ml_preproce ## README visuals -The four opening GIFs share a bounded renderer, actual Rust outputs and a +The nine opening GIFs share a bounded renderer, actual Rust outputs and a 3 MB combined budget. [Generation instructions and provenance](docs/README_VISUALS.md) -cover the public scan, execution settings, synthetic tracking and current asset hashes. +cover the public scan, pinned real TUM recording, Rust processing settings and per-frame output hashes. The other README pipeline visuals use the public PCL [`table_scene_lms400.pcd`](https://github.com/PointCloudLibrary/data/blob/master/tutorials/table_scene_lms400.pcd) sample, cached under `target/readme-data/` at generation time rather than committed to the repository. Regenerate them with: diff --git a/docs/README_VISUALS.md b/docs/README_VISUALS.md index 650060f..2a51861 100644 --- a/docs/README_VISUALS.md +++ b/docs/README_VISUALS.md @@ -1,81 +1,91 @@ # README opening animations -The opening group is rendered from actual SpatialRust results in a shared dark -palette, with readable labels and a link to the mobile camera playground. -`readme_hero.gif` presents the pipeline; the smaller animations show Euclidean -cluster labels, occupied voxel cells and Rust/WASM image-space feature tracking. -Nine GIFs form a full-width banner and eight gallery cards: depth-colored scan, -voxel filtering, plane segmentation, clusters, occupancy, depth slicing, image -tracks and image flow. Depth slicing is a geometric illustration over the same -scan, not an additional query API. Flow arrows are enlarged seven times for -legibility; numeric motion stays in original pixels. -The renderer limits each GIF to 1.5 MB and the group to 3 MB. It holds bounded -frame sequences in memory instead of writing intermediate frames to disk. +The nine opening GIFs use actual SpatialRust processing on a real public PCL +scan and a real TUM camera recording. A full-width pipeline banner is followed +by eight cards: scan input, voxel centroids, RANSAC membership, Euclidean +clusters, occupied cells, plane removal, ORB detections and dense image flow. +No synthetic image input, fabricated image motion or interpolated movie frames +are used in this opening group. Viewpoint animation presents the saved point +cloud outputs; it is not the algorithm's execution progress or latency. -## Inputs and meaning +## Point cloud input and execution -- Point clouds: the public PCL - [`table_scene_lms400.pcd`](https://github.com/PointCloudLibrary/data/blob/master/tutorials/table_scene_lms400.pcd) - scan (460,400 points, 5,649,007 bytes). SHA256: - `e285d415641e0d9de695b611db874cc8fe995e8089b77a50d6056d24d8cbcc58`. - The renderer selects every sixth finite point (76,734 points), runs the Rust - pipeline through the Python extension and uses its returned downsampled and - labeled clouds. Exact output membership identifies removed plane points; - the renderer does not fit its own plane or invent cluster labels. Occupied - 8 cm cells are returned by `spatialrust.voxelize`. -- Execution: voxel policy is explicitly `cpu`. The installed extension used - for these assets does not expose resolved stage policies; its receipt records - `null` and its binary hash. The visuals make no GPU execution or speed claim. - Build the current extension to reproduce with current stage-policy receipts. -- Tracking: 48 generated 256×192 gray frames are passed to the actual - `BrowserCameraTracker` WASM API at logical 125 ms intervals. All 47 frames - after initialization track successfully. The renderer reconstructs the - same input and checks every frame's byte hash before drawing returned tracks. - No camera, person model, upload or physical-phone capture is involved; the - animation is visibly marked **SYNTHETIC / AI OFF**. The playground separately - offers opt-in camera use and optional local AI person masking. +The public PCL [table_scene_lms400.pcd](https://github.com/PointCloudLibrary/data/blob/master/tutorials/table_scene_lms400.pcd) +contains 460,400 measured points (5,649,007 bytes), SHA256 +`e285d415641e0d9de695b611db874cc8fe995e8089b77a50d6056d24d8cbcc58`. +The renderer selects every sixth finite point (76,734 points) and invokes the +Rust pipeline through the Python extension with voxel policy explicitly `cpu`. +The returned voxel centroids, plane membership and Euclidean labels drive the +visuals. Plane removal displays the actual complement of the inlier plane. +Occupied 8 cm cells come from `spatialrust.voxelize`. The capture card shows the +input; depth colors and rotating viewpoints are display choices. -Viewpoint movement and GIF playback are presentation choices. They do not show -live processing latency, GPU acceleration, metric pose or SLAM qualification. +The installed extension used here does not expose resolved stage policies; +the receipt records `null` and its binary hash. These assets make no claim of +GPU execution or speed. Build the current extension to reproduce with its +current policy receipts. -## Regeneration +## Real camera recording and processing -Use a built SpatialRust Python extension (`maturin develop --release` from -`crates/spatialrust-py`), NumPy, Pillow and Node.js. Reuse a built camera package -from `scripts/build_camera_demo.py`, or generate only its Rust/WASM package: +Source: [TUM RGB-D benchmark, freiburg1_xyz](https://cvg.cit.tum.de/data/datasets/rgbd-dataset/download#freiburg1_xyz), +[official RGB movie](https://webshare.cvg.cit.tum.de/g/rgbd/dataset/freiburg1/rgbd_dataset_freiburg1_xyz-rgb.avi). +The original 640x480, 30 fps movie is 8,059,298 bytes, SHA256 +`1820b52939af2a2e7afdf78f6398cfbc7816399c8809b3836a9ba8da9bef8022`. -```sh -cargo build --release -p spatialrust-web --target wasm32-unknown-unknown -wasm-bindgen --target web --out-dir target/readme-camera-pkg target/wasm32-unknown-unknown/release/spatialrust_web.wasm -``` +Attribution: J. Sturm, N. Engelhard, F. Endres, W. Burgard and D. Cremers, +*A Benchmark for the Evaluation of RGB-D SLAM Systems*, IROS 2012. +The recording is [CC BY 4.0](https://cvg.cit.tum.de/data/datasets/rgbd-dataset#license). +The GIFs reduce, annotate and slow the recording. The image content remains +third-party CC BY 4.0 material; it is not relicensed under the SDK's license. + +- Decode original frames 0 through 63, in order, with OpenCV's AVI decoder. + OpenCV performs no feature extraction, optical flow or tracking. +- Reduce each original RGB frame to 192x144 with Pillow BOX and convert to L8. +- Invoke actual `spatialrust.dense_flow_image` on all 63 original adjacent pairs + with block radius 2 and search radius 3. +- On frames 1, 3, ..., 63, invoke actual `spatialrust.orb_features(max_features=80)`. + Render these 32 images at 125 ms each. Each displayed flow result still uses + its immediately preceding original frame, not the preceding displayed frame. +- Draw returned ORB coordinates and sample returned flow vectors on a fixed + grid, skipping all non-finite flow pixels (also counted in the receipt). + Vector coordinates use exactly the same 1.5x display scale (192x144 input shown at 288x216) as the image; + no extra motion amplification or smoothing is applied. +- Record each source frame number, decoded RGB and actual grayscale hashes, + preceding grayscale hash, full dense-flow hash, actual ORB coordinate count + and hash (little-endian float64 Nx2), and descriptor hash in + `assets/readme_heroes.json`, alongside the native extension, + decoder and renderer identities. No fabricated detections or fitted arrows. -Use the wasm-bindgen CLI version matching Cargo's wasm-bindgen version. Keep -the input scan and the generated tracking report outside tracked directories. -The exporter and renderer perform no downloads. Then run from the repo root: +ORB detections are independent per frame, not persistent object IDs. Dense flow +is raw integer block matching with no confidence filtering; its arrows are not +validated correspondences. Movie frame rate is not a calibrated sensor clock. +These are visual processing examples, not accuracy measurements or proof of +metric camera pose, SLAM, AI inference or physical-phone performance. The linked +phone playground uses a separate Rust/WASM tracker and optional person model. +`real_orb_features.gif` and `real_dense_flow.gif` identify these two processing paths. + +## Regeneration and limits + +Use a built SpatialRust Python extension (`maturin develop --release` from +`crates/spatialrust-py`), NumPy, Pillow and OpenCV for AVI decoding. Obtain the +pinned public inputs explicitly and keep them outside tracked directories. +Neither renderer downloads data or installs dependencies. ```sh -node scripts/readme_tracking_data.mjs --pkg target/readme-camera-pkg --output target/readme-tracking.json -python scripts/render_readme_heroes.py --input /absolute/path/table_scene_lms400.pcd --tracking target/readme-tracking.json --font /absolute/path/sans.ttf --output docs/assets +python scripts/render_readme_heroes.py --input /absolute/path/table_scene_lms400.pcd --video /absolute/path/rgbd_dataset_freiburg1_xyz-rgb.avi --font /absolute/path/sans.ttf --output docs/assets ``` -The exporter requires a fresh output file. The renderer updates only the nine -opening GIFs and `docs/assets/readme_heroes.json`; it does not modify other README -visuals. Use a local sans font such as DejaVu Sans or Segoe UI. The font hash, -Python extension hash, WASM hash, generator hashes, dependency versions, pipeline -parameters and asset hashes are recorded in that provenance receipt. Different -fonts or builds can change pixels and hashes; rerun the visual checks after -regeneration. No font binary, scan, WASM package or sensor data is committed. - -The older `readme_mvp_preview` and `make_gifs.py` examples also write some of -these filenames. Run the opening-group renderer last when regenerating all -README media. +The renderer writes nine named GIFs and their provenance receipt. It processes +only 64 decoded video frames and keeps bounded frame sequences in memory; +intermediate PNGs, input movies, raw scans and native binaries are not committed. +Each GIF is limited to 1.5 MB and the complete group to 3 MB. Reuse a local font +such as DejaVu Sans or Segoe UI; its hash is included in the receipt. Different +fonts, decoders or native builds may change pixels and hashes. -## Verification +Decode every GIF frame, check meaningful changes, looping and sizes, validate +receipt/source/output hashes, and inspect both processing results and input +images at desktop and phone widths. Verify source-frame indices and that the +video processing used Rust, independently of the display annotations. -The prior four-GIF group was about 1.54 MB. The expanded nine-GIF gallery stays -under the same 3 MB cap; exact sizes are in `assets/readme_heroes.json`. -Decode every frame, verify image -dimensions, looping, meaningful frame changes, the provenance hashes and the -combined size. Inspect all four pipeline phases and all eight cards at -desktop and phone widths. Check that the tracking link points to the playground -and that the synthetic/AI-off label and experimental 2D description remain visible. +The older synthetic `readme_tracking_data.mjs` exporter and other GIF examples +remain available for their own tests. They are not inputs to the opening gallery. diff --git a/docs/assets/camera_tracking.gif b/docs/assets/camera_tracking.gif deleted file mode 100644 index fc86cdc..0000000 Binary files a/docs/assets/camera_tracking.gif and /dev/null differ diff --git a/docs/assets/plane_removal.gif b/docs/assets/plane_removal.gif new file mode 100644 index 0000000..046bd3e Binary files /dev/null and b/docs/assets/plane_removal.gif differ diff --git a/docs/assets/readme_heroes.json b/docs/assets/readme_heroes.json index ebf2b77..4dec701 100644 --- a/docs/assets/readme_heroes.json +++ b/docs/assets/readme_heroes.json @@ -1,5 +1,5 @@ { - "schema": "spatialrust.readme-heroes.v1", + "schema": "spatialrust.readme-heroes.v2", "assets": [ { "path": "readme_hero.gif", @@ -17,9 +17,9 @@ "sha256": "a7b0d05d2903cb9c809535ef67ddc2bb65c9ba5a45aabfd2c334681dbf96ce48" }, { - "path": "camera_tracking.gif", - "bytes": 968718, - "sha256": "3ea5d14be5c99d2168c6f75afefd0efc05f5a43b0eb76826f3930f468dbd67c7" + "path": "real_orb_features.gif", + "bytes": 887383, + "sha256": "c7574f889d6a76c4e23df0841d29cd17d3390fcbb995881c1744bfdf9e36d4c3" }, { "path": "scan_reveal.gif", @@ -37,14 +37,14 @@ "sha256": "a0c0680ae35fc80c9fcd8116adcfe318140898cc4f44e1cd8b9f4373c85d8cb3" }, { - "path": "spatial_slice.gif", - "bytes": 92746, - "sha256": "e4575fa48f45d45a201de16ce0488fac0fc35c7c8dde91e5d2f41047a1ce97a9" + "path": "plane_removal.gif", + "bytes": 98896, + "sha256": "7ed6d3511be63f219f60b054518323b3164f69b4bb979f5478348c846ac3fb44" }, { - "path": "tracking_flow.gif", - "bytes": 285598, - "sha256": "64137af7c02b64d307c0fe2dbc3e3aa14c0313dfd69932cf92c206dc0a958b98" + "path": "real_dense_flow.gif", + "bytes": 922757, + "sha256": "0a461743048cc645e405d632aec8e2ce9a6fb8df0feebc8345311961f28023de" } ], "public_input": { @@ -53,12 +53,12 @@ "points": 460400, "sampled_points": 76734 }, - "execution": "SpatialRust Python bindings (voxel policy cpu); CPU Rust/WASM camera tracker", + "execution": "SpatialRust Python bindings (voxel policy cpu); CPU Rust ORB and dense flow on real recorded frames", "spatialrust_version": "1.0.0", "resolved_policies": null, "python_extension_sha256": "cba594925d83a3b495db4f1ecb97434df72767b7075fccf0380c559477e62c5c", - "generator_sha256": "b852697eba0ab43f51dd56a1964cf31aeeb57df03d0d973ce8d5a2e3012a6468", - "tracking_generator_sha256": "0ab17ebc391cd054e1c607ed6fbf42bccab39a026c8516e09b86faee4d78c9cb", + "generator_sha256": "2b851c62832a21194802fa7d74142dea5ee395f382ff9601740c9a8ab9202909", + "video_renderer_sha256": "9e5aa05c77bad6f7b34dc4e4ab1e3668d29cdd9a3a98306f3f7a61b5aec6cf6f", "numpy_version": "2.3.4", "pillow_version": "12.3.0", "font_sha256": "8134dbcd09e7b123c9a7f229d49cffbcb01352cc72ea5e1076b65d0dca9f73cd", @@ -73,7 +73,640 @@ "occupancy_cell_m": 0.08, "occupied_cells": 776 }, - "tracking_wasm_sha256": "f99c2ba94abe68021b880ba2141c087b5758d638011b04b1ea5d0b47b00493ad", - "tracking_frames": 48, - "claims": "Illustrations of actual outputs; orbit, depth sweep and stage switching are presentation effects, not processing latency. Synthetic tracking has AI disabled; flow arrows are magnified x7." + "real_video": { + "schema": "spatialrust.readme-real-video.v1", + "url": "https://webshare.cvg.cit.tum.de/g/rgbd/dataset/freiburg1/rgbd_dataset_freiburg1_xyz-rgb.avi", + "bytes": 8059298, + "sha256": "1820b52939af2a2e7afdf78f6398cfbc7816399c8809b3836a9ba8da9bef8022", + "license": "CC BY 4.0", + "attribution": "J. Sturm, N. Engelhard, F. Endres, W. Burgard, D. Cremers. A Benchmark for the Evaluation of RGB-D SLAM Systems. IROS 2012.", + "license_source": "https://cvg.cit.tum.de/data/datasets/rgbd-dataset#license", + "source_fps": 30, + "decoded_frames": 64, + "processed_adjacent_pairs": 63, + "rendered_source_frames": [ + 1, + 3, + 5, + 7, + 9, + 11, + 13, + 15, + 17, + 19, + 21, + 23, + 25, + 27, + 29, + 31, + 33, + 35, + 37, + 39, + 41, + 43, + 45, + 47, + 49, + 51, + 53, + 55, + 57, + 59, + 61, + 63 + ], + "width": 192, + "height": 144, + "frame_duration_ms": 125, + "decoder": "OpenCV 4.13.0", + "processing": "SpatialRust CPU orb_features and dense_flow_image; no OpenCV vision algorithms", + "flow_controls": { + "block_radius": 2, + "search_radius": 3 + }, + "note": "Raw integer block matches, no confidence filtering or object identities. Non-finite pixels (including unsupported borders) are counted and never drawn. ORB detections are independent per frame. Playback is slowed; frame numbers identify original movie frames. AVI timing is not a calibrated sensor clock.", + "renderer_sha256": "9e5aa05c77bad6f7b34dc4e4ab1e3668d29cdd9a3a98306f3f7a61b5aec6cf6f", + "frames": [ + { + "source_frame": 1, + "previous_frame": 0, + "decoded_rgb_sha256": "1e67ff3818167d8fb50d0bf6de40091855af855090d94785e31bc512569c617a", + "gray_sha256": "38722c5640b46337716191e661d07de3ffd22d4aca0abe83267af82e0067e91b", + "previous_gray_sha256": "86380e83276a73a332f776031cc5c9ea4bc64644d22ace6233551ebb3a0515c3", + "flow_sha256": "21ac85a3f244c3581000cc97e17c281ec8ab40d51a0f30d247376b2db3d52291", + "keypoint_count": 80, + "keypoints_sha256": "7ff5e96669f5bd5bd7d9057030303027fb733cf8c375a273cec058a47d53af40", + "descriptors_sha256": "2e0a1d2b752b2e8c6adbb70bf06198a0e092a4317938e18d5c3b50094c462abe", + "valid_flow_pixels": 23803, + "invalid_flow_pixels": 3845, + "nonzero_flow_pixels": 23803, + "median_flow_px": [ + 1.0, + -2.0 + ] + }, + { + "source_frame": 3, + "previous_frame": 2, + "decoded_rgb_sha256": "2f40855275ceadf9629c863baa6bc43718b4b43d676e0f9b169a51a4b47ce172", + "gray_sha256": "b29219a7d08bb566b99a59d9a0dcb9466a22ec9bc2fa32c99fab41efb4ef2992", + "previous_gray_sha256": "0fc3e20bf783552a3987e61539014d0825fa84d5b50c05faacbb473c146a0e94", + "flow_sha256": "79bb2ccbb4cc0624b814aeb822d125b4d97f5a87aa2fcdb8caa899c799c44461", + "keypoint_count": 80, + "keypoints_sha256": "fa308a83e7446e794ac850eb12ba5d3ebeec08fc5550ffec7ac2c9a6339522af", + "descriptors_sha256": "5d278c76c693a54e10c673131c5bc7011afb48849978ec407bb7e7fd2ba9e8ad", + "valid_flow_pixels": 23671, + "invalid_flow_pixels": 3977, + "nonzero_flow_pixels": 23671, + "median_flow_px": [ + 1.0, + -2.0 + ] + }, + { + "source_frame": 5, + "previous_frame": 4, + "decoded_rgb_sha256": "c487131ffaa05d2b91a8bb10e368cce6858baf11f150088694bd972f314ba929", + "gray_sha256": "4cddaf070e3217e476cd901561462a73c03e60f93f7b629e6deb335615c02861", + "previous_gray_sha256": "a7c09700641a4a3e1647b0236efa30ad64177d6fbec8fc403663703045da68c4", + "flow_sha256": "c006f38a1aa1fd766c645eca39e17facb64287a6a918e9054dbc17d5506bda51", + "keypoint_count": 80, + "keypoints_sha256": "55c93c5064a9c9a463e073e8867f60cb6d2b6a594f9f0a3ed4d64896e0c9ed5d", + "descriptors_sha256": "37e341b5b2a684e1f8a9e2261b7c91f5e097ab8a68cb7c4434a4b80b37d98d50", + "valid_flow_pixels": 18427, + "invalid_flow_pixels": 9221, + "nonzero_flow_pixels": 18427, + "median_flow_px": [ + 1.0, + -1.0 + ] + }, + { + "source_frame": 7, + "previous_frame": 6, + "decoded_rgb_sha256": "561414e01296eea2b6bd475a1d1936461bdf247a42ca8efd36b24608cf996635", + "gray_sha256": "7697f6bc0033b40c729940b2b524874042d67224bdd943019c2dfa2b67e0edb7", + "previous_gray_sha256": "abfed69ded9d457c88d5f2911399bf172c337d581a28f69b8bbcedf54d9feece", + "flow_sha256": "fc99aa02c351130d607f04d626c7793868a967853aca88cb43c73eee005c2e00", + "keypoint_count": 80, + "keypoints_sha256": "b3b9d3d2d6c452aab46e1946ac844753205fab2daf95714cad552637e30ce335", + "descriptors_sha256": "1e96c25095ed841418a0c4f2351d6e76f3e47ba7100a623ff32e10ddd88deab0", + "valid_flow_pixels": 21271, + "invalid_flow_pixels": 6377, + "nonzero_flow_pixels": 21271, + "median_flow_px": [ + 1.0, + -1.0 + ] + }, + { + "source_frame": 9, + "previous_frame": 8, + "decoded_rgb_sha256": "fe308a53cf20714ebfab01854cc97dede75eb799c0cc0f67a9c639522b0215ce", + "gray_sha256": "4b76acf9b0efe554b787d8f68c005a1e34f5cb7af14937c45aa3d76753da3bf3", + "previous_gray_sha256": "57fad98732bc82e08ecf8be01a837e60c31e39d2db88d34663430d796aafc5a8", + "flow_sha256": "ea46b920d75837e86fb111f444ea26b4d523c665e00e5f8c706a50c7f33e5cf5", + "keypoint_count": 80, + "keypoints_sha256": "26e6eb6c673dc7b308a10d2c6376e588dc25e4957a6b05285a8bb4b9c4c51842", + "descriptors_sha256": "f80540ff2ad24d0830660396922d734acaaea8204f8847511fa48a87924a1f17", + "valid_flow_pixels": 23513, + "invalid_flow_pixels": 4135, + "nonzero_flow_pixels": 23513, + "median_flow_px": [ + 0.0, + -2.0 + ] + }, + { + "source_frame": 11, + "previous_frame": 10, + "decoded_rgb_sha256": "92af34b04ef78fa3cc013fcae4040930e5668674eef2fe3c996bbfa530d748b6", + "gray_sha256": "38b054e1db09849eb0b91775531fb2d4522a5b4ecd24a438812e956ce2081ab9", + "previous_gray_sha256": "21ba13d5822bb53d295d8889229566b7b419fa8dae9372154d2538ca9ab8824c", + "flow_sha256": "284d9caf649ed50a18a7e88ef446535910ead8e923c746863309ca1e7b51d546", + "keypoint_count": 80, + "keypoints_sha256": "9b239a467bdc1bba98cf4784800292c1ad4324698a3792a0e0f8e34125536dfc", + "descriptors_sha256": "b16ae297dd29db4da62beece3897dfe62f21cfac6fd9b21885d5b2cad288e9e1", + "valid_flow_pixels": 22238, + "invalid_flow_pixels": 5410, + "nonzero_flow_pixels": 22238, + "median_flow_px": [ + -1.0, + -1.0 + ] + }, + { + "source_frame": 13, + "previous_frame": 12, + "decoded_rgb_sha256": "c7c0344fb471189e40addae58020d056f2edafbd00da5fc95f383f1f2ce452c2", + "gray_sha256": "3a9bb797872625782a71d9f8d6105292f1d4a44739dc0ae4c3700597aa6bee93", + "previous_gray_sha256": "18ec5cbc24c8149fa5197f0e843b621bf7d1ce37cc5c60b1ca532f1e2f1f8ef4", + "flow_sha256": "5425a9b541c98b1c91830214b8100129cca90b727d574b3ef0aabed6a2a0e821", + "keypoint_count": 80, + "keypoints_sha256": "fbab626ffa66550de1ce7902c004335b715eb7a72138a448784fdefcf33de54b", + "descriptors_sha256": "b0f064c49b291874d0333500e54a229d334e505f3680e987a7169b66f2774d0c", + "valid_flow_pixels": 21143, + "invalid_flow_pixels": 6505, + "nonzero_flow_pixels": 21143, + "median_flow_px": [ + -1.0, + 1.0 + ] + }, + { + "source_frame": 15, + "previous_frame": 14, + "decoded_rgb_sha256": "a713478e4bbd16e9803ebf0d84d9fe506b07a9e56c16d41e17eef00469f6becb", + "gray_sha256": "e59b7dd9d297e618426980149f8893902be5a6af9a57654f4ce5cf009de981b6", + "previous_gray_sha256": "09f6498426fb61f153a940fe670b1dfa6f5eae441536881a447d7012601f87bd", + "flow_sha256": "aed791c7943e16fe29972cc2995e747c4b5a46e26f2c5f5233c779334f3a6710", + "keypoint_count": 80, + "keypoints_sha256": "e04702f393bf5e999b3ac672759b4df1de19330db73bdf81466954901a119ea9", + "descriptors_sha256": "c966bd4ff3ec729ce6e23b5cc60ead04c6c35cb8bd14f2a9fb9012608c9b65b0", + "valid_flow_pixels": 17896, + "invalid_flow_pixels": 9752, + "nonzero_flow_pixels": 17896, + "median_flow_px": [ + 0.0, + -1.0 + ] + }, + { + "source_frame": 17, + "previous_frame": 16, + "decoded_rgb_sha256": "e414ec42be86f616211883b5b9cf68b5d666ee02b812457d0c47bdbd74946d42", + "gray_sha256": "9005dd90fb69159e21ccb2552bf6099fa088a7b0ef459a0c5a6efe6c58cab09d", + "previous_gray_sha256": "127c42bc5b7b56f7e31d6b153db449332eb05981d824110d5abdf42b68590df7", + "flow_sha256": "24fced7a9e8434cfbad12513260532a455492884510e14211cd173ec2dd18bf7", + "keypoint_count": 80, + "keypoints_sha256": "773a027be0b8b7228d16e84ed22957019c75a55b72ad7c66cc4cf6c88fb93812", + "descriptors_sha256": "b3118fb016f55243c01e75eeb9bff3aa2534c84ec40dd1f9c15956f7f34d4004", + "valid_flow_pixels": 19991, + "invalid_flow_pixels": 7657, + "nonzero_flow_pixels": 19991, + "median_flow_px": [ + 0.0, + -1.0 + ] + }, + { + "source_frame": 19, + "previous_frame": 18, + "decoded_rgb_sha256": "9ec0112cd42baf717ee0b76f254912151d9a78c263ac2f4ec4290f3adefa35d4", + "gray_sha256": "e3c87c8b4e33f1e5d56ee8450df3cd617340910480e7b1d1b9bee1e2adc856be", + "previous_gray_sha256": "7195c8c96ae934f13fda5d9cb715753b3c1cdb538e3a3baf46ea51ed0d228575", + "flow_sha256": "46571fd045737a146accf12f45088ec7df4fbda8c0b58f4f5b56f864fa98e115", + "keypoint_count": 80, + "keypoints_sha256": "ea63bdce9854a13c856b331cee1b59ac7d2005a465ff047f2a0889aaa3d9eb67", + "descriptors_sha256": "12e055c746a535ef35e4a08f95430c8d38b63644efbc06fd9bba1deeb67a2562", + "valid_flow_pixels": 19518, + "invalid_flow_pixels": 8130, + "nonzero_flow_pixels": 19518, + "median_flow_px": [ + -1.0, + -1.0 + ] + }, + { + "source_frame": 21, + "previous_frame": 20, + "decoded_rgb_sha256": "5412bc6a10b15e79b14e46b63c3289a7b7279f87a2c0788ea3737a41449dc32f", + "gray_sha256": "a78c9ea9457b9b4ecfb53b4f83f056c4f8fda8abeb2dd43ed648e9a2403a2ff1", + "previous_gray_sha256": "b2700ec48004db079f759db5fd6cc9a46e3782c66e03409cae4fc12ad65acd02", + "flow_sha256": "5c3cc4345f173c61a26bf5eee76fd7a2540bd98afe71fedb5b58061afe9a241b", + "keypoint_count": 80, + "keypoints_sha256": "d15d29ac64ad84bdaa962a90a34f89d62817b233beef2330242c376c9c381561", + "descriptors_sha256": "c8a8ce575c73d66ca786e44c552fead0c6f11017885d38a7b2b6f03524bdd841", + "valid_flow_pixels": 18575, + "invalid_flow_pixels": 9073, + "nonzero_flow_pixels": 18575, + "median_flow_px": [ + -1.0, + 0.0 + ] + }, + { + "source_frame": 23, + "previous_frame": 22, + "decoded_rgb_sha256": "f428845769b25edb32cffc14151e87780cfa89327230c85532cd635bc43c12bf", + "gray_sha256": "5a442247549a549226541b29ee4b61789c74cc54f39faa758eb346a553f114f9", + "previous_gray_sha256": "e709cd3ee943ef855943a36cf37fce51c034189638609e13f9eba0763e83bc35", + "flow_sha256": "1122dc5082988202e1b72f6732f837612f15c32851da4867b5d20c28e8096733", + "keypoint_count": 80, + "keypoints_sha256": "deb686c2f7c98a8f68f404bee09bd4e429bd2033791f150024cc5a3d7512abd6", + "descriptors_sha256": "607ab6e8cf52f5fd74f3f762f01d8e4681b0cc498c0f1d785895e12349fb3549", + "valid_flow_pixels": 14757, + "invalid_flow_pixels": 12891, + "nonzero_flow_pixels": 14757, + "median_flow_px": [ + 0.0, + 0.0 + ] + }, + { + "source_frame": 25, + "previous_frame": 24, + "decoded_rgb_sha256": "d2cb10bb601ffdb89d2df162e9284ac021070d6648713570ade1ced31ff2f004", + "gray_sha256": "a2c3b7328a0f1203b16f57a0e3868beecba63774a758d5f8973834c4b5135964", + "previous_gray_sha256": "0629dc2996df9c344c27eee635090887b11913ea41baf419ea30f40ffe2f14ad", + "flow_sha256": "d7c9ae9547932d3ac2abe25d7e108e9a3b5889ed2ea478298d9e984b0fbfd39d", + "keypoint_count": 80, + "keypoints_sha256": "22c1fbc12c4ba383ab7152f9781b3b9b8046ba1e9c1c2f17b4cee71d0b81878d", + "descriptors_sha256": "0719b529b83a45a8c60fa0627abd65425d5eb4549bb6fdda31165f34bc7e0e3d", + "valid_flow_pixels": 21299, + "invalid_flow_pixels": 6349, + "nonzero_flow_pixels": 21299, + "median_flow_px": [ + 2.0, + 0.0 + ] + }, + { + "source_frame": 27, + "previous_frame": 26, + "decoded_rgb_sha256": "27243da1050b88a2f280de898c25cf79cc9e231424398c03d6425038434272a5", + "gray_sha256": "903f960e8db7b4ec7f13303e9d5b931693a1e0f3a785685fda86966928449680", + "previous_gray_sha256": "d74dac1c9d670401bfab6b8b1adc824a96bd143c6798cdb0be87aa91da2c9f79", + "flow_sha256": "b50002987d339cb32252bfa0d30fb2e4337ce19ff67bef01b17b61adb5f3157c", + "keypoint_count": 80, + "keypoints_sha256": "3c219f372966b2981e8ec3ef96d257429d37c9bdf5983b3f30dd4958664aa516", + "descriptors_sha256": "c0b7a548047456e647cc60d93aed064aab25e9fedd0aff6eb02a6bbb3ce44b11", + "valid_flow_pixels": 17284, + "invalid_flow_pixels": 10364, + "nonzero_flow_pixels": 17284, + "median_flow_px": [ + 1.0, + 0.0 + ] + }, + { + "source_frame": 29, + "previous_frame": 28, + "decoded_rgb_sha256": "658a37c9d68279d02ada5693bc237495873f179ad67b3657b083c539c172c1e3", + "gray_sha256": "40fd119bcda3022a83ad23ead6d8c3f4cd87f9382bed2565950c47e0e135f71d", + "previous_gray_sha256": "c30926e08dc566150a7a5f18adc6c23fc66a7099d31d9fd00a56a10334636513", + "flow_sha256": "53303501dd190933f3bfffe04e644eeb6d39f6dde0d7f1f71f48681219a628f5", + "keypoint_count": 80, + "keypoints_sha256": "c2128b46a748d5c577f770068e7290d8731d60896c799e1bf1b392bcc9a8de37", + "descriptors_sha256": "2542db29f7783e28c133e520f69996fad4f933f9321ae4e7a59456145b21e062", + "valid_flow_pixels": 19224, + "invalid_flow_pixels": 8424, + "nonzero_flow_pixels": 19224, + "median_flow_px": [ + 0.0, + -1.0 + ] + }, + { + "source_frame": 31, + "previous_frame": 30, + "decoded_rgb_sha256": "e66a8f8f7878fb58c9d5e53a9d0ba815c730f38c32ef025950baa74b8dde96a1", + "gray_sha256": "3b104c5e9931e6436fa5f3f7aef38e55ba7187a16a8c2551a64bd4e618fb0ac5", + "previous_gray_sha256": "0ae320b97a8f961b1596fd52245b9a55e9dfb6e6db48530c0e6e8d591142c1c8", + "flow_sha256": "f8774a8ba897d1e21f5205d9acae94670b249cacf4c37ed1c16fc107d8cd0c92", + "keypoint_count": 80, + "keypoints_sha256": "67137081321b4a6d046e64ee014a94dda7f9d9e87ab9d9d06d9990c2a9431b42", + "descriptors_sha256": "b0e51bf3b5878e7bb5363db98a46ddaade1911adc09f7c9ae148f936d684ef76", + "valid_flow_pixels": 22555, + "invalid_flow_pixels": 5093, + "nonzero_flow_pixels": 22555, + "median_flow_px": [ + 0.0, + -2.0 + ] + }, + { + "source_frame": 33, + "previous_frame": 32, + "decoded_rgb_sha256": "477aa8df761d75998aaf3728d091aa601d60b627a76cd90e91aa63e4dd37a599", + "gray_sha256": "7dab3031c9ee9f0fecb90ba81e538a147486622478cd271fca714a5aea74078f", + "previous_gray_sha256": "a86170e835e6982544d59ea020cc939e9b4c57262bcd3640fe93a4a6c0639d89", + "flow_sha256": "a0ee77bce5592f908fe560809063e4e5ddf99077b3d17cbdcfc7f9516e8b0f3e", + "keypoint_count": 80, + "keypoints_sha256": "b8b90438af0a6e625ca5c2728edd43a41885cbd4d26427d88e2638d38b31a3a6", + "descriptors_sha256": "d12a9c81e34d35aa29de0336cb7000ce0cdb6d4fdc931719dda1e9a391aea2d2", + "valid_flow_pixels": 23392, + "invalid_flow_pixels": 4256, + "nonzero_flow_pixels": 23392, + "median_flow_px": [ + 1.0, + -3.0 + ] + }, + { + "source_frame": 35, + "previous_frame": 34, + "decoded_rgb_sha256": "f57cac3f952f78cf0557acb3b0916b8d5b553f3e41f8ffb2a5518e3c7277aa08", + "gray_sha256": "802bc757e8083336eb3de5b00f82817c5fd36c9709c4d3d15a39c3d834ca3ed9", + "previous_gray_sha256": "490c20d4002609eada3077966cb6e203e2631f2631fdfccc8ff832bc39d2538a", + "flow_sha256": "abd1b64f21684a399d4a4040b693677c11ca38ac76fa6ed2b0be3aafb58d51ed", + "keypoint_count": 80, + "keypoints_sha256": "3c9a50cb2c9d0fa3492efbc3e95f2209493e8ed0fd3479ae7f996ca208e996a3", + "descriptors_sha256": "2b2dee52e0f9ed779f308f7012ec103364cc60153f255c81578c091b7eb4f11c", + "valid_flow_pixels": 21981, + "invalid_flow_pixels": 5667, + "nonzero_flow_pixels": 21981, + "median_flow_px": [ + 1.0, + 0.0 + ] + }, + { + "source_frame": 37, + "previous_frame": 36, + "decoded_rgb_sha256": "f1addf9219f464a4be12e412505e228ab6292c9b1dffcac053f5732dae50b2a2", + "gray_sha256": "2590d4be9f8da1b7def7e05e57e1f179b083488e0a16cfa316b5636b8e9834ed", + "previous_gray_sha256": "b58c8ab78f28e510542d8d0df5cab26f251ac46b59baffe90c4039bf7696d2fe", + "flow_sha256": "35e1c9a18d78c7b8e831a005a8056852c48b24abb20dabc34f74b23d3322192e", + "keypoint_count": 80, + "keypoints_sha256": "6a49dd9faf89f76eaabab274d532bcd2213cd7c819f9540e5ef67d4b0ac1cbda", + "descriptors_sha256": "e4ce730a2dff8230963f87bba61a17fffa4e0de69257134bb872891eb1883110", + "valid_flow_pixels": 8048, + "invalid_flow_pixels": 19600, + "nonzero_flow_pixels": 8048, + "median_flow_px": [ + 0.0, + 0.0 + ] + }, + { + "source_frame": 39, + "previous_frame": 38, + "decoded_rgb_sha256": "d1b6305401a96ef3fefa0e8b35b3572e97e2209aee6746088595b6f35f742398", + "gray_sha256": "7e6e18b975161f5bb7bf252b6ec10a9bdd9a5b508e70f7543c7be3a0991ebea0", + "previous_gray_sha256": "4c213567e790be234b84129c81792ca0d9dd3050889dd729d87f0fafa277275f", + "flow_sha256": "4c93163e5d65a354b2175f0c9d47d9d96a18942d89858bbd33c6e5a0b1f58b17", + "keypoint_count": 80, + "keypoints_sha256": "9a9698bf23506ebb153994f265505a4d1c12057bf5d908d6a687d7dc3d9f323c", + "descriptors_sha256": "ea171500720955704fa651b45762c0d5a023424444d14e5a6801e6ec05681cd4", + "valid_flow_pixels": 21252, + "invalid_flow_pixels": 6396, + "nonzero_flow_pixels": 21252, + "median_flow_px": [ + 1.0, + 1.0 + ] + }, + { + "source_frame": 41, + "previous_frame": 40, + "decoded_rgb_sha256": "425ffafb4aa87098445680bec84cf160820ed9dfdf44b43ce674547579476d26", + "gray_sha256": "44ff10f809057ee6532325baf1a17c987765b59ce1697eba7d0d1cffab8e26ad", + "previous_gray_sha256": "08a82b1955ca47ae15ac31d9a81f8bc16384e300529266a48b4c519b20a8b102", + "flow_sha256": "699e7c99c8dc9375cb0939332839664acb272a7196ab572b584d7428a2236fbd", + "keypoint_count": 80, + "keypoints_sha256": "2edef3dd0acf7e00425de93ccbeedc325370ec29d291795d470de507ca884be4", + "descriptors_sha256": "8b16933afa88f714153326f3774944a64783f1d1d99a7cb51fd1482dbf966abf", + "valid_flow_pixels": 22987, + "invalid_flow_pixels": 4661, + "nonzero_flow_pixels": 22987, + "median_flow_px": [ + 0.0, + 2.0 + ] + }, + { + "source_frame": 43, + "previous_frame": 42, + "decoded_rgb_sha256": "7188493dee41b38f8d292a0ce9bdf1e26b2b1b358a0c899f0d1fbd7b703a1b8f", + "gray_sha256": "d6c4a977b873aaaf8d9cfd9742d7ac68d9be8f1c91a7a790f1264fbac8b412cc", + "previous_gray_sha256": "82bf6daf2317fa0aa3942b94279e00750467651eb6b43d93af55f347abb84b5c", + "flow_sha256": "66c268fa1bb5c8f096bdc31a203e2fc098f8cbc4c516ad31fab456099bb4e246", + "keypoint_count": 80, + "keypoints_sha256": "c9ed2047bc234e2f85ed341524ae73c4db9bc26495cbc598c4ec433265848adb", + "descriptors_sha256": "06d60c1dcae1eec03b5ee8b87318729e3808aa1dfedddc34db19d17a8deeeaac", + "valid_flow_pixels": 22349, + "invalid_flow_pixels": 5299, + "nonzero_flow_pixels": 22349, + "median_flow_px": [ + 1.0, + 1.0 + ] + }, + { + "source_frame": 45, + "previous_frame": 44, + "decoded_rgb_sha256": "57f36111ebf4e538ec93007824c643cd860f10afd597db7ad211e5c530e54afc", + "gray_sha256": "8ed6f6605981742aed3aafb2874b9f2d5442011ca571cc6040a1a496bab3f81b", + "previous_gray_sha256": "0777bf8a91dd8ac816ae886e65f2c7654d0a4471512d757a7c16f3e5b2178675", + "flow_sha256": "8cb765fc74f77329f3d3803bbbe6435d62464b7cc77d22848360fd6d73085703", + "keypoint_count": 80, + "keypoints_sha256": "2d07feed687725f7f2c12ae685e3f3e2a3bae42ddce66a92a1ef17c9a7ebf0f0", + "descriptors_sha256": "4b9b650837f840fd108663f8231fdf76d451633ba5a4936c9cfde6c7c76adb77", + "valid_flow_pixels": 22169, + "invalid_flow_pixels": 5479, + "nonzero_flow_pixels": 22169, + "median_flow_px": [ + 1.0, + 1.0 + ] + }, + { + "source_frame": 47, + "previous_frame": 46, + "decoded_rgb_sha256": "89c325ffda24f19583fac43fcba86fac57bf2dac9ceeb69bd9f1d71ef7341863", + "gray_sha256": "0323753171eff9df3c5b154aefb989264d8d88df8211c227deebdcedf0600cea", + "previous_gray_sha256": "e1474e0e0ff2a80210fcb42c20b558b358c6d7a3afd8e5fd6bf513933182ba61", + "flow_sha256": "3f9fe92d93be554342bcf9cf4e196f90abef5dcb066b405d6103f124a9797557", + "keypoint_count": 80, + "keypoints_sha256": "9df0d474ed6eb5a52466acd83287428ea98df6e5ee567c930c14e68c3e7b08ad", + "descriptors_sha256": "b06e0740edb2e9b588915194e7bee865f0bdcbc8bc9bf566f47b08a9aeb8c61f", + "valid_flow_pixels": 22337, + "invalid_flow_pixels": 5311, + "nonzero_flow_pixels": 22337, + "median_flow_px": [ + 0.0, + 1.0 + ] + }, + { + "source_frame": 49, + "previous_frame": 48, + "decoded_rgb_sha256": "e1b6f2d059caed5c8b009f166ba6261811fe17e511f38449100d8b57a48483de", + "gray_sha256": "a59840d9a81d950049ca3de716e7f58ccc6fca7fd4adde6799f9574347d6f970", + "previous_gray_sha256": "6ab6f5b1f6ef8454b2cdc99fffcd0ffe2ad60ec1608a0cc8cd0ed4a559471559", + "flow_sha256": "cc3d12aa93c84aed62b6e109555c375e22068b2f1d4057b9dfce8c0e5ddae7da", + "keypoint_count": 80, + "keypoints_sha256": "dbf681330d0a1cba9586308536694fc6e77ff65093e0778f8bbb7698639f17eb", + "descriptors_sha256": "dad28334b8cf1445d853ef477a5cd0807cfc8bd9fd243cd712d60b72e21fd11c", + "valid_flow_pixels": 16865, + "invalid_flow_pixels": 10783, + "nonzero_flow_pixels": 16865, + "median_flow_px": [ + 0.0, + 0.0 + ] + }, + { + "source_frame": 51, + "previous_frame": 50, + "decoded_rgb_sha256": "d5def07051db085e663c26745a6339fcf2c17c4f0d113c1faefc0345bf167bf4", + "gray_sha256": "ec04d6bce6d29c11879718553e14f89539b670ecb61c42d39a2d09971e467365", + "previous_gray_sha256": "86417aa84a5bd76bbd862a27a1726f9cb148e567304c11942ae3e4007e04c3fd", + "flow_sha256": "d26a9c7be595cb7cf4e8f1133df30426c5b0250377faaff79214f293eb0bd320", + "keypoint_count": 80, + "keypoints_sha256": "b1f774e7be169b26bef45a06cf1cb1da3600ec8b977a52b96ef2e80a6f882be7", + "descriptors_sha256": "6e460a26244cce75135db3851a16561403b7453d77b523aba36a541c00ebef18", + "valid_flow_pixels": 20976, + "invalid_flow_pixels": 6672, + "nonzero_flow_pixels": 20976, + "median_flow_px": [ + 1.0, + -1.0 + ] + }, + { + "source_frame": 53, + "previous_frame": 52, + "decoded_rgb_sha256": "8f04ce08b903368548ad582485fd5574ae1ab7bbd8d852c6e199284ba7acb060", + "gray_sha256": "677db30f45ad15b5956b9bd8023bf1b6d94fe8a454194fae915168197fd4c5a5", + "previous_gray_sha256": "496d5068bc682811b734e05064a739fa5cbd2353f8863053fa661e43954bc878", + "flow_sha256": "1daed6698d5466d1708dec43ce62639cc34377f0ea4ab19a9260134daff0371a", + "keypoint_count": 80, + "keypoints_sha256": "b3eceb418be47f5010926d45c772e20e56e8aac17b836ff44da79737d42283a2", + "descriptors_sha256": "99f0de5d089b25826cdd41defa117a3427e09e0fc22aa1219a101012708b1685", + "valid_flow_pixels": 19862, + "invalid_flow_pixels": 7786, + "nonzero_flow_pixels": 19862, + "median_flow_px": [ + 1.0, + 1.0 + ] + }, + { + "source_frame": 55, + "previous_frame": 54, + "decoded_rgb_sha256": "eb773a507c3bf1fdcaa43447d339b91bc355aa781d07c3b8bd7c9b6212ed5e86", + "gray_sha256": "d6b10b19b5c771cd1d7ae61307bb149a9b95e4fba5993ab0b7215f16a3cbf03a", + "previous_gray_sha256": "d164410a584ff4fae620f864c260e91a86cab162fd0b180ff08c8858d3954361", + "flow_sha256": "7d13ef59938385426e0600912e1c91dfec93dcec4f745d890a7fc661cf76d6c2", + "keypoint_count": 80, + "keypoints_sha256": "18275f9adeef52597c9b50d47e96999732bb309533d45af4459269c09e680098", + "descriptors_sha256": "4cc0a8135ab92a80d5a66d1fd6c66daafcfe53e0b59efced8424248d1624c89b", + "valid_flow_pixels": 22562, + "invalid_flow_pixels": 5086, + "nonzero_flow_pixels": 22562, + "median_flow_px": [ + 0.0, + 2.0 + ] + }, + { + "source_frame": 57, + "previous_frame": 56, + "decoded_rgb_sha256": "bba86ae688969c3129f1ef80e45f9626e64a0c403c679e11a4e813355eb98536", + "gray_sha256": "43338c8e50a526b0009fb4965bd4e6490c1206b80d06d640bae3ee5e0d3ef2ca", + "previous_gray_sha256": "bb73a6b1047af38c3977dd01eeeacfa621ce70715f2ba7d7fa495d475bfc87b5", + "flow_sha256": "bfd3c0cb306f3a51c443ee5cb323fbe0d50667cca11f980be558e92b2f3c0e97", + "keypoint_count": 80, + "keypoints_sha256": "a36e6b0a5cf903ada2970e00d020dd5ee0fd31c57ef83066b9862ed651502313", + "descriptors_sha256": "ee993d4e951012c9f596da5300869ad191e895ffc513a4d21ec6a8a836c62bcd", + "valid_flow_pixels": 23354, + "invalid_flow_pixels": 4294, + "nonzero_flow_pixels": 23354, + "median_flow_px": [ + -1.0, + 1.0 + ] + }, + { + "source_frame": 59, + "previous_frame": 58, + "decoded_rgb_sha256": "e28282c088a1e805b5d2f8586ee83729883444188caed092ee25aefb41b3a817", + "gray_sha256": "b0d3ce11a134d2d977402bfe63539091a184e073e7d007114b5b0209f3d6a647", + "previous_gray_sha256": "b5f9036a0b8d753a584d20e8ee2cccee19a3c16b6e91db5bf83ad6551a3ee610", + "flow_sha256": "10e048b77ef388f5de8826a3962474f2d8c4f37f5845aa70622d4929a85f0426", + "keypoint_count": 80, + "keypoints_sha256": "ee30301a5ac79f4c210230a0ec3a92d3c3a67621d03bba0dd8735b40a302f612", + "descriptors_sha256": "debbb77bef37e624d0f26efdf7126818149ed6011aa1386e191b9f9b598c6978", + "valid_flow_pixels": 23441, + "invalid_flow_pixels": 4207, + "nonzero_flow_pixels": 23441, + "median_flow_px": [ + -1.0, + 2.0 + ] + }, + { + "source_frame": 61, + "previous_frame": 60, + "decoded_rgb_sha256": "079ca129cbe0660d82fc0e66259b8e05ada08782303bee746e33368fe71cc9ae", + "gray_sha256": "48d3cdd6d19840369bfa8987713f5842750f49da1a08458408843ee90a2f970d", + "previous_gray_sha256": "39886ec02495aa4231e5094a65a663974e8a63536325408fbb10c48ecec5c71f", + "flow_sha256": "c26dd7823515a566764c1146f816c99fdb5c24450a1541d6d3c63d07b76a0225", + "keypoint_count": 80, + "keypoints_sha256": "073aa9dd0dbba2b14f2cf26da127030585efdb7b19c3a05f77e3b758d9f2d9f3", + "descriptors_sha256": "eb5b12330cfe1aad53af4e8663cf21c4e2a7550be50c7240f8afcb7d107b9c0f", + "valid_flow_pixels": 23149, + "invalid_flow_pixels": 4499, + "nonzero_flow_pixels": 23149, + "median_flow_px": [ + -1.0, + 2.0 + ] + }, + { + "source_frame": 63, + "previous_frame": 62, + "decoded_rgb_sha256": "587cf6caa028908e0624662839e3779b3a7a5bbba587b4197ac767d06af424e3", + "gray_sha256": "fb588a77249bc36b507a533c47fd2be221c709b9b456e3380a94690984c7e633", + "previous_gray_sha256": "05a6382d80231818fe908e559d660d8b25ca25318b3ec2033f4df3fe9d2dd9f0", + "flow_sha256": "e0199776df088908f4c2b019a2d9d749c85ef7acad28a254ac3105c424ca067c", + "keypoint_count": 80, + "keypoints_sha256": "94035b03182b2aa020a0a1f2c623a2697aa9867d0bbf83351f42570ead7573ea", + "descriptors_sha256": "132b00d91b1420105ac086a4b5f84e8a6753d20192602aa11317da10be97bb18", + "valid_flow_pixels": 23150, + "invalid_flow_pixels": 4498, + "nonzero_flow_pixels": 23150, + "median_flow_px": [ + -1.0, + 1.0 + ] + } + ] + }, + "claims": "Actual Rust outputs on real public scan and recorded camera frames. Orbit and stage switching are presentation effects; movie playback is slowed. No synthetic motion, GPU speed, metric pose or SLAM accuracy claim." } diff --git a/docs/assets/real_dense_flow.gif b/docs/assets/real_dense_flow.gif new file mode 100644 index 0000000..9f2c57e Binary files /dev/null and b/docs/assets/real_dense_flow.gif differ diff --git a/docs/assets/real_orb_features.gif b/docs/assets/real_orb_features.gif new file mode 100644 index 0000000..e13ac12 Binary files /dev/null and b/docs/assets/real_orb_features.gif differ diff --git a/docs/assets/spatial_slice.gif b/docs/assets/spatial_slice.gif deleted file mode 100644 index 3528caf..0000000 Binary files a/docs/assets/spatial_slice.gif and /dev/null differ diff --git a/docs/assets/tracking_flow.gif b/docs/assets/tracking_flow.gif deleted file mode 100644 index 7f6118d..0000000 Binary files a/docs/assets/tracking_flow.gif and /dev/null differ diff --git a/scripts/readme_real_video.py b/scripts/readme_real_video.py new file mode 100644 index 0000000..9370ea1 --- /dev/null +++ b/scripts/readme_real_video.py @@ -0,0 +1,109 @@ +"""Actual Rust ORB and dense flow on a bounded, pinned TUM camera recording. + +OpenCV only decodes the AVI. All feature extraction and flow are SpatialRust. +No synthesized images, camera transforms, interpolated frames or fitted arrows. +""" +import hashlib +from pathlib import Path + +import numpy as np +from PIL import Image, ImageDraw + +URL = "https://webshare.cvg.cit.tum.de/g/rgbd/dataset/freiburg1/rgbd_dataset_freiburg1_xyz-rgb.avi" +VIDEO_SHA256 = "1820b52939af2a2e7afdf78f6398cfbc7816399c8809b3836a9ba8da9bef8022" +VIDEO_BYTES = 8_059_298 + + +def digest(raw): + return hashlib.sha256(raw).hexdigest() + + +def render_video(video, output, faces, style): + import cv2 + import spatialrust as sr + + if video.stat().st_size != VIDEO_BYTES or digest(video.read_bytes()) != VIDEO_SHA256: + raise ValueError("require the pinned TUM freiburg1_xyz RGB movie") + capture = cv2.VideoCapture(str(video)) + if not capture.isOpened(): + raise ValueError("cannot decode pinned movie") + feature_frames, flow_frames, records = [], [], [] + previous = None + try: + if capture.get(cv2.CAP_PROP_FPS) != 30: + raise ValueError("unexpected source movie frame rate") + for index in range(64): + ok, bgr = capture.read() + if not ok or bgr.shape != (480, 640, 3): + raise ValueError("expected 64 consecutive original camera frames") + rgb = Image.fromarray(np.ascontiguousarray(bgr[:, :, ::-1])) + reduced = rgb.resize((192, 144), Image.Resampling.BOX) + gray = np.array(reduced.convert("L")) + flow = None if previous is None else sr.dense_flow_image( + previous, gray, block_radius=2, search_radius=3) + if flow is not None: + if flow.shape != (144, 192, 2): + raise ValueError("invalid actual Rust flow geometry") + valid = np.isfinite(flow).all(axis=2) + if not valid.any() or np.abs(flow[valid]).max() > 3: + raise ValueError("invalid actual Rust flow range") + if index % 2 == 1: + keypoints, descriptors = sr.orb_features(gray, max_features=80) + points = [[float(k.x), float(k.y)] for k in keypoints] + if not points or descriptors.shape != (len(points), 32): + raise ValueError("invalid actual Rust ORB result") + records.append(dict(source_frame=index, previous_frame=index-1, + decoded_rgb_sha256=digest(np.asarray(rgb).tobytes()), + gray_sha256=digest(gray.tobytes()), + previous_gray_sha256=digest(previous.tobytes()), + flow_sha256=digest(flow.astype(" {index:02} / pixels" + style.text(draw, (22, 316), detail, faces[14], style.MINT) + style.text(draw, (22, 338), "TUM RGB-D / fr1_xyz / CC BY 4.0 / CPU", faces[12], style.MUTED) + frames.append(image) + previous = gray + finally: + capture.release() + style.save_gif(output / "real_orb_features.gif", feature_frames, 125, photographic=True) + style.save_gif(output / "real_dense_flow.gif", flow_frames, 125, photographic=True) + return dict(schema="spatialrust.readme-real-video.v1", url=URL, + bytes=VIDEO_BYTES, sha256=VIDEO_SHA256, license="CC BY 4.0", + attribution="J. Sturm, N. Engelhard, F. Endres, W. Burgard, D. Cremers. A Benchmark for the Evaluation of RGB-D SLAM Systems. IROS 2012.", + license_source="https://cvg.cit.tum.de/data/datasets/rgbd-dataset#license", + source_fps=30, decoded_frames=64, processed_adjacent_pairs=63, + rendered_source_frames=list(range(1, 64, 2)), width=192, height=144, + frame_duration_ms=125, decoder="OpenCV "+cv2.__version__, + processing="SpatialRust CPU orb_features and dense_flow_image; no OpenCV vision algorithms", + flow_controls=dict(block_radius=2, search_radius=3), + note="Raw integer block matches, no confidence filtering or object identities. Non-finite pixels (including unsupported borders) are counted and never drawn. ORB detections are independent per frame. Playback is slowed; frame numbers identify original movie frames. AVI timing is not a calibrated sensor clock.", + renderer_sha256=digest(Path(__file__).read_bytes()), frames=records) diff --git a/scripts/render_readme_heroes.py b/scripts/render_readme_heroes.py index 0ad5fa3..e32e76e 100644 --- a/scripts/render_readme_heroes.py +++ b/scripts/render_readme_heroes.py @@ -1,7 +1,7 @@ """Render README animations from SpatialRust results; no downloads or GPU claims. Requires the SpatialRust Python extension, NumPy and Pillow. Supply the public -PCL table_scene_lms400.pcd and reports from readme_tracking_data.mjs explicitly. +PCL table_scene_lms400.pcd and the pinned real TUM RGB movie explicitly. Only the nine opening GIFs and a small provenance receipt are written to --output. Frames are encoded in memory, without a temporary image sequence on disk. """ @@ -11,6 +11,7 @@ import hashlib import json import math +import sys from pathlib import Path import numpy as np @@ -24,8 +25,8 @@ MINT = "#79f2bd" ORANGE = "#ffbb79" COLORS = [CYAN, ORANGE, MINT, "#bd9bff", "#ff89b1", "#fae17a"] -NAMES = ("readme_hero.gif", "clusters_rotating.gif", "voxelize_rotating.gif", "camera_tracking.gif", - "scan_reveal.gif", "voxel_filter.gif", "plane_segmentation.gif", "spatial_slice.gif", "tracking_flow.gif") +NAMES = ("readme_hero.gif", "clusters_rotating.gif", "voxelize_rotating.gif", "real_orb_features.gif", + "scan_reveal.gif", "voxel_filter.gif", "plane_segmentation.gif", "plane_removal.gif", "real_dense_flow.gif") MAX_GIF_BYTES = 1_500_000 MAX_TOTAL_BYTES = 3_000_000 @@ -98,7 +99,7 @@ def card(accent=CYAN): def gallery(output, xyz, small, plane, outliers, faces): - """Visualize saved Rust outputs; sweep and orbit are presentation effects.""" + """Visualize actual Rust output membership; orbit is a presentation effect.""" bounds = np.array([xyz.min(axis=0), xyz.max(axis=0)]) zmin, zmax = bounds[:, 2] depth = ((xyz[:, 2] - zmin) / max(zmax-zmin, 1e-9)).clip(0, 1) @@ -107,7 +108,7 @@ def gallery(output, xyz, small, plane, outliers, faces): (NAMES[4], "01 / CAPTURE", "A scene, in points", f"{len(xyz):,} public scan samples", CYAN), (NAMES[5], "02 / SIMPLIFY", "Keep the structure", f"{len(xyz):,} points > {len(small):,} centroids", MINT), (NAMES[6], "03 / SEGMENT", "Find the surface", f"{len(plane):,} RANSAC plane inliers", ORANGE), - (NAMES[7], "06 / EXPLORE", "Look inside the scan", "Depth slice / geometric illustration", "#bd9bff"), + (NAMES[7], "06 / REMOVE PLANE", "Keep the objects", f"{len(small):,} centroids > {len(outliers):,} outliers", "#bd9bff"), ] for name, eyebrow, title, detail, accent in entries: frames=[] @@ -123,10 +124,8 @@ def gallery(output, xyz, small, plane, outliers, faces): pts=np.concatenate((plane,outliers)) colors=[CYAN]*len(plane)+[ORANGE]*len(outliers) else: - center=.5+.38*math.sin(phase) - selected=np.abs(depth-center)<.12 - pts=xyz[selected] - colors=[depth_colors[j] for j in np.flatnonzero(selected)] + pts=small if i<16 else outliers + colors=CYAN if i<16 else ORANGE image=card(accent) image.paste(cloud_view(pts,colors,(424,211),phase,1 if len(pts)>10000 else 2,bounds=bounds),(20,76)) d=ImageDraw.Draw(image) @@ -137,6 +136,8 @@ def gallery(output, xyz, small, plane, outliers, faces): pill(d,(296,76),"INPUT" if i<16 else "FILTERED",faces[12],colors) elif name==NAMES[6]: pill(d,(22,76),"PLANE + OBJECTS",faces[12],ORANGE) + elif name==NAMES[7]: + pill(d,(296,76),"INPUT" if i<16 else "PLANE OUT",faces[12],colors) for j in range(32): d.rectangle((22+j*13,333,31+j*13,335),fill=accent if j<=i else PANEL) frames.append(image) @@ -153,8 +154,15 @@ def palette(): return p -def save_gif(path, frames, duration): +def save_gif(path, frames, duration, photographic=False): p = palette() + if photographic: + # One shared palette learned from the complete real clip, never one + # independently chosen palette per frame. Preserve natural image tones. + sample = Image.new("RGB", (128, 96 * len(frames))) + for index, frame in enumerate(frames): + sample.paste(frame.resize((128, 96)), (0, index * 96)) + p = sample.quantize(colors=128, method=Image.Quantize.MEDIANCUT) indexed = [im.quantize(palette=p, dither=Image.Dither.NONE) for im in frames] indexed[0].save(path, save_all=True, append_images=indexed[1:], duration=duration, loop=0, optimize=False, disposal=1) @@ -162,18 +170,10 @@ def save_gif(path, frames, duration): raise ValueError(f"GIF exceeds {MAX_GIF_BYTES} bytes: {path.name}") -def texture(width, height, shift): - yy, xx = np.indices((height, width), dtype=np.uint32) - sx = xx + np.uint32(32 - shift[0]) - sy = yy + np.uint32(32 - shift[1]) - h = (sx * np.uint32(73856093)) ^ (sy * np.uint32(19349663)) - return (np.where(((sx >> 4) + (sy >> 4)) % 2, 125, 35) + ((h ^ (h >> 13)) & 31)).astype(np.uint8) - - def main(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--input", type=Path, required=True) - parser.add_argument("--tracking", type=Path, required=True) + parser.add_argument("--video", type=Path, required=True) parser.add_argument("--font", type=Path, required=True, help="TrueType/OpenType sans font") parser.add_argument("--output", type=Path, required=True) args = parser.parse_args() @@ -261,77 +261,28 @@ def main(): save_gif(args.output / name, frames, 150) gallery(args.output, xyz, small, plane, outliers, faces) - tracking = json.loads(args.tracking.read_text(encoding="utf-8")) - if tracking["schema"] != "spatialrust.readme-tracking.v1" or not tracking["synthetic_only"] or tracking["ai_enabled"]: - raise ValueError("expected synthetic unmasked actual-WASM reports") - frames = [] - for f in tracking["frames"]: - gray = texture(tracking["width"], tracking["height"], f["shift"]) - if hashlib.sha256(gray.tobytes()).hexdigest() != f["gray_sha256"]: - raise ValueError("rendered image differs from actual WASM input") - rgb = np.stack((gray // 3, (gray.astype(np.uint16) * 1.1).clip(0, 255).astype(np.uint8), gray), axis=-1) - scene = Image.fromarray(rgb).resize((384, 288), Image.Resampling.NEAREST) - image = Image.new("RGB", (464, 400), BG) - image.paste(scene, (40, 64)) - d = ImageDraw.Draw(image) - text(d, (22, 16), "Track image motion", faces[24]) - for t in f["report"]["tracks"]: - a = (40 + t["from"][0] * 1.5, 64 + t["from"][1] * 1.5) - b = (40 + t["to"][0] * 1.5, 64 + t["to"][1] * 1.5) - d.line((a, b), fill=MINT, width=2) - d.ellipse((b[0]-2, b[1]-2, b[0]+2, b[1]+2), fill=INK) - text(d, (22, 363), f"{len(f['report']['tracks']):02d} tracks / Rust + WASM", faces[14], MINT) - flow = f["report"]["background_flow_px"] - if flow is not None: - text(d, (282, 363), f"dx {flow[0]:+.1f} px", faces[14], MUTED) - pill(d, (282, 18), "SYNTHETIC / AI OFF", faces[12], ORANGE) - frames.append(image) - save_gif(args.output / NAMES[3], frames, tracking["frame_duration_ms"]) - - frames = [] - for f in tracking["frames"][1:]: - image=card(MINT) - d=ImageDraw.Draw(image) - text(d,(22,12),"08 / MEASURE",faces[12],MINT) - text(d,(20,32),"Follow the flow",faces[24]) - # Arrows are magnified only for readability; numeric labels stay in px. - for t in f["report"]["tracks"]: - a=np.array([40+t["from"][0]*1.5,78+t["from"][1]*1.02]) - delta=(np.asarray(t["to"])-np.asarray(t["from"]))*7 - b=a+delta - d.line((tuple(a),tuple(b)),fill=CYAN,width=2) - d.ellipse((a[0]-2,a[1]-2,a[0]+2,a[1]+2),fill=MINT) - norm=np.linalg.norm(delta) - if norm>1e-6: - u=delta/norm;v=np.array([-u[1],u[0]]) - d.polygon([tuple(b),tuple(b-u*6+v*3),tuple(b-u*6-v*3)],fill=MINT) - flow=f["report"]["background_flow_px"] - pill(d,(310,38),f"{len(f['report']['tracks'])} TRACKS",faces[12],MINT) - value="Initializing" if flow is None else f"dx {flow[0]:+.2f} / dy {flow[1]:+.2f} px" - text(d,(32,300),value,faces[14],MINT) - text(d,(22,272),"ACTUAL WASM / SYNTHETIC INPUT / ARROWS x7",faces[12],MUTED) - frames.append(image) - save_gif(args.output/NAMES[8],frames,tracking["frame_duration_ms"]) + from readme_real_video import render_video + video_receipt = render_video(args.video, args.output, faces, sys.modules[__name__]) assets = [{"path": name, "bytes": (args.output/name).stat().st_size, "sha256": sha(args.output/name)} for name in NAMES] if sum(a["bytes"] for a in assets) > MAX_TOTAL_BYTES: raise ValueError("hero group exceeds 3 MB budget") extensions = list(Path(sr.__file__).parent.glob("*.pyd")) + list(Path(sr.__file__).parent.glob("*.so")) - receipt = dict(schema="spatialrust.readme-heroes.v1", assets=assets, + receipt = dict(schema="spatialrust.readme-heroes.v2", assets=assets, public_input=dict(file=args.input.name, sha256=sha(args.input), points=len(source), sampled_points=len(xyz)), - execution="SpatialRust Python bindings (voxel policy cpu); CPU Rust/WASM camera tracker", + execution="SpatialRust Python bindings (voxel policy cpu); CPU Rust ORB and dense flow on real recorded frames", spatialrust_version=sr.__version__, resolved_policies=policies, python_extension_sha256=sha(extensions[0]) if len(extensions) == 1 else None, generator_sha256=sha(__file__), - tracking_generator_sha256=sha(Path(__file__).with_name("readme_tracking_data.mjs")), + video_renderer_sha256=sha(Path(__file__).with_name("readme_real_video.py")), numpy_version=np.__version__, pillow_version=pillow_version, font_sha256=sha(args.font), pipeline=dict(voxel_leaf_m=.03, plane_distance_m=.025, cluster_tolerance_m=.06, min_cluster_size=8, downsampled_points=len(small), plane_inliers=len(plane), cluster_count=result.cluster_count, occupancy_cell_m=.08, occupied_cells=len(centers)), - tracking_wasm_sha256=tracking["wasm_sha256"], tracking_frames=len(tracking["frames"]), - claims="Illustrations of actual outputs; orbit, depth sweep and stage switching are presentation effects, not processing latency. Synthetic tracking has AI disabled; flow arrows are magnified x7.") + real_video=video_receipt, + claims="Actual Rust outputs on real public scan and recorded camera frames. Orbit and stage switching are presentation effects; movie playback is slowed. No synthetic motion, GPU speed, metric pose or SLAM accuracy claim.") (args.output / "readme_heroes.json").write_text(json.dumps(receipt, indent=2) + "\n", encoding="utf-8") print(json.dumps(receipt, indent=2)) diff --git a/scripts/test_camera_demo.cjs b/scripts/test_camera_demo.cjs index a28e4c4..72b125f 100644 --- a/scripts/test_camera_demo.cjs +++ b/scripts/test_camera_demo.cjs @@ -629,9 +629,13 @@ async function intrinsicRotation(context, origin, longEdge = 256, historyLimit = await page.evaluate(() => { window.__holdNextCapture = true; }); await page.waitForFunction(() => typeof window.__releaseCapture === "function"); const portraitFrames = await frameCount(page); - const submitted = await page.evaluate(() => window.__submittedFrameSequence); - await page.evaluate(() => { window.__syntheticCamera.width = 320;window.__syntheticCamera.height = 240; }); - await page.waitForFunction(() => document.querySelector("video").videoWidth === 320); + const submitted = await page.evaluate(() => { + const sequence = window.__submittedFrameSequence; + window.__syntheticCamera.width = 320;window.__syntheticCamera.height = 240; + return sequence; + }); + // Both intrinsic dimensions must reach the target before releasing capture. + await page.waitForFunction(() => document.querySelector("video").videoWidth === 320 && document.querySelector("video").videoHeight === 240); await page.evaluate(() => { const release = window.__releaseCapture;delete window.__releaseCapture;release(); }); await waitFrames(page, portraitFrames + 2); const history = await page.evaluate((n) => ({ cursor: n, sequence: window.__submittedFrameSequence, retained: window.__submittedFrames.slice(), after: window.__submittedFrames.filter((f) => f.sequence > n), width: document.querySelector("#overlay").width, height: document.querySelector("#overlay").height }), submitted);