Image processing apparatus, image processing method, and storage medium
AssigneeCanon Kabushiki Kaisha
InventorNatsuki Kato
Life of this patent
Estimating the term…
Abstract
A technique in the present disclosure makes it possible to accurately obtain a value selected by a user with respect to a selection-type item for which a legend is prepared in a situation where a value entered in a document is extracted from a scanned image of the document. An item name is extracted from a document image, input information input by a user is extracted from the document image, and a legend is extracted from the document image. Additionally, in a case where the input information is unsuitable as a value corresponding to the item name, the value corresponding to the item name is obtained based on the legend and the input information.
Claims12
An image processing apparatus comprising:
- at least one memory that stores a program;
- and
- at least one processor that executes the program to perform:
- obtaining an OCR result by performing an OCR processing on a document image;
- extracting an item name from the OCR result of the document image, wherein the item name is a character string of a predetermined item;
- extracting, from the OCR result of the document image, a first character string which exists within a predetermined distance and/or in a predetermined direction from a position of the extracted item name on the document image;
- extracting a legend from the document image, wherein the legend indicates a second character string corresponding to the first character string;
- and
- employing, as a value corresponding to the extracted item name, the second character string instead of the extracted first character string based on the extracted legend in a case where the extracted first character string is unsuitable for the extracted item name.
An image processing method performed by an image processing apparatus, the method comprising:
- obtaining an OCR result by performing an OCR processing on a document image;
- extracting an item name from the OCR result of the document image, wherein the item name is a character string of a predetermined item;
- extracting, from the OCR result of the document image, a first character string which exists within a predetermined distance and/or in a predetermined direction from a position of the extracted item name on the document image;
- extracting a legend from the document image, wherein the legend indicates a second character string corresponding to the first character string;
- and
- employing, as a value corresponding to the extracted item name, the second character string instead of the extracted first character string based on the extracted legend in a case where the extracted first character string is unsuitable for the extracted item name.
A non-transitory computer readable storage medium storing a program for causing a processor to perform:
- obtaining an OCR result by performing an OCR processing on a document image;
- extracting an item name from the OCR result of the document image, wherein the item name is a character string of a predetermined item;
- extracting, from the OCR result of the document image, a first character string which exists within a predetermined distance and/or in a predetermined direction from a position of the extracted item name on the document image;
- extracting a legend from the document image, wherein the legend indicates a second character string corresponding to the first character string;
- and
- employing, as a value corresponding to the extracted item name, the second character string instead of the extracted first character string based on the extracted legend in a case where the extracted first character string is unsuitable for the extracted item name.
Dependencies are inferred from the claim text.