{"id":13771600,"url":"https://github.com/cocoa-ai/FacesVisionDemo","last_synced_at":"2025-05-11T04:30:48.137Z","repository":{"id":44797027,"uuid":"95821936","full_name":"cocoa-ai/FacesVisionDemo","owner":"cocoa-ai","description":"👀 iOS11 demo application for age and gender classification of facial images.","archived":false,"fork":false,"pushed_at":"2019-10-08T22:23:48.000Z","size":781,"stargazers_count":320,"open_issues_count":3,"forks_count":47,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-09T22:18:45.108Z","etag":null,"topics":["coreml","coreml-models","emotion-recognition","facial-recognition","gender-classification","ios","machine-learning","swift","swift4","vision"],"latest_commit_sha":null,"homepage":"https://github.com/cocoa-ai","language":"Swift","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/cocoa-ai.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":"2017-06-29T21:35:51.000Z","updated_at":"2025-03-23T16:01:52.000Z","dependencies_parsed_at":"2022-09-23T06:30:31.543Z","dependency_job_id":null,"html_url":"https://github.com/cocoa-ai/FacesVisionDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FFacesVisionDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FFacesVisionDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FFacesVisionDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FFacesVisionDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cocoa-ai","download_url":"https://codeload.github.com/cocoa-ai/FacesVisionDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"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":["coreml","coreml-models","emotion-recognition","facial-recognition","gender-classification","ios","machine-learning","swift","swift4","vision"],"created_at":"2024-08-03T17:00:53.237Z","updated_at":"2025-05-11T04:30:47.506Z","avatar_url":"https://github.com/cocoa-ai.png","language":"Swift","funding_links":[],"categories":["Swift","Models"],"sub_categories":["AgeNet"],"readme":"# Faces Vision Demo\n\niOS11 demo application for age and gender classification of facial images using `Vision` and `CoreML`.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/cocoa-ai/FacesVisionDemo/blob/master/Screenshot.png\" alt=\"FacesVisionDemo\" width=\"300\" height=\"464\" /\u003e\n\u003c/div\u003e\n\n## Model\n\nThis demo is based on the age, gender and emotion neural network classifiers,\nwhich were converted from `Caffe` models to `CoreML` models using [coremltools](https://pypi.python.org/pypi/coremltools) python package.\n\n### Age classification\n\n- [Paper](http://www.openu.ac.il/home/hassner/projects/cnn_agegender/)\n- [CoreML model](https://drive.google.com/file/d/1PLkI4Jyg086JlvTzwHHI5EbGWgJI-Atv/view?usp=sharing)\n\n### Gender classification\n\n- [Paper](http://www.openu.ac.il/home/hassner/projects/cnn_agegender/)\n- [CoreML model](https://drive.google.com/file/d/1IxU0E1EDjuL-sbY3wd5Wh6BsXTbYTScb/view?usp=sharing)\n\n### Emotion Recognition\n\n- [Paper](http://www.openu.ac.il/home/hassner/projects/cnn_emotions/)\n- [CoreML model](https://drive.google.com/file/d/1ElCJvnEvhtIxZkyEzVUAFPJAMgyBXo57/view?usp=sharing)\n\n## Requirements\n\n- Xcode 9\n- iOS 11\n\n## Installation\n\n```sh\ngit clone https://github.com/cocoa-ai/FacesVisionDemo.git\ncd FacesVisionDemo\npod install\nopen Faces.xcworkspace/\n```\n\n## Conversion\n\nDownload [Caffe model](https://drive.google.com/open?id=0BydFau0VP3XSNVYtWnNPMU1TOGM)\nand [deploy.prototxt](https://drive.google.com/open?id=0BydFau0VP3XSOFp4Ri1ITzZuUkk).\nLinks can also be found [here](https://gist.github.com/GilLevi/54aee1b8b0397721aa4b#emotion-classification-cnn---rgb).\nMove downloaded files to `Covert/EmotionClassification` folder.\n\n```sh\ncd Convert\n./download.sh\npython age.py\npython gender.py\npython emotion.py\n```\n\nDownload the [Age](https://drive.google.com/file/d/0B1ghKa_MYL6mT1J3T1BEeWx4TWc/view?usp=sharing),\n[Gender](https://drive.google.com/file/d/0B1ghKa_MYL6mYkNsZHlyc2ZuaFk/view?usp=sharing) and\n[Emotion](https://drive.google.com/file/d/0B1ghKa_MYL6mTlYtRGdXNFlpWDQ/view?usp=sharing)\nCoreML models and add the files to \"Resources\" folder in the project's directory.\n\nBuild the project and run it on a simulator or a device with iOS 11.\n\n## Author\n\nVadym Markov, markov.vadym@gmail.com\n\n## Credits\n\n- [Age and Gender Classification using Convolutional Neural Networks](http://www.openu.ac.il/home/hassner/projects/cnn_agegender/)\n- [Emotion Recognition in the Wild via Convolutional Neural Networks and Mapped Binary Patterns](http://www.openu.ac.il/home/hassner/projects/cnn_emotions/)\n\n## References\n- [Caffe Model Zoo](https://github.com/caffe2/caffe2/wiki/Model-Zoo)\n- [Apple Machine Learning](https://developer.apple.com/machine-learning/)\n- [Vision Framework](https://developer.apple.com/documentation/vision)\n- [CoreML Framework](https://developer.apple.com/documentation/coreml)\n- [coremltools](https://pypi.python.org/pypi/coremltools)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocoa-ai%2FFacesVisionDemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcocoa-ai%2FFacesVisionDemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocoa-ai%2FFacesVisionDemo/lists"}