Search code examples
iosiphoneipadopencvface-detection

Detect Low Light Condition and FaceRotation Angle in Degrees in Real-Time FaceDetection IOS


I am writing an iOS app that will do real-time face-detection using iPhone's Front camera.

In it, I need to check whether the lighting is proper or not. Like checking for "low light condition" or is left half light is more than right half light or vice versa.

I am checking both OpenCV on iOS and the iOS default face-detction using CIDetector for one week but I am unable to find the solution.

Any Ideas or samples will be helpful.

In the same project iam using CIFaceFeature+FaceRotation to detect the face rotation angle its returning -1 to +1 values, but i need to show the values in 0 to 180 degrees (like user face is tilted 30 degrees)

Thanks.


Solution

  • You can check below link it might not actually solve your problem but yes it can give you an idea about luminosity of ios camera image for the starter:

    https://www.transpire.com/insights/blog/obtaining-luminosity-ios-camera/