白星, 王晶, 王金超, 周昕. 基于QR码和算术编码的图像加密无损恢复方法[J]. 应用光学, 2020, 41(5): 973-977. DOI: 10.5768/JAO202041.0502006
引用本文: 白星, 王晶, 王金超, 周昕. 基于QR码和算术编码的图像加密无损恢复方法[J]. 应用光学, 2020, 41(5): 973-977. DOI: 10.5768/JAO202041.0502006
BAI Xing, WANG Jing, WANG Jinchao, ZHOU Xin. Image encryption lossless recovery method based on QR code and arithmetic coding[J]. Journal of Applied Optics, 2020, 41(5): 973-977. DOI: 10.5768/JAO202041.0502006
Citation: BAI Xing, WANG Jing, WANG Jinchao, ZHOU Xin. Image encryption lossless recovery method based on QR code and arithmetic coding[J]. Journal of Applied Optics, 2020, 41(5): 973-977. DOI: 10.5768/JAO202041.0502006

基于QR码和算术编码的图像加密无损恢复方法

Image encryption lossless recovery method based on QR code and arithmetic coding

  • 摘要: 将QR码作为数据容器引入光学图像加密系统,可以移除光学系统在解密图像时产生的散斑噪声,使得解密图像无损恢复,是一种非常理想和实用的去除噪声的方法。但由于QR码的存储容量有限,只能存储一些字母和简短的句子或者一幅尺寸很小(32×32像素)的灰度图像,严重制约了该技术的进一步应用。为了将一幅更大的灰度图像存入到QR码中,提出一种基于算术编码的图像无损压缩方法。首先将灰度图像以文件的形式读取为二进制数据,然后转换成十进制数据并利用算术编码的方法压缩为二进制数据,最后再转换成十进制数据。实验结果表明,此方法具有较高的压缩效率,能够成功将一幅64×64像素的具有丰富灰度值的图像存入到一张31版QR码中进行加密和解密。

     

    Abstract: The QR code is introduced into the optical image encryption system as a data container, which can remove the speckle noise generated by the optical system when the image decryption is carried out, so that the decrypted image can be restored without loss. It is a very ideal and practical method for removing the noise. However, due to the limited storage capacity of QR code, only a few letters, short sentences or a very small(32×32 pixel) grayscale image can be stored, which seriously restricts the further application of this technology. In order to store a larger grayscale image into the QR code, an image lossless compression method based on arithmetic coding was proposed. First, the grayscale image was read as the binary data in the form of a file. Then, converted it to decimal data and compressed it into the binary data by using the arithmetic coding. Finally, converted it to decimal data again. The experimental results show that this method has high compression efficiency, which can store a 64×64 pixel image with rich grayscale values into a 31-version QR code for encryption and decryption successfully.

     

/

返回文章
返回