统一扫码服务(Scan Kit)
统一扫码服务(Scan Kit)的业务介绍涵盖了多方面的内容,包括其提供的能力、支持的设备、适用的场景等。
重要亮点
- 服务能力:提供全球主流制式二维码和条形码的扫描、识别和生成能力,在计算机视觉领域有出色表现,对复杂扫码场景做了特定识别优化,大幅提升扫码成功率。
- 系统支持:支持 Android 和 iOS 系统集成,Android 系统集成后具备横屏扫码能力。
- 支持设备:Android 方面,华为手机、平板及非华为手机在特定版本可集成;iOS 手机在特定版本可集成。
- 场景应用:支持十三种全球主流的码制式识别和生成以及多功能码识别,提供多种调用模式,可根据应用场景选择。
- 码值处理:Android 和 iOS 下可直接返回码的原始内容,也能对特定格式编码的码进行分析提取结构化数据。
/*
* Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// 定义包名
package com.example.scankitdemo;
// 导入所需的Android库和华为HMS Scan Kit相关的类
import android.Manifest;
// ... 其他导入 ...
// MainActivity类继承自Android的Activity类
public class MainActivity extends Activity implements