---
title: "extractKeypoints(targetFrameRate:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlhandactionclassifier/datasource/extractkeypoints(targetframerate:)"
---

# extractKeypoints(targetFrameRate:)

Extracts key points from video files if necessary.

## Declaration

```swift
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

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

## Discussion

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

## See Also

### Exporting a data source

- [labeledMedia()](createml/mlhandactionclassifier/datasource/labeledmedia().md)
- [videosWithAnnotations()](createml/mlhandactionclassifier/datasource/videoswithannotations().md)
- [keypointsWithAnnotations(targetFrameRate:)](createml/mlhandactionclassifier/datasource/keypointswithannotations(targetframerate:).md)
- [stratifiedSplit(proportions:seed:labelColumn:)](createml/mlhandactionclassifier/datasource/stratifiedsplit(proportions:seed:labelcolumn:).md)
- [gatherAnnotatedFileNames()](createml/mlhandactionclassifier/datasource/gatherannotatedfilenames().md)
