Image processing apparatus that sets metadata of image data, method of controlling same, and storage medium
AssigneeCanon Kabushiki Kaisha
InventorHiroki Takeishi
Life of this patent
Estimating the term…
Abstract
An image processing apparatus that enables easy setting of metadata of image data. The image processing apparatus obtains image data associated with a selected work. A key candidate is identified from t image data based on one or more key types defined according to the selected work. A value candidate corresponding to the identified key candidate is identified based on a value type rule and a value search area rule which are defined for each of the one or more key types, and the identified value candidate is set as the metadata of the image data.
Claims5
An image processing apparatus that sets metadata of image data using one of a plurality of metadata templates, each metadata template associated with a different type of work, comprising:
- at least one memory that stores a program;
- and
- at least one processor that executes the program to perform:
- selecting a type of work corresponding to the image data;
- performing an optical character recognition (OCR) processing for the image data to obtain character strings corresponding to a plurality of character string areas included in the image data;
- identifying a key candidate from the obtained character strings based on one or more key types defined in a first metadata template of the plurality of metadata templates, the first metadata template corresponding to the selected type of work;
- identifying a value candidate, as a value for the identified key candidate, from the obtained character strings based on a value type rule and a value search area rule defined for a key type of the identified key candidate, wherein the value type rule is a rule for identifying a character string of a specific type from the obtained character strings, and wherein the value search area rule defines a distance between a character string area corresponding to the identified key candidate and a character string area corresponding to the value candidate to be identified;
- and
- setting the identified value candidate as the metadata of the image data.
A method for setting metadata of image data using one of a plurality of metadata templates, each metadata template associated with a different type of work, comprising:
- selecting a type of work corresponding to the image data;
- performing an optical character recognition (OCR) processing for the image data to obtain character strings corresponding to a plurality of character string areas included in the image data;
- identifying a key candidate from the obtained character strings based on one or more key types defined in a first metadata template of the plurality of metadata templates, the first metadata template corresponding to the selected type of work;
- identifying a value candidate, as a value for the identified key candidate, from the obtained character strings based on a value type rule and a value search area rule defined for a key type of the identified key candidate, wherein the value type rule is a rule for identifying a character string of a specific type from the obtained character strings, and wherein the value search area rule defines a distance between a character string area corresponding to the identified key candidate and a character string area corresponding to the value candidate to be identified;
- and
- setting the identified value candidate as the metadata of the image data.
A non-transitory computer-readable storage medium storing a computer-executable program for causing a computer to perform a method for setting metadata of image data using one of a plurality of metadata templates, each metadata template associated with a different type of work, the method comprising:
- selecting a type of work corresponding to the image data;
- performing an optical character recognition (OCR) processing for the image data to obtain character strings corresponding to a plurality of character string areas included in the image data;
- identifying a key candidate from the obtained character strings based on one or more key types defined in a first metadata template of the plurality of metadata templates, the first metadata template corresponding to the selected type of work;
- identifying a value candidate, as a value for the identified key candidate, from the obtained character strings based on a value type rule and a value search area rule defined for a key type of the identified key candidate, wherein the value type rule is a rule for identifying a character string of a specific type from the obtained character strings, and wherein the value search area rule defines a distance between a character string area corresponding to the identified key candidate and a character string area corresponding to the value candidate to be identified;
- and
- setting the identified value candidate as the metadata of the image data.
Dependencies are inferred from the claim text.