{"id":17058865,"url":"https://github.com/donkeyteethux/abow","last_synced_at":"2025-09-18T17:44:57.587Z","repository":{"id":48401722,"uuid":"324097260","full_name":"donkeyteethUX/abow","owner":"donkeyteethUX","description":"Visual bag of words for fast image matching","archived":false,"fork":false,"pushed_at":"2023-04-27T05:14:29.000Z","size":32322,"stargazers_count":23,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T21:57:50.631Z","etag":null,"topics":["bag-of-words","computer-vision","slam"],"latest_commit_sha":null,"homepage":"https://docs.rs/abow/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donkeyteethUX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2020-12-24T07:41:07.000Z","updated_at":"2025-03-03T21:27:45.000Z","dependencies_parsed_at":"2025-04-12T18:02:06.300Z","dependency_job_id":null,"html_url":"https://github.com/donkeyteethUX/abow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/donkeyteethUX/abow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyteethUX%2Fabow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyteethUX%2Fabow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyteethUX%2Fabow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyteethUX%2Fabow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeyteethUX","download_url":"https://codeload.github.com/donkeyteethUX/abow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyteethUX%2Fabow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275805782,"owners_count":25531911,"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-09-18T02:00:09.552Z","response_time":77,"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":["bag-of-words","computer-vision","slam"],"created_at":"2024-10-14T10:31:22.504Z","updated_at":"2025-09-18T17:44:57.571Z","avatar_url":"https://github.com/donkeyteethUX.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Bag of Words\nA rust crate for converting collections of image feature descriptors into a \"Bag-of-Words\" representation for fast matching of images in localization / SLAM systems. Hierarchical k-means clustering is used to create a \"vocabulary\" of common visual features. The vocabulary can then be used to transform a new image or collection of image keypoint descriptors into a compact bag of words (bow) vector. Bow vectors can be matched very quickly to give a measure of image similarity.\n\n## Setup\nThis crate is primarily designed for use with user-provided keypoint descriptors. Currently, 32-bit binary descriptors are supported (ORB or BRIEF are popular examples). However this crate does provide convenience functions to compute ORB descriptors from images, using [opencv](https://github.com/opencv/opencv) and [opencv-rust](https://github.com/twistedfall/opencv-rust/).\n\nThese functions can be enabled or disabled using the feature flag \"opencv\". This feature is enabled by default, so if you don't want to use opencv, update your Cargo.toml with:\n```toml\nabow = {version = \"0.4\", default-features = false, features = [\"bincode\"]}\n```\nor if you also want to disable bincode serialization helpers:\n```toml\nabow = {version = \"0.4\", default-features = false}\n```\nOtherwise, you'll need to [install OpenCV](https://docs.opencv.org/master/d0/d3d/tutorial_general_install.html). Troubleshooting for opencv-rust binding issues is available at https://github.com/twistedfall/opencv-rust.\n\n## Executable Examples\nCreate a descriptor vocabulary from a set of images and save it:\n```console\nfoo@bar:~/repos/abow$ cargo run --release --example create-voc\n\nVocabulary = Vocabulary {\n    Word/Leaf Nodes: 3125,\n    Other Nodes: 780,\n    Levels: 5,\n    Branching Factor: 5,\n    Total Training Features: 131376,\n    Min Word Cluster Size: 1,\n    Max Word Cluster Size: 373,\n    Mean Word Cluster Size: 42,\n}\n```\nLoad a vocabulary, transform a sequence of images into BoW, and compute best matches between them:\n```console\nfoo@bar:~/repos/abow$ cargo run --release --example match\n\nTop 5 Matches for \"100.jpg\":\nMatch     | Score\n\"100.jpg\" | 1.0\n\"102.jpg\" | 0.4220034\n\"101.jpg\" | 0.4040035\n\"98.jpg\"  | 0.3740036\n\"99.jpg\"  | 0.37200385\n```\n\n## References\nAbow is inspired by the C++ visual BoW implemetations [DBoW2](https://github.com/dorian3d/DBoW2/) and [fbow](https://github.com/rmsalinas/fbow).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyteethux%2Fabow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeyteethux%2Fabow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyteethux%2Fabow/lists"}