From 0e0a14013dc3c0c02f96ec486d70d0871747062c Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Mon, 17 Sep 2012 18:25:29 -0700 Subject: [PATCH] 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 --- services/camera/libcameraservice/camera2/FrameProcessor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/camera/libcameraservice/camera2/FrameProcessor.cpp b/services/camera/libcameraservice/camera2/FrameProcessor.cpp index df5e11f293..a7d19aac0a 100644 --- a/services/camera/libcameraservice/camera2/FrameProcessor.cpp +++ b/services/camera/libcameraservice/camera2/FrameProcessor.cpp @@ -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; -- 2.11.0