hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.13k stars 394 forks source link

Using the face tracker with rear facing camera #453

Closed samyH closed 5 months ago

samyH commented 9 months ago

Is there a way to start the face tracker using the rear facing camera? I couldn't find anything in the documentation. thanks

hiukim commented 5 months ago

yes, there is a switchCamera method

https://github.com/hiukim/mind-ar-js/blob/fb5db87b1e5076ba86fde82101955da70b629a1c/examples/face-tracking/three.html#L57