目录

Scan Kit手工转换指导书

开发准备

您若需要应用支持Scan Kit,必须完成接入准备,请参见开发准备。

FirebaseVision.getVisionBarcodeDetector

Google API

To HMS API

FirebaseVision. getVisionBarcodeDetector()

new com.huawei.hms.ml.scan.HmsScanAnalyzer.Creator().create()

FirebaseVision.getVisionBarcodeDetector (com.google.firebase.ml.vision.barcode.FirebaseVisionBarcodeDetectorOptions options)

new com.huawei.hms.ml.scan.HmsScanAnalyzer.Creator().setHmsScanTypes(com.huawei.hms.ml.scan.HmsScanAnalyzerOptions options).create()

说明:options可自动转化,入参复用即可。

To HMS API方法示例:

HmsScanAnalyzerOptions options = new HmsScanAnalyzerOptions.Creator().create();
HmsScanAnalyzer analyzer = new HmsScanAnalyzer.Creator().setHmsScanTypes(options).create();