You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vision explain always used the board’s fixed init frame size, so higher-res sensors (e.g. AtomS3R-M12 OV3660) could not send enough detail for text/label reading.
Changes
Camera::SetFrameSize(name) — optional API; empty string is a no-op; unsupported drivers return false
Esp32Camera — parse common size names (QVGA/VGA/SVGA/UXGA/…); sensor-only change when FB fits; reinit (with restore) when a larger buffer is needed; keep hmirror/vflip
CopilotAI
changed the title
[WIP] Add configurable resolution for camera vision explain
feat(camera): configurable resolution for vision explain capture
Aug 2, 2026
Esp32Camera now reads the sensor max framesize via esp_camera_sensor_get_info() and exposes the supported named modes through Camera::GetSupportedFrameSizeNames() / GetFrameSizeName().
At MCP registration time, self.camera.take_photo builds its description from that list (e.g. GC0308 → up to VGA; OV3660 → up to QXGA) and includes the current default. The optional resolution argument is only advertised when the driver reports selectable sizes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vision explain always used the board’s fixed init frame size, so higher-res sensors (e.g. AtomS3R-M12 OV3660) could not send enough detail for text/label reading.
Changes
Camera::SetFrameSize(name)— optional API; empty string is a no-op; unsupported drivers return falseEsp32Camera— parse common size names (QVGA/VGA/SVGA/UXGA/…); sensor-only change when FB fits; reinit (with restore) when a larger buffer is needed; keep hmirror/vflipself.camera.take_photo— optionalresolutionargument (default = board setting)CAMERA_FRAME_SIZE_NAMEinconfig.h(default"SVGA"); init QVGA then raise OV3660 → board default, GC0308 → VGAUsage
{ "name": "self.camera.take_photo", "arguments": { "question": "Read the label text", "resolution": "SVGA" } }Higher resolutions trade RAM and upload latency for detail; leave
resolutionunset to keep the board default.