CN111246249A - Image encoding method, encoding device, decoding method, decoding device and storage medium - Google Patents

Image encoding method, encoding device, decoding method, decoding device and storage medium Download PDF

Info

Publication number
CN111246249A
CN111246249A CN202010056161.8A CN202010056161A CN111246249A CN 111246249 A CN111246249 A CN 111246249A CN 202010056161 A CN202010056161 A CN 202010056161A CN 111246249 A CN111246249 A CN 111246249A
Authority
CN
China
Prior art keywords
data
image
color
calibration line
color calibration
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.)
Withdrawn
Application number
CN202010056161.8A
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.)
Jiangsu Timi Intelligent Technology Co Ltd
Original Assignee
Jiangsu Timi Intelligent 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 Jiangsu Timi Intelligent Technology Co Ltd filed Critical Jiangsu Timi Intelligent Technology Co Ltd
Priority to CN202010056161.8A priority Critical patent/CN111246249A/en
Publication of CN111246249A publication Critical patent/CN111246249A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides an image encoding method, an encoding device, a decoding method, a decoding device and a storage medium. The encoding method comprises the steps of converting data to be encoded into an RGB color value format by acquiring the data to be encoded; drawing an encoding area with each code element corresponding to a color value in a designated pixel area; the coding region is provided with a datum point, the datum point is used as a starting point, a transverse color calibration line and a longitudinal color calibration line are drawn, so that a coded image is output, image data are recoded, redundant information of the image data is removed, the recoded information occupies a smaller storage space, the new format file is small, quick in coding and decoding and small in file number, the bandwidth is greatly reduced in the network transmission process, and the coding and decoding speed is higher and more suitable for rendering of mobile equipment. The decoding method enables the information after recoding to be decoded according to a certain storage format only after being recorded once, and greatly improves the speed of coding and decoding.

Description

Image encoding method, encoding device, decoding method, decoding device and storage medium
Technical Field
The present invention belongs to the technical field of image processing, and in particular, to an image encoding method, an image encoding device, an image decoding method, an image decoding device, and a storage medium.
Background
Image coding, also called image compression, is a technique for representing an image or information included in an image with a small number of bits under a condition that a certain quality (a requirement of a signal-to-noise ratio or a subjective evaluation score) is satisfied. Wherein the transmitting end of the image coding system is essentially composed of two parts. Firstly, performing decorrelation processing on an original digital image subjected to high-precision analog-digital conversion to remove redundancy of information; the decorrelated signal is then encoded, i.e. re-encoded, according to certain allowable distortion requirements. Decorrelation processing is generally performed using linear prediction and orthogonal transformation; correspondingly, image coding schemes are also classified into two major categories, prediction coding and transform domain coding.
As the screen of the mobile communication terminal becomes larger, the image function is enhanced; the size of mobile communication terminals becomes smaller and the resolution tends to be high quality. Consequently, the number of colors that can be displayed per pixel also increases. User interfaces (UserInterface: UI) have evolved from single images to three-dimensional images or animations. As expansion of memory space for storing UI images is strongly required, new codecs for pictures are being actively researched.
For example, chinese patent application No. CN200610127973.7 discloses an encoding method, which includes: performing primary prediction on a current image to be coded to obtain a primary residual image and a primary motion vector; and performing secondary prediction on the primary residual image to obtain a secondary residual image and a secondary motion vector, and writing the secondary residual image, the secondary motion vector and the primary motion vector into a compressed code stream. The invention also discloses a decoding method, which comprises the following steps: decoding the compressed code stream to obtain a primary motion vector, a secondary motion vector and a secondary residual image; and performing motion compensation on the secondary residual image according to the secondary motion vector to obtain a primary residual image, and performing motion compensation on the primary residual image according to the primary motion vector to obtain a reconstructed image.
As another example, chinese patent application No. cn201010233134.x discloses an encoding method, comprising: receiving data to be transformed; performing first transformation on the data to be transformed to obtain first transformed data; performing second transformation on the data to be transformed to obtain second transformed data; determining an adjusting parameter according to the first transformed data and the second transformed data, and adjusting the first transformed data according to the adjusting parameter and the second transformed parameter; writing the adjustment parameters into a coding code stream; wherein the first transform and the second transform are transforms for different sized sub-blocks. The embodiment of the invention also discloses a coding device, a decoding method and a decoding device. The method can keep the numerical range of the image data after different transformations consistent, thereby truly reflecting the influence of the transformations on the data when the self-adaptive block transformation technology is applied, selecting the transformation with better effect and further improving the coding efficiency.
However, the above method has small output image data capacity and slow encoding and decoding, and cannot meet the real-time transmission requirement of large-capacity data.
Disclosure of Invention
1. Problems to be solved
The invention provides an image encoding method, an encoding device, a decoding method, a decoding device and a storage medium, aiming at the problems that the capacity of output image data is small, encoding and decoding are slow, and the real-time transmission requirement of large-capacity data cannot be met in the existing image encoding method. The encoding method comprises the steps of converting data to be encoded into an RGB color value format by acquiring the data to be encoded; drawing an encoding area with each code element corresponding to a color value in a designated pixel area; setting a reference point on the coding area, drawing a transverse and longitudinal color calibration line by taking the reference point as a starting point, thereby outputting a coded image, recoding image data, and removing redundant information of the image data, so that the recoded new format information occupies a smaller storage space, and the problem of large bandwidth occupied in internet transmission is solved; the new format has small files, quick coding, quick decoding and less files, not only greatly reduces the bandwidth in the network transmission process, but also has higher coding and decoding speed and is more suitable for rendering of mobile equipment.
2. Technical scheme
In order to solve the above problems, the present invention adopts the following technical solutions.
A first aspect of the present invention provides an image encoding method, including:
s102: acquiring data to be coded, and converting the data to be coded into an RGB color value format;
s104: drawing an encoding area with each code element corresponding to a color value in a designated pixel area;
s106: setting a reference point on the coding area, drawing a color calibration line in the horizontal and vertical directions with the reference point as a starting point, and outputting a coded image.
Preferably, the step S102 includes:
acquiring data to be encoded, and converting the data to be encoded into a hexadecimal character string;
determining a data segment by every two bits in the character string, and determining a data unit by every three data segments, wherein the data unit corresponds to a unique color value.
Preferably, the S104 step includes: within M X N pixel region, every X2Each pixel region is used as a code element, and each code element is filled with a color value corresponding to one data unit, thereby forming a representation
Figure BDA0002372906800000021
A coding region of each symbol.
Wherein X represents a pixel point; m represents the number of horizontal pixel points of the code element; and N represents the number of vertical pixel points of the code element.
Preferably, the step S106 includes:
constructing a transverse color calibration line by taking the vertex of the coding area as a reference point and according to upward adjacent pixels of the reference point; and constructing a longitudinal color calibration line according to the left adjacent pixels of the reference point, and outputting the coded image according to the transverse color calibration line and the longitudinal color calibration line.
A second aspect of the present invention provides an image encoding device comprising:
the format conversion module is used for acquiring data to be encoded and converting the data to be encoded into an RGB color value format;
the coding area drawing module is used for drawing the coding area in a specified pixel area by using each code element corresponding to one color value;
and the image output module is used for setting a reference point on the coding area, drawing a transverse and longitudinal color calibration line by taking the reference point as a starting point, and outputting a coded image.
A third aspect of the present invention provides an image decoding method, including:
s202: acquiring the output image data;
s204: searching a reference point of the output image, and turning and correcting the output image;
s206: color calibration is carried out on the code elements in the data area according to the transverse color calibration line and the longitudinal color calibration line;
s208: and analyzing the color of each code element in the data area, and converting the color value into output data according to a specific splitting rule.
Preferably, the step S206 includes:
taking the difference value between each pixel of the transverse color calibration line and the longitudinal color calibration line and a preset color as a calibration basis; and calibrating the color value of the convergent point pixel of each pixel point in the coding region in the transverse color calibration line and the longitudinal color calibration line.
Preferably, the step S208 includes:
in the color calibration post-encoding region, the colors in the symbols are read one by one in the order from left to right and from top to bottom, the RGB color values of each symbol are analyzed, and the output data is converted.
A fourth aspect of the present invention provides an image decoding apparatus comprising:
a data acquisition module for acquiring the output image data
A searching module for searching the reference point of the output image and then turning and correcting the output image
The calibration module is used for carrying out color calibration on the code elements in the data area according to the transverse color calibration line and the longitudinal color calibration line;
and the analyzing unit is used for analyzing the color of each code element in the data area and converting the color value into output data according to a specific splitting rule.
A fifth aspect of the invention provides a storage medium storing a computer program comprising program instructions that are when the method is described above.
3. Advantageous effects
Compared with the prior art, the invention has the beneficial effects that:
(1) the method comprises the steps of converting data to be coded into an RGB color value format by obtaining the data to be coded; drawing an encoding area with each code element corresponding to a color value in a designated pixel area; setting a reference point on the coding area, drawing a transverse and longitudinal color calibration line by taking the reference point as a starting point, thereby outputting a coded image, recoding image data, and removing redundant information of the image data, so that the recoded new format information occupies a smaller storage space, and the problem of large bandwidth occupied in internet transmission is solved; the new format has small files, quick coding, quick decoding and less files, not only greatly reduces the bandwidth in the network transmission process, but also has higher coding and decoding speed and is more suitable for rendering of mobile equipment;
(2) the decoding method provided by the invention enables the newly encoded new format information to be decoded according to a certain storage format after being recorded once, and does not need to be recorded and decoded one by one in a mode like the original format, so that the encoding and decoding speed is greatly improved;
(3) the invention segments the data to be coded, combines the data into a data unit by three segments, converts the data of each data unit into RGB color values, fills the code elements with the RGB colors, and expresses the data by the RGB colors of the code elements, and the data which can be expressed in the image with the same specification and size is far higher than the data which can be expressed by a two-dimensional code or a mode of directly displaying characters in the image, thereby improving the data capacity of the image.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flowchart illustrating an image encoding method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an image decoding method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an encoding apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram of a decoding apparatus according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating format conversion of data to be encoded according to an embodiment of the present invention;
FIG. 6 is a schematic drawing of a coding region according to an embodiment of the present invention;
FIG. 7 is a diagram of an encoded image according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby. It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
In the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection".
In particular implementations, the terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
Example 1
As shown in fig. 1, the present embodiment provides an image encoding method, including:
s102: acquiring data to be coded, and converting the data to be coded into an RGB color value format;
as shown in fig. 5, specifically, to-be-encoded data is obtained, and the to-be-encoded data is converted into a hexadecimal character string, where the to-be-encoded data may be picture information, such as formats of bmp, jpg, png, tif, gif, pcx, tga, exif, fpx, and the like, which is not limited herein.
In the embodiment, for example, the decimal number of the data to be encoded is "171195181", which is converted into "ABC 3B 5" in 16, and the determined color value is "green".
S104: drawing an encoding area with each code element corresponding to a color value in a designated pixel area;
specifically, as shown in fig. 6, within the M × N pixel region, every X2Each pixel region is used as a code element, and each code element is filled with a color value corresponding to one data unit, thereby forming a representation
Figure BDA0002372906800000061
A coding region of each symbol.
Wherein X represents a pixel point; m represents the number of horizontal pixel points of the code element; and N represents the number of vertical pixel points of the code element.
That is, when X is 1, a pixel is a symbol, and when X is 2, a rectangular region (4 pixels) having a length of 2 and a width of 2 is a symbol. The square area is used as a code element, and the logic is simpler to realize in image analysis.
S106: setting a reference point on the coding area, drawing a transverse and longitudinal color calibration line by taking the reference point as a starting point, and outputting a coded image;
specifically, as shown in fig. 7, a horizontal color calibration line is constructed by using the vertex of the coding region as a reference point and according to the upward adjacent pixels of the reference point; further, with two adjacent pixels with the reference point facing upward, each pixel draws a line to the right, the line having a length of M pixels, and the two lines are filled with two colors #000000, # FFFFFF, respectively, as the horizontal color calibration lines.
And constructing a longitudinal color calibration line according to the left adjacent pixels of the reference point, and outputting the coded image according to the transverse color calibration line and the longitudinal color calibration line. Furthermore, two pixels are adjacent to the reference point to the left, each pixel draws a line downwards, the length of the line is N pixels, and the two lines are respectively filled with two colors of #000000 and # FFFFFF to be used as a longitudinal color calibration line; finally, an encoded image of (M +2) × (N +2) pixels is output.
Example 2
As shown in fig. 2, the present embodiment provides an image decoding method, including:
s202: acquiring the output image data;
specifically, the output image data is the encoded image obtained by the method of embodiment 1.
S204: searching a reference point of the output image, and turning and correcting the output image;
specifically, a reference point of the image is found first, and then the image is turned and corrected according to the position of the reference point; ensuring that the reference point is at the left vertex of the image.
S206: color calibration is carried out on the code elements in the data area according to the transverse color calibration line and the longitudinal color calibration line;
specifically, the difference value between each pixel of the transverse color calibration line and the longitudinal color calibration line and a preset color is used as a calibration basis; and calibrating the color value of the convergent point pixel of each pixel point in the coding region in the transverse color calibration line and the longitudinal color calibration line. Furthermore, the difference value between each pixel of the transverse and longitudinal color calibration lines and the two colors of #000000 and # FFFFFF is used as a calibration basis to calibrate the color value of the convergent point pixel of each pixel point of the transverse and longitudinal color calibration lines in the coding area.
S208: and analyzing the color of each code element in the data area, and converting the color value into output data according to a specific splitting rule.
Specifically, in the color calibration post-encoding region, the colors in the symbols are read one by one in the order from left to right and from top to bottom, the RGB color values of each symbol are analyzed, and the character string data is converted and output.
Example 3
As shown in fig. 3, the present embodiment provides an image encoding device including:
the format conversion module 10 is configured to acquire data to be encoded, and convert the data to be encoded into an RGB color value format;
a code area drawing module 20, configured to draw a code area in a designated pixel area, where each symbol corresponds to a color value;
and the image output module 30 is used for setting a reference point on the coding area, drawing a transverse and longitudinal color calibration line by taking the reference point as a starting point, and outputting a coding image.
Example 4
As shown in fig. 4, the present embodiment provides an image decoding apparatus including:
a data acquisition module 60 for acquiring the output image data
A searching module 70 for searching the reference point of the output image and then turning and correcting the output image
A calibration module 80, configured to perform color calibration on the symbols in the data area according to the horizontal color calibration line and the vertical color calibration line;
and the analyzing unit 90 is configured to analyze a color of each symbol in the data region, and convert the color value into output data according to a specific splitting rule.
Example 5
The present embodiments provide a computer-readable storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of embodiment 1 and/or embodiment 2.
Specifically, the computer-readable storage medium may be an internal storage unit of the terminal according to the foregoing embodiment, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. An image encoding method, comprising:
s102: acquiring data to be coded, and converting the data to be coded into an RGB color value format;
s104: drawing an encoding area with each code element corresponding to a color value in a designated pixel area;
s106: setting a reference point on the coding area, drawing a color calibration line in the horizontal and vertical directions with the reference point as a starting point, and outputting a coded image.
2. The image decoding method according to claim 1, wherein the step S102 comprises:
acquiring data to be encoded, and converting the data to be encoded into a hexadecimal character string;
determining a data segment by every two bits in the character string, and determining a data unit by every three data segments, wherein the data unit corresponds to a unique color value.
3. The image decoding method according to claim 1, wherein the step S104 comprises: within M X N pixel region, every X2Each pixel region is used as a code element, and each code element is filled with a color value corresponding to one data unit, thereby forming a representation
Figure FDA0002372906790000011
A coding region of each symbol.
Wherein X represents a pixel point; m represents the number of horizontal pixel points of the code element; and N represents the number of vertical pixel points of the code element.
4. The image decoding method according to claim 3, wherein the step S106 comprises:
constructing a transverse color calibration line by taking the vertex of the coding area as a reference point and according to upward adjacent pixels of the reference point; and constructing a longitudinal color calibration line according to the left adjacent pixels of the reference point, and outputting the coded image according to the transverse color calibration line and the longitudinal color calibration line.
5. An image encoding device characterized by comprising:
the format conversion module is used for acquiring data to be encoded and converting the data to be encoded into an RGB color value format;
the coding area drawing module is used for drawing the coding area in a specified pixel area by using each code element corresponding to one color value;
and the image output module is used for setting a reference point on the coding area, drawing a transverse and longitudinal color calibration line by taking the reference point as a starting point, and outputting a coded image.
6. An image decoding method, characterized in that
S202: acquiring the output image data;
s204: searching a reference point of the output image, and turning and correcting the output image;
s206: color calibration is carried out on the code elements in the data area according to the transverse color calibration line and the longitudinal color calibration line;
s208: and analyzing the color of each code element in the data area, and converting the color value into output data according to a specific splitting rule.
7. The image decoding method according to claim 6, wherein the step S206 comprises:
taking the difference value between each pixel of the transverse color calibration line and the longitudinal color calibration line and a preset color as a calibration basis; and calibrating the color value of the convergent point pixel of each pixel point in the coding region in the transverse color calibration line and the longitudinal color calibration line.
8. The image decoding method according to claim 7, wherein the step S208 comprises:
in the color calibration post-encoding region, the colors in the symbols are read one by one in the order from left to right and from top to bottom, the RGB color values of each symbol are analyzed, and the output data is converted.
9. An image decoding apparatus, comprising:
a data acquisition module for acquiring the output image data
A searching module for searching the reference point of the output image and then turning and correcting the output image
The calibration module is used for carrying out color calibration on the code elements in the data area according to the transverse color calibration line and the longitudinal color calibration line;
and the analyzing unit is used for analyzing the color of each code element in the data area and converting the color value into output data according to a specific splitting rule.
10. A storage medium, characterized in that the storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-4 and/or 6-8.
CN202010056161.8A 2020-01-18 2020-01-18 Image encoding method, encoding device, decoding method, decoding device and storage medium Withdrawn CN111246249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010056161.8A CN111246249A (en) 2020-01-18 2020-01-18 Image encoding method, encoding device, decoding method, decoding device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010056161.8A CN111246249A (en) 2020-01-18 2020-01-18 Image encoding method, encoding device, decoding method, decoding device and storage medium

Publications (1)

Publication Number Publication Date
CN111246249A true CN111246249A (en) 2020-06-05

Family

ID=70864091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010056161.8A Withdrawn CN111246249A (en) 2020-01-18 2020-01-18 Image encoding method, encoding device, decoding method, decoding device and storage medium

Country Status (1)

Country Link
CN (1) CN111246249A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258375A (en) * 2020-10-20 2021-01-22 北京石油化工学院 Method and system for filling specific text information into associated image boundary
CN112402958A (en) * 2020-10-27 2021-02-26 腾讯科技(深圳)有限公司 Image processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045471A (en) * 2009-10-09 2011-05-04 夏普株式会社 Captured image processing system and image output method
CN102131026A (en) * 2010-01-12 2011-07-20 兄弟工业株式会社 Image processing device and image processing method
US20170150161A1 (en) * 2013-09-03 2017-05-25 Sony Corporation Decoding device and decoding method, encoding device, and encoding method
CN110166958A (en) * 2019-05-15 2019-08-23 青岛农业大学 A method of big data communication is carried out using Beidou short message
CN111147854A (en) * 2019-12-25 2020-05-12 江苏提米智能科技有限公司 Color-based large-capacity data image coding and decoding method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045471A (en) * 2009-10-09 2011-05-04 夏普株式会社 Captured image processing system and image output method
CN102131026A (en) * 2010-01-12 2011-07-20 兄弟工业株式会社 Image processing device and image processing method
US20170150161A1 (en) * 2013-09-03 2017-05-25 Sony Corporation Decoding device and decoding method, encoding device, and encoding method
CN110166958A (en) * 2019-05-15 2019-08-23 青岛农业大学 A method of big data communication is carried out using Beidou short message
CN111147854A (en) * 2019-12-25 2020-05-12 江苏提米智能科技有限公司 Color-based large-capacity data image coding and decoding method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258375A (en) * 2020-10-20 2021-01-22 北京石油化工学院 Method and system for filling specific text information into associated image boundary
CN112258375B (en) * 2020-10-20 2023-09-01 北京石油化工学院 Method and system for filling specific text information into associated image boundary
CN112402958A (en) * 2020-10-27 2021-02-26 腾讯科技(深圳)有限公司 Image processing method, device and storage medium

Similar Documents

Publication Publication Date Title
US20200007867A1 (en) Compression with multi-level encoding
JP2968582B2 (en) Method and apparatus for processing digital data
US8654154B2 (en) Method for processing a digital image
US6985630B2 (en) Image processing apparatus and method, program and storage medium
JP5722761B2 (en) Video compression apparatus, image processing apparatus, video compression method, image processing method, and data structure of video compression file
CN101150645A (en) An image processing method and image processing device
CN114641998A (en) Method and apparatus for machine video encoding
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
CN111246249A (en) Image encoding method, encoding device, decoding method, decoding device and storage medium
US8306346B2 (en) Static image compression method and non-transitory computer readable medium having a file with a data structure
CN115794666B (en) Method, device, equipment and storage medium for determining memory address of texel
KR101685932B1 (en) high performance image file and apparatus for generating the same
JPH08205144A (en) Image encoding device
JP2008147880A (en) Image compression apparatus and method, and its program
JP2003189109A (en) Image processor and image processing method, and computer program
CN101489018A (en) Static image compression method and computer readable storage apparatus
JP4739443B2 (en) Method and apparatus for processing digital images
US20110103705A1 (en) Image encoding method and apparatus, and image decoding method and apparatus
GB2435728A (en) A method for choosing a compression algorithm
US8244071B2 (en) Non-dyadic spatial scalable wavelet transform
JP2001008231A (en) Method and system for transmitting multiple viewpoint image of object in three-dimensional space
JP2663922B2 (en) Video encoding device
KR20040054115A (en) Thumbnail image generation and browsing method for mobile communication device
JP7008425B2 (en) Image processing device, image processing method, and program
CN112802134A (en) Coding method and device of three-dimensional model and terminal

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200605

WW01 Invention patent application withdrawn after publication