Tools and samples for camera related APIs on Windows
Перейти к файлу
Louis-Philippe Bourret 051a609a26
Merge pull request #70 from microsoft/user/lobourre/updateNugetDirectoryToMatchSolution
Update nuget package fetch-to directory for vcam samples, correct WindowsStudio sample code
2024-09-10 13:28:23 -04:00
Samples correct the payload parsing logic for IMFCameraControlMonitor callback 2024-09-09 14:21:18 -04:00
Tools/Cam360 Bump Microsoft.NETCore.UniversalWindowsPlatform in /Tools/Cam360 2020-02-28 23:02:15 +00:00
.gitignore Rework and update the Companion app sample showing how to use IMFCameraConfigurationManager and IMFCameraControlDefaultsCollection. 2024-06-06 21:46:22 -04:00
LICENSE Initial commit 2018-04-05 16:10:03 -07:00
README.md Update README.md 2024-06-07 13:57:27 -04:00
SECURITY.md Microsoft mandatory file 2022-08-02 16:08:14 +00:00

README.md

Windows Platform sample applications and tools for using and developing the Camera features

This repo contains sample applications that demonstrate the API usage patterns for using the camera related features on Universal Windows Platform (UWP), Win32 Desktop platform and .NetCore 3.0 for Windows 10. These code samples were created with the project templates available in Visual Studio, and are designed to run on desktop, mobile, and future devices.

Note: If you are unfamiliar with Git and GitHub, you can download the entire collection as a ZIP file, but be sure to unzip everything to access shared dependencies.

Universal Windows Platform (UWP) samples/tools

These samples require Visual Studio 2017 Update 4 or higher and the Windows Software Development Kit (SDK) version 16299 for Windows 10 or higher on a per-sample basis.

Get a free copy of Visual Studio 2017 Community Edition with support for building Universal Windows Platform apps

Additionally, to stay on top of the latest updates to Windows and the development tools, become a Windows Insider by joining the Windows Insider Program.

Become a Windows Insider

Win32 Desktop applications/tools

These samples require Visual Studio 2017 Update 4 or higher and the Windows Software Development Kit (SDK) version 17763 for Windows 10.

.NetCore 3.0 Desktop applications/tools

These samples require .NetCore 3.0 SDK and Visual Studio 2019 preview. (https://visualstudio.microsoft.com/vs/preview/)

Using the samples

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio.

Download the samples ZIP

Notes:

  • Before you unzip the archive, right-click it, select Properties, and then select Unblock.
  • Be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive.
  • In Visual Studio 2017, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device.

The samples use Linked files in Visual Studio to reduce duplication of common files, including sample template files and image assets. These common files are stored in the SharedContent folder at the root of the repository, and are referred to in the project files using links.

Reminder: If you unzip individual samples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the samples.

For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the Windows Developer Center. These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Samples

360-degree camera capture/record/preview
Win32 Desktop console application demonstrating use of Windows Media Capture APIs
WinRT applications demonstrating use of custom KS Camera Extended Properties and extraction of frame metadata
Win32 Desktop application and libraries demonstrating use of Windows APIs and Windows Media Foundation APIs for RTP/RTSP streaming from camera
Sample of Virtual Camera mediasource and configuration app
Sample of Companion Settings app to read and save default configurations via IMFCameraConfigurationManager APIs
Sample of Control Monitoring app that listens changes to various camera controls
C# .Net WinUI & WinRT sample application for using a Windows Studio camera and its set of effects via APIs