# US 9,355,326 B2 · Image processing apparatus, ruled line determination method, and storage medium having ruled line determination program stored therein

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,326 B2
- Document ID: US9355326B2
- Status: Granted
- Kind: B2
- Application number: 14/261,308
- Filed: 2014-04-24
- Published: 2014-10-30
- Granted: 2016-05-31
- Earliest claimed: 2013-04-25
- Assignees: KYOCERA Document Solutions Inc.
- Applicants: KYOCERA Document Solutions Inc.
- Inventors: Masato Shiose
- Web page: https://patentgrep.com/patent/US9355326B2

## CPC

- G06V 30/155: {Removing patterns interfering with the pattern to be recognised, such as ruled lines or underlines}
- G06V 30/10: Character recognition
- H04N 2201/0081: Image reader (H04N2201/0091 - H04N2201/0094 take precedence)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image processing apparatus according to one aspect of the present disclosure includes a first image extraction portion and a first determination portion. The first image extraction portion is configured to extract, from image data, a plurality of linear images in each of which reference pixels each having a tone in a predetermined range are continuous so as to form a straight line. The first determination portion is configured to determine, when the plurality of linear images extracted by the first image extraction portion include linear images that are spaced by a uniform distance, the linear images that are spaced by the uniform distance, as ruled lines.

## Claims

### Claim 1

An image processing apparatus comprising a processor configured to function as:
a first image extraction portion configured to extract, from image data, a plurality of linear images in each of which reference pixels each having a tone in a predetermined range are continuous so as to form a straight line;
a first determination portion configured to determine, when the plurality of linear images extracted by the first image extraction portion include linear images that are spaced by a uniform distance, the linear images that are spaced by the uniform distance, as ruled lines;
a second image extraction portion; and
a second determination portion, wherein
when, in the linear images extracted by the first image extraction portion, the number of the reference pixels that are continuous so as to form the straight line is greater than or equal to a first threshold value,
the second image extraction portion is configured to extract, from the image data, a sub-linear image in which the number of the reference pixels that are continuous is less than the first threshold value and greater than or equal to a second threshold value; and
the second determination portion is configured to determine the sub-linear image as the ruled line, when the sub-linear image is at a position spaced, by the uniform distance, from the ruled line determined by the first determination portion.

### Claim 2 (depends on 1)

The image processing apparatus according to claim 1, wherein the tone represents one or both of a density and a hue.

### Claim 3 (depends on 1)

The image processing apparatus according to claim 1, wherein the first determination portion determines, as the ruled lines, the linear images that are spaced, by the uniform distance, from the sub-linear image having been determined as the ruled line by the second determination portion.

### Claim 4 (depends on 1)

The image processing apparatus according to claim 1, wherein the processor is further configured to function as:
a third image extraction portion configured to extract, as dot-forming pixels, the reference pixels on straight lines which are represented by the linear images or the sub-linear image determined as the ruled lines, or extract, as dot-forming pixels, pixels that are within the predetermined range and located at positions spaced, by the uniform distance, from the linear images or the sub-linear image determined as the ruled lines, so as to extract the dot-forming pixels from the image data; and
a third determination portion configured to determine, as the ruled lines, the dot-forming pixels extracted by the third image extraction portion.

### Claim 5 (depends on 1)

The image processing apparatus according to claim 1, wherein the processor is further configured to function as an elimination portion configured to eliminate, from the image data, pixels having been determined as the ruled lines.

### Claim 6 (depends on 5)

The image processing apparatus according to claim 5, wherein the elimination portion changes a pixel tone of a pixel to be eliminated, to a tone of a background color image of the image data.

### Claim 7 (depends on 5)

The image processing apparatus according to claim 5, wherein
the processor is further configured to function as a third image extraction portion configured to extract, from the image data, a pixel having the same tone as the linear images determined as the ruled lines by the first determination portion, as a pixel to be eliminated, and
the elimination portion eliminates the pixel, to be eliminated, which is extracted by the third image extraction portion.

### Claim 8 (depends on 1)

The image processing apparatus according to claim 1, wherein the processor is further configured to function as:
an inclination determination portion configured to determine whether or not the ruled lines are inclined in the image data, based on positional information of both ends of each linear image determined as the ruled lines by the first determination portion; and
a correction portion configured to rotate, when the inclination determination portion determines that the ruled lines are inclined, an image of the image data in a direction opposite to an inclination direction of the image, according to an inclination degree, to correct the image data.

### Claim 9

A ruled line determination method comprising:
a first image extraction step of extracting, from image data, a plurality of linear images in each of which reference pixels each having a tone in a predetermined range are continuous so as to form a straight line;
a first determination step of determining, when the plurality of linear images extracted by the first image extraction step include linear images that are spaced by a uniform distance, the linear images that are spaced by the uniform distance, as ruled lines;
a second image extraction step; and
a second determination step, wherein
when, in the linear images extracted in the first image extraction step, the number of the reference pixels that are continuous so as to form the straight line is greater than or equal to a first threshold value,
the second image extraction step comprises extracting, from the image data, a sub-linear image in which the number of the reference pixels that are continuous is less than the first threshold value and greater than or equal to a second threshold value; and
the second determination step comprises determining the sub-linear image as the ruled line, when the sub-linear image is at a position spaced, by the uniform distance, from the ruled line determined in the first determination step.

### Claim 10

A non-transitory storage medium having stored therein a ruled line determination program that causes a computer to execute:
a first image extraction step of extracting, from image data, a plurality of linear images in each of which reference pixels each having a tone in a predetermined range are continuous so as to form a straight line;
a first determination step of determining, when the plurality of linear images extracted by the first image extraction step include linear images that are spaced by a uniform distance, the linear images that are spaced by the uniform distance, as ruled lines;
a second image extraction step; and
a second determination step, wherein
when, in the linear images extracted in the first image extraction step, the number of the reference pixels that are continuous so as to form the straight line is greater than or equal to a first threshold value,
the second image extraction step comprises extracting, from the image data, a sub-linear image in which the number of the reference pixels that are continuous is less than the first threshold value and greater than or equal to a second threshold value; and
the second determination step comprises determining the sub-linear image as the ruled line, when the sub-linear image is at a position spaced, by the uniform distance, from the ruled line determined in the first determination step.
