-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Update firebase_ml_vision for latest Firebase MLKit API #774
Conversation
## 0.2.0 | ||
|
||
* **Breaking Change** Update TextDetector to TextRecognizer for android mlkit '17.0.0' and | ||
firebase-ios-sdk '5.6.0'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
* **Breaking Change** Update TextDetector to TextRecognizer for android mlkit '17.0.0' and | ||
firebase-ios-sdk '5.6.0'. | ||
* Added CloudLabelDetector. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done in: #695
@@ -55,7 +55,20 @@ public void onFailure(@NonNull Exception e) { | |||
|
|||
private FirebaseVisionCloudDetectorOptions parseOptions(Map<String, Object> optionsData) { | |||
final int maxResults = (int) optionsData.get("maxResults"); | |||
final int modelType = (int) optionsData.get("modelType"); | |||
final String modelTypeStr = (String) optionsData.get("modelType"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a few changes with how to handle type so no changes to the API will break this.
@@ -89,7 +89,7 @@ + (void)addData:(NSMutableDictionary *)addTo | |||
} | |||
|
|||
[addTo addEntriesFromDictionary:@{ | |||
@"confidence" : confidence, | |||
@"confidence" : confidence ? confidence : [NSNull null], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed crash issue
@@ -0,0 +1,36 @@ | |||
// Copyright 2018 The Chromium Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is mostly a file rename vision_cloud_detector_options.dart
-> cloud_detector_option.dart
@@ -0,0 +1,153 @@ | |||
// Copyright 2018 The Chromium Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only a file rename text_detector.dart
-> text_recognizer.dart
with accompanied class rename
96a0586
to
13de128
Compare
13de128
to
8d42b73
Compare
For the files name changes of
vision_cloud_detector_options.dart
andtext_detector.dart
:#803