CN111815727A - Method and system for fusing image and image information - Google Patents

Method and system for fusing image and image information 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 block
pixel
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; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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

Method and system for fusing image and image information
Technical Field
The invention relates to the field of image processing, in particular to a method and a system for fusing image and image information.
Background
With the rise of the computer industry, the technology of many industries is advanced and revolutionized. For example, in the process of increasing demand for computer technology, people are also developing image processing technology, and developing more application fields for image processing technology, such as monitoring, video images, remote sensing and biomedical images. The images carry the factory parameter attribute values in the generation process. In order to effectively and organically fuse an image and image information corresponding to the image, the existing method is to superimpose a watermark and characters on the image, and OSD is widely applied in a special image processor as a mature technology.
However, the pictures formed by the OSD technology through superposition occupy more image pixels in the actual process, and when a user acquires the pictures or videos, the user does not want to present the related information of the digital device in a watermark mode on the pictures, and the superposed characters also influence the visual sense of the user or subsequent image processing.
Disclosure of Invention
The invention provides a method and a system for fusing image and image information, aiming at the problems in the prior art, the invention effectively and stably records the data information of the acquired image by encoding and decoding the acquired image, and the result of the encoding identification is small in image identification, does not influence the visual experience of a user, and has remarkable effect.
The invention provides a method for fusing image and image information, which comprises the following steps:
image coding:
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 EXIF information of the collected image into the image, writing '0' into black pixels and '1' into white pixels by taking the pixels as units, and sequentially writing the ASCII code data into the collected image according to the writing expression of '0' or '1', thereby finishing the primary encoding of the collected 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;
and (3) image decoding:
detecting an ASCII code coding pixel block of a finished coded image;
acquiring border values of the ASCII code pixel blocks, removing the first line and the last line of the ASCII code pixel blocks, and selecting the remaining code pixel blocks as target decoding pixel blocks;
based on the target decoding pixel block, performing column contraction corresponding to column expansion in the encoding process; detecting the gray value of any pixel of each row;
acquiring gray values of all pixel units of each row of the target decoding pixel block, and calculating and outputting an average pixel gray value array of the target decoding pixel block by adopting an arithmetic mean method;
acquiring an output average pixel gray value array, and representing any pixel unit of a target decoding pixel block as '0' or '1' of an ASCII code based on a gray value threshold approximation method;
the converted ASCII code data of the target decoding pixel block is read, plaintext conversion is performed, and EXIF information of the corresponding encoded image is output.
As a further optimization of the above scheme, the row extension and the column extension corresponding to the coding pixel block are: copying the coding pixel block into alpha lines for line expansion; for column expansion, the block of coded pixels is duplicated into β columns.
As a further optimization of the above scheme, the row extension and the column extension corresponding to the coding pixel block are: for line expansion, copying the coding pixel block into 4 lines; for column expansion, the copy encoded pixel block is 2 columns.
As a further optimization of the above scheme, the column extension corresponding to the coding pixel block specifically includes the following steps:
acquiring an ASCII code coding pixel block corresponding to an acquired image;
reading the last unit pixel of the ASCII code coding pixel block, setting a mark column at the lower position of the unit pixel, and carrying out ASCII code coding pixel block axial symmetry transformation based on the mark column.
As a further optimization of the above scheme, for the black-and-white picture, the binary "0" is expressed by using the gray-scale value 0, and the binary "1" is expressed by using the gray-scale value 255.
As a further optimization of the above scheme, for a color picture, a binary "0" is expressed by using a black pixel having a (R, G, B) value of (0, 0, 0), and a binary "1" is expressed by using a white pixel having a (R, G, B) value of (255, 255, 255).
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:
acquiring gray values of all pixel units of each line of a target decoding pixel block;
reading the gray value corresponding to the pixel unit which is the first pixel unit in each line of the target decoding pixel block and is positioned on the same straight line, and solving the average value as the first average pixel gray value of the target decoding pixel block;
and repeating the steps until the gray value corresponding to the last pixel unit positioned on the same straight line in each row of the target decoding pixel block is calculated, calculating the average value, and outputting the average pixel gray value sequence of the target decoding pixel block.
As a further optimization of the above scheme, after obtaining the average pixel gray value sequence, the specific steps of representing 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:
reading the average pixel gray value array of the target decoding pixel block to obtain the average pixel gray value;
setting a grey value threshold
Figure BDA0002592689260000031
And setting the gray value corresponding to binary '0' not to exceed
Figure BDA0002592689260000032
Black on the target decoded pixel block; setting the gray value corresponding to binary '1' not lower than
Figure BDA0002592689260000033
Displayed as white on the target decoded pixel block.
The invention also provides a system for fusing the image and the image information, which comprises the following steps:
the first acquisition module is used for acquiring a collected image of a picture to be processed, reading EXIF information of the collected image and detecting an ASCII code coding pixel block of the finished coded image;
an ASCII code conversion module for converting the read EXIF information into ASCII code based on binary; also used for representing 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;
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;
the data writing module is used for writing the ASCII code data converted from the EXIF information of the collected image into the image, writing '0' into black pixels and '1' into white pixels by taking the pixels as units, and sequentially writing the ASCII code data into the collected image according to the writing expression of '0' or '1', so as to finish the primary encoding of the collected image;
the data protection module is used for acquiring the coded acquired image, detecting a corresponding ASCII code coding pixel block and respectively performing line expansion and column expansion corresponding to the coding pixel block; the decoding device is also used for carrying out column contraction corresponding to column expansion in the encoding process based on the target decoding pixel block; detecting the gray value of any pixel of each row;
the second acquisition module is used for acquiring the border value of the ASCII code pixel block, eliminating the first line and the last line of the ASCII code pixel block, and selecting the rest code pixel blocks as target decoding pixel blocks;
the third acquisition module is used for acquiring the gray values of all pixel units in each row of the target decoding pixel block, and calculating and outputting the average pixel gray value number sequence of the target decoding pixel block by adopting an arithmetic mean method;
and the data output module is used for outputting the coded acquired image, reading the ASCII code data converted by the target decoding pixel block, performing plaintext conversion and outputting EXIF information of the corresponding coded image.
By adopting the technical scheme, compared with the prior art, the method and the system for fusing the image and the image information have the following technical effects:
1. the invention relates to a method for fusing image and image information, which is characterized in that aiming at a collected image, plaintext data information is acquired and converted into ASCII (American standard code for information interchange) code data, a pixel is taken as a unit, 0 'of the ASCII code data is written into a black pixel, 1' of the ASCII code data is written into a white pixel, and the image is coded and marked with data; the invention effectively fuses the image and the image plaintext data based on the data coding and decoding process of the collected image, and is convenient for storing and memorizing the information of the image.
2. According to the method for fusing the image and the image information, the encoding and decoding operations of the image are carried out by using the pixels as basic operation units, so that the image mark after the encoding is finished occupies a small total area of the image, the visual experience of a user on the image content marked by the pixels is not influenced, and the practicability is good.
3. According to the method for fusing the image and the image information, the original coding pixel image is subjected to row and column expansion in the processing process, the defect that coding information is interfered to cause errors in subsequent decoding due to possible pixel gray value change or image local cutting in the actual processing process of the image is effectively considered, and the added expansion sequence effectively ensures the robustness of image coding and decoding operation and is beneficial to the fault tolerance of a user on image decoding processing in the later period.
Drawings
FIG. 1 is a schematic diagram of an image encoding process of a method for fusing image information and image information according to the present invention;
FIG. 2 is a schematic diagram illustrating an image decoding process of a method for fusing image information according to the present invention;
FIG. 3 is a schematic diagram of binary pixels of a method for fusing image information according to the present invention;
FIG. 4 is a schematic diagram of another binary pixel of a method for fusing image information according to the present invention;
FIG. 5 is a schematic diagram of another binary pixel of a method for fusing image information according to the present invention;
FIG. 6 is a diagram of an example of a method for fusing image information according to the present invention;
fig. 7 is a block diagram of a system for fusing an image and image information according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As shown in fig. 1 to 7, an embodiment of the present invention provides a method for fusing an image and image information, including the following steps:
image coding:
step1, acquiring an acquired image of a picture to be processed, and reading EXIF information of the acquired image; specifically, the acquisition terminal of the embodiment of the invention is an electronic terminal device capable of acquiring and storing images, and can be a mobile phone, a computer, a tablet or other related electronic devices;
step2, converting the read EXIF information into ASCII code based on binary system, setting a gray value corresponding to '0' of the ASCII code to be 0, and setting a gray value corresponding to '1' of the ASCII code to be 255; it should be particularly noted that since EXIF information in plaintext has diversity, such as characters, numbers, punctuation marks, and other forms, and cannot be directly recognized by a machine, ASCII codes which are easily recognized by the machine are selected for encoding and converting;
step3, writing the ASCII code data converted from the EXIF information of the collected image into the image, writing '0' into black pixels and '1' into white pixels by taking the pixels as units, and sequentially writing the ASCII code data into the collected image according to the writing expression of '0' or '1', thereby finishing the primary encoding of the collected image;
specifically, for black and white pictures, the binary '0' is expressed by adopting a gray value 0, and the binary '1' is expressed by adopting a gray value 255; for a color picture, "0" of a binary is expressed by using black pixels having (R, G, B) values of (0, 0, 0), and "1" of a binary is expressed by using white pixels having (R, G, B) values of (255, 255, 255); if the binary 01010101 is expressed, eight pixels are needed to express the expression effect as shown in the figure:
step4, acquiring the preliminarily 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;
step41, the column expansion corresponding to the coding pixel block further comprises the following steps:
acquiring an ASCII code coding pixel block corresponding to an acquired image;
reading the last unit pixel of the ASCII code coding pixel block, setting a mark column at the lower position of the unit pixel, and carrying out ASCII code coding pixel block axial symmetry transformation based on the mark column.
Specifically, the row extension and the column extension corresponding to the coding pixel block are as follows: copying the coding pixel block into alpha lines for line expansion; copying the coding pixel blocks into beta columns aiming at column expansion; preferably, the row extension and the column extension corresponding to the coding pixel block of the present embodiment are: for line expansion, copying the coding pixel block into 4 lines; for column expansion, the copy encoded pixel block is 2 columns.
More specifically, after an image is encoded, other operations such as format conversion and compression of the image may exist at a later stage, processing algorithms such as smoothing and filtering involved in the operation process may change gray values of pixels of the image, and encoding information of the image may be interfered by other normal image data, so that pixels used for expressing binary values in the image are expanded; in this embodiment, it is preferable to set the horizontal expansion to be two times, and the vertical expansion to be four times, as expressed by 01010101 in binary system as shown in the figure:
in the actual image coding, the first four rows of the image are sacrificed, specific columns of the first four rows are used for expressing additional information, when the time information is expressed by 59 minutes and 59 seconds at 8 points 1 month 1 day 1 year 2020, the data string 20200101085959 is expressed by using ASCII code, one number is expressed by 8 bits, and 112 bits are used in total, and 4 rows and 224 columns of pixels are occupied in the image;
based on the extended sequence added in the encoding process, the defect that the encoding information is interfered and the subsequent decoding is wrong due to the change of the pixel gray value possibly generated in the actual processing process of the image is effectively considered, and the added extended sequence effectively ensures the robustness of the image encoding and decoding operation and is beneficial to the processing fault tolerance of the image in the later period of a user;
in this embodiment, it is preferable to set the horizontal expansion to be twice as large as the line expansion of the encoded image, and in the actual operation process, considering that a user may have an marginalization cutting process to destroy edge pixels of the first region of the encoded image, when performing the line expansion, a mark column is inserted, and the reverse order copy of the line expansion is performed after the mark column, as shown in the figure, this embodiment is preferably set to insert three black columns as the mark column after the first round of line expansion, that is, 4 lines and (448+3) columns of pixels are set on the original basis, so that the cutting of the edge pixels by the user can be effectively avoided, and the possibility of accidents occurring in the image encoding is further enhanced;
and (3) image decoding:
step5, detecting an ASCII code pixel block of the finished coded image;
step6, acquiring border values of the ASCII code pixel blocks, eliminating the first line and the last line of the ASCII code pixel blocks, and selecting the remaining code pixel blocks as target decoding pixel blocks;
specifically, in the pixel decoding process of this embodiment, first, the pixels in the rows and columns of the ASCII code encoded pixel block are obtained; extracting effective line pixels by a screening algorithm, wherein the uppermost line is an image edge, and the lowermost line is adjacent to the actual image content, so that the lines in the two situations are the lines which are most susceptible to influence in image processing, and have no reference property of actual image decoding, so that the downward gamma line from the head line and the upward gamma line from the tail line of an ASCII code coding pixel block are eliminated, in the embodiment, 1 line is preferably eliminated, the actually adopted sample pixels are the 2 nd line and the 3 rd line, then traversing is carried out on the ASCII code coding pixel block, and after a mark column is obtained, the right end of the mark column is subjected to reverse sequence arrangement and then is contracted to obtain the actual pixel code of the image;
more specifically, in this embodiment, a reverse process of encoding an image is performed, that is, an effective sequence is read first, then a column multiple of the effective sequence is contracted, and finally a gray value of an actual effective sequence is converted to generate corresponding binary data;
in the embodiment, the gray scale minimum value 0 and the gray scale maximum value 255 are used for coding, and after a series of image processing such as denoising and compression are carried out, the gray scale value is effectively ensured not to be completely assimilated by the peripheral pixels of the image; in the actual decoding process, the gray threshold value can be amplified, so that the slight change of the pixel gray value in the image processing process can be effectively coped with;
step7, based on the target decoding pixel block, performing column contraction corresponding to column expansion in the encoding process; detecting the gray value of any pixel of each row; specifically, since the image has undergone column expansion in the encoding process, the corresponding ASCII code is also changed by the column expansion, and therefore, in the decoding process, the column expansion is subjected to inverse process transformation to obtain an actual effective ASCII code;
step8, acquiring the gray values of all pixel units of each line of the target decoding pixel block, and calculating and outputting the average pixel gray value number sequence of the target decoding pixel block by adopting an arithmetic mean method;
specifically, the average pixel gray value sequence of any pixel unit of the target decoding pixel block is specifically calculated as:
step81, acquiring the gray values of all pixel units of each line of the target decoding pixel block;
step82, reading the gray value corresponding to the pixel unit which is the first pixel unit in each line of the target decoding pixel block and is positioned on the same straight line, and solving the average value as the first average pixel gray value of the target decoding pixel block;
and step83, repeating the steps until the gray value corresponding to the last pixel unit on the same straight line of each row of the target decoding pixel block is calculated, calculating the average value, and outputting the average pixel gray value sequence of the target decoding pixel block.
Step9, acquiring the output average pixel gray value sequence, and representing any pixel unit of the target decoding pixel block as '0' or '1' of the ASCII code based on a gray value threshold approximation method;
specifically, after obtaining the average pixel gray value sequence, the specific steps of representing 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, reading the average pixel gray value number sequence of the target decoding pixel block to obtain the average pixel gray value;
step92. set Gray value threshold
Figure BDA0002592689260000071
And setting the gray value corresponding to binary '0' not to exceed
Figure BDA0002592689260000072
Black on the target decoded pixel block; setting the gray value corresponding to binary '1' not lower than
Figure BDA0002592689260000073
Displayed as white on the target decoded pixel block.
Step10, reading the converted ASCII code data of the target decoding pixel block, performing plaintext conversion, and outputting EXIF information of the corresponding encoded image.
Based on the method for fusing the image and the image information, provided by the embodiment of the invention, the marking and remarking of the image can be completed by carrying out pixel coding on the image; then, by detecting whether any image has an ASCII code pixel block, the pixel reading and decoding of the image can be carried out; aiming at the coding operation of any image, the invention can effectively record the physical information of the image and avoid the loss of other identification information to cause the loss of a user; the pixels are adopted as units, so that the sensory experience of a user on the image content marked by the pixels is not influenced; meanwhile, the coding is carried out, the subsequent processing operation of the user on the image is effectively considered, soft backup and destructive protection of the identification information are carried out in advance, effective information storage of the image is carried out, and the effect is remarkable.
The embodiment of the invention also provides a system for fusing the image and the image information, which comprises the following steps:
the first acquisition module 10 is configured to acquire a captured image of a to-be-processed picture, read EXIF information of the captured image, and detect an ASCII code encoding pixel block of a completed encoded image;
an ASCII code conversion module 20 for converting the EXIF information read for the binary into ASCII code; also used for representing 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;
the data writing module 30 is used for writing the ASCII code data converted from the EXIF information of the collected image into the image, writing '0' into black pixels and '1' into white pixels by taking the pixels as units, and sequentially writing the ASCII code data into the collected image according to the writing expression of '0' or '1', thereby completing the encoding of the collected image;
the data protection module 40 is configured to acquire a coded acquired image, detect a corresponding ASCII code coding pixel block, and perform line expansion and column expansion corresponding to the coding pixel block respectively; the decoding device is also used for carrying out column contraction corresponding to column expansion in the encoding process based on the target decoding pixel block; detecting the gray value of any pixel of each row;
the second obtaining module 50 is configured to obtain a boundary value of the ASCII code pixel block, remove a first line and a last line of the ASCII code pixel block, and select the remaining code pixel block as a target decoding pixel block;
a third obtaining module 60, configured to obtain gray values of all pixel units in each row of the target decoding pixel block, and calculate and output an average pixel gray value sequence of the target decoding pixel block by using an arithmetic mean method;
and a data output module 70 for reading the ASCII code data after conversion of the target decoding pixel block, performing plaintext conversion, and outputting EXIF information of the corresponding encoded image.
In the embodiment of the invention, a user collects any image based on the first acquisition module 10 and reads EXIF information of the collected image; the image is preprocessed by the ASCII code conversion module 20: converting the read EXIF information into ASCII code based on binary, writing the EXIF information-converted ASCII code data of the collected image into the image via the data writing module 30, writing '0' into black pixels and '1' into white pixels in units of pixels, and completing the preliminary encoding of the image; then, aiming at the processed image of the primary coding, a data protection module 40 is adopted to respectively carry out row expansion and column expansion of the primary coding pixel block so as to generate a coding image with self protection;
when a user carries out decoding operation, detecting a coded image, rejecting the first line and the last line of an ASCII code coding pixel block based on the second acquisition module 50, and selecting the rest coding pixel block as a target decoding pixel block; the average pixel gray level sequence of the target decoded pixel block is calculated and outputted by the third acquiring module 60, then the plaintext information of the image is acquired by the ASCII code converting module 20 and the data writing module 30, and the EXIF information of the corresponding encoded image is outputted by the data outputting module 70.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (9)

1. A method for fusing image and image information is characterized by comprising the following steps:
image coding:
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 EXIF information of the collected image into the image, writing '0' into black pixels and '1' into white pixels by taking the pixels as units, and sequentially writing the ASCII code data into the collected image according to the writing expression of '0' or '1', thereby finishing the primary encoding of the collected 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;
and (3) image decoding:
detecting an ASCII code coding pixel block of a finished coded image;
acquiring border values of the ASCII code pixel blocks, removing the first line and the last line of the ASCII code pixel blocks, and selecting the remaining code pixel blocks as target decoding pixel blocks;
based on the target decoding pixel block, performing column contraction corresponding to column expansion in the encoding process; detecting the gray value of any pixel of each row;
acquiring gray values of all pixel units of each row of the target decoding pixel block, and calculating and outputting an average pixel gray value array of the target decoding pixel block by adopting an arithmetic mean method;
acquiring an output average pixel gray value array, and representing any pixel unit of a target decoding pixel block as '0' or '1' of an ASCII code based on a gray value threshold approximation method;
the converted ASCII code data of the target decoding pixel block is read, plaintext conversion is performed, and EXIF information of the corresponding encoded image is output.
2. An image and image information fusion method according to claim 1, characterized in that the row extension and the column extension corresponding to the coding pixel block are: copying the coding pixel block into alpha lines for line expansion; for column expansion, the block of coded pixels is duplicated into β columns.
3. An image and image information fusion method according to claim 2, characterized in that the row extension and the column extension corresponding to the coding pixel block are: for line expansion, copying the coding pixel block into 4 lines; for column expansion, the copy encoded pixel block is 2 columns.
4. An image and image information fusion method according to claim 1, wherein the column expansion corresponding to the coding pixel block further comprises the following steps:
acquiring an ASCII code coding pixel block corresponding to an acquired image;
reading the last unit pixel of the ASCII code coding pixel block, setting a mark column at the lower position of the unit pixel, and carrying out ASCII code coding pixel block axial symmetry transformation based on the mark column.
5. An image and image information fusion method according to claim 1, characterized in that, for black and white pictures, the binary "0" is expressed by using the gray-scale value 0, and the binary "1" is expressed by using the gray-scale value 255.
6. An image and image information fusion method according to claim 1, characterized in that for color pictures, the binary "0" is expressed by black pixels with (R, G, B) value of (0, 0, 0), and the binary "1" is expressed by white pixels with (R, G, B) value of (255, 255, 255).
7. The method 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:
acquiring gray values of all pixel units of each line of a target decoding pixel block;
reading the gray value corresponding to the pixel unit which is the first pixel unit in each line of the target decoding pixel block and is positioned on the same straight line, and solving the average value as the first average pixel gray value of the target decoding pixel block;
and repeating the steps until the gray value corresponding to the last pixel unit positioned on the same straight line in each row of the target decoding pixel block is calculated, calculating the average value, and outputting the average pixel gray value sequence of the target decoding pixel block.
8. The method of claim 1, wherein after obtaining the average pixel gray value sequence, the specific step of representing 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 comprises the following steps:
reading the average pixel gray value array of the target decoding pixel block to obtain the average pixel gray value;
setting a grey value threshold
Figure FDA0002592689250000021
And setting the gray value corresponding to binary '0' not to exceed
Figure FDA0002592689250000022
Black on the target decoded pixel block; setting the gray value corresponding to binary '1' not lower than
Figure FDA0002592689250000023
Displayed as white on the target decoded pixel block.
9. A system for fusing an image with image information, the system comprising:
the first acquisition module is used for acquiring a collected image of a picture to be processed, reading EXIF information of the collected image and detecting an ASCII code coding pixel block of the finished coded image;
an ASCII code conversion module for converting the read EXIF information into ASCII code based on binary; also used for representing 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;
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;
the data writing module is used for writing the ASCII code data converted from the EXIF information of the collected image into the image, writing '0' into black pixels and '1' into white pixels by taking the pixels as units, and sequentially writing the ASCII code data into the collected image according to the writing expression of '0' or '1', so as to finish the primary encoding of the collected image;
the data protection module is used for acquiring the coded acquired image, detecting a corresponding ASCII code coding pixel block and respectively performing line expansion and column expansion corresponding to the coding pixel block; the decoding device is also used for carrying out column contraction corresponding to column expansion in the encoding process based on the target decoding pixel block; detecting the gray value of any pixel of each row;
the second acquisition module is used for acquiring the border value of the ASCII code pixel block, eliminating the first line and the last line of the ASCII code pixel block, and selecting the rest code pixel blocks as target decoding pixel blocks;
the third acquisition module is used for acquiring the gray values of all pixel units in each row of the target decoding pixel block, and calculating and outputting the average pixel gray value number sequence of the target decoding pixel block by adopting an arithmetic mean method;
and the data output module is used for outputting the coded acquired image, reading the ASCII code data converted by the target decoding pixel block, performing plaintext conversion and outputting EXIF information of the corresponding coded image.
CN202010700084.5A 2020-07-20 2020-07-20 Method and system for fusing image and image information Pending CN111815727A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 Method and system for fusing image and image information

Country Status (1)

Country Link
CN (1) CN111815727A (en)

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 temporal 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 temporal calibration method and system

Similar Documents

Publication Publication Date Title
JP3953501B1 (en) Program, information storage medium, two-dimensional code generation system, image generation system, and two-dimensional code
CN109344676B (en) Automatic induction triggering method and system based on Hash algorithm
EP2410727B1 (en) Marker generation program, restoration program, marker generation device, restoration device, and marker generation method
JP6230355B2 (en) Article management system and method
JP6061075B2 (en) Two-dimensional code, two-dimensional code generation method, and two-dimensional code reading method
EP3050289B1 (en) Digital watermarks
CN109859090B (en) Reversible watermarking method and device based on human visual system
CN102224727A (en) Image processing apparatus, image processing method and program
CN108737797B (en) White balance processing method and device and electronic equipment
CN111815727A (en) Method and system for fusing image and image information
JP4335229B2 (en) QR code recognition device, QR code recognition device control method, QR code recognition device control program, and computer-readable recording medium recording the same
JP2008113258A (en) Image generating device, image processing apparatus, and program
US9002135B2 (en) Form image management system and form image management method
JP2012208729A (en) Form managing system, form image managing method, and program
JP4232676B2 (en) Information detection apparatus, image processing system, and information detection method
JP6352875B2 (en) Marker generation method, marker decoding method, marker decoding device, and marker reading device
CN109274858B (en) Color separation image restoration method
CN108108794B (en) Two-dimensional code image hiding-based visual information enhancement method and system
JP2006165818A (en) Alteration detecting device, watermark image outputting device, watermark image inputting device, watermark image outputting method and watermark image inputting method
CN114363622B (en) Reversible data steganography method and system based on pixel correlation prediction
CN110853061B (en) City management video processing system and working method
JP4394597B2 (en) Raw image data size automatic recognition method and apparatus
JP4973316B2 (en) Image processing apparatus and program
JP4625406B2 (en) Information embedding device, information extracting device, information embedding method, information extracting method, information embedding program, information extracting program, and information storage medium
JP6801741B2 (en) Information processing equipment and information processing programs

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201023