{"id":24292579,"url":"https://github.com/vertok/python-augmented-reality-framework","last_synced_at":"2026-06-06T10:31:50.370Z","repository":{"id":271601425,"uuid":"416262612","full_name":"vertok/Python-Augmented-Reality-Framework","owner":"vertok","description":"Augmented Reality Framework written in Python","archived":false,"fork":false,"pushed_at":"2021-10-14T09:05:43.000Z","size":404,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T05:15:34.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vertok.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":"2021-10-12T09:08:41.000Z","updated_at":"2021-10-14T09:05:45.000Z","dependencies_parsed_at":"2025-01-16T15:59:38.583Z","dependency_job_id":null,"html_url":"https://github.com/vertok/Python-Augmented-Reality-Framework","commit_stats":null,"previous_names":["vertok/python-augmented-reality-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vertok/Python-Augmented-Reality-Framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertok%2FPython-Augmented-Reality-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertok%2FPython-Augmented-Reality-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertok%2FPython-Augmented-Reality-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertok%2FPython-Augmented-Reality-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vertok","download_url":"https://codeload.github.com/vertok/Python-Augmented-Reality-Framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertok%2FPython-Augmented-Reality-Framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33979274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":[],"created_at":"2025-01-16T15:58:38.808Z","updated_at":"2026-06-06T10:31:50.325Z","avatar_url":"https://github.com/vertok.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Augmented Reality AR Framework written in Python\n\n### Abstract\n\nThis project was created during the last sommer 2021 semester as I took a Computer Vision class at my university with the main usage point: to use it as a practical part of my future Bachelor Thesis.\n\nAfter reading https://rdmilligan.wordpress.com/2015/10/15/augmented-reality-using-opencv-opengl-and-blender/ I was quite surprized how simple that could be. But since I wanted to use this technology from any smartphone there were necessary some improvements.\n\nThe whole idea of streaming OpenGL objects over a network was to grab its picture from the buffer right before it goes on the PC screen. After creating the OpenGL texture in init with **glTexImage2D** all further work with texture was done withing **glTexSubImage2D** in order to not overflow the GPU memory during the long usage of the programm. The part with AruCo marker detection was completely rewritten. Thanks to **Flask** web application framework the collected from buffer image of an OpenGL texture was send over the local network withing reading pixels using **glReadPixels** and then converting this JPEG image into a binary string that one can send to the browser via HTTP. \nFor more details how **Flask** manages this exercise please have a look at https://www.pyimagesearch.com/2019/09/02/opencv-stream-video-to-web-browser-html-page/\n\nThe video was recorded on Android smartphone during opening web browser with this stream on it one can see bellow:\n\nhttps://user-images.githubusercontent.com/34322911/136968398-6c6f96fb-5532-44a8-8261-29832a2a5bb5.mov\n\n\n\u003cbr /\u003e\n\n---\n\n### Installation\n\npython3 -m venv env\nsource env/bin/activate\npython3 -m pip install requests.txt\n\n-then please make sure you've installed DroidCam app on you smartphone (in order you want to use your smartphone camera) and change the IP adress in *WebcamVideoStream()* function to IP address from DroidCam app.\n-then you need to print Aruco markers from working directory (or you may simply open them on your device)\n\nand you are ready to go: just type in your console \n*python3 main_flask.py* \nand target your camera on the Aruco marker to see how it works. You will see on the screen the IP address\n\n![IP](https://user-images.githubusercontent.com/34322911/137124039-162ce23b-a3ab-4203-ba2e-f6b70e735321.jpg)\n\nwhich you could open from any device in your local network to see this streaming. (please make aware there were predefined only 2 markers DICT_4X4_50_id24 and DICT_4X4_50_id5! In case you want to try use other markers you need to make some changes in the code. Same as you want to use other 3d objects (.obj) -\u003e first predefine according to comments in the source code.\n\n\u003cbr /\u003e\n\n---\n\n### License\n\n[MIT] License\n\nCopyright (c) 2021 Alexey Obukhov\n\n\u003cbr /\u003e\n\n---\n\n### Contributing\n\nThanks for your attention and please don't hesitate to send me any advise, questions or possible improvements.\n\n[MIT]: https://github.com/vertok/Python-Augmented-Reality-Framework/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertok%2Fpython-augmented-reality-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvertok%2Fpython-augmented-reality-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertok%2Fpython-augmented-reality-framework/lists"}