Giter Club home page Giter Club logo

perfectshow's Introduction

PerfectShow

Welcome to PerfectShow, an image processing application for Android platform.

Up until now, I release functionality about make-up.

This project mainly use stasm for face detecting, dlib can be more superior and robust, and it use OpenCV for color blending and image processing, so you might as well have a good grasp of this field.

Usage

download OpenCV 4 and extract it somewhere. There is no need to be in this project, then link the OpenCV directory to this project in the file gradle.property, search opencv_sdk variable and replace it with your own.

Screenshot

seamless cloning

makeup UI

Contact

If you like this project, share your appreciation by following me in GitHub.
If you have any problems about this project, you can file an issue here.
This repository is not currently maintained.

License

Copyright© 2016-2020  Martin Taylor

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

perfectshow's People

Contributors

kalo2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

perfectshow's Issues

External Native Build Issues :(

Build command failed.
Error while executing process C:\Users\Abbaszadeh\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\src\main\cpp\Android.mk NDK_APPLICATION_MK=C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\src\main\cpp\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/Abbaszadeh/Desktop/PerfectShow-master/iShow/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
process_begin: CreateProcess(NULL, "", ...) failed.
Android NDK: ERROR:C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\src\main\cpp\Android.mk:opencv_java3_prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that F:/OpenCV/OpenCV-3.2.0-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_java3.so exists or that its path is correct
Build command failed.
Error while executing process C:\Users\Abbaszadeh\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\src\main\cpp\Android.mk NDK_APPLICATION_MK=C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\src\main\cpp\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=C:/Users/Abbaszadeh/Desktop/PerfectShow-master/iShow/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}
process_begin: CreateProcess(NULL, "", ...) failed.
ACndroid NDK: ER:/UseROR:rsC/:A\bUbaszadeh/AppDastear/Lso\cAabl/bAandrosid/sdk/zndk-baudndelh\eD/ebsuikldt//o.p./bPuiledr/fceocret/Sphroewb-umialst-tleirbr\airSyh.mokw:\45s:r c**m*a iAnn\dcrpopi\dA nNdDrKo:i dAb.omrkt:ionpge n c v _.j a vSat3o_pp.r
ebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that F:/OpenCV/OpenCV-3.2.0-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_java3.so exists or that its path is correct

C:\Users\Abbaszadeh\Desktop\PerfectShow-master\iShow\src\main\cpp\Android.mk
Error:(12, 0) F:/OpenCV/OpenCV-3.2.0-android-sdk/sdk/native/jni/OpenCV.mk: No such file or directory
Open File
Error:(12, 0) F:/OpenCV/OpenCV-3.2.0-android-sdk/sdk/native/jni/OpenCV.mk: No such file or directory
Open File

C:\Users\Abbaszadeh\AppData\Local\Android\sdk\ndk-bundle\build\core\prebuilt-library.mk
Error:(44, 0) *** Android NDK: Aborting . Stop.
Open File

编译不通过

您好,我用android studio编译不通过
Cause: executing external native build for ndkBuild /Users/dongqing/APP-Develop/Android/workspace/studio/PerfectShow/iShow/src/main/cpp/Android.mk

Channel is unrecoverably broken and will be disposed!

When I open the app and try to upload any picture, the app crashes.

Log:
E/InputDispatcher(492): channel '4aa29a34 com.cloudream.ishow/com.cloudream.ishow.app.GalleryActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

Linux Machine : error: cannot find -lrt

Hi
I am working on a linux machine
Ran the 'ndk-build' on 'jni'. And stuck on below
/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lrt

Tried some variations in Android.mk like mentioned fullpath of 'librt'. But haven;t got it working.
Searched google all over but could not find anything.

Any suggestions on what probably could be missing / misplaced.

NDK issue

Android NDK: Your APP_BUILD_SCRIPT points to an unknown file

Blurry Eye Lash

Hey Can Anyone please help me out on correcting eye lash it's seems too blurry.

同时应用眉毛和眼睫毛

Hi,

请教一个问题,如果我同时应用眉毛和眼睫毛的texture会发现只有一个能用,另一个会失效,这是什么原因呢?

Build command failed.

Error while executing process C:\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\AndroidStudioProjects\library_projects\PerfectShow\iShow\src\main\cpp\Android.mk NDK_APPLICATION_MK=D:\AndroidStudioProjects\library_projects\PerfectShow\iShow\src\main\cpp\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:/AndroidStudioProjects/library_projects/PerfectShow/iShow/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\AndroidStudioProjects\library_projects\PerfectShow\iShow\build\intermediates\ndkBuild\debug\lib D:/AndroidStudioProjects/library_projects/PerfectShow/iShow/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/libvenus.so}
[arm64-v8a] Compile++ : venus <= asm.cpp
[arm64-v8a] Compile++ : venus <= classicdesc.cpp
[arm64-v8a] Compile++ : venus <= convshape.cpp
[arm64-v8a] Compile++ : venus <= err.cpp
[arm64-v8a] Compile++ : venus <= eyedet.cpp
[arm64-v8a] Compile++ : venus <= eyedist.cpp
[arm64-v8a] Compile++ : venus <= faceroi.cpp
[arm64-v8a] Compile++ : venus <= hat.cpp
[arm64-v8a] Compile++ : venus <= hatdesc.cpp
[arm64-v8a] Compile++ : venus <= landmarks.cpp
[arm64-v8a] Compile++ : venus <= misc.cpp
[arm64-v8a] Compile++ : venus <= pinstart.cpp
[arm64-v8a] Compile++ : venus <= print.cpp
[arm64-v8a] Compile++ : venus <= shape17.cpp
[arm64-v8a] Compile++ : venus <= shapehacks.cpp
[arm64-v8a] Compile++ : venus <= shapemod.cpp
[arm64-v8a] Compile++ : venus <= startshape.cpp
[arm64-v8a] Compile++ : venus <= stasm.cpp
[arm64-v8a] Compile++ : venus <= stasm_lib.cpp
[arm64-v8a] Compile++ : venus <= facedet.cpp
[arm64-v8a] Compile++ : venus <= initasm.cpp
[arm64-v8a] Compile++ : venus <= Beauty.cpp
[arm64-v8a] Compile++ : venus <= blend.cpp
[arm64-v8a] Compile++ : venus <= blur.cpp
[arm64-v8a] Compile++ : venus <= colorspace.cpp
[arm64-v8a] Compile++ : venus <= Effect.cpp
[arm64-v8a] Compile++ : venus <= Feature.cpp
[arm64-v8a] Compile++ : venus <= ImageWarp.cpp
[arm64-v8a] Compile++ : venus <= inpaint.cpp
[arm64-v8a] Compile++ : venus <= Makeup.cpp
[arm64-v8a] Compile++ : venus <= opencv_utility.cpp
D:/AndroidStudioProjects/library_projects/PerfectShow/iShow/src/main/cpp/venus/opencv_utility.cpp:204:2: warning: array index 3 is past the end of the array (which contains 3 elements) [-Warray-bounds]
r_g_b_a[3] = alpha;
^ ~
D:/AndroidStudioProjects/library_projects/PerfectShow/iShow/src/main/cpp/venus/opencv_utility.cpp:202:2: note: array 'r_g_b_a' declared here
cv::Mat r_g_b_a[3];
^
1 warning generated.
[arm64-v8a] Compile++ : venus <= Region.cpp
make: *** No rule to make target D:/AndroidStudioProjects/library_projects/PerfectShow/iShow/src/main/cpp/platform/com_cloudream_ishow_algorithm_Effect.cpp', needed by D:/AndroidStudioProjects/library_projects/PerfectShow/iShow/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs-debug/venus/D_/AndroidStudioProjects/library_projects/PerfectShow/iShow/src/main/cpp/platform/com_cloudream_ishow_algorithm_Effect.o'. Stop.

java.lang.UnsatisfiedLinkError:

Hello @KAlO2,

Please check below log report.

java.lang.UnsatisfiedLinkError: No implementation found for android.graphics.PointF[][] com.cloudream.ishow.algorithm.Feature.nativeDetectFace(android.graphics.Bitmap, java.lang.String, java.lang.String) (tried Java_com_cloudream_ishow_algorithm_Feature_nativeDetectFace and Java_com_cloudream_ishow_algorithm_Feature_nativeDetectFace__Landroid_graphics_Bitmap_2Ljava_lang_String_2Ljava_lang_String_2)
01-12 15:55:23.753: E/AndroidRuntime(9369): at com.cloudream.ishow.algorithm.Feature.nativeDetectFace(Native Method)
01-12 15:55:23.753: E/AndroidRuntime(9369): at com.cloudream.ishow.algorithm.Feature.detectFace(Feature.java:84)
01-12 15:55:23.753: E/AndroidRuntime(9369): at com.cloudream.ishow.app.MakeupActivity.onCreate(MakeupActivity.java:299)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.Activity.performCreate(Activity.java:6876)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.ActivityThread.access$1100(ActivityThread.java:221)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.os.Handler.dispatchMessage(Handler.java:102)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.os.Looper.loop(Looper.java:158)
01-12 15:55:23.753: E/AndroidRuntime(9369): at android.app.ActivityThread.main(ActivityThread.java:7224)
01-12 15:55:23.753: E/AndroidRuntime(9369): at java.lang.reflect.Method.invoke(Native Method)
01-12 15:55:23.753: E/AndroidRuntime(9369): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
01-12 15:55:23.753: E/AndroidRuntime(9369): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Please help me to resolve this issue.

No toolchains found in the NDK

I get the following error on building the app
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

Eye brow whit Blurry mask

I'm working face detection to do the makeup, your example is very valuable for me since I did not know anything about OpenCV I just saw that error with the makeup, when I select the option EYE BROW is erased the brow of the face, to be Should behave

Note: Excuse me for my English.

NDK

Cybus\StudioProjects\PerfectShow\iShow\src\main\cpp\Application.mk: No such file or directory

你好,我有两个问题

1、在你的编译文件中,
set(OPENCV_DIR "G:/OpenCV/opencv-3.2.0/build" CACHE STRING "" FORCE)
我的OpenCV没有build这个文件夹呀,需要自己编译么?编译什么版本呢?
2、在Android Demo中没有Camera的相关Demo呀。。你现在有了么??

Can not pull OpenCV

Run the command below to pull OpenCV module in Android Studio project, then build the project.

$ git submodule update --init --recursive

Where to write the Code??
How??? What are the steps??
I am new in App development. Trying to get knowledge. Please help me.

error: cannot find -lrt

Hi
I am working on a linux machine
Ran the 'ndk-build' on 'jni'. And stuck on below
/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lrt

Tried some variations in Android.mk like mentioned fullpath of 'librt'. But haven;t got it working.
Searched google all over but could not find anything.

Any suggestions on what probably could be missing / misplaced.

new issue

I can't find opeCV file in the project.

*** Android NDK: Aborting . Stop.

Hello :(
D:\Android\a\AndroidSDK\ndk-bundle\build\core\prebuilt-library.mk
Error:(45) *** Android NDK: Aborting . Stop.
Error:(45) *** Android NDK: Aborting . Stop.
Error:(45) *** Android NDK: Aborting . Stop.
Error:A problem occurred configuring project ':iShow'.

executing external native build for ndkBuild D:\o\PerfectShow\iShow\src\main\cpp\Android.mk

无法编译

Android NDK: ERROR:E:\github\PerfectShow\iShow\src\main\cpp\Android.mk:opencv_java3_prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that F:/OpenCV/OpenCV-3.2

No face detected

It always shows "Sorry, no face detected. Please use front face for better result." toast when try to use Makeup functionality. Can you please suggest

Demo apk

Hi! It would be great if you could add a demo apk to the repository.

How to build the project in android studio ?

Thank you very much for your sharing.Looking for someone to face makeup case, looking for a long time didn't find it.See the project as you see the dawn of the dawn.Want to look at the effect of the operation, the Android studio STH over and over again for a long time or stuck up.Suddenly feel a dark around you.Are you Chinese?Can you give me send a Chinese environment set up document?I would be very grateful.My email is 1693865860 @qq.com, English is not very good, with the aid of translation tools, please forgive me.

If you are can see that(看懂中文直接看下面):
非常感谢你的分享。想找个人脸化妆的案例看看,找了很久没找到。看到你这个项目有如看见黎明的曙光。想运行看看效果,在Android studio 折腾了很久还是没跑起来。突然又感觉周围一片黑暗。你是**人?能否给我发份中文环境架设文档呢?我会非常感激的。我邮箱是[email protected],英文不是特别好,借助翻译工具,请多多包涵。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.