All Projects → Pradyuman7 → Lookatme

Pradyuman7 / Lookatme

Licence: apache-2.0
VideoView that plays video only when 👀 are open and 👦 is detected with various other features

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Lookatme

FaceRecognition With FaceNet Android
Face Recognition using the FaceNet model and MLKit on Android.
Stars: ✭ 113 (-29.81%)
Mutual labels:  android-application, face-recognition, face-detection, android-studio
Android Data Binding Examples
A collection of samples using Android Data Binding
Stars: ✭ 20 (-87.58%)
Mutual labels:  android-studio, android-application, android-development
Human Detection And Tracking
Human-detection-and-Tracking
Stars: ✭ 753 (+367.7%)
Mutual labels:  face-detection, face-recognition, face
Kotlin Android Scaffolding
An android project structure using kotlin and most common libraries.
Stars: ✭ 53 (-67.08%)
Mutual labels:  android-studio, android-application, android-development
Mobileface
A face recognition solution on mobile device.
Stars: ✭ 669 (+315.53%)
Mutual labels:  face-detection, face-recognition, face
Androidtips
A collections of tips in Android developing.Android开发总结。我的博客:
Stars: ✭ 713 (+342.86%)
Mutual labels:  android-studio, android-application, android-development
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (-14.91%)
Mutual labels:  android-studio, android-application, android-development
AOSP-Kayboard-7.1.2
Full functional AOSP Keyboard with glide typing
Stars: ✭ 33 (-79.5%)
Mutual labels:  android-development, android-application, android-studio
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-34.78%)
Mutual labels:  android-studio, android-application, android-development
Livesmashbar
An elegant looking and easy to use informative library with LiveData integration for Android.
Stars: ✭ 107 (-33.54%)
Mutual labels:  android-studio, android-application, android-development
Reel Search Android
Reel Search for Android is a UI/UX design for autocomplete action. It is a beautiful minimalistic addition to any use case.
Stars: ✭ 110 (-31.68%)
Mutual labels:  android-studio, android-application, android-development
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (+283.85%)
Mutual labels:  android-studio, android-application, android-development
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+197.52%)
Mutual labels:  face-detection, face-recognition, face
Awesome Face
😎 face releated algorithm, dataset and paper
Stars: ✭ 739 (+359.01%)
Mutual labels:  face-detection, face-recognition, face
Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+77.64%)
Mutual labels:  face-detection, face-recognition, face
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (-78.26%)
Mutual labels:  android-studio, android-application, android-development
Android Inappbilling
A sample which uses Google's Play Billing Library and it does InApp Purchases and Subscriptions.
Stars: ✭ 114 (-29.19%)
Mutual labels:  android-studio, android-application, android-development
FireFiles
Powerful Android File Manager for everything that runs on Android OS (Android TV, Android Watch, Mobile, etc)
Stars: ✭ 37 (-77.02%)
Mutual labels:  android-development, android-application, android-studio
Multi-Face-Comparison
This repo is meant for backend API for face comparision and computer vision. It is built on python flask framework
Stars: ✭ 20 (-87.58%)
Mutual labels:  face, face-recognition, face-detection
Dagger2 Sample
A sample app to demo how to implement dagger in Android using Dagger Android Support library
Stars: ✭ 72 (-55.28%)
Mutual labels:  android-studio, android-application, android-development

LookAtMe

API Android Arsenal LookAtMe AwesomeAndroid Android Weekly Android Dev Digest Android Sweets Download Android-Tutorial-Online

VideoView that plays video only when 👀 are open and 👦 is detected with various other features

GIF

AndroidPub (Medium) Post

You can read the AndroidPub post about this library, the perks it provides and other details here.

Screenshots

screenshot_2019-01-10-07-02-17-959_com pd trackeye screenshot_2019-01-10-07-02-22-894_com pd trackeye

Prerequisites

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
		repositories {
			...
			maven { url 'https://www.jitpack.io' }
		}
	}

Dependency

Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):

dependencies {
	        implementation 'com.github.Pradyuman7:LookAtMe:Version1.0'
}

For latest release, please check the JitPack version and match it with the dependency.

dependencies {
	        implementation 'com.github.Pradyuman7:LookAtMe:Version2.0'
}

Usage

LookAtMe is very easy to use and can be directly used in your application. You just need to first declare the LookAtMe variable in your activity, and add the following in layout of your activity (XML file).

        private LookAtMe lookAtMe;
        lookAtMe = findViewById(R.id.lookme);
	<com.pd.lookatme.LookAtMe
        	android:id="@+id/lookme"
        	android:layout_width="match_parent"
        	android:layout_height="250dp" />

After this, just initiallise LookAtMe variable with the activity context, add the video URI, start the video and just call setLookMe(), the whole code would look something like this:

        lookAtMe.init(this);
        lookAtMe.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.videoplayback));
	// lookAtMe.setVideoPath("http://website.com/video/mp4/62000/62792m.mp4"); to use video from a url
        
	lookAtMe.start();
        lookAtMe.setLookMe();

You can also personalise the experience according to your need, using init(). In this method you can add if you want the eye-tracking mode to be FAST or ACCURATE, and also which camera to use, front or back. The method bodies look like this:

	public void init(Context activityContext, String mode, String cameraFace){
        	// add mode to be fast or accurate and cameraFace to be front or back
    	}
	public void init(Context activityContext, String mode){
        	// add mode to be accurate or fast   
    	}

Version2.0 additions

Now in Version2.0 the developer can also access that if the user laughed / smiled during the video. For this, just use this initWithSmilingStatus() method instead of the normal init() like this:

	lookAtMe.initWithSmilingStatus(this); // for smiling status of the user

To access if the user smiled during the video after this, currently you have to acess the log of the app programatically. Currently, LookAtMe counts when user smiles and for how many frames. If the user smiles for 100 frames in total, LookAtMe logs a line stating that "the user smiled for 100 Frames!". After that count resets to 0.

You can access the log of your android app like this:

	try {
  		Process process = Runtime.getRuntime().exec("logcat");
  		BufferedReader bufferedReader = new BufferedReader(
  		new InputStreamReader(process.getInputStream()));

  		StringBuilder log = new StringBuilder();
  		String line = "";
  		while ((line = bufferedReader.readLine()) != null) {
	    		log.append(line);
  		}
  		TextView tv = (TextView)findViewById(R.id.textView1);
  		tv.setText(log.toString());
  	} 
	catch (IOException e) {}

To know more about this, please refer this link.

Pull Request

Have some new ideas or found a bug? Do not hesitate to open an issue and make a pull request.

License

LookAtME is under License: Apache. See the LICENSE file for more info.

Credits

The video being played in the android app is owned solely by Pixar animations and the author lays no claim over the video.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].