I'm developing an app which consists of a carousel of images, that shall start running when a person is in front of the device and stop when the person is not in front anymore. What I require is a Cordova Plugin so I can use the 'Face Detect' methodology implemented in Google Android VISION library. I need the person in front of the device to NOT be aware that the device is detecting his face, so no preview image can be shown, I need teh detection to be in the background off from the main UI thread. I do not need any face recognition, only the Face Detect feature.
In the file attached you can see the Life Appcycle that I need to get at the end, and it provides a simplified to describe what I need.