[TBT][camera][Non-ACR][TSIX-6150 Face not detected properly issue fixed] 25/243825/1
authorNibha Sharma <nibha.sharma@samsung.com>
Thu, 10 Sep 2020 09:42:04 +0000 (15:12 +0530)
committerNibha Sharma <nibha.sharma@samsung.com>
Thu, 10 Sep 2020 09:42:04 +0000 (15:12 +0530)
Change-Id: Ia62756eeda22afd19b8763a1b96a7f60377b047d
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk
release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk
tbtcoreapp/src/view/tbt-camera-view.c

index febe0f09ea758596affa0f77686697db2148bd1a..de95283eaa7f510c48ec484cbc3dbc140d2a5bc4 100755 (executable)
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
index 065d09674799b7e14e048cbdd655d4769f99170d..c257e4c0b2f25553521d50fdb2f2c4c0d84ec709 100755 (executable)
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
index eaf49b331eed4b3401012f6bd89d1f60301b86f1..8debd3e65fa1afe93cc5eeed0ef603a846eae915 100755 (executable)
@@ -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);
        }