Questions tagged [vision-api]

131 questions
16
votes
3 answers

Take picture with drawable/paint on face using vision api

What I am trying? I am trying to take picture with drawable/paint on face but, i am not able to get both on same picture. What I have tried? I have tried using CameraSource.takePicture but i am just getting face without any drawable/paint on…
SANAT
  • 8,489
  • 55
  • 66
13
votes
4 answers

Convert Vision boundingBox from VNFaceObservation to rect to draw on image

I am trying to use VNDetectFaceRectanglesRequest from the new Vision API to detect faces on images. Then, I draw a red rectangle on each detected face. But I'm having an issue converting the boundingBox from VNFaceObservation into a CGRect. It…
Marie Dm
  • 2,637
  • 3
  • 24
  • 43
11
votes
1 answer

How to get position of text in an image using Mobile Vision API?

How to get the position of text on the screen in an image using Mobile Vision API, and how to draw a rectangle around them? Example:
VINNUSAURUS
  • 1,518
  • 3
  • 18
  • 38
5
votes
1 answer

Accessing the Camera from com.google.android.gms.vision.CameraSource and Increasing/Decreasing the Preview Brightness

I Have to implement in Google Vision API's CameraSource for build the camera and do the face detection on before capturing the image. Now I have faced few issues, So I need to access the camera object from CameraSource. How could I achieve the…
Raja
  • 2,775
  • 2
  • 19
  • 31
5
votes
1 answer

How to send a local image instead of URL to Microsoft Cognitive Vision API(analyze an image) using Python?

Am trying to play with Vision API(analyze an image) of Microsoft Cognitive Services. Am wondering how to send a local image through rest API calls to Vision API and request for the results from it using Python. Can anyone help me with this…
4
votes
2 answers

How to fix "Error: Invalid GCS Path Specified" when using Java with Google's Vision API?

I am currently following this example on the Vision API docs:found here import com.google.cloud.vision.v1.*; import com.google.cloud.vision.v1.Feature.Type; import java.io.File; import java.io.IOException; import java.io.PrintStream; import…
Niko
  • 61
  • 1
  • 4
4
votes
2 answers

Groovy Spock mock calling real method of mocked class

I am trying to write a unit test for a class that uses Google's vision API with the AnnotatorImageClient from the google-cloud-vision lib. The problem is that my mocked AnnotatorImageClient for some reason still calls the real batchAnnotateImages…
4
votes
2 answers

Barcode API libbarhopper.so

I am trying to use Barcode API following this sample https://github.com/googlesamples/android-vision/tree/master/visionSamples/barcode-reader but can't get the BarcodeDetector to work. BarcodeDetector is not operational. The log is full of these two…
jakub.petr
  • 2,951
  • 2
  • 23
  • 34
4
votes
0 answers

How to check if device supports continuous-picture focus mode?

I'm using the Google Mobile Vision API for my app, everything works as intended, but I ran on a few devices that can't get a barcode to scan. From the logs I found that it's caused by this Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE I'd…
Uggrin
  • 43
  • 1
  • 5
4
votes
1 answer

Mobile Vision API BarcodeDetector only detects in centre of the screen

I'm using the BarcodeDetector from the Mobile Vision API on the Google Play Services (Version 10.2.0) for my app. I pretty much took the code from the smaple app they provide: https://github.com/googlesamples/android-vision And the barcodes are only…
nsL
  • 3,722
  • 3
  • 23
  • 40
3
votes
2 answers

Google Cloud Vision API error "Invalid language hints."

I am using vision api to extract text (document_text_detection) in my project for last two year and never faced this issue. Since yesterday the api is randomly responding with the error : { code: 3 message: "Invalid language hints." } for the same…
3
votes
1 answer

Document classification handwritten or computer printed

I have many documents some are handwritten and some are computer printed (scan images/pdfs). I wanted to separate them into two groups Computer printed and Handwritten. Could you anyone please guide me through the approach to do this. I am using…
ZKS
  • 817
  • 3
  • 16
  • 31
3
votes
0 answers

Uncaught TypeError: gax.GoogleProtoFilesRoot is not a constructor

I'm trying to use google vision api to recognize the text in image main.js const vision = require("@google-cloud/vision"); // Creates a client const client = new vision.ImageAnnotatorClient({ keyFilename: "./ApiKey.json" }); // Performs label…
user11135747
3
votes
1 answer

Is there a feature to extract image font property using cloud vision api

Text extraction is used for extracting text from the image. Can we extract the image font properties such as font family, font style, font size, etc from a given image using text extraction feature Example Expected to extract below following…
hepzi
  • 435
  • 4
  • 17
3
votes
1 answer

Vision API topicality and score always the same

When I look in label_annotions of the Google Vision API, the "score" and "topicality" field values are always the same. This is also for example the case here. According to this reference topicality refers to "the relevancy of the ICA (Image Content…
CSquare
  • 624
  • 6
  • 16
1
2 3
8 9