Mar. 14. 2018

Dependencies:   GraphicsFramework GR-PEACH_video LCD_shield_config AsciiFont R_BSP USBHost_custom

Revision:
3:0760680f06d8
Parent:
1:11be006960b1
Child:
5:49a61433290a
--- a/recognition_proc/recognition_proc.cpp	Tue Feb 28 02:53:53 2017 +0000
+++ b/recognition_proc/recognition_proc.cpp	Wed Mar 08 07:43:42 2017 +0000
@@ -10,7 +10,7 @@
 #define UART_REGIST_EXECUTE_TIMEOUT       7000            /* HVC registration command signal timeout period */
 #define UART_EXECUTE_TIMEOUT             10000            /* HVC execute command signal timeout period */
 
-#define SENSOR_ROLL_ANGLE_DEFAULT            0            /* Camera angle setting (0°) */
+#define SENSOR_ROLL_ANGLE_DEFAULT            0            /* Camera angle setting */
 #define USER_ID_NUM_MAX                     10
 
 #define ERROR_02                         "Error: Number of detected faces is 2 or more"
@@ -113,8 +113,8 @@
             }
             idx_r++;
         }
-        for (k = 0; k < (magnification - 1); k++) {
-            memcpy(&user_frame_buffer0[idx_w + (idx_w - wk_tmp) * k], &user_frame_buffer0[wk_tmp], idx_w - wk_tmp);
+        for (k = 1; k < magnification; k++) {
+            memcpy(&user_frame_buffer0[wk_tmp + (DISP_PIXEL_WIDTH * RESULT_BUFFER_BYTE_PER_PIXEL * k)], &user_frame_buffer0[wk_tmp], idx_w - wk_tmp);
         }
     }
 }
@@ -280,7 +280,7 @@
     INT32 dataID;
     const char *pExStr[] = {"?", "Neutral", "Happiness", "Surprise", "Anger", "Sadness"};
     uint32_t i;
-    char Str_disp[16];
+    char Str_disp[32];
     Timer resp_time;
 
     /* Register the button */