llgd.net
当前位置:首页 >> zxing 二维码 >>

zxing 二维码

http://repo1.maven.org/maven2/com/google/zxing/android-core/3.2.1/android-core-3.2.1.jar导入这个jar包,使用方法见GitHub https://github.com/zxing/zxing

二维码的生成与解析。有多种途径。我选择用大品牌,google老大的zxing。 gitHub链接是(我用的3.0.0,已经是nio了) https://github.com/zxing/zxing/tree/zxing-3.0.0 Java代码 收藏代码 // 其中输出图像和读取图像的类在core包 MultiFormatReade...

试试吧! function test1 zxingpath = fullfile(fileparts(mfilename('fullpath')), 'zxing.jar'); javaaddpath(zxingpath); I = imread('barcode.jpg'); imshow(I); codestr = zxing_decode(I); text(100,100,codestr,'FontSize',20,'Color','r'...

private static final int MIN_FRAME_HEIGHT = 240;//240 private static final int MAX_FRAME_WIDTH = 480;//480 private static final int MAX_FRAME_HEIGHT = 480;//360 CameraManager类的getFramingRect方法 public Rect getFramingRect() {...

扫描框修改CameraManager四量\r\n\r\n距离聚焦要设置,都自聚焦

int width = canvas.getWidth(); int height = canvas.getHeight(); // Draw the exterior (i.e. outside the framing rect) darkened paint.setColor(resultBitmap != null ? resultColor : maskColor); canvas.drawRect(0, 0, width, frame.to...

Hashtable hints = new Hashtable(); hints.put(EncodeHintType.CHARACTER_SET, "utf-8"); hints.put(EncodeHintType.MARGIN, 1); try { matrix = new MultiFormatWriter().encode(contents, BarcodeFormat.QR_CODE, 300, 300, hints); } catch ...

你需要下载扫描二维码的软件

二维码变形了,三个定位框必须在距离相等,扫描到三分之二是因为扫不到下面那个定位框了。你可以尝试拉宽或者压扁 中间的图片本来已经消耗了一部分容错率,再加上二维码变形,已经超出容错率的范围了

修改CameraManager.Java 中的 getFramingRect() int leftOffset = (screenResolution.x - width) / 4; int topOffset = (screenResolution.y - height) / 2; //长款一致 framingRect = new Rect(leftOffset, topOffset, 3*leftOffset+ width, to...

网站首页 | 网站地图
All rights reserved Powered by www.llgd.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com