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) | 说明:options可自动转化,入参复用即可。 |
To HMS API方法示例:
HmsScanAnalyzerOptions options = new HmsScanAnalyzerOptions.Creator().create();
HmsScanAnalyzer analyzer = new HmsScanAnalyzer.Creator().setHmsScanTypes(options).create();