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.
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/features/mlkit_text_recognition.png"height="153px"alt="ML Kit - Text recognition"/>
The exact details of using the live camera view depend on whether you're using Angular / Vue or not.
101
+
The exact details of using the live camera view depend on whether or not you're using Angular / Vue.
102
+
103
+
You can use any view-related property you like as we're extending `ContentView`.
104
+
So things like `class`, `row`, `width`, `horizontalAlignment`, `style` are all valid properties.
105
+
106
+
Plugin-specific are the optional property `processEveryNthFrame` and optional event `scanResult`.
107
+
You can `processEveryNthFrame` set to a lower value than the default (5) to put less strain on the device.
108
+
Especially 'Face detection' seems a bit more CPU intensive, but for 'Text recognition' the default is fine.
109
+
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.
101
111
102
112
##### Angular / Vue
103
-
Register a custom element like so in their component/module:
113
+
Register a custom element like so in the component/module:
@@ -119,39 +129,29 @@ Now you're able to use the registered element in the view:
119
129
</MLKitTextRecognition>
120
130
```
121
131
122
-
You can use any view-related property you like as we're extending `ContentView`.
123
-
So things like `class`, `row`, `width`, `horizontalAlignment`, `style` are all valid properties.
124
-
125
-
Plugin-specific are the optional property `processEveryNthFrame` and optional event `scanResult`.
126
-
You can `processEveryNthFrame` set to a lower value than the default (5) to put less strain on the device.
127
-
Especially 'Face detection' seems a bit more CPU intensive, but for 'Text recognition' the default is fine.
128
-
129
-
> 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.
130
-
131
-
### XML
132
-
Declarate a namespace at the top of the embedding page, and use it somewhere on the page:
132
+
##### XML
133
+
Declare a namespace at the top of the embedding page, and use it anywhere on the page:
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/features/mlkit_face_detection.png"height="153px"alt="ML Kit - Face detection"/>
formats: [BarcodeFormat.QR_CODE, BarcodeFormat.CODABAR] // limit recognition to certain formats (faster), or leave out entirely for all formats (default)
197
-
}).then((result:MLKitScanBarcodesOnDeviceResult) => { // just look at this type to see what else is returned
0 commit comments