EasyManuals Logo

Freenove ESP32 User Manual

Default Icon
159 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #139 background imageLoading...
Page #139 background image
Need support? support@freenove.com
137
Chapter 14 Camera Web Server
www.freenove.com
Open the video streams server function of the camera and print its IP address via serial port.
102
103
104
105
106
startCameraServer();
Serial.print("Camera Ready! Use 'http://");
Serial.print(WiFi.localIP());
Serial.println("' to connect");
Configure the display image information of the camera.
The set_vflip() function sets whether the image is flipped 180°, with 0 for no flip and 1 for flip 180°.
The set_brightness() function sets the brightness of the image, with values ranging from -2 to 2.
The set_saturation() function sets the color saturation of the image, with values ranging from -2 to 2.
79
80
81
82
83
84
85
sensor_t * s = esp_camera_sensor_get();
// initial sensors are flipped vertically and colors are a bit saturated
if (s->id.PID == OV3660_PID) {
s->set_vflip(s, 1); // flip it back
s->set_brightness(s, 1); // up the brightness just a bit
s->set_saturation(s, -2); // lower the saturation
}
Modify the resolution and sharpness of the images captured by the camera. The sharpness ranges from 10 to
63, and the smaller the number, the sharper the picture. The larger the number, the blurrier the picture. Please
refer to the table below.
58
59
60
config.frame_size = FRAMESIZE_UXGA;
config.jpeg_quality = 10;
config.fb_count = 2;
Reference
Image resolution
Sharpness
Image resolution
Sharpness
FRAMESIZE_QQVGA
160x120
FRAMESIZE_VGA
640x480
FRAMESIZE_QQVGA2
128x160
FRAMESIZE_SVGA
800x600
FRAMESIZE_QCIF
176x144
FRAMESIZE_XGA
1024x768
FRAMESIZE_HQVGA
240x176
FRAMESIZE_SXGA
1280x1024
FRAMESIZE_QVGA
320x240
FRAMESIZE_UXGA
1600x1200
FRAMESIZE_CIF
400x296
FRAMESIZE_QXGA
2048x1536

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Freenove ESP32 and is the answer not in the manual?

Freenove ESP32 Specifications

General IconGeneral
BrandFreenove
ModelESP32
CategoryComputer Hardware
LanguageEnglish

Related product manuals