Comments (6)
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.
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.
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.
Thank you it works in images.
from fast-face-android.
In OnGetImageListener.java, onImageAvailable function
from fast-face-android.
from fast-face-android.
Related Issues (20)
- face recognition HOT 3
- Optimize the jni native code HOT 4
- Why MainActivity_ ? HOT 1
- Contents Above 150 MB HOT 1
- Where is the revised jni_face_det file along with the detector header?
- What resolution image does the 50-70 ms time estimate apply to? HOT 1
- How did you optimize dlib? HOT 2
- Caused by: org.gradle.tooling.BuildException: invalid code lengths set
- Can this APP realize the function of face expression recognition HOT 1
- IOS version HOT 1
- Getting crashed when sending first frame of camera in some devices
- gradle 7.0
- why my camera phone didn't showing?? HOT 7
- How can I separate the face detection from the landmark extraction? HOT 3
- how can I change the min face size that the detector detects HOT 1
- front camera HOT 2
- What are the methods behind your Fast-Face? HOT 3
- How can I detect the middle of the forehead? HOT 1
- Get NDK path with this approach.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-face-android.