Name: usb-camera
Owner: ms-iot
Description: Code to help showcase using an USB camera on IoT Core
Created: 2015-10-29 21:59:22.0
Updated: 2018-01-11 14:00:02.0
Pushed: 2016-12-07 03:52:25.0
Homepage:
null
Size: 18
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
UsbCamera Class
This is the code block for using a USB camera with Windows 10 IoT Core.
Methods
The UsbCamera class has these methods:
- InitializeAsync: Initializes the first detected camera device asynchronously.
- StartCameraPreview: Begins live USB camera feed asynchronously.
- StopCameraPreview: Ends live USB camera feed asynchronously.
- CapturePhoto: Captures photo from camera feed and stores it in local storage asynchronously. Returns image file as a StorageFile. File is stored in a temporary folder and could be deleted by the system at any time.
- Dispose: Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
Setup
To use this block in your project, you need to perform the following steps:
- Navigate to your git project folder using Command Prompt and run
git submodule add https://github.com/ms-iot/usb-camera
- Next, run
git submodule update
- Open your project solution on Visual Studio and right click on Solution -> Add -> Existing Project. Select usb-camera -> UsbCamera -> UsbCamera.csproj.
- Once usb-camera is added to the solution explorer, right click on References on your project -> Add Reference -> Projects -> Solution. Check UsbCamera and select OK.
- You should now be able to use UsbCamera objects in your project.
Note: Everytime you clone your project after it's initial creation, you must run the following commands in the project's root folder:
git submodule init
git submodule update
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.