[go: up one dir, main page]

CN111815727A - A method and system for image and image information fusion - Google Patents

A method and system for image and image information fusion Download PDF

Info

Publication number
CN111815727A
CN111815727A CN202010700084.5A CN202010700084A CN111815727A CN 111815727 A CN111815727 A CN 111815727A CN 202010700084 A CN202010700084 A CN 202010700084A CN 111815727 A CN111815727 A CN 111815727A
Authority
CN
China
Prior art keywords
image
pixel
pixel block
ascii code
gray value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010700084.5A
Other languages
Chinese (zh)
Inventor
卢小银
魏烨
周文萍
雷秀军
严德斌
金�一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Fuhuang Junda High Tech Information Technology Co ltd
Original Assignee
Hefei Fuhuang Junda High Tech Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Fuhuang Junda High Tech Information Technology Co ltd filed Critical Hefei Fuhuang Junda High Tech Information Technology Co ltd
Priority to CN202010700084.5A priority Critical patent/CN111815727A/en
Publication of CN111815727A publication Critical patent/CN111815727A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The invention relates to a method and a system for fusing image and image information, which are used for acquiring a collected image of a picture to be processed and reading EXIF information of the collected image; converting the read EXIF information into ASCII code based on binary system, setting the gray value corresponding to '0' of the ASCII code to be 0, and setting the gray value corresponding to '1' of the ASCII code to be 255; writing the ASCII code data converted from the EXIF information of the acquired image into the image, and sequentially writing the ASCII code data into the acquired image according to the writing expression of '0' or '1', thereby finishing the primary encoding of the acquired image; acquiring an initially coded acquired image, detecting a corresponding ASCII code pixel block, respectively performing line expansion and column expansion corresponding to the code pixel block, and outputting the coded acquired image; the invention can stably and effectively record the image data information, and the coding identification does not influence the visual experience of the user, and the effect is obvious.

Description

一种图像与图像信息融合的方法及系统A method and system for image and image information fusion

技术领域technical field

本发明涉及图像处理领域,具体涉及一种图像与图像信息融合的方法及系统。The invention relates to the field of image processing, in particular to a method and system for image and image information fusion.

背景技术Background technique

伴随计算机行业的兴起,带动诸多行业技术的进步和革命。如与计算机行业密切相关的图像处理技术,人们在对计算机技术的需求日益剧增过程中,也在不断进行图像处理技术的发展,且为图像处理技术发掘出更多的应用领域,如监视、视频图像、遥感及生物医学图像中。由于图像在生成过程中,同时携带出厂参数属性值。为了能够有效将图像与其对应的图像信息进行有机融合,现有的方法是在图像上叠加水印以及叠加字符,OSD作为成熟的技术已经在专用的图像处理器内广泛应用。With the rise of the computer industry, it has driven technological progress and revolution in many industries. For example, image processing technology that is closely related to the computer industry, people are constantly developing image processing technology in the process of increasing demand for computer technology, and discover more application fields for image processing technology, such as surveillance, Video images, remote sensing and biomedical images. Since the image is generated, it also carries the factory parameter attribute value. In order to effectively integrate the image with its corresponding image information, the existing method is to superimpose watermarks and superimposed characters on the image. As a mature technology, OSD has been widely used in dedicated image processors.

但是根据OSD技术叠加形成的图片,实际过程占用图像较多的图像像素,然而用户在获取到图片或视频时,不希望图片上以水印的方式呈现数码设备的相关信息,同时这些叠加字符也会影响用户的视觉感官或后续的图像处理。However, according to the image superimposed by OSD technology, the actual process occupies more image pixels of the image. However, when the user obtains the image or video, he does not want the relevant information of the digital device to be presented in the form of a watermark on the image. At the same time, these superimposed characters will also Affect the user's visual sense or subsequent image processing.

发明内容SUMMARY OF THE INVENTION

针对上述现有技术存在的问题,本发明提供了一种图像与图像信息融合的方法及系统,本发明通过对采集图像进行编码和解码的操作,有效稳定记录采集图像的数据信息,且编码标识的结果图像标识小,不影响用户视觉体验,效果显著。In view of the problems existing in the above-mentioned prior art, the present invention provides a method and system for fusion of images and image information. The present invention effectively and stably records the data information of the collected images through the operations of encoding and decoding the collected images, and the coding marks The resulting image logo is small, does not affect the user's visual experience, and has a significant effect.

本发明提供了一种图像与图像信息融合的方法,包括如下步骤:The present invention provides a method for image and image information fusion, comprising the following steps:

图像编码:Image encoding:

获取待处理图片的采集图像,读取采集图像的EXIF信息;Obtain the captured image of the image to be processed, and read the EXIF information of the captured image;

基于二进制针对读取的EXIF信息转化成为ASCII码,设置ASCII码的“0”对应的灰度值数值为0,设置ASCII码的“1”对应的灰度值数值为255;Based on binary conversion of the read EXIF information into ASCII code, set the gray value value corresponding to "0" of ASCII code to 0, and set the gray value value corresponding to "1" of ASCII code to 255;

将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,将ASCII码数据按照“0”或“1”的写入表示依次写入采集图像,完成采集图像的初步编码;Write the ASCII code data converted from the EXIF information of the captured image into the image, in pixel units, "0" is written as a black pixel, "1" is written as a white pixel, and the ASCII code data is written as "0" or "1" Writing means writing the acquired images in sequence to complete the preliminary coding of the acquired images;

获取初步编码的采集图像,检测对应的ASCII码编码像素块,分别进行编码像素块对应的行扩展与列扩展,输出已编码采集图像;Acquire the preliminarily encoded captured image, detect the corresponding ASCII code encoded pixel block, perform row expansion and column expansion corresponding to the encoded pixel block, and output the encoded captured image;

图像解码:Image decoding:

检测已完成编码图像的ASCII码编码像素块;Detect the ASCII encoded pixel block of the encoded image;

获取ASCII码编码像素块的边境值,剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;Obtain the border value of the ASCII code encoded pixel block, remove the first line and the last line of the ASCII code encoded pixel block, and select the remaining encoded pixel blocks to be set as the target decoded pixel block;

基于目标解码像素块,进行编码过程列扩展对应的列收缩;检测每行的任一像素的灰度值;Based on the target decoding pixel block, perform the column expansion corresponding to the column expansion in the encoding process; detect the gray value of any pixel in each row;

获取目标解码像素块每行的所有像素单元的灰度值,采用算术平均法计算并输出目标解码像素块的平均像素灰度值数列;Obtain the grayscale values of all pixel units in each row of the target decoded pixel block, and calculate and output the average pixel grayscale value sequence of the target decoded pixel block by using the arithmetic mean method;

获取输出的平均像素灰度值数列,基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”;Obtain the output average pixel gray value sequence, and represent any pixel unit of the target decoded pixel block as "0" or "1" of ASCII code based on the gray value threshold approximation method;

读取目标解码像素块转换后的ASCII码数据,进行明文转换,输出对应的编码图像的EXIF信息。Read the ASCII code data converted from the target decoded pixel block, perform plaintext conversion, and output the EXIF information of the corresponding encoded image.

作为上述方案的进一步优化,所述编码像素块对应的行扩展与列扩展为:针对行扩展,复制编码像素块为α行;针对列扩展,复制编码像素块为β列。As a further optimization of the above scheme, the row extension and column extension corresponding to the coded pixel block are: for row extension, the duplicate coded pixel block is α row; for column extension, the duplicate coded pixel block is β column.

作为上述方案的进一步优化,所述编码像素块对应的行扩展与列扩展为:针对行扩展,复制编码像素块为4行;针对列扩展,复制编码像素块为2列。As a further optimization of the above scheme, the row extension and column extension corresponding to the coded pixel block are: for row extension, the duplicate coded pixel block is 4 rows; for column extension, the duplicate coded pixel block is 2 columns.

作为上述方案的进一步优化,所述编码像素块对应的列扩展具体包括如下:As a further optimization of the above solution, the column expansion corresponding to the encoded pixel block specifically includes the following:

获取采集图像对应的ASCII码编码像素块;Obtain the ASCII-coded pixel block corresponding to the captured image;

读取ASCII码编码像素块的最后一个单元像素,在所述单元像素的下位设置标记列,基于所述标记列进行ASCII码编码像素块轴对称变换。The last unit pixel of the ASCII code-coded pixel block is read, a marker column is set below the unit pixel, and the ASCII code-coded pixel block axisymmetric transformation is performed based on the marker column.

作为上述方案的进一步优化,针对黑白图片,采用灰度值0表达二进制的“0”,采用灰度值255表达二进制的“1”。As a further optimization of the above solution, for black and white pictures, a gray value of 0 is used to express a binary "0", and a gray value of 255 is used to express a binary "1".

作为上述方案的进一步优化,针对彩色图片,采用(R,G,B)值为(0,0,0)的黑色像素表达二进制的“0”,采用(R,G,B)值为(255,255,255)的白色像素表达二进制的“1”。As a further optimization of the above scheme, for color pictures, a black pixel with a (R, G, B) value of (0, 0, 0) is used to express binary "0", and a (R, G, B) value of (255 , 255, 255) white pixels represent binary "1".

作为上述方案的进一步优化,所述目标解码像素块的任一像素单元的平均像素灰度值数列具体计算为:As a further optimization of the above scheme, the average pixel gray value sequence of any pixel unit of the target decoding pixel block is specifically calculated as:

获取目标解码像素块每行的所有像素单元的灰度值;Obtain the grayscale values of all pixel units in each row of the target decoded pixel block;

读取目标解码像素块每行的第一个且位于同一直线上的像素单元对应的灰度值,求取平均值作为目标解码像素块的第一个平均像素灰度值;Read the gray value corresponding to the first pixel unit in each row of the target decoding pixel block and located on the same straight line, and obtain the average value as the first average pixel gray value of the target decoding pixel block;

以此类推,直至计算目标解码像素块每行的最后一个且位于同一直线上的像素单元对应的灰度值,求取平均值,输出目标解码像素块的平均像素灰度值数列。And so on, until the gray value corresponding to the last pixel unit in each row of the target decoded pixel block and located on the same straight line is calculated, the average value is calculated, and the average pixel gray value sequence of the target decoded pixel block is output.

作为上述方案的进一步优化,在获取平均像素灰度值数列后,基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”的具体步骤包括如下:As a further optimization of the above scheme, after obtaining the average pixel gray value sequence, the specific steps of expressing any pixel unit of the target decoding pixel block as "0" or "1" of ASCII code based on the gray value threshold approximation method include: as follows:

读取目标解码像素块的平均像素灰度值数列,获取平均像素灰度值;Read the average pixel gray value sequence of the target decoded pixel block to obtain the average pixel gray value;

设置灰度值阈值

Figure BDA0002592689260000031
且设置二进制的“0”对应的灰度值数值不超过
Figure BDA0002592689260000032
在目标解码像素块上显示为黑色;设置二进制的“1”对应的灰度值数值不低于
Figure BDA0002592689260000033
在目标解码像素块上显示为白色。Set the gray value threshold
Figure BDA0002592689260000031
And set the gray value value corresponding to binary "0" not to exceed
Figure BDA0002592689260000032
Displayed as black on the target decoded pixel block; the gray value corresponding to binary "1" is not lower than
Figure BDA0002592689260000033
Displayed in white on the target decoded pixel block.

本发明还提供了一种图像与图像信息融合的系统,所述系统包括:The present invention also provides a system for image and image information fusion, the system comprising:

第一获取模块,用于获取待处理图片的采集图像,读取采集图像的EXIF信息,还用于检测已完成编码图像的ASCII码编码像素块;The first acquisition module is used to acquire the acquired image of the picture to be processed, read the EXIF information of the acquired image, and also be used to detect the ASCII code encoded pixel block of the encoded image;

ASCII码转换模块,用于基于二进制针对读取的EXIF信息转化成为ASCII码;还用于基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”;The ASCII code conversion module is used to convert the read EXIF information into ASCII code based on binary code; it is also used to represent any pixel unit of the target decoded pixel block as "0" or "" of ASCII code based on the gray value threshold approximation method. 1";

设置ASCII码的“0”对应的灰度值数值为0,设置ASCII码的“1”对应的灰度值数值为255;Set the gray value value corresponding to "0" of ASCII code to 0, and set the gray value value corresponding to "1" of ASCII code to 255;

数据写入模块,用于将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,将ASCII码数据按照“0”或“1”的写入表示依次写入采集图像,完成采集图像的初步编码;The data writing module is used to write the ASCII code data converted from the EXIF information of the collected image into the image, in pixel units, "0" is written as a black pixel, "1" is written as a white pixel, and the ASCII code data is written as The writing of "0" or "1" indicates that the captured images are written in sequence to complete the preliminary coding of the captured images;

数据保护模块,用于获取已编码的采集图像,检测对应的ASCII码编码像素块,分别进行编码像素块对应的行扩展与列扩展;还用于基于目标解码像素块,进行编码过程列扩展对应的列收缩;检测每行的任一像素的灰度值;The data protection module is used to obtain the coded captured image, detect the corresponding ASCII code coded pixel block, and respectively perform row expansion and column expansion corresponding to the coded pixel block; it is also used to decode the pixel block based on the target, and perform the column expansion corresponding to the encoding process. Column contraction of ; detect the gray value of any pixel in each row;

第二获取模块,用于获取ASCII码编码像素块的边境值,剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;The second acquisition module is used to obtain the border value of the ASCII code encoded pixel block, removes the first line and the last line of the ASCII code encoded pixel block, and selects the remaining encoded pixel blocks and is set as the target decoding pixel block;

第三获取模块,用于获取目标解码像素块每行的所有像素单元的灰度值,采用算术平均法计算并输出目标解码像素块的平均像素灰度值数列;The third acquisition module is used to acquire the grayscale values of all pixel units in each row of the target decoding pixel block, and calculate and output the average pixel grayscale value sequence of the target decoding pixel block by using the arithmetic mean method;

数据输出模块,用于输出已编码采集图像,还用于读取目标解码像素块转换后的ASCII码数据,进行明文转换,输出对应的编码图像的EXIF信息。The data output module is used to output the coded captured image, and also used to read the ASCII code data converted from the target decoding pixel block, perform plaintext conversion, and output the EXIF information of the corresponding coded image.

本发明采用上述的技术方案,与现有技术相比,本发明的一种图像与图像信息融合的方法及系统,具有以下技术效果:The present invention adopts the above-mentioned technical scheme. Compared with the prior art, a method and system for fusion of images and image information of the present invention have the following technical effects:

1.本发明的一种图像与图像信息融合的方法,针对采集图像,获取明文数据信息转换为ASCII码数据,以像素为单位,设置ASCII码数据的“0”写入为黑色像素,“1”写入为白色像素,进行图像的编码和数据标记;本发明基于采集图像的数据编码解码过程,有效将图像以及图像明文数据融合,便于进行图像的信息存储记忆。1. the method for fusion of a kind of image of the present invention and image information, for collecting image, obtain plaintext data information and convert into ASCII code data, take pixel as unit, set "0" of ASCII code data to be written as black pixel, "1. ” is written as white pixels for image encoding and data marking; the present invention is based on the data encoding and decoding process of collected images, effectively fuses images and image plaintext data, and facilitates image information storage and memory.

2.本发明的一种图像与图像信息融合的方法,通过采用以像素为基本操作单位进行图像的编码及解码操作,使得编码完成后的图像标记占用图像总体面积小,不影响用户对经过像素标记的图像内容的视觉体验,实用性好。2. A method of image and image information fusion of the present invention, by using pixels as the basic operation unit to perform image encoding and decoding operations, so that the image mark after the encoding is completed occupies a small overall area of the image, and does not affect the user's ability to pass pixels. The visual experience of the marked image content is good for practicality.

3.本发明的一种图像与图像信息融合的方法,在处理过程中通过对原始编码像素图进行行与列的扩展,有效考虑到图像在实际处理过程中,可能发生的像素灰度值变化或图形局部切割,导致编码信息出现干扰从而后续解码出现错误的弊端,增设的扩展序列有效保障了图像编码和解码操作的鲁棒性,有利于用户后期对图像解码处理的容错性。3. A method of image and image information fusion of the present invention, through the row and column expansion of the original encoded pixel map in the processing process, effectively considering the pixel gray value changes that may occur in the actual processing process of the image. Or the graphics are partially cut, resulting in the interference of the encoded information and the subsequent decoding errors. The added extension sequence effectively ensures the robustness of the image encoding and decoding operations, and is beneficial to the user's later error tolerance for image decoding processing.

附图说明Description of drawings

图1为本发明的一种图像与图像信息融合的方法的图像编码流程示意图;1 is a schematic diagram of an image coding flow diagram of a method for image and image information fusion according to the present invention;

图2为本发明的一种图像与图像信息融合的方法的图像解码流程示意图;2 is a schematic diagram of an image decoding process flow of a method for image and image information fusion according to the present invention;

图3为本发明的一种图像与图像信息融合的方法的二进制像素示意图;3 is a schematic diagram of a binary pixel of a method for image and image information fusion according to the present invention;

图4为本发明的一种图像与图像信息融合的方法的另一幅二进制像素示意图;4 is another schematic diagram of a binary pixel of a method for fusion of an image and image information according to the present invention;

图5为本发明的一种图像与图像信息融合的方法的另一幅二进制像素示意图;5 is another schematic diagram of a binary pixel of a method for image and image information fusion according to the present invention;

图6为本发明的一种图像与图像信息融合的方法的实例图;FIG. 6 is an example diagram of a method for image and image information fusion according to the present invention;

图7为本发明的一种图像与图像信息融合的系统的结构框图。FIG. 7 is a structural block diagram of an image and image information fusion system according to the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

如图1-7所示,本发明实施例提供了一种图像与图像信息融合的方法,包括如下:As shown in Figures 1-7, an embodiment of the present invention provides a method for image and image information fusion, including the following:

图像编码:Image encoding:

Step1.获取待处理图片的采集图像,读取采集图像的EXIF信息;具体的,本发明实施例的采集终端为可进行图像采集和存储的电子终端设备,可以是手机、电脑、平板以上或其他相关电子设备;Step1. Obtain the captured image of the image to be processed, and read the EXIF information of the captured image; specifically, the capture terminal in the embodiment of the present invention is an electronic terminal device that can perform image capture and storage, and may be a mobile phone, a computer, a tablet or above, or other related electronic equipment;

Step2.基于二进制针对读取的EXIF信息转化成为ASCII码,设置ASCII码的“0”对应的灰度值数值为0,设置ASCII码的“1”对应的灰度值数值为255;在此特别说明的是,由于明文的EXIF信息具有多样性,如文字、数字、标点符号等其他形式,无法直接进行机器识别,因而选用机器容易识别的ASCII码进行编码转换;Step2. Convert the read EXIF information into ASCII code based on binary code, set the gray value value corresponding to "0" of ASCII code to 0, and set the gray value value corresponding to "1" of ASCII code to 255; It should be noted that, due to the diversity of EXIF information in plain text, such as characters, numbers, punctuation marks and other forms, it cannot be directly recognized by the machine, so the ASCII code that is easily recognized by the machine is used for encoding conversion;

Step3.将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,将ASCII码数据按照“0”或“1”的写入表示依次写入采集图像,完成采集图像的初步编码;Step3. Write the ASCII code data converted from the EXIF information of the captured image into the image, in pixel units, "0" is written as a black pixel, "1" is written as a white pixel, and the ASCII code data is written as "0" or "" The writing of 1" means writing the acquired images in sequence, and completing the preliminary coding of the acquired images;

具体的,本发明针对黑白图片,采用灰度值0表达二进制的“0”,采用灰度值255表达二进制的“1”;针对彩色图片,采用(R,G,B)值为(0,0,0)的黑色像素表达二进制的“0”,采用(R,G,B)值为(255,255,255)的白色像素表达二进制的“1”;如表达二进制01010101时,需要八个像素来表达,表达效果如图所示:Specifically, for black and white pictures, the present invention uses a gray value of 0 to express a binary "0", and a gray value of 255 to express a binary "1"; for color pictures, the (R, G, B) value is used as (0, The black pixel of 0, 0) expresses binary "0", and the white pixel with (R, G, B) value (255, 255, 255) is used to express binary "1"; for example, when expressing binary 01010101, eight Pixels are used to express, and the expression effect is as shown in the figure:

Step4.获取初步编码的采集图像,检测对应的ASCII码编码像素块,分别进行编码像素块对应的行扩展与列扩展,输出已编码采集图像;Step4. Obtain the preliminary encoded captured image, detect the corresponding ASCII code encoded pixel block, perform row expansion and column expansion corresponding to the encoded pixel block, and output the encoded captured image;

Step41.编码像素块对应的列扩展还包括如下:Step41. The column expansion corresponding to the encoded pixel block also includes the following:

获取采集图像对应的ASCII码编码像素块;Obtain the ASCII-coded pixel block corresponding to the captured image;

读取ASCII码编码像素块的最后一个单元像素,在所述单元像素的下位设置标记列,基于所述标记列进行ASCII码编码像素块轴对称变换。The last unit pixel of the ASCII code-coded pixel block is read, a marker column is set below the unit pixel, and the ASCII code-coded pixel block axisymmetric transformation is performed based on the marker column.

具体的,所述编码像素块对应的行扩展与列扩展为:针对行扩展,复制编码像素块为α行;针对列扩展,复制编码像素块为β列;优选的,本实施例的编码像素块对应的行扩展与列扩展为:针对行扩展,复制编码像素块为4行;针对列扩展,复制编码像素块为2列。Specifically, the row extension and column extension corresponding to the coded pixel block are: for row extension, the duplicate coded pixel block is α row; for column extension, the duplicate coded pixel block is β column; preferably, the coded pixel block in this embodiment is The row extension and column extension corresponding to the block are: for row extension, the copy-coded pixel block is 4 rows; for column extension, the copy-coded pixel block is 2 columns.

更具体的,由于图像在进行编码后,后期可能会存在进行图像的格式转换、压缩等其他操作,其操作过程涉及的平滑、滤波等处理算法有可能改变图像像素灰度值,其编码信息会受到其他正常图像数据的干扰,因而针对上述图像中用以表达二进制数值的像素进行扩展;本实施例中,优选设置为横向扩展两倍,纵向扩展四倍,如二进制01010101表达如图所示:More specifically, after the image is encoded, there may be other operations such as format conversion and compression of the image in the later stage. The smoothing, filtering and other processing algorithms involved in the operation process may change the gray value of the image pixel, and the encoding information will be changed. Due to the interference of other normal image data, the pixels used to express binary values in the above images are expanded; in this embodiment, it is preferably set to expand twice horizontally and expand four times vertically, such as the binary 01010101 expression as shown in the figure:

在实际图像编码中,牺牲图像的前四行,将前四行的具体列用来表达附加信息,以表达时间信息2020年1月1日8点59分59秒时,对于数据串20200101085959,使用ASCII码来表达,一个数字用8bit来表示,共112bit,在图像中共占用4行、224列个像素;In actual image coding, the first four lines of the image are sacrificed, and the specific columns of the first four lines are used to express additional information to express the time information at 8:59:59 on January 1, 2020, for the data string 20200101085959, use Expressed by ASCII code, a number is expressed by 8 bits, a total of 112 bits, occupying a total of 4 rows and 224 columns of pixels in the image;

基于在编码过程中添加的扩展序列,有效考虑到图像在实际处理过程中,可能发生的像素灰度值发生变化,导致编码信息出现干扰,从而后续解码出现错误的弊端,增设的扩展序列有效保障了图像编码和解码操作的鲁棒性,有利于用户后期对图像的处理容错性;Based on the extension sequence added in the encoding process, it is effectively considered that the gray value of the pixel may change during the actual processing of the image, resulting in the interference of the encoding information and the drawbacks of subsequent decoding errors. The additional extension sequence effectively guarantees It improves the robustness of image encoding and decoding operations, which is beneficial to the user's fault tolerance for image processing in the later stage;

本实施例中,对于编码图像的行扩展,优选设置为横向扩展两倍,在实际操作过程中,鉴于用户可能存在边缘化切割处理,破坏编码图像的第一区域的边缘像素,因而在进行行扩展时,插入一标记列,且在标记列后进行行扩展的逆序复制,如图所示,本实施例优选设置为在第一轮行扩展后插入三列黑色作为标记列,即在原有基础上设置4行、(448+3)列个像素,可有效避免用户对于边缘像素的切割,进一步增强图像编码避免出现意外的可能性;In this embodiment, the line extension of the coded image is preferably set to be twice the horizontal extension. In the actual operation process, in view of the user may have edge cutting processing, the edge pixels of the first area of the coded image are destroyed. When expanding, insert a marker column, and perform reverse order copying of row expansion after the marker column. As shown in the figure, this embodiment is preferably set to insert three black columns as marker columns after the first round of row expansion, that is, on the original basis. Set 4 rows and (448+3) columns of pixels on the top, which can effectively avoid the user's cutting of edge pixels, and further enhance the image coding to avoid the possibility of accidents;

图像解码:Image decoding:

Step5.检测已完成编码图像的ASCII码编码像素块;Step5. Detect the ASCII encoded pixel block of the encoded image;

Step6.获取ASCII码编码像素块的边境值,剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;Step6. Obtain the border value of the ASCII code encoded pixel block, remove the first line and the last line of the ASCII code encoded pixel block, and select the remaining encoded pixel blocks to set as the target decoded pixel block;

具体的,本实施的像素解码过程中,首先进行ASCII码编码像素块的行与列的像素的获取;再通过筛选算法进行有效行的像素提取,由于最上面的行为图像边缘,最下面的行与实际图像内容相邻,因而上述两种情形的行在图像处理中为最易受影响的行,不具备实际图像解码的参考性,因而剔除ASCII码编码像素块的自首行向下的γ行和自尾行向上的γ行,本实施例优选为剔除上下各1行,实际采用的样本像素为第2行与第3行,然后对ASCII码编码像素块进行遍历,获取到标记列后,则该标记列的右端进行逆序排列后收缩即为该图像的实际像素编码;Specifically, in the pixel decoding process of the present implementation, the pixels of the rows and columns of the ASCII code-encoded pixel block are first obtained; then the pixels of the valid rows are extracted by the screening algorithm. Since the top row is the edge of the image, the bottom row It is adjacent to the actual image content, so the lines in the above two cases are the most susceptible lines in image processing, and do not have reference for actual image decoding, so the γ line from the first line down from the first line of the ASCII code encoded pixel block is eliminated. and the γ row from the tail row to the top, this embodiment preferably removes one row up and down, and the sample pixels actually used are the second row and the third row, and then traverse the ASCII code pixel block, after obtaining the marked column, then The right end of the mark column is arranged in reverse order and then shrinked to be the actual pixel code of the image;

更具体的,本实施例中在进行对应的编图像编码的逆向过程,即先进行有效序列读取,再进行有效序列的列倍数收缩,最后进行实际有效序列的灰度值转换,生成对应的二进制数据;More specifically, in this embodiment, the corresponding reverse process of image encoding is performed, that is, the valid sequence is read first, then the column multiple shrinking of the valid sequence is performed, and finally the gray value conversion of the actual valid sequence is performed to generate the corresponding binary data;

本实施例采用灰度最低值0和最高值255来编码,其在进行去噪、压缩等一系列图像处理后,有效保障了灰度值不会被图像周边像素完全同化;且实际解码过程中,可进行灰度阈值的放大,有效应对图像处理过程中的像素灰度值的细微改变;In this embodiment, the lowest gray value of 0 and the highest value of 255 are used for encoding. After a series of image processing such as denoising and compression, it effectively ensures that the gray value will not be completely assimilated by the surrounding pixels of the image; and in the actual decoding process , the grayscale threshold can be enlarged, which can effectively deal with the subtle changes of the pixel grayscale value in the image processing process;

Step7.基于目标解码像素块,进行编码过程列扩展对应的列收缩;检测每行的任一像素的灰度值;具体的,由于图像在编码过程已经过列扩展,因而其对应的ASCII码编码也经由列扩展发生改变,因而在解码过程中,针对列扩展进行逆过程变换,获取实际有效的ASCII码编码;Step7. Based on the target decoding pixel block, perform the column expansion corresponding to the column expansion of the encoding process; detect the gray value of any pixel in each row; specifically, since the image has been expanded in the encoding process, its corresponding ASCII code is encoded It is also changed through column expansion, so in the decoding process, inverse process transformation is performed for column expansion to obtain the actual effective ASCII code encoding;

Step8.获取目标解码像素块每行的所有像素单元的灰度值,采用算术平均法计算并输出目标解码像素块的平均像素灰度值数列;Step8. Obtain the grayscale values of all pixel units in each row of the target decoded pixel block, and use the arithmetic mean method to calculate and output the average pixel grayscale value sequence of the target decoded pixel block;

具体的,目标解码像素块的任一像素单元的平均像素灰度值数列具体计算为:Specifically, the average pixel gray value sequence of any pixel unit of the target decoding pixel block is specifically calculated as:

Step81.获取目标解码像素块每行的所有像素单元的灰度值;Step81. Obtain the grayscale values of all pixel units in each row of the target decoded pixel block;

Step82.读取目标解码像素块每行的第一个且位于同一直线上的像素单元对应的灰度值,求取平均值作为目标解码像素块的第一个平均像素灰度值;Step82. Read the gray value corresponding to the first pixel unit in each row of the target decoding pixel block and located on the same straight line, and obtain the average value as the first average pixel gray value of the target decoding pixel block;

Step83.以此类推,直至计算目标解码像素块每行的最后一个且位于同一直线上的像素单元对应的灰度值,求取平均值,输出目标解码像素块的平均像素灰度值数列。Step 83. By analogy, until the gray value corresponding to the last pixel unit in each row of the target decoding pixel block and located on the same straight line is calculated, the average value is calculated, and the average pixel gray value sequence of the target decoding pixel block is output.

Step9.获取输出的平均像素灰度值数列,基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”;Step9. Obtain the output average pixel gray value sequence, and represent any pixel unit of the target decoding pixel block as "0" or "1" of ASCII code based on the gray value threshold approximation method;

具体的,在获取平均像素灰度值数列后,基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”的具体步骤包括如下:Specifically, after obtaining the average pixel gray value sequence, the specific steps of expressing any pixel unit of the target decoding pixel block as "0" or "1" of the ASCII code based on the gray value threshold approximation method include the following steps:

Step91.读取目标解码像素块的平均像素灰度值数列,获取平均像素灰度值;Step91. Read the average pixel gray value sequence of the target decoded pixel block to obtain the average pixel gray value;

Step92.设置灰度值阈值

Figure BDA0002592689260000071
且设置二进制的“0”对应的灰度值数值不超过
Figure BDA0002592689260000072
在目标解码像素块上显示为黑色;设置二进制的“1”对应的灰度值数值不低于
Figure BDA0002592689260000073
在目标解码像素块上显示为白色。Step92. Set the gray value threshold
Figure BDA0002592689260000071
And set the gray value value corresponding to binary "0" not to exceed
Figure BDA0002592689260000072
Displayed as black on the target decoded pixel block; the gray value corresponding to binary "1" is not lower than
Figure BDA0002592689260000073
Displayed in white on the target decoded pixel block.

Step10.读取目标解码像素块转换后的ASCII码数据,进行明文转换,输出对应的编码图像的EXIF信息。Step10. Read the ASCII code data converted from the target decoded pixel block, perform plaintext conversion, and output the EXIF information of the corresponding encoded image.

基于本发明实施例提供的一种图像与图像信息融合的方法,针对图像进行像素编码,即可完成对图像的标记和备注;再通过检测任意图像是否存在ASCII码编码像素块,可进行该图像的像素读取并解码;本发明针对任意图像的编码操作,其能够有效记录图像的物理信息,避免其他标识信息丢失造成用户的损失;且采用像素为单位,不影响用户对经过像素标记的图像内容的感官体验;同时在进行编码,有效考虑到用户对图像的后续处理操作,预先进行标识信息的软备份和破坏性防护,进行图像的有效信息存储,效果显著。Based on a method for fusion of image and image information provided by the embodiment of the present invention, marking and remarking the image can be completed by performing pixel coding on the image; and then by detecting whether any image has an ASCII code encoded pixel block, the image can be encoded. The present invention is aimed at the encoding operation of any image, which can effectively record the physical information of the image, and avoid the loss of other identification information caused by the loss of the user; and the pixel is used as the unit, which does not affect the user's image marked by pixels. The sensory experience of the content; at the same time, during the coding, the user's subsequent processing operations on the image are effectively considered, and the soft backup and destructive protection of the identification information are performed in advance, and the effective information storage of the image is carried out, and the effect is remarkable.

本发明实施例还提供了一种图像与图像信息融合的系统,所述系统包括:The embodiment of the present invention also provides a system for image and image information fusion, the system includes:

第一获取模块10,用于获取待处理图片的采集图像,读取采集图像的EXIF信息,还用于检测已完成编码图像的ASCII码编码像素块;The first acquisition module 10 is used to acquire the captured image of the picture to be processed, read the EXIF information of the captured image, and also be used to detect the ASCII code encoded pixel block of the encoded image;

ASCII码转换模块20,用于基于二进制针对读取的EXIF信息转化成为ASCII码;还用于基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”;The ASCII code conversion module 20 is used to convert the read EXIF information into ASCII code based on binary code; it is also used to represent any pixel unit of the target decoding pixel block as "0" or "0" of the ASCII code based on the gray value threshold approximation method. "1";

数据写入模块30,用于将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,将ASCII码数据按照“0”或“1”的写入表示依次写入采集图像,完成采集图像的编码;The data writing module 30 is used to write the ASCII code data converted from the EXIF information of the collected image into the image, in pixel units, "0" is written as a black pixel, "1" is written as a white pixel, and the ASCII code data is written into the image. According to the writing of "0" or "1", the captured images are written in sequence, and the encoding of the captured images is completed;

数据保护模块40,用于获取已编码的采集图像,检测对应的ASCII码编码像素块,分别进行编码像素块对应的行扩展与列扩展;还用于基于目标解码像素块,进行编码过程列扩展对应的列收缩;检测每行的任一像素的灰度值;The data protection module 40 is used for acquiring the coded captured image, detecting the corresponding ASCII code coded pixel block, and performing row expansion and column expansion corresponding to the coded pixel block respectively; and is also used for decoding the pixel block based on the target, and performing the coding process column expansion The corresponding column shrinks; detects the gray value of any pixel in each row;

第二获取模块50,用于获取ASCII码编码像素块的边境值,剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;The second acquisition module 50 is used to obtain the border value of the ASCII code encoded pixel block, removes the first line and the last line of the ASCII code encoded pixel block, and selects the remaining encoded pixel blocks and is set as the target decoding pixel block;

第三获取模块60,用于获取目标解码像素块每行的所有像素单元的灰度值,采用算术平均法计算并输出目标解码像素块的平均像素灰度值数列;The third acquisition module 60 is used for acquiring the grayscale values of all pixel units in each row of the target decoding pixel block, and calculating and outputting the average pixel grayscale value sequence of the target decoding pixel block using the arithmetic mean method;

数据输出模块70,用于读取目标解码像素块转换后的ASCII码数据,进行明文转换,输出对应的编码图像的EXIF信息。The data output module 70 is configured to read the converted ASCII code data of the target decoded pixel block, perform plaintext conversion, and output the corresponding EXIF information of the encoded image.

在本发明实施例中,用户基于第一获取模块10进行任意图像的采集,读取采集图像的EXIF信息;通过ASCII码转换模块20进行图像的预处理:基于二进制针对读取的EXIF信息转化成为ASCII码,经由数据写入模块30将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,完成图像初步编码;再针对初步编码的处理图像,采用数据保护模块40分别进行初步编码像素块的行扩展与列扩展,生成具备自我保护的编码图像;In the embodiment of the present invention, the user collects any image based on the first acquisition module 10, and reads the EXIF information of the collected image; the preprocessing of the image is performed by the ASCII code conversion module 20: the binary-based conversion of the read EXIF information into ASCII code, the ASCII code data converted from the EXIF information of the collected image is written into the image via the data writing module 30, in pixels, "0" is written as a black pixel, "1" is written as a white pixel, and the preliminary image is completed. Encoding; then for the preliminarily encoded processed image, the data protection module 40 is used to carry out row expansion and column expansion of the preliminary encoded pixel block, respectively, to generate an encoded image with self-protection;

用户在进行解码操作时,检测已编码的图像,基于第二获取模块50剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;通过第三获取模块60计算并输出目标解码像素块的平均像素灰度值数列,再通过ASCII码转换模块20和数据写入模块30获取图像的明文信息,通过数据输出模块70输出对应的编码图像的EXIF信息。When the user performs the decoding operation, the coded image is detected, the first row and the last row of the ASCII code coded pixel block are eliminated based on the second acquisition module 50, and the remaining coded pixel blocks are selected and set as the target decoding pixel block; through the third acquisition module 60 calculates and outputs the average pixel gray value sequence of the target decoded pixel block, then obtains the plaintext information of the image through the ASCII code conversion module 20 and the data writing module 30, and outputs the corresponding EXIF information of the encoded image through the data output module 70.

此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described in terms of embodiments, not each embodiment only includes an independent technical solution, and this description in the specification is only for the sake of clarity, and those skilled in the art should take the specification as a whole , the technical solutions in each embodiment can also be appropriately combined to form other implementations that can be understood by those skilled in the art.

Claims (9)

1.一种图像与图像信息融合的方法,其特征在于,包括如下步骤:1. a method for image and image information fusion, is characterized in that, comprises the steps: 图像编码:Image encoding: 获取待处理图片的采集图像,读取采集图像的EXIF信息;Obtain the captured image of the image to be processed, and read the EXIF information of the captured image; 基于二进制针对读取的EXIF信息转化成为ASCII码,设置ASCII码的“0”对应的灰度值数值为0,设置ASCII码的“1”对应的灰度值数值为255;Based on binary conversion of the read EXIF information into ASCII code, set the gray value value corresponding to "0" of ASCII code to 0, and set the gray value value corresponding to "1" of ASCII code to 255; 将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,将ASCII码数据按照“0”或“1”的写入表示依次写入采集图像,完成采集图像的初步编码;Write the ASCII code data converted from the EXIF information of the captured image into the image, in pixel units, "0" is written as a black pixel, "1" is written as a white pixel, and the ASCII code data is written as "0" or "1" Writing means writing the acquired images in sequence to complete the preliminary coding of the acquired images; 获取初步编码的采集图像,检测对应的ASCII码编码像素块,分别进行编码像素块对应的行扩展与列扩展,输出已编码采集图像;Acquire the preliminarily encoded captured image, detect the corresponding ASCII code encoded pixel block, perform row expansion and column expansion corresponding to the encoded pixel block, and output the encoded captured image; 图像解码:Image decoding: 检测已完成编码图像的ASCII码编码像素块;Detect the ASCII encoded pixel block of the encoded image; 获取ASCII码编码像素块的边境值,剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;Obtain the border value of the ASCII code encoded pixel block, remove the first line and the last line of the ASCII code encoded pixel block, and select the remaining encoded pixel blocks to be set as the target decoded pixel block; 基于目标解码像素块,进行编码过程列扩展对应的列收缩;检测每行的任一像素的灰度值;Based on the target decoding pixel block, perform the column expansion corresponding to the column expansion in the encoding process; detect the gray value of any pixel in each row; 获取目标解码像素块每行的所有像素单元的灰度值,采用算术平均法计算并输出目标解码像素块的平均像素灰度值数列;Obtain the grayscale values of all pixel units in each row of the target decoded pixel block, and calculate and output the average pixel grayscale value sequence of the target decoded pixel block by using the arithmetic mean method; 获取输出的平均像素灰度值数列,基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”;Obtain the output average pixel gray value sequence, and represent any pixel unit of the target decoded pixel block as "0" or "1" of ASCII code based on the gray value threshold approximation method; 读取目标解码像素块转换后的ASCII码数据,进行明文转换,输出对应的编码图像的EXIF信息。Read the ASCII code data converted from the target decoded pixel block, perform plaintext conversion, and output the EXIF information of the corresponding encoded image. 2.根据权利要求1所述的一种图像与图像信息融合的方法,其特征在于,所述编码像素块对应的行扩展与列扩展为:针对行扩展,复制编码像素块为α行;针对列扩展,复制编码像素块为β列。2. The method for merging an image and image information according to claim 1, wherein the row extension and column extension corresponding to the encoded pixel block are: for row extension, copying the encoded pixel block is α row; Column expansion, copy-coded pixel blocks are β columns. 3.根据权利要求2所述的一种图像与图像信息融合的方法,其特征在于,所述编码像素块对应的行扩展与列扩展为:针对行扩展,复制编码像素块为4行;针对列扩展,复制编码像素块为2列。3. The method for merging an image and image information according to claim 2, wherein the row extension and column extension corresponding to the encoded pixel block are: for row extension, copying the encoded pixel block is 4 rows; Column expansion, copy-coded pixel block is 2 columns. 4.根据权利要求1所述的一种图像与图像信息融合的方法,其特征在于,所述编码像素块对应的列扩展还包括如下:4. The method for fusion of image and image information according to claim 1, wherein the column expansion corresponding to the encoded pixel block further comprises the following: 获取采集图像对应的ASCII码编码像素块;Obtain the ASCII-coded pixel block corresponding to the captured image; 读取ASCII码编码像素块的最后一个单元像素,在所述单元像素的下位设置标记列,基于所述标记列进行ASCII码编码像素块轴对称变换。The last unit pixel of the ASCII code-coded pixel block is read, a marker column is set below the unit pixel, and the ASCII code-coded pixel block axisymmetric transformation is performed based on the marker column. 5.根据权利要求1所述的一种图像与图像信息融合的方法,其特征在于,针对黑白图片,采用灰度值0表达二进制的“0”,采用灰度值255表达二进制的“1”。5. the method for fusion of a kind of image and image information according to claim 1, it is characterised in that, for black and white pictures, adopting grayscale value 0 to express binary "0", using grayscale value 255 to express binary "1" . 6.根据权利要求1所述的一种图像与图像信息融合的方法,其特征在于,针对彩色图片,采用(R,G,B)值为(0,0,0)的黑色像素表达二进制的“0”,采用(R,G,B)值为(255,255,255)的白色像素表达二进制的“1”。6. The method for fusion of an image and image information according to claim 1, wherein, for a color picture, a black pixel with a (R, G, B) value of (0, 0, 0) is used to express the binary "0", a binary "1" is represented by a white pixel with (R, G, B) value (255, 255, 255). 7.根据权利要求1所述的一种图像与图像信息融合的方法,其特征在于,所述目标解码像素块的任一像素单元的平均像素灰度值数列具体计算为:7. The method for fusion of an image and image information according to claim 1, wherein the average pixel gray value sequence of any pixel unit of the target decoding pixel block is specifically calculated as: 获取目标解码像素块每行的所有像素单元的灰度值;Obtain the grayscale values of all pixel units in each row of the target decoded pixel block; 读取目标解码像素块每行的第一个且位于同一直线上的像素单元对应的灰度值,求取平均值作为目标解码像素块的第一个平均像素灰度值;Read the gray value corresponding to the first pixel unit in each row of the target decoding pixel block and located on the same straight line, and obtain the average value as the first average pixel gray value of the target decoding pixel block; 以此类推,直至计算目标解码像素块每行的最后一个且位于同一直线上的像素单元对应的灰度值,求取平均值,输出目标解码像素块的平均像素灰度值数列。And so on, until the gray value corresponding to the last pixel unit in each row of the target decoded pixel block and located on the same straight line is calculated, the average value is calculated, and the average pixel gray value sequence of the target decoded pixel block is output. 8.根据权利要求1所述的一种图像与图像信息融合的方法,其特征在于,在获取平均像素灰度值数列后,基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”的具体步骤包括如下:8. The method for fusion of image and image information according to claim 1, wherein after obtaining the average pixel gray value sequence, any pixel unit of the target decoding pixel block is decoded based on the gray value threshold approximation method The specific steps represented as "0" or "1" in ASCII code include the following: 读取目标解码像素块的平均像素灰度值数列,获取平均像素灰度值;Read the average pixel gray value sequence of the target decoded pixel block to obtain the average pixel gray value; 设置灰度值阈值
Figure FDA0002592689250000021
且设置二进制的“0”对应的灰度值数值不超过
Figure FDA0002592689250000022
在目标解码像素块上显示为黑色;设置二进制的“1”对应的灰度值数值不低于
Figure FDA0002592689250000023
在目标解码像素块上显示为白色。
Set the gray value threshold
Figure FDA0002592689250000021
And set the gray value value corresponding to binary "0" not to exceed
Figure FDA0002592689250000022
Displayed as black on the target decoded pixel block; the gray value corresponding to binary "1" is not lower than
Figure FDA0002592689250000023
Displayed in white on the target decoded pixel block.
9.一种图像与图像信息融合的系统,其特征在于,所述系统包括:9. A system for image and image information fusion, wherein the system comprises: 第一获取模块,用于获取待处理图片的采集图像,读取采集图像的EXIF信息,还用于检测已完成编码图像的ASCII码编码像素块;The first acquisition module is used to acquire the acquired image of the picture to be processed, read the EXIF information of the acquired image, and also be used to detect the ASCII code encoded pixel block of the encoded image; ASCII码转换模块,用于基于二进制针对读取的EXIF信息转化成为ASCII码;还用于基于灰度值阈值近似法将目标解码像素块的任一像素单元表示为ASCII码的“0”或“1”;The ASCII code conversion module is used to convert the read EXIF information into ASCII code based on binary code; it is also used to represent any pixel unit of the target decoded pixel block as "0" or "" of ASCII code based on the gray value threshold approximation method. 1"; 设置ASCII码的“0”对应的灰度值数值为0,设置ASCII码的“1”对应的灰度值数值为255;Set the gray value value corresponding to "0" of ASCII code to 0, and set the gray value value corresponding to "1" of ASCII code to 255; 数据写入模块,用于将采集图像的EXIF信息转换的ASCII码数据写入图像,以像素为单位,“0”写入为黑色像素,“1”写入为白色像素,将ASCII码数据按照“0”或“1”的写入表示依次写入采集图像,完成采集图像的初步编码;The data writing module is used to write the ASCII code data converted from the EXIF information of the collected image into the image, in pixel units, "0" is written as a black pixel, "1" is written as a white pixel, and the ASCII code data is written as The writing of "0" or "1" indicates that the captured images are written in sequence to complete the preliminary coding of the captured images; 数据保护模块,用于获取已编码的采集图像,检测对应的ASCII码编码像素块,分别进行编码像素块对应的行扩展与列扩展;还用于基于目标解码像素块,进行编码过程列扩展对应的列收缩;检测每行的任一像素的灰度值;The data protection module is used to obtain the coded captured image, detect the corresponding ASCII code coded pixel block, and respectively perform row expansion and column expansion corresponding to the coded pixel block; it is also used to decode the pixel block based on the target, and perform the column expansion corresponding to the encoding process. Column contraction of ; detect the gray value of any pixel in each row; 第二获取模块,用于获取ASCII码编码像素块的边境值,剔除ASCII码编码像素块的首行和末行,选取余下的编码像素块设置为目标解码像素块;The second acquisition module is used to obtain the border value of the ASCII code encoded pixel block, removes the first line and the last line of the ASCII code encoded pixel block, and selects the remaining encoded pixel blocks and is set as the target decoding pixel block; 第三获取模块,用于获取目标解码像素块每行的所有像素单元的灰度值,采用算术平均法计算并输出目标解码像素块的平均像素灰度值数列;The third acquisition module is used to acquire the grayscale values of all pixel units in each row of the target decoding pixel block, and calculate and output the average pixel grayscale value sequence of the target decoding pixel block by using the arithmetic mean method; 数据输出模块,用于输出已编码采集图像,还用于读取目标解码像素块转换后的ASCII码数据,进行明文转换,输出对应的编码图像的EXIF信息。The data output module is used to output the coded captured image, and also used to read the ASCII code data converted from the target decoding pixel block, perform plaintext conversion, and output the EXIF information of the corresponding coded image.
CN202010700084.5A 2020-07-20 2020-07-20 A method and system for image and image information fusion Pending CN111815727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010700084.5A CN111815727A (en) 2020-07-20 2020-07-20 A method and system for image and image information fusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010700084.5A CN111815727A (en) 2020-07-20 2020-07-20 A method and system for image and image information fusion

Publications (1)

Publication Number Publication Date
CN111815727A true CN111815727A (en) 2020-10-23

Family

ID=72864954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010700084.5A Pending CN111815727A (en) 2020-07-20 2020-07-20 A method and system for image and image information fusion

Country Status (1)

Country Link
CN (1) CN111815727A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118433393A (en) * 2024-07-05 2024-08-02 Tcl华星光电技术有限公司 Data encoding method and chip, data decoding method and chip, and display device
CN118675082A (en) * 2024-05-30 2024-09-20 南京邮电大学 Implementation method and system for ASCII artistic visual privacy protection and fall detection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040135889A1 (en) * 2002-08-07 2004-07-15 Takahiko Koizumi Image processing apparatus
CN1832556A (en) * 2004-12-17 2006-09-13 松下电器产业株式会社 Data recording method and device
CN107613159A (en) * 2017-10-12 2018-01-19 北京工业职业技术学院 Image time calibration method and system
CN109151427A (en) * 2017-06-28 2019-01-04 佳能株式会社 Information processing unit, information processing system, information processing method and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040135889A1 (en) * 2002-08-07 2004-07-15 Takahiko Koizumi Image processing apparatus
CN1832556A (en) * 2004-12-17 2006-09-13 松下电器产业株式会社 Data recording method and device
CN109151427A (en) * 2017-06-28 2019-01-04 佳能株式会社 Information processing unit, information processing system, information processing method and storage medium
CN107613159A (en) * 2017-10-12 2018-01-19 北京工业职业技术学院 Image time calibration method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118675082A (en) * 2024-05-30 2024-09-20 南京邮电大学 Implementation method and system for ASCII artistic visual privacy protection and fall detection
CN118675082B (en) * 2024-05-30 2025-09-09 南京邮电大学 Implementation method and system for ASCII artistic visual privacy protection and fall detection
CN118433393A (en) * 2024-07-05 2024-08-02 Tcl华星光电技术有限公司 Data encoding method and chip, data decoding method and chip, and display device

Similar Documents

Publication Publication Date Title
CN106254933B (en) Subtitle extraction method and device
US7950589B2 (en) Program, information storage medium, two-dimensional code generation system, image generation system and printed material
KR101668828B1 (en) Image watermarking
CN105741224B (en) Reversible Watermarking Algorithm Based on PVO and Adaptive Block Partitioning
WO2018095149A1 (en) Method and system for generating two-dimensional code having embedded visual image, and reading system
CN104778651A (en) Digital image authentication method based on super-pixels
CN111461070B (en) Text recognition method, device, electronic equipment and storage medium
CN113344826A (en) Image processing method, image processing device, electronic equipment and storage medium
CN101950405B (en) A watermarking method based on video content
CN111815727A (en) A method and system for image and image information fusion
CN109859090B (en) Reversible watermarking method and device based on human visual system
EP3050289B1 (en) Digital watermarks
CN111445374B (en) Watermark template generation method and device for embedding hidden digital watermark into image
CN114267029A (en) A lane line detection method, device, equipment and storage medium
CN115526282A (en) Watermark encryption method, watermark extraction method, device and storage medium
CN100525428C (en) Digital video signal parity field inditification and correction method
CN116977149A (en) A printing-resistant scanned digital watermark embedding and extraction method for text images
JP5884597B2 (en) Form image management system, form image management method, and program
JP5703898B2 (en) Form management system, form image management method, and program
CN102129678A (en) Image characteristic model establishment system, method and image processing system using system and method
JP2015060421A (en) Similar image search method, and similar image search device
CN116740746A (en) Text recognition method, text recognition device, computer equipment and storage medium
CN111127288B (en) Reversible image watermark processing method, device and computer-readable storage medium
JP4253265B2 (en) Shadow detection apparatus, shadow detection method and shadow detection program, image processing apparatus using shadow detection apparatus, image processing method using shadow detection method, and image processing program using shadow detection program
JP2005295458A (en) Information detecting apparatus, information embedding apparatus, image processing system, information detecting method, and information embedding method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201023

RJ01 Rejection of invention patent application after publication