Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.06k stars 1.15k forks source link

2d texture #885

Closed jayp84847 closed 3 years ago

jayp84847 commented 3 years ago

How do I track face in Image with this. Like I want to track face from image(2D texture).

tdmowrer commented 3 years ago

Sorry, I don't understand your question. AR Foundation supports face tracking and image tracking. I'm not sure which feature you are referring to, though. Can you provide more details?

tdmowrer commented 3 years ago

You can add any image to a reference image library and start tracking it as an image. So, in your example, you could add a picture of a face and then track that exact picture. I'm still not sure I understand your use case, though.

tdmowrer commented 3 years ago

You can't use face tracking on an in-memory image. It might work in some cases if you printed out the photo (and are okay with having to use the user-facing camera). iPhones, however, rely on a TrueDepth camera; that is, they expect a 3D face, not a 2D photo, so I'm not sure how well that would work.

If I understand you correctly, this doesn't sound like something for which AR is well suited. There are other face detection frameworks that might be a better fit, e.g., OpenCV.

jayp84847 commented 3 years ago

Okkkkk thank you for your reply.😊😊

tdmowrer commented 3 years ago

You're welcome :)

jayp84847 commented 3 years ago

1 more question. Does Ar foundation support user's face mesh texture feature? Like sparkar and lense studio. Screenshot_20211008-123427_YouTube