Apparatus, method, program, and storage medium
AssigneeCanon Kabushiki Kaisha
InventorHirochika Sato
Life of this patent
Estimating the term…
Abstract
An object of the present invention is to reduce a processing time and make a printed image look better in appearance in processing of printing a two-dimensional code again. In order to achieve the above-described object, an apparatus according to the present invention includes decoding unit for decoding a non-upright two-dimensional code in a manuscript image, and synthesis unit for creating a two-dimensional code by using information obtained by the decoding, to synthesize the two-dimensional code in an upright state onto the manuscript image.
Claims13
An image forming apparatus comprising:
- a decoding unit operable to decode a first two-dimensional code serving as a non-upright two-dimensional code in a manuscript image;
- a synthesis unit operable to create a second two-dimensional code serving as an upright two-dimensional code by using information obtained by the decoding unit, to synthesize the second two-dimensional code onto the printed image data;
- and
- a calculating unit operable to calculate a rotation angle of the first two-dimensional code,
- wherein the synthesis unit determines whether the rotation angle of the first two-dimensional code is greater than a rotation angle threshold value (θ) determined by a threshold length Z, and, if the rotation angle of the first two-dimensional code is greater than the rotation angle threshold value (θ), the synthesis unit synthesizes the second two-dimensional code onto the printed image data by rotating the second two-dimensional code by the rotation angle of the first two-dimensional code, and, if the rotation angle of the first two-dimensional code is less than or equal to the rotation angle threshold value (θ), the synthesis unit synthesizes the second two-dimensional code onto the printed image data without rotating the second two-dimensional code, and
- wherein the rotation angle threshold value (θ) satisfies an equation:
- A(sin θ+cos θ−1)≦Z,
- A being a length of one side of the first two-dimensional code in millimeters and the threshold length Z being in millimeters.
An image forming method comprising:
- decoding a first two-dimensional code serving as a non-upright two-dimensional code in a manuscript image;
- creating a second two-dimensional code serving as an upright two-dimensional code by using information obtained by the decoding, to synthesize the second two-dimensional code onto printed image data;
- calculating a rotation angle of the first two-dimensional code;
- and
- determining whether the rotation angle of the first two-dimensional code is greater than a rotation angle threshold value (θ) determined by a threshold length Z;
- wherein, if the rotation angle of the first two-dimensional code is determined to be greater than the rotation angle threshold value (θ), the second two-dimensional code is synthesized onto the printed image data by rotating the second two-dimensional code by the rotation angle of the first two-dimensional code,
- wherein, if the rotation angle of the first two-dimensional code is determined to be less than or equal to the rotation angle threshold value (θ), the second two-dimensional code is synthesized onto the printed image data without rotating the second two-dimensional code, and
- wherein the rotation angle threshold value (θ) satisfies an equation:
- A(sin θ+cos θ−1)≦Z,
- A being a length of one side of the first two-dimensional code in millimeters and the threshold length Z being in millimeters.
A computer-readable storage medium storing a computer-executable program that, when executed by a computer processor, causes the computer processor to perform an image forming method, the method comprising:
- decoding a first two-dimensional code serving as a non-upright two-dimensional code in a manuscript image;
- creating a second two-dimensional code serving as an upright two-dimensional code by using information obtained by the decoding, to synthesize the second two-dimensional code onto printed image data;
- and
- calculating a rotation angle of the first two-dimensional code;
- and
- determining whether the rotation angle of the first two-dimensional code is greater than a rotation angle threshold value (θ) determined by a threshold length Z;
- wherein, if the rotation angle of the first two-dimensional code is determined to be greater than the rotation angle threshold value (θ), the second two-dimensional code is synthesized onto the printed image data by rotating the second two-dimensional code by the rotation angle of the first two-dimensional code,
- wherein, if the rotation angle of the first two-dimensional code is determined to be less than or equal to the rotation angle threshold value (θ), the second two-dimensional code is synthesized onto the printed image data without rotating the second two-dimensional code, and
- wherein the rotation angle threshold value (θ) satisfies an equation:
- A(sin θ+cos θ−1)≦Z,
- A being a length of one side of the first two-dimensional code in millimeters and the threshold length Z being in millimeters.
Dependencies are inferred from the claim text.