<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLHandActionClassifier/DataSource/extractKeypoints(targetFrameRate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML22MLHandActionClassifierV10DataSourceO16extractKeypoints15targetFrameRate07TabularF00fK0VSd_tKF"
  },
  "title" : "extractKeypoints(targetFrameRate:)"
}
-->

# extractKeypoints(targetFrameRate:)

Extracts key points from video files if necessary.

```
func extractKeypoints(targetFrameRate: Double = MLHandActionClassifier.__Defaults.targetFrameRate) throws -> DataFrame
```

## Parameters

`targetFrameRate`

The number of frames per second the method uses to extract body landmarks from the
data source.

## Return Value

A data frame that contains a column for hand joint locations and a column of hand action
annotations.

## Discussion

If the data source already contains keypoints, this method just renames the data frame columns to the
defaults.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)