Questions tagged [google-vision]

The Google Mobile Vision API for Android provides a framework for finding objects in photos and video.

The Google Mobile Vision API for Android provides a framework for finding objects in photos and video.

Note that issues related to the Google Cloud Vision API should use the tag "google-cloud-vision" rather than this tag.

Learn more about the Google Mobile Vision API through the Google Mobile Vision documentation and Google Mobile Vision sample apps.

720 questions
12
votes
1 answer

How to use mobile vision API with TextureView and Camera

I am using mobile vision API for scanning barcode. I am using TextureView to render camera on it. I read this github thread https://github.com/googlesamples/android-vision/issues/15 it seems mobile vision is not compatible with TextureView I see…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
12
votes
2 answers

Android Vision - Reduce bar code tracking window

I'm trying to implement Google Visions scanner into an app im working on. By default its a full screen activity and barcodes are tracked over the entire screen. However, I need a fullscreen camera but with a limited scanning window. For example, the…
devchimp
  • 754
  • 6
  • 18
12
votes
2 answers

Preview size for barcode scanner from vision api

I'm using the barcode-reader example from Google's Android Vision API. The preview size doesn't seem to fill up the whole space available (I'm using a Nexus 4 and there is a white unused space to the right of preview, about 1/3 of the width). I…
mmagician
  • 1,970
  • 2
  • 15
  • 26
12
votes
6 answers

Android Computer Vision JavaCV OpenCV FastCV comparison

I am working on school project and part of it should be about current situation about computer vision libraries for Android. I went to it with large enthusiasm because computer vision seems like fascinating subject but I have been searching for more…
Peter
  • 240
  • 1
  • 4
  • 12
11
votes
0 answers

Google Vision API possible memory leak

I'm trying to make an app to process a set of frames, stored as jpg into the app using Google-vision API. The pipeline is simple. 1) I create the detector with some options: _options = @{ GMVDetectorFaceLandmarkType :…
Ivan
  • 782
  • 11
  • 23
10
votes
3 answers

ML Kit Vision on-device text recognition not downloading model: Waiting for the text recognition model to be downloaded. Please wait

I know there are many similar questions (here, here or here) but even though I've followed the suggested instructions I'm still facing the same issue. Even though it seems I have the project configured correctly, the Firebase ML Kit seems to have…
10
votes
6 answers

Text extraction - line-by-line

I am using Google Vision API, primarily to extract texts. I works fine, but for specific cases where I would need the API to scan the enter line, spits out the text before moving to the next line. However, it appears that the API is using some kind…
9
votes
2 answers

Google Vision for PDF

I need to send a PDF file to Google Vision to extract and return text. From documentation I understood that DPF file must be located on Google Storage, so I am putting the file to my Google Storage bucket like this: require…
santa
  • 12,234
  • 49
  • 155
  • 255
9
votes
2 answers

How to create Bitmap from grayscaled byte buffer image?

I am trying to get frame image to process while using new Android face detection mobile vision api. So I have created Custom Detector to get Frame and tried to call getBitmap() method but it is null so I accessed grayscale data of frame. Is there a…
rcmalli
  • 357
  • 1
  • 4
  • 8
8
votes
1 answer

Cloud Vision API poorly recognizes 7-segment numbers

The simplest example of what I'm trying to recognize: I use DOCUMENT_TEXT_DETECTION, but in the answer I get the hieroglyphics. If I use Eng in the ImageContext parameter for the addAllLanguageHints method, then I have 111 in result. Better, but…
berek
  • 91
  • 4
8
votes
1 answer

Image preprocessing for egg marking recognition with Tesseract

The goal is to make an app which can recognize egg markings, for example 0-DE-134461. I tried both Tesseract and the Google Vision API on the following images. The results from both OCR engines are disastrous. 0-DE-46042 Tesseract → "" Google…
Tomasito665
  • 1,188
  • 1
  • 12
  • 24
8
votes
3 answers

Google Vision Batch Annotate Images with Java Client Library

I am getting an exception when trying to annotate images via Google Vision using the provided java client google vision. specifically this code where the batch client.batchAnnotateImages occurs: public void processOCR(byte[] file) { …
Johann Combrink
  • 692
  • 8
  • 18
7
votes
1 answer

Where to use Language hints in google-vision text-detection api?

So I know that google-vision api supports multiple language for text-detection. And by using the code below I can detect english language from image. But according to google I can use the parameter language hints to detect other languages. So where…
sayeedk06
  • 103
  • 2
  • 9
7
votes
1 answer

Android Mobile Vision API and ML Kit installed without Google Play Services

I have an Android app that uses Android Mobile Vision API to recognise text (OCR). However, the device that the app is installed on has no Google Play Services installed. I want to find out if it is possible to install ONLY Mobile Vision API or ML…
Pingpong
  • 7,681
  • 21
  • 83
  • 209
7
votes
2 answers

google.api_core.exceptions.ServiceUnavailable: 503 Getting metadata from plugin failed with error: 'str' object has no attribute 'before_request'

I'm trying to iterate through images in a directory and get their labels through goodle_api_vision. This is my code: def run_quickstart(): import io import os import cv2 import numpy as np from google.cloud import vision …
Stefano Pozzi
  • 529
  • 2
  • 10
  • 26
1
2
3
47 48