Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 663c2cd9 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Don't be bothered by lack of faces.

Sometimes, people might want to photograph scenes with no faces. And
not have their log fill with errors when they do.

Bug: 7078231
Change-Id: Ibe5c08d51b49a3ea14203416fe7803a58de08dda
parent a9f8d040
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -174,8 +174,7 @@ status_t FrameProcessor::processFaceDetect(const CameraMetadata &frame,
        SharedParameters::Lock l(client->getParameters());
        entry = frame.find(ANDROID_STATS_FACE_RECTANGLES);
        if (entry.count == 0) {
            ALOGE("%s: Camera %d: Unable to read face rectangles",
                    __FUNCTION__, client->getCameraId());
            // No faces this frame
            return res;
        }
        metadata.number_of_faces = entry.count / 4;