Dear Ameba team,
We are currently using config.setJpegQuality(val) before applying the configuration, but we don’t see any noticeable difference in the captured image.
The value of val is set between 1 and 9, and we are using the default F37 camera. Could you please confirm whether this API is already implemented and functional?
We also checked the generated JPEG files, and it appears that the quantization tables in the header remain unchanged.
If it is not yet working, could you kindly let us know when this feature is expected to be available?
Thank you very much for your support.
below is a partial example:
VideoSetting config(VIDEO_FHD, CAM_FPS, VIDEO_JPEG, 1);
//init code
config.setJpegQuality(val);
Camera.configVideoChannel(CHANNEL,config);
Camera.videoInit();
Camera.channelBegin(CHANNEL);
String path = String(fs.getRootPath()) + String(FILENAME) + "_q" + input + ".jpg";
File file = fs.open(path);
delay(1000);
Camera.getImage(CHANNEL, &img_addr, &img_len);
file.write((uint8_t *)img_addr, img_len);
Serial.print(path);
Serial.println(" Save.");
file.close();
fs.end();
}