Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Add custom (TensorFlow Lite) models support to the ML Kit feature #702
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jan 17, 2019
1 parent ad1979e commit 92a0403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ML_KIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ firebase.mlkit.landmarkrecognition.recognizeLandmarksCloud({
[Firebase documentation 🌎](https://firebase.google.com/docs/ml-kit/use-custom-models)
⚠️ Please take note of the following:
⚠️ *Please take note of the following:*
- Currently only models bundled with your app can be used (not ones hosted on Firebase). That may change in the future.
- Prefix the `localModelFile` and `labelsFile` below with `~/` so they point to your `app/` folder. This is for future compatibility, because I'd like to support loading models from the native bundle as well.
Expand Down Expand Up @@ -398,13 +398,13 @@ firebase.mlkit.custommodel.useCustomModel({
#### Live camera feed
The basics are explained above for 'Text recognition'.
Make sure to specify `modelInputShape` without the `[` and `]` characters.
```typescript
import { registerElement } from "nativescript-angular/element-registry";
registerElement("MLKitCustomModel", () => require("nativescript-plugin-firebase/mlkit/custommodel").MLKitCustomModel);
```
> ⚠️ Make sure to specify `modelInputShape` without the `[` and `]` characters.
```html
<MLKitCustomModel
width="100%"
Expand Down

0 comments on commit 92a0403

Please sign in to comment.