GithubHelp home page GithubHelp logo

mis-2018-exercise-4-opencv's Introduction

Marques Everett Mondliwethu Mthunzi - 119119

Lars Meyer - 114719

A compiled apk of the app can be found in app/build/outputs/apk/debug/app-debug.apk

The red nose placement proceeds as follows:

  1. Detect face(s) using haarcascade_frontalface_default.xml
  2. Define ROI on face, detect eyes using haarcascade_eye.xml
  3. If two eyes were detected:
    1. Draw a line between the bottom right corner of the left eye's ROI to the bottom left corner of the right eye's ROI
    2. Calculate the orthogonal line and draw it from the midpoint of the line between the two eyes to the tip of the nose (approx. half the length of the line between the eyes)
    3. Draw a filled red circle with center = endpoint of orthogonal line and diameter approx 0.12 * face.width

The diameter of the red circle was determined based on the face's width because this proved to be more reliable than the initial approach of determining it based on the distance between the eye ROIs. The concrete value was found by educated guess and refined by trial and error.

mis-2018-exercise-4-opencv's People

Contributors

1und0 avatar floe avatar

Watchers

Lars Meyer avatar

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.