google-vision

Google Vision FaceTracker shows a black screen

∥☆過路亽.° 提交于 2019-12-13 07:34:39
问题 Can someone try Google VisionAPI FaceTracker and see if it works? Here's the official page. All I get when I try running it is a black screen (after fixing one error). I don't get any errors in the logs either. 回答1: The sample works for me. Of particular note: you should not need to modify the samples to make them work, they should just work. As such, I also just ran the Face tracking sample as follows: git clone https://github.com/googlesamples/android-vision (Install Android Studio) Import

Google Vision Api: Differentiate Real Face and A Photo

送分小仙女□ 提交于 2019-12-13 03:56:37
问题 I'm trying develop a facial recognition system. But the issue is it can be by-passed by a photo. I'm using google vision api to detect faces. Is there a way to avoid detecting faces in a photo? Just want to know if there is a real person standing in front of the camera. 回答1: The Google Vision API does not support distinguishing between a real face and a face in a photo. There are a number of ways that you might try to do this in general. Perhaps the most reliable way would be to use stereo

How to improve Google Vision results while detecting a text on an image if we know the language of

二次信任 提交于 2019-12-13 03:19:21
问题 How to modify the following Python code to return results in German? Is it possible? Thank you. def detect_text_uri(uri): """Detects text in the file located in Google Cloud Storage or on the Web. """ client = vision.ImageAnnotatorClient() image = types.Image() image.source.image_uri = uri response = client.text_detection(image=image) texts = response.text_annotations print('Texts:') for text in texts: print('\n"{}"'.format(text.description)) vertices = (['({},{})'.format(vertex.x, vertex.y)

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

做~自己de王妃 提交于 2019-12-13 02:15:27
问题 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 follows. VISION_API_WORD_COUNTERS = "([a-zA-Z0-9]+)|([^a-zA-Z0-9 ])"; VISION_API_WORD_COMPONENTS = "[a-zA-Z0-9]"; VISION_API_NOT_WORD_COMPONENTS = "[^a-zA-Z0-9]"; As I can't include characters from

Google's VisionAPI example FaceTracker Camera permission

大憨熊 提交于 2019-12-12 18:33:43
问题 I'm trying to run Google Vision FaceTracker but I have an error on one line of code in CameraSourcePreview . This is the error - Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission ) or explicitly handle a potential SecurityException And this is the function- private void startIfReady() throws IOException { if (mStartRequested && mSurfaceAvailable) { mCameraSource.start(mSurfaceView.getHolder()); //Error

Google Cloud Vision API 'Request Admission Denied'

浪子不回头ぞ 提交于 2019-12-12 11:14:16
问题 I am new to Google Cloud Vision API. I am doing OCR on images primarily for bills and receipts. For a few images it is working fine, but when I try some other images it gives me this error: Error: { [Error: Request Admission Denied.] code: 400, errors: [ { message: 'Request Admission Denied.', domain: 'global', reason: 'badRequest' } ] } This is my code: // construct parameters const req = new vision.Request({ image: new vision.Image('./uploads/reciept.png'), features: [ new vision.Feature(

How to enable Google Vision API to access Google Cloud Storage Bucket within same project

孤者浪人 提交于 2019-12-12 10:55:25
问题 I have uploaded some test images to a Google Cloud Bucket, but don't want to make them public (which would be cheating). When I try to run a rest call for Google Vision API I get: { "responses": [ { "error": { "code": 7, "message": "image-annotator::User lacks permission.: Can not open file: gs://images-translate-156512/P1011234.JPG" } } ] } What are the steps to enable the Google Vision API to access Google Cloud Storage objects within the same project? At the moment I am using only the API

Authorize Google Cloud Vision API to Google Storage image

∥☆過路亽.° 提交于 2019-12-12 05:34:05
问题 From Node, I am attempting to use Google Cloud Vision API to analyze an image stored in Google Storage. I have successfully base64 encoded an image and uploaded it but would like to speed up the process by executing against files I have in Google Storage. My Request is so, { "requests":[ { "image":{ "source": { "gcsImageUri" : "gs://mybucket/10001.jpg" } }, "features":[ { "type":"LABEL_DETECTION", "maxResults":10 } ] } ] } but I receive this error from my call, { "responses": [ { "error": {

how can I detect all the text that inside a block with Google Vision Api

狂风中的少年 提交于 2019-12-11 15:37:07
问题 I'm trying to extract text from an image with google vision api, it works. But I just want to detect part of the image to get certain text. this is the image I used I just want to extract all the text from maybank2u.com until From Account: I know there are some tutorials to do this trick by using block but those tutorials are different programming languages. My code: <div class="row"> <div class="col-12"> <ol> <?php foreach ($text as $key => $texts): ?> <li><h6> <?php echo ucfirst($texts-

I am using google vision ai where isOpertional() is returning false I donot know why because every thing is running fine

风流意气都作罢 提交于 2019-12-11 08:18:14
问题 Hi I am using Google vision OCR API for image to text extraction. The code is running there is no error in dependencies but still isOperational() method is returning false. 来源: https://stackoverflow.com/questions/56513732/i-am-using-google-vision-ai-where-isopertional-is-returning-false-i-donot-know