android-vision

Limit Detection Area in Vision API

旧巷老猫 提交于 2019-12-03 11:58:31
问题 It seems I've found myself in the deep weeds of the Google Vision API for barcode scanning. Perhaps my mind is a bit fried after looking at all sorts of alternative libraries (ZBar, ZXing, and even some for-cost third party implementations), but I'm having some difficulty finding any information on where I can implement some sort of scan region limiting. The use case is a pretty simple one: if I'm a user pointing my phone at a box with multiple barcodes of the same type (think shipping labels

Limit Detection Area in Vision API

扶醉桌前 提交于 2019-12-03 03:31:56
It seems I've found myself in the deep weeds of the Google Vision API for barcode scanning. Perhaps my mind is a bit fried after looking at all sorts of alternative libraries (ZBar, ZXing, and even some for-cost third party implementations), but I'm having some difficulty finding any information on where I can implement some sort of scan region limiting. The use case is a pretty simple one: if I'm a user pointing my phone at a box with multiple barcodes of the same type (think shipping labels here), I want to explicitly point some little viewfinder or alignment straight-edge on the screen at

Google Mobile Vision: Poor FaceDetector performance without CameraSource

别等时光非礼了梦想. 提交于 2019-12-01 12:31:05
Right now, our application is running Snapdragon SDK successfully. We are trying to implement FaceDetector from Vision 8.3.0 on our project, in order to increase the number of compatible devices. We can't use CameraSource, as we rely on a custom camera + surface to provide certain functionality. We want to reuse as much code as possible, and Snapdragon SDK is doing amazingly with our current implementation. Workflow is as follows: 1) Retrieve camera preview 2) Transform incoming byte array to bitmap (for some reason, we haven't managed to work with ByteBuffers. Image size, rotation and NV21

Google Mobile Vision: Poor FaceDetector performance without CameraSource

ぐ巨炮叔叔 提交于 2019-12-01 11:36:47
问题 Right now, our application is running Snapdragon SDK successfully. We are trying to implement FaceDetector from Vision 8.3.0 on our project, in order to increase the number of compatible devices. We can't use CameraSource, as we rely on a custom camera + surface to provide certain functionality. We want to reuse as much code as possible, and Snapdragon SDK is doing amazingly with our current implementation. Workflow is as follows: 1) Retrieve camera preview 2) Transform incoming byte array to

Google Mobile Vision Text API Example

北城余情 提交于 2019-11-28 05:29:10
I am currently writing code that should be able to view a picture of text and then extract the text from the picture for android based devices. I did some research online and found that Google provides their own API called "Mobile Vision" (a package with many items i.e. text recognition, facial recognition, etc). However, in their demos they only demonstrate live text recognition. I was wondering if anyone could give me an example of text recognition on a still image using the Mobile Vision API. Any help is welcome. Thanks. The Google Play Services Mobile Vision API Documentation describes how

Google Vision barcode library not found

女生的网名这么多〃 提交于 2019-11-27 22:56:24
I'm trying to use the new feature in Google Play Services (Vision) to add QR code scanning to my application. But when I run my app I get this: I/Vision﹕ Supported ABIS: [armeabi-v7a, armeabi] D/Vision﹕ Library not found: /data/data/com.google.android.gms/files/com.google.android.gms.vision/barcode/libs/armeabi-v7a/libbarhopper.so I/Vision﹕ Requesting barcode detector download. I have declared barcode dependency as per tutorial: <meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="barcode" /> I tried reinstalling the app and restarting the phone, nothing helps.

Google Vision API Samples: Get the CameraSource to Focus

為{幸葍}努か 提交于 2019-11-27 15:05:11
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? I modified the CameraSourcePreview (....) constructor to be as follows: public CameraSourcePreview(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; mStartRequested = false;

Media Recorder with Google Vision API

会有一股神秘感。 提交于 2019-11-27 13:28:08
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 throwing the following error when I call triggerRecording() function: MediaRecorder: start called in

Google Mobile Vision Text API Example

你。 提交于 2019-11-27 05:35:30
问题 I am currently writing code that should be able to view a picture of text and then extract the text from the picture for android based devices. I did some research online and found that Google provides their own API called "Mobile Vision" (a package with many items i.e. text recognition, facial recognition, etc). However, in their demos they only demonstrate live text recognition. I was wondering if anyone could give me an example of text recognition on a still image using the Mobile Vision

Google Vision barcode library not found

醉酒当歌 提交于 2019-11-26 21:14:12
问题 I'm trying to use the new feature in Google Play Services (Vision) to add QR code scanning to my application. But when I run my app I get this: I/Vision﹕ Supported ABIS: [armeabi-v7a, armeabi] D/Vision﹕ Library not found: /data/data/com.google.android.gms/files/com.google.android.gms.vision/barcode/libs/armeabi-v7a/libbarhopper.so I/Vision﹕ Requesting barcode detector download. I have declared barcode dependency as per tutorial: <meta-data android:name="com.google.android.gms.vision