├── Prj-Android ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── face_005.png │ │ │ │ │ ├── ic_logo.png │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── anim │ │ │ │ │ ├── push_bottom_in.xml │ │ │ │ │ └── push_buttom_out.xml │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── attrs.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── layout │ │ │ │ │ ├── fragment_camera_overlap.xml │ │ │ │ │ ├── activity_start.xml │ │ │ │ │ ├── activity_main.xml │ │ │ │ │ └── activity_multitracker.xml │ │ │ ├── assets │ │ │ │ └── FaceTracking │ │ │ │ │ └── models │ │ │ │ │ ├── det1.bin │ │ │ │ │ ├── det2.bin │ │ │ │ │ ├── det3.bin │ │ │ │ │ ├── det1.param │ │ │ │ │ ├── det2.param │ │ │ │ │ └── det3.param │ │ │ ├── java │ │ │ │ ├── com │ │ │ │ │ ├── zeusee_soft │ │ │ │ │ │ └── zmobileapi │ │ │ │ │ │ │ └── AuthCallback.java │ │ │ │ │ ├── hyq │ │ │ │ │ │ └── hm │ │ │ │ │ │ │ └── landmarksticker │ │ │ │ │ │ │ ├── StartActivity.java │ │ │ │ │ │ │ ├── FixedAspectRatioRelativeLayout.java │ │ │ │ │ │ │ └── GLFramebuffer.java │ │ │ │ │ └── sample │ │ │ │ │ │ └── tracking │ │ │ │ │ │ └── FixedAspectRatioFrameLayout.java │ │ │ │ └── trackingsoft │ │ │ │ │ └── tracking │ │ │ │ │ ├── Utils.java │ │ │ │ │ └── Face.java │ │ │ ├── AndroidManifest.xml │ │ │ └── cpp │ │ │ │ ├── CMakeLists.txt │ │ │ │ └── mtcnn.h │ │ └── androidTest │ │ │ └── java │ │ │ └── face │ │ │ └── zeusees │ │ │ └── zeuseesfacetracking │ │ │ └── ExampleInstrumentedTest.java │ ├── CMakeLists.txt │ ├── proguard-rules.pro │ └── build.gradle ├── local.properties ├── build.gradle ├── gradle.properties └── gradlew.bat ├── Prj-Win ├── main.cpp ├── mtcnn.h ├── models │ ├── det1.bin │ ├── det2.bin │ ├── det3.bin │ ├── det1.param │ ├── det2.param │ └── det3.param ├── 3rd │ ├── ncnn │ │ ├── lib │ │ │ └── ncnn.lib │ │ └── include │ │ │ ├── layer_type.h │ │ │ ├── platform.h │ │ │ ├── benchmark.h │ │ │ ├── blob.h │ │ │ ├── layer_type_enum.h │ │ │ ├── cpu.h │ │ │ ├── paramdict.h │ │ │ ├── modelbin.h │ │ │ └── pipeline.h │ └── opencv │ │ ├── lib │ │ └── opencv_world411.lib │ │ └── include │ │ └── opencv2 │ │ ├── imgcodecs │ │ ├── imgcodecs_c.h │ │ ├── legacy │ │ │ └── constants_c.h │ │ ├── imgcodecs.hpp │ │ └── ios.h │ │ ├── flann │ │ ├── dummy.h │ │ ├── config.h │ │ ├── general.h │ │ ├── flann.hpp │ │ └── timer.h │ │ ├── photo │ │ ├── legacy │ │ │ └── constants_c.h │ │ └── photo.hpp │ │ ├── video │ │ ├── legacy │ │ │ └── constants_c.h │ │ └── video.hpp │ │ ├── gapi │ │ ├── gpu │ │ │ ├── ggpukernel.hpp │ │ │ ├── core.hpp │ │ │ └── imgproc.hpp │ │ ├── fluid │ │ │ ├── core.hpp │ │ │ └── imgproc.hpp │ │ ├── util │ │ │ ├── compiler_hints.hpp │ │ │ └── throw.hpp │ │ ├── opencv_includes.hpp │ │ ├── cpu │ │ │ ├── core.hpp │ │ │ └── imgproc.hpp │ │ ├── ocl │ │ │ ├── core.hpp │ │ │ └── imgproc.hpp │ │ ├── own │ │ │ ├── exports.hpp │ │ │ ├── scalar.hpp │ │ │ ├── assert.hpp │ │ │ ├── convert.hpp │ │ │ └── saturate.hpp │ │ ├── gasync_context.hpp │ │ ├── gcall.hpp │ │ ├── gcompiled_async.hpp │ │ ├── gcomputation_async.hpp │ │ ├── gscalar.hpp │ │ └── gmetaarg.hpp │ │ ├── core │ │ ├── utils │ │ │ ├── logtag.hpp │ │ │ ├── allocator_stats.hpp │ │ │ └── logger.defines.hpp │ │ ├── ovx.hpp │ │ ├── version.hpp │ │ ├── bufferpool.hpp │ │ ├── detail │ │ │ ├── exception_ptr.hpp │ │ │ └── async_promise.hpp │ │ ├── opencl │ │ │ ├── runtime │ │ │ │ ├── opencl_svm_definitions.hpp │ │ │ │ ├── opencl_core_wrappers.hpp │ │ │ │ ├── opencl_gl_wrappers.hpp │ │ │ │ ├── opencl_clamdfft.hpp │ │ │ │ ├── opencl_clamdblas.hpp │ │ │ │ ├── opencl_gl.hpp │ │ │ │ ├── autogenerated │ │ │ │ │ └── opencl_gl_wrappers.hpp │ │ │ │ └── opencl_svm_20.hpp │ │ │ └── opencl_svm.hpp │ │ ├── bindings_utils.hpp │ │ ├── core.hpp │ │ ├── ocl_genbase.hpp │ │ └── va_intel.hpp │ │ ├── features2d │ │ ├── hal │ │ │ └── interface.h │ │ └── features2d.hpp │ │ ├── dnn │ │ ├── version.hpp │ │ ├── utils │ │ │ └── inference_engine.hpp │ │ └── layer.details.hpp │ │ ├── opencv_modules.hpp │ │ ├── gapi.hpp │ │ ├── imgproc │ │ ├── hal │ │ │ └── interface.h │ │ └── imgproc.hpp │ │ ├── videoio │ │ ├── registry.hpp │ │ └── videoio.hpp │ │ ├── ml │ │ ├── ml.inl.hpp │ │ └── ml.hpp │ │ ├── world.hpp │ │ ├── calib3d │ │ └── calib3d.hpp │ │ ├── highgui │ │ └── highgui.hpp │ │ ├── objdetect │ │ └── objdetect.hpp │ │ └── video.hpp ├── Ncnn_FaceTrack.vcxproj.user ├── .gitignore ├── README.md ├── Ncnn_FaceTrack.vcxproj.filters └── Ncnn_FaceTrack.sln ├── Prj-Linux ├── det1.bin ├── det2.bin ├── det3.bin ├── mtcnn.h ├── README.md ├── det1.param ├── CMakeLists.txt ├── det2.param ├── det3.param └── colotracker.h ├── resource └── demo.gif └── README.md /Prj-Android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Prj-Win/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/main.cpp -------------------------------------------------------------------------------- /Prj-Win/mtcnn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/mtcnn.h -------------------------------------------------------------------------------- /Prj-Linux/det1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Linux/det1.bin -------------------------------------------------------------------------------- /Prj-Linux/det2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Linux/det2.bin -------------------------------------------------------------------------------- /Prj-Linux/det3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Linux/det3.bin -------------------------------------------------------------------------------- /Prj-Linux/mtcnn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Linux/mtcnn.h -------------------------------------------------------------------------------- /resource/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/resource/demo.gif -------------------------------------------------------------------------------- /Prj-Win/models/det1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/models/det1.bin -------------------------------------------------------------------------------- /Prj-Win/models/det2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/models/det2.bin -------------------------------------------------------------------------------- /Prj-Win/models/det3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/models/det3.bin -------------------------------------------------------------------------------- /Prj-Win/3rd/ncnn/lib/ncnn.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/3rd/ncnn/lib/ncnn.lib -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/lib/opencv_world411.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Win/3rd/opencv/lib/opencv_world411.lib -------------------------------------------------------------------------------- /Prj-Android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/drawable/face_005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/drawable/face_005.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/drawable/ic_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/drawable/ic_logo.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/assets/FaceTracking/models/det1.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/assets/FaceTracking/models/det1.bin -------------------------------------------------------------------------------- /Prj-Android/app/src/main/assets/FaceTracking/models/det2.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/assets/FaceTracking/models/det2.bin -------------------------------------------------------------------------------- /Prj-Android/app/src/main/assets/FaceTracking/models/det3.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/assets/FaceTracking/models/det3.bin -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeusees/HyperFT/HEAD/Prj-Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/imgcodecs/imgcodecs_c.h: -------------------------------------------------------------------------------- 1 | #error "This header with legacy C API declarations has been removed from OpenCV. Legacy contants are available from legacy/constants_c.h file." 2 | -------------------------------------------------------------------------------- /Prj-Win/Ncnn_FaceTrack.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/flann/dummy.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef OPENCV_FLANN_DUMMY_H_ 3 | #define OPENCV_FLANN_DUMMY_H_ 4 | 5 | namespace cvflann 6 | { 7 | 8 | CV_DEPRECATED inline void dummyfunc() {} 9 | 10 | } 11 | 12 | 13 | #endif /* OPENCV_FLANN_DUMMY_H_ */ 14 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/java/com/zeusee_soft/zmobileapi/AuthCallback.java: -------------------------------------------------------------------------------- 1 | package com.zeusee_soft.zmobileapi; 2 | 3 | /** 4 | * Created by 海米 on 2018/11/28. 5 | */ 6 | 7 | public interface AuthCallback { 8 | void onAuthResult(boolean var1, String var2); 9 | } 10 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/anim/push_bottom_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /Prj-Android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Apr 01 00:00:51 CST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 7 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | #66000000 8 | 9 | -------------------------------------------------------------------------------- /Prj-Android/app/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # For more information about using CMake with Android Studio, read the 2 | # documentation: https://d.android.com/studio/projects/add-native-code.html 3 | 4 | # Sets the minimum version of CMake required to build the native library. 5 | 6 | cmake_minimum_required(VERSION 3.4.1) 7 | 8 | add_subdirectory(src/main/cpp) -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/anim/push_buttom_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /Prj-Android/local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Mon Jun 10 14:58:06 CST 2019 8 | ndk.dir=/Users/yujinke/me/android-ndk-r15c 9 | sdk.dir=/Users/yujinke/Library/Android/sdk 10 | -------------------------------------------------------------------------------- /Prj-Win/.gitignore: -------------------------------------------------------------------------------- 1 | Release 2 | 3 | # Prerequisites 4 | *.d 5 | 6 | # Compiled Object files 7 | *.slo 8 | *.lo 9 | *.o 10 | *.obj 11 | 12 | # Precompiled Headers 13 | *.gch 14 | *.pch 15 | *.opendb 16 | *.db 17 | 18 | # Compiled Dynamic libraries 19 | *.so 20 | *.dylib 21 | !*.dll 22 | 23 | # Fortran module files 24 | *.mod 25 | *.smod 26 | 27 | # Compiled Static libraries 28 | *.lai 29 | *.la 30 | *.a 31 | !*.lib 32 | 33 | # Executables 34 | !*.exe 35 | *.out 36 | *.app 37 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/photo/legacy/constants_c.h: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_PHOTO_LEGACY_CONSTANTS_H 6 | #define OPENCV_PHOTO_LEGACY_CONSTANTS_H 7 | 8 | enum InpaintingModes 9 | { 10 | CV_INPAINT_NS =0, 11 | CV_INPAINT_TELEA =1 12 | }; 13 | 14 | #endif // OPENCV_PHOTO_LEGACY_CONSTANTS_H 15 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | face_tracking 3 | Tracking 4 | Dummy Button 5 | DUMMY\nCONTENT 6 | 7 | 停止录制 8 | 暂时无法录制 9 | 存储空间不足 10 | 录制已到限定时长 11 | 12 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/video/legacy/constants_c.h: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_VIDEO_LEGACY_CONSTANTS_H 6 | #define OPENCV_VIDEO_LEGACY_CONSTANTS_H 7 | 8 | enum 9 | { 10 | CV_LKFLOW_PYR_A_READY = 1, 11 | CV_LKFLOW_PYR_B_READY = 2, 12 | CV_LKFLOW_INITIAL_GUESSES = 4, 13 | CV_LKFLOW_GET_MIN_EIGENVALS = 8 14 | }; 15 | 16 | #endif // OPENCV_VIDEO_LEGACY_CONSTANTS_H 17 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/gpu/ggpukernel.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GGPUKERNEL_HPP 9 | #define OPENCV_GAPI_GGPUKERNEL_HPP 10 | /** @file 11 | * @deprecated Use instead. 12 | */ 13 | 14 | #include 15 | #define GAPI_GPU_KERNEL GAPI_OCL_KERNEL 16 | 17 | 18 | #endif // OPENCV_GAPI_GGPUKERNEL_HPP 19 | -------------------------------------------------------------------------------- /Prj-Linux/README.md: -------------------------------------------------------------------------------- 1 | # HyperFT linux-ncnn版本 2 | 基于mtcnn人脸检测+onet人脸跟踪(光流跟踪) 3 | 4 | #开发环境 5 | ncnn ubuntu18.04 opencv4.01 6 | 7 | 8 | #开源框架 9 | + [ncnn](https://github.com/Tencent/ncnn) 10 | 11 | + [opencv](https://github.com/opencv/opencv) 12 | 13 | # 引用 14 | [HyperFT](https://github.com/zeusees/HyperFT) 15 | https://github.com/qaz734913414/Ncnn_FaceTrack 16 | 17 | 编译方步骤: 18 | 1、修改CMakeList.txt中的ncnn路径,修改成你自己的路径; 19 | 2、mkdir build 20 | 3、cd build 21 | 4、cmake .. 22 | 5、make -j4 23 | 24 | 注意:运行的时候出现错误了,可能是模型路径不对。 25 | 26 | 27 | Todo: 28 | 1、将MTCNN检测换成MSSD相关的检测模型,这样速度不会随着人脸数目增加而增加 29 | 2、使用更快的O网络 30 | 3、人头姿态部分,目前使用的版本速度不是很快,正在优化中 31 | 32 | -------------------------------------------------------------------------------- /Prj-Android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | google() 6 | jcenter() 7 | 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.0.1' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/layout/fragment_camera_overlap.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/fluid/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_FLUID_CORE_HPP 9 | #define OPENCV_GAPI_FLUID_CORE_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { namespace gapi { namespace core { namespace fluid { 15 | 16 | GAPI_EXPORTS GKernelPackage kernels(); 17 | 18 | }}}} 19 | 20 | #endif // OPENCV_GAPI_FLUID_CORE_HPP 21 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/fluid/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_FLUID_IMGPROC_HPP 9 | #define OPENCV_GAPI_FLUID_IMGPROC_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { namespace gapi { namespace imgproc { namespace fluid { 15 | 16 | GAPI_EXPORTS GKernelPackage kernels(); 17 | 18 | }}}} 19 | 20 | #endif // OPENCV_GAPI_FLUID_IMGPROC_HPP 21 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/core/utils/logtag.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_LOGTAG_HPP 6 | #define OPENCV_CORE_LOGTAG_HPP 7 | 8 | #include "opencv2/core/cvstd.hpp" 9 | #include "logger.defines.hpp" 10 | 11 | namespace cv { 12 | namespace utils { 13 | namespace logging { 14 | 15 | struct LogTag 16 | { 17 | const char* name; 18 | LogLevel level; 19 | 20 | inline LogTag(const char* _name, LogLevel _level) 21 | : name(_name) 22 | , level(_level) 23 | {} 24 | }; 25 | 26 | }}} 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/util/compiler_hints.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | #ifndef OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP 8 | #define OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP 9 | 10 | namespace cv 11 | { 12 | namespace util 13 | { 14 | //! Utility template function to prevent "unused" warnings by various compilers. 15 | template void suppress_unused_warning( const T& ) {} 16 | } // namespace util 17 | } // namespace cv 18 | 19 | #endif /* OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP */ 20 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/features2d/hal/interface.h: -------------------------------------------------------------------------------- 1 | #ifndef OPENCV_FEATURE2D_HAL_INTERFACE_H 2 | #define OPENCV_FEATURE2D_HAL_INTERFACE_H 3 | 4 | #include "opencv2/core/cvdef.h" 5 | //! @addtogroup featrure2d_hal_interface 6 | //! @{ 7 | 8 | //! @name Fast feature detector types 9 | //! @sa cv::FastFeatureDetector 10 | //! @{ 11 | #define CV_HAL_TYPE_5_8 0 12 | #define CV_HAL_TYPE_7_12 1 13 | #define CV_HAL_TYPE_9_16 2 14 | //! @} 15 | 16 | //! @name Key point 17 | //! @sa cv::KeyPoint 18 | //! @{ 19 | struct CV_EXPORTS cvhalKeyPoint 20 | { 21 | float x; 22 | float y; 23 | float size; 24 | float angle; 25 | float response; 26 | int octave; 27 | int class_id; 28 | }; 29 | //! @} 30 | 31 | //! @} 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/opencv_includes.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | 3 | // It is subject to the license terms in the LICENSE file found in the top-level directory 4 | // of this distribution and at http://opencv.org/license.html. 5 | // 6 | // Copyright (C) 2018 Intel Corporation 7 | 8 | 9 | #ifndef OPENCV_GAPI_OPENCV_INCLUDES_HPP 10 | #define OPENCV_GAPI_OPENCV_INCLUDES_HPP 11 | 12 | #if !defined(GAPI_STANDALONE) 13 | # include 14 | # include 15 | # include 16 | # include 17 | #else // Without OpenCV 18 | # include 19 | #endif // !defined(GAPI_STANDALONE) 20 | 21 | #endif // OPENCV_GAPI_OPENCV_INCLUDES_HPP 22 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/gpu/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GPU_CORE_API_HPP 9 | #define OPENCV_GAPI_GPU_CORE_API_HPP 10 | /** @file 11 | * @deprecated Use instead. 12 | */ 13 | 14 | #include 15 | 16 | namespace cv { 17 | namespace gapi { 18 | namespace core { 19 | namespace gpu { 20 | using namespace ocl; 21 | } // namespace gpu 22 | } // namespace core 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_GPU_CORE_API_HPP 28 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/cpu/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_CPU_CORE_API_HPP 9 | #define OPENCV_GAPI_CPU_CORE_API_HPP 10 | 11 | #include // GKernelPackage 12 | #include // GAPI_EXPORTS 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace core { 17 | namespace cpu { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace cpu 22 | } // namespace core 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_CPU_CORE_API_HPP 28 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/ocl/core.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OCL_CORE_API_HPP 9 | #define OPENCV_GAPI_OCL_CORE_API_HPP 10 | 11 | #include // GAPI_EXPORTS 12 | #include // GKernelPackage 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace core { 17 | namespace ocl { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace ocl 22 | } // namespace core 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_OCL_CORE_API_HPP 28 | -------------------------------------------------------------------------------- /Prj-Android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/gpu/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_GPU_IMGPROC_API_HPP 9 | #define OPENCV_GAPI_GPU_IMGPROC_API_HPP 10 | /** @file 11 | * @deprecated Use instead. 12 | */ 13 | 14 | #include 15 | 16 | 17 | namespace cv { 18 | namespace gapi { 19 | namespace imgproc { 20 | namespace gpu { 21 | using namespace ocl; 22 | } // namespace gpu 23 | } // namespace imgproc 24 | } // namespace gapi 25 | } // namespace cv 26 | 27 | 28 | #endif // OPENCV_GAPI_GPU_IMGPROC_API_HPP 29 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/cpu/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_CPU_IMGPROC_API_HPP 9 | #define OPENCV_GAPI_CPU_IMGPROC_API_HPP 10 | 11 | #include // GAPI_EXPORTS 12 | #include // GKernelPackage 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace imgproc { 17 | namespace cpu { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace cpu 22 | } // namespace imgproc 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_CPU_IMGPROC_API_HPP 28 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/ocl/imgproc.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OCL_IMGPROC_API_HPP 9 | #define OPENCV_GAPI_OCL_IMGPROC_API_HPP 10 | 11 | #include // GAPI_EXPORTS 12 | #include // GKernelPackage 13 | 14 | namespace cv { 15 | namespace gapi { 16 | namespace imgproc { 17 | namespace ocl { 18 | 19 | GAPI_EXPORTS GKernelPackage kernels(); 20 | 21 | } // namespace ocl 22 | } // namespace imgproc 23 | } // namespace gapi 24 | } // namespace cv 25 | 26 | 27 | #endif // OPENCV_GAPI_OCL_IMGPROC_API_HPP 28 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/java/trackingsoft/tracking/Utils.java: -------------------------------------------------------------------------------- 1 | package trackingsoft.tracking; 2 | 3 | import android.graphics.Rect; 4 | 5 | public class Utils { 6 | static Rect get_boundingbox(int pts[],final int num_pts) 7 | { 8 | int _x1 = pts[0] ; 9 | int _y1 = pts[1] ; 10 | int _x2 = pts[0] ; 11 | int _y2 = pts[1] ; 12 | 13 | for(int i = 1 ; i < num_pts; i++) 14 | { 15 | int x = pts[i*2]; 16 | int y = pts[i*2+1]; 17 | if(x>_x2) 18 | _x2 = x; 19 | if(x<_x1) 20 | _x1 = x; 21 | if(y>_y2) 22 | _y2 = y; 23 | if(y<_y1) 24 | _y1 = y; 25 | } 26 | 27 | Rect rect = new Rect(_x1,_y1,_x2,_y2); 28 | return rect; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/core/ovx.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | // Copyright (C) 2016, Intel Corporation, all rights reserved. 6 | // Third party copyrights are property of their respective owners. 7 | 8 | // OpenVX related definitions and declarations 9 | 10 | #pragma once 11 | #ifndef OPENCV_OVX_HPP 12 | #define OPENCV_OVX_HPP 13 | 14 | #include "cvdef.h" 15 | 16 | namespace cv 17 | { 18 | /// Check if use of OpenVX is possible 19 | CV_EXPORTS_W bool haveOpenVX(); 20 | 21 | /// Check if use of OpenVX is enabled 22 | CV_EXPORTS_W bool useOpenVX(); 23 | 24 | /// Enable/disable use of OpenVX 25 | CV_EXPORTS_W void setUseOpenVX(bool flag); 26 | } // namespace cv 27 | 28 | #endif // OPENCV_OVX_HPP 29 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/dnn/version.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_DNN_VERSION_HPP 6 | #define OPENCV_DNN_VERSION_HPP 7 | 8 | /// Use with major OpenCV version only. 9 | #define OPENCV_DNN_API_VERSION 20190621 10 | 11 | #if !defined CV_DOXYGEN && !defined CV_STATIC_ANALYSIS && !defined CV_DNN_DONT_ADD_INLINE_NS 12 | #define CV__DNN_INLINE_NS __CV_CAT(dnn4_v, OPENCV_DNN_API_VERSION) 13 | #define CV__DNN_INLINE_NS_BEGIN namespace CV__DNN_INLINE_NS { 14 | #define CV__DNN_INLINE_NS_END } 15 | namespace cv { namespace dnn { namespace CV__DNN_INLINE_NS { } using namespace CV__DNN_INLINE_NS; }} 16 | #else 17 | #define CV__DNN_INLINE_NS_BEGIN 18 | #define CV__DNN_INLINE_NS_END 19 | #endif 20 | 21 | #endif // OPENCV_DNN_VERSION_HPP 22 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/own/exports.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_OWN_TYPES_HPP 9 | #define OPENCV_GAPI_OWN_TYPES_HPP 10 | 11 | # if defined(__OPENCV_BUILD) 12 | # include 13 | # define GAPI_EXPORTS CV_EXPORTS 14 | 15 | # else 16 | # if defined _WIN32 17 | # define GAPI_EXPORTS __declspec(dllexport) 18 | # elif defined __GNUC__ && __GNUC__ >= 4 19 | # define GAPI_EXPORTS __attribute__ ((visibility ("default"))) 20 | # endif 21 | 22 | # ifndef GAPI_EXPORTS 23 | # define GAPI_EXPORTS 24 | # endif 25 | 26 | # endif 27 | 28 | #endif // OPENCV_GAPI_OWN_TYPES_HPP 29 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/opencv_modules.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ** File generated automatically, do not modify ** 3 | * 4 | * This file defines the list of modules available in current build configuration 5 | * 6 | * 7 | */ 8 | 9 | // This definition means that OpenCV is built with enabled non-free code. 10 | // For example, patented algorithms for non-profit/non-commercial use only. 11 | /* #undef OPENCV_ENABLE_NONFREE */ 12 | 13 | #define HAVE_OPENCV_CALIB3D 14 | #define HAVE_OPENCV_CORE 15 | #define HAVE_OPENCV_DNN 16 | #define HAVE_OPENCV_FEATURES2D 17 | #define HAVE_OPENCV_FLANN 18 | #define HAVE_OPENCV_GAPI 19 | #define HAVE_OPENCV_HIGHGUI 20 | #define HAVE_OPENCV_IMGCODECS 21 | #define HAVE_OPENCV_IMGPROC 22 | #define HAVE_OPENCV_ML 23 | #define HAVE_OPENCV_OBJDETECT 24 | #define HAVE_OPENCV_PHOTO 25 | #define HAVE_OPENCV_STITCHING 26 | #define HAVE_OPENCV_VIDEO 27 | #define HAVE_OPENCV_VIDEOIO 28 | #define HAVE_OPENCV_WORLD 29 | 30 | 31 | -------------------------------------------------------------------------------- /Prj-Android/app/src/androidTest/java/face/zeusees/zeuseesfacetracking/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package face.zeusees.zeuseesfacetracking; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("face.zeusees.zeuseesfacetracking", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/core/utils/allocator_stats.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_CORE_ALLOCATOR_STATS_HPP 6 | #define OPENCV_CORE_ALLOCATOR_STATS_HPP 7 | 8 | #include "../cvdef.h" 9 | 10 | namespace cv { namespace utils { 11 | 12 | class AllocatorStatisticsInterface 13 | { 14 | protected: 15 | AllocatorStatisticsInterface() {} 16 | virtual ~AllocatorStatisticsInterface() {} 17 | public: 18 | virtual uint64_t getCurrentUsage() const = 0; 19 | virtual uint64_t getTotalUsage() const = 0; 20 | virtual uint64_t getNumberOfAllocations() const = 0; 21 | virtual uint64_t getPeakUsage() const = 0; 22 | 23 | /** set peak usage = current usage */ 24 | virtual void resetPeakUsage() = 0; 25 | }; 26 | 27 | }} // namespace 28 | 29 | #endif // OPENCV_CORE_ALLOCATOR_STATS_HPP 30 | -------------------------------------------------------------------------------- /Prj-Linux/det1.param: -------------------------------------------------------------------------------- 1 | 7767517 2 | 12 13 3 | Input data 0 1 data 0=3 1=12 2=12 4 | Convolution conv1 1 1 data conv1 0=10 1=3 2=1 3=1 4=0 5=1 6=270 5 | PReLU PReLU1 1 1 conv1 conv1_PReLU1 0=10 6 | Pooling pool1 1 1 conv1_PReLU1 pool1 0=0 1=2 2=2 3=0 4=0 7 | Convolution conv2 1 1 pool1 conv2 0=16 1=3 2=1 3=1 4=0 5=1 6=1440 8 | PReLU PReLU2 1 1 conv2 conv2_PReLU2 0=16 9 | Convolution conv3 1 1 conv2_PReLU2 conv3 0=32 1=3 2=1 3=1 4=0 5=1 6=4608 10 | PReLU PReLU3 1 1 conv3 conv3_PReLU3 0=32 11 | Split splitncnn_0 1 2 conv3_PReLU3 conv3_PReLU3_splitncnn_0 conv3_PReLU3_splitncnn_1 12 | Convolution conv4-1 1 1 conv3_PReLU3_splitncnn_1 conv4-1 0=2 1=1 2=1 3=1 4=0 5=1 6=64 13 | Convolution conv4-2 1 1 conv3_PReLU3_splitncnn_0 conv4-2 0=4 1=1 2=1 3=1 4=0 5=1 6=128 14 | Softmax prob1 1 1 conv4-1 prob1 0=0 15 | -------------------------------------------------------------------------------- /Prj-Win/models/det1.param: -------------------------------------------------------------------------------- 1 | 7767517 2 | 12 13 3 | Input data 0 1 data 0=3 1=12 2=12 4 | Convolution conv1 1 1 data conv1 0=10 1=3 2=1 3=1 4=0 5=1 6=270 5 | PReLU PReLU1 1 1 conv1 conv1_PReLU1 0=10 6 | Pooling pool1 1 1 conv1_PReLU1 pool1 0=0 1=2 2=2 3=0 4=0 7 | Convolution conv2 1 1 pool1 conv2 0=16 1=3 2=1 3=1 4=0 5=1 6=1440 8 | PReLU PReLU2 1 1 conv2 conv2_PReLU2 0=16 9 | Convolution conv3 1 1 conv2_PReLU2 conv3 0=32 1=3 2=1 3=1 4=0 5=1 6=4608 10 | PReLU PReLU3 1 1 conv3 conv3_PReLU3 0=32 11 | Split splitncnn_0 1 2 conv3_PReLU3 conv3_PReLU3_splitncnn_0 conv3_PReLU3_splitncnn_1 12 | Convolution conv4-1 1 1 conv3_PReLU3_splitncnn_1 conv4-1 0=2 1=1 2=1 3=1 4=0 5=1 6=64 13 | Convolution conv4-2 1 1 conv3_PReLU3_splitncnn_0 conv4-2 0=4 1=1 2=1 3=1 4=0 5=1 6=128 14 | Softmax prob1 1 1 conv4-1 prob1 0=0 15 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/gapi/util/throw.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | // 5 | // Copyright (C) 2018 Intel Corporation 6 | 7 | 8 | #ifndef OPENCV_GAPI_UTIL_THROW_HPP 9 | #define OPENCV_GAPI_UTIL_THROW_HPP 10 | 11 | #include // std::forward 12 | 13 | #if !defined(__EXCEPTIONS) 14 | #include 15 | #include 16 | #endif 17 | 18 | namespace cv 19 | { 20 | namespace util 21 | { 22 | template 23 | [[noreturn]] void throw_error(ExceptionType &&e) 24 | { 25 | #if defined(__EXCEPTIONS) || defined(_CPPUNWIND) 26 | throw std::forward(e); 27 | #else 28 | fprintf(stderr, "An exception thrown! %s\n" , e.what()); 29 | fflush(stderr); 30 | abort(); 31 | #endif 32 | } 33 | } // namespace util 34 | } // namespace cv 35 | 36 | #endif // OPENCV_GAPI_UTIL_THROW_HPP 37 | -------------------------------------------------------------------------------- /Prj-Win/3rd/opencv/include/opencv2/core/version.hpp: -------------------------------------------------------------------------------- 1 | // This file is part of OpenCV project. 2 | // It is subject to the license terms in the LICENSE file found in the top-level directory 3 | // of this distribution and at http://opencv.org/license.html. 4 | 5 | #ifndef OPENCV_VERSION_HPP 6 | #define OPENCV_VERSION_HPP 7 | 8 | #define CV_VERSION_MAJOR 4 9 | #define CV_VERSION_MINOR 1 10 | #define CV_VERSION_REVISION 1 11 | #define CV_VERSION_STATUS "-pre" 12 | 13 | #define CVAUX_STR_EXP(__A) #__A 14 | #define CVAUX_STR(__A) CVAUX_STR_EXP(__A) 15 | 16 | #define CVAUX_STRW_EXP(__A) L ## #__A 17 | #define CVAUX_STRW(__A) CVAUX_STRW_EXP(__A) 18 | 19 | #define CV_VERSION CVAUX_STR(CV_VERSION_MAJOR) "." CVAUX_STR(CV_VERSION_MINOR) "." CVAUX_STR(CV_VERSION_REVISION) CV_VERSION_STATUS 20 | 21 | /* old style version constants*/ 22 | #define CV_MAJOR_VERSION CV_VERSION_MAJOR 23 | #define CV_MINOR_VERSION CV_VERSION_MINOR 24 | #define CV_SUBMINOR_VERSION CV_VERSION_REVISION 25 | 26 | #endif // OPENCV_VERSION_HPP 27 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/assets/FaceTracking/models/det1.param: -------------------------------------------------------------------------------- 1 | 7767517 2 | 12 13 3 | Input data 0 1 data 0=3 1=12 2=12 4 | Convolution conv1 1 1 data conv1 0=10 1=3 2=1 3=1 4=0 5=1 6=270 5 | PReLU PReLU1 1 1 conv1 conv1_PReLU1 0=10 6 | Pooling pool1 1 1 conv1_PReLU1 pool1 0=0 1=2 2=2 3=0 4=0 7 | Convolution conv2 1 1 pool1 conv2 0=16 1=3 2=1 3=1 4=0 5=1 6=1440 8 | PReLU PReLU2 1 1 conv2 conv2_PReLU2 0=16 9 | Convolution conv3 1 1 conv2_PReLU2 conv3 0=32 1=3 2=1 3=1 4=0 5=1 6=4608 10 | PReLU PReLU3 1 1 conv3 conv3_PReLU3 0=32 11 | Split splitncnn_0 1 2 conv3_PReLU3 conv3_PReLU3_splitncnn_0 conv3_PReLU3_splitncnn_1 12 | Convolution conv4-1 1 1 conv3_PReLU3_splitncnn_1 conv4-1 0=2 1=1 2=1 3=1 4=0 5=1 6=64 13 | Convolution conv4-2 1 1 conv3_PReLU3_splitncnn_0 conv4-2 0=4 1=1 2=1 3=1 4=0 5=1 6=128 14 | Softmax prob1 1 1 conv4-1 prob1 0=0 15 | -------------------------------------------------------------------------------- /Prj-Android/app/src/main/res/layout/activity_start.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |