Giter Club home page Giter Club logo

googleglass's Introduction

##GlassFaceDetection + Recognition

TODOs:

  • Test functionality
  • better UI
  • more documentation
  • better naming scheme for trained faces
  • save trained faces
  • clean up code
  • fix on crash camera disposal
  • Faceselection mode highlight box color

Cool features:

  1. actually frees the camera. OpenCV documentation does not cover this.
  2. CVLibTools -> converts OpenCV mats to JavaCV mats, still needs testing
  3. Merges OpenCV and JavaCV together

###Usage: run app

Face Detection + Recognition Mode: by default

  • swipe left/right to change minimum face size (higher the faster)
  • tap to exit
  • long tap to switch to face training mode

Face Training mode:

  • same as face detection
  • short tap to save current frame and go to face selection mode
  • must select eight faces
  • long tap to exit/cancel

Face Selection mode:

  • a static gray image frame with detected face rectangles
  • swipe left/right to highlight the face you want to recognize (red rectangle)
  • short tap to remember selected rectangle as a face
  • TODO: allow cancellation

###To make Javacv work:

I had some issues implementing Javacv in AndroidStudio. Below is how I got it to work. No guarantees that it will work for you too because I myself encountered errors while following the documentations.

Add these to build.gradle for Module: app (or whatever name your main application is)

compile group: 'org.bytedeco', name: 'javacv-platform', version: '1.3'
compile group: 'org.bytedeco', name: 'javacv', version: '0.11'

then gradle sync.

Another issue might be a duplicated files copied error. Fix that by appending

packagingOptions {
        pickFirst 'duplicated item'
      }

in android { }. It should look like this, where the ... represent what it had before.

android {

    ...

    packagingOptions {
       pickFirst 'blabla'
   }
}

See my build.gradle for an example

googleglass's People

Contributors

chutasano avatar

Watchers

 avatar  avatar

Forkers

thepagan

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.