2. The image processing apparatus according to claim 1 , wherein the translation unit translates the translation-target character string while treating the code representative of the writing as a noun.
1. An image processing apparatus comprising: an image receiving unit that receives an image including a writing; a writing detection unit that detects a position of the writing in the image received by the image receiving unit; a writing deletion unit that deletes the writing from the received image based on the position of the writing detected by the writing detection unit; a character recognition unit that recognizes characters in the image from which the writing has been deleted by the writing deletion unit; a translation target character string generation unit that generates a translation-target character string by inserting a code representative of the writing into a result of the recognition by the character recognition unit based on the position of the writing detected by the writing detection unit; a translation unit that translates the translation-target character string generated by the translation target character string generation unit; a translation image generation unit that generates, based on a result of the translation by the translation unit, an image of the result of the translation that includes an image corresponding to the writing; a positional relation detection unit that detects a positional relation between the writing detected by the writing detection unit and an image component other than the writing; and a concatenation relation detection unit that detects a concatenation relation between the writing and the image component based on the positional relation detected by the positional relation detection unit, wherein the translation target character string generation unit generates the translation-target character string by inserting the code representative of the writing into the result of the recognition by the character recognition unit based on the concatenation relation detected by the concatenation relation detection unit.