# US 6,757,081 B1 · Methods and apparatus for analyzing and image and for controlling a scanner

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

- Number: US 6,757,081 B1
- Document ID: US6757081B1
- Status: Granted
- Kind: B1
- Application number: 09/545,223
- Filed: 2000-04-07
- Granted: 2004-06-29
- Earliest claimed: 2000-04-07
- Assignees: Hewlett-Packard Development Company, L.P.
- Inventors: Jian Fan; Charles Chi Jia; Anne-Marie Woodson
- Web page: https://patentgrep.com/patent/US6757081B1

## CPC

- H04N 1/00005: {relating to image data}
- H04N 1/00002: {Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for (error detection, error correction or monitoring in digital computers or digital computer components G06F11/00)}
- H04N 1/00013: {Reading apparatus}
- H04N 1/00031: {Testing, i.e. determining the result of a trial (H04N1/00029 takes precedence; using test signals for transmission mode changing H04N2201/33371)}
- H04N 1/00039: {Analysis, i.e. separating and studying components of a greater whole}
- H04N 1/0005: {in service, i.e. during normal operation}
- H04N 1/00063: {using at least a part of the apparatus itself, e.g. self-testing}
- H04N 1/00082: {Adjusting or controlling (interrupting an operation H04N1/00915; inhibiting an operation H04N1/00925)}
- H04N 1/40062: {Discrimination between different image types, e.g. two-tone, continuous tone}
- H04N 2201/0416: Performing a pre-scan
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method analyzes an image to be scanned and analyzes at least part of the image pixel-by-pixel. During or after a preview scan, a characteristic is assigned to a plurality of pixels in the image and pixels are grouped according to similar characteristics. A representation of a least one of the characteristics corresponding to a group of pixels is communicated to the scanner. For example, the pixels may be analyzed to determining if the pixel is black or white. The pixels may also be analyzed to determining if a pixel is on an edge between black and white. Black pixels that are adjacent each other can be grouped together, and white pixels that are adjacent each other can also be grouped together. A region of an image with a relatively high number of black and white groups can be characterized as black and white text only. That characterization can then be used to properly set a scanner, for example, without user intervention, so that the final scan of the image can be done at 300 dpi with a low bit depth.

## Claims

### Claim 1

A method for analyzing a scanned image, the method comprising the steps of:
receiving a scanned image;
analyzing at least part of the scanned image pixel-by-pixel;
assigning a characteristic to a plurality of pixels in the image;
grouping pixels by similar characteristics; and
communicating to the scanner a representation of the scanned image, wherein the representation of the scanned image includes at least one of the characteristics corresponding to a group of pixels.

### Claim 2 (depends on 1)

The method of claim 1 further comprising the step of receiving in a processor a segment of the image.

### Claim 3 (depends on 2)

The method of claim 2 where the step of receiving a segment of the image includes the step of receiving a plurality of lines.

### Claim 4 (depends on 3)

The method of claim 3 wherein the step of analyzing at least part of the image includes the step of analyzing pixels in a line.

### Claim 5 (depends on 1)

The method of claim 1 wherein the step of analyzing includes the step of determining if the pixel is black or white.

### Claim 6 (depends on 1)

The method of claim 1 further comprising the step of determining a threshold value for characterizing pixels as white.

### Claim 7 (depends on 1)

The method of claim 1 further comprising the step of comparing adjacent pixels.

### Claim 8 (depends on 7)

The method of claim 7 further comprising the step of determining the rate of change of a value of a pixel relative to adjacent pixels.

### Claim 9 (depends on 7)

The method of claim 7 further comprising the step of determining the gradient value for a given pixel.

### Claim 10 (depends on 1)

The method of claim 1 further comprising the step of determining a gradient value for a given pixel.

### Claim 11 (depends on 1)

The method of claim 1 wherein the step of assigning a characteristic to a plurality of pixels includes the step of selecting a characteristic from at least five characteristics and assigning the characteristic to a pixel.

### Claim 12 (depends on 1)

The method of claim 1 wherein the step of grouping pixels includes the step of grouping pixels that are adjacent to each other.

### Claim 13 (depends on 12)

The method of claim 12 wherein the step of grouping pixels further includes the step of grouping pixels that have been assigned identical characteristics.

### Claim 14 (depends on 13)

The method of claim 13 wherein the step of grouping pixels includes the step of grouping pixels that have been assigned identical characteristics and that are adjacent to each other to the same group.

### Claim 15 (depends on 1)

The method of claim 1 wherein the step of grouping pixels includes the step of grouping pixels according to whether they are black or white or whether they are graphic.

### Claim 16 (depends on 1)

The method of claim 1 wherein the step of grouping pixels according to whether they are black or white includes the step of assigning a text characterization to pixels that are grouped as black or white.

### Claim 17 (depends on 1)

The method of claim 1 wherein the step of communicating includes the step of communicating to the scanner a representation indicating that the images are black and white text.

### Claim 18 (depends on 1)

The method of claim 1 wherein the step of assigning a characteristic to a plurality of pixels includes the step of classifying the pixels as one of at least white, white edge, gray, gray edge and black.

### Claim 19 (depends on 1)

The method of claim 1 wherein the step of grouping pixels includes the step of distinguishing pixels between at least two levels of pixel component.

### Claim 20 (depends on 19)

The method of claim 19 wherein the step of distinguishing pixels includes the step of distinguishing between background pixels and non-background pixels.

### Claim 21 (depends on 1)

The method of claim 1 further comprising the step of analyzing a group of pixels to determine if there is more than one dominant sub class of pixels.

### Claim 22 (depends on 21)

The method of claim 21 wherein the step of analyzing includes the step of assigning a text label to a group of pixels if there is no more than one dominant sub class of pixels.

### Claim 23 (depends on 21)

The method of claim 21 wherein the step of analyzing includes the step of assigning a graphic label to a group of pixels if there is more than one dominant sub class of pixels.

### Claim 24

A method of evaluating an image comprising the steps of:
receiving a scanned image;
segmenting at least part of the scanned image to produce a segmented image;
analyzing the segmented image for text or graphic;
classifying the at least part of the image as text only, graphic only or mixed; and,
communicating to a scanner a characteristic of the scanned image.

### Claim 25 (depends on 24)

The method of claim 24 wherein the step of analyzing includes the step of determining pixel-by-pixel whether the pixel is black, white or graphic.

### Claim 26 (depends on 24)

The method of claim 24 wherein the step of classifying includes the step of grouping pixels by similar pixel type.

### Claim 27 (depends on 26)

The method of claim 26 wherein the step of classifying further includes the step of grouping pixels by proximity to adjacent pixels of the same type.

### Claim 28 (depends on 24)

The method of claim 24 further comprising the step of storing the classification of the at least part of the image.

### Claim 29 (depends on 28)

The method of claim 28 further comprising the step of retrieving the stored classification of the at least part of the image.

### Claim 30 (depends on 29)

The method of claim 29 wherein the step of retrieving the stored classification further comprises the step of retrieving classification information for the complete image.

### Claim 31 (depends on 29)

The method of claim 29 wherein the step of retrieving the stored classification further comprises the step of retrieving classification information for the at least part of the image and further comprising the step of scanning a part of the image corresponding to the at least part of the image classified.

### Claim 32 (depends on 24)

The method of claim 24 wherein the step of classifying comprises the step of classifying the entire image from classification of pixels in the image.

### Claim 33

A method for controlling a scanner, comprising
receiving a scanned image;
segmenting at least part of the scanned image to produce a segmented image;
processing the segmented image using a CPU, wherein processing includes classifying the at least part of the segmented image as text only, graphic only, or mixed; and
communicating to a scanner of at least one of the classification characteristics such that the CPU applies settings to the scanner based on the classification.
