From: Nibha Sharma Date: Thu, 10 Sep 2020 09:42:04 +0000 (+0530) Subject: [TBT][camera][Non-ACR][TSIX-6150 Face not detected properly issue fixed] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e75e199e3047cf1717e5fe3cd417650b80506c4;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][camera][Non-ACR][TSIX-6150 Face not detected properly issue fixed] Change-Id: Ia62756eeda22afd19b8763a1b96a7f60377b047d Signed-off-by: Nibha Sharma --- diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index febe0f0..de95283 100755 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index 065d096..c257e4c 100755 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/tbtcoreapp/src/view/tbt-camera-view.c b/tbtcoreapp/src/view/tbt-camera-view.c index eaf49b3..8debd3e 100755 --- a/tbtcoreapp/src/view/tbt-camera-view.c +++ b/tbtcoreapp/src/view/tbt-camera-view.c @@ -1011,6 +1011,7 @@ static void _camera_face_detected_cb(camera_detected_face_s *faces, int count, v } int local_count = count <= max_face_count?count : max_face_count; + int height_padding = 130; for (i = 0; i < local_count; i++) @@ -1018,7 +1019,7 @@ static void _camera_face_detected_cb(camera_detected_face_s *faces, int count, v //draw_lines(faces[i].x, faces[i].y, faces[i].width, faces[i].height, i, view); //DBG("x: %d, y: %d, w: %d, h: %d", faces[i].y, faces[i].x+faces[i].width, faces[i].height, faces[i].width); //draw_lines(faces[i].y, faces[i].x+faces[i].width, faces[i].height, faces[i].width, i, view); - draw_lines((canvas_width-faces[i].width)-faces[i].y, canvas_height-faces[i].x, faces[i].width, faces[i].height, i, view); + draw_lines((canvas_width-faces[i].width)-faces[i].y, (canvas_height-faces[i].height)-faces[i].x+height_padding, faces[i].width, faces[i].height, i, view); //draw_lines(canvas_x-faces[i].x, canvas_y-faces[i].y, faces[i].height, faces[i].width, i, view); DBG("x: %d, y: %d, w: %d, h: %d", faces[i].y, faces[i].x, faces[i].width, faces[i].height); }