Giter Site home page Giter Site logo

Comments (6)

kartk avatar kartk commented on July 30, 2024

See the 68 Point landmarks picture in the following link : https://ibug.doc.ic.ac.uk/resources/facial-point-annotations/

As seen from the pic, lips landmarks are from 49 - 68

from fast-face-android.

nimesh7424 avatar nimesh7424 commented on July 30, 2024

yes you are right.
Actualy I did this but in this library they are not providing a method by which i can get index of particular landmark.
As below code i am not able to get landmark 49 to 68.

if (results.size() != 0) {
for (final VisionDetRet ret : results) {
float resizeRatio = 4.5f;
Canvas canvas = new Canvas(mInversedBipmap);

    // Draw landmark
    ArrayList<Point> landmarks = ret.getFaceLandmarks();
    for (Point point : landmarks) {
        int pointX = (int) (point.x * resizeRatio);
        int pointY = (int) (point.y * resizeRatio);
        canvas.drawCircle(pointX, pointY, 4, mFaceLandmardkPaint);
    }
 }

}

from fast-face-android.

kartk avatar kartk commented on July 30, 2024

May be not the best way but this works :

int counter = 0 ;
ArrayList<Point> landmarks = ret.getFaceLandmarks();
    for (Point point : landmarks) {
       if( counter >= 48) {
           int pointX = (int) (point.x * resizeRatio);
           int pointY = (int) (point.y * resizeRatio);
           canvas.drawCircle(pointX, pointY, 4, mFaceLandmardkPaint);
       }
       counter++ ;
    }
 }


from fast-face-android.

nimesh7424 avatar nimesh7424 commented on July 30, 2024

Thank you it works in images.

from fast-face-android.

kartk avatar kartk commented on July 30, 2024

In OnGetImageListener.java, onImageAvailable function

from fast-face-android.

nimesh7424 avatar nimesh7424 commented on July 30, 2024

from fast-face-android.

Related Issues (20)

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.