Document image generating apparatus, document image generating method and computer program
First Claim
1. A document image generating apparatus, comprising:
- an accepting unit that accepts an original image;
an extracting unit that extracts an original text from the original image accepted by the accepting unit;
a translation generating unit that generates translation corresponding to the original text extracted by the extracting unit;
a translation color setting unit that sets a color of the translation generated by the translation generating unit; and
a document image generating unit that generates a document image in which the translation generated by the translation generating unit is added with the color set by the translation color setting unit to the original image accepted by the accepting unit, whereinin the document image generated by the document image generating unit, a color of the original text is different from the color of the translation;
the apparatus further comprising;
a layer generating unit that generates an original layer representing the original image accepted by the accepting unit and a translation layer representing the translation generated by the translation generating unit, wherein the document image generating unit composites the original layer and the translation layer generated by the layer generating unit, in order to generate the document image;
a determining unit that determines whether the color of original text extracted by the extracting unit satisfies a predetermined condition or not; and
an original text color changing unit that changes the color of original text in the document image to be a color which satisfies the predetermined condition when the determining unit determines that the color of original text extracted by the extracting unit does not satisfy the predetermined condition, and that fails to change the color of original text in the document image to be the color which satisfies the predetermined condition when the determining unit determines that the color of original text extracted by the extracting unit satisfies the predetermined condition, wherein the color set by the translation color setting unit does not satisfy the predetermined condition.
1 Assignment
0 Petitions
Accused Products
Abstract
It is expected to provide a document image generating apparatus, a document image generating method and a computer program that can keep a layout of original text present in the original text image and then can improve the readability of original text and the readability annotation corresponding to the original text (e.g., translation).
A translation 421 of original text 411 is aligned at the interline space between the original text 411 at the first line and the original text 412 at the second line. When the interline space is narrow as shown in FIG. 4B, the original text 411 overlays the translation 421. At that time, the color regarding the original text 411 is changed to be a low visibility color, and the color regarding the translation 421 is changed to be a high visibility color.
-
Citations
17 Claims
-
1. A document image generating apparatus, comprising:
-
an accepting unit that accepts an original image; an extracting unit that extracts an original text from the original image accepted by the accepting unit; a translation generating unit that generates translation corresponding to the original text extracted by the extracting unit; a translation color setting unit that sets a color of the translation generated by the translation generating unit; and a document image generating unit that generates a document image in which the translation generated by the translation generating unit is added with the color set by the translation color setting unit to the original image accepted by the accepting unit, wherein in the document image generated by the document image generating unit, a color of the original text is different from the color of the translation; the apparatus further comprising; a layer generating unit that generates an original layer representing the original image accepted by the accepting unit and a translation layer representing the translation generated by the translation generating unit, wherein the document image generating unit composites the original layer and the translation layer generated by the layer generating unit, in order to generate the document image; a determining unit that determines whether the color of original text extracted by the extracting unit satisfies a predetermined condition or not; and an original text color changing unit that changes the color of original text in the document image to be a color which satisfies the predetermined condition when the determining unit determines that the color of original text extracted by the extracting unit does not satisfy the predetermined condition, and that fails to change the color of original text in the document image to be the color which satisfies the predetermined condition when the determining unit determines that the color of original text extracted by the extracting unit satisfies the predetermined condition, wherein the color set by the translation color setting unit does not satisfy the predetermined condition. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A document image generating method, comprising steps of:
-
accepting an original image; extracting an original text from the accepted original image; generating a translation corresponding to the extracted original text; setting a color of the generated translation; generating an original layer representing the original image and a translation layer representing the translation and compositing the original layer and the translation layer; determining whether the color of original text satisfies a predetermined condition or not; changing the color of original text in the document image to be a color which satisfies the predetermined condition when the color of original text does not satisfy the predetermined condition, and that fails to change the color of original text in the document image to be the color which satisfies the predetermined condition when the color of original text satisfies the predetermined wherein the color set by a translation color setting unit does not satisfy the predetermined condition; and generating a document image in which the generated translation is added with the set color to the accepted original image, wherein in the generated document image, a color of the original text is different from the color of the translation.
-
-
17. A non-transitory computer readable medium having stored thereon computer executable program for processing data, wherein
the computer program when executed causes a computer system to execute steps of: -
accepting an original image; extracting an original text from the accepted original image; generating a translation corresponding to the extracted original text; setting a color of the generated translation; generating a document image in which the generated translation is added with the set color to the accepted original image, wherein in the generated document image, a color of the original text is different from the color of the translation; generating an original layer representing the original image and a translation layer representing the translation and compositing the original layer and the translation layer; determining whether the color of original text satisfies a predetermined condition or not; and changing the color of original text in the document image to be a color which satisfies the predetermined condition when the color of original text does not satisfy the predetermined condition, and that fails to change the color of original text in the document image to be the color which satisfies the predetermined condition when the color of original text satisfies the predetermined wherein the color set by a translation color setting unit does not satisfy the predetermined condition.
-
Specification