Information processing apparatus for obtaining character string
Correction content is made learnable based on a correction operation performed by a user on an attribute setting screen in setting attribute information, such as a filename, based on a character string obtained by character recognition processing on a scan image.
1. An information processing apparatus comprising:
at least one memory that stores instructions; and
at least one processor that executes the instructions to perform:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is deleted in setting attribute information about the first scan image, a regular expression based on the deleted character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned regular expression, the second character recognition result is corrected by deleting a part matching the learned regular expression from the character string of the second character recognition result.
2. The information processing apparatus according to claim 1 ,
wherein, if a part of the character string of the first character recognition result is replaced in setting the attribute information about the first scan image, the learning learns the character string before replacement and the replaced character string, and
wherein, if a character string of the second character recognition result matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
3. An information processing apparatus comprising:
at least one memory that stores instructions; and
at least one processor that executes the instructions to perform:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is deleted in setting attribute information about the first scan image and the deleted part of the character string is a character string registered in a predetermined term dictionary, a regular expression based on the deleted part of the character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned regular expression, the second character recognition result is corrected by deleting a part matching the regular expression from the character string of the second character recognition result.
4. The information processing apparatus according to claim 3 ,
wherein, if a part of the character string of the first character recognition result is replaced in setting the attribute information about the first scan image, the learning learns the character string before replacement and the replaced character string, and
wherein, if a character string of the second character recognition result matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
5. An information processing apparatus comprising:
at least one memory that stores instructions; and
at least one processor that executes the instructions to perform:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is replaced in setting attribute information about the first scan image, the character string before replacement and the replaced character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
6. A non-transitory computer readable storage medium storing instructions that cause a computer to perform:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is deleted in setting the attribute information about the first scan image, a regular expression based on the deleted character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned regular expression, the second character recognition result is corrected by deleting a part matching the learned regular expression from the character string of the second character recognition result.
7. The non-transitory computer readable storage medium according to claim 6 ,
wherein, if a part of the character string of the first character recognition result is replaced in setting the attribute information about the first scan image, the learning learns the character string before replacement and the replaced character string, and
wherein, if a character string of the second character recognition result matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
8. A non-transitory computer readable storage medium storing instructions that cause a computer to perform:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is deleted in setting attribute information about the first scan image and the deleted part of the character string is a character string registered in a predetermined term dictionary, a regular expression based on the deleted part of the character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned regular expression, the second character recognition result is corrected by deleting a part matching the regular expression from the character string of the second character recognition result.
9. The non-transitory computer readable storage medium according to claim 8 ,
wherein, if a part of the character string of the first character recognition result is replaced in setting the attribute information about the first scan image, the learning learns the character string before replacement and the replaced character string, and
wherein, if a character string of the second character recognition result matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
10. A non-transitory computer readable storage medium storing instructions that cause a computer to perform:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is replaced in setting attribute information about the first scan image, the character string before replacement and the replaced character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
11. An information processing method to be performed by an information processing apparatus, the information processing method comprising:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is deleted in setting attribute information about the first scan image, a regular expression based on the deleted character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned regular expression, the second character recognition result is corrected by deleting a part matching the learned regular expression from the character string of the second character recognition result.
12. The information processing method according to claim 11 ,
wherein, if a part of the character string of the first character recognition result is replaced in setting the attribute information about the first scan image, the learning learns the character string before replacement and the replaced character string, and
wherein, if a character string of the second character recognition result matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.
13. An information processing method to be performed by an information processing apparatus, the information processing method comprising:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is deleted in setting attribute information about the first scan image and the deleted part of the character string is a character string registered in a predetermined term dictionary, a regular expression based on the deleted part of the character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned regular expression, the second character recognition result is corrected by deleting a part matching the regular expression from the character string of the second character recognition result.
14. The information processing method according to claim 13 ,
wherein, if a part of the character string of the first character recognition result is replaced in setting the attribute information about the first scan image, the learning learns the character string before replacement and the replaced character string, and
wherein, if a character string of the second character recognition result matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replace character string.
15. An information processing method to be performed by an information processing apparatus, the information processing method comprising:
obtaining a first character recognition result by performing character recognition processing on a text region in a first scan image; and
learning, if a part of a character string of the first character recognition result is replaced in setting attribute information about the first scan image, the character string before replacement and the replaced character string,
wherein, if a character string of a second character recognition result obtained by performing a character recognition processing on a text region in a second scan image matches the learned character string before replacement, the second character recognition result is corrected by replacing the character string of the second character recognition result with the learned replaced character string.