private void InitRenderersAndServices()
 {
     CameraPreviewRenderer.Initialize();
     CarouselView.FormsPlugin.iOS.CarouselViewRenderer.Init();
     SharpnadoInitializer.Initialize();
     TouchRecognizer.Initialize();
     TensorflowLiteService.DoNotStripMe();
 }
Ejemplo n.º 2
0
 private void InitTensorflowLineService()
 {
     using (var modelData = Application.Context.Assets.Open(Model))
     {
         tfService = new TensorflowLiteService();
         tfService.Initialize(modelData, useNumThreads: true);
     }
 }
Ejemplo n.º 3
0
 private void InitTensorflowLineService()
 {
     switch (MainActivity.SavedDataStore.SelectedDetector)
     {
     case Classes.SaveData.DetectorType.MotorcycleModels:
         using (var modelData = Application.Context.Assets.Open(ModelMotoModel))
         {
             tfService_MotoModel = new TensorflowLiteService {
                 ModelType = 2
             };
             tfService_MotoModel.Initialize(modelData, useNumThreads: true);
         }
         break;
     }
 }
        public ImageAvailableListener(ICamera fragment)
        {
            if (fragment == null)
            {
                throw new System.ArgumentNullException("fragment");
            }

            colorArray = new int[TensorflowLiteService.ModelInputSize * TensorflowLiteService.ModelInputSize];

            captureStillImage  = false;
            tensorflowAnalysis = false;

            owner = fragment;

            tensorflowLiteService = DependencyService.Get <TensorflowLiteService>();
            loggingService        = DependencyService.Get <ILoggingService>();
        }
Ejemplo n.º 5
0
 public CameraManager()
 {
     tensorflowLiteService = DependencyService.Get <TensorflowLiteService>();
 }