This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2008-322378, filed on Dec. 18, 2008, the entire contents of which are incorporated herein by reference.
The technology to be disclosed relates to a marker attaching technique for attaching to an image a positioning marker for detecting a specific area in an image printed on an analog medium such as paper etc. The technology can be used in, for example, indicating the position of an encrypted/coded area when a part of a printed image or a digital image is encrypted or coded to prevent information leakage.
In the growing computerization society, there is a serious problem of the leakage of confidential information, and the development of the technology for preventing information leakage is strongly demanded. For example, relating to digital data, the technology of encrypting data has been developed not reveal the contents of the data to the third parties although the data is received by the third parties, and has been utilized as effective means for preventing information leakage.
On the other hand, the effective technology of preventing information leakage of printed matter on paper media etc. has not been developed or commercialized. Practically, it is said that about half of the information leakage relates to printed matter, and the development of the technology for preventing the information leakage from printed matter as well as digital data is also demanded seriously. Practical examples of the demand for the measures against the information leakage from printed matter can relate to a bill issued when goods are purchased, a specification of a credit card etc., a medical record in hospital, a test record in school, books, etc.
In encrypting the data on printed matter, a marker recognition technology for identifying an encrypted part as well as an encrypting method is required.
As the first conventional technique relating to the encrypting technology and the marker recognition technology for printed matter, a two-dimensional code technique for representing binary data as an image and printing it on an analog medium is well known. Representing data as an image in this technique is realized by expressing binary data as white and black squares in a specified size and arranging the squares in matrix form. Furthermore, to indicate the position of the image in a decoding operation, a positioning marker is attached to printed matter at the position specified in the matrix. On the basis of the positioning marker, the image is captured by a scanner, a camera, etc., and embedded information can be decoded.
As the second conventional technique relating to the marker recognition technology, a marker indicating the position of an encrypted area is arranged at the periphery of the area. As with the case of the two-dimensional code, the coordinates of an encrypted area can be obtained by a reader detecting the marker arranged at the encrypted area, thereby performing the decoding process.
When an encrypted image is decoded, it is necessary to recover the positioning marker attached at the periphery of the encrypted area to the data before the marker is attached. As the third conventional technique relating to the process, there is the technology of recovering the marker at the periphery to the state before attaching the marker by the interpolating process using the value of the pixel adjacent to the information and the marker embedded in the header of an image file.
Relating to each of the above-mentioned techniques, the following patent documents are disclosed.
Patent Document 1: Japanese Patent No. 2938338
Patent Document 2: Japanese Laid-open Patent Application No. 2008-301044
Patent Document 3: Japanese Laid-open Patent Application No. 2009-232233
In each of the above-mentioned conventional techniques, there occurs a problem when an area to be encrypted is small when, for example, only one line of sentence described by small characters, only one cell in a table is to be encrypted, etc.
Since the amount of information to be embedded for each unit area is limited in the above-mentioned first technique, the technique cannot be applied.
There has been the problem that the markers cannot be detected because the markers arranged at the peripheries of areas overlap each other in the above-mentioned second and third technique.
The technology to be disclosed is based on the marker attaching apparatus for attaching to an image a positioning marker for detecting a specific area in the image.
An area size detection unit detects the size of an area to which a positioning marker is attached.
A marker adjustment unit adjusts a positioning marker depending on the detected size of the area.
A marker attaching unit attaches an adjusted positioning marker to an image.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
The embodiment of the present invention is described below in detail with reference to the attached drawings.
As illustrated in
As illustrated in
The area size detection unit 102-1 detects an area size from the specified area coordinates 105. Practically, the area size detection unit 102-1 calculates the height and the width of the area from the coordinates of the four corners indicated by the area coordinates 105. Otherwise, the area size detection unit 102-1 can calculate the length of a diagonal line and an area.
A marker adjustment unit 102-2 adjusts the positioning marker attached to the periphery of an area on the basis of the input area coordinates 105.
Described below is the first embodiment of the operation of the marker adjustment unit 102-2 illustrated in
The area size detected by the area size detection unit 102-1 illustrated in
The marker adjustment unit 102-2 determines the area size (step S301 in
If the area size is equal to or exceeds a predetermined threshold, the marker adjustment unit 102-2 selects the original positioning marker (steps S301→S302 in
If the area size is smaller than the threshold, the marker adjustment unit 102-2 selects a positioning marker of a size smaller than the original. Otherwise, the marker adjustment unit 102-2 adjusts the size of the original positioning marker for a smaller marker (steps S301→S303 in
For example, as illustrated in
If the area is so small that the positioning markers overlap one another, the marker adjustment unit 102-2 uses the original positioning markers 302 and small positioning markers 303 and 304 for a small area 301 as illustrated in
Otherwise, the marker adjustment unit 102-2 uses the original positioning markers 402 and positioning markers 403 obtained by reducing the original positioning markers 402 for a small area 401 as illustrated in
The marker adjustment unit 102-2 can also store in advance positioning markers in various sizes, and select a marker in an appropriate direction from among the stored makers.
In
As described above, by the operation according to the first embodiment of the marker adjustment unit 102-2 illustrated in
The second embodiment of the operation of the marker adjustment unit 102-2 illustrated in
As in the case of the first embodiment illustrated in
The marker adjustment unit 102-2 determines the area size (step S801 in
If the area size is equal to or exceeds a predetermined threshold, the marker adjustment unit 102-2 selects the original positioning marker (steps S801→S802 in
On the other hand, if the area size is smaller than the threshold, the marker adjustment unit 102-2 selects the positioning marker in the direction different from the original. Otherwise, the marker adjustment unit 102-2 adjusts the direction of the original positioning marker by rotating it (steps S801→S803 in
In the second embodiment, when the area is so small that the markers overlap one another, the marker adjustment unit 102-2 adjusts the directions of the markers so that they do not overlap one another.
That is, if the area is so small that the positioning markers overlap one another, the marker adjustment unit 102-2 selects a positioning marker 902 or 1002 whose normal direction can be changed on a small area 901 or 1001 as illustrated in
The marker adjustment unit 102-2 stores in advance the positioning marker in various directions so that an appropriate marker can be selected from among the stored markers.
As described above, in the operation according to the second embodiment of the marker adjustment unit 102-2 illustrated in
Described below is the third embodiment of the operation of the marker adjustment unit 102-2 in
As in the case according to the first or second embodiment described above with reference to
The marker adjustment unit 102-2 determines the area size (step S1101 in
If the area size is equal to or exceeds a predetermined threshold, the marker adjustment unit 102-2 selects the original positioning marker (steps S1101→S1102 in
On the other hand, if the area size is smaller than the threshold, the marker adjustment unit 102-2 combines the positioning markers so that the characteristics cannot be destroyed, thereby generating a new positioning marker (steps S1101→S1103 in
As illustrated in
The marker adjustment unit 102-2 compares the area size input from the area size detection unit 102-1 in
As a result, if the marks of the positioning markers do not overlap one another, the marker adjustment unit 102-2 selects the original positioning marker (steps S1401→S1402 in
On the other hand, if the marks of the positioning marker overlap one another, the marker adjustment unit 102-2 performs the processes in steps S1403 and S1405 in
A positioning marker has a cyclic pattern as illustrated in
As illustrated in
Under the conditions, if the positioning markers are attached to contact the outside of the four corners of the area as illustrated in
As illustrated in
The above-mentioned pixel increasing/decreasing process is performed in steps S1403 and S1404 in
That is, the marker adjustment unit 102-2 in
|area size−(length of one cycle of marker)×N| (1)
where the area size is defined as a sum of the pixel size of the area itself and the pixel width of the positioning marker. In the example in
Next, the marker adjustment unit 102-2 expands or reduces the positioning marker by nearest neighbor method at the expansion/reduction rate calculated by the equation (2) below (step S1404 in
Expansion/reduction rate=(area size)/(length of one cycle of marker)×N (2)
When N=4 in the example above, expansion/reduction rate=35/(10×4)=35/40 (reduction). As a result, for example, the 5-pixel patterns of the positioning markers in
On the other hand, when N=3 in the example above, expansion/reduction rate=35/(10×3)=35/30 (reduction). As a result, for example, the 5-pixel patterns of the positioning markers in
The marker adjustment unit 102-2 selects the positioning marker expanded or reduced as described above (step S1405 in
In the third embodiment, when the area is so small that markers overlap one another, the marker adjustment unit 102-2 can attaches a marker that does not degrade the detection precision by attaching a marker obtained by combining a plurality of markers.
The computer illustrated in
The CPU 1901 controls the entire computer. The memory 1902 such as RAM etc. temporarily stores the program or data stored in the external storage device 1905 (or the portable record medium 1909) when the program is executed, the data is updated, etc. The CPU 1901 controls the entire computer by reading the program to the memory 1902 and executes it.
The input device 1903 can be, for example, a keyboard, a mouse, etc. and their interface control device. The input device 1903 detects an inputting operation by a keyboard, a mouse, etc. by a user, and notifies the CPU 1901 of the detection result.
The output device 1904 can be a display device, a printing device, etc. and their interface control device. The output device 1904 outputs data transmitted by the control of the CPU 1901 to a display device and a printing device.
The external storage device 1905 is, for example, a hard disk storage device, and mainly used in storing various data and programs.
The portable record medium drive device 1906 accommodates the portable record medium 1909 such as an optical disk, SDRAM, CompactFlash, etc., and has a role auxiliary to the external storage device 1905.
The network connection device 1907 connects a communication circuit of, for example, a LAN (local area network) or a WAN (wide area network).
The system according to the embodiments is realized by executing the program having a necessary function by the CPU 1901. The program can be distributed after recorded on the external storage device 1905 and the portable record medium 1909, or can be acquired over a network by the network connection device 1907.
According to the disclosed technology, when the size of a specified area is large, a positioning marker is attached to a specific position in an image in a normal system. When the size of the specified area is small, a marker of a size, direction, and pattern can be attached depending on the size of an area.
Thus, a positioning marker can be attached to a small area by adjusting the characteristic of a marker by the size of an area.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification related to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2008-322378 | Dec 2008 | JP | national |