{"id":20188651,"url":"https://github.com/der3318/winrt-fd-sample","last_synced_at":"2025-03-03T07:13:57.150Z","repository":{"id":92549103,"uuid":"562498216","full_name":"der3318/winrt-fd-sample","owner":"der3318","description":"Notes and Samples to Use WinRT Face Detector","archived":false,"fork":false,"pushed_at":"2023-07-20T11:58:46.000Z","size":410,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T18:33:37.697Z","etag":null,"topics":["notes","samples","tutorial","winrt"],"latest_commit_sha":null,"homepage":"","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/der3318.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-06T14:50:12.000Z","updated_at":"2022-12-18T15:37:08.000Z","dependencies_parsed_at":"2025-01-13T18:43:09.252Z","dependency_job_id":null,"html_url":"https://github.com/der3318/winrt-fd-sample","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/der3318%2Fwinrt-fd-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Fwinrt-fd-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Fwinrt-fd-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/der3318%2Fwinrt-fd-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/der3318","download_url":"https://codeload.github.com/der3318/winrt-fd-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241622604,"owners_count":19992504,"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":["notes","samples","tutorial","winrt"],"created_at":"2024-11-14T03:30:03.671Z","updated_at":"2025-03-03T07:13:57.127Z","avatar_url":"https://github.com/der3318.png","language":"C++","readme":"\n## 📝 WinRT Face Detection Sample\n\n![rich](https://img.shields.io/badge/rich%20%28pip3%29-12.6.0-blue.svg)\n![winrt](https://img.shields.io/badge/winrt%20%28pip3%29-1.0.21033.1-green.svg)\n![winrs](https://img.shields.io/badge/windows--rs%20%28crates.io%29-0.43.0-brightgreen.svg)\n![vs](https://img.shields.io/badge/visual%20studio-17.3.32929.385%20%282022%29-blueviolet.svg)\n![platform](https://img.shields.io/badge/platform%20toolset-v143-pink.svg)\n![flavor](https://img.shields.io/badge/flavor-win32/x64-yellow.svg)\n\nDemonstrate the usage of [Windows.Media.FaceAnalysis.FaceDetector API](https://msdn.microsoft.com/library/windows/apps/windows.media.faceanalysis.facedetector.aspx). The repo provides basic samples for C++ (WRL), python and rust, in addition to the official [C#, cppwinrt](https://github.com/microsoft/Windows-universal-samples/tree/main/Samples/BasicFaceDetection), [C++/CX and VB](https://github.com/microsoft/Windows-universal-samples/tree/main/archived/BasicFaceDetection) guidance.\n\n\n### 1️⃣ Windows Runtime C++ Template Lib (WRL) Console App\n\nFolder [cppwrl/](https://github.com/der3318/winrt-fd-sample/tree/main/cppwrl) is a Visual Studio 2022 solution to build a x86/x64 console app:\n\n\u003cimg src=\"/cppwrl/demo.png\"\u003e\n\nIt detects faces in picture [cppwrl/SampleInput.jpg](https://github.com/der3318/winrt-fd-sample/blob/main/cppwrl/SampleInput.jpg) and print the bounding box via stdout.\n\n\n### 2️⃣ Python Script\n\nPython script and its dependency are available under folder [python/](https://github.com/der3318/winrt-fd-sample/tree/main/python):\n\n\u003cimg src=\"/python/demo.png\"\u003e\n\nUse `pip3 install -r requirements.txt` to install libs, and run `python3 detect.py` to [dump](https://github.com/Textualize/rich#rich-inspect) the detection info of image [python/face.jpg](https://github.com/der3318/winrt-fd-sample/blob/main/python/face.jpg).\n\n\n### 3️⃣ Rust Cargo Windows Binary Project\n\nDirectory [rust/](https://github.com/der3318/winrt-fd-sample/tree/main/rust) is a Cargo package project to build a windows exe application. Follow [learn.microsoft.com's](https://learn.microsoft.com/en-us/windows/dev-environment/rust/setup) instructions to setup rust on Windows with MSVC build tools.\n\n\u003cimg src=\"/rust/demo.png\"\u003e\n\nSimply run `cargo run` to compile and find faces from the sample input [rust/face.jpg](https://github.com/der3318/winrt-fd-sample/blob/main/rust/face.jpg). Results will be output to the console directly.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fder3318%2Fwinrt-fd-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fder3318%2Fwinrt-fd-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fder3318%2Fwinrt-fd-sample/lists"}