Image output device, image output method, image analysis device, image analysis method, and program
The image output device secures pattern images by rotating and transforming frequency components based on identification information and nonce values, preventing tampering and maintaining data integrity.
Patent Information
- Application Number
- JP2023021704
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
AI Technical Summary
Conventional methods for inserting digital watermarks are vulnerable to differential attacks and tampering of pattern images, risking the discovery of the relationship between data and pattern images.
An image output device and method that arranges frequency components based on identification information, converts the pattern by rotation and domain transformation, and outputs the pattern image, utilizing key information and nonce values to secure the pattern image generation process.
Prevents falsification of pattern images by making it difficult to discern the relationship between identification information and the pattern image, ensuring secure and tamper-proof digital watermarking.
Smart Images

Figure 2024115837000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image output device, an image output method, an image analysis device, an image analysis method, and a program. [Background technology]
[0002] There is a known technology for inserting a digital watermark into a content to add data such as the name of the content's author, license conditions, etc. One example of such a method for inserting a digital watermark is a method for superimposing a pattern image generated based on data onto the content image (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2004-15396 A Summary of the Invention [Problem to be solved by the invention]
[0004] In conventional methods, if there are multiple pattern images, a differential attack can be used to detect the relationship between the data and the pattern images, which can lead to the pattern images being tampered with.
[0005] The present invention has been made to solve the above-mentioned problems, and aims to provide an image output device, an image output method, an image analysis device, an image analysis method, and a program that make it possible to prevent tampering with a pattern image. [Means for solving the problem]
[0006] An image output device according to an embodiment of the present invention is characterized by having an acquisition unit that acquires identification information, a pattern setting unit that sets a pattern of frequency components in the frequency domain by arranging frequency components based on the identification information, a conversion unit that converts the pattern by rotating the pattern in the frequency domain, a pattern image generation unit that generates a pattern image by domain-transforming the converted pattern from the frequency domain to the spatial domain, and an output unit that outputs the pattern image.
[0007] It is also preferable that the image output device further comprises a key information setting section for setting key information, and the conversion section converts the pattern based on the key information.
[0008] Moreover, it is preferable that the key information setting unit sets any data as the key information.
[0009] It is also preferable that the image output device further comprises a nonce generation section which generates a nonce value, and the conversion section converts the pattern based on the nonce value.
[0010] It is also preferable that the image output device further has a key information setting unit that sets key information and / or a nonce generation unit that generates a nonce value, and the conversion unit determines the rotation angle of the pattern based on the key information and / or the nonce value.
[0011] It is preferable that the image output device further comprises a code image generating section which generates an information code image including the nonce value, and the output section outputs the information code image together with the pattern image.
[0012] Moreover, it is preferable that the code image generating unit generates an information code image indicating a URL including the nonce value as a URL parameter.
[0013] It is also preferable that the output section outputs the pattern image and the information code image in a superimposed manner.
[0014] It is also preferable that the pattern setting section allocates the frequency components to allocation positions selected based on the identification information from among a plurality of allocation positions previously set in the frequency domain.
[0015] Furthermore, the multiple placement positions are preferably arranged on one or multiple circles centered on the origin in the frequency domain.
[0016] Moreover, it is preferable that the output section outputs the pattern image and the basic image in a superimposed manner.
[0017] An image output method according to an embodiment of the present invention is an image output method executed by an image output device, and is characterized in that it includes the steps of acquiring identification information, arranging frequency components in a frequency domain based on the identification information to set a pattern of frequency components, transforming the pattern by rotating the pattern in the frequency domain, generating a pattern image by domain-transforming the transformed pattern from the frequency domain to the spatial domain, and outputting the pattern image.
[0018] A program according to an embodiment of the present invention is characterized in that it causes a computer to execute the following steps: acquire identification information; set a pattern of frequency components in the frequency domain by arranging frequency components based on the identification information; transform the pattern by rotating the pattern in the frequency domain; generate a pattern image by domain-transforming the transformed pattern from the frequency domain to the spatial domain; and output the pattern image.
[0019] An image analysis device according to an embodiment of the present invention is characterized by having an image acquisition unit that acquires a pattern image, a pattern generation unit that generates a pattern of frequency components arranged in the frequency domain by domain-transforming the pattern image from the spatial domain to the frequency domain, a conversion unit that converts the pattern by rotating the pattern in the frequency domain, an extraction unit that analyzes the converted pattern and extracts identification information, and an output unit that outputs the identification information.
[0020] An image analysis method according to an embodiment of the present invention is an image analysis method executed by an image analysis device, and is characterized by including the steps of acquiring a pattern image, transforming the pattern image from a spatial domain to a frequency domain to generate a pattern of frequency components arranged in the frequency domain, transforming the pattern by rotating the pattern in the frequency domain, analyzing the transformed pattern to extract identification information, and outputting the identification information.
[0021] A program according to an embodiment of the present invention is characterized in that it causes a computer to execute the following steps: acquire a pattern image; convert the pattern image from a spatial domain to a frequency domain to generate a pattern of frequency components arranged in the frequency domain; convert the pattern by rotating the pattern in the frequency domain; analyze the converted pattern to extract identification information; and output the identification information. Effect of the Invention
[0022] The image output device, image output method, image analysis device, image analysis method, and program according to the present invention make it possible to prevent tampering with a pattern image. [Brief description of the drawings]
[0023] [Figure 1] 1 is a schematic diagram showing a schematic configuration of an image generation system 1. FIG. [Diagram 2] FIG. 2 is a functional block diagram of the image output device 2. [Diagram 3] FIG. 2 is a functional block diagram of an image analysis device 3. [Figure 4] FIG. 2 is a schematic diagram showing an example of a pattern of frequency components. [Diagram 5] FIG. 13 is a schematic diagram showing an example of a transformed pattern in the frequency domain. [Figure 6] FIG. 13 is a diagram showing an example of a pattern image P that has been domain-converted from the frequency domain to the spatial domain. [Figure 7] 13(A) and 13(B) are schematic diagrams showing examples of output modes of a pattern image P and an information code image C. FIG. [Figure 8] FIG. 2 is a diagram showing an example of the data structure of a movement pattern table T1. [Figure 9] FIG. 11 is a flowchart showing an example of the flow of an image output process. [Figure 10] FIG. 11 is a flow diagram showing an example of the flow of an image analysis process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Hereinafter, various embodiments of the present invention will be described with reference to the drawings. It should be noted that the technical scope of the present invention is not limited to these embodiments, but covers the inventions described in the claims and their equivalents.
[0025] FIG. 1 is a schematic diagram showing a schematic configuration of an image generation system 1 according to an embodiment of the present invention. The image generation system 1 has an image output device 2 and an image analysis device 3. The image output device 2 outputs a pattern image P, which is a digital watermark based on predetermined identification information, and an information code image C, which includes information for analyzing the pattern image P. The information code image C is, for example, an image of a one-dimensional code or a two-dimensional code. The two-dimensional code is, for example, that described in Japanese Patent No. 5908113. The image analysis device 3 obtains and analyzes the pattern image P and the information code image C to obtain identification information. The image generation system 1 adds identification information to the content, which is image data or a printed matter, by inserting the pattern image P and the information code image C into the content.
[0026] 2 is a functional block diagram of the image output device 2. The image output device 2 is an information processing terminal such as a PC (Personal Computer), a server, a tablet terminal, a mobile phone, a smartphone, a portable game machine, etc. The image output device 2 has a storage unit 21, a communication unit 22, a display unit 23, a printing unit 24, and a processing unit 25.
[0027] The storage unit 21 is configured to store programs and data, and includes, for example, a semiconductor memory. The storage unit 21 stores, as programs, an operating system program, a driver program, an application program, and the like used in processing by the processing unit 25. The programs are installed in the storage unit 21 from a computer-readable, non-transitory, portable storage medium such as a CD-ROM (Compact Disc Read Only Memory) or a DVD-ROM (Digital Versatile Disc Read Only Memory).
[0028] The communication unit 22 is configured to enable the image output device 2 to communicate with other devices, and includes a communication interface circuit. The communication interface circuit included in the communication unit 22 is a communication interface circuit for a wired LAN (Local Area Network), a wireless LAN, or the like. The communication unit 22 receives data from other devices and supplies the data to the processing unit 25, and transmits data supplied from the processing unit 25 to other devices.
[0029] The display unit 23 is configured to display an image, and includes, for example, a liquid crystal display or an organic EL (Electro-Luminescence) display. The display unit 23 displays an image based on the display data supplied from the processing unit 25.
[0030] The printing unit 24 is configured to print an image on a medium and includes a printer. The printer is, for example, an inkjet printer, a laser printer, a thermal transfer printer, etc. The printing unit 24 prints an image on a medium based on the print data supplied from the processing unit 25.
[0031] The processing unit 25 is configured to comprehensively control the operation of the image output device 2, and includes one or more processors and their peripheral circuits. The processing unit 25 includes, for example, a CPU (Central Processing Unit). The processing unit 25 may include a GPU (Graphics Processing Unit), a DSP (Digital Signal Processor), an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), etc. The processing unit 25 controls the operation of each component and executes various processes so that various processes of the image output device 2 are executed in an appropriate order based on the programs stored in the storage unit 21.
[0032] The processing unit 25 has, as functional blocks, an acquisition unit 251, a pattern setting unit 252, a key information setting unit 253, a nonce generation unit 254, a hash generation unit 255, a conversion unit 256, a pattern image generation unit 257, a code image generation unit 258, and an output unit 259. Each of these units is a functional module realized by a program executed by the processing unit 25. Each of these units may be implemented in the image output device 2 as an arithmetic circuit.
[0033] 3 is a functional block diagram of the image analysis device 3. The image analysis device 3 is an information processing terminal such as a PC, a server, a tablet terminal, a mobile phone, a smartphone, a portable game machine, etc. The image analysis device 3 has a storage unit 31, a communication unit 32, an imaging unit 33, and a processing unit .
[0034] The storage unit 31 is configured to store programs and data, and includes, for example, a semiconductor memory. The storage unit 31 stores, as programs, an operating system program, a driver program, an application program, and the like used in processing by the processing unit 34. The programs are installed in the storage unit 31 from a computer-readable, non-transitory, portable storage medium such as a CD-ROM or a DVD-ROM.
[0035] The communication unit 32 is configured to enable the image analyzing device 3 to communicate with other devices, and includes a communication interface circuit. The communication interface circuit included in the communication unit 32 is a communication interface circuit such as a wired LAN or a wireless LAN. The communication unit 32 receives data from other devices and supplies the data to the processing unit 34, and transmits data supplied from the processing unit 34 to the other devices.
[0036] The imaging unit 33 is a component for generating a captured image, and includes, for example, a camera. The camera includes an imaging optical system for forming an image on a light receiving surface, photoelectric conversion elements such as CCD (Charge Coupled Device) sensors that are two-dimensionally arranged on the light receiving surface and output an electrical signal according to the amount of incident light, and an image generation circuit that generates an image based on the output of the photoelectric conversion elements. The imaging unit 33 generates an image based on a control signal supplied from the processing unit 34, and supplies the generated image to the processing unit 34.
[0037] The processing unit 34 is configured to comprehensively control the operation of the image analysis device 3, and includes one or more processors and their peripheral circuits. The processing unit 34 includes, for example, a CPU. The processing unit 34 may include a GPU, a DSP, an LSI, an ASIC, an FPGA, or the like. The processing unit 34 controls the operation of each component and executes various processes so that the various processes of the image analysis device 3 are executed in an appropriate order based on the programs stored in the storage unit 31.
[0038] The processing unit 34 has, as functional blocks, an image acquisition unit 341, a key information acquisition unit 342, a nonce acquisition unit 343, a hash generation unit 344, a pattern generation unit 345, a conversion unit 346, an extraction unit 347, and an output unit 348. Each of these units is a functional module realized by a program executed by the processing unit 34. Each of these units may be implemented in the image analysis device 3 as an arithmetic circuit.
[0039] An outline of the process in which the image output device 2 outputs a pattern image P based on the identification information will be described below with reference to Figs. 4 to 7. The image output device 2 sets a pattern of frequency components by arranging frequency components in a frequency domain, which is a two-dimensional frequency space, based on the identification information. The image output device 2 transforms the set pattern in the frequency domain. The image output device 2 generates a pattern image by domain-transforming the transformed pattern from the frequency domain to the spatial domain.
[0040] Fig. 4 is a schematic diagram showing an example of a pattern of frequency components set by the image output device 2. The arrangement positions where the frequency components are arranged are set on a plurality of circles centered on the origin in the frequency domain. In the example shown in Fig. 4, the arrangement positions are set on circles of radii R1 and R2 centered on the origin in the frequency domain. The radii R1 and R2 are set to values smaller than half the number of pixels Nx in the horizontal direction of the pattern image P to be generated and smaller than half the number of pixels Ny in the vertical direction of the pattern image P.
[0041] The image output device 2 arranges frequency components at arrangement positions selected based on identification information from among a plurality of arrangement positions previously set in the frequency domain. In the example shown in FIG. 4, six arrangement positions P1-P6 are previously set on a circle of radius R1 in a portion corresponding to the first and second quadrants of the frequency space. Frequency components are arranged at arrangement positions P1, P2, P4, and P5 (shown in white) selected based on the identification information, and frequency components are not arranged at arrangement positions P3 and P6 (shown in black) that were not selected. Here, "frequency components are arranged at arrangement positions" means that the spatial frequency spectrum at the arrangement positions is non-zero (for example, 1). Furthermore, "no frequency components are arranged at arrangement positions" means that the spatial frequency spectrum at the arrangement positions is zero. In the example shown in FIG. 4, there are cases where frequency components are arranged at each of the six arrangement positions P1-P6 and cases where they are not arranged, and therefore 64 types of identification information are expressed.
[0042] On the circle of radius R2, frequency components are arranged at all of the preset arrangement positions Q1-Q3 in the portion corresponding to the first and second quadrants of the frequency space. The arrangement positions Q1-Q3 are arranged at unequal intervals on the circle and are used by the image analyzer 3 to detect the shooting angle of the pattern image P. The spatial frequency spectrum at positions other than the arrangement positions P1-P6 and Q1-Q3 in the frequency domain is zero.
[0043] In this way, by arranging the positions on a circle centered on the origin, it becomes easier for the image analysis device 3 to detect frequency components.
[0044] Fig. 5 is a schematic diagram showing an example of a pattern transformed in the frequency domain. For example, the pattern is transformed by moving the frequency components arranged based on the identification information between a plurality of arrangement positions P1-P6 and rotating the pattern. In the example shown in Fig. 5, the frequency components are moved so as to be interchanged between arrangement positions P5 and P6. In addition, the pattern of frequency components is rotated in the positive direction (counterclockwise direction) around the origin. The movement of the frequency components and the rotation of the pattern are performed based on key information and / or a nonce value.
[0045] 6 is a diagram showing an example of a pattern image P that has been domain-converted from the frequency domain to the spatial domain. The pattern converted in the frequency domain is domain-converted to the spatial domain by a two-dimensional inverse discrete Fourier transform. Note that, before domain conversion, frequency components that are point-symmetric with the converted pattern with respect to the origin are further arranged so that the luminance value of each pixel of the pattern image P becomes a positive real value, and a frequency component (DC component) is arranged at the origin of the frequency domain.
[0046] 7(A) and (B) are schematic diagrams showing examples of output modes of a pattern image P and an information code image C. In the example shown in FIG. 7(A), the pattern image P and the information code image C are output in a superimposed state. The information code image C is an image including a nonce value used for converting the pattern of the frequency components. The pattern image P and the information code image C may be displayed in different hues, saturations, or brightness so that the pattern image P and the information code image C can be easily distinguished from each other. In the example shown in FIG. 7(A), the pattern image P and the information code image C are displayed in different brightness. In the example shown in FIG. 7(B), the pattern image P is displayed in a superimposed state on the basic image I, which is the content. The information code image C is disposed adjacent to the pattern image P.
[0047] 8 is a diagram showing an example of the data structure of the movement pattern table T1 stored in the storage unit 21 of the image output device 2. The movement pattern table T1 stores movement patterns in which frequency components are moved between a plurality of arrangement positions. The movement pattern table T1 stores the movement destination of each arrangement position for each movement pattern.
[0048] In the example shown in Fig. 8, six arrangement positions P1-P6 are set in the frequency domain, and therefore the number of movement patterns is 6!=720. For each of the 720 movement patterns, an arrangement position to which the arrangement positions P1-P6 before the movement are moved is stored. For example, movement pattern #1 indicates that the frequency components of arrangement positions P1-P4 are not moved, but are moved so that the frequency components are swapped between arrangement positions P5 and P6. Note that the frequency components of an arrangement position are moved to mean that the spatial frequency spectrum value of the arrangement position is set as the spatial frequency spectrum value of another arrangement position.
[0049] The data of the movement pattern table T1 is set in advance. Note that the storage unit 31 of the image analysis device 3 stores a table in which the before-movement and the destination of each movement pattern in the movement pattern table T1 are interchanged.
[0050] 9 is a flow diagram showing an example of the flow of image output processing executed by the image output device 2. The image output processing is processing for generating and outputting a pattern image P based on identification information. The image output processing is realized by the processing unit 25 cooperating with other components of the image output device 2 based on a program stored in the storage unit 21.
[0051] First, the acquisition unit 251 acquires identification information (step S101). The identification information is any information to be inserted into the content. For example, the identification information is information that identifies the creator or copyright holder of the content. The identification information may be information that indicates a person who has received permission to use the content or the conditions of the permission. For example, the acquisition unit 251 outputs the identification information by receiving it from another device via the communication unit 22.
[0052] Next, the pattern setting unit 252 arranges the frequency components in the frequency domain based on the identification information to set a pattern of the frequency components (step S102). The pattern setting unit 252 arranges the frequency components in arrangement positions selected based on the relationship between the identification information and the arrangement positions that have been set in advance from among a plurality of arrangement positions that have been set in advance in the frequency domain.
[0053] Next, the key information setting unit 253 sets the key information (step S103). The key information is the same information that is stored in advance in the storage unit 21 of the image output device 2 and the storage unit 31 of the image analysis device 3 so that the image output device 2 generates the pattern image P based on the identification information and the image analysis device 3 extracts the identification information from the pattern image P. In addition, the key information may be set by inputting data from the outside, such as a password, or by storing the key information in a server that requires activation and acquiring the key information through encrypted communication. It is preferable that the key information is secret data, and that the key information has a certain amount of information or more. The key information may be an arbitrarily set value or a randomly generated value. The key information setting unit 253 may also set a hash value obtained by further processing these values as the key information.
[0054] Next, the nonce generation unit 254 generates a nonce value (step S104). The nonce value is a value generated for each image output process, and is, for example, a random integer value. The nonce value may be a random character string. The nonce generation unit 254 may also generate a nonce value uniquely, rather than randomly.
[0055] Next, the hash generation unit 255 generates a hash value based on the nonce value and the key information (step S105). The hash generation unit 255 concatenates the nonce value and the key information, and generates a hash value by applying a hash function to the concatenated value. The hash generation unit 255 may generate a hash value by applying a hash function to the key information without using a nonce value.
[0056] The reason for using a hash value is to make it difficult to find regularity in the conversion of frequency components in the conversion unit described later. Therefore, the hash generation unit 255 may use a random number obtained by applying a process other than hashing to the concatenated value as the hash value.
[0057] Next, the conversion unit 256 converts the pattern of frequency components (step S106). In the frequency domain, the conversion unit 256 converts the pattern by moving the frequency components included in the pattern among a plurality of arrangement positions based on the hash value and rotating the pattern in which the frequency components have been moved.
[0058] For example, the conversion unit 256 moves the arrangement position of the frequency component based on a movement pattern stored in advance in the storage unit 21. The conversion unit 256 selects one of the multiple movement patterns stored in the movement pattern table T1 based on the hash value. For example, the conversion unit 256 selects a movement pattern based on the remainder when the hash value is divided by the number of movement patterns. In the example shown in FIG. 8, since 720 movement patterns are stored in the movement pattern table T1, the conversion unit 256 selects a movement pattern with a number corresponding to the remainder when the hash value is divided by 720. In this manner, the probability that each movement pattern is selected is equalized.
[0059] Furthermore, the conversion unit 256 determines a rotation angle based on the hash value, and rotates the frequency component pattern by the determined rotation angle around the origin. The rotation angle is an angle obtained by multiplying the numerical value extracted from the hash value by the unit angle. The numerical value extracted from the hash value is, for example, an integer value equal to or greater than 0 and less than 65536, indicated by two bytes corresponding to a predetermined byte position in a byte string indicating the hash value. In this case, the unit angle is set to an angle obtained by dividing 360 degrees by 65536. In this way, the distribution of the rotation angles becomes uniform.
[0060] Next, the pattern image generating unit 257 generates a pattern image P by domain-transforming the transformed pattern from the frequency domain to the spatial domain (step S107). The pattern image generating unit 257 arranges frequency components so as to be point-symmetric with the transformed pattern with respect to the origin, so that pixel values of the pattern image P in the spatial domain become real values when the pattern is domain-transformed. The pattern image generating unit 257 also arranges frequency components at the origin, so that pixel values of the pattern image P in the spatial domain become positive real values when the pattern is domain-transformed. The pattern image generating unit 257 generates the pattern image P by applying a two-dimensional inverse discrete Fourier transform to the pattern of frequency components.
[0061] Next, the code image generating unit 258 generates an information code image C including the nonce value (step S108). For example, the code image generating unit 258 generates an information code image C indicating a URL including the nonce value as a URL (Uniform Resource Locator) parameter. The URL including the nonce value as a URL parameter is, for example, a URL such as "http: / / test.sample / mypege.html?nonce=12321". The code image generating unit 258 generates a two-dimensional code image in which the URL is encoded according to a predetermined method. The URL can be associated with, for example, content that explains the image analysis operation of the pattern image P. By making the information code image indicating the URL including the nonce value as a URL parameter in this way, the nonce value can be embedded while the URL is used in association with some content, and the limited printing space can be effectively utilized.
[0062] Next, the output unit 259 outputs the information code image C and the pattern image P (step S109). For example, the output unit 259 controls the printing unit 24 to print the information code image C and the pattern image P on a medium, thereby outputting them. The output unit 259 may output the information code image C and the pattern image P by displaying them on the display unit 23. The output unit 259 may output the information code image C and the pattern image P by transmitting image data of the information code image C and the pattern image P to another device via the communication unit 22. The output unit 259 outputs the pattern image P and the information code image C by superimposing them. By superimposing them in this way, it is possible to effectively utilize a limited space. The output unit 259 may output the pattern image P and the information code image C by arranging them close to each other without superimposing them. When the pattern image P and the information code image C are superimposed or arranged close to each other, image analysis is possible with one shooting. The output unit 259 may output the pattern image P and the basic image, which is the content, by superimposing them. With the above, the image output process is completed.
[0063] 10 is a flow diagram showing an example of the flow of image analysis processing executed by the image analysis device 3. The image analysis processing is processing for analyzing a pattern image and extracting identification information. The image analysis processing is realized by the processing unit 34 cooperating with other components of the image analysis device 3 based on a program stored in the storage unit 31.
[0064] First, the image acquiring unit 341 acquires the information code image C and the pattern image P (step S201). For example, the image acquiring unit 341 controls the imaging unit 33 to acquire the information code image C and the pattern image P by capturing an image of a medium on which the information code image C and the pattern image P are printed or the display unit 23 on which the information code image C and the pattern image P are displayed. The image acquiring unit 341 may acquire the information code image C and the pattern image P by receiving them via the communication unit 32.
[0065] Next, the key information acquisition unit 342 acquires the key information stored in the storage unit 31 (step S202). The key information stored in the storage unit 31 is the same as the key information stored in the storage unit 21.
[0066] Next, the nonce obtaining unit 343 obtains a nonce value from the information code image C (step S203). For example, the nonce obtaining unit 343 obtains a URL from the information code image C by analyzing the information code image C using a known analysis technique. The nonce obtaining unit 343 obtains a nonce value included as a parameter in the obtained URL.
[0067] Next, the hash generation unit 344 generates a hash value based on the nonce value and the key information for decrypting the identification information (step S204). The hash generation unit 344 generates a hash value by concatenating the nonce value and the key information acquired by the key information acquisition unit 342 and applying a hash function to the concatenated value. The hash function applied by the hash generation unit 344 is the same as the hash function applied in step S105 of the image output process. As a result, the hash generation unit 344 generates a hash value that is the same as the hash value generated in step S105.
[0068] Next, the pattern generating unit 345 performs domain transformation of the pattern image P from the spatial domain to the frequency domain to generate a pattern of frequency components arranged in the frequency domain (step S205). The pattern generating unit 345 applies a two-dimensional discrete Fourier transform to the pattern image P to generate a pattern of frequency components.
[0069] Next, the conversion unit 346 converts the pattern of frequency components in the frequency domain based on the hash value (step S206). The conversion unit 346 converts the pattern by rotating the pattern in the frequency domain based on the hash value and moving the frequency components included in the rotated pattern between a plurality of arrangement positions.
[0070] For example, the conversion unit 346 determines a rotation angle based on the hash value with the origin as the center, and rotates the pattern of frequency components by the determined rotation angle. The rotation angle is an angle obtained by multiplying the numerical value extracted from the hash value by a predetermined unit angle. The numerical value extracted from the hash value is, for example, an integer value equal to or greater than 0 and less than 65536, which is indicated by two bytes corresponding to a predetermined byte position in a byte sequence indicating the hash value. In this case, the unit angle is set to, for example, the negative value of an angle obtained by dividing 360 degrees by 65536. The rotation angle determined in this manner is the negative value of the rotation angle determined in step S106 of the image output process. That is, the conversion unit 346 rotates the pattern rotated in step S106 inversely so as to return it to its original state.
[0071] Furthermore, the conversion unit 346 moves the arrangement position of the frequency component based on a movement pattern previously stored in the storage unit 31. The conversion unit 256 selects one of the multiple movement patterns stored in the storage unit 31 based on a hash value. The movement pattern stored in the storage unit 31 is a pattern in which the pre-movement and movement destination in the movement pattern table T1 stored in the storage unit 21 are swapped. That is, the conversion unit 346 reverses the arrangement position of the frequency component moved in step S105 so that it is restored to its original position.
[0072] Furthermore, the conversion unit 346 corrects the pattern of frequency components based on the arrangement of frequency components for detecting the photographing angle of the pattern image. For example, the conversion unit 346 extracts a predetermined number of frequency components close to the origin of the frequency space from among the frequency components included in the pattern whose arrangement positions of the frequency components have been moved. The conversion unit 346 corrects the pattern by rotating and enlarging / reducing the pattern so that the distance from the origin of the extracted frequency components becomes R2 and the arrangement positions of the extracted frequency components become the predetermined arrangement positions (arrangement positions Q1-Q3 shown in Figs. 4-5).
[0073] Next, the extraction unit 347 analyzes the converted pattern and extracts identification information (step S207). The extraction unit 347 removes the frequency components arranged in the third quadrant, the fourth quadrant, and the origin from the converted pattern. The extraction unit 347 extracts identification information corresponding to the arrangement positions of the remaining frequency components from the relationship between the pattern of frequency components and the identification information stored in advance.
[0074] Next, the output unit 348 outputs the extracted identification information (step S208). For example, the output unit 348 outputs the identification information by transmitting it to another device via the communication unit 32. This ends the image analysis process.
[0075] As described above, the image output device 2 converts the pattern of frequency components based on the identification information by rotating it, and then generates a pattern image by performing domain conversion from the frequency domain to the spatial domain. By rotating the pattern in the frequency domain, the relationship between the identification information and the pattern image becomes difficult to detect. Therefore, the image output device 2 makes it possible to prevent tampering with the pattern image.
[0076] Furthermore, the image output device 2 converts the pattern of frequency components based on key information. By converting the pattern based on key information that is kept secret from devices or persons different from the image output device 2 and the image analysis device 3, the relationship between the identification information and the pattern image becomes difficult to detect. In this way, the magnitude of the rotation angle of the pattern becomes random, making it even more difficult to detect the relationship between the identification information and the pattern image. Therefore, the image output device 2 can more appropriately prevent tampering with the pattern image.
[0077] Furthermore, the image output device 2 converts the pattern of frequency components based on the nonce value and key information. When the key information and identification information are the same, the pattern of frequency components set by the image output device 2 will be the same, but since the pattern image changes significantly by changing the nonce value every time an image is output, the relationship between the identification information and the pattern image becomes more complicated and difficult to detect. Therefore, the image output device 2 can more appropriately prevent tampering with the pattern image.
[0078] Furthermore, the image output device 2 outputs an information code image including a nonce value together with the pattern image. In this way, the image analysis device 3 can capture an information code image and obtain a nonce value at the same time as capturing the pattern image. Therefore, the image output device 2 makes it easy for a person with legitimate authority to analyze the pattern image.
[0079] The image analyzing device 3 transforms the pattern image from the spatial domain to the frequency domain, and further transforms the pattern by rotating the pattern of frequency components in the frequency domain, and extracts the identification information from the transformed pattern. In this way, the image analyzing device 3 can prevent tampering with the pattern image.
[0080] The image generation system 1 may have the following modified examples.
[0081] In the above description, in step S102 of the image output process, the frequency components are arranged at positions selected based on the identification information from among a plurality of positions set on a circle with a radius R1, but this is not limited to the example. The positions at which the frequency components are arranged based on the identification information may be set not on a single circle but on a plurality of circles with mutually different radii.
[0082] In the above description, the frequency components for detecting the shooting angle of the pattern image are arranged at positions set on a circle with a radius R2, but this is not limited to the example. The frequency components for detecting the shooting angle of the pattern image do not have to be arranged. Furthermore, the positions of the frequency components for detecting the shooting angle may be set on the same circle as the positions of the frequency components based on the identification information. In other words, multiple positions may be set on one circle centered on the origin in the frequency domain.
[0083] In the above description, in step S106 of the image output process, the pattern is converted based on the hash value generated based on the nonce value and the key information, but the present invention is not limited to this example. The conversion unit 256 may convert the pattern based only on the nonce value, not based on the key information. In this case, the image output device 2 may not have the key information setting unit 253. Also, in this case, in step S206 of the image analysis process, the conversion unit 346 converts the pattern based only on the nonce value, not based on the key information. Similarly, the conversion unit 256 may convert the pattern based only on the key information, not based on the nonce value. In this case, the image output device 2 may not have the nonce generation unit 254. Also, in this case, in step S206 of the image analysis process, the conversion unit 346 converts the pattern based only on the key information, not based on the nonce value.
[0084] In the above description, in step S106 of the image output process, the frequency components arranged based on the identification information are moved between a plurality of arrangement positions, but the frequency components arranged to detect the shooting angle may also be moved. In this way, the relationship between the identification information and the pattern image becomes more difficult to detect, and tampering with the pattern image is more appropriately prevented. At this time, the frequency components may be moved between the arrangement positions where the frequency components are arranged based on the identification information and between the arrangement positions where the frequency components are arranged to detect the shooting angle, or the frequency components may be moved between all arrangement positions without distinguishing between them. In this case, in step S206 of the image analysis process, the conversion unit 346 moves the arrangement positions of the frequency components for detecting the shooting angle back to their original positions.
[0085] In the above description, the pattern of frequency components is rotated in step S106 of the image output process, but only some of the frequency components included in the pattern may be rotated instead of all of them. For example, the conversion unit 256 may rotate only the frequency components arranged based on the identification information, and may not rotate the frequency components for detecting the shooting angle. In this case, in step S206 of the image analysis process, the conversion unit 346 reversely rotates only the frequency components arranged based on the identification information.
[0086] Furthermore, the frequency components may be rotated by a different angle for each circle in which the arrangement position is set, that is, according to the distance between the arrangement position and the origin. For example, the conversion unit 256 extracts integer values indicated by two bytes corresponding to different byte positions for each of a plurality of circles from a byte sequence indicating a hash value. The conversion unit 256 rotates the frequency components by an angle obtained by multiplying the extracted integer value by a unit angle. In this way, the relationship between the identification information and the pattern image becomes more difficult to detect, and tampering with the pattern image is more appropriately prevented. In this case, in step S206 of the image analysis process, the conversion unit 346 rotates the frequency components by a different angle for each circle in which the arrangement position of the frequency components is set.
[0087] In the above description, in step S106 of the image output process, the frequency components included in the pattern are moved between a plurality of arrangement positions, and the pattern with the moved frequency components is rotated to convert the pattern, but this is not limited to an example. The conversion unit 256 may only rotate the pattern without moving the frequency components between a plurality of arrangement positions. In this case, in step S206 of the image analysis process, the conversion unit 346 reversely rotates the frequency components without reversely moving them.
[0088] In the above description, an information code image indicating a URL including a nonce value as a parameter is generated in step S108 of the image output process, but this is not limited to the example. The code image generating unit 257 may generate an information code image by encoding a character string indicating a nonce value, for example. The code image generating unit 257 may also generate an image including the character string itself indicating the nonce value.
[0089] The functions of the image output device 2 and the image analysis device 3 described above may be realized by a plurality of devices.
[0090] It should be understood by those skilled in the art that various changes, substitutions, and modifications can be made to the present invention without departing from the scope of the present invention. For example, the above-described embodiments and modifications may be appropriately combined within the scope of the present invention. [Explanation of symbols]
[0091] 2. Image output device 251 Acquisition Department 252 Pattern setting section 253 Key information setting section 254 Nonce Generation Unit 255 Hash generator 256 conversion unit 257 Pattern Image Generator 258 Code Image Generator 259 Output section 3. Image analysis equipment 341 Image Acquisition Unit 342 Key information acquisition unit 343 Nonce Acquisition Department 344 Hash Generation Unit 345 Pattern Generator 346 Conversion Unit 347 Extraction part 348 Output section
Claims
1. An acquisition unit that acquires identification information; a pattern setting unit that arranges frequency components in a frequency domain based on the identification information and sets a pattern of the frequency components; a transform unit for transforming the pattern by rotating the pattern in the frequency domain; a pattern image generating unit that generates a pattern image by domain-transforming the converted pattern from a frequency domain to a spatial domain; an output unit that outputs the pattern image; 1. An image output device comprising:
2. A key information setting unit that sets key information is further included, The conversion unit converts the pattern based on the key information.
2. The image output device according to claim 1.
3. Further comprising a nonce generator for generating a nonce value, The conversion unit converts the pattern based on the key information and the nonce value.
3. The image output device according to claim 2.
4. A key information setting unit that sets key information, and / or Further comprising a nonce generator for generating a nonce value, The conversion unit determines a rotation angle of the pattern based on the set key information and / or the generated nonce value.
2. The image output device according to claim 1.
5. A code image generating unit that generates an information code image including the nonce value, The output unit outputs the information code image together with the pattern image.
4. The image output device according to claim 3.
6. the code image generation unit generates the information code image indicating a URL including the nonce value as a URL parameter.
6. The image output device according to claim 5.
7. the output unit outputs the pattern image and the information code image in a superimposed manner.
6. The image output device according to claim 5.
8. the pattern setting unit arranges the frequency components at arrangement positions selected based on the identification information from among a plurality of arrangement positions previously set in a frequency domain.
2. The image output device according to claim 1.
9. The plurality of placement positions are arranged on one or more circles centered on an origin in the frequency domain.
9. The image output device according to claim 8.
10. The output unit outputs the pattern image and the basic image in a superimposed manner.
2. The image output device according to claim 1.
11. An image output method executed by an image output device, comprising: Obtaining identification information, In a frequency domain, frequency components are arranged based on the identification information to set a pattern of frequency components; Transforming the pattern by rotating the pattern in the frequency domain; A pattern image is generated by domain-transforming the transformed pattern from the frequency domain to the spatial domain; outputting the pattern image; 23. An image output method comprising:
12. Obtaining identification information, In a frequency domain, frequency components are arranged based on the identification information to set a pattern of frequency components; Transforming the pattern by rotating the pattern in the frequency domain; A pattern image is generated by domain-transforming the transformed pattern from the frequency domain to the spatial domain; outputting the pattern image; A program that causes a computer to execute the following:
13. an image acquisition unit for acquiring a pattern image; a pattern generating unit that generates a pattern of frequency components arranged in the frequency domain by domain-transforming the pattern image from a spatial domain to a frequency domain; a transform unit for transforming the pattern by rotating the pattern in the frequency domain; an extractor for analyzing the converted pattern to extract identification information; an output unit that outputs the identification information; An image analysis device comprising:
14. An image analysis method executed by an image analysis device, comprising: Acquire a pattern image; generating a pattern of frequency components arranged in the frequency domain by domain-transforming the pattern image from the spatial domain to the frequency domain; Transforming the pattern by rotating the pattern in the frequency domain; Analyzing the transformed pattern to extract identifying information; outputting the identification information; An image analysis method comprising:
15. Acquire a pattern image; generating a pattern of frequency components arranged in the frequency domain by domain-transforming the pattern image from the spatial domain to the frequency domain; Transforming the pattern by rotating the pattern in the frequency domain; Analyzing the transformed pattern to extract identifying information; outputting the identification information; A program that causes a computer to execute the following:
Citation Information
Patent Citations
Apparatus and method for processing electronic watermark and electronic watermark processing program
JP2003219140A
Electronic watermark inserting method and apparatus thereof, and electronic watermark detecting method and apparatus thereof
JP2004015396A
Electronic watermark inserting method, electronic watermark inserting apparatus, and electronic watermark inserting program, and electronic watermark detecting method, electronic watermark detecting apparatus, and electronic watermark detection program
JP2006050069A
Audio watermark detector
US20020107691A1
