Image processing apparatus, image processing method, and storage medium
AssigneeCanon Kabushiki Kaisha
InventorHidekazu Seto
Life of this patent
Estimating the term…
Abstract
A training image in accordance with a way a hane occurs, which is found in actual handwriting, is generated. Among line segments constituting a handwritten character in a character image representing the handwritten character, a line segment at which a handwritten hane may occur is detected. Then, by performing processing to add a simulated hane to the end portion of the detected line segment, a training image is generated.
Claims18
An image processing apparatus comprising:
- a memory that stores a program;
- and
- a processor that executes the program to perform:
- obtaining a character image representing a handwritten character;
- detecting a line segment at which an extra segment may occur in handwriting among line segments constituting the handwritten character in the character image;
- adding a simulated extra segment to the end portion of the detected line segment;
- and
- generating training data for machine learning by associating the character image in which the simulated extra segment has been added and a correct answer class with each other;
- performing the machine learning by using the generated training data and generating a trained model;
- and
- outputting text information by inputting a target image to the trained model,
- wherein the adding is performed by randomly determining a length of the simulated extra segment.
An image processing method comprising the steps of:
- obtaining a character image representing a handwritten character;
- detecting a line segment at which an extra segment may occur in handwriting among line segments constituting the handwritten character in the character image;
- adding a simulated extra segment to the end portion of the detected line segment;
- and
- generating training data for machine learning by associating the character image in which the simulated extra segment has been added and a correct answer class with each other;
- performing the machine learning by using the generated training data and generating a trained model;
- and
- outputting text information by inputting a target image to the trained model,
- wherein the adding is performed by randomly determining a length of the simulated extra segment.
A non-transitory computer readable storage medium storing a program for causing a computer to perform an image processing method comprising the steps of:
- obtaining a character image representing a handwritten character;
- detecting a line segment at which an extra segment may occur in handwriting among line segments constituting the handwritten character in the character image;
- adding a simulated extra segment to the end portion of the detected line segment;
- and
- generating training data for machine learning by associating the character image in which the simulated extra segment has been added and a correct answer class with each other;
- performing the machine learning by using the generated training data and generating a trained model;
- and
- outputting text information by inputting a target image to the trained model,
- wherein the adding is performed by randomly determining a length of the simulated extra segment.
Dependencies are inferred from the claim text.