Questions tagged [google-vision]

0

votes
0

answer
3

Views

using google storage and google vision API

I have the follow function that passes a image url to google vision service and returns the letters and numbers (characters) in the image. It works fine with general web urls but I'm calling it to access files stored in Google storage, it doesn't work. How can i get this to work? I've looked at ex...
resolver101
0

votes
0

answer
6

Views

Problem with Google Vision API - Object Localization is not working properly

I'm working on the image below. Trying to recognize the coordinates of the bottle by running this piece of code: from google.cloud import vision from google.protobuf.json_format import MessageToJson from google.protobuf.json_format import MessageToDict def localize_objects(self, path): client =...
rafasalo
1

votes
1

answer
907

Views

How to use Google Mobile Vision to implement face tracking in Swift?

I am trying to implement face-tracking into my app using Google Mobile Vision. The end goal is to run a function when a user winks. I have looked at Google's documentation but found out that it was in Objective-C (I have zero experience with Objective-C). Sorry that I do not have any code. I have...
coder
1

votes
1

answer
654

Views

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/vision/face/FaceDetector;

I'm writing an android plugin for Unity that uses android face detection. I have the plugin working with the old android.media.FaceDetector; face detector and I want to update it to the new Google vision APIs For some reason, by simply adding in a declaration of a face detector variable cause the p...
Dalanchoo
1

votes
1

answer
161

Views

How to pass the actual barcode scanned to an ImageView

I've an activity in my app which Either picks an image from gallery to scan for a barcode and then displays the result in a TextView and picked image in an ImageView OR starts the camera to scan one and displays the result in the respective TextView. I'm using Google Mobile Vision API (indirectly th...
Hardik sharma
1

votes
0

answer
165

Views

Setting orientation for Google Mobile Vision face detector

I trying to get Google Mobile Vision to detect faces from a live camera feed. Since I am processing frames I need to set the orientation. The Google Docs say... The face detector expects images and the faces in them to be in an upright orientation. If you need to rotate the image, pass in orientati...
coder
1

votes
1

answer
438

Views

faceDetector.isOperational() is always returning false

I am using using google vision API to detect face from bitmap. But it is always returning false. It used to work previously but not now. Here the code and verisons I am using. build.gradle compile 'com.google.android.gms:play-services-vision:10.2.4' Manifest Code FaceDetector faceDetector = new Face...
1

votes
0

answer
190

Views

C# project unable to find GOOGLE_APPLICATION_CREDENTIALS for google vision

I am trying to use googles vision api with my c# project. I am using the test code they provide but for some reason my code can't find the google_application_credentials here is the error: The Application Default Credentials are not available. They are available if running in Google Compute Engine....
seanbrhn3
1

votes
1

answer
264

Views

Google Vision API CameraSourcePreview FPS

I am trying to develop android face recognition app. Starting from Google Vision API FaceTracker example - how can I get camera preview FPS value? I understand that I can set requested FPS on CameraSource.Builder() with setRequestedFps(), but I want actual FPS value updated every second or every ne...
Sleepwalker
1

votes
0

answer
212

Views

How can we use google mobile vision facial landmark detection api in ionic framework?

I am developing a hybrid app in ionic framework. I want to do facial landmark detection offline. I am not finding any samples available. Please let me know if there is any other plugins available.
Vedant B H
1

votes
0

answer
695

Views

Identifying scanned QR code using Google Mobile Vision API

I am using Google Mobile Vision Api for scanning barcodes and that works pretty fast. But now I want to identify barcodes whether they are for Wifi, Contact, SMS or something else. I've tried a way of my own to recognize the type of barcode scanned but that is using some If-else. So, is there a way...
Hardik sharma
1

votes
0

answer
655

Views

Using Google's Text Recognition API to detect horizontal lines instead of blocks in images

Is there a way to detect full-sized, horizontal lines (max width) instead of text blocks in images using Google's Text Recognition API? Say, if I wanted to retrieve the total due from a receipt image like this: ... because as of now, the API detects texts in blocks instead in an arbitrary order like...
DaveNOTDavid
1

votes
0

answer
273

Views

How to prevent barcode scanner repeating same results?

I am working on a project that barcode-scanner is extensively used in. I used google-vision barcode scanner and successfully implemented. However whenever i try to scan a barcode, the apk repeats same results more than one times. Thank you in advance. createCameraSource() private void createCameraSo...
istaka
1

votes
0

answer
205

Views

Read only specific text pattern in Google Vision

I'm using Google Mobile Vision (Android) to detect text in documents. My question is can we limit the detecting all text at the initial stage and look only for specific text pattern? @Override public void receiveDetections(Detector.Detections detections) { SparseArray items = detections.getDetectedI...
Sathindu Kavneth
1

votes
0

answer
39

Views

TERMINATION Stack is not empty at destruction. Error Swift

I am using Google Mobile Vision to detect face landmarks and the distances between them. The weird thing about this error is that it is not consistent and does not show up all the time I run the same function. Here is the error message... TERMINATION ert_Error ebs_ObjectStack::~ebs_ObjectStack(): St...
coder
1

votes
0

answer
44

Views

Google vision OCR reader not able to detect small texts and inverted image.

I have used Text Recognizer to extract text from image. I have used camera2 to capture image. TextRecognizer textRecognizer = TextRecognizerController.getControllerInstance().getTextRecognizerInstance(getContext(), getView()); if (textRecognizer != null && textRecognizer.isOperational()) { Frame fra...
Ragini
1

votes
0

answer
46

Views

How do I import google visions api into eclipse?

I am trying to use the google vision api in a java project in eclipse. I've looked for tutorials and looked over the steps that google provide but I am still lost. Can someone explain the steps i need to take in order to import the api?
Darko
1

votes
0

answer
42

Views

Google vision numbers recognition

I have to create a sudoku solver, so I create with google vision, a number recognition to retrieve numbers from the grid.This numbers recognition trim the grid to analyse each cell but the recognition doesn't work.. I think the problem comes from TextRecognizer who has trouble recognizing a single c...
Lasyvegasy
1

votes
1

answer
251

Views

How To scan barcode using google vision api

I was trying to scan barcode using goggle vision api but am unable my app is scanning qr-codes correctly but when focusing on barcode it can't detect these is my snipe of code suggest me please: camerapreview = (SurfaceView) findViewById(R.id.camerapreview); barcodeDetector = new BarcodeDetector.B...
ola
1

votes
1

answer
319

Views

Set Environment Variable in Xamarin for Google Cloud API

Right now I'm working on using Google's Cloud Vision API (https://cloud.google.com/dotnet/) with Xamarin in Visual Studio. I am working on making an android app with that and I can't figure out how to set the environment variable for the Cloud API. Google's website says: Set the environment variab...
1

votes
0

answer
53

Views

Text Detection problems with Google Vision

Not sure what the issues is as my code just stopped working overnight, but the text detection on Google Vision is either returning nil or returning words that are non-existent on the subject. Here's my request function: func createRequest(with imageBase64: String) { let jsonRequest = [ 'requests': [...
oblagon
1

votes
1

answer
28

Views

Why result of google vision api difference with ocr from website?

I try OCR image by Google Vision API: Result text return from API: 'text': 'ROBERT M. SCHARF. M.D\n1645 Dorchester Drive\nPlano, Texas 75075\nTELEPHONE (972) 508-3328\nDEA REG. #AS 6975342\nJohn Doe\nDATE 6/1/08\nSPHERICAL\nCYLINDRICAL\nAXIS\nPRISM\nBASE\nOD-3.00\nos3.75\nOD+2.50\nos +2.50\n+1.25\n+...
D T
1

votes
1

answer
69

Views

How to shrink or manage an image's size in bytes

Python 3.6.6, Pillow 5.2.0 The Google Vision API has a size limit of 10485760 bytes. When I'm working with a PIL Image, and save it to Bytes, it is hard to predict what the size will be. Sometimes when I try to resize it to have smaller height and width, the image size as bytes gets bigger. I've tr...
rotten
1

votes
1

answer
193

Views

Authenticate Javascript Program for Gcloud AutoML Vision API

I am currently working on a project whereby I have used gcloud automl to train an image classifier. I have got it working fine and it is able to handle my requests using access-tokens. However, my issue lies in that access-tokens only last for an hour. I would like to be able to create a method in m...
Anish Khanna
1

votes
1

answer
78

Views

GMVTextLineFeature returns null when initialised with the image in iOS

I have initialised the textlinedetector as below self.textDetector = [GMVDetector detectorOfType:GMVDetectorTypeText options:nil]; Since I want only the line and not the whole block, I'm directly accessing GMVTextLineFeature and the input image is of the type UIImage directly from the camera prev...
davidshm
1

votes
0

answer
22

Views

Get Data from Image in Shiny

I am trying to get the details of the image using google vision api. everything works fine, but when i use this line of code dta
james joyce
1

votes
0

answer
49

Views

Google Mobile Vision Barcode location on screen

I am writing an AR Android application in which I scan QR codes (using the Google Mobile Vision Barcode API) as a trigger and then render objects into the camera view. As there may be more than one QR code at the same time, I want to access the location of each code on the screen, so that the object...
高博衍
1

votes
0

answer
163

Views

Android Google Vision API problems

Sometime and not in all devices, Vision library of Google returns false in the isOperational function. I've tried to free space in phone (it has 44 GB free space), change network, uninstall/reinstall but never works. I've seen even the folder /data/data/com.google.android.gms/files where gms store f...
benjaminbutton
1

votes
2

answer
218

Views

Google Vision OCR data form

I'm exploring the Google Vision API for OCR. We have lots of forms that are computer generated and filled by users. Like the Medical Reports and Registration Forms. We need to process those images and get the character out of it. I've tried Google Vision API and its works great in case of computer...
Lother
1

votes
2

answer
106

Views

Trouble of AutoML API setup

I think I have the trouble of AutoML API setup. Please find the following URL https://cloud.google.com/vision/automl/docs/tutorial#tutorial-vision-dataset-python I'm stuck with the highlight with attach file. The step of create 1. I create AutoML service account in GCP with role of AutoML editor and...
1

votes
1

answer
171

Views

Unable to import Google Vision API with Angular

I am trying to create an angular project with Google Vision, but angular refuses to compile it. Here's my app.component.ts file import { Component } from '@angular/core'; import * as vision from '@google-cloud/vision'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls...
Jdog
1

votes
0

answer
69

Views

Special characters which are identified as individual word in google Vision OCR?

I was trying to make the google vision OCR regex searchable. I have completed it and works pretty well when the document contains only English characters. But it fails when there is the text of other languages. It's happening because I have only English characters in google vision word component as...
Arun Gowda
1

votes
0

answer
76

Views

Android Google Play Services-Vision Source code

Where can I find the source code for com.google.android.gms:play-services-vision:16.2.0? I can't find it anywhere. Thank you.
Nick
1

votes
0

answer
23

Views

blurred screen and focus issue in barcode scanner android 5.1

barcode scanner in the samsung galaxy a6 tablet (android 5.1) device is showing blurred screen and focus issues while opening camera.I'm using google vision api. Working fine with all other devices.Please help me out.
jibin
1

votes
0

answer
36

Views

Using ARCore and Vision SDK together Android

Working on an idea of detecting the text using the google vision sdk and then placing the corresponding ar node on the screen. This detection and placing ar node has to be on same activity and not two different activities. Is it possible to combine both (arcore and Vision) on same activity.
Kanthi
1

votes
0

answer
17

Views

Google AutoML - detect form fields on an image

Is there a way to get coordinates from an form field on an image (scanned image), by using Google vision? With the (LocalizedObjectAnnotation) can Google detect only objects and creatures Google OCR (fullTextAnnotation) detects only text Scenario: I got an scanned formular. From this scan i would ge...
Richard
1

votes
0

answer
20

Views

Google Vision API applied to identifying a javascript function

I am trying to create an application that read an image containing a simple Javascript code -- ex: a const a = 123; console.log(a); -- and execute this code afterwards. For that, I am trying to use Google Vision API. My main problem so far is that some special characters (=, =>, ;) are not being rec...
Joilson Cisne
1

votes
1

answer
44

Views

Comparing two similar pictures to get similarity value

I am trying to create my own app and I need to compare two pictures. A bit of clarification. Picture will contain a symbol written on a piece of paper. I will have the 'Original' picture of piece of paper with symbol on it. I need to compare newly captured picture of symbol to the Original picture a...
user7338118
1

votes
1

answer
31

Views

Why did my Facial Detection Script suddenly stop working?

I am using Google Cloud Vision to detect faces within images. Earlier today, my code was working perfectly fine. This code is supposed to create a JSON string explaining if the image has a face, how certain Google vision is, and if there is an exception. However, now it is giving me an error message...
EagleBeagle
1

votes
1

answer
23

Views

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 exactly am I suppose to put this parameter in the c...
sayeedk06

View additional questions