C# Class FaceDetection.Model.CameraHandler

Inheritance: IDisposable
显示文件 Open project: PkInfRemi/FaceDetectionApp Class Usage Examples

Public Methods

Method Description
CreateCapture ( int selection ) : Capture

Creates a capture.

GetAllCameras ( ) : List

Gets all connected webcams.

GetDetectedSnippets ( Capture capture ) : List

Makes a snapshot and gets the snippets where a face was detected.

ProcessImage ( Capture capture ) : Bitmap

Captures and processes the image.

Private Methods

Method Description
CameraHandler ( ) : System

Initializes the CameraHandler class.

Dispose ( ) : void
InitializeFaceDetection ( ) : void
RecognizeUser ( byte>.Image &original, byte>.Image grayframe, Rectangle rectangle ) : void

Method Details

CreateCapture() public method

Creates a capture.
public CreateCapture ( int selection ) : Capture
selection int The camera selection.
return Emgu.CV.Capture

GetAllCameras() public static method

Gets all connected webcams.
public static GetAllCameras ( ) : List
return List

GetDetectedSnippets() public method

Makes a snapshot and gets the snippets where a face was detected.
public GetDetectedSnippets ( Capture capture ) : List
capture Emgu.CV.Capture The capture.
return List

ProcessImage() public method

Captures and processes the image.
public ProcessImage ( Capture capture ) : Bitmap
capture Emgu.CV.Capture The capture.
return System.Drawing.Bitmap