<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/HumanBodyActionCounter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents22HumanBodyActionCounterV"
  },
  "title" : "HumanBodyActionCounter"
}
-->

# HumanBodyActionCounter

A human body action repetition counting transformer that takes window of human body poses and produces cumulative human body action repetition counts.

```
struct HumanBodyActionCounter
```

## Topics

### Creating a transformer

[`init()`](/documentation/CreateMLComponents/HumanBodyActionCounter/init())

Creates a human body action counter.

### Performing the transformation

[`func applied<S>(to: S, eventHandler: EventHandler?) async throws -> HumanBodyActionCounter.OutputSequence`](/documentation/CreateMLComponents/HumanBodyActionCounter/applied(to:eventHandler:))

Predicts cumulative human body action counts from a sequence of human body pose windows.

[`struct CumulativeSumSequence`](/documentation/CreateMLComponents/HumanBodyActionCounter/CumulativeSumSequence)

Cumulative human body action count sequence.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`TemporalTransformer`](/documentation/CreateMLComponents/TemporalTransformer)

---

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)