camera_android_frame 0.10.12
camera_android_frame: ^0.10.12 copied to clipboard
Android implementation of the camera plugin.
camera_android #
The Android implementation of the camera plugin.
This package provides low-level camera access for the Android platform, used internally by the camera plugin.
π New Feature: Capture Preview Frame #
This version introduces a new platform method: capturePreviewFrame(), which allows retrieving a single JPEG frame from the camera preview without taking a full-resolution photo.
β Use Cases #
- Fast frame grabs for processing or analysis
- Lightweight snapshot preview without shutter delay
- ML/AI scanning without full capture overhead
π How It Works #
- Internally uses an additional
ImageReaderwith YUV format. - Maintains low latency (~10β50ms) compared to
takePicture(). - Avoids interrupting the preview or recording session
π§ Flutter Usage (via Pigeon) #
final data = await cameraController.capturePreviewFrame();
// `data` is a CamereImageData
πΉ startListenFrames() / stopListenFrames #
await cameraController.startFrameStream((frame) {
// process
});