Click or drag to resize

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

Detects faces in a given image URL.

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(
	string url,
	VisualRecognitionSuccessCallback<DetectedFaces> successCallback,
	VisualRecognitionFailCallback failCallback,
	Dictionary<string, Object> customData = null
)

Parameters

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

Return Value

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