-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CATTY-684 Add body pose detection support for older iOS versions
- Loading branch information
Showing
22 changed files
with
1,362 additions
and
874 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
src/Catty/PlayerEngine/Sensors/BodyPose/PoseNetModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/** | ||
* Copyright (C) 2010-2023 The Catrobat Team | ||
* (http://developer.catrobat.org/credits) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* An additional term exception under section 7 of the GNU Affero | ||
* General Public License, version 3, is available at | ||
* (http://developer.catrobat.org/license_additional_term) | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see http://www.gnu.org/licenses/. | ||
*/ | ||
|
||
enum PoseNetModel { | ||
public static let stride = 8.0 | ||
public static let inputDimension = 513.0 | ||
|
||
enum OutputIndex: Int { | ||
case displacementBwd | ||
case heatmaps | ||
case displacementFwd | ||
case offsets | ||
} | ||
|
||
enum Features: Int { | ||
case nose | ||
case leftEye | ||
case rightEye | ||
case leftEar | ||
case rightEar | ||
case leftShoulder | ||
case rightShoulder | ||
case leftElbow | ||
case rightElbow | ||
case leftWrist | ||
case rightWrist | ||
case leftHip | ||
case rightHip | ||
case leftKnee | ||
case rightKnee | ||
case leftAnkle | ||
case rightAnkle | ||
} | ||
} |
Oops, something went wrong.