{"id":20191405,"url":"https://github.com/htfy96/dollar","last_synced_at":"2025-10-12T14:08:58.920Z","repository":{"id":209477887,"uuid":"723977175","full_name":"htfy96/dollar","owner":"htfy96","description":"Modern C++ implementation of $1 Unistroke Recognizer","archived":false,"fork":false,"pushed_at":"2024-04-09T02:27:28.000Z","size":4107,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T14:07:03.022Z","etag":null,"topics":["cpp","cpp17","gesture-recognition","unistroke"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/htfy96.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-11-27T06:28:06.000Z","updated_at":"2023-11-27T15:39:56.000Z","dependencies_parsed_at":"2024-11-14T03:48:55.346Z","dependency_job_id":"edd37a7a-c4c7-4a0b-a8c3-21aca6a0c660","html_url":"https://github.com/htfy96/dollar","commit_stats":null,"previous_names":["htfy96/dollar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/htfy96/dollar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fdollar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fdollar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fdollar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fdollar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htfy96","download_url":"https://codeload.github.com/htfy96/dollar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htfy96%2Fdollar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011541,"owners_count":26084963,"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-10-12T02:00:06.719Z","response_time":53,"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":["cpp","cpp17","gesture-recognition","unistroke"],"created_at":"2024-11-14T03:48:45.310Z","updated_at":"2025-10-12T14:08:58.901Z","avatar_url":"https://github.com/htfy96.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# $1 Unistroke Recognizer\n\nThis repo implements [$1 Unistroke Recognizer](https://depts.washington.edu/acelab/proj/dollar/index.html), a fast and simple 1-stroke gesture recognizer. As demonstrated in the linked image, it could identify various shapes with 10 samples of each. Adding a new gesture also doesn't require full recomputation:\n\n![sample](https://depts.washington.edu/acelab/proj/dollar/unistrokes.gif)\n\nThis library implemented the Protractor optimization version of the original algorithm. The official gesture logs are included as part of the test data.\n\n## Usage\n\nThis library requires C++17 or higher C++ compiler. \n\nIf you use CMake, it's recommended to use [CPM](https://github.com/cpm-cmake/CPM.cmake) to add this project as a dependency:\n\n```\n# Replace 0.1 with the latest git vX tag\nCPMAddPackage(\"gh:htfy96/dollar#0.1\")\n\ntarget_link_libraries(your-program dollar)\n```\n\nAlternatively, you can copy all files under `include` and `src` and manually compile them as a library.\n\n### Interface\n```cpp\n#include \"dollar.hpp\"\ndollar::Stroke stroke1{{{0., 0.}, {0., 1.}, {1., 1.}}, dollar::Orientation::Sensitive};\ndollar::Stroke stroke2{{{0., 0.}, {1., 1.}, {1., 0.}}, dollar::Orientation::Sensitive};\nvector\u003cdollar::Stroke\u003e samples{stroke1, stroke2};\ndollar::Stroke testStroke{{{0., 0.}, {0., 0.9}, {0.02, 0.91}, {1., 1.}}, dollar::Orientation::Sensitive};\nauto [it, score] = dollar::recognize(testStroke, samples.begin(), samples.end());\nassert(it == samples.begin()); // returns stroke1\n```\n\n## Comparisons with other implementations\n\n- https://github.com/olwal/microdollar : microdollar provided a C-alike interface, while this project provides a modern interface\n\n## LICENSE\n\nApache 2.0\n\n## Credit\n\n\u003e - Jacob O. Wobbrock, University of Washington\n\u003e - Andrew D. Wilson, Microsoft Research\n\u003e - Yang Li, University of Washington†\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtfy96%2Fdollar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtfy96%2Fdollar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtfy96%2Fdollar/lists"}