* 更新CameraX至v1.0.0-rc01
* 新增支持点击预览区域对焦目标
* 修改一些默认配置
* 优化细节
This commit is contained in:
Jenly
2020-12-30 16:45:50 +08:00
parent c89c465d61
commit f7869595bf
15 changed files with 139 additions and 41 deletions

View File

@@ -44,6 +44,8 @@ public class DecodeConfig {
private Map<DecodeHintType,Object> hints = DecodeFormatManager.DEFAULT_HINTS;
public static final float DEFAULT_AREA_RECT_RATIO = 0.8f;
/**
* 是否支持使用多解码
*/
@@ -74,12 +76,12 @@ public class DecodeConfig {
/**
* 是否支持全区域扫码识别
*/
private boolean isFullAreaScan = true;
private boolean isFullAreaScan = false;
/**
* 识别区域比例默认0.9
* 识别区域比例默认0.8
*/
private float areaRectRatio = 0.9f;
private float areaRectRatio = DEFAULT_AREA_RECT_RATIO;
/**
* 识别区域垂直方向偏移量
*/