How to set the number of faces detected in the app?

Android Demo app

1. Open src/app/src/main/java/com/banuba/sdk/demo/MainActivity.java

2. Add setMaxFaces(int) after:

mSdkManager.setDrawSize(720, 1280);

Full example:

...
mSdkManager.setDrawSize(720, 1280);
mSdkManager.getEffectPlayer().setMaxFaces(2);
...

Example for Banuba SDK Demo app for Android.

iOS Demo app

1. Open BanubaSdk/BanubaSdkApp/BanubaSdkApp/ViewController.swift

2. Add setMaxFaces(int) after:

sdkManager.input.startCamera()

Full example:

...
sdkManager.input.startCamera()
sdkManager.effectPlayer?.setMaxFaces(3)
...

Unity Demo app

1. Open BanubaSdk/Assets/BanubaFaceAR/BaseAssets/Scripts/BanubaSDKManager.cs

2. Add face_count(int) after:

const int face_count = 2;