You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-19Lines changed: 14 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,10 @@ First, add `flutter_camera_ml_vision` as a dependency.
16
16
dependencies:
17
17
flutter:
18
18
sdk: flutter
19
-
flutter_camera_ml_vision: ^2.2.4
19
+
flutter_camera_ml_vision: ^3.0.1
20
20
...
21
21
```
22
22
23
-
## Configure Firebase
24
-
You must also configure Firebase for each platform project: Android and iOS (see the `example` folder or https://firebase.google.com/codelabs/firebase-get-to-know-flutter#3 for step by step details).
25
-
26
-
27
23
### iOS
28
24
29
25
Add two rows to the ios/Runner/Info.plist:
@@ -42,10 +38,10 @@ Or in text format add the key:
42
38
If you're using one of the on-device APIs, include the corresponding ML Kit library model in your Podfile. Then run pod update in a terminal within the same directory as your Podfile.
43
39
44
40
```
45
-
pod 'Firebase/MLVisionBarcodeModel'
46
-
pod 'Firebase/MLVisionFaceModel'
47
-
pod 'Firebase/MLVisionLabelModel'
48
-
pod 'Firebase/MLVisionTextModel'
41
+
pod 'GoogleMLKit/BarcodeScanning'
42
+
pod 'GoogleMLKit/FaceDetection'
43
+
pod 'GoogleMLKit/ImageLabeling'
44
+
pod 'GoogleMLKit/TextRecognition'
49
45
```
50
46
51
47
### Android
@@ -65,7 +61,7 @@ android {
65
61
dependencies {
66
62
// ...
67
63
68
-
api 'com.google.firebase:firebase-ml-vision-image-label-model:19.0.0'
64
+
api 'com.google.mlkit:image-labeling:17.0.5'
69
65
}
70
66
}
71
67
```
@@ -78,7 +74,7 @@ Optional but recommended: If you use the on-device API, configure your app to au
`CameraMlVision` is a widget that shows the preview of the camera. It takes a detector as a parameter here we pass the `detectInImage` method of the `BarcodeDetector` object.
105
-
The detector parameter can take all the different FirebaseVision Detector. Here is a list :
100
+
`CameraMlVision` is a widget that shows the preview of the camera. It takes a detector as a parameter; here we pass the `processImage` method of the `BarcodeScanner` object.
101
+
The detector parameter can take all the different MLKit Vision Detectors. Here is a list :
0 commit comments