{"id":17222849,"url":"https://github.com/cheind/py-microdots","last_synced_at":"2026-03-09T03:30:54.476Z","repository":{"id":66174975,"uuid":"515093045","full_name":"cheind/py-microdots","owner":"cheind","description":"A modern Python library to work with Anoto dot patterns.","archived":false,"fork":false,"pushed_at":"2023-08-24T05:07:38.000Z","size":211,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-09-05T04:54:54.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/cheind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-18T08:15:33.000Z","updated_at":"2025-08-10T15:52:20.000Z","dependencies_parsed_at":"2025-04-14T00:18:36.482Z","dependency_job_id":"82ecb3e6-985b-422a-bc5d-ca294fbde9a1","html_url":"https://github.com/cheind/py-microdots","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cheind/py-microdots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fpy-microdots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fpy-microdots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fpy-microdots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fpy-microdots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheind","download_url":"https://codeload.github.com/cheind/py-microdots/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Fpy-microdots/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30281473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-15T04:06:30.997Z","updated_at":"2026-03-09T03:30:54.466Z","avatar_url":"https://github.com/cheind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/cheind/py-microdots/actions/workflows/python-package.yml/badge.svg) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7361722.svg)](https://doi.org/10.5281/zenodo.7361722)\n\n# py-microdots\n\nThis repository provides **py-microdots**, a Python library for encoding and decoding 2D locations based on the [Anoto](https://www.anoto.com/cases/anoto-digital-pen/) dot pattern approach.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"doc/anoto_pattern.svg\" width=\"80%\"\u003e\n\u003c/div\u003e\n\nThe Anoto grid pattern encodes a unique 2D position for every possible 6x6 sub-array of dots. Assuming a grid resolution of 0.3 mm, this coding remains unique over the area of Europe and Asia. For clarity, the dots are significantly scaled up and nominal grid lines are shown.\n\n## Paper / Cite\n\nThis implementation is based on my personal research on the Anoto coding. My findings are published in the following paper\n\n```\n@InProceedings{cheind2023microdots,\n  author=\"Heindl, Christoph\",\n  title=\"py-microdots: Position Encoding in the Euclidean Plane Based on the Anoto Codec\",\n  booktitle=\"Intelligent Computing. Computing Conference SAI\",\n  year=\"2023\",\n  publisher=\"Springer Nature Switzerland\",\n  pages=\"219--235\",\n  isbn=\"978-3-031-37963-5\"\n}\n```\n\nA pre-print of the report is available [here](https://zenodo.org/record/7361722).\n\n## Features\n\n**py-microdots** offers the following features\n\n-   Decoding of position coordinates, section coordinates and pattern rotations.\n-   Encoding support including section coordinates\n-   Drawing routines\n-   Generalized interface that supports tailored coding variants (e.g. 4x4 codes)\n\n## Scope\n\nThe focus of this library is depicted in the following diagram\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"doc/pymicrodots-scope.png\"\u003e\n\u003c/div\u003e\n\n**py-microdots** focuses on encoding and decoding of bit-matrices and does not come with image processing or plotting capabilites.\n\n## Example\n\n```python\n# Import the library\nimport microdots as mdots\n\n# Use the default embodiment with A4 sequence fixed (see paper)\ncodec = mdots.anoto_6x6_a4_fixed\n\n# Generate a bit-matrix for section (10,2)\nG = codec.encode_bitmatrix(shape=(9, 16), section=(10, 2))\n\n# Render dots\nimport matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\nmdots.draw_dots(G, grid_size=1.0, show_grid=True, ax=ax)\nfig.savefig(\"dots.pdf\")\nplt.close(fig)\n\n# Decode a partial matrix\nS = G[3 : 3 + 6, 7 : 7 + 6]\n\npos = codec.decode_position(S)\nsec = codec.decode_section(S, pos=pos)\n\n# To decode the rotation, use an extended matrix\nR = G[3 : 3 + 8, 7 : 7 + 8]\nrot = codec.decode_rotation(R)\nprint(\"pos:\", pos, \"sec:\", sec, \"rot:\", rot)\n# \u003e pos: (7, 3) sec: (10, 2) rot: 0\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheind%2Fpy-microdots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheind%2Fpy-microdots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheind%2Fpy-microdots/lists"}