页次: 1
移植quirc库,在dopi hi3516ev200中实现qrtest识别二维码图片功能
1. 使用dopi hi3516ev200开发板, 移植编译libjpeg, libpng, libzlib, quirc这几个库的整体编译, 编译工具使用的是arm-himix100-gcc
1.1 解压quirc_qrtest.zip, 执行 build.sh, 在third_party中生成lib, bin目录。
quirc_qrtest_20220708-2018.zip
2. 编译出的bin, lib文件如下所示,并复制到板子的文件系统中的对应目录即可使用。
bin文件:
cjpeg libpng16-config png-fix-itxt wrjpgcom
djpeg libpng-config qrtest
jpegtran pngfix rdjpgcom
lib文件:
libjpeg.a libpng16.a libpng.a libz.a
libjpeg.la libpng16.la libpng.la libz.so
libjpeg.so libpng16.so libpng.so libz.so.1
libjpeg.so.9 libpng16.so.16 libquirc.a libz.so.1.2.10
libjpeg.so.9.3.0 libpng16.so.16.37.0 libquirc.so.1.0 pkgconfig
3. 实现 qrtest功能, 执行 ./qrtest 图片名 -vd
运行效果如下:
~ # ./qrtest dopi_hi3516ev200_quric.png -vd
quirc test program
Copyright (C) 2010-2012 Daniel Beer <dlbeer@gmail.com>
Library version: 1.0
Time (ms) Count
Filename Load ID Total ID Dec
-------------------------------------------------------------------------------
dopi_hi3516ev200_quric.png : 9 112 121 1 1
29 cells, corners: (22,22) (378,22) (378,378) (22,378)
[][][][][][][] [][] [] [][] [][][] [][][][][][][]
[] [] [][] [] [] [][][][] [] []
[] [][][] [] [][][][][] [] [][][] [] [][][] []
[] [][][] [] [] [][][][] [] [] [] [][][] []
[] [][][] [] [] [][][][][] [] [][][] []
[] [] [][][][][][] [][][] [] []
[][][][][][][] [] [] [] [] [] [] [] [][][][][][][]
[][][][][] [][] []
[] [][][] [][] [][] [][][][] [] []
[] [][] [][] [] [] [] [] [] [][]
[][][] [][][] [][] [] [] [] [] [][]
[] [][] [][] [][] [] [][] [] [] [] [] []
[][] [][] [][] [] [][][][] [][] [] [][]
[][] [] [][][] [] [][][][][][] [] []
[] [][] [][] [] [] [] [] [] [][] [][]
[] [] [] [][][][] [] [][] []
[][][][][] [][][][][] [][] [][][] [] [][]
[] [][][] [] [][][] [] [][] [] [][]
[] [] [][] [][] [] [] [] [] [][]
[] [] [][] [][][] [] [] [] []
[] [][] [][] [] [][] [] [] [][][][][][] [][]
[][][] [] [][][] [] [] [][] [][]
[][][][][][][] [] [] [] [] [] [][][]
[] [] [][][] [] [] [][][] [] []
[] [][][] [] [][] [][][][] [] [][][][][] []
[] [][][] [] [][][] [][] [][] [] [][][] []
[] [][][] [] [] [][] [][][] [] [][][] [] [] []
[] [] [][] [] [] [] []
[][][][][][][] [][][][] [][] [] [][][][] [] [][]
Decode successful:
Version: 3
ECC level: H
Mask: 0
Data type: 4 (BYTE)
Length: 23
Payload: dopi hi3516ev200 quric. //解析出的二维码内容
~ #
页次: 1