Skip to content

Commit

Permalink
chore: update documentation in commons
Browse files Browse the repository at this point in the history
  • Loading branch information
fbernaly committed Jun 28, 2023
1 parent 6d7e82c commit 9f04047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/google_mlkit_commons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ From bytes:
final inputImage = InputImage.fromBytes(bytes: bytes, metadata: metadata);
```

If you are using the [Camera plugin](https://pub.dev/packages/camera)) make sure to configure your [CameraController](https://pub.dev/documentation/camera/latest/camera/CameraController-class.html) to only use `nv21` for Android and `bgra8888` for iOS.
If you are using the [Camera plugin](https://pub.dev/packages/camera) make sure to configure your [CameraController](https://pub.dev/documentation/camera/latest/camera/CameraController-class.html) to only use `nv21` for Android and `bgra8888` for iOS.

```dart
import 'dart:io';
Expand Down
2 changes: 2 additions & 0 deletions packages/google_mlkit_commons/lib/src/input_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class InputImageMetadata {
final Size size;

/// Image rotation degree.
///
/// Not used on iOS.
final InputImageRotation rotation;

/// Format of the input image.
Expand Down

0 comments on commit 9f04047

Please sign in to comment.