diff --git a/APP_Framework/Applications/knowing_app/face_detect/face_detect.c b/APP_Framework/Applications/knowing_app/face_detect/face_detect.c index dc9c6568..6eca1091 100644 --- a/APP_Framework/Applications/knowing_app/face_detect/face_detect.c +++ b/APP_Framework/Applications/knowing_app/face_detect/face_detect.c @@ -182,6 +182,8 @@ void face_detect() printf("open ov2640 fail !!"); return; } + _ioctl_set_dvp_reso set_dvp_reso = {sensor_output_size[1], sensor_output_size[0]}; + ioctl(g_fd, IOCTRL_CAMERA_SET_DVP_RESO, &set_dvp_reso); showbuffer = (unsigned char *)malloc(sensor_output_size[0] * sensor_output_size[1] * 2); if (NULL == showbuffer) { close(g_fd); diff --git a/APP_Framework/Applications/knowing_app/helmet_detect/README.md b/APP_Framework/Applications/knowing_app/helmet_detect/README.md index 006427ed..36029e9f 100644 --- a/APP_Framework/Applications/knowing_app/helmet_detect/README.md +++ b/APP_Framework/Applications/knowing_app/helmet_detect/README.md @@ -144,7 +144,7 @@ Copy json config for deployment o SD card */kmodel*. Example config file is *hel - net_input_size: same as *input_size* in training config file, but array only. - net_output_shape: final feature map size, can be found in **nncase** output. -- sensor_output_size: image height and width from camera, same as *dvp_set_image_size(Ubiquitous/RT_Thread/bsp/k210/base-drivers/drv_dvp.c L70(71))*. +- sensor_output_size: image height and width from camera. - kmodel_size: kmodel size shown in file system. - anchors: same as *anchor* in training config file(multi-dimention anchors flatten to 1 dim). - labels: same as *label* in training config file. diff --git a/APP_Framework/Applications/knowing_app/helmet_detect/helmet_detect.c b/APP_Framework/Applications/knowing_app/helmet_detect/helmet_detect.c index 3ea8e2dd..5fff6411 100644 --- a/APP_Framework/Applications/knowing_app/helmet_detect/helmet_detect.c +++ b/APP_Framework/Applications/knowing_app/helmet_detect/helmet_detect.c @@ -182,6 +182,8 @@ void helmet_detect() printf("open ov2640 fail !!"); return; } + _ioctl_set_dvp_reso set_dvp_reso = {sensor_output_size[1], sensor_output_size[0]}; + ioctl(g_fd, IOCTRL_CAMERA_SET_DVP_RESO, &set_dvp_reso); showbuffer = (unsigned char *)malloc(sensor_output_size[0] * sensor_output_size[1] * 2); if (NULL == showbuffer) { close(g_fd); diff --git a/APP_Framework/Applications/knowing_app/instrusion_detect/instrusion_detect.c b/APP_Framework/Applications/knowing_app/instrusion_detect/instrusion_detect.c index 62929d0a..c5ac9ee3 100644 --- a/APP_Framework/Applications/knowing_app/instrusion_detect/instrusion_detect.c +++ b/APP_Framework/Applications/knowing_app/instrusion_detect/instrusion_detect.c @@ -182,6 +182,8 @@ void instrusion_detect() printf("open ov2640 fail !!"); return; } + _ioctl_set_dvp_reso set_dvp_reso = {sensor_output_size[1], sensor_output_size[0]}; + ioctl(g_fd, IOCTRL_CAMERA_SET_DVP_RESO, &set_dvp_reso); showbuffer = (unsigned char *)malloc(sensor_output_size[0] * sensor_output_size[1] * 2); if (NULL == showbuffer) { close(g_fd);