ESP32-Camera-Arduino icon indicating copy to clipboard operation
ESP32-Camera-Arduino copied to clipboard

camera_config.frame_size = CAMERA_FS_UXGA;

Open crashdown79 opened this issue 5 years ago • 0 comments

I´ve try to set camera_config.frame_size = CAMERA_FS_UXGA; I also changed and extended camera.h with typedef enum { CAMERA_FS_QQVGA = 4, //!< 160x120 CAMERA_FS_QVGA = 8, //!< 320x240 CAMERA_FS_VGA = 10, //!< 640x480 CAMERA_FS_SVGA = 11, //!< 800x600 CAMERA_FS_UXGA = 13, //!< 1600x1200 } camera_framesize_t; and extend in OV2640.cpp to void OV2640::setFrameSize(camera_framesize_t size) { switch (size) { case CAMERA_FS_QQVGA: case CAMERA_FS_QVGA: case CAMERA_FS_VGA: case CAMERA_FS_SVGA: _cam_config.frame_size = size; break; case CAMERA_FS_UXGA: _cam_config.frame_size = size; break; default: _cam_config.frame_size = CAMERA_FS_SVGA; break; } } The 13 i got from the sensor.h where framesize_t array element for UXGA is 13. Did you try to run it with UXGA resolution and have any hints?

Actualy i get a error while starting:

[D][OV2640.cpp:99] init(): Detected OV2640 camera E (264) camera: Failed to allocate frame buffer [E][OV2640.cpp:112] init(): Camera init failed with error 0x101

crashdown79 avatar Apr 12 '19 15:04 crashdown79