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
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Make sure to check out [this demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/tree/master/demo-ng) because it has almost all ML Kit features this plugin currently supports! Steps:
3
+
Make sure to check out [this demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/tree/issue699-mlkit-support/demo-ng) because it has almost all ML Kit features this plugin currently supports! Steps:
@@ -18,8 +18,8 @@ then clean your platforms folder (`rm -rf platforms`) and build your app again.
18
18
## ML Kit Features
19
19
There are two ways of using ML Kit:
20
20
21
-
-*On-device*. These features have been enhanced to not only interpret still images, but you can also run ML against a live camera feed. Why? Because it's fr***ing cool!
22
-
-*Cloud*. The cloud has much larger and always up to date models, so results will be more accurate. Since this is a remote service reconition speed depends heavily on the size of the images you send to the cloud.
21
+
-**On-device**. These features have been enhanced to not only interpret still images, but you can also run ML against a live camera feed. Why? Because it's fr***ing cool!
22
+
-**Cloud**. The cloud has much larger and always up to date models, so results will be more accurate. Since this is a remote service reconition speed depends heavily on the size of the images you send to the cloud.
23
23
24
24
### On-device configuration
25
25
Optionally (but recommended) for Android, you can have the device automatically download the relevant ML model(s) to the device
@@ -66,8 +66,9 @@ To nbe able to use Cloud features you need to do two things:
66
66
*) _Currently detecting faces from still images doesn't work on iOS (from the camera stream works fine tho)._
67
67
68
68
### Text recognition
69
-
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/features/mlkit_text_recognition.png"height="153px"alt="ML Kit - Text recognition"/>
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/issue699-mlkit-support/docs/images/features/mlkit_text_recognition.png"height="153px"alt="ML Kit - Text recognition"/>
@@ -107,7 +108,7 @@ Plugin-specific are the optional property `processEveryNthFrame` and optional ev
107
108
You can `processEveryNthFrame` set to a lower value than the default (5) to put less strain on the device.
108
109
Especially 'Face detection' seems a bit more CPU intensive, but for 'Text recognition' the default is fine.
109
110
110
-
> Look at [the demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/tree/master/demo-ng) to see how to wire up that `onTextRecognitionResult` function.
111
+
> Look at [the demo app](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/tree/issue699-mlkit-support/demo-ng) to see how to wire up that `onTextRecognitionResult` function.
111
112
112
113
##### Angular / Vue
113
114
Register a custom element like so in the component/module:
@@ -133,11 +134,11 @@ Now you're able to use the registered element in the view:
133
134
Declare a namespace at the top of the embedding page, and use it anywhere on the page:
@@ -150,8 +151,9 @@ Declare a namespace at the top of the embedding page, and use it anywhere on the
150
151
> Note that with NativeScript 4 the `Page` tag may actually be a `TabView`, but adding the namespace declaration to the TabView works just as well.
151
152
152
153
### Face detection
153
-
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/features/mlkit_face_detection.png"height="153px"alt="ML Kit - Face detection"/>
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/issue699-mlkit-support/docs/images/features/mlkit_face_detection.png"height="153px"alt="ML Kit - Face detection"/>
0 commit comments