Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Log/OS Files
*.log

# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.apk
output.json

# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
google-services.json

# Android Profiling
*.hprof
33 changes: 33 additions & 0 deletions multipose/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Log/OS Files
*.log

# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.apk
output.json

# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
google-services.json

# Android Profiling
*.hprof
2 changes: 1 addition & 1 deletion multipose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ https://github.com/nihui/opencv-mobile
### step3
* Open this project with Android Studio, build it and enjoy!
## result
![](result.gif)
![](../multipose.gif)
## reference:
https://github.com/nihui/ncnn-android-nanodet
https://tfhub.dev/google/movenet/multipose/lightning/1
32 changes: 25 additions & 7 deletions multipose/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,42 @@
apply plugin: 'com.android.application'
plugins {
id "com.android.application"
id "org.jetbrains.kotlin.android"
}

android {
compileSdkVersion 24
buildToolsVersion "29.0.2"

compileSdk 34

base {
archivesName = "com.tencent.ncnnbodypose"
}

defaultConfig {
applicationId "com.tencent.ncnnbodypose"
archivesBaseName = "$applicationId"

targetSdk = 34
minSdkVersion 24
}

buildFeatures {
buildConfig = true
}

externalNativeBuild {
cmake {
version "3.10.2"
version "3.22.1"
path file('src/main/jni/CMakeLists.txt')
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
implementation 'com.android.support:support-v4:24.0.0'
implementation 'com.android.support:support-v4:28.0.0'
}
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'com.tencent.ncnnbodypose'
}
20 changes: 13 additions & 7 deletions multipose/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tencent.ncnnbodypose"
android:versionCode="1"
android:versionName="1.1">
android:versionCode="1"
android:versionName="1.1">

<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.camera2.full" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />

<application android:label="@string/app_name">
<activity android:name="MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
<activity
android:name="MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
162 changes: 0 additions & 162 deletions multipose/app/src/main/java/com/tencent/ncnnbodypose/MainActivity.java

This file was deleted.

Loading