Contents

bestDetection(for:)

The best detection to focus on in a frame among those within the given detection group.

Declaration

func bestDetection(for detectionGroupID: CNDetectionGroupID) -> CNDetection?

Parameters

  • detectionGroupID:

    Associates related detections.

Return Value

An object representing the best detection to focus on in a frame among those within the given detection group.

Discussion

Some types of detections also include a detection group ID that associates related detections, such as a face and torso, of the same person.