草庐IT

vision-preview

全部标签

Android Mobile Vision 文本识别缩放到找到的坐标

我正在使用Google的移动视觉API来识别静态位图中的文本(数字)。现在我想放大找到号码的地方。这就是我扫描位图并获取x和y坐标的方式Point[]p=textBlock.getCornerPoints();publicvoidTest(Bitmapbitmap){Contextcontext=getApplicationContext();TextRecognizerocrFrame=newTextRecognizer.Builder(context).build();Frameframe=newFrame.Builder().setBitmap(bitmap).build();B

android - 是否可以将 Camera2 与 Google Vision API 一起使用

是否可以仅使用带有GoogleVisionAPI的Camera2检测人脸?我找不到整合它的方法。 最佳答案 是的,可以将Camera2API与GoogleVisionAPI结合使用。首先,GoogleVisionAPI人脸检测器收到一个Frame用于分析(检测人脸及其地标)的对象。Camera1API提供NV21图像格式的预览帧,这对我们来说非常理想。GoogleVisionFrame.Builder支持setImageData(NV16、NV21或YV12图像格式的ByteBuffer)和setBitmap使用位图作为预览帧进行处

android - 使用 Google Vision 条码阅读器访问 AutoFocus/Flash

我在这里玩条形码扫描器的原始示例:https://github.com/googlesamples/android-vision/blob/master/visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/BarcodeCaptureActivity.java他们可以像这样在相机工厂内启动自动对焦/闪光灯://Createsandstartsthecamera.Notethatthisusesahigherresolutionincompar

android - 最新支持库v4需要minSdk(API 20, L Preview)?

我正在尝试使用AndroidStudio0.8.0beta和最新工具运行一个项目,它需要API20,因此它无法在API19的设备上运行有什么想法吗? 最佳答案 如果您将gradle设置配置为编译最新版本的'com.android.support:support-v4:+''com.android.support:appcompat-v7:+'然后将下载RC,这需要L-预览。查看答案here.使用'com.android.support:support-v4:20.+''com.android.support:appcompat-v7

android - Android P Preview : Detected problems with API compatibility error 上的 Espresso 测试

我使用Espresso进行仪器测试并在AndroidPreviewP模拟器上运行它们。我的测试类中有5个测试用例,其中一个测试在运行测试套件时失败并出现以下错误。DetectedproblemswithAPIcompatibility而失败的测试用例在单独运行而不是在套件中运行时通过。由于对话框显示在显示DetectedproblemswithAPIcompatibility的View上,我没有在层次结构异常中找到匹配的View以及上述错误。 最佳答案 引用docs:在AndroidP中,此对话框显示Detectedproblems

android - 使用 Google 的 Mobile Vision 识别静态图像中的文本?

我正在尝试使用Google的移动视觉API编写一个基本的ocrandroid应用程序,但实际上我很难让该应用程序识别静态图像中的文本。我已经查看了代码实验室教程、其他人的问题,即每个带有android-vision标签的stackoverflow问题和文档,但我仍然没有任何运气。我知道其他人问过类似的问题,但那里发布的答案不起作用。这是我的代码的摘录Bitmapphoto=(Bitmap)extras.get("data");pictureOcrView.setImageBitmap(photo);Contextcontext=getApplicationContext();TextR

android - Android 2.2 Preview 1 - 将 Constraint Layout 与 GuideLine 应用程序一起使用时崩溃

我正在尝试使用ContraintsLayout创建布局。在我的布局中,我添加了水平GuideLine。但是当我运行应用程序时它崩溃了,如果我删除GuideLine它就可以工作了。我还检查了APK,有一个类java.awt.Rectagle堆栈结构java.lang.NoClassDefFoundError:Failedresolutionof:Ljava/awt/Rectangle;atandroid.support.constraint.solver.widgets.Guideline.(Guideline.java:43)atandroid.support.constraint.C

Android Studio Preview 3.0 - 运行即时应用程序时应用程序安装失败

我是运行免安装应用程序的新手。根据androiddeveloperdocuments,我创建了一个新的“HelloWorld”项目,支持即时应用程序.但是,当运行“instantapp”时,出现以下错误:如果有人能提供帮助,我将不胜感激。 最佳答案 注意:在包含GooglePlay商店的模拟器图像上运行InstantApps时存在一个已知问题,该问题会出现同样的错误。现在,请使用没有PlayStore的模拟器。GooglePlay服务提供statusCode=API_UNAVAILABLE意味着您的设备出于某种原因无法运行Insta

android - Google Mobile Vision 库未下载

我正在尝试将GoogleMobileVisionTextRecogniserAPI实现到我的应用程序中,以读取给定图像中的文本。当我尝试使用该功能时,出现此错误:W/DynamiteModule:Localmoduledescriptorclassforcom.google.android.gms.vision.dynamitenotfound.I/DynamiteModule:Consideringlocalmodulecom.google.android.gms.vision.dynamite:0andremotemodulecom.google.android.gms.visio

android - Android Studio 中 Navigation Drawer Preview 渲染问题

我在AndroidStudio3.4中预览生成的抽屉导航布局时遇到问题。我已尝试更改布局主题或更改预览版的API版本,但这些似乎都无济于事。渲染问题的错误跟踪如下所示:java.lang.IllegalArgumentException:java.lang.ClassCastException@26b35b5datsun.reflect.GeneratedMethodAccessor306.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl