CN106355542A - Method for attaching data to image and method for analyzing attached data in image - Google Patents

Method for attaching data to image and method for analyzing attached data in image Download PDF

Info

Publication number
CN106355542A
CN106355542A CN201510410237.1A CN201510410237A CN106355542A CN 106355542 A CN106355542 A CN 106355542A CN 201510410237 A CN201510410237 A CN 201510410237A CN 106355542 A CN106355542 A CN 106355542A
Authority
CN
China
Prior art keywords
data
byte
value
presetted pixel
pixel
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.)
Granted
Application number
CN201510410237.1A
Other languages
Chinese (zh)
Other versions
CN106355542B (en
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201510410237.1A priority Critical patent/CN106355542B/en
Publication of CN106355542A publication Critical patent/CN106355542A/en
Application granted granted Critical
Publication of CN106355542B publication Critical patent/CN106355542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention is applicable to the field of image processing, and provides a method for attaching data to an image and a method for analyzing the attached data in the image. The method for attaching the data to the image includes the steps: determining whether the attached data to be added exist or not, and determining whether a preset pixel without bit data added at preset bits remains in the image or not if the attached data to be added exist; acquiring the bit data from the attached data to be added in binary representation if the preset pixels remain, and replacing the preset bits of the remaining preset pixel by the acquired bit data. The attached data can be added without affecting display effects of original images.

Description

The method of the attached data in the method for attached data and parsing image in the picture
Technical field
The invention belongs to image processing field, the method for more particularly, to a kind of attached data in the picture and parsing The method of the attached data in image.
Background technology
In prior art, if necessary to attach the contents such as the description information of picture in picture, frequently with two dimension Code technology is realized.
When realizing with Quick Response Code, need to be superimposed Quick Response Code on image, it is attached to obtain that user can scan Quick Response Code With the link of content, the subsidiary content such as word, picture, network address is got by this link.But, former It is superimposed Quick Response Code on image, change part original image, have impact on the display effect of original image.
Content of the invention
In consideration of it, the present invention provides the subsidiary number in a kind of method of attached data in the picture and parsing image According to method, with the premise of not affecting original image display effect, add attached data.
In a first aspect, the present invention provides a kind of method of attached data in the picture, comprising:
Determine whether attached data to be added, if it has, determining in described image, whether residue is not pre- If the presetted pixel of position interpolation position data, described attached data is with binary representation;
If remaining, from the attached data described to be added of binary representation, obtain bit data, to obtain Position data replace the default position that a remaining presetted pixel comprises.
Second aspect, the method that the present invention provides the attached data in a kind of analysis diagram picture, comprising:
Determine in described image, whether residue is in the presetted pixel of default position interpolation position data;
If residue has, the default position being comprised from a remaining presetted pixel extracts a data, will carry The institute's bit data taking is added in data queue successively, and the position data being comprised by described data queue forms Attached data.
Beneficial effects of the present invention: will be directly appended to what pixel comprised using the attached data of binary representation In default position, can effectively reduce the distortion factor of image, strengthen the display effect of original image.And can be in figure Add larger data volume, good concealment in picture, there is stronger usability and practicality.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or existing skill Art description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are only It is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying creative labor On the premise of dynamic property, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flowchart of attached data in the picture;
Fig. 2 is a kind of flowchart of the attached data in analysis diagram picture;
Fig. 3 is one kind schematically basic flow chart of the method for attached data in the picture;
Fig. 4 is one kind schematically basic flow chart of the method for the attached data in analysis diagram picture.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing and reality Apply example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only Only in order to explain the present invention, it is not intended to limit the present invention.In order to technical solutions according to the invention are described, To illustrate below by specific embodiment.
In the embodiment of the present invention, attached data adopts binary representation;Attached data include be following any one The binary data of type, is used for expressing information including word, picture, sound, network address, Quick Response Code etc. Type;Alternatively, attached data also includes the data length of the binary data that it comprises, using four This data length of byte records, generally, should from front four byte records in the byte representing attached data Data length.
One embodiment of the invention, each pixel in image adopts rgb model to determine, that is, each pixel is by r Value, g value, b value determine, r value, g value, b value are respectively adopted byte records.
If the lowest order in the byte of change record r value, r value is almost unchanged, pixel after change (by Change r value, unchanged g value, unchanged b value determination) with respect to original pixel (by unchanged R value, unchanged g value, unchanged b value determine) almost do not become;By that analogy, if change note Lowest order in the byte of record g value, pixel after change is (by unchanged r value, the g value of change, not The b value determination changing) with respect to original pixel (by unchanged r value, unchanged g value, unchanged B value determines) almost do not become;By that analogy, if the lowest order in the byte of change record b value, change Pixel (being determined by unchanged r value, unchanged g value, the b value changing) afterwards is with respect to original pixel (being determined by unchanged r value, unchanged g value, unchanged b value) does not almost become.
Taking the byte of r value as a example, this byte sorts from highest order to lowest order, including r7, r6, r5, r4, r3、r2、r1、r0;Therefore, r0 is the lowest order of this byte, and r1 is the secondary lowest order of this byte, r2 For the 3rd lowest order of this byte, r3 is the 4th lowest order of this byte.
The position of a data, the position that will determine in the present embodiment, can be added in the byte of predetermined record r value As default position;For example: using the lowest order in the byte of record r value as a default position, if record In the byte of r value, the 3rd lowest order and the 4th lowest order are zero, will be secondary minimum in the byte of record r value Position also serves as a default position.
By that analogy, can record r value byte, record g value byte, record b value byte in, Determine default position in arbitrary byte, or in two bytes, determine default position, or simultaneously in three bytes Determine default position;Preferably, only in the byte of record r value or the byte of record r value or record r value Byte in determine default position.
The present embodiment taking only determine default position in the byte of record r value as a example, provides subsidiary in the picture One kind of data realizes flow process, referring to Fig. 1.
Step s101, opens image.
Open image, specifically refer to: processor load image, and image is arranged to editable state;This Sample, at least can change the value of default position.Alternatively, after image opened by processor, each pixel in image, Represent that r value in this pixel, g value, b value all can be changed;Taking change the mode of r value as a example, change record r Default position in the byte of value.
Step s102, it is determined whether also have attached data to be added, if it did not, execution step s103, If it has, execution step s104.Attached data includes desiring to add to the binary data in image, as above Described, attached data includes the data of word, picture, sound, network address, Quick Response Code etc. binary expression, Also include the data length of this attached data of binary representation it is seen then that attached data is made up of position data.
During the position data that attached data comprises is added in default position in the picture, attached data can be divided into Two classes, a class is the position data having inserted the default position in image, and another kind of is also not insert in image The position data of default position, the present embodiment expectation continues to continue to be added to the remaining pre- of image by another kind of position data If in position, therefore, the position data also not inserting the default position in image belongs to described attached data to be added; When the process of attached data is added in the default position implementing in the picture, long according to the data of this attached data Degree judges whether attached data also to be added, if inserted the position data of the default position in image Summation is not up to this data length, determines also have attached data to be added, if inserted in image The summation of the position data of default position reaches this data length, determines do not have attached data to be added.
Step s103, preserves image;Alternatively, after preserving image, close image.
Step s104, determines in described image, whether residue is not in the presetted pixel of default position interpolation position data, If residue has, extract a remaining presetted pixel, execution step s105.Illustrate, first in figure In picture, screening can be used for adding the pixel of position data, using the pixel filtering out as presetted pixel, filters out The position that can be used for adding position data in presetted pixel belongs to default position;If the presetted pixel of screening is from image Limited, the number of the presetted pixel that calculating sifting goes out, using the number calculating as number threshold value;Because pre- If confirmable default position is also limited in pixel, subsidiary number is added in the default position of presetted pixel in the picture During the position data comprising, often each default position interpolation position data in a presetted pixel, will Reduce one to can be used for adding the presetted pixel of position data, if having added the number of the presetted pixel of a data Not up to number threshold value it is determined that in image residue have can be in the presetted pixel of default position interpolation position data, such as The number of the presetted pixel that fruit has added a data reach number threshold value it is determined that in image non-residue have can be The presetted pixel of default position interpolation position data.
Step s105, extracts a bit data from the attached data described to be added that step s102 determines, Institute's bit data refers to a binary value, and the bit data extracted is replaced byte (recording step s104 Extract the r value of a presetted pixel byte) in lowest order, execution step s106.
Step s106, judges byte (byte of the r value of a presetted pixel that recording step s104 extracts) In the 3rd lowest order and the 4th lowest order whether be zero, if it is, execution step s107, if not, returning Return step s102.
Step s107, it is determined whether also have attached data to be added, if it has, from described to be added attached Band extracting data one bit data, the bit data extracted is replaced byte, and (recording step s104 extracts The r value of a presetted pixel byte) in secondary lowest order, return to step s102;If it did not, protecting Deposit image, alternatively, after preserving image, close image.
The present embodiment is attached in the picture based on describe as a example only determining default position in the byte of record r value One kind with data realizes flow process, rationally learns, as a example only determining default position in the byte of record g value One kind of the attached data in the picture of description realizes flow process, and rationally learns, only in the word of record b value The one kind of the attached data in the picture describing as a example determining default position in section realizes flow process.
The present embodiment by only record r value byte in determine default position as a example, provide analysis diagram as in One kind of attached data realizes flow process, referring to Fig. 2.
Step s201, opens image.To the associated description opening image, referring to above to step s101 Associated description.
Step s202, determines in image, whether residue is in the presetted pixel of default position interpolation position data, if No, execution step s203, if residue has, execution step s204.Whether remaining in image as determining In a kind of citing of the presetted pixel of default position interpolation position data, add the process of position data in presetted pixel In which default position of having recorded in which presetted pixel be added with a data, thus from adding a data Presetted pixel in put forward step s202 during bit data and can be determined according to record and also do not carry the default of bit data Pixel;As in determination image, whether another in the presetted pixel of default position interpolation position data remaining is lifted Example, first extracts the position data of record data length from presetted pixel, is such as determined according to above-mentioned record and comprises Represent the presetted pixel of the position data of data length, first carry bit data from the presetted pixel determining, then from it It is loaded with a data presetted pixel carry bit data during, can determine whether to remain according to this data length Remaining default position interpolation position data presetted pixel, if the number of the position data of extraction is not up to default Length it is determined that there remains the presetted pixel in default position interpolation position data, if the position data of extraction Number reach preset length it is determined that do not have remaining default position interpolation position data presetted pixel.
Step s203, preserves image;Alternatively, after preserving image, close image.
Step s204, determines a presetted pixel from the remaining presetted pixel that image comprises, from byte (note Record determine the r value of presetted pixel byte) in lowest order carry bit data, by extraction position data according to Secondary be added in data queue, execution step 205.To determination one in the remaining presetted pixel comprising from image The determination mode of individual presetted pixel does following illustration, and in the remaining presetted pixel that image comprises, each is preset Pixel is all loaded with a data in lowest order, arbitrarily can select a presetted pixel from remaining presetted pixel, Certainly, also a presetted pixel can be selected from remaining presetted pixel according to preset algorithm.
Step 205, judges the 3rd lowest order in byte (byte of the r value of presetted pixel that record determines) Whether it is zero with the 4th lowest order, if it is, execution step s206, if not, execution step s208.
Step s206, judges whether described data queue reaches data length, is judged to no, then execution step S207, is judged to it is to preserve image, alternatively, be also turn off image.To whether judging described data queue Reach data length and do an illustration, data length refers to the number of the position data that attached data comprises, and The number of the position data that data queue comprises can calculate, such that it is able to according to data queue's middle position data Number whether reach data length, if the number of data queue's middle position data is not up to data length, judge Be no, if the number of data queue's middle position data reaches data length, be judged to be.
Step s207, the secondary lowest order from byte (byte of the r value of the presetted pixel that record determines) carries Take a bit data, the position data of extraction is added in data queue successively, execution step s208.
Step s208, judges whether described data queue reaches data length, is judged to no, then return to step S202, is judged to it is to preserve image, no longer return to step s202, alternatively, be also turn off image.Step Judge in s208 whether described data queue reaches the implementation of data length, with judgement in step s206 It is identical whether described data queue reaches data length, will not be described here.
Generally, front four byte records data lengths are selected in the byte representing attached data, therefore, this Embodiment is also first to extract the position data of record data length, true according to the position data of four bytes first extracted Fixed: the length of the attached data from image zooming-out for the expectation.
The present embodiment is based on only determining in the analysis diagram picture describing as a example default position in the byte of record r value One kind of attached data realize flow process, rationally learn, only in the byte of record g value, determine default position As a example description analysis diagram picture in one kind of attached data realize flow process, and rationally learn, only in record The a kind of of attached data in the analysis diagram picture describing as a example determining default position in the byte of b value realizes stream Journey.
In addition, it should be understood that the size of the sequence number of each step is not intended in the corresponding embodiment of Fig. 1 and Fig. 2 The priority of execution sequence, the execution sequence of each process should be determined with its function and internal logic, and should not be right The implementation process of the embodiment of the present invention constitutes any restriction.
One embodiment of the invention, based on the associated description of above-mentioned attached data in the picture, does certain extension, Obtain the basic procedure of the method for attached data in the picture, referring to Fig. 3, but Fig. 3 illustrate only and this The related part of bright embodiment.
As shown in figure 3, the method for described attached data in the picture includes step a101 and step a102.
Whether step a101, it is determined whether have attached data to be added, if it has, determine in described image Residue is not in the presetted pixel of default position interpolation position data;Wherein, position data refers to attaching of binary representation One of data binary value.
Step a102, if remaining, obtains digit from the attached data described to be added of binary representation According to, the default position being comprised with the position data remaining presetted pixel of replacement obtaining, return to step a101.
In the present embodiment, each pixel in image, can be using rgb model representation or Using cmyk model representation.
The present embodiment determines that the principle of default position is, represents in all binary digits of pixel in image, if Change the value of certain binary digit in this all binary digit, less, generally naked eyes cannot for the change of this pixel Distinguish the change of this pixel, you can using this binary digit in this all binary digit as a default position.
For example, if the pixel in image adopts rgb model representation, modification records the word of the r value of this pixel Lowest order in section, r value is almost unchanged, can make the lowest order in the byte recording the r value of this pixel For a default position, by that analogy, can be using the lowest order in the byte of the g recording this pixel value as one Individual default position, can be using the lowest order in the byte of the b recording this pixel value as a default position.
For example, if the pixel in image adopts cmyk model representation, modification records the word of the c value of this pixel Lowest order in section, c value is almost unchanged, can make the lowest order in the byte recording the c value of this pixel For a default position, by that analogy, can be using the lowest order in the byte of the m recording this pixel value as one Individual default position, can be permissible using the lowest order in the byte of the y recording this pixel value as a default position Using the lowest order in the byte of the k recording this pixel value as a default position.
In the present embodiment, if attached data also to be added, also have in image simultaneously and do not add in default position Plus the presetted pixel of position data is remaining, then the position data that attached data comprises is updated remaining default picture successively The default position that element is comprised, until not having attached data to be added or not adding digit in default position According to presetted pixel remaining;Wherein, remaining presetting is updated successively for the position data comprising attached data The default position that pixel is comprised, update mode refers to: replaces, with position data, the default position that presetted pixel is comprised The value of upper record, when being embodied as, on default position that position data storage to presetted pixel is comprised.
The present embodiment can adopt attached data after binary representation, and attached data is added to what pixel comprised In default position, have little to no effect the distortion factor of image because human eye to adjacent values corresponding color change Difference is hardly noticeable that, for example, for the color distinction of color 100 and color 101, naked eyes substantially cannot Difference;In addition, the data volume of the attached data that can add in the picture is larger, good concealment.
In the present embodiment alternatively, the pixel in described image is represented using rgb, the r of described presetted pixel , by a byte representation, the g value of described presetted pixel is by a byte representation, the b of described presetted pixel for value Value is by a byte representation;
Described default position is one or more, and described default position refers to the position determining in following arbitrary byte, Including: the byte of the r value of the described presetted pixel of expression, the byte of the g value of the described presetted pixel of expression, table Show the byte of the b value of described presetted pixel.
Specifically, taking the byte of r value representing described presetted pixel as a example, preset the former of position in above-mentioned determination Under then, may be selected lowest order in this byte, secondary lowest order, in the 3rd lowest order arbitrary or combination respectively as Default position.One or more can be determined as default position in byte, the default position so determining will not The overall viewing effect of impression image.
In the present embodiment preferably, the described position data with acquisition replaces what a remaining presetted pixel comprised Default position includes;
Step a1021, is replaced in a described remaining presetted pixel with the position data of a described acquisition First;Wherein, described first belongs to described default position, and described first is to represent described presetted pixel The byte of r value in lowest order, or described first be represent described presetted pixel g value byte In lowest order, or described first be represent described presetted pixel the byte of b value in lowest order.
Specifically, as a example using first in the byte in record r value as a default position, if also had Attached data to be added, also has not remaining in the presetted pixel of this default position interpolation position data simultaneously in image, Then the position data that attached data comprises can be replaced first (record that remaining presetted pixel is comprised successively In the byte of r value first) on value, during replacement, be one bit data replace one first on Value.By that analogy, the position data that attached data comprises can also be replaced remaining presetted pixel successively to be wrapped In byte that contain, record g value first;The position data that attached data comprises can also be replaced successively In byte that remaining presetted pixel is comprised, record b value first.
In the present embodiment preferably, the described position data with acquisition replaces what a remaining presetted pixel comprised Default position also includes:
Step a1022, if the 3rd lowest order and the 4th lowest order are in the byte belonging to described first Zero, again determine whether attached data to be added;
Step a1023, if it has, described in the bit data replacement being comprised with the attached data determining again Second in a remaining presetted pixel;
Wherein, described second belongs to described default position, and described second is the byte belonging to described first In secondary lowest order, or described second is the secondary lowest order in the byte belonging to described first, or Described second is the secondary lowest order in the byte belonging to described first.
Specifically, as a example using the second in the byte in record r value as a default position, if also had Attached data to be added, also has not remaining in the presetted pixel of this default position interpolation position data simultaneously in image, Then the position data that attached data comprises can be replaced the second (record that remaining presetted pixel is comprised successively Second in the byte of r value) value, during replacement, be one bit data replace a second on value. By that analogy, can also by the position data that attached data comprises replace successively that remaining presetted pixel is comprised, Second in the byte of record g value;The position data that attached data comprises can also be replaced successively remaining Second in byte that presetted pixel is comprised, record b value.
It should be noted that, the present embodiment does not limit to the execution sequence of step a1021 and step a1022; For same byte, execution step a1021 and step a1022 successively.
Alternatively, described attached data includes the present embodiment: binary data, the number of described binary data According to length.Referring specifically to above-mentioned.
One embodiment of the invention, based on the associated description of the attached data in the above-mentioned picture to analysis diagram, does certain Extension, obtains the basic procedure of the method for attached data in analysis diagram picture, referring to Fig. 3, but Fig. 3 only shows Go out the part related to the embodiment of the present invention.
As shown in figure 3, the method for the attached data in described analysis diagram picture includes step a201 and step a202.
Step a201, determines in described image, whether residue is in the presetted pixel of default position interpolation position data; Wherein, position data refers to one of attached data of binary representation binary value.
Step a202, if residue has, the default position being comprised from a remaining presetted pixel extracts position Data, the position data of extraction is added in data queue successively, the position data being comprised by described data queue Composition attached data, return to step a201.
The present embodiment determines that the principle of default position participates in the side of the attached data in the picture that a upper embodiment provides Corresponding description to the principle determining default position in method.
In the present embodiment, when processor expectation extracts attached data from image, a data team can be generated Row, this data queue is used for the storage default position from image extracts successively position data, to be done from figure After default position in picture carries bit data, the position data being comprised by described data queue forms attached data. Wherein, the mode realizing carrying bit data from the default position of image is: circulation execution step a201 and step A202, carries bit data until completing the default position from image.
In the present embodiment alternatively, the pixel in described image is represented using rgb, the r of described presetted pixel , by a byte representation, the g value of described presetted pixel is by a byte representation, the b of described presetted pixel for value Value is by a byte representation;
Described default position is one or more, and described default position refers to the position determining in following arbitrary byte, Including: the byte of the r value of the described presetted pixel of expression, the byte of the g value of the described presetted pixel of expression, table Show the byte of the b value of described presetted pixel.
Specifically, taking the byte of r value representing described presetted pixel as a example, preset the former of position in above-mentioned determination Under then, may be selected lowest order in this byte, secondary lowest order, in the 3rd lowest order arbitrary or combination respectively as Default position.
In the present embodiment preferably, the described default position being comprised from a remaining presetted pixel extracts position Data includes:
Step a2021, first from a described remaining presetted pixel extracts a described digit According to;Wherein, described first belongs to described default position, described first r being to represent described presetted pixel In lowest order in the byte of value, or described first byte of g value for representing described presetted pixel Lowest order in lowest order, or described first byte of b value for representing described presetted pixel.
Specifically, because not carrying bit data from a described remaining presetted pixel, the present embodiment is from image First in a described remaining presetted pixel carries bit data, and the position data of extraction is added successively To in data queue.
In the present embodiment preferably, the described default position being comprised from a remaining presetted pixel extracts position Data also includes:
Step a2022, if the 3rd lowest order and the 4th lowest order are in the byte belonging to described first Zero, the second from a described remaining presetted pixel extracts institute's bit data;Wherein, institute State second and belong to described default position, described second is the secondary lowest order in the byte belonging to described first, Or described second is the secondary lowest order in the byte belonging to described first, or described second is institute State the secondary lowest order in the byte belonging to first.
Specifically, because not carrying bit data from a described remaining presetted pixel, if described remaining one Individual presetted pixel is stored with one of described attached data position data, and the present embodiment is remaining described in the image A presetted pixel in second carry bit data, and the position data of extraction is added to data team successively In row.
It should be noted that, the present embodiment does not limit to the execution sequence of step a2021 and step a2022; For same byte, execution step a2021 and step a2022 successively.
Alternatively, step a202 includes the present embodiment:
Step a2023, judges whether described data queue reaches data length, is judged to no, then return step Rapid a201, be judged to be, then no longer return to step a201, described data length is according in described data queue Position data determine.
Specifically in step a202, every time the bit data extracted is added in data queue it successively Afterwards, all execution step a2023 can judge whether described data queue reaches data length;If it is determined that institute State data queue and reach data length, preserve image, alternatively, close image;If it is determined that described number It is not up to data length, return to step a201 according to queue.
It should be noted that the technical scheme of the embodiment of the present invention substantially makes tribute to prior art in other words The all or part of the part offered or this technical scheme can be embodied in the form of software product, this meter Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or network equipment etc.) or processor (processor) execute The all or part of step of each embodiment methods described of the embodiment of the present invention.And aforesaid storage medium includes: U disk, portable hard drive, read-only storage (rom, read-only memory), random access memory (ram, random access memory), magnetic disc or CD etc. are various can be with store program codes Medium.
Above content is further description made for the present invention with reference to specific preferred embodiment, no Can assert the present invention be embodied as be confined to these explanations.Common for the technical field of the invention For technical staff, make some equivalent substitutes or obvious modification without departing from the inventive concept of the premise, And performance or purposes are identical, the present invention all should be considered as belonging to special by claims determination submitted to Sharp protection domain.

Claims (9)

1. a kind of method of attached data in the picture is it is characterised in that described attached data in the picture Method includes:
Determine whether attached data to be added, if it has, determining in described image, whether residue is not pre- If the presetted pixel of position interpolation position data, described attached data is with binary representation;
If remaining, from the attached data described to be added of binary representation, obtain bit data, to obtain Position data replace the default position that a remaining presetted pixel comprises.
2. the method for attached data in the picture as claimed in claim 1 is it is characterised in that described image In pixel represent using rgb, the r value of described presetted pixel is by a byte representation, described presetted pixel G value by a byte representation, the b value of described presetted pixel is by a byte representation;
Described default position is one or more,
Described default position refers to the position determining in following arbitrary byte, comprising: represent described presetted pixel The b value of the byte of r value, the byte of g value representing described presetted pixel and the described presetted pixel of expression Byte.
3. attached data in the picture as claimed in claim 2 method it is characterised in that described to obtain The default position that the position data remaining presetted pixel of replacement taking comprises includes;
Replace first in a described remaining presetted pixel with the position data of a described acquisition;
Wherein, described first belongs to described default position, described first r being to represent described presetted pixel In lowest order in the byte of value, or described first byte of g value for representing described presetted pixel Lowest order in lowest order, or described first byte of b value for representing described presetted pixel.
4. attached data in the picture as claimed in claim 3 method it is characterised in that described to obtain The default position that the position data remaining presetted pixel of replacement taking comprises also includes:
If the 3rd lowest order and the 4th lowest order are zero in the byte belonging to described first, determine again Whether there is attached data to be added;
If it has, the bit data being comprised with the attached data determining again replaces described remaining one in advance If the second in pixel;
Wherein, described second belongs to described default position, and described second is the byte belonging to described first In secondary lowest order, or described second is the secondary lowest order in the byte belonging to described first, or Described second is the secondary lowest order in the byte belonging to described first.
5. a kind of method of the attached data in analysis diagram picture is it is characterised in that attached in described analysis diagram picture Method with data includes:
Determine in described image, whether residue is in the presetted pixel of default position interpolation position data;
If remaining, the default position being comprised from a remaining presetted pixel extracts a data, will extract Institute's bit data be added in data queue successively, and the position data being comprised by described data queue form attached Band data.
6. the method for the attached data in analysis diagram picture as claimed in claim 5 is it is characterised in that described Pixel in image is represented using rgb, and the r value of described presetted pixel is by a byte representation, described default , by a byte representation, the b value of described presetted pixel is by a byte representation for the g value of pixel;
Described default position is one or more,
Described default position refers to the position determining in following arbitrary byte, comprising: represent described presetted pixel The byte of r value, the byte of g value representing described presetted pixel, the word of the b value of the described presetted pixel of expression Section.
7. the method for the attached data in analysis diagram picture as claimed in claim 6 is it is characterised in that described The default position being comprised from a remaining presetted pixel extracts a data and includes:
First from a described remaining presetted pixel extracts institute's bit data;
Wherein, described first belongs to described default position, described first r being to represent described presetted pixel In lowest order in the byte of value, or described first byte of g value for representing described presetted pixel Lowest order in lowest order, or described first byte of b value for representing described presetted pixel.
8. the method for the attached data in analysis diagram picture as claimed in claim 7 is it is characterised in that described The default position being comprised from a remaining presetted pixel extracts a data and also includes:
If the 3rd lowest order and the 4th lowest order are zero in the byte belonging to described first, from described surplus Second in a remaining presetted pixel extracts institute's bit data;
Wherein, described second belongs to described default position, and described second is the byte belonging to described first In secondary lowest order, or described second is the secondary lowest order in the byte belonging to described first, or Described second is the secondary lowest order in the byte belonging to described first.
9. the method for the attached data in the analysis diagram picture as described in any one of claim 5 to 8, its feature It is, methods described also includes:
Judge whether described data queue reaches data length, if it is not, whether then continuing to judge in described image , in the presetted pixel of default position interpolation position data, wherein said data length is according to described data queue for residue In position data determine.
CN201510410237.1A 2015-07-13 2015-07-13 method for accompanying data in image and method for analyzing accompanying data in image Active CN106355542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510410237.1A CN106355542B (en) 2015-07-13 2015-07-13 method for accompanying data in image and method for analyzing accompanying data in image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510410237.1A CN106355542B (en) 2015-07-13 2015-07-13 method for accompanying data in image and method for analyzing accompanying data in image

Publications (2)

Publication Number Publication Date
CN106355542A true CN106355542A (en) 2017-01-25
CN106355542B CN106355542B (en) 2019-12-13

Family

ID=57842131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510410237.1A Active CN106355542B (en) 2015-07-13 2015-07-13 method for accompanying data in image and method for analyzing accompanying data in image

Country Status (1)

Country Link
CN (1) CN106355542B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7489796B2 (en) * 2004-02-02 2009-02-10 Nippon Telegraph And Telephone Corporation Electronic watermark embedding device, electronic watermark detection device, method thereof, and program
CN101866478A (en) * 2010-06-22 2010-10-20 北京大学 Method for embedding and extracting watermark in digital image
CN101950410A (en) * 2010-09-08 2011-01-19 优视科技有限公司 Digital image processing method and device based on mobile terminal and mobile terminal
CN102044061A (en) * 2010-12-20 2011-05-04 北京大学 Embedding method and extracting method of reversible watermarks
CN102567942A (en) * 2012-01-09 2012-07-11 中山大学 Reversible watermark method utilizing histogram shifting

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7489796B2 (en) * 2004-02-02 2009-02-10 Nippon Telegraph And Telephone Corporation Electronic watermark embedding device, electronic watermark detection device, method thereof, and program
CN101866478A (en) * 2010-06-22 2010-10-20 北京大学 Method for embedding and extracting watermark in digital image
CN101950410A (en) * 2010-09-08 2011-01-19 优视科技有限公司 Digital image processing method and device based on mobile terminal and mobile terminal
CN102044061A (en) * 2010-12-20 2011-05-04 北京大学 Embedding method and extracting method of reversible watermarks
CN102567942A (en) * 2012-01-09 2012-07-11 中山大学 Reversible watermark method utilizing histogram shifting

Also Published As

Publication number Publication date
CN106355542B (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN104899853B (en) Image area dividing method and device
CN109544166A (en) A kind of Risk Identification Method and device
CN105718272B (en) A kind of method and terminal of terminal factory reset
CN105243371A (en) Human face beauty degree detection method and system and shooting terminal
CN108737875B (en) Image processing method and device
US10699358B2 (en) Image hidden information detector
JP2008304805A5 (en)
JPH11284836A (en) Digital watermarked image processing method
CN107734336A (en) A kind of compression method and device of video memory space
CN105159913A (en) Method and device for determining file to be cleaned
CN107515875A (en) Data query method and device
CN108133718A (en) A kind of method and apparatus handled video
CN110990617B (en) Picture marking method, device, equipment and storage medium
CN115063861A (en) Model training method, image background similarity judgment method and device
CN106355542A (en) Method for attaching data to image and method for analyzing attached data in image
CN105468575B (en) List loading method and system based on polymorphic type
CN108449627A (en) Video processing, the recognition methods of source video sequence, device, equipment and medium
CN106575434A (en) Image processing device, image capturing device, image processing method, and program
CN107172430A (en) The coding method of character block and device
CN104182197B (en) A kind of combination control method, system and related combination
EP3257023B1 (en) Image histogram compression end point pair selection based on a target color space range
CN104112100A (en) Data hiding method and device based on bitmap
CN109446827A (en) Data encryption/decryption method and system
CN106993148A (en) One kind video recording covering method, device and network hard disk video recorder
CN105701858B (en) A kind of stick picture disposing method and device based on alpha fusions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant