Open clementf2b opened 7 years ago
I also do not get any points when I ask for landmark locations.
Your final point about a missing variable is completely expected and perhaps means you don't understand debugging or the code fully.
In the section below point gets defined in the beginning of the for loop and will only exist in the for loop. You need your debugger to be running a line in the loop for point to be defined. and because landmarks is length zero it never enters the loop. So you would never expect your point.x to work in debugger if you are not getting landmark locations.
for (Point point : landmarks) {
float pointX = (point.x * resizeRatio);
float pointY = (point.y * resizeRatio);
landmark_pt_x.add(pointX);
landmark_pt_y.add(pointY);
Log.d(TAG, count + " " + pointX + " : " + pointY);
count++;
drawpoint(pointX, pointY, temp, canvas);
}
yes. Because the above code is assuming that I can get the 68 points. About the problem, do you have any suggestion?
If I use z3 compact to detect it, I can get the 68 points.
However, I get 0 point in other devices like nexus 5x, z5 or one plus two.
The following is the code that I use to detect the face landmark point.
I use debug mode in one plus two. It got the following error when it is running
Please give me some helps. Thank you very much.