mirror of
https://gitcode.com/gh_mirrors/es/esp32-opencv.git
synced 2025-08-26 10:23:48 +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.pixel_format = CAMERA_PIXEL_FORMAT;
|
||||||
config.frame_size = CAMERA_FRAME_SIZE;
|
config.frame_size = CAMERA_FRAME_SIZE;
|
||||||
config.jpeg_quality = 10;
|
config.jpeg_quality = 10;
|
||||||
config.fb_count = 2;
|
config.fb_count = 1;
|
||||||
|
|
||||||
// camera init
|
// camera init
|
||||||
esp_err_t err = esp_camera_init(&config);
|
esp_err_t err = esp_camera_init(&config);
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
* PIXFORMAT_JPEG, // JPEG/COMPRESSED
|
* PIXFORMAT_JPEG, // JPEG/COMPRESSED
|
||||||
* PIXFORMAT_RGB888, // 3BPP/RGB888
|
* PIXFORMAT_RGB888, // 3BPP/RGB888
|
||||||
*/
|
*/
|
||||||
#define CAMERA_PIXEL_FORMAT PIXFORMAT_JPEG
|
#define CAMERA_PIXEL_FORMAT PIXFORMAT_RGB565
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FRAMESIZE_QQVGA, // 160x120
|
* FRAMESIZE_QQVGA, // 160x120
|
||||||
|
Reference in New Issue
Block a user