Added parameter for enable/disable EXIF metadata for the stream

pull/60/head
Miroslav Pivovarsky 2024-06-27 22:33:49 +02:00
parent 2689a8f563
commit f6e3de0f6f
2 changed files with 3 additions and 1 deletions

View File

@ -488,7 +488,8 @@ void Camera::CaptureStream(camera_fb_t* i_buf) {
/* check if the photo is rotated */
bool ExifStatus = false;
#if false
#if (true == CAMERA_EXIF_ROTATION_STREAM)
if (1 != imageExifRotation) { /* 1 = image rotation 0 degree */
/* generate exif header */
update_exif_from_cfg(imageExifRotation);

View File

@ -101,6 +101,7 @@
#define CAMERA_MAKE "OmniVision" ///< Camera make string
#define CAMERA_MODEL "OV2640" ///< Camera model string
#define CAMERA_SOFTWARE "Prusa ESP32-cam" ///< Camera software string
#define CAMERA_EXIF_ROTATION_STREAM false ///< enable camera exif rotation for stream
/* ---------------- TIMELAPS CFG ----------------*/
#define TIMELAPS_PHOTO_FOLDER "/timelapse" ///< folder for timelaps photos