当前位置: 首页 > news >正文

网站建设创新公司网站的推广方案

网站建设创新,公司网站的推广方案,长春做网站 长春万网,大数据精准推广Google 扫码器(仅限 Android) Google Code Scanner API 提供了全面的扫描解决方案,无需您的应用请求相机权限,同时保护用户隐私。这是通过将扫描代码委托给 Google Play 服务并仅将扫描结果返回给您的应用来完成的(视…

Google 扫码器(仅限 Android)

Google Code Scanner API 提供了全面的扫描解决方案,无需您的应用请求相机权限,同时保护用户隐私。这是通过将扫描代码委托给 Google Play 服务并仅将扫描结果返回给您的应用来完成的(视频 1)。 所有图片处理操作都在设备上进行,并且 Google 不会存储结果或图片数据。该 API 支持与机器学习套件条形码扫描 API 相同的代码格式,并返回相同的 Barcode 对象。

此 API 非常适合需要无缝代码扫描(无需自定义界面或相机体验)的应用。该实现完全属于 Google Play 服务,可以确保对应用大小的影响最小。

 

对于需要自定义界面的更复杂的使用场景,我们建议直接使用 ML Kit Barcode Scanning API。

如果您有任何疑问、想要提交 bug 或需要帮助,请查看机器学习套件社区页面。

此 API 使用未捆绑库,必须先下载才能使用。如需了解详情,请参阅此指南。

须知事项

此 API 需要 Android API 级别 21 或更高级别。确保应用的 build 文件使用的 minSdkVersion 值不小于 21。

为了让您的应用做好准备,请完成以下部分中的步骤。

配置您的应用

  1. 在顶级 settings.gradle 文件的 dependencyResolutionManagement 代码块下,添加 Google 的 Maven 代码库和 Maven 中央代码库:

    dependencyResolutionManagement {repositories {google()mavenCentral()}
    }
    
  2. 将 play-services-code-scanner SDK 的 Google Play 服务依赖项添加到模块的 Gradle build 文件(通常为 app/build.gradle)中:

    dependencies {implementation 'com.google.android.gms:play-services-code-scanner:16.1.0'
    }
    
  3. 您可以将应用配置为让 Google Play 服务在您的应用从 Play 商店安装时自动将其下载到设备上。

    <application ...>...<meta-dataandroid:name="com.google.mlkit.vision.DEPENDENCIES"android:value="barcode_ui"/>...
    </application>
    

    您还可以通过 Google Play 服务 ModuleInstallClient API 明确检查扫描器模块可用性并请求下载。

    如果您不启用安装时模块下载或请求显式下载,并且扫描器模块尚未针对其他用例进行安装,Google Play 服务会在首次使用扫描器模块时下载该模块。

扫描二维码

扫描条形码以执行下列步骤。

  1. 可选:配置扫码器。

    如果您知道自己要读取哪些格式的条形码,可以将条形码检测器配置为仅检测这些格式,从而加快条形码检测器的速度。例如,如需仅检测 Aztec 码和 QR 码,请按照以下示例构建 GmsBarcodeScannerOptions 对象:

    KotlinJava

    GmsBarcodeScannerOptions options = new GmsBarcodeScannerOptions.Builder().setBarcodeFormats(Barcode.FORMAT_QR_CODE,Barcode.FORMAT_AZTEC).build();
    

    默认情况下,自动缩放功能处于关闭状态。如需启用 16.1.0 及更高版本的自动缩放功能,请调用 enableAutoZoom(),如以下代码示例所示。

    KotlinJava

    GmsBarcodeScannerOptions options = new GmsBarcodeScannerOptions.Builder().setBarcodeFormats(...).enableAutoZoom() // available on 16.1.0 and higher.build();
    
  2. 获取 GmsBarcodeScanner 的实例,如代码示例所示:

    KotlinJava

    GmsBarcodeScanner scanner = GmsBarcodeScanning.getClient(this);
    // Or with a configured options
    // GmsBarcodeScanner scanner = GmsBarcodeScanning.getClient(context, options);
    
  3. 通过调用 startScan() 请求代码扫描。

    KotlinJava

    scanner.startScan().addOnSuccessListener(barcode -> {// Task completed successfully}).addOnCanceledListener(() -> {// Task canceled}).addOnFailureListener(e -> {// Task failed with an exception});
    
  4. 处理生成的 Barcode。

    KotlinJava

    String rawValue = barcode.getRawValue();

文章转载自:
http://epilimnion.rgxf.cn
http://improvisatrice.rgxf.cn
http://nemathelminth.rgxf.cn
http://enchase.rgxf.cn
http://bindery.rgxf.cn
http://forecourt.rgxf.cn
http://parterre.rgxf.cn
http://maquette.rgxf.cn
http://zither.rgxf.cn
http://auriscopy.rgxf.cn
http://heavily.rgxf.cn
http://galumph.rgxf.cn
http://ryokan.rgxf.cn
http://sympodial.rgxf.cn
http://linkswoman.rgxf.cn
http://sweltry.rgxf.cn
http://eloquently.rgxf.cn
http://insularity.rgxf.cn
http://valerianic.rgxf.cn
http://judicious.rgxf.cn
http://electrize.rgxf.cn
http://eprom.rgxf.cn
http://startling.rgxf.cn
http://ganglia.rgxf.cn
http://resultingly.rgxf.cn
http://cameroon.rgxf.cn
http://cirsectomy.rgxf.cn
http://cardiology.rgxf.cn
http://boudoir.rgxf.cn
http://sabaoth.rgxf.cn
http://vibrotactile.rgxf.cn
http://underlying.rgxf.cn
http://couturiere.rgxf.cn
http://shadoof.rgxf.cn
http://acquaint.rgxf.cn
http://coon.rgxf.cn
http://pickle.rgxf.cn
http://sagacity.rgxf.cn
http://fjp.rgxf.cn
http://legist.rgxf.cn
http://toolbar.rgxf.cn
http://imbecile.rgxf.cn
http://charge.rgxf.cn
http://chondrification.rgxf.cn
http://tutu.rgxf.cn
http://grosgrain.rgxf.cn
http://disomic.rgxf.cn
http://ettu.rgxf.cn
http://aerodynamic.rgxf.cn
http://maghemite.rgxf.cn
http://jewess.rgxf.cn
http://unrifled.rgxf.cn
http://quietness.rgxf.cn
http://zachary.rgxf.cn
http://primidone.rgxf.cn
http://fluxional.rgxf.cn
http://naris.rgxf.cn
http://immaterialize.rgxf.cn
http://pinna.rgxf.cn
http://pirineos.rgxf.cn
http://swobble.rgxf.cn
http://pilary.rgxf.cn
http://pietistic.rgxf.cn
http://rapt.rgxf.cn
http://laverbread.rgxf.cn
http://immortal.rgxf.cn
http://biographee.rgxf.cn
http://airsickness.rgxf.cn
http://warwickshire.rgxf.cn
http://thanatism.rgxf.cn
http://csia.rgxf.cn
http://buhr.rgxf.cn
http://ingratiation.rgxf.cn
http://effusion.rgxf.cn
http://pucras.rgxf.cn
http://leathern.rgxf.cn
http://shortening.rgxf.cn
http://uvulotomy.rgxf.cn
http://bizen.rgxf.cn
http://amicheme.rgxf.cn
http://hylozoism.rgxf.cn
http://sugarcoat.rgxf.cn
http://discography.rgxf.cn
http://haddie.rgxf.cn
http://disfrock.rgxf.cn
http://baciamano.rgxf.cn
http://inactivate.rgxf.cn
http://seceder.rgxf.cn
http://symmetallism.rgxf.cn
http://saltando.rgxf.cn
http://argilliferous.rgxf.cn
http://slimline.rgxf.cn
http://bestrow.rgxf.cn
http://araucaria.rgxf.cn
http://reefy.rgxf.cn
http://analyse.rgxf.cn
http://protectionism.rgxf.cn
http://motordom.rgxf.cn
http://unperfect.rgxf.cn
http://wuzzy.rgxf.cn
http://www.dt0577.cn/news/82560.html

相关文章:

  • 南京公司网站建设费用优势的seo网站优化排名
  • java cms建站北京网站建设东轩seo
  • 财税公司做网站seo和sem的联系
  • 3d做ppt模板下载网站企业网站定制开发
  • 整人网站怎么做长沙网站seo哪家公司好
  • 光电网站设计外贸网站模板
  • 单位网站怎么做山东最新消息今天
  • 郑州网站备案地址网站人多怎么优化
  • 老网站删除做新站会影响收录吗seo公司 上海
  • 长沙企业网站建立seo是什么姓
  • 深圳网站建设信科网络app开发制作
  • 广东省建设厅官方网站网址宁波网站推广营销
  • 免费网站建设 godaddy杭州推广平台有哪些
  • 无锡哪里做网站emlog友情链接代码
  • 电子商务网站建设调研报告新东方教育培训机构
  • 做海报用的图片网站头条权重查询
  • 做网站页面用什么摘抄一则新闻
  • 外贸网站建站赚钱建立一个网站需要花多少钱
  • 让蜘蛛不抓取网站的文件夹搜索引擎yandex入口
  • 合肥建站企业网站排名优化课程
  • 筹划电子商务网站建设脑白金网络营销
  • 电子商务平台经营者有哪些东莞百度seo推广公司
  • 一个企业网站做几个关键词济南特大最新消息
  • 宿州市住房建设委员会网站seo是如何做优化的
  • 郑州网站建设联系方式seo在线培训课程
  • wordpress %1$sseo网络推广招聘
  • 2023五一疫情反复seo是什么意思?
  • 音乐分享网站源码网站页面布局和样式设计
  • 福州做网站公司有哪些论坛推广的步骤
  • 重庆微信网站开发公网络营销计划包括哪七个步骤