{"id":19462609,"url":"https://github.com/webrtchacks/aiy_vision_web_server","last_synced_at":"2025-10-14T18:12:43.590Z","repository":{"id":66144816,"uuid":"122370398","full_name":"webrtcHacks/aiy_vision_web_server","owner":"webrtcHacks","description":"Show camera feed and annotations of the AIY Vision Kit in a webpage","archived":false,"fork":false,"pushed_at":"2019-11-04T20:54:27.000Z","size":36,"stargazers_count":44,"open_issues_count":5,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-25T08:42:48.835Z","etag":null,"topics":["aiy-vision-kit","raspberry-pi","uv4l"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webrtcHacks.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":"2018-02-21T17:39:59.000Z","updated_at":"2024-07-25T15:11:46.000Z","dependencies_parsed_at":"2023-02-22T01:16:27.537Z","dependency_job_id":null,"html_url":"https://github.com/webrtcHacks/aiy_vision_web_server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webrtcHacks/aiy_vision_web_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrtcHacks%2Faiy_vision_web_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrtcHacks%2Faiy_vision_web_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrtcHacks%2Faiy_vision_web_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrtcHacks%2Faiy_vision_web_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webrtcHacks","download_url":"https://codeload.github.com/webrtcHacks/aiy_vision_web_server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrtcHacks%2Faiy_vision_web_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020320,"owners_count":26086864,"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-14T02:00:06.444Z","response_time":60,"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":["aiy-vision-kit","raspberry-pi","uv4l"],"created_at":"2024-11-10T18:04:12.838Z","updated_at":"2025-10-14T18:12:43.573Z","avatar_url":"https://github.com/webrtcHacks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AIY Vision Kit Web Service\n\nDisplay the video feed and annotations of the [AIY Vision Kit](https://aiyprojects.withgoogle.com/vision) face detection or object detection models from \nthe PiCamera to any web page using [WebRTC](https://webrtc.org) and [UV4L](http://www.linux-projects.org/uv4l/).\n\nSee the [Part 2: Building a AIY Vision Kit Web Server with UV4L](https://webrtchacks.com/?p=2824\u0026) webrtcHacks post for more details.\n\n![example image](https://webrtchacks.com/wp-content/uploads/2018/02/face-detection-on-server.png)\n\n\n# Architecture\n\n![project architecture](https://webrtchacks.com/wp-content/uploads/2018/02/aiy-vision-server-architecture.png)\n\n## Installation\n\n1. [Buy](http://www.microcenter.com/site/content/google_aiy.aspx) a AIY Vision Kit\n1. Follow the Vision Kit [Assembly Guide](https://aiyprojects.withgoogle.com/vision#assembly-guide-1-get-the-vision-kit-sd-image) to build it\n1. Install UV4L (see the next section)\n1. Install git if you don't have it: `sudo apt-get install git`\n1. Clone the repo: `git clone https://github.com/webrtcHacks/aiy_vision_web_server.git`\n1. Go to the directory: `cd aiy_vision_web_server/`\n1. Install Python dependencies: `sudo python3 setup.py install`\n1. Turn the default Joy Detection demo off: `sudo systemctl stop joy_detection_demo.service`\n1. Run the server: `python3 server.py`\n1. Point your web browser to [http://raspberrypi.local:5000](http://raspberrypi.local:5000) or whatever you set your hostname or IP address to\n\n### UV4L Installation\n\n#### Raspberry Pi Zero\n``` \ncurl http://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -\necho \"deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main\" | sudo tee -a /etc/apt/sources.list\nsudo apt-get update\nsudo apt-get install -y uv4l uv4l-raspicam uv4l-raspicam-extras uv4l-webrtc-armv6 uv4l-raspidisp uv4l-raspidisp-extras\n```\n\n#### Raspberry Pi 2 and 3\n```\ncurl http://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -\necho \"deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main\" | sudo tee -a /etc/apt/sources.list\nsudo apt-get update\nsudo apt-get install -y uv4l uv4l-raspicam uv4l-raspicam-extras uv4l-webrtc uv4l-raspidisp uv4l-raspidisp-extras\n```\n\n## Command Line Options\n\nThey following options are available after `python server.py`:\n\n   Verbose switch | Short switch | Default | Description \n  ---|---|---|---\n  --model MODEL | -m MODEL | face | Sets the model to use: `face`,  `object`, or `class`\n  --cam-mode CAM_MODE | -c CAM_MODE | 5 | Sets the [Pi Camera Mode](https://www.raspberrypi.org/documentation/raspbian/applications/camera.md)\n  --framerate FRAMERATE | -f FRAMERATE | 15 | Sets the camera frame rate\n  --hres HRES | -hr HRES | 1280 |Sets the horizontal resolution\n  --vres VRES | -vr VRES | 720 |Sets the vertical resolution","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrtchacks%2Faiy_vision_web_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebrtchacks%2Faiy_vision_web_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrtchacks%2Faiy_vision_web_server/lists"}