Click or drag to resize

VisualRecognitionDetectFaces Method (VisualRecognitionSuccessCallbackDetectedFaces, VisualRecognitionFailCallback, String, DictionaryString, Object)

Detects faces in a jpg, gif, png or zip file.

Namespace:  IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool DetectFaces(
	VisualRecognitionSuccessCallback<DetectedFaces> successCallback,
	VisualRecognitionFailCallback failCallback,
	string imagePath,
	Dictionary<string, Object> customData = null
)

Parameters

successCallback
Type: IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3VisualRecognitionSuccessCallbackDetectedFaces
The success callback.
failCallback
Type: IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3VisualRecognitionFailCallback
The fail callback.
imagePath
Type: SystemString
Image path.
customData (Optional)
Type: System.Collections.GenericDictionaryString, Object
Custom data.

Return Value

Type: Boolean
true, if faces was detected, false otherwise.
See Also