Repository navigation
v1.2.0
Added
- Zero-copy camera input.
model.startCamera()opens the device camera
natively (CameraX on Android, AVFoundation on iOS), resizes every frame into
the model's input on the model's own thread and streams only the results to
Dart. Includes a live preview texture (NativeCameraPreview), lens and
resolution selection,cover/fill/containresizing, mean / std
normalisation presets, frame-rate throttling, pause / resume and automatic
stale-frame dropping. FlutterNativeML.checkCameraPermission()/requestCameraPermission().InferenceResult.framewith the source frame size, rotation and timestamp.DeviceCapabilities.raw['cameraAvailable'].
Changed
- Android
minSdkis now 23 (required by CameraX 1.5); the plugin declares the
CAMERApermission, which apps that never use the camera can strip with
tools:node="remove". - iOS apps using the camera must declare
NSCameraUsageDescription; the plugin
reportsMISSING_USAGE_DESCRIPTIONinstead of crashing when it is absent.
pub.dev: https://pub.dev/packages/flutter_native_ml/versions/1.2.0