google-cloud-vision

How to use ML Kit cloud text recognizer for flutter?

空扰寡人 提交于 2021-01-28 12:27:58
问题 I am using the package 'firebase_ml_vision' in my project to do OCR. I can read Latin based languages just fine, however, I want to read Chinese characters. I know that there are on the device and cloud-based versions of the text recognizer. However, I can't find out how to 'enable' the cloud-based version in my app. I have already activated cloud-based APIs in Firebase as seen in this image: Activated cloud apis The code that I currently use is: void _initializeVision() async{ final File

How to download image into local storage?

时光毁灭记忆、已成空白 提交于 2020-12-15 04:57:09
问题 I am use Node.js Firebase Cloud Function but need get image I have store in Firebase Storage so I can send to Google Cloud vision API. Vision API require send from local image file: // const fileName = 'Local image file, e.g. /path/to/image.png'; // Performs safe search detection on the local file const [result] = await client.safeSearchDetection(fileName); const detections = result.safeSearchAnnotation; How to download remote image into local storage? For example I want store this image in

How to download image into local storage?

只愿长相守 提交于 2020-12-15 04:55:00
问题 I am use Node.js Firebase Cloud Function but need get image I have store in Firebase Storage so I can send to Google Cloud vision API. Vision API require send from local image file: // const fileName = 'Local image file, e.g. /path/to/image.png'; // Performs safe search detection on the local file const [result] = await client.safeSearchDetection(fileName); const detections = result.safeSearchAnnotation; How to download remote image into local storage? For example I want store this image in

How to upload an image to Google Cloud Storage from an image url in Node?

删除回忆录丶 提交于 2020-07-17 06:45:20
问题 Given an image url, how can I upload that image to Google Cloud Storage for image processing using Node.js? 回答1: It's a 2 steps process: Download file locally using request or fetch. Upload to GCL with the official library. var fs = require('fs'); var gcloud = require('gcloud'); // Authenticating on a per-API-basis. You don't need to do this if you auth on a // global basis (see Authentication section above). var gcs = gcloud.storage({ projectId: 'my-project', keyFilename: '/path/to/keyfile

How to upload an image to Google Cloud Storage from an image url in Node?

戏子无情 提交于 2020-07-17 06:45:15
问题 Given an image url, how can I upload that image to Google Cloud Storage for image processing using Node.js? 回答1: It's a 2 steps process: Download file locally using request or fetch. Upload to GCL with the official library. var fs = require('fs'); var gcloud = require('gcloud'); // Authenticating on a per-API-basis. You don't need to do this if you auth on a // global basis (see Authentication section above). var gcs = gcloud.storage({ projectId: 'my-project', keyFilename: '/path/to/keyfile

Getting “The Application Default Credentials are not available” error in android studio even though env variable is set

时光总嘲笑我的痴心妄想 提交于 2020-06-29 04:22:56
问题 I'm currently having an issue in android studio. I have set my Google app credentials environment variable AND restarted android studio over and over and its giving me the same error. I know I am using the correct service account JSON file for my app and I know the GOOGLE_APPLICATION_CREDENTIALS environment variable is set (The variable shows up in my android studio terminal AND my computer's terminal), I just have no clue why this isn't working. Also even though the variable is set, when I

Is there any api for reverse image search for android as powerful as Google reverse image search? [closed]

纵然是瞬间 提交于 2020-06-27 05:35:10
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 days ago . Improve this question I want to do reverse image search in my android app. I need some api as powerful as google reverse image search. Is there any google reverse image search api for android? weather free or non-free I also found google cloud vision api but the results - at least in it

How to send Base64 image to Google Cloud Vision API label detection in Ruby?

南笙酒味 提交于 2020-05-15 08:31:26
问题 Hi I'm building a program in Ruby to generate alt attributes for images on a webpage. I'm scraping the page for the images then sending their src, in other words a URL, to google-cloud-vision for label detection and other Cloud Vision methods. It takes about 2-6 seconds per image. I'm wondering if there's any way to reduce response time. I first used TinyPNG to compress the images. Cloud Vision was a tad faster but the time it took to compress more than outweighed the improvement. How can I

How to implement Vision API with 'Service account' in the iOS app?

北城以北 提交于 2020-04-18 06:50:27
问题 I'm trying to implement Google Vision API for the my app via REST. https://cloud.google.com/vision/docs/pdf Is there any examples or any suggestions how to do this? Documentation says that they require service account token but can't find any examples how to get service account token from iOS app side. I've tried via GTMAppAuth but getting 403 error I was able to generate this token from my mac machine and all worked, but token has limited life time and after 3-4 hours it expiries 回答1: I