IP Library › Granted Patent US 11,948,342
Granted Patent B2
US 11,948,342 · App. 17/364,015 · Granted Apr 2, 2024

Image processing apparatus, image processing method, and non-transitory storage medium for determining extraction target pixel

Inventor: Satoru Yamanaka (Kanagawa, JP)
Assignee: CANON KABUSHIKI KAISHA
G06V10/273G06V30/155G06V30/10
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,948,342
App. No.
17/364,015
Granted
Apr 2, 2024
Kind
B2
Abstract

A first binary image is generated by binarizing an input image based on a threshold, a second binary image is generated by changing a pixel that has predetermined high luminance in the input image into a black pixel, and whether a black pixel cluster in the second binary image is made to be an extraction target is determined based on a position of a character image identified based on a black pixel cluster in the first binary image, and a position of the black pixel cluster in the second binary image.

Claims (35)

1. An apparatus comprising:

at least one memory that stores instructions; and

at least one processor that executes the instructions to perform:

generating a first binary image from an input image by changing first pixels of the input image into first black pixels and changing second pixels of the input image into first white pixels, wherein luminances of the first pixels are lower than a first threshold, and wherein the second pixels are other than the first pixels in the input image;

identifying character images from the first black pixels in the first binary image;

generating a second binary image from the input image by changing third pixels of the input image into second black pixels and changing fourth pixels of the input image into second white pixels, wherein luminances of the third pixels are higher than the first threshold and are lower than luminance of a background in the input image, wherein the second binary image is generated from the input image without using the generated first binary image;

determining whether each of black pixel clusters detected based on the second black pixels that connect with each other in the second binary image is a target, wherein the detected black pixel clusters include at least one of a first black pixel cluster, a second black pixel cluster and a third black pixel cluster,

wherein it is determined that the first black pixel cluster in the second binary image is the target in a case where a position of an area of the first black pixel cluster in the second binary image does not overlap a position of any area of the identified character images in the first binary image and where the position of the area of the first black pixel cluster in the second binary image is not between positions of any two areas of the identified character images in the first binary image,

wherein it is determined that the second black pixel cluster in the second binary image is not the target in a case where a position of an area of the second black pixel cluster in the second binary image overlaps a position of any area of the identified character images in the first binary image, and

wherein it is determined that the third black pixel cluster in the second binary image is not the target in a case where the position of the area of the third black pixel cluster in the second binary image is between positions of any two areas of the identified character images in the first binary image; and

performing character recognition processing on the identified character images and the first black pixel cluster that has been determined to be the target.

2. The apparatus according to claim 1 , wherein the at least one processor executes the instructions to further perform: extracting character information that has a relationship between a Key and a Value, based on a result of the performed character recognition processing.

3. The apparatus according to claim 1 ,

wherein the detected black pixel clusters further include a fourth black pixel cluster, and

wherein in a case where a position of an area of the fourth black pixel cluster in the second binary image overlaps a position of an area of a non-character image that has been identified from the first black pixels in the first binary image, it is determined that the fourth black pixel cluster in the second binary image is not the target.

4. The apparatus according to claim 3 ,

wherein ruled lines in the first binary image are identified as the non-character image.

5. A method comprising:

generating a first binary image from an input image by changing first pixels of the input image into first black pixels and changing second pixels of the input image into first white pixels, wherein luminances of the first pixels are lower than a first threshold, and wherein the second pixels are other than the first pixels in the input image;

identifying character images from the first black pixels in the first binary image;

generating a second binary image from the input image by changing third pixels of the input image into second black pixels and changing fourth pixels of the input image into second white pixels, wherein luminances of the third pixels are higher than the first threshold and are lower than luminance of a background in the input image, wherein the second binary image is generated from the input image without using the generated first binary image;

determining whether each of black pixel clusters detected based on the second black pixels that connect with each other in the second binary image is a target, wherein the detected black pixel clusters include a first black pixel cluster, a second black pixel cluster and a third black pixel cluster,

wherein it is determined that the first black pixel cluster in the second binary image is the target in a case where a position of an area of the first black pixel cluster in the second binary image does not overlap a position of any area of the identified character images in the first binary image and where the position of the area of the first black pixel cluster in the second binary image is not between positions of any two areas of the identified character images in the first binary image,

wherein it is determined that the second black pixel cluster in the second binary image is not the target in a case where a position of an area of the second black pixel cluster in the second binary image overlaps a position of any area of the identified character images in the first binary image, and

wherein it is determined that the third black pixel cluster in the second binary image is not the target in a case where the position of the area of the third black pixel cluster in the second binary image is between positions of any two areas of the identified character images in the first binary image; and

performing character recognition processing on the identified character images and the first black pixel cluster that has been determined to be the target.

6. A non-transitory computer-readable storage medium storing instructions that cause a computer to perform:

generating a first binary image from an input image by changing first pixels of the input image into first black pixels and changing second pixels of the input image into first white pixels, wherein luminances of the first pixels are lower than a first threshold, and wherein the second pixels are other than the first pixels in the input image;

identifying character images from the first black pixels in the first binary image;

generating a second binary image from the input image by changing third pixels of the input image into second black pixels and changing fourth pixels of the input image into second white pixels, wherein luminances of the third pixel are higher than the first threshold and are lower than luminance of a background in the input image, wherein the second binary image is generated from the input image without using the generated first binary image;

determining whether each of black pixel clusters detected based on the second black pixels that connect with each other in the second binary image is a target wherein the detected black pixel clusters include at least one of a first black pixel cluster, a second black pixel cluster and a third black pixel cluster,

wherein it is determined that the first black pixel cluster in the second binary image is the target in a case where a position of an area of the first black pixel cluster in the second binary image does not overlap a position of any area of the identified character images in the first binary image and where the position of the area of the first black pixel cluster in the second binary image is not between positions of any two areas of the identified character images in the first binary image,

wherein it is determined that the second black pixel cluster in the second binary image is not the target in a case where a position of an area of the second black pixel cluster in the second binary image overlaps a position of any area of the identified character images in the first binary image, and

wherein it is determined that the third black pixel cluster in the second binary image is not the target in a case where the position of the area of the third black pixel cluster in the second binary image is between positions of any two areas of the identified character images in the first binary image; and

performing character recognition processing on the identified character images and the first black pixel cluster that has been determined to be the target.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 12, 2021
From: YAMANAKA, SATORU
To: CANON KABUSHIKI KAISHA
Reel/Frame 057154/0304 →
Priority Claims (1)
JP 2020-116595 · Jul 6, 2020 · national
Continuity (1)
Related Publication 20220004795A1 · Jan 6, 2022
Cited By (1)
US 12,639,972