1. Field of the Invention
The present invention relates to watermark information embedding apparatus/method for embedding information into image using electronic watermark technology, and watermark information detecting apparatus/method for detecting embedded information which is embedded in image according to electronic watermark technology.
2. Description of the Related Art
The “electronic watermark” which embeds information for preventing a copy/forgery or classified information in image or document data in an invisible form is premised on that storage and transfer of data are carried out all on an electronic medium and enables information to be detected securely because information embedded by watermark is never deteriorated or lost. Likewise, a method for embedding classified information in a printed document in a visually not obstructive form other than characters so that it is impossible to falsify the document is necessary in order to prevent a document printed on a paper medium from being falsified or copied improperly.
As an innovative method for embedding the aforementioned classified information in a printed document, a technology disclosed in Japanese Patent Application Laid-Open No. 2003-101762 is available. In the technology disclosed in the document, A Gabor filter is used to embed and extract information. Those inventions using the Gabor filter have an advantage that information can be recorded with pale pattern density so that it is not easy to see it visually because waves are expressed with plural dots in a wide range.
[Patent document 1] Japanese Patent Application Laid-Open No. 2003-101762
The electronic watermark disclosed in the Japanese Patent Application Laid-Open No. 2003-101762 uses a pattern which enables a signal to be detected easily with the Gabor filter. Thus, there is a problem that information is easy to lose because its density is too low and a restriction in the quantity of information because the size of each pattern is large. That is, due to blur in print which occurs because of low density of foundation paper or when print is made with a printer having a small dot diameter like LED printer, sometimes the electronic watermark information cannot be read out. Further, an area necessary for embedding 1-bit information is large because the wave is expressed with the dot pattern, so that information density is limited. Further, because the quantity of information which can be embedded is small, it is difficult to use a strong error correction code or signal synchronous method and consequently, sometimes, this method acts poor when there exist wrinkle or stain on a medium.
The present invention has been achieved in views of the above-described problems which the conventional watermark information embedding/detecting technology has and a prominent object of the present invention is to provide a novel, improved watermark information embedding apparatus, watermark information detecting apparatus, watermark information embedding method, watermark information detecting method and printed material capable of improving information recording density tremendously by expressing the information with simple lines or dots.
To solve the above-described problem, according to a first aspect of the present invention, there is provided a watermark information embedding apparatus for embedding information into an image by electronic watermark technology. The watermark information embedding apparatus of the invention comprises: a coding portion for coding embedding information to be embedded into an image; a pattern allocating portion for allocating a pattern to each symbol of the coded embedding information; and a disposing portion for disposing the pattern corresponding to the embedding information on the image regularly, wherein one or more patterns having a predetermined spatial frequency are allocated to each symbol. The pattern can be a pattern constituted of plural pixels having a specific frequency and direction.
The watermark information embedding apparatus of the present invention can be applied as follows.
A correspondence between the pattern and symbol can be specified, for example, as follows.
The pattern can specify a corresponding symbol by a direction in which the frequency component is strong. The pattern has an edge component having frequencies perpendicular to each other and can specify a corresponding symbol by a direction of an edge component in which the frequency is strong. The pattern has horizontal and vertical edge components having a specific frequency and can specify a corresponding symbol by the direction of an edge component in which the frequency is strong. Further, two or more patterns having a near frequency and direction may be allocated to each symbol.
The disposing portion may compare a pixel on an image with a pixel of a pattern in the terms of pixel unit when the pattern is disposed and change over whether or not the pattern is disposed in the terms of pixel unit. In this case, the comparison can be carried out with the value of the pixel. The comparison can be carried out by determining whether the pixel on the image is a pixel constituting the foreground or a pixel constituting the background and whether a pixel of the pattern is a pixel constituting the foreground or a pixel constituting the background.
The disposing portion may dispose a pattern only when the pixel on the image is a pixel constituting the background.
The pattern can be a pattern keeping contact with an adjacent pattern.
Following components may be added.
The watermark information embedding apparatus may further comprise an imaging portion for converting arbitrary data to the image. The arbitrary data includes document, table, picture, map, photograph and the like. The watermark information embedding apparatus may 1 further comprise a printing portion for printing an image in which the embedding information is embedded in a printable medium.
To solve the above described problem, there is provided a watermark information detecting apparatus for detecting embedding information embedded in an image by electronic watermark technology. The watermark information detecting apparatus comprise a detecting portion for detecting a pattern corresponding to the embedding information, wherein the pattern is a pattern disposed in the image by the watermark information embedding apparatus according to the first aspect.
The watermark information detecting apparatus of the present invention can be applied as follows.
The pattern may be a pattern deteriorated more than when it is embedded by for example, irreversible filter or enlargement/reduction processing or printing or scanning.
The detecting portion may determine a symbol corresponding to the pattern from a detected pattern and restores the embedding information by connecting the symbol.
The detecting portion may carry out filter processing to a minute region in an image by scanning a region larger than the minute region in the image.
A peak value of the filter output value may be searched for by the unit in which a pattern is recorded from a scanned filter processing result so as to specify a pattern position.
The detecting portion may specify a pattern depending on whether the output value of the filter is positive or negative.
The detecting portion may use a filter for reducing a reaction to a pattern of an opposite phase.
The detecting portion may use a filter capable of detecting a signal properly even if the frequency of a pattern drops.
The detecting portion may use a filter using the maximum value or minimum value of the density, luminance, saturation or chromaticity of a pixel in a specific surrounding range as part of a sample value upon detection of an edge.
To solve the above-described problem, according to a third aspect of the present invention, there is provided a watermark information embedding method for embedding information in an image by electronic watermark technology. The watermark information embedding method comprises: coding step of coding embedding information to be embedded into an image; a pattern allocating step of allocating a pattern to each symbol of the coded embedding information; and a disposing step of disposing the pattern corresponding to the embedding information in the image regularly, wherein one or more patterns having a predetermined spatial frequency are allocated to each symbol. The pattern can be a pattern composed of plural pixels having a specific frequency and direction.
The watermark information embedding method of the present invention can be applied as follows.
The correspondence between the pattern and symbol can be specified as follows.
The pattern can specify a corresponding symbol by a direction in which the frequency component is strong. The pattern has an edge component having frequencies perpendicular to each other and can specify a corresponding symbol by a direction of an edge component in which the frequency is strong. The pattern has horizontal and vertical edge components having a specific frequency and can specify a corresponding symbol by the direction of an edge component in which the frequency is strong. Two or more patterns having a near frequency and direction may be allocated to each symbol.
The disposing step may compare a pixel on an image with a pixel of a pattern in the terms of pixel unit when the pattern is disposed and change over whether or not the pattern is disposed in the terms of pixel unit. The comparison can be carried out with the value of pixel. The comparison can be carried out by determining whether the pixel on the image is a pixel constituting the foreground or a pixel constituting the background and whether a pixel of the pattern is a pixel constituting the foreground or a pixel constituting the background.
The disposing step may dispose a pattern only when the pixel on the image is a pixel constituting the background. The pattern can be a pattern keeping contact with an adjacent pattern.
Further, following steps may be included.
The watermark information embedding method may further comprise an imaging step of converting arbitrary data to the image. The arbitrary data includes document, table, picture, map, photograph and the like. The watermark information embedding method may further comprise a printing step of printing an image in which the embedding information is embedded in a printable medium.
To solve the above-described problems, according to a fourth aspect of the present invention, there is provided a watermark information detecting method for detecting an embedding information embedded in an image by electronic watermark technology. The watermark information detecting method comprises a detecting step of detecting a pattern disposed in the image and corresponding to the embedding information, wherein the pattern is a pattern disposed in the image by the watermark information embedding method according to the third aspect.
The watermark information detecting method of the present invention can be applied as follows.
The pattern may be a pattern deteriorated more than when it is embedded due to, for example, irreversible filter or enlargement/reduction or printing or scanning or the like.
The detecting step can determine a symbol corresponding to the pattern from a detected pattern and restore the embedding information by connecting the symbol.
The detecting step may carry out filter processing to a minute region in an image by scanning a region larger than the minute region in the image.
A peak value of the filter output value can be searched for by the unit in which a pattern is recorded from a scanned filter processing result so as to specify a pattern position.
The detecting step may specify a pattern depending on whether the output value of the filter is positive or negative.
The detecting step may use a filter for reducing a reaction to a pattern of an opposite phase.
The detecting step may use a filter capable of detecting a signal properly even if the frequency of a pattern drops.
The detecting step may use a filter using the maximum value or minimum value of the density, luminance, saturation or chromaticity of a pixel in a specific surrounding range as part of a sample value upon detection of an edge.
To solve the above-described problem, according to a fifth aspect of the present invention, there is provided a printed material outputted with information embedded in an image by electronic watermark technology. The printed material of the present invention is characterized in that one or more patterns having a predetermined spatial frequency allocated to each symbol are allocated to the symbol that codes the embedding information to be embedded into an image and the pattern corresponding to the embedding information is disposed in the image regularly. The pattern can be a pattern composed of plural pixels having a specific frequency and direction.
The correspondence between the pattern and the symbol can be specified as follows.
The pattern can specify a corresponding symbol by a direction in which the frequency component is strong. The pattern has an edge component having frequencies perpendicular to each other and can specify a corresponding symbol by a direction of an edge component in which the frequency is strong. The pattern has horizontal and vertical edge components having a specific frequency and can specify a corresponding symbol by the direction of an edge component in which the frequency is strong. Two or more patterns having a near frequency and direction may be allocated to each symbol.
The pixel on an image may be compared with the pixel of a pattern in the terms of pixel unit when the pattern is disposed and whether or not the pattern is disposed may be changed over in the terms of pixel unit. In this case, the comparison can be carried out with the value of pixel. Further, the comparison can be carried out by determining whether the pixel on the image is a pixel constituting the foreground or a pixel constituting the background and whether a pixel of the pattern is a pixel constituting the foreground or a pixel constituting the background.
The disposing step may dispose a pattern only when the pixel on the image is a pixel constituting the background. The pattern can be a pattern keeping contact with an adjacent pattern.
As described above, the present invention can improve information recording density dramatically by expressing information with simple line or dot.
Hereinafter, the preferred embodiments of the watermark information embedding apparatus, watermark information detecting apparatus, watermark information embedding method, watermark information detecting method and printed material of the present invention will be described in detail with reference to the accompanying drawings. In the meantime, components having substantially the same functional structure are supplied with like reference numeral in this specification and drawings and duplicated description thereof is omitted.
(Watermark Information Embedding Apparatus 10)
The watermark information embedding apparatus 10 is an apparatus which synthesizes a watermark embedded image based on image data and information to be embedded in the image and prints on a paper medium. The watermark information embedding apparatus 10 comprises a coding portion 11, a pattern allocating portion 12, a watermark embedded document synthesizing portion 13 and an output device 14 as shown in
Image data 15 is inputted from an image input terminal (not shown) of the watermark information embedding apparatus 10. The image data 15 is imaged data of arbitrary data such as document, tables, picture, map, photograph or a combination of these data. The imaging is executed by a method of reading with a scanner or using a document outputted with a word processor as a print image. Although this embodiment will be described on a premise of printing on a white paper surface with black ink (monochrome), the present invention is not restricted to this example but may be applied to a case of printing with colors (multi-colors) also. On the other hand, the embedding information 16 is information (character string, image and acoustic data) to be embedded in paper medium in other form than characters.
The coding portion 11 executes coding processing of data of the embedding information 16. The pattern allocating portion 12 executes allocation processing of watermark signal (pattern) to each coded symbol. That is, the embedding information 16 is converted to numerals digitally and N coded (N: two or more) and each symbol is allocated to preliminarily prepared watermark signals. According to the watermark signal of this embodiment, a wave having an arbitrary direction and wavelength is expressed by allocating dots in a rectangular region of an arbitrary size and symbols are allocated to the direction and wavelength of the wave. Such a watermark signal is called signal unit hereinafter. The detail of the signal unit will be described later.
The watermark embedded document synthesizing portion 13 draws a pattern expressing the embedding information on an image inputted from the image input terminal directly. The watermark embedded document synthesizing portion 13 of this embodiment creates a watermark embedded document image in this way. The output device 14 is an output unit such as a printer, which prints watermark embedded document image on paper medium. Therefore, the coding portion 11, the pattern allocating portion 12 and the watermark embedded document synthesizing portion 13 may be achieved as a function in the printer driver.
(Printed Material 20)
The printed material 20 is a paper or card printed with the embedding information 16 embedded in the image data 15 and physically stored and managed.
(Watermark Information Detecting Apparatus 30)
The watermark information detecting apparatus 30 fetches in a document printed on paper medium as image and restores the embedding information 16 embedded therein. The watermark information detecting apparatus 30 comprises an input device 31 and a watermark detecting portion 32 as shown in
The input device 31 is an input unit such as a scanner, which fetches the printed material 20 as gray image composed of multi-valued tones into a computer. The image to be inputted may be just an image outputted by the electronic watermark embedding apparatus 10, an image deteriorated by irreversible compression of JPEG or the like, an image reduced by a digital filter or the like, an image obtained by photographing or scanning a printed material.
The watermark detecting portion 32 detects a signal unit drawn on an image and extracts the embedding information 16 by executing filtering processing on all or part of the image fetched in by the input device 31.
The watermark information embedding apparatus 10 and the watermark information detecting apparatus 30 of this embodiment have the above-described structure. Next, the operations of the watermark information embedding apparatus 10 and the watermark information detecting apparatus 30 will be described. First, the operation of the watermark information embedding apparatus 10 will be described with reference to the flow chart of
(Step S101)
First, the image data 15 and the embedding information 16 are inputted to the watermark image embedding apparatus 10 (step S101). As described above, the document data 15 is data including font information and layout information and created with a word processing software or the like. The document data 15 is, for example, binary data of white and black and white pixel (whose value is 1) on the image is a background while the black pixel (whose value is 0) is a character region (region coated with ink). On the other hand, the embedding information 16 includes a variety of data such as character, sound, and image.
(Step S102)
Next, the embedding information 16 is converted to N-codes (step S102). Although N is arbitrary, it is assumed that N=2 to facilitate description in this embodiment. Thus, it is assumed that the code generated in step S102 is binary code, which is expressed with a bit string of 0 and 1. In this step S102, the embedding information 16 may be coded as it is or encrypted embedding information 16 may be coded.
(Step S103)
Next, a signal unit is allocated to each symbol coded (step S103). The watermark signal of this embodiment is a representation of wave having an arbitrary wavelength and direction with arrangement of dots (black pixels).
The signal unit to be allocated to each symbol in step S103 will be described.
The width and height of the signal unit are assumed to be Sw and Sh respectively. Although Sw and Sh may be different from each other, it is assumed that Sw=Sh to facilitate description in this embodiment. The unit of the length is a number of pixels and in the example of
A rectangle having the width of Sw and the height of Sh is called “signal unit” as a unit of the signal. In
Because there exist two regions in which dots are disposed densely in a unit, the frequency per unit is 2 in this example. Because the propagation direction of the wave is perpendicular to a direction in which the dots are disposed densely, the wave of the unit A is arctan (−⅓) with respect to the horizontal direction and the wave of the unit B is arctan (⅓). In the meantime, when the direction of arctan (a) is perpendicular to the direction of arctan (b), it comes that a ×b=−1.
According to this embodiment, a symbol 0 is allocated to a signal unit expressed by the unit A and a symbol 1 is allocated to a signal unit expressed by the unit B. These are called symbol units.
As the signal unit, for example, dot arrangements as shown in FIGS. 5(3)-(5) can be considered as well as those shown in FIGS. 3(1), (2).
In
In
In
Because a plurality of combination patterns of the units in which the symbol 0 and symbol 1 are allocated can be considered as well as the combinations allocated in the above, it is possible to make an embedded signal difficult to interpret by secreting which signal unit is allocated to which symbol.
If the embedding information 16 is coded with quarternary code in step S103 shown in
Because the quantities of dots in a single unit are equal in an example of the signal unit shown in
In order to achieve such an effect, the unit E defined as a background unit (signal unit in which no symbol is allocated), for example, a background for the watermark image is formed by disposing them without any gap; and when a symbol unit (unit A, unit B) is embedded in the watermark image, the background unit (unit E) at a place in which the symbol unit is to be embedded is replaced with the symbol unit (unit A, unit B).
Next, the method for embedding the signal unit into the watermark image will be described with reference to
As shown in FIGS. 7(1), (2), the same symbol units are embedded repeatedly. This aims at preventing the symbol unit from not being detected when detecting a signal if a character in document overlaps the embedded symbol unit and the repetitive number and arrangement pattern of the symbol unit (hereinafter referred to as unit pattern) are arbitrary.
That is, as an example of the unit pattern, the repetitive number may be 4 (four symbol units exist in a single unit pattern) as shown in
Although in FIGS. 7(1), (2), a single symbol is given to a single symbol unit, a symbol may be applied to an arrangement pattern of the symbol units a shown in
How many bits of information can be embedded in a watermark image of a page depends upon the size of the signal unit, size of the unit pattern and the size of a document image. How many signals are embedded in the horizontal direction and vertical direction of a document image may be determined by detecting signals as already known or may be determined by computing from the size of the image and size of the signal unit inputted through the input device.
If unit patterns can be embedded by Pw in the horizontal direction and by Ph in the vertical direction of a watermark image of a single page, a unit pattern at an arbitrary position of the image is expressed as U (x, y), x=1 to Pw and y=1 to Ph and U (x, y) is called “unit pattern matrix”. Further, the quantity of bits which can be embedded in a page is called “embedding bit number”. The embedding bit number is Pw×Ph.
Here, a case of embedding the same information into a watermark image of a single page repeatedly will be described. This aims at enabling the embedded information to be fetched out even if the embedded information is vanished because an entire unit pattern is painted out when the watermark image is overlapped with a document image, by embedding the same information repeatedly.
First, the embedding information 16 is converted to N codes (step S201). This is the same as step S102 of
Next, how many times the data code unit can be embedded in an image repeatedly is calculated from a code length (bit number here) of data code and the embedding bit number (step S202). In this embodiment, it is assumed that the code length data of the data code is inserted into a first row of a unit pattern matrix. It is permissible not to embed the code length data into the watermark image with the code length of the data code set as a fixed length.
The frequency Dn of embedding the data code unit is calculated according to the following expression with the data code length set as Cn.
wherein └A┘ is a maximum integer not exceeding A.
If it is assumed that the residual is Rn(Rn=Cn−(Pw×(Ph−1))), it comes that data code units of Dn times and a unit pattern corresponding to head Rn bits of the data code are embedded in the unit pattern matrix. However, the Rn bit which is the residual portion does not always need to be embedded.
In description of
Next, the code length data is embedded into a first row of the unit pattern matrix (step S203). Although
Further, the data code units are embedded in a second row and following of the unit pattern matrix repeatedly (step S204). The data code units are embedded in order in the row direction from MSB (most significant bit) or LSB (least significant bit) of the data code. In the example of
As for the method for embedding data, the data may be embedded continuously in the row direction as shown in
Allocation of a watermark signal in the pattern allocating portion 12 (step S103) has been described above. Next, step S104 and following will be described with reference to
(Step S104)
The watermark embedded document image synthesizing portion 13 overlaps the image data 15 and the watermark signal allocated by the pattern allocating portion 12 (step S104). The value of each pixel in the watermark embedded document image is calculated by logical product operation (AND) of a document image value and pixel values corresponding to the watermark image if the image data 15 is of binary image. That is, if any one of the document image and watermark image is 0 (black), the pixel value of the watermark embedded document image is 0 (black) and others are 1 (white).
On the other hand, if the image data is multi-valued data of three or more values, following processing is carried out.
(Drawing Method of Color Pattern)
An inputted image has a background color constituting a background of a document or graphics and foreground composed of characters, lines, diagrams and the like. The signal unit has a foreground color expressing a signal and a background color acting as a background as well. If it is drawn on an image with the watermark embedded image synthesizing portion 13, the background color of the signal unit is handled as a transparent color and the color of an image may be left on an outputted image in the background color of the signal unit as shown in
According to the above-described method, a watermark embedded image in which the inputted image and the signal unit overlap each other is generated.
(Step S105)
A watermark embedded image generated in this way is outputted by the output device 14.
(Step S105)
The operation of the watermark information embedding apparatus 10 has been described above. Next, the operation of the watermark information detecting apparatus 30 will be described with reference to FIGS. 12 to 20.
(Watermark Detecting Portion 32)
First, the printed material 20 is inputted to a memory of computer or the like with the input device 31 such as a scanner (step S301). The image read in by the input device is called input image. The input image is a multi-valued image and will be explained as gray image having 256 tones. Although the resolution of the input image (resolution when reading with the input device 31) may be different from that in the aforementioned watermark information embedding apparatus 10, it is assumed that the resolution is the same in the following description. Further, it is assumed that the input image is subjected to correction by rotation or elongation or contraction.
Next, how many unit patterns are embedded is calculated depending on the size of the input image and the size of the signal unit (step S302). For example if it is assumed that the size of the input image is W (width)×H (height) and that the size of the signal unit is Sw×Sh and the unit pattern is constituted of Uw×Uh units, the quantity of unit patterns (N=Pw×Ph) embedded in the input image is calculated as follows.
[Expression 2]
However, if the watermark information embedding apparatus 10 and the watermark information detecting apparatus 30 have different resolutions, the size of the signal unit in an input image is normalized according to a ratio of those resolutions before the above-described calculation is performed.
Next, a compartmental location of the unit pattern to the input image is set up based on the quantity of unit patterns calculated in step S302 (step S303).
Next, a symbol unit is detected in each compartmental location so as to restore a unit pattern matrix (step S304). Hereinafter the detail of signal detection will be described.
Although, actually, a number of noise components are added to the input image because of a local change in paper thickness, stain of printed document or instability of the output device or an image input device, a case where there is no noise component will be described here. However, using a method explained here enables signals to be detected stably from an image with the noise components as well.
Hereinafter, a two-dimensional wavelet filter capable of defining the frequency, direction of wave and influence range at the same time is used to detect a signal unit from the input image. Although an example using the Gabor filer which is one of the wavelet filter will be mentioned below, it is not always necessary to use the Gabor filer if the filter has the same character as the Gabor filter and further, a method of defining a template having the same dot pattern as the signal unit and then executing pattern matching may be used.
A Gabor filter G (x, y), x=0 to gw−1, y=0 to gh−1 is indicated below. The gw, gh are sizes of a filter and here the same size as the signal unit embedded by the watermark information embedding apparatus 10.
i:imaginary number unit
x=0˜gw−1, y=0˜gh−1, x0=gw/2, y0=gh/2
A: influence range in horizontal direction
B: influence range in vertical direction
tan−1(u v):direction of wave1, √{square root over (u2+v2)}: frequency
To detect the signal, the Gabor filters having the same frequency, wave direction and size as the symbol unit embedded in the watermark image are prepared by the same quantity as the kinds of the embedded signal units. The Gabor filters corresponding to the unit A and unit B in
A filter output value at an arbitrary position of the input image is calculated according to convolution between the filter and image. Because the Gabor filter has an actual number filter and an imaginary number filter (the imaginary number filter is a filter deflected by half wavelength with respect to the actual number filter), their square mean value is assumed to be a filter output value. For example, if it is assumed that convolution between the actual number filter of the filter A and an image is Rc and convolution between the imaginary number filer and the image is Ic, an output value F(A) is calculated according to the following expression.
F(A)=√{square root over (Rc2+Ic2)} [Expression 4]
Symbol determining step to the unit pattern U (x, y) is carried out as follows.
(1) A maximum value as a result of measuring F(A) about all positions in the unit pattern U (x, y) by moving the position of the filter (A) is regarded to be an output value of the filter A to the unit pattern U (x, y) and this is assumed to be Fu (A, x, y).
(2) An output value of the filter B to the unit pattern U (x, y) is calculated in the same way as (1) and this is assumed to be Fu (B, x, y).
(3) Fu (A, x, y) and Fu (B, x, y) are compared with each other and if Fu (A, x, y)≧Fu (B, x, y), the symbol unit embedded in the unit pattern U (x, y) is determined to be unit A and if Fu (A, x, y)<Fu (B, x, y), the symbol unit embedded in the unit pattern U (x, y) is determined to be unit B.
A step width for moving the filter in (1) and (2) is arbitrary and only an output value at a typical position on the unit pattern may be calculated. Further, if the absolute value of a difference between Fu (A, x, y) and Fu (B, x, y) is less than a preliminarily determined threshold, it is permissible to consider the determination as impossible.
If the maximum value of F(A) exceeds a preliminarily determined threshold in a process of calculating convolution by shifting the filter in (1), it is permissible to determine the symbol unit embedded in the U (x, y) to be unit A and cancel the processing. In (2) also, if the maximum value of F(B) exceeds a preliminarily determined threshold, it is permissible to determine the symbol unit embedded in the U (x, y) to be unit B.
The detail of signal detection (step S304) has been described above. Return to the flow chart of
(1) Detecting a symbol embedded in each unit pattern.
(2) Restoring a data code by combining symbols.
(3) Fetching out information embedded by decoding data code.
FIGS. 19 to 21 are explanatory diagrams showing an example of data code restoration method. The restoration method is basically an inverse processing to
First, a code length data portion is taken out of a first row of the unit pattern matrix and the code length of embedded data code is obtained (step S401).
Next, a frequency Dn of embedding the data code unit and a residual Rn are calculated based on the size of unit pattern matrix and the code length of data code obtained in S401 (step S402).
Next, data code unit is taken out from a second row and following of the unit pattern matrix according to a reverse method to step S203 (step S403). In the example shown in
Next, the embedded data code is reconstructed by calculating bit certainty factor to data code unit taken out in step S403 (step S404). Hereinafter, the bit certainty factor calculation will be described.
The data code units taken out first from the second row, first column of the unit pattern matrix are named Du (1, 1) to Du (12, 1) as shown in
More specifically, the first bit of the data code is determined to be 1 if a signal detection result of Du (1, 1), Du (1, 2), . . . Du (1, 8) is 1 more often and 0 if it is 0 more often. Likewise, the second bit of the data code is determined by decision by majority according to a signal detection result of Du (2, 1), Du (2, 2), . . . Du (2, 8) and the 12th bit of the data code is determined by decision by majority according to a signal detection result of Du (12, 1), Du (12, 2), . . . Du (12, 7) (up to Du (12, 7) because Du (12, 8) does not exist).
The bit certainty factor calculation can be performed by adding an output value of the signal detection filter of
and in other cases, 0, where in case of N<Rn, addition of Df is performed up to n=1 to Rn+1.
Although a case of embedding the data code repeatedly has been described, a method not repeating the data code unit can be realized by using error correcting code when coding data.
As described above, this embodiment secures following excellent effects.
(1-1) Because the embedding information is expressed by a difference in arrangement of dots, font of original document or pitch of character interval or space interval is not changed.
(1-2) Because the dot pattern allocating the symbol and the dot pattern allocating no symbol have the same density (number of dots in a specified interval), it looks that half tone having a constant density is applied to the background of a document to the eyes of person so that existence of information is not apparent.
(1-3) Interpretation of embedded information is made difficult by secreting the dot pattern allocating the symbol and the dot pattern not allocating the dot pattern.
(1-4) Because the pattern expressing information is a collection of small dots and embedded entirely as a background of a document, even if an embedding algorithm is publicized, information embedded in a printed document cannot be falsified.
(1-5) Because the embedded signal is detected depending on a difference in the direction of wave (change of density) (without any detailed detection in the unit of a single pixel), stable information detection is enabled even if stain exists on a printed document except serious stain.
(1-6) Because the same information is embedded repeatedly and upon detection, information restoration is carried out using all the information embedded repeatedly, even if a signal portion is concealed by a large font character or the paper is stained so that information is partially lost, the embedded information can be taken out stably.
(1-7) Although the Japanese Patent Application Laid-Open No. 2003-101762 has adopted a structure of generating document image and watermark image separately, according to this embodiment, the document image and the watermark image do not need to be generated separately because the pattern can be rendered directly to an image.
This embodiment mentions an application example of the signal unit.
A signal unit of
According to the first embodiment, the signal unit is constituted of 18×18 pixels as shown in
In the signal unit of
The signal unit of
The signal unit of
According to the first embodiment, the signal unit is constituted of 18×18 pixels as shown in
The signal unit of
Accompanied by change of the signal unit on the embedding side, processing of the detection side is changed as follows. Description will be made below on what differs from the first embodiment.
Because the pattern of this embodiment has edge components in horizontal direction and vertical direction and each pattern has a frequency of a certain width, filter processing is performed to distinguish these two patterns from other patterns.
The filter processing may be carried out by scanning an entire image by moving a filter processing mask having M×N pixels (for example, 4×4 pixels) by n pixels in the X and Y directions. The scanning may be carried out in the order of raster scanning as shown in
If a printed material at 600 dpi is scanned at 400 dpi, a pattern whose high frequency components are dulled is generated as shown in
A case of scanning at 400 dpi will be described here. Because a pattern shown in
The filter processing is carried out by moving the filer processing mask so as to generate a set of outputs f of this filter processing, that is, a filter output result of executing the scanning shown in
In case of executing the filter processing by moving the filter processing mask, the filter processing mask sometimes coincides with the signal unit or sometimes deflects from the signal unit. Because the filter output value indicates a highest value when the filter processing mask coincides with the signal unit and the output value drops as it deflects from the signal unit, the signal position can be synchronized by searching for a peak value. This processing is substantially the same as the first embodiment.
According to this embodiment, following effects can be obtained as described above.
(2-1) The processing amount is small.
(2-2) Because the pattern is small, a high density can be attained.
(2-3) Others than the dot pattern are accepted.
This embodiment will explain an application example of the filter.
If the high frequency component of an edge is changed to dull by scanning a printed material or the high frequency component is dulled due to blur of black toner upon printing, the expression (1) deteriorates the detection ratio so that the edge cannot be detected well. In this case, the filter processing mask of 4×4 as shown in
The output characteristic of this filter is as shown in
Because the expressions (1) and (2) react with a pattern having the same frequency and an inverse phase (inversion of white/black), they react with pseudo white edge between black patterns so as to affect the signal detection ratio badly. To suppress the reaction to this inverse phase, the expression can be modified as indicated by the following expression (3) using inverse phase reaction suppressing means (g(x)). This example indicates a case where a 4×4 filter processing mask shown in
This output result can be processed in the same way as the first embodiment. Because the application example 2 blocks reaction to an inverse phase signal, the signal detection accuracy is improved.
Because edge detection is carried out by referring to pixels around a 4×4 pattern when using a pattern which is coupled with an adjacent pattern as shown in
The output characteristic of this filter is as shown in
Although the preferred embodiments of the watermark information embedding apparatus, the watermark information detecting apparatus, the watermark information embedding method, watermark information detecting method and printed material have been described with reference to the accompanying drawings, the present invention is not restricted to such examples. It is evident that those skilled in art can reach various modifications or corrections within the scope of technical philosophy described in the scope of claim of the present invention and it is understood that naturally those belong to the technical range of the present invention.
The filter processing may adopt a 45-degree oblique line (shape of “/” or “\”) pattern as indicated in
Although in the above described embodiment, a case of inputting the inputted image data 15 directly into the watermark image embedding portion 13 has been described, the present invention is not restricted to this. For example, it is permissible to provide an imaging portion (imaging means) for imaging the image data 15 so as to input an imaged image into the watermark image synthesizing portion 13.
The present invention can be applied to the watermark information embedding apparatus/method for embedding information in image according to electronic watermark technology and watermark information detecting apparatus/method for detecting information embedded in an image according to the electronic watermark technology and printed material.
Number | Date | Country | Kind |
---|---|---|---|
2003-381142 | Nov 2003 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP04/16300 | 11/4/2004 | WO | 5/1/2006 |