import { Component } from "@angular/core" ; import { MLKitCustomModelResult } from "nativescript-plugin-firebase/mlkit/custommodel" ; import { AbstractMLKitViewComponent } from "~/tabs/mlkit/abstract.mlkitview.component" ; @ Component ( { selector : "mlkit-custommodel" , moduleId : module . id , templateUrl : "./custommodel.component.html" , } ) export class CustomModelComponent extends AbstractMLKitViewComponent { labels : Array < { text : string ; confidence : number ; } > ; onCustomModelResult ( scanResult ) { const value = scanResult . value ; this . labels = value . result ; } }