google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.98k stars 1.22k forks source link

Can not track face in Shared camera mode in Android #1043

Open lbknxy opened 4 years ago

lbknxy commented 4 years ago

Hi, I set FRONT_CAMERA and SHARED_CAMERA when create Session and config it with MESH3D :

                mSessoin = new Session(this,EnumSet.of(Session.Feature.FRONT_CAMERA,Session.Feature.SHARED_CAMERA));
                Config config = mSessoin.getConfig();
                config.setAugmentedFaceMode(Config.AugmentedFaceMode.MESH3D);
                config.setFocusMode(Config.FocusMode.AUTO);

                mSessoin.configure(config);

Both Front camera and shared camera are working well , BUT I can not get any face in this code :

Collection<AugmentedFace> faces = session.getAllTrackables(AugmentedFace.class);

I want to know : Is it possible to use Augmented face feature in shared camera mode ?

ntqp97 commented 3 years ago

i have the same problem