An optional array of NormalizedKeypoint objects associated with the detection. Keypoints
represent interesting points related to the detection. For example, the keypoints represent the
eyes, ear and mouth from the from detection model. In template matching detection, e.g. KNIFT,
they can instead represent the feature points for template matching.
A list of Category objects that contain category name, display name,
score, and the label index.
boundingBox
A CGRect that represents the bounding box.
keypoints:
An optional array of NormalizedKeypoint objects associated with the
detection. Keypoints represent interesting points related to the detection. For example, the
keypoints represent the eyes, ear and mouth from the face detection model. In template matching
detection, e.g. KNIFT, they can instead represent the feature points for template matching.
Return Value
An instance of Detection initialized with the given array of categories, bounding
box and nil keypoints.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nDetection\n=========\n\n class Detection : NSObject\n\nRepresents one detected object in the results of [ObjectDetector](../Classes/ObjectDetector.html).\n- `\n ``\n ``\n `\n\n ### [categories](#/c:objc(cs)MPPDetection(py)categories)\n\n `\n ` \n An array of `Category` objects containing the predicted categories. \n\n #### Declaration\n\n Swift \n\n var categories: [../Classes/ResultCategory.html] { get }\n\n- `\n ``\n ``\n `\n\n ### [boundingBox](#/c:objc(cs)MPPDetection(py)boundingBox)\n\n `\n ` \n The bounding box of the detected object. \n\n #### Declaration\n\n Swift \n\n var boundingBox: CGRect { get }\n\n- `\n ``\n ``\n `\n\n ### [keypoints](#/c:objc(cs)MPPDetection(py)keypoints)\n\n `\n ` \n An optional array of [NormalizedKeypoint](../Classes/NormalizedKeypoint.html) objects associated with the detection. Keypoints\n represent interesting points related to the detection. For example, the keypoints represent the\n eyes, ear and mouth from the from detection model. In template matching detection, e.g. KNIFT,\n they can instead represent the feature points for template matching. \n\n #### Declaration\n\n Swift \n\n var keypoints: [../Classes/NormalizedKeypoint.html]? { get }\n\n- `\n ``\n ``\n `\n\n ### [init(categories:boundingBox:keypoints:)](#/c:objc(cs)MPPDetection(im)initWithCategories:boundingBox:keypoints:)\n\n `\n ` \n Initializes a new `Detection` object with the given array of categories, bounding box and\n optional array of keypoints; \n\n #### Declaration\n\n Swift \n\n init(categories: [../Classes/ResultCategory.html], boundingBox: CGRect, keypoints: [../Classes/NormalizedKeypoint.html]?)\n\n #### Parameters\n\n |---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*categories*` ` | A list of `Category` objects that contain category name, display name, score, and the label index. |\n | ` `*boundingBox*` ` | A `CGRect` that represents the bounding box. |\n | ` `*keypoints:*` ` | An optional array of [NormalizedKeypoint](../Classes/NormalizedKeypoint.html) objects associated with the detection. Keypoints represent interesting points related to the detection. For example, the keypoints represent the eyes, ear and mouth from the face detection model. In template matching detection, e.g. KNIFT, they can instead represent the feature points for template matching. |\n\n #### Return Value\n\n An instance of `Detection` initialized with the given array of categories, bounding\n box and `nil` keypoints.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MPPDetection(im)init)\n\n `\n ` \n Undocumented\n- `\n ``\n ``\n `\n\n ### [+new](#/c:objc(cs)MPPDetection(cm)new)\n\n `\n ` \n Undocumented"]]