You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use FaceTracker to overlay an image over the camera image and move it depending on the position of the eyes. But it does not work properly.
Use the following code:
I think that the response posted by theoreticalb@ w.r.t. translating the image coordinates to view coordinates is correct. If you have tried this, please post the code so that we can see what you've tried.
@pm0733464
but I initially did so, and therefore published a question on stackoverflow. But it does not work and can be seen in the screenshots. What could be the solution?
Activity
pm0733464 commentedon Jul 18, 2016
I think that the response posted by theoreticalb@ w.r.t. translating the image coordinates to view coordinates is correct. If you have tried this, please post the code so that we can see what you've tried.
UserSty commentedon Jul 18, 2016
@pm0733464 This is my code:
pm0733464 commentedon Jul 18, 2016
Looks like you are doing the translateX/Y twice (e.g., once to compute leftPosition and again for setX).
UserSty commentedon Jul 18, 2016
@pm0733464 So and how me be? How should look like my code? Help me please.
pm0733464 commentedon Jul 18, 2016
Just use leftPosition directly without calls to translate.
UserSty commentedon Jul 18, 2016
@pm0733464
but I initially did so, and therefore published a question on stackoverflow. But it does not work and can be seen in the screenshots. What could be the solution?
UserSty commentedon Jul 19, 2016
@pm0733464 If it doesn't work in two cases, it can be marked as a bug?
pm0733464 commentedon Jul 19, 2016
I'd advise taking a closer look that the Googly Eyes code example:
https://github.com/googlesamples/android-vision/tree/master/visionSamples/googly-eyes
This example shows how to overlay graphics at the correct positions. I don't believe that there is a bug in the face detection code since this works.
I wouldn't be able to tell what's wrong with your app without seeing all of the code.
UserSty commentedon Jul 19, 2016
@pm0733464
Actually I using a fully code from https://github.com/googlesamples/android-vision/tree/master/visionSamples/googly-eyes and do make only this is:
and it doesn't work.
Who can help if it is not a bug?
UserSty commentedon Jul 26, 2016
Any help, please.
pm0733464 commentedon Jul 27, 2016
Please clarify your modification above. Where are you calling this from? Why did you need to make this change?
UserSty commentedon Aug 7, 2016
@pm0733464
This is I call, in the class of "GooglyEyesGraphic".
I need to do in order to keep the mask in imageView and move to face coordinates.
UserSty commentedon Aug 10, 2016
Any ideas, please.
UserSty commentedon Aug 26, 2016
Developers help!
2 remaining items