相关文章推荐
文雅的领带  ·  Neo4j的使用②| ...·  1 年前    · 
鬼畜的钢笔  ·  python中numpy.random.ga ...·  1 年前    · 
彷徨的马铃薯  ·  python线上运行-掘金·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams emulator, but it does not work on my Android device.

Here, the TextRecognizer returns false, my application does not continue to run

 protected override void OnCreate(Bundle bundle)
            base.OnCreate(bundle);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            cameraView = FindViewById<SurfaceView>(Resource.Id.surface_view);
            textView=FindViewById<TextView>(Resource.Id.text_view);
            TextRecognizer textRecognizer=new TextRecognizer.Builder(ApplicationContext).Build();
            if (!textRecognizer.IsOperational)
                Log.Error("Error","Hata var");
                cameraSource = new CameraSource.Builder(ApplicationContext, textRecognizer)
                    .SetFacing(CameraFacing.Back)
                    .SetRequestedPreviewSize(1280, 1024)
                    .SetRequestedFps(2.0f)
                    .SetAutoFocusEnabled(true)
                    .Build();
                cameraView.Holder.AddCallback(this);
                textRecognizer.SetProcessor(this);

All the permissions for devices are open still the App is not able to run on two different devices LG-Android Version 7.0 Samsung-Android Version 4.2.1

Help me please!

You are never creating/setting the OCR processor on your TextRecognizer instance. Once you do that, the Google Play services will also be able to download the correct models to the device if they are not already available.

textRecognizer.SetProcessor(new OcrDetectorProcessor(_GraphicOverlay));

You will need to subclass Detector.Processor and implement the ReceiveDetections (override) method.

re: https://developers.google.com/android/reference/com/google/android/gms/vision/Detector

I'm not good enough to know what you say I followed this example This example worked correctly youtube.com/watch?v=3aRlYjSQPc8 – Z.Kirik Nov 30, 2017 at 7:13

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.