Need detect more face in camera

I need to apply more than 2 faces for the filter in the camera on both iOS and Android, currently, it detects only one face at a time

Hi you need to apply an effect to each face. Here’s one example for how to do that