google-vision

Text extraction - line-by-line

夙愿已清 提交于 2019-12-23 10:58:26
问题 I am using Google Vision API, primarily to extract texts. I works fine, but for specific cases where I would need the API to scan the enter line, spits out the text before moving to the next line. However, it appears that the API is using some kind of logic that makes it scan top to bottom on the left side and moving to right side and doing a top to bottom scan. I would have liked if the API read left-to-right, move down and so on. For example, consider the image: The API returns the text

extracting data from specific image locations using google vision OCR API

吃可爱长大的小学妹 提交于 2019-12-23 05:26:05
问题 I am using Googles Vision OCR API to try and extract 2 types of data from an image 1) handwritten text from text-boxes; marked with red circles below and 2) ticks or 'x' from check-boxes; marked with green circles below. I will be entering this data into a database so I will need a string returned for both types of data Currently, when I pass this image into the API I get a string with all of the data: Secondary School Study Student Perception of Computers LO 13 . Are any of your family

Google Vision api :How to detect face detected is either an image face or real live face?

萝らか妹 提交于 2019-12-22 18:38:22
问题 I am using google vision api for face detection in my app. its working fine but in my case i need to deal with only real human faces. but my app is considering there faces in photo as a face. but i want to detect which is photo and which is live image. below is the class of face graphics private class GraphicFaceTracker extends Tracker<Face> { private GraphicOverlay mOverlay; private FaceGraphic mFaceGraphic; GraphicFaceTracker(GraphicOverlay overlay) { mOverlay = overlay; mFaceGraphic = new

How to generate an Barcode and convert it to Bitmap using new Google Vision API?

家住魔仙堡 提交于 2019-12-21 16:56:47
问题 How to generate an Barcode and convert it to Bitmap using new Google Vision API? Barcode barcode = new Barcode(); Barcode.Email email = new Barcode.Email(); email.address = "my_email@gmail.com"; email.subject = "My Subject; email.body = "My body content."; barcode.email = email; //Implement conversion Bitmap barcodeImage = barcodeToBitmap(barcode);// I do know this part. 回答1: You can detect your barcodes using Google Vision API and then use ZXing to generate the barcodes. You could try

How to capture barcode values using the new Barcode API in Google Play Services?

南楼画角 提交于 2019-12-17 15:25:23
问题 I've been playing with the sample code from the new Google Barcode API. It overlays a box and the barcode value over the live camera feed of a barcode. (Also faces) I can't tell how to return a barcode value to my app. A) How to tell when a detection event has occurred and B) how to access the ravValue for use in other parts of my app. Can anyone help with this? https://developers.google.com/vision/multi-tracker-tutorial https://github.com/googlesamples/android-vision UPDATE: Building on

Google Vision API Samples: Get the CameraSource to Focus

被刻印的时光 ゝ 提交于 2019-12-17 12:48:32
问题 I have checkout out the latest Google Vision APIs from here: https://github.com/googlesamples/android-vision And I am running it on a LG G2 device with KitKat. The only change I have made is to the minSdkVerion in the Gradle file: ... defaultConfig { applicationId "com.google.android.gms.samples.vision.face.multitracker" minSdkVersion 19 ... However it does not focus. How do I make it focus? 回答1: I modified the CameraSourcePreview (....) constructor to be as follows: public

Google Vision API Samples: Get the CameraSource to Focus

若如初见. 提交于 2019-12-17 12:48:15
问题 I have checkout out the latest Google Vision APIs from here: https://github.com/googlesamples/android-vision And I am running it on a LG G2 device with KitKat. The only change I have made is to the minSdkVerion in the Gradle file: ... defaultConfig { applicationId "com.google.android.gms.samples.vision.face.multitracker" minSdkVersion 19 ... However it does not focus. How do I make it focus? 回答1: I modified the CameraSourcePreview (....) constructor to be as follows: public

Media Recorder with Google Vision API

那年仲夏 提交于 2019-12-17 10:48:13
问题 I am using the FaceTracker sample from the Android vision API. However, I am experiencing difficulty in recording videos while the overlays are drawn on them. One way is to store bitmaps as images and process them using FFmpeg or Xuggler to merge them as videos, but I am wondering if there is a better solution to this problem if we can record video at runtime as the preview is projected. Update 1: I updated the following class with media recorder, but the recording is still not working. It is

I get an JSON decode error when using Python and Google Vision to detect text on PDF file

与世无争的帅哥 提交于 2019-12-14 03:09:37
问题 I am trying to work with Google Vision and Python. I am using the sample files but I keep getting the same error message: Traceback (most recent call last): File "C:\Program Files (x86)\Python37-32\lib\site-packages\google\protobuf\jso n_format.py", line 416, in Parse js = json.loads(text, object_pairs_hook=_DuplicateChecker) File "C:\Program Files (x86)\Python37-32\lib\json\__init__.py", line 361, in l oads return cls(**kw).decode(s) File "C:\Program Files (x86)\Python37-32\lib\json\decoder

android app crashes when adding firebase ML vision dependencies with firebase database dependencies

岁酱吖の 提交于 2019-12-13 08:36:09
问题 I have a project which uses firebase database,auth and other dependencies but whenever i try to add firebase ml vision or google play service vision dependencie the app crashes although gradle build was successful. edit : thats what logcat look like 06-27 02:36:37.757 17719-17719/com.example.nikhiljindal.testing_start I/zygote: at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281) at boolean com.google.firebase.provider