{"id":19208029,"url":"https://github.com/ubuntu/face-detection-demo","last_synced_at":"2025-06-15T09:34:55.794Z","repository":{"id":57638244,"uuid":"65747101","full_name":"ubuntu/face-detection-demo","owner":"ubuntu","description":"Code for face detection demo snap","archived":false,"fork":false,"pushed_at":"2017-03-27T13:58:55.000Z","size":475,"stargazers_count":38,"open_issues_count":0,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-12T18:56:14.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ubuntu.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}},"created_at":"2016-08-15T16:26:06.000Z","updated_at":"2025-01-04T06:11:48.000Z","dependencies_parsed_at":"2022-09-19T03:51:48.276Z","dependency_job_id":null,"html_url":"https://github.com/ubuntu/face-detection-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ubuntu/face-detection-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubuntu%2Fface-detection-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubuntu%2Fface-detection-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubuntu%2Fface-detection-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubuntu%2Fface-detection-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubuntu","download_url":"https://codeload.github.com/ubuntu/face-detection-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubuntu%2Fface-detection-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259952457,"owners_count":22936956,"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","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-11-09T13:23:53.751Z","updated_at":"2025-06-15T09:34:55.773Z","avatar_url":"https://github.com/ubuntu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code and main assets for our face detection demo snap\n\nThe face detection demo snap enables people to show multiple faces of snaps. It comprehends:\n* a face-detection-service, which can:\n  * toggle on/off face detection (a webcam is required)\n  * collect stats over time and store it in a sqlite database\n  * serve via a webserver (on http://IP:8080) those results in a single page app, with graph history, last webcam screenshot, last image with detected faces circled (note that the html/css/javascript code is in another repo)\n  * use websocket to connect multiple clients, and refresh data to each web page without needing to reload it\n  * enable \"fun\" mode where detected faces circle are replaced by distribution logo attributed randomly\n* a face-detection-cli tool, which can:\n  * enable/disable face detection webcam (the webserver will still be served though). No new data is collected when face detection is disabled\n  * toggle between normal/fun rendering mode\n  * quit the service\n\n## Update and revert\n\nThe application is buggy on purpose with version **2.0**. The data from previous run will be destroyed (and the web page data refresh to reflects this) and it instructs the web page to turn RED.\nThis enables to illustrate the `snap revert` functionality where the previous version will be restored (service restarted) as well as previous data which will be repopulated on the web page.\n\n## Technical details\n\n### snapcraft.yaml\n\nA snapcraft.yaml is provided which demonstrates multiple features!\n * building a golang app\n * shipping a service and a cli tool\n * copying local assets\n * referencing other repository (the web code)\n * give some network-related security permission\n * have different security configuration per application\n\n### generated files\n\nThis service generates some files available in `$SNAP_DATA` (root project directory if ran from master without this variable set):\n * configuration (saved by the service for persistency over restart) in `settings`\n * sqlite database contentstorage main data in `storage.db`\n * `screencapture.png` and `screendetected.png` for latest captured images.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubuntu%2Fface-detection-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubuntu%2Fface-detection-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubuntu%2Fface-detection-demo/lists"}