{"id":25524009,"url":"https://github.com/jernejk/realtimefaceapi","last_synced_at":"2025-04-11T02:42:50.181Z","repository":{"id":41562045,"uuid":"164741782","full_name":"jernejk/RealTimeFaceApi","owner":"jernejk","description":"This is a demo project showing how to use Face API in Cognitive Services with OpenCV","archived":false,"fork":false,"pushed_at":"2023-02-21T20:08:48.000Z","size":25393,"stargazers_count":61,"open_issues_count":8,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-25T00:35:14.180Z","etag":null,"topics":["azure","azure-cognitive-services","cognitive-services","face-api","face-detection","facial-recognition","opencv","real-time","tips-and-tricks"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jernejk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-01-08T22:10:49.000Z","updated_at":"2025-03-03T07:08:39.000Z","dependencies_parsed_at":"2023-02-10T05:45:26.576Z","dependency_job_id":"a877a01c-09b2-4f34-a790-c3013d217e5d","html_url":"https://github.com/jernejk/RealTimeFaceApi","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/jernejk%2FRealTimeFaceApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jernejk%2FRealTimeFaceApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jernejk%2FRealTimeFaceApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jernejk%2FRealTimeFaceApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jernejk","download_url":"https://codeload.github.com/jernejk/RealTimeFaceApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248331221,"owners_count":21085859,"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":["azure","azure-cognitive-services","cognitive-services","face-api","face-detection","facial-recognition","opencv","real-time","tips-and-tricks"],"created_at":"2025-02-19T19:27:59.964Z","updated_at":"2025-04-11T02:42:50.156Z","avatar_url":"https://github.com/jernejk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/s8o64bsqd4agvocm/branch/master?svg=true)](https://ci.appveyor.com/project/jernejk/realtimefaceapi/branch/master)\n\nBlog post: [Real-time face recognition with Microsoft Cognitive Services](https://jkdev.me/real-time-face-recognition/)\n\nYouTube video: [.NET User Group: Real-time Face Recognition With Microsoft Cognitive Services](https://www.youtube.com/watch?v=KCSyRO0KotA)\n\nCognitive Studio (in progress): [https://cognitivestudio.dev/face/intro](https://cognitivestudio.dev/face/intro)\n\n# RealTimeFaceApi\nThis is a demo project showing how to use Face API in Cognitive Services with OpenCV.\n\nThe demo has several parts to allow real-time facial recognition:\n- Get frames from web cam/video with help of OpenCV\n- Offline face-detection with help of OpenCV\n- Filter out faces that are too small\n- Determine if scene has changed and we should recognize new faces\n- Sending and identifying faces with help of Microsoft Cognitive Services\n\n# Setup\nIn `RealTimeFaceApi/Program.cs` configure `FaceSubscriptionKey` and `FaceGroupId` from [Microsoft Cognitive Services](https://azure.microsoft.com/en-au/services/cognitive-services/).\nYou'll need to upload and train data in MS Face API.\n\n# Run with web came\nMake sure there are no command line arguments.\n\nIf you have multiple web cams, you can change the camera with `cameraIndex`.\n\n``` C#\n// Otherwise use the webcam.\ncapture = InitializeCapture(/* camera index */ 1);\n```\n\nYou can run app from console:\n``` C#\ncd RealTimeFaceApi.Cmd\ndotnet run\n```\n\n![One Person Moving](one-person-moving.gif)\n\n# Run with a video file\nAdd path to file. In Visual Studio, go to `RealTimeFaceApi.Cmd` properties, `Debug` and under `Application arguments:` add the path to the video.\n\nYou can also run from console:\n``` C#\ncd RealTimeFaceApi.Cmd\ndotnet run -- \"C:\\Users\\JK\\Downloads\\Real-time Face Recognition With Microsoft Cognitive Services.mp4\"\n```\n\n![Video File Face Detection](video-face-detection.png)\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjernejk%2Frealtimefaceapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjernejk%2Frealtimefaceapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjernejk%2Frealtimefaceapi/lists"}