├── .classpath ├── .cproject ├── .project ├── .settings ├── desktop.ini └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── README.md ├── bin ├── AndroidManifest.xml ├── Emotiondetection.apk ├── OpenCV Sample - face-detection.apk ├── R.txt ├── classes.dex ├── classes │ ├── com │ │ ├── desktop.ini │ │ └── emotion │ │ │ ├── desktop.ini │ │ │ └── facedetection │ │ │ ├── BuildConfig.class │ │ │ ├── FaceDetectionView.class │ │ │ ├── FdActivity$1$1.class │ │ │ ├── FdActivity$1.class │ │ │ ├── FdActivity$2.class │ │ │ ├── FdActivity.class │ │ │ ├── FpsMeter.class │ │ │ ├── R$attr.class │ │ │ ├── R$color.class │ │ │ ├── R$drawable.class │ │ │ ├── R$id.class │ │ │ ├── R$layout.class │ │ │ ├── R$raw.class │ │ │ ├── R$string.class │ │ │ ├── R$style.class │ │ │ ├── R$styleable.class │ │ │ ├── R.class │ │ │ ├── SampleCvViewBase.class │ │ │ └── desktop.ini │ ├── desktop.ini │ └── org │ │ ├── desktop.ini │ │ └── opencv │ │ ├── R$attr.class │ │ ├── R$id.class │ │ ├── R$styleable.class │ │ ├── R.class │ │ ├── desktop.ini │ │ └── samples │ │ ├── desktop.ini │ │ └── facedetect │ │ ├── DetectionBasedTracker.class │ │ └── desktop.ini ├── desktop.ini ├── dexedLibs │ ├── desktop.ini │ └── opencv library - 2.4.6-6979bdfd6b515aa5da9dffe500a0d733.jar ├── res │ ├── crunch │ │ ├── desktop.ini │ │ └── drawable │ │ │ ├── big_smile.png │ │ │ ├── desktop.ini │ │ │ └── icon.png │ └── desktop.ini └── resources.ap_ ├── desktop.ini ├── gen ├── com │ ├── desktop.ini │ └── emotion │ │ ├── desktop.ini │ │ └── facedetection │ │ ├── BuildConfig.java │ │ ├── R.java │ │ └── desktop.ini ├── desktop.ini └── org │ ├── desktop.ini │ └── opencv │ ├── R.java │ └── desktop.ini ├── jni ├── Android.mk ├── Application.mk ├── DetectionBasedTracker_jni.cpp ├── DetectionBasedTracker_jni.h └── desktop.ini ├── libs ├── armeabi-v7a │ ├── desktop.ini │ └── libdetection_based_tracker.so └── desktop.ini ├── lint.xml ├── obj ├── desktop.ini └── local │ ├── armeabi-v7a │ ├── desktop.ini │ ├── libdetection_based_tracker.so │ └── objs │ │ ├── desktop.ini │ │ └── detection_based_tracker │ │ ├── DetectionBasedTracker_jni.o │ │ ├── DetectionBasedTracker_jni.o.d │ │ └── desktop.ini │ └── desktop.ini ├── project.properties ├── res ├── desktop.ini ├── drawable │ ├── big_smile.png │ ├── desktop.ini │ └── icon.png ├── layout │ ├── activity_main_menu.xml │ ├── desktop.ini │ └── face_detect_surface_view.xml ├── raw │ ├── desktop.ini │ ├── haarcascade_eye.xml │ ├── haarcascade_eye_tree_eyeglasses.xml │ ├── haarcascade_frontalface_alt.xml │ ├── haarcascade_mcs_mouth.xml │ ├── haarcascade_smile.xml │ ├── lbpcascade_frontalface.xml │ ├── sad_custom1.xml │ ├── sad_pre.xml │ └── smile5.xml └── values │ ├── colors.xml │ ├── desktop.ini │ ├── strings.xml │ └── styles.xml └── src ├── com ├── desktop.ini └── emotion │ ├── desktop.ini │ └── facedetection │ ├── FaceDetectionView.java │ ├── FdActivity.java │ ├── FpsMeter.java │ ├── SampleCvViewBase.java │ └── desktop.ini ├── desktop.ini └── org ├── desktop.ini └── opencv ├── desktop.ini └── samples ├── desktop.ini └── facedetect ├── DetectionBasedTracker.java └── desktop.ini /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.cproject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 33 | 36 | 37 | 38 | 39 | 45 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | OpenCV Sample - face-detection 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | auto,full,incremental, 11 | 12 | 13 | ?name? 14 | 15 | 16 | 17 | org.eclipse.cdt.make.core.append_environment 18 | true 19 | 20 | 21 | org.eclipse.cdt.make.core.autoBuildTarget 22 | 23 | 24 | 25 | org.eclipse.cdt.make.core.buildArguments 26 | 27 | 28 | 29 | org.eclipse.cdt.make.core.buildCommand 30 | "${NDKROOT}/ndk-build.cmd" 31 | 32 | 33 | org.eclipse.cdt.make.core.cleanBuildTarget 34 | clean 35 | 36 | 37 | org.eclipse.cdt.make.core.contents 38 | org.eclipse.cdt.make.core.activeConfigSettings 39 | 40 | 41 | org.eclipse.cdt.make.core.enableAutoBuild 42 | true 43 | 44 | 45 | org.eclipse.cdt.make.core.enableCleanBuild 46 | false 47 | 48 | 49 | org.eclipse.cdt.make.core.enableFullBuild 50 | true 51 | 52 | 53 | org.eclipse.cdt.make.core.fullBuildTarget 54 | 55 | 56 | 57 | org.eclipse.cdt.make.core.stopOnError 58 | true 59 | 60 | 61 | org.eclipse.cdt.make.core.useDefaultBuildCmd 62 | false 63 | 64 | 65 | 66 | 67 | com.android.ide.eclipse.adt.ResourceManagerBuilder 68 | 69 | 70 | 71 | 72 | com.android.ide.eclipse.adt.PreCompilerBuilder 73 | 74 | 75 | 76 | 77 | org.eclipse.jdt.core.javabuilder 78 | 79 | 80 | 81 | 82 | com.android.ide.eclipse.adt.ApkBuilder 83 | 84 | 85 | 86 | 87 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 88 | full,incremental, 89 | 90 | 91 | 92 | 93 | 94 | com.android.ide.eclipse.adt.AndroidNature 95 | org.eclipse.jdt.core.javanature 96 | org.eclipse.cdt.core.cnature 97 | org.eclipse.cdt.core.ccnature 98 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 99 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 100 | 101 | 102 | -------------------------------------------------------------------------------- /.settings/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.6 12 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 10 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | SmileDetection 2 | ============== 3 | 4 | This is an Android Based Smile Detection Project , using OpenCV and JavaCV. It works well with android and to make it work you need to install the open cv libraries in your Android Phone. 5 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 10 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /bin/Emotiondetection.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/Emotiondetection.apk -------------------------------------------------------------------------------- /bin/OpenCV Sample - face-detection.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/OpenCV Sample - face-detection.apk -------------------------------------------------------------------------------- /bin/R.txt: -------------------------------------------------------------------------------- 1 | int attr camera_id 0x7f010001 2 | int attr show_fps 0x7f010000 3 | int color black_overlay 0x7f060000 4 | int drawable big_smile 0x7f020000 5 | int drawable icon 0x7f020001 6 | int id Space1 0x7f050004 7 | int id Space2 0x7f050006 8 | int id Space3 0x7f050005 9 | int id any 0x7f050000 10 | int id back 0x7f050001 11 | int id btnCamera 0x7f050007 12 | int id btnDB 0x7f050008 13 | int id btnTrain 0x7f050009 14 | int id container 0x7f050003 15 | int id fd_activity_surface_view 0x7f05000a 16 | int id front 0x7f050002 17 | int layout activity_main_menu 0x7f030000 18 | int layout face_detect_surface_view 0x7f030001 19 | int raw haarcascade_eye 0x7f040000 20 | int raw haarcascade_eye_tree_eyeglasses 0x7f040001 21 | int raw haarcascade_frontalface_alt 0x7f040002 22 | int raw haarcascade_mcs_mouth 0x7f040003 23 | int raw haarcascade_smile 0x7f040004 24 | int raw lbpcascade_frontalface 0x7f040005 25 | int raw smile5 0x7f040006 26 | int string app_name 0x7f070000 27 | int style ActionBarStyle 0x7f080002 28 | int style AppBaseTheme 0x7f080000 29 | int style AppTheme 0x7f080001 30 | int[] styleable CameraBridgeViewBase { 0x7f010000, 0x7f010001 } 31 | int styleable CameraBridgeViewBase_camera_id 1 32 | int styleable CameraBridgeViewBase_show_fps 0 33 | -------------------------------------------------------------------------------- /bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes.dex -------------------------------------------------------------------------------- /bin/classes/com/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/com/emotion/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/BuildConfig.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/FaceDetectionView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/FaceDetectionView.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/FdActivity$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/FdActivity$1$1.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/FdActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/FdActivity$1.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/FdActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/FdActivity$2.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/FdActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/FdActivity.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/FpsMeter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/FpsMeter.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$attr.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$color.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$color.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$drawable.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$id.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$layout.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$raw.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$raw.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$string.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$style.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R$styleable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R$styleable.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/R.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/SampleCvViewBase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/com/emotion/facedetection/SampleCvViewBase.class -------------------------------------------------------------------------------- /bin/classes/com/emotion/facedetection/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/org/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/org/opencv/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/org/opencv/R$attr.class -------------------------------------------------------------------------------- /bin/classes/org/opencv/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/org/opencv/R$id.class -------------------------------------------------------------------------------- /bin/classes/org/opencv/R$styleable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/org/opencv/R$styleable.class -------------------------------------------------------------------------------- /bin/classes/org/opencv/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/org/opencv/R.class -------------------------------------------------------------------------------- /bin/classes/org/opencv/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/org/opencv/samples/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/classes/org/opencv/samples/facedetect/DetectionBasedTracker.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/classes/org/opencv/samples/facedetect/DetectionBasedTracker.class -------------------------------------------------------------------------------- /bin/classes/org/opencv/samples/facedetect/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/dexedLibs/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/dexedLibs/opencv library - 2.4.6-6979bdfd6b515aa5da9dffe500a0d733.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/dexedLibs/opencv library - 2.4.6-6979bdfd6b515aa5da9dffe500a0d733.jar -------------------------------------------------------------------------------- /bin/res/crunch/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/res/crunch/drawable/big_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/res/crunch/drawable/big_smile.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/res/crunch/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/res/crunch/drawable/icon.png -------------------------------------------------------------------------------- /bin/res/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/bin/resources.ap_ -------------------------------------------------------------------------------- /desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /gen/com/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /gen/com/emotion/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /gen/com/emotion/facedetection/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.emotion.facedetection; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /gen/com/emotion/facedetection/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.emotion.facedetection; 9 | 10 | public final class R { 11 | public static final class attr { 12 | /**

May be an integer value, such as "100". 13 |

This may also be a reference to a resource (in the form 14 | "@[package:]type:name") or 15 | theme attribute (in the form 16 | "?[package:][type:]name") 17 | containing a value of this type. 18 |

May be one of the following constant values.

19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
ConstantValueDescription
any-1
back99
front98
28 | */ 29 | public static final int camera_id=0x7f010001; 30 | /**

Must be a boolean value, either "true" or "false". 31 |

This may also be a reference to a resource (in the form 32 | "@[package:]type:name") or 33 | theme attribute (in the form 34 | "?[package:][type:]name") 35 | containing a value of this type. 36 | */ 37 | public static final int show_fps=0x7f010000; 38 | } 39 | public static final class color { 40 | public static final int black_overlay=0x7f060000; 41 | } 42 | public static final class drawable { 43 | public static final int big_smile=0x7f020000; 44 | public static final int icon=0x7f020001; 45 | } 46 | public static final class id { 47 | public static final int Space1=0x7f050004; 48 | public static final int Space2=0x7f050006; 49 | public static final int Space3=0x7f050005; 50 | public static final int any=0x7f050000; 51 | public static final int back=0x7f050001; 52 | public static final int btnCamera=0x7f050007; 53 | public static final int btnDB=0x7f050008; 54 | public static final int btnTrain=0x7f050009; 55 | public static final int container=0x7f050003; 56 | public static final int fd_activity_surface_view=0x7f05000a; 57 | public static final int front=0x7f050002; 58 | } 59 | public static final class layout { 60 | public static final int activity_main_menu=0x7f030000; 61 | public static final int face_detect_surface_view=0x7f030001; 62 | } 63 | public static final class raw { 64 | public static final int haarcascade_eye=0x7f040000; 65 | public static final int haarcascade_eye_tree_eyeglasses=0x7f040001; 66 | public static final int haarcascade_frontalface_alt=0x7f040002; 67 | public static final int haarcascade_mcs_mouth=0x7f040003; 68 | public static final int lbpcascade_frontalface=0x7f040004; 69 | public static final int sad_custom1=0x7f040005; 70 | public static final int sad_pre=0x7f040006; 71 | public static final int smile5=0x7f040007; 72 | } 73 | public static final class string { 74 | public static final int app_name=0x7f070000; 75 | } 76 | public static final class style { 77 | public static final int ActionBarStyle=0x7f080002; 78 | /** 79 | Base application theme, dependent on API level. This theme is replaced 80 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices. 81 | 82 | 83 | 84 | Theme customizations available in newer API levels can go in 85 | res/values-vXX/styles.xml, while customizations related to 86 | backward-compatibility can go here. 87 | 88 | 89 | Application theme. 90 | */ 91 | public static final int AppBaseTheme=0x7f080000; 92 | public static final int AppTheme=0x7f080001; 93 | } 94 | public static final class styleable { 95 | /** Attributes that can be used with a CameraBridgeViewBase. 96 |

Includes the following attributes:

97 | 98 | 99 | 100 | 101 | 102 | 103 |
AttributeDescription
{@link #CameraBridgeViewBase_camera_id com.emotion.facedetection:camera_id}
{@link #CameraBridgeViewBase_show_fps com.emotion.facedetection:show_fps}
104 | @see #CameraBridgeViewBase_camera_id 105 | @see #CameraBridgeViewBase_show_fps 106 | */ 107 | public static final int[] CameraBridgeViewBase = { 108 | 0x7f010000, 0x7f010001 109 | }; 110 | /** 111 |

This symbol is the offset where the {@link com.emotion.facedetection.R.attr#camera_id} 112 | attribute's value can be found in the {@link #CameraBridgeViewBase} array. 113 | 114 | 115 |

May be an integer value, such as "100". 116 |

This may also be a reference to a resource (in the form 117 | "@[package:]type:name") or 118 | theme attribute (in the form 119 | "?[package:][type:]name") 120 | containing a value of this type. 121 |

May be one of the following constant values.

122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 |
ConstantValueDescription
any-1
back99
front98
131 | @attr name com.emotion.facedetection:camera_id 132 | */ 133 | public static final int CameraBridgeViewBase_camera_id = 1; 134 | /** 135 |

This symbol is the offset where the {@link com.emotion.facedetection.R.attr#show_fps} 136 | attribute's value can be found in the {@link #CameraBridgeViewBase} array. 137 | 138 | 139 |

Must be a boolean value, either "true" or "false". 140 |

This may also be a reference to a resource (in the form 141 | "@[package:]type:name") or 142 | theme attribute (in the form 143 | "?[package:][type:]name") 144 | containing a value of this type. 145 | @attr name com.emotion.facedetection:show_fps 146 | */ 147 | public static final int CameraBridgeViewBase_show_fps = 0; 148 | }; 149 | } 150 | -------------------------------------------------------------------------------- /gen/com/emotion/facedetection/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /gen/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /gen/org/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /gen/org/opencv/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | package org.opencv; 8 | 9 | public final class R { 10 | public static final class attr { 11 | public static final int camera_id = 0x7f010001; 12 | public static final int show_fps = 0x7f010000; 13 | } 14 | public static final class id { 15 | public static final int any = 0x7f050000; 16 | public static final int back = 0x7f050001; 17 | public static final int front = 0x7f050002; 18 | } 19 | public static final class styleable { 20 | public static final int[] CameraBridgeViewBase = { 0x7f010000, 0x7f010001 }; 21 | public static final int CameraBridgeViewBase_camera_id = 1; 22 | public static final int CameraBridgeViewBase_show_fps = 0; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /gen/org/opencv/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /jni/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | #OPENCV_CAMERA_MODULES:=off 6 | #OPENCV_INSTALL_MODULES:=off 7 | #OPENCV_LIB_TYPE:=SHARED 8 | include C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/OpenCV.mk 9 | 10 | LOCAL_SRC_FILES := DetectionBasedTracker_jni.cpp 11 | LOCAL_C_INCLUDES += $(LOCAL_PATH) 12 | LOCAL_LDLIBS += -llog -ldl 13 | 14 | LOCAL_MODULE := detection_based_tracker 15 | 16 | include $(BUILD_SHARED_LIBRARY) -------------------------------------------------------------------------------- /jni/Application.mk: -------------------------------------------------------------------------------- 1 | APP_STL := gnustl_static 2 | APP_CPPFLAGS := -frtti -fexceptions 3 | APP_ABI := armeabi-v7a 4 | APP_PLATFORM := android-8 5 | -------------------------------------------------------------------------------- /jni/DetectionBasedTracker_jni.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | #define LOG_TAG "FaceDetection/DetectionBasedTracker" 11 | #define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)) 12 | 13 | using namespace std; 14 | using namespace cv; 15 | 16 | inline void vector_Rect_to_Mat(vector& v_rect, Mat& mat) 17 | { 18 | mat = Mat(v_rect, true); 19 | } 20 | 21 | JNIEXPORT jlong JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeCreateObject 22 | (JNIEnv * jenv, jclass, jstring jFileName, jint faceSize) 23 | { 24 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeCreateObject enter"); 25 | const char* jnamestr = jenv->GetStringUTFChars(jFileName, NULL); 26 | string stdFileName(jnamestr); 27 | jlong result = 0; 28 | 29 | try 30 | { 31 | DetectionBasedTracker::Parameters DetectorParams; 32 | if (faceSize > 0) 33 | DetectorParams.minObjectSize = faceSize; 34 | result = (jlong)new DetectionBasedTracker(stdFileName, DetectorParams); 35 | } 36 | catch(cv::Exception& e) 37 | { 38 | LOGD("nativeCreateObject caught cv::Exception: %s", e.what()); 39 | jclass je = jenv->FindClass("org/opencv/core/CvException"); 40 | if(!je) 41 | je = jenv->FindClass("java/lang/Exception"); 42 | jenv->ThrowNew(je, e.what()); 43 | } 44 | catch (...) 45 | { 46 | LOGD("nativeCreateObject caught unknown exception"); 47 | jclass je = jenv->FindClass("java/lang/Exception"); 48 | jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); 49 | return 0; 50 | } 51 | 52 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeCreateObject exit"); 53 | return result; 54 | } 55 | 56 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDestroyObject 57 | (JNIEnv * jenv, jclass, jlong thiz) 58 | { 59 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDestroyObject enter"); 60 | try 61 | { 62 | if(thiz != 0) 63 | { 64 | ((DetectionBasedTracker*)thiz)->stop(); 65 | delete (DetectionBasedTracker*)thiz; 66 | } 67 | } 68 | catch(cv::Exception& e) 69 | { 70 | LOGD("nativeestroyObject caught cv::Exception: %s", e.what()); 71 | jclass je = jenv->FindClass("org/opencv/core/CvException"); 72 | if(!je) 73 | je = jenv->FindClass("java/lang/Exception"); 74 | jenv->ThrowNew(je, e.what()); 75 | } 76 | catch (...) 77 | { 78 | LOGD("nativeDestroyObject caught unknown exception"); 79 | jclass je = jenv->FindClass("java/lang/Exception"); 80 | jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); 81 | } 82 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDestroyObject exit"); 83 | } 84 | 85 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStart 86 | (JNIEnv * jenv, jclass, jlong thiz) 87 | { 88 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStart enter"); 89 | try 90 | { 91 | ((DetectionBasedTracker*)thiz)->run(); 92 | } 93 | catch(cv::Exception& e) 94 | { 95 | LOGD("nativeStart caught cv::Exception: %s", e.what()); 96 | jclass je = jenv->FindClass("org/opencv/core/CvException"); 97 | if(!je) 98 | je = jenv->FindClass("java/lang/Exception"); 99 | jenv->ThrowNew(je, e.what()); 100 | } 101 | catch (...) 102 | { 103 | LOGD("nativeStart caught unknown exception"); 104 | jclass je = jenv->FindClass("java/lang/Exception"); 105 | jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); 106 | } 107 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStart exit"); 108 | } 109 | 110 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStop 111 | (JNIEnv * jenv, jclass, jlong thiz) 112 | { 113 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStop enter"); 114 | try 115 | { 116 | ((DetectionBasedTracker*)thiz)->stop(); 117 | } 118 | catch(cv::Exception& e) 119 | { 120 | LOGD("nativeStop caught cv::Exception: %s", e.what()); 121 | jclass je = jenv->FindClass("org/opencv/core/CvException"); 122 | if(!je) 123 | je = jenv->FindClass("java/lang/Exception"); 124 | jenv->ThrowNew(je, e.what()); 125 | } 126 | catch (...) 127 | { 128 | LOGD("nativeStop caught unknown exception"); 129 | jclass je = jenv->FindClass("java/lang/Exception"); 130 | jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); 131 | } 132 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStop exit"); 133 | } 134 | 135 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeSetFaceSize 136 | (JNIEnv * jenv, jclass, jlong thiz, jint faceSize) 137 | { 138 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeSetFaceSize enter"); 139 | try 140 | { 141 | if (faceSize > 0) 142 | { 143 | DetectionBasedTracker::Parameters DetectorParams = \ 144 | ((DetectionBasedTracker*)thiz)->getParameters(); 145 | DetectorParams.minObjectSize = faceSize; 146 | ((DetectionBasedTracker*)thiz)->setParameters(DetectorParams); 147 | } 148 | } 149 | catch(cv::Exception& e) 150 | { 151 | LOGD("nativeStop caught cv::Exception: %s", e.what()); 152 | jclass je = jenv->FindClass("org/opencv/core/CvException"); 153 | if(!je) 154 | je = jenv->FindClass("java/lang/Exception"); 155 | jenv->ThrowNew(je, e.what()); 156 | } 157 | catch (...) 158 | { 159 | LOGD("nativeSetFaceSize caught unknown exception"); 160 | jclass je = jenv->FindClass("java/lang/Exception"); 161 | jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); 162 | } 163 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeSetFaceSize exit"); 164 | } 165 | 166 | 167 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect 168 | (JNIEnv * jenv, jclass, jlong thiz, jlong imageGray, jlong faces) 169 | { 170 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect enter"); 171 | try 172 | { 173 | vector RectFaces; 174 | ((DetectionBasedTracker*)thiz)->process(*((Mat*)imageGray)); 175 | ((DetectionBasedTracker*)thiz)->getObjects(RectFaces); 176 | vector_Rect_to_Mat(RectFaces, *((Mat*)faces)); 177 | } 178 | catch(cv::Exception& e) 179 | { 180 | LOGD("nativeCreateObject caught cv::Exception: %s", e.what()); 181 | jclass je = jenv->FindClass("org/opencv/core/CvException"); 182 | if(!je) 183 | je = jenv->FindClass("java/lang/Exception"); 184 | jenv->ThrowNew(je, e.what()); 185 | } 186 | catch (...) 187 | { 188 | LOGD("nativeDetect caught unknown exception"); 189 | jclass je = jenv->FindClass("java/lang/Exception"); 190 | jenv->ThrowNew(je, "Unknown exception in JNI code {highgui::VideoCapture_n_1VideoCapture__()}"); 191 | } 192 | LOGD("Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect exit"); 193 | } -------------------------------------------------------------------------------- /jni/DetectionBasedTracker_jni.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class org_opencv_samples_fd_DetectionBasedTracker */ 4 | 5 | #ifndef _Included_org_opencv_samples_fd_DetectionBasedTracker 6 | #define _Included_org_opencv_samples_fd_DetectionBasedTracker 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | /* 11 | * Class: org_opencv_samples_fd_DetectionBasedTracker 12 | * Method: nativeCreateObject 13 | * Signature: (Ljava/lang/String;F)J 14 | */ 15 | JNIEXPORT jlong JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeCreateObject 16 | (JNIEnv *, jclass, jstring, jint); 17 | 18 | /* 19 | * Class: org_opencv_samples_fd_DetectionBasedTracker 20 | * Method: nativeDestroyObject 21 | * Signature: (J)V 22 | */ 23 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDestroyObject 24 | (JNIEnv *, jclass, jlong); 25 | 26 | /* 27 | * Class: org_opencv_samples_fd_DetectionBasedTracker 28 | * Method: nativeStart 29 | * Signature: (J)V 30 | */ 31 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStart 32 | (JNIEnv *, jclass, jlong); 33 | 34 | /* 35 | * Class: org_opencv_samples_fd_DetectionBasedTracker 36 | * Method: nativeStop 37 | * Signature: (J)V 38 | */ 39 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeStop 40 | (JNIEnv *, jclass, jlong); 41 | 42 | /* 43 | * Class: org_opencv_samples_fd_DetectionBasedTracker 44 | * Method: nativeSetFaceSize 45 | * Signature: (JI)V 46 | */ 47 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeSetFaceSize 48 | (JNIEnv *, jclass, jlong, jint); 49 | 50 | /* 51 | * Class: org_opencv_samples_fd_DetectionBasedTracker 52 | * Method: nativeDetect 53 | * Signature: (JJJ)V 54 | */ 55 | JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect 56 | (JNIEnv *, jclass, jlong, jlong, jlong); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | #endif 62 | -------------------------------------------------------------------------------- /jni/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /libs/armeabi-v7a/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /libs/armeabi-v7a/libdetection_based_tracker.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/libs/armeabi-v7a/libdetection_based_tracker.so -------------------------------------------------------------------------------- /libs/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /obj/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /obj/local/armeabi-v7a/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /obj/local/armeabi-v7a/libdetection_based_tracker.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/obj/local/armeabi-v7a/libdetection_based_tracker.so -------------------------------------------------------------------------------- /obj/local/armeabi-v7a/objs/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /obj/local/armeabi-v7a/objs/detection_based_tracker/DetectionBasedTracker_jni.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/obj/local/armeabi-v7a/objs/detection_based_tracker/DetectionBasedTracker_jni.o -------------------------------------------------------------------------------- /obj/local/armeabi-v7a/objs/detection_based_tracker/DetectionBasedTracker_jni.o.d: -------------------------------------------------------------------------------- 1 | obj/local/armeabi-v7a/objs/detection_based_tracker/DetectionBasedTracker_jni.o: \ 2 | jni/DetectionBasedTracker_jni.cpp jni/DetectionBasedTracker_jni.h \ 3 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/jni.h \ 4 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/core.hpp \ 5 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/types_c.h \ 6 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/assert.h \ 7 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/cdefs.h \ 8 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/cdefs_elf.h \ 9 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/android/api-level.h \ 10 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/stdlib.h \ 11 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/string.h \ 12 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/malloc.h \ 13 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/alloca.h \ 14 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/strings.h \ 15 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/types.h \ 16 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/stdint.h \ 17 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/_types.h \ 18 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/_types.h \ 19 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/posix_types.h \ 20 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/stddef.h \ 21 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/compiler.h \ 22 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/asm/posix_types.h \ 23 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/asm/types.h \ 24 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/types.h \ 25 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/kernel.h \ 26 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/sysmacros.h \ 27 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/memory.h \ 28 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/math.h \ 29 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/limits.h \ 30 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/limits.h \ 31 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/limits.h \ 32 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/internal_types.h \ 33 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/limits.h \ 34 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/syslimits.h \ 35 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/asm/page.h \ 36 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/version.hpp \ 37 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/algorithm \ 38 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/cmath \ 39 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/cstddef \ 40 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/complex \ 41 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/map \ 42 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/vector \ 43 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/operations.hpp \ 44 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/limits \ 45 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/mat.hpp \ 46 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/contrib/detection_based_tracker.hpp \ 47 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/objdetect/objdetect.hpp \ 48 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/deque \ 49 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/android/log.h 50 | 51 | jni/DetectionBasedTracker_jni.h: 52 | 53 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/jni.h: 54 | 55 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/core.hpp: 56 | 57 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/types_c.h: 58 | 59 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/assert.h: 60 | 61 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/cdefs.h: 62 | 63 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/cdefs_elf.h: 64 | 65 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/android/api-level.h: 66 | 67 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/stdlib.h: 68 | 69 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/string.h: 70 | 71 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/malloc.h: 72 | 73 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/alloca.h: 74 | 75 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/strings.h: 76 | 77 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/types.h: 78 | 79 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/stdint.h: 80 | 81 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/_types.h: 82 | 83 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/_types.h: 84 | 85 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/posix_types.h: 86 | 87 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/stddef.h: 88 | 89 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/compiler.h: 90 | 91 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/asm/posix_types.h: 92 | 93 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/asm/types.h: 94 | 95 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/types.h: 96 | 97 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/kernel.h: 98 | 99 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/sysmacros.h: 100 | 101 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/memory.h: 102 | 103 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/math.h: 104 | 105 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/limits.h: 106 | 107 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/limits.h: 108 | 109 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/linux/limits.h: 110 | 111 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/internal_types.h: 112 | 113 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/machine/limits.h: 114 | 115 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/sys/syslimits.h: 116 | 117 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/asm/page.h: 118 | 119 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/version.hpp: 120 | 121 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/algorithm: 122 | 123 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/cmath: 124 | 125 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/cstddef: 126 | 127 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/complex: 128 | 129 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/map: 130 | 131 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/vector: 132 | 133 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/operations.hpp: 134 | 135 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/limits: 136 | 137 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/mat.hpp: 138 | 139 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/contrib/detection_based_tracker.hpp: 140 | 141 | C:/Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/objdetect/objdetect.hpp: 142 | 143 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/sources/cxx-stl/gnu-libstdc++/4.6/include/deque: 144 | 145 | C:/android-ndk-r9-windows-x86_64/android-ndk-r9/platforms/android-8/arch-arm/usr/include/android/log.h: 146 | -------------------------------------------------------------------------------- /obj/local/armeabi-v7a/objs/detection_based_tracker/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /obj/local/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | android.library.reference.1=../../../../../Opencv2/Android/OpenCV-2.4.6-android-sdk-r2/OpenCV-2.4.6-android-sdk/sdk/java 14 | # Project target. 15 | target=android-18 16 | -------------------------------------------------------------------------------- /res/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /res/drawable/big_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/res/drawable/big_smile.png -------------------------------------------------------------------------------- /res/drawable/desktop.ini: -------------------------------------------------------------------------------- 1 | [.ShellClassInfo] 2 | InfoTip=This folder is shared online. 3 | IconFile=C:\Program Files (x86)\Google\Drive\googledrivesync.exe 4 | IconIndex=12 5 | -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishek-ch/SmileDetection/b94c7ffebdf377ead5cb74bfdb39a4a03d40ddaa/res/drawable/icon.png -------------------------------------------------------------------------------- /res/layout/activity_main_menu.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 19 | 20 | 28 | 29 | 36 | 37 |