Skip to content

Commit

Permalink
(bitcraze#51) added camera control before rotating camera
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire committed Aug 4, 2021
1 parent a011ec5 commit a71bf17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions GAP8/image_processing_examples/FaceDetection/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ static int open_camera_himax(struct pi_device *device)
return -1;

// rotate image
pi_camera_control(&camera, PI_CAMERA_CMD_START, 0);
uint8_t set_value=3;
uint8_t reg_value;
pi_camera_reg_set(device, IMG_ORIENTATION, &set_value);
Expand Down
3 changes: 2 additions & 1 deletion GAP8/image_processing_examples/simple_kernel_example/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ static int open_camera(struct pi_device *device)
pi_open_from_conf(device, &cam_conf);
if (pi_camera_open(device))
return -1;
uint8_t set_value=3;
pi_camera_control(&camera, PI_CAMERA_CMD_START, 0);
uint8_t set_value=3;
uint8_t reg_value;
pi_camera_reg_set(device, IMG_ORIENTATION, &set_value);
pi_time_wait_us(1000000);
Expand Down
1 change: 1 addition & 0 deletions GAP8/test_functionalities/wifi_jpeg_streamer/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static int open_pi_camera_mt9v034(struct pi_device *device)
return -1;

// rotate image
pi_camera_control(&camera, PI_CAMERA_CMD_START, 0);
uint8_t set_value=3;
uint8_t reg_value;
pi_camera_reg_set(&camera, IMG_ORIENTATION, &set_value);
Expand Down

0 comments on commit a71bf17

Please sign in to comment.