VNRequest.GetResults<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the detected objects, as an array of the specified subclass of VNObservation.
public virtual T[] GetResults<T> () where T : Vision.VNObservation;
abstract member GetResults : unit -> 'T[] (requires 'T :> Vision.VNObservation)
override this.GetResults : unit -> 'T[] (requires 'T :> Vision.VNObservation)
Type Parameters
- T
The subclass of VNObservation produced.
Returns
T[]
Remarks
The following example shows how one might retrieve the results of a VNDetectFaceRectanglesRequest:
var rs = request.GetResults<VNFaceObservation>();
foreach (var fo in rs)
{
// ... etc ...