Constructor and Description |
---|
QrDecoder(Map<com.google.zxing.DecodeHintType,Object> hints)
构造
|
Modifier and Type | Method and Description |
---|---|
String |
decode(Image image)
执行解码
|
static QrDecoder |
of(boolean isTryHarder,
boolean isPureBarcode)
创建二维码(条形码等)解码器,用于将二维码(条形码等)解码为所代表的内容字符串
|
static QrDecoder |
of(Map<com.google.zxing.DecodeHintType,Object> hints)
创建二维码(条形码等)解码器
|
public static QrDecoder of(boolean isTryHarder, boolean isPureBarcode)
isTryHarder
- 是否优化精度isPureBarcode
- 是否使用复杂模式,扫描带logo的二维码设为truepublic static QrDecoder of(Map<com.google.zxing.DecodeHintType,Object> hints)
hints
- 自定义扫码配置,包括算法、编码、复杂模式等Copyright © 2025. All rights reserved.