Skip to content

Commit

Permalink
CATTY-684 Add body pose detection support for older iOS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoeg authored and wallisch committed May 12, 2023
1 parent a49ba7e commit b9fc152
Show file tree
Hide file tree
Showing 22 changed files with 1,362 additions and 874 deletions.
126 changes: 81 additions & 45 deletions src/Catty.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions src/Catty/PlayerEngine/Sensors/BodyPose/PoseNetModel.swift
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
}
}
Loading

0 comments on commit b9fc152

Please sign in to comment.