Overlay transparent circle on camera preview in Android - android

Recently Uber has released a Face Recognition feature and I'm trying to create a similar camera preview it looks like this :
I need to create a transparent circle to focus the users face to the camera. I have tried to create it from some other posted and tried to look into a similar use cases like in Zxing barcode scanner, but I still can't achieve the expected result

Related

Virtual background

How do I add an image as a virtual background using ML Kit Selfie segmentation? I am following the example project from github and I got it working with a colored overlay. But I dont understand how to replace that overlay with a picture. In this question, I can see that it is possible: Poor selfie segmentation with Google ML Kit. I copied code from https://github.com/googlesamples/mlkit/tree/master/android/vision-quickstart to get the pink overlay. I should also mention that I am using this in streaming mode.

How can i achieve Bokeh effect with custom camera in android?

I need to generate Bokeh effect with the android custom camera.
I am using a dual-camera device. But unable to find any option to take the picture and do Image segmentation.
I had a look at some library also and found https://github.com/RedApparat/FaceDetector library. If I could focus an object and blur rest of background then also it will be working for me.
Is there any hint how device with dual lens works?

How to implement Face masking on live camera?

I'm new in this subject but i tried a lots to detect face and draw face points but i'm not able to do face masking in live camera.
I tried Mood me SDK..
How can i implement face masking like snapchat and B612 etc.. application in android.
You can try using MirrorReality.

Having the tablet/smartphone camera in ThreeJS/WebGL background Cordova Conversion

I develop a Web App' using ThreeJS and I convert it into an Android apk using Cordova.
Here is the thing, I would like to have the tablet or smartphone's camera preview in the background of my ThreeJS Scene. In order to complete this task, I'm using the Camera Preview Plugin. However, when I use this plugin it can't be triggered by a load event. Moreover, when I finally activate this plugin with a button the camera isn't visible or the camera is hidding the ThreeJS Scene.
Does anyone have a solution to get the camera preview in the ThreeJS Scene's background ?
Sorry for that guys I have discover that in my app, I modify the body's background-color. So instead of getting the video behind the Three.Scene, I get nothing. Indeed, to get this Plugin working you need to have a transparent background color !

Android - how to implement color detection using opencv?

i`m trying to write an application that will detect red objects appearing in a live preview (taken from the camera.
my goal is to provide a gray-scale preview and on top of it to show the red colored objects.
i`v read this, and was trying to play with the OpenCV-2.3.1 samples but with no avail...
any kind of help would be much appreciated!

Categories

Resources