fluttervisionsdkplugin 1.3.13
fluttervisionsdkplugin: ^1.3.13 copied to clipboard
A Flutter plugin package for integrating the Flutter Vision SDK into your Flutter application for scanning Barcodes and QrCodes
1.3.13 #
New Features #
Model Management API #
Complete lifecycle management for OCR models with the following capabilities:
- Download models with progress tracking
- Load/unload models for memory optimization
- Check for model updates
- Query downloaded and loaded models
- Delete models to free storage
- Cancel ongoing downloads
- Monitor lifecycle events with listeners
- Make predictions with specific models via makePredictionWithModule()
API Overview #
// Initialize
await ModelManager.initialize((builder) {
builder.enableLogging(true).lifecycleListener(listener);
});
// Download
await modelManager.downloadModel(
module: module,
apiKey: apiKey,
onProgress: (progress) => print('${progress.progressPercent}%'),
);
// Load
await modelManager.loadModel(module: module, apiKey: apiKey);
// Query
final downloaded = await modelManager.findDownloadedModels();
final loaded = await modelManager.findLoadedModels();
// Check updates
final updateInfo = await modelManager.checkModelUpdates(module: module, apiKey: apiKey);
// Unload
await modelManager.unloadModel(module);
// Delete
await modelManager.deleteModel(module);