mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-26 02:10:21 +08:00
now getting camera image in rgb565 instead of jpg
This commit is contained in:
@ -62,7 +62,7 @@ void app_camera_init()
|
||||
config.pixel_format = CAMERA_PIXEL_FORMAT;
|
||||
config.frame_size = CAMERA_FRAME_SIZE;
|
||||
config.jpeg_quality = 10;
|
||||
config.fb_count = 2;
|
||||
config.fb_count = 1;
|
||||
|
||||
// camera init
|
||||
esp_err_t err = esp_camera_init(&config);
|
||||
|
@ -36,7 +36,7 @@
|
||||
* PIXFORMAT_JPEG, // JPEG/COMPRESSED
|
||||
* PIXFORMAT_RGB888, // 3BPP/RGB888
|
||||
*/
|
||||
#define CAMERA_PIXEL_FORMAT PIXFORMAT_JPEG
|
||||
#define CAMERA_PIXEL_FORMAT PIXFORMAT_RGB565
|
||||
|
||||
/*
|
||||
* FRAMESIZE_QQVGA, // 160x120
|
||||
|
Reference in New Issue
Block a user