{"id":37075229,"url":"https://github.com/manfredstoiber/stag-python","last_synced_at":"2026-01-14T08:51:06.306Z","repository":{"id":208219727,"uuid":"721099553","full_name":"ManfredStoiber/stag-python","owner":"ManfredStoiber","description":"Python Package for STag - A Stable, Occlusion-Resistant Fiducial Marker System","archived":false,"fork":false,"pushed_at":"2025-06-05T16:41:34.000Z","size":1792,"stargazers_count":26,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-27T23:36:03.653Z","etag":null,"topics":["aruco-markers","augmented-reality","camera-calibration","fiducial-markers","opencv","pose-estimation","python","robotics"],"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/ManfredStoiber.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}},"created_at":"2023-11-20T11:01:12.000Z","updated_at":"2025-11-17T03:14:10.000Z","dependencies_parsed_at":"2023-12-14T06:31:47.079Z","dependency_job_id":null,"html_url":"https://github.com/ManfredStoiber/stag-python","commit_stats":null,"previous_names":["manfredstoiber/stag-python"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ManfredStoiber/stag-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManfredStoiber%2Fstag-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManfredStoiber%2Fstag-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManfredStoiber%2Fstag-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManfredStoiber%2Fstag-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManfredStoiber","download_url":"https://codeload.github.com/ManfredStoiber/stag-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManfredStoiber%2Fstag-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414698,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["aruco-markers","augmented-reality","camera-calibration","fiducial-markers","opencv","pose-estimation","python","robotics"],"created_at":"2026-01-14T08:51:05.647Z","updated_at":"2026-01-14T08:51:06.295Z","avatar_url":"https://github.com/ManfredStoiber.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build and upload to PyPI](https://github.com/ManfredStoiber/stag-python/actions/workflows/python-publish.yml/badge.svg)](https://github.com/ManfredStoiber/stag-python/actions/workflows/python-publish.yml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/stag-python)\n![Pepy Total Downlods](https://img.shields.io/pepy/dt/stag-python)\n\n\n\n# Python Wrapper for [STag - A Stable, Occlusion-Resistant Fiducial Marker System](https://github.com/ManfredStoiber/stag)\n\n## 📊 Comparison Between Different Marker Systems:\n[\u003cimg src=\"https://github.com/ManfredStoiber/stag/assets/47210077/668ca457-33dd-4ce7-8b94-662c7a5bb4d9\" width=\"400\" height=\"200\" /\u003e](https://www.youtube.com/watch?v=vnHI3GzLVrY)\n\n## 📖 Usage\n### Installation\n`pip install stag-python`\n\n\n### Example\nNote: in this example cv2 is used for loading the image. To use cv2, you need to install opencv-python: `pip install opencv-python`\n```Python\nimport stag\nimport cv2\n\n# specify marker type\nlibraryHD = 21\n\n# load image\nimage = cv2.imread(\"example.jpg\")\n\n# detect markers\n(corners, ids, rejected_corners) = stag.detectMarkers(image, libraryHD)\n```\n\nFor a more comprehensive example refer to [example.py](https://github.com/ManfredStoiber/stag-python/blob/master/example/example.py)\n\n## 🏷 Markers\n\n- Markers can be downloaded here: [Drive](https://drive.google.com/drive/folders/0ByNTNYCAhWbIV1RqdU9vRnd2Vnc?resourcekey=0-9ipvecbezW8EWUva5GBQTQ\u0026usp=sharing)\n- Reference code for Marker Generator: [ref/marker_generator](https://github.com/ManfredStoiber/stag/tree/master/ref/marker_generator)\n\n## 🛠 Configuration\nFollowing parameters can be specified:\n- __`libraryHD`__:\n   - Sets the \"family\" or \"type\" of used STag markers\n      - Each library has a different amount of markers\n      - Only the markers of the chosen library will be detected\n   - The following HD libraries are possible:\n\n        | __HD__           | 11     | 13    | 15  | 17  | 19 | 21 | 23 |\n        |------------------|--------|-------|-----|-----|----|----|----|\n        | __Library Size__ | 22,309 | 2,884 | 766 | 157 | 38 | 12 | 6  |\n\n   - Specifies the used Hamming Distance, for further information refer to the [original paper](https://arxiv.org/abs/1707.06292)\n\n\n- __`errorCorrection`__:\n   - Sets the amount of error correction\n   - Has to be in range `0 \u003c= errorCorrection \u003c= (libraryHD-1)/2`\n   - For further information refer to the [original paper](https://arxiv.org/abs/1707.06292)\n\n## 📋 Build From Source\n0. __Install__ Prerequisites\n\n   [__CMake__ \u003e= 3.16](https://cmake.org/getting-started/)\n   - On Linux: `apt install cmake`\n\n   [__OpenCV__ 4](https://opencv.org/get-started/) for C++\n   - On Linux: `apt install libopencv-dev`\n   \n   __NumPy__: `pip install numpy`\n     - On Linux: if during step 2 the error `\"numpy/ndarrayobject.h: No such file or directory\"` occurs, try one of following solutions:\n         - Run `apt install python-numpy` or\n         - Search for \"ndarrayobject.h\" (`find / -name ndarrayobject.h`) and create a symlink from its parent directory to \"/usr/include/numpy\" (e.g. `ln -s /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy /usr/include/numpy`)\n1. __Clone__ this repository recursively:\n   - `git clone --recursive https://github.com/ManfredStoiber/stag-python`\n2. __Build__ the project\n\n   In the project directory, run the following command:\n\n   - `pip install .`\n3. __Run__ the example\n    1. `cd example`\n    2. `python example.py`\n\n## 📰 Originally Published in the Following Paper:\n\n[B. Benligiray; C. Topal; C. Akinlar, \"STag: A Stable Fiducial Marker System,\" Image and Vision Computing, 2019.](https://arxiv.org/abs/1707.06292)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/19530665/57179654-c0c11e00-6e88-11e9-9ca5-0c0153b28c91.png\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/19530665/57179660-cae31c80-6e88-11e9-8f80-bf8e24e59957.png\"/\u003e\n\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanfredstoiber%2Fstag-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanfredstoiber%2Fstag-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanfredstoiber%2Fstag-python/lists"}