negribyte
(Negribyte Indonesia)
December 10, 2021, 8:26am
#1
Hi all,
I am searching for solution in kodular that use front camera to calculate distance from face to screen. I’ve found an article in github https://github.com/philiiiiiipp/Android-Screen-to-Face-Distance-Measurement but it coded in java.
Can we create in kodular?
Thank you for your responses.
Regards.
You could try it with the Light Sensor Component.
Get the Light on Start of the App and if the light goes dimmer the face should nearer. It’s not really the perfect solution but should work with some tuning.
negribyte
(Negribyte Indonesia)
December 10, 2021, 8:58am
#3
So, how measure the dimmer light intensity? Any reference?
negribyte
(Negribyte Indonesia)
December 10, 2021, 9:01am
#4
My concern is using front camera
Because it’s common sensor in any android phone right now
Could we translate the Java codes into kodular?
Kodular Extensions are JavaScript only, it’s a different Language. Every Phone and Mobile Device has a Light Sensor.
I don’t think it’s possible to use AI in Kodular directly. But I’m not a Extension Developer.
I thought that Kodular Extensions only supports JavaScript but as I said:
negribyte
(Negribyte Indonesia)
December 12, 2021, 5:29am
#8
negribyte
(Negribyte Indonesia)
May 17, 2022, 3:56am
#9
So, what solution can we use to calculate face-display distance using kodular?