{"id":16005316,"url":"https://github.com/henauxg/bitmaps_to_triangulation_data","last_synced_at":"2025-07-27T07:33:53.680Z","repository":{"id":249389297,"uuid":"822602986","full_name":"Henauxg/bitmaps_to_triangulation_data","owner":"Henauxg","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-20T10:58:00.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T02:13:20.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Henauxg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-01T13:08:33.000Z","updated_at":"2024-07-20T11:00:01.000Z","dependencies_parsed_at":"2024-07-20T13:12:12.971Z","dependency_job_id":null,"html_url":"https://github.com/Henauxg/bitmaps_to_triangulation_data","commit_stats":null,"previous_names":["henauxg/bitmaps_to_triangulation_data"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Henauxg/bitmaps_to_triangulation_data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henauxg%2Fbitmaps_to_triangulation_data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henauxg%2Fbitmaps_to_triangulation_data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henauxg%2Fbitmaps_to_triangulation_data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henauxg%2Fbitmaps_to_triangulation_data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Henauxg","download_url":"https://codeload.github.com/Henauxg/bitmaps_to_triangulation_data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Henauxg%2Fbitmaps_to_triangulation_data/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267324369,"owners_count":24069384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T11:03:52.588Z","updated_at":"2025-07-27T07:33:53.626Z","avatar_url":"https://github.com/Henauxg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Bitmaps to contour edges \u0026 vertices\n\nThis repository contains the tool used to produce the edges \u0026 vertices data for the \"Bad Apple\" example in https://github.com/Henauxg/ghx_constrained_delaunay.\n\nSee a video result here: https://www.youtube.com/watch?v=TrfDkD_PprQ\n\nYou can find serialized datasets produced by this tool in https://github.com/Henauxg/cdt_assets\n\n### Usage\n\nTo reproduce:\n- Take an input video\n- Extract each frame of the video to a bitmap file, using [ffmpeg](https://www.ffmpeg.org/) (or any other similar tool):\n  - `ffmpeg.exe -i 'video_file' .\\frames\\%05d.bmp`\n- Update `FRAMES_PATH` and `FRAMES_TO_PROCESS_RANGE` in `main.rs`\n- Run with `cargo run --release`\n- Output frames data will be in `frames.msgpack`\n\n### Process\n\nThis was made as a one-shot tool, code is not clean nor well organized.\n\nFor each greyscale bitmap image, it will:\n-  convert it to a black \u0026 white monochrome image\n-  detect the edges\n-  find multiple paths from the edges\n-  create domains from the paths\n-  hierarchize the domains (inclusion)\n-  find the paths/domains orientations\n-  from the oritentations/hierarchy, serialize the paths using [msgpack-rust](https://github.com/3Hren/msgpack-rust) as a `Vec` of\n    ```rust\n    pub struct Frame {\n        pub vertices: Vec\u003c(i32, i32)\u003e,\n        pub edges: Vec\u003c(usize, usize)\u003e,\n    }\n    ```\n\n### Notes\n\nAlthough it was only used and tested on some \"Bad Apple\" videos (https://www.youtube.com/watch?v=FBqz4WzE1sc and https://www.youtube.com/watch?v=FtutLA63Cp8), the tool should still work on any greyscale video, in any resolution.\n\n### License\n\nAll code in this repository is licensed under the MIT License ([LICENSE-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenauxg%2Fbitmaps_to_triangulation_data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenauxg%2Fbitmaps_to_triangulation_data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenauxg%2Fbitmaps_to_triangulation_data/lists"}