Skip to content

Commit bc4aef8

Browse files
authored
Merge pull request #2 from quickpose/0.8rc
0.8rc
2 parents d844387 + a9f874e commit bc4aef8

File tree

62 files changed

+20142
-11222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+20142
-11222
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## v0.8 - 2023-04-26
8+
9+
### Added
10+
- Depth Measurement Bar for Fitness Measurements
11+
- Supporting Sumo Squats, Plank, Left and Right Leg Lunges and Cobra wings.
12+
- Fitness Measurements return customizable guidance prompts
13+
14+
## v0.7 - 2023-03-20
15+
16+
### Fixed
17+
- Archive Bug
18+
19+
720
## v0.6 - 2023-03-15
821

922
### Added

Package.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ let package = Package(
1616
],
1717
dependencies: [],
1818
targets: [
19+
20+
.binaryTarget(name: "QuickPoseCore", path: "QuickPoseCore.xcframework"),
1921
.target(name: "QuickPoseCoreTarget", dependencies: ["QuickPoseCore"], path: "QuickPoseCoreWrapper"),
20-
.target(name: "QuickPoseCamera", dependencies: ["QuickPoseCoreTarget"]),
22+
.binaryTarget(name: "QuickPoseMP", path: "QuickPoseMP.xcframework"),
23+
.target(name: "QuickPoseMPTarget", dependencies: ["QuickPoseMP",], path: "QuickPoseMPWrapper", linkerSettings: [.linkedLibrary("c++")]),
24+
.target(name: "QuickPoseCamera", dependencies: ["QuickPoseCore"]),
2125
.target(name: "QuickPoseSwiftUI", dependencies: ["QuickPoseCamera"]),
2226

23-
.target(name: "QuickPoseMPTarget", dependencies: ["QuickPoseMP",], path: "QuickPoseMPWrapper", linkerSettings: [.linkedLibrary("c++")]),
27+
28+
29+
2430

25-
.binaryTarget(name: "QuickPoseCore", path: "QuickPoseCore.xcframework"),
26-
.binaryTarget(name: "QuickPoseMP", path: "QuickPoseMP.xcframework"),
2731
]
2832
)

QuickPoseCore.xcframework/Info.plist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-x86_64-simulator</string>
9+
<string>ios-arm64</string>
1010
<key>LibraryPath</key>
1111
<string>QuickPoseCore.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
14-
<string>x86_64</string>
14+
<string>arm64</string>
1515
</array>
1616
<key>SupportedPlatform</key>
1717
<string>ios</string>
18-
<key>SupportedPlatformVariant</key>
19-
<string>simulator</string>
2018
</dict>
2119
<dict>
2220
<key>LibraryIdentifier</key>
23-
<string>ios-arm64</string>
21+
<string>ios-x86_64-simulator</string>
2422
<key>LibraryPath</key>
2523
<string>QuickPoseCore.framework</string>
2624
<key>SupportedArchitectures</key>
2725
<array>
28-
<string>arm64</string>
26+
<string>x86_64</string>
2927
</array>
3028
<key>SupportedPlatform</key>
3129
<string>ios</string>
30+
<key>SupportedPlatformVariant</key>
31+
<string>simulator</string>
3232
</dict>
3333
</array>
3434
<key>CFBundlePackageType</key>

QuickPoseCore.xcframework/ios-arm64/QuickPoseCore.framework/Headers/QuickPose.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// QuickPoseiOS.h
44
// QuickPoseiOS
55
//
6-
// Created by Peter Nash on 11/01/2023.
6+
// Created by QuickPose.ai on 11/01/2023.
77
//
88

99
#import <Foundation/Foundation.h>

QuickPoseCore.xcframework/ios-arm64/QuickPoseCore.framework/Headers/QuickPoseCore-Swift.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ using UInt = size_t;
309309
/// QuickPoseOverlayView(overlayImage: $overlayImage)
310310
/// }
311311
/// .onAppear {
312-
/// quickPose.start(features: [.overlay(.userLeftArm)], onFrame: { status, image, features, landmarks in
312+
/// quickPose.start(features: [.overlay(.userLeftArm)], onFrame: { status, image, features, guidance, landmarks in
313313
/// overlayImage = image
314314
/// })
315315
/// }
@@ -325,13 +325,13 @@ using UInt = size_t;
325325
/// Applying AI to camera feed is memory intensive and requires releasing for production use.
326326
/// The <code>start(features:onStart:onFrame:)</code> accepts a <code>Feature</code> array, and two closures one to asynchronously return when the camera has started, and second for each processed frame. Here only the onFrame image is read and applied the the view’s state, which triggers a SwiftUI refresh of the <code>QuickPoseOverlayView</code>.
327327
/// \code
328-
/// quickPose.start(features: [.overlay(.userLeftArm)], onFrame: { _, image, _, _ in
328+
/// quickPose.start(features: [.overlay(.userLeftArm)], onFrame: { _, image, _, _, _ in
329329
/// overlayImage = image
330330
/// })
331331
///
332332
/// \endcodeFor a more advanced example we can reference the <code>Status</code> state to log if the user is found and current performance via the returned frames-per-second.
333333
/// \code
334-
/// quickPose.start(features: [.overlay(.userLeftArm)], onFrame: { status, image, _, _ in
334+
/// quickPose.start(features: [.overlay(.userLeftArm)], onFrame: { status, image, _, _, _ in
335335
/// if case let .success(fps) = status {
336336
/// print("fps: \(fps)")
337337
/// overlayImage = image
@@ -348,7 +348,7 @@ using UInt = size_t;
348348
/// .onAppear {
349349
/// quickPose.start(features: [selectedFeature], onStart: {
350350
/// withAnimation { cameraViewOpacity = 1.0 } // unhide the camera when loaded
351-
/// }, onFrame: { status, image, features, _ in
351+
/// }, onFrame: { status, image, features, _, _ in
352352
/// if case let .success(fps) = status {
353353
/// if case let .reading(_, displayString) = features[selectedFeature] {
354354
/// lastResult = displayString
@@ -368,14 +368,14 @@ using UInt = size_t;
368368
/// \endcodeFor an example with changed formatting such as font size, color and line width we can specify a <code>Style</code> class
369369
/// \code
370370
/// let smallerStyle = QuickPose.Style(relativeLineWidth: 0.33)
371-
/// quickPose.start(features: [.overlay(.userLeftArm, style: smallerStyle)], onFrame: { status, image, _, _ in
371+
/// quickPose.start(features: [.overlay(.userLeftArm, style: smallerStyle)], onFrame: { status, image, _, _, _ in
372372
/// ....
373373
/// })
374374
///
375375
/// \endcodeAnd for conditional formatting when the angle goes above 120 degrees use:
376376
/// \code
377377
/// let conditionalStyle = QuickPose.Style(conditionalColors: [QuickPose.Style.ConditionalColor(min: 120, max: nil, color: UIColor.red)])
378-
/// quickPose.start(features: [.overlay(.userLeftArm, style: conditionalStyle)], onFrame: { status, image, _, _ in
378+
/// quickPose.start(features: [.overlay(.userLeftArm, style: conditionalStyle)], onFrame: { status, image, _, _, _ in
379379
/// ....
380380
/// })
381381
///

0 commit comments

Comments
 (0)