An image processing apparatus for extracting an extraction target character string that is to be an item value corresponding to a predetermined extraction target item described among character strings in a document, the image processing apparatus comprising: an obtaining unit configured to obtain, among character areas in a scanned image of the document, a handwritten character area representing handwritten characters and a printed character area representing printed characters; a first OCR unit configured to perform character recognition processing for handwritten characters to the handwritten character area; a second OCR unit configured to perform character recognition processing for printed characters to the printed character area; an integration unit configured to integrate character recognition results for adjacent handwritten and printed character areas (301-315-302; 303-311-312-313; 304; 305-314-306;307) to obtain integrated character recognition results (401, 402, 403, 404, 405) including information whether the characters constituting each of the integrated character recognition results respectively originate from character recognition results of the handwritten character areas or originate from character recognition results of the printed character areas; and a determination unit configured to determine the extraction target character string based on results of detecting one or more extraction candidate character strings (601, 602, 603, 604, 605, 606) from among the integrated character recognition results (401, 402, 403, 404, 405) and of calculating (S503-S506), for the detected one or more extraction candidate character strings, a respective likelihood of being an extraction target character string, therein using different evaluation indications for calculating the likelihood of being an extraction target character string in a case where a character originating from the handwritten character area is included in characters constituting the extraction candidate character string and in a case where such a character is not included. an obtaining unit configured to obtain, among character areas in a scanned image of the document, a handwritten character area representing handwritten characters and a printed character area representing printed characters; a first OCR unit configured to perform character recognition processing for handwritten characters to the handwritten character area; a second OCR unit configured to perform character recognition processing for printed characters to the printed character area; an integration unit configured to integrate character recognition results for adjacent handwritten and printed character areas (301-315-302; 303-311-312-313; 304; 305-314-306;307) to obtain integrated character recognition results (401, 402, 403, 404, 405) including information whether the characters constituting each of the integrated character recognition results respectively originate from character recognition results of the handwritten character areas or originate from character recognition results of the printed character areas; and a determination unit configured to determine the extraction target character string based on results of detecting one or more extraction candidate character strings (601, 602, 603, 604, 605, 606) from among the integrated character recognition results (401, 402, 403, 404, 405) and of calculating (S503-S506), for the detected one or more extraction candidate character strings, a respective likelihood of being an extraction target character string, therein using different evaluation indications for calculating the likelihood of being an extraction target character string in a case where a character originating from the handwritten character area is included in characters constituting the extraction candidate character string and in a case where such a character is not included.