vision-api

Google Vision API Text Recognizer is not working

爱⌒轻易说出口 提交于 2021-01-27 16:55:44
问题 I have used Google vision API to read text from any object like newspaper or text in wall. I have tried same sample from Google developer website but my Text Recognizer always return false on IsOperational function. am tested on Blackberry keyone and also tested on Moto x play its working fine. Gradle file : compile 'com.google.android.gms:play-services-vision:11.0.4' Can anyone help me on this. Thanks in Advance TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();

Google Vision API Text Recognizer is not working

泪湿孤枕 提交于 2021-01-27 16:35:23
问题 I have used Google vision API to read text from any object like newspaper or text in wall. I have tried same sample from Google developer website but my Text Recognizer always return false on IsOperational function. am tested on Blackberry keyone and also tested on Moto x play its working fine. Gradle file : compile 'com.google.android.gms:play-services-vision:11.0.4' Can anyone help me on this. Thanks in Advance TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();

Google Vision API Text Recognizer is not working

穿精又带淫゛_ 提交于 2021-01-27 16:31:22
问题 I have used Google vision API to read text from any object like newspaper or text in wall. I have tried same sample from Google developer website but my Text Recognizer always return false on IsOperational function. am tested on Blackberry keyone and also tested on Moto x play its working fine. Gradle file : compile 'com.google.android.gms:play-services-vision:11.0.4' Can anyone help me on this. Thanks in Advance TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();

Google Vision API Text Detection with Node.js set Language hint

我们两清 提交于 2020-08-26 10:12:08
问题 I'm using @google-cloud/vision with Node.js I use the sample code as below async function quickstart() { try { // Imports the Google Cloud client library const vision = require('@google-cloud/vision'); // Creates a client const client = new vision.ImageAnnotatorClient(); // Performs label detection on the image file const [result] = await client.textDetection('./test.jpg'); const texts = result.textAnnotations; console.log('Text:'); texts.forEach((text: string) => console.log(text)); } catch

Google Vision API Text Detection with Node.js set Language hint

核能气质少年 提交于 2020-08-26 10:11:13
问题 I'm using @google-cloud/vision with Node.js I use the sample code as below async function quickstart() { try { // Imports the Google Cloud client library const vision = require('@google-cloud/vision'); // Creates a client const client = new vision.ImageAnnotatorClient(); // Performs label detection on the image file const [result] = await client.textDetection('./test.jpg'); const texts = result.textAnnotations; console.log('Text:'); texts.forEach((text: string) => console.log(text)); } catch

Vision API Cropping Face Landmark

别说谁变了你拦得住时间么 提交于 2020-03-03 12:30:23
问题 I'm trying to outline the whole image with a path so I could crop it out, but the path is not following the face's outline. Here's my code : for (Landmark landmark : face.getLandmarks()) { if (face.getLandmarks().indexOf(landmark) == 0) { path.moveTo(landmark.getPosition().x, landmark.getPosition().y); } else { path.lineTo(landmark.getPosition().x, landmark.getPosition().y); } } How do I make it so that the path only follows the outer outline of the face 回答1: Look at the Type of each landmark

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

ぐ巨炮叔叔 提交于 2020-01-22 14:15:05
问题 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: 回答1: How to do it Put an ImageView in the layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:layout_width="match

On some devices, Google Mobile Visions CameraSource returns low resolution image after calling takePicture

隐身守侯 提交于 2019-12-24 07:47:14
问题 After I call: cameraSource.takePicture(null, pictureCallback); in the callback: private CameraSource.PictureCallback pictureCallback = new CameraSource.PictureCallback() { @Override public void onPictureTaken(byte[] bytes) { try { Log.d(DEBUG_TAG, "On picture taken."); if (bytes == null) { return; } Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); Glide.with(this).load(bitmap).into(capturedImg); }catch (Exception ex){ ex.printStackTrace(); Log.e("PictureTaken",ex

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

那年仲夏 提交于 2019-12-23 18:54:12
问题 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 increase or Decrease the Camera Preview Brightness using CameraSource? This is my CameraSource Builder mCameraSource = new CameraSource.Builder(context, detector) .setRequestedPreviewSize(640, 480) .setFacing(CameraSource.CAMERA_FACING_FRONT)