{"id":23462563,"url":"https://github.com/dnanhkhoa/rust-background-removal","last_synced_at":"2025-04-14T06:55:09.977Z","repository":{"id":194658497,"uuid":"691118680","full_name":"dnanhkhoa/rust-background-removal","owner":"dnanhkhoa","description":"Remove backgrounds from images with ease","archived":false,"fork":false,"pushed_at":"2024-08-13T23:41:04.000Z","size":4748,"stargazers_count":46,"open_issues_count":1,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T06:55:01.473Z","etag":null,"topics":["background-removal","image-matting","image-processing","image-segmentation","onnx","onnxruntime","open-source","rust"],"latest_commit_sha":null,"homepage":"","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/dnanhkhoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-09-13T14:34:07.000Z","updated_at":"2025-04-12T17:35:35.000Z","dependencies_parsed_at":"2023-10-17T01:55:00.030Z","dependency_job_id":"20d323de-d500-4666-a190-410c0c52a25d","html_url":"https://github.com/dnanhkhoa/rust-background-removal","commit_stats":null,"previous_names":["dnanhkhoa/rust-background-removal"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Frust-background-removal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Frust-background-removal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Frust-background-removal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Frust-background-removal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnanhkhoa","download_url":"https://codeload.github.com/dnanhkhoa/rust-background-removal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837281,"owners_count":21169374,"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","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":["background-removal","image-matting","image-processing","image-segmentation","onnx","onnxruntime","open-source","rust"],"created_at":"2024-12-24T08:18:00.297Z","updated_at":"2025-04-14T06:55:09.943Z","avatar_url":"https://github.com/dnanhkhoa.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦀 Background Removal\n\n![Example](images/example.png)\n\nThis Rust implementation is a minimal port of the original JavaScript library [@imgly/background-removal](https://github.com/imgly/background-removal-js). It aims to explore **the use of ONNX models in Rust** for background removal tasks. If you're interested in the full capabilities and details of the background removal process, I highly recommend checking out the original JavaScript library's [README](https://github.com/imgly/background-removal-js) here.\n\n**Update:** For the technical details of the model, please check out the paper **Highly Accurate Dichotomous Image Segmentation** mentioned in [this repository](https://github.com/xuebinqin/DIS).\n\n## Usage\n\n```sh\n# Download all pretrained models\n./download_models.sh\n\n# Update variable input_img_file in src/main.rs\n\n# Run the program\ncargo run --release\n```\n\n## Limitations\n\nThe model resolution is limited to a maximum of 1024x1024 pixels.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Related sites\n\n[pykeio/ort: A Rust wrapper for ONNX Runtime](https://github.com/pykeio/ort)\n\n## Credits\n\nKhoa Duong, David Horner","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnanhkhoa%2Frust-background-removal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnanhkhoa%2Frust-background-removal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnanhkhoa%2Frust-background-removal/lists"}