All Projects → rehg-lab → eye-contact-cnn

rehg-lab / eye-contact-cnn

Licence: other
Deep neural network trained to detect eye contact from facial image

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to eye-contact-cnn

MouseView.js
Attentional mouse tracking. Alternative to online eye tracking. Eye tracking without the eyes!
Stars: ✭ 46 (+48.39%)
Mutual labels:  psychology, eye-tracking
friendly-plans
Supporting system of behavioral therapy of people with autism. Check starter kit:
Stars: ✭ 24 (-22.58%)
Mutual labels:  children, autism
stylegan-encoder
StyleGAN Encoder - converts real images to latent space
Stars: ✭ 694 (+2138.71%)
Mutual labels:  resnet-50
wildflower-finder
Image classification of wildflowers using deep residual learning and convolutional neural nets
Stars: ✭ 25 (-19.35%)
Mutual labels:  resnet-50
DichotomyTests
Dichotomy Tests provides interesting tests that show you how inclined you are toward certain philosophical, psychological or political views. Each test tries to discover your preferred beliefs and will attempt to accurately position you along numerous dichotomic axes.
Stars: ✭ 78 (+151.61%)
Mutual labels:  psychology
fate
Fate is a modern science chinese name create tool.
Stars: ✭ 1,974 (+6267.74%)
Mutual labels:  baby
EMDR-for-browsers
Eye Movement Desensitization and Reprocessing is a newer form of therapy for PTSD as well as anxiety
Stars: ✭ 19 (-38.71%)
Mutual labels:  psychology
Vision
Computer Vision And Neural Network with Xamarin
Stars: ✭ 54 (+74.19%)
Mutual labels:  eye-tracking
psychmeta
Psychometric meta-analysis toolkit
Stars: ✭ 38 (+22.58%)
Mutual labels:  psychology
laravel-nova-nested-form
This package allows you to include your nested relationships' forms into a parent form.
Stars: ✭ 225 (+625.81%)
Mutual labels:  children
neuralBlack
A Multi-Class Brain Tumor Classifier using Convolutional Neural Network with 99% Accuracy achieved by applying the method of Transfer Learning using Python and Pytorch Deep Learning Framework
Stars: ✭ 36 (+16.13%)
Mutual labels:  resnet-50
CoreMLDemo
CoreML.framework Demo App
Stars: ✭ 42 (+35.48%)
Mutual labels:  resnet-50
expfactory
software to generate a reproducible container with a battery of experiments
Stars: ✭ 29 (-6.45%)
Mutual labels:  psychology
GazeTheWeb
Explore the Web with your eyes! Part of the MAMEM project.
Stars: ✭ 30 (-3.23%)
Mutual labels:  eye-tracking
PathView
Simulate the running route of each player on the playground, and can be timed with a stopwatch
Stars: ✭ 5 (-83.87%)
Mutual labels:  wearable-devices
WearableSensorData
This repository provides the codes and data used in our paper "Human Activity Recognition Based on Wearable Sensor Data: A Standardization of the State-of-the-Art", where we implement and evaluate several state-of-the-art approaches, ranging from handcrafted-based methods to convolutional neural networks.
Stars: ✭ 65 (+109.68%)
Mutual labels:  wearable-devices
GoFIT SDK Android
GoFIT SDK for Android — GOLiFE 手環 App 介接 SDK
Stars: ✭ 32 (+3.23%)
Mutual labels:  wearable-devices
Statistics-with-R
Second year undergraduate statistics
Stars: ✭ 14 (-54.84%)
Mutual labels:  psychology
GazeML-keras
A keras port of swook/GazeML for pupil, iris and eye-lid detection
Stars: ✭ 44 (+41.94%)
Mutual labels:  eye-tracking
remote-calibrator
Measure screen size, track viewing distance and gaze, and more!
Stars: ✭ 12 (-61.29%)
Mutual labels:  psychology

eye-contact-cnn

This repository provides a deep convolutional neural network model trained to detect moments of eye contact in egocentric view. The model was trained on over 4 millions of facial images of > 100 young individuals during natural social interactions, and achives an accuracy comaprable to that of trained clinical human annotators.

Libraries used in our experiment

  • PyTorch 0.4.0
  • opencv 4.0.0
  • numpy 1.16.2
  • PIL 5.3.0
  • pandas 0.23.4
  • dlib 19.13.0 (optional if you want live face detection)

To run

with a webcam

python demo.py

on a video file

python demo.py --video yourvideofile.avi

on our sample video

Try this if you don't want to use dlib's face and instead test with pre-detected faces.

Comment out the first line of demo.py "import dlib" if you didn't install dlib.

python demo.py --video demo_video.avi --face demo_face_detections.txt

Demo video has been downloaded from here. I used this face detector to generate the face detection file.

Flags

  • --face: Path to pre-processed face detection file of format [frame#, min_x, min_y, max_x, max_y]. If not specified, dlib's face detector will be used.
  • -save_vis: Saves the output as an avi video file.
  • -save_text: Saves the output as a text file (Format: [frame#, eye_contact_score]).
  • -display_off: Turn off display window.
  • Hit 'q' to quit the program.

Notes

  • Output eye contact score ranges [0, 1] and score above 0.9 is considered confident.
  • To further improve the result, smoothing the output is encouraged as it can help removing outliers caused by eye blinks, motion blur etc.

Citation

Please cite this paper in any publications that make use of this software.

@article{chong2020,
 title={Detection of eye contact with deep neural networks is as accurate as human experts},
 url={osf.io/5a6m7},
 DOI={10.31219/osf.io/5a6m7},
 publisher={OSF Preprints},
 author={Chong, Eunji and Clark-Whitney, Elysha and Southerland, Audrey and Stubbs, Elizabeth and Miller, Chanel and Ajodan, Eliana L and Silverman, Melanie R and Lord, Catherine and Rozga, Agata and Jones, Rebecca M and et al.},
 year={2020}
}

Link to the paper: here

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].