diff --git a/example/image_classification/pubspec.yaml b/example/image_classification/pubspec.yaml index d05016c..1f4545f 100644 --- a/example/image_classification/pubspec.yaml +++ b/example/image_classification/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: logger: ^1.0.0 path_provider: - tflite_flutter: ^0.8.0 + tflite_flutter: ^0.9.0 tflite_flutter_helper: path: ../../ @@ -39,7 +39,7 @@ dev_dependencies: flutter_driver: sdk: flutter integration_test: - sdk: flutter + sdk: flutter # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/lib/src/image/tensor_buffer_container.dart b/lib/src/image/tensor_buffer_container.dart index 758007d..93be2c0 100644 --- a/lib/src/image/tensor_buffer_container.dart +++ b/lib/src/image/tensor_buffer_container.dart @@ -85,17 +85,18 @@ class TensorBufferContainer implements BaseImageContainer { throw UnsupportedError( "Converting from TensorBuffer to android.media.Image is unsupported."); } + @override int get width { // In case the underlying buffer in Tensorbuffer gets updated after TensorImage is created. - _colorSpaceType.assertNumElements(_buffer.getFlatSize(), height, width); + _colorSpaceType.assertNumElements(_buffer.getFlatSize(), _height, _width); return _width; } @override int get height { // In case the underlying buffer in Tensorbuffer gets updated after TensorImage is created. - _colorSpaceType.assertNumElements(_buffer.getFlatSize(), height, width); + _colorSpaceType.assertNumElements(_buffer.getFlatSize(), _height, _width); return _height; } @@ -104,4 +105,4 @@ class TensorBufferContainer implements BaseImageContainer { return _colorSpaceType; } -} \ No newline at end of file +} diff --git a/pubspec.lock b/pubspec.lock index 024e820..bdbbffe 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,14 +28,14 @@ packages: name: camera url: "https://pub.dartlang.org" source: hosted - version: "0.8.1+3" + version: "0.8.1+7" camera_platform_interface: dependency: transitive description: name: camera_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.1.0" characters: dependency: transitive description: @@ -70,7 +70,7 @@ packages: name: cross_file url: "https://pub.dartlang.org" source: hosted - version: "0.3.1+1" + version: "0.3.1+4" crypto: dependency: transitive description: @@ -91,14 +91,14 @@ packages: name: ffi url: "https://pub.dartlang.org" source: hosted - version: "1.0.0" + version: "1.1.2" file: dependency: transitive description: name: file url: "https://pub.dartlang.org" source: hosted - version: "6.1.0" + version: "6.1.2" flutter: dependency: "direct main" description: flutter @@ -143,21 +143,21 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "2.0.1" + version: "2.0.2" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.2" path_provider_macos: dependency: transitive description: name: path_provider_macos url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.2" path_provider_platform_interface: dependency: transitive description: @@ -171,7 +171,7 @@ packages: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.3" pedantic: dependency: transitive description: @@ -192,21 +192,21 @@ packages: name: platform url: "https://pub.dartlang.org" source: hosted - version: "3.0.0" + version: "3.0.2" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.0.1" process: dependency: transitive description: name: process url: "https://pub.dartlang.org" source: hosted - version: "4.2.1" + version: "4.2.3" quiver: dependency: "direct main" description: @@ -274,7 +274,7 @@ packages: name: tflite_flutter url: "https://pub.dartlang.org" source: hosted - version: "0.8.0" + version: "0.9.0" tuple: dependency: "direct main" description: @@ -302,7 +302,7 @@ packages: name: win32 url: "https://pub.dartlang.org" source: hosted - version: "2.0.5" + version: "2.2.5" xdg_directories: dependency: transitive description: @@ -316,7 +316,7 @@ packages: name: xml url: "https://pub.dartlang.org" source: hosted - version: "5.1.0" + version: "5.1.2" sdks: - dart: ">=2.12.0 <3.0.0" + dart: ">=2.13.0 <3.0.0" flutter: ">=2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index dbd20b3..cbe807b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: meta: ^1.1.8 quiver: ^3.0.1 path_provider: ^2.0.1 - tflite_flutter: ^0.8.0 + tflite_flutter: ^0.9.0 image: ^3.0.2 tuple: ^2.0.0 camera: ^0.8.1+3