Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgomez90/webcamcapturer.controls
WinForm & WPF Controls to View/Capture from a webcam using AForge.NET
https://github.com/rgomez90/webcamcapturer.controls
aforge-net snapshot webcam webcam-capture winforms winforms-controls wpf wpf-controls
Last synced: 14 days ago
JSON representation
WinForm & WPF Controls to View/Capture from a webcam using AForge.NET
- Host: GitHub
- URL: https://github.com/rgomez90/webcamcapturer.controls
- Owner: rgomez90
- License: gpl-3.0
- Created: 2018-11-06T19:51:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-15T21:53:18.000Z (over 4 years ago)
- Last Synced: 2024-05-29T18:33:06.288Z (5 months ago)
- Topics: aforge-net, snapshot, webcam, webcam-capture, winforms, winforms-controls, wpf, wpf-controls
- Language: C#
- Size: 64.5 KB
- Stars: 15
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WebcamCapturer.Controls
Provide some controls for WinForms and WPF to show/record/snapshot video from a webcam using [AForge.NET](https://github.com/andrewkirillov/AForge.NET).
## Installation
Install using Nuget `Install-Package WebcamCapturer.Core` or download [latest release]() build it yourself!
If you also want to use the built-in control, you also need to install:
* `Install-Package WebcamCapturer.Controls.WinForms` if working with WinForms
* `Install-Package WebcamCapturer.Controls.WPF` if working with WPF## Usage
For now the library exposes an `IWebcamCapturerView` interface and a `WebcamCapturerPresenter`, both reside in `WebcamCapturer.Core`.
If you use the built-in controls, instantiate a `new WebcamCapturerPresenter`, inject the correct view (Winforms or WPF) to the presenter.
If you want to use your own form, your control has to implement the `IWebcamCapturerView`.
This way it can be injected into the presenter.### WinForms
```csharp
var view = new WebcamCaptureForm();
var presenter = new WebcamCapturePresenter(view);
presenter.Show();
```### WPF
```csharp
var view = new WebcamCapturerWindow()
var presenter = new WebcamCapturePresenter(view);
presenter.Show();
```