Skip to content

Commit

Permalink
bfix, recursive getter, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
am15h committed Aug 20, 2021
1 parent 9c32221 commit b712f9a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
4 changes: 2 additions & 2 deletions example/image_classification/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
../../
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions lib/src/image/tensor_buffer_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -104,4 +105,4 @@ class TensorBufferContainer implements BaseImageContainer {
return _colorSpaceType;
}

}
}
32 changes: 16 additions & 16 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b712f9a

Please sign in to comment.