C# Class GenderDetector.GenderDetectorControl

Klasse zur Alterbestimmung.
Show file Open project: rechc/KinectMiniApps

Public Methods

Method Description
CheckForInternetConnection ( ) : bool
GenderCheck ( Microsoft.Kinect.Skeleton skeleton, byte colorImagePoints ) : void

EventHandler zum Zeichnen des Bildes.

GenderDetectorControl ( ) : System
Start ( Microsoft.Kinect.KinectSensor sensor ) : void

Private Methods

Method Description
CalculateGender ( String path ) : void

Sendet das Bild an den Rest Service und speichert das Ergebnis.

CropBitmap ( System.Windows.Media.Imaging.WriteableBitmap colorBitmap ) : System.Windows.Media.Imaging.CroppedBitmap

Schneidet den Kopf aus der colorBitmap wenn eine Person erkannt wird.

GenderCheckCutOut ( ) : void

Hauptfunction zur Altersbestimmung.

InitializeService ( ) : void

Initialisiert den Rest Service.

SaveScreenshot ( System.Windows.Media.Imaging.BitmapSource colorBitmap ) : String

Speichert den Screenshort zur späteren Verwendung.

SetAttributes ( ) : void

Setzt die Attribute und die WPF Elemente nach einem Request.

Method Details

CheckForInternetConnection() public static method

public static CheckForInternetConnection ( ) : bool
return bool

GenderCheck() public method

EventHandler zum Zeichnen des Bildes.
public GenderCheck ( Microsoft.Kinect.Skeleton skeleton, byte colorImagePoints ) : void
skeleton Microsoft.Kinect.Skeleton
colorImagePoints byte
return void

GenderDetectorControl() public method

public GenderDetectorControl ( ) : System
return System

Start() public method

public Start ( Microsoft.Kinect.KinectSensor sensor ) : void
sensor Microsoft.Kinect.KinectSensor
return void