google-vision

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

故事扮演 提交于 2020-08-27 21:26:11
问题 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 code below? def detect_text(path): """Detects text in the file.""" from google.cloud import vision imageContext = 'bn' client = vision.ImageAnnotatorClient(imageContext) with io.open(path, 'rb') as

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

江枫思渺然 提交于 2020-08-27 21:25:18
问题 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 code below? def detect_text(path): """Detects text in the file.""" from google.cloud import vision imageContext = 'bn' client = vision.ImageAnnotatorClient(imageContext) with io.open(path, 'rb') as

Google cloud vision web detection API returns only 10 responses

假如想象 提交于 2020-05-15 09:00:46
问题 I am using Google cloud vision web detection API for detecting where the images have been used. But I always get 10 responses maximum even for Google's logo. Is it limit of the API or I am missing something because there is nothing mentioned in documentation. 回答1: The default number of results returned from Cloud Vision API requests is 10 (in order to limit the size of the responses), so only then ten most exact identifications are returned. However, you can specify the maxResults parameter

use google mobile vision api to detect the first barcode and send the data to another activity

旧城冷巷雨未停 提交于 2020-02-22 05:40:58
问题 Hi I checked the barcode reader sample from google on github , I am trying to just make the barcodedetector detect the first barcode (only one) and when it does it send the decoded barcode to another activity. Mabye I am wrong but I need to put this code BarcodeGraphic graphic = mGraphicOverlay.getFirstGraphic(); Barcode barcode = null; if (graphic != null) { barcode = graphic.getBarcode(); if (barcode != null) { Intent data = new Intent(); data.putExtra(BarcodeObject, barcode); setResult

AWS textract with hand-written checkboxes

北战南征 提交于 2020-01-23 11:53:09
问题 I have 1000s of survey forms which I need to scan and then upload onto my C# system in order to extract the data and enter it into a database. The surveys are a mix of hand-written 1) text boxes and 2) checkboxes. I am currently using the the Azure Read Api to extract hand-written text which should work fine e.g. question #4 below returns 'Python' and 'coding'. So my question; will any AWS Textract give me the capability to extract data for which checkbox is marked? e.g. see question #1 below

How to set Google Vision QR Scanner to detect only one value?

☆樱花仙子☆ 提交于 2020-01-06 08:33:21
问题 I have implemented a QR scanner(QRScanner class) using Google Vision API. Once a value is detected it is passed to another activity(Info class) using Intents. The problem is that once a QR code is scanned the Info class gets opened several times.I want to limit the QRScanner class to get only one QR value and Info classed to be opened only once. QRScanner Class @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity

Google Vision API - Invalid JSON payload received. Unable to parse number

佐手、 提交于 2019-12-25 07:46:54
问题 I was working with google Vision API. When I curl in command line it gives me status 200 OK with the following command: curl -v -k -s -H "Content-Type: application/json" https://vision.googleapis.com/v1/images:annotate?key=API_KEY --data-binary @base64.json But when I use it with PHP, I get an return message: { "error": { "code": 400, "message": "Invalid JSON payload received. Unable to parse number.\n--------------------\n^", "status": "INVALID_ARGUMENT" } } try { $post = array( 'file' => '

How to manipulate on the fly YUV Camera frame efficiently in Android?

拟墨画扇 提交于 2019-12-25 03:35:07
问题 I'm adding a black (0) padding around Region of interest (center) of NV21 frame got from Android CameraPreview callbacks in a thread. To avoid overhead of conversion to RGB/Bitmap and reverse, I'm trying to manipulate NV21 byte array directly but this involves nested loops which is also making preview/processing slow. This is my run() method sending frames to detector after calling method blackNonROI . public void run() { Frame outputFrame; ByteBuffer data; while (true) { synchronized (mLock)

Why do I get invalid JSON payload when calling google cloud vision API from appcelerator?

爷,独闯天下 提交于 2019-12-24 12:48:34
问题 I was trying to use Google vision API v1 by Alloy Appcelerator I create a request HTTPClient and call API https://vision.googleapis.com/v1/images:annotate?key=MY_APP_KEY But i have get response text from google : { error = { code = 400; details = ( { "@type" = "type.googleapis.com/google.rpc.BadRequest"; fieldViolations = ({ description = "Invalid JSON payload received. Unknown name \"request\": Cannot bind query parameter. Field 'request' could not be found in request message."; }); } );