# US 2020/0404119 A1 · Apparatus and method for image processing and storage medium

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

- Number: US 2020/0404119 A1
- Document ID: US20200404119A1
- Status: Published application
- Kind: A1
- Application number: 16/901,526
- Filed: 2020-06-15
- Published: 2020-12-24
- Earliest claimed: 2019-06-18
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Hiroaki Kobayashi
- Web page: https://patentgrep.com/patent/US20200404119A1

## CPC

- H04N 1/2323: {according to characteristics of the reproducing medium, e.g. type, size or availability}
- H04N 1/00474: {outputting a plurality of functional options, e.g. scan, copy or print}
- H04N 1/00681: {Detecting the presence, position or size of a sheet or correcting its position before scanning (H04N1/047 takes precedence; mode signalling H04N1/333; skew detection or correction in image signals H04N1/3878)}
- H04N 1/00708: {Size or dimensions}
- H04N 1/0071: {Width}
- H04N 1/00713: {Length}
- H04N 1/00718: {Skew}
- H04N 1/2338: {according to user specified instructions, e.g. user selection of reproduction mode}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An information processing apparatus includes a memory storing instructions and a processor to execute the instructions to perform operations. Four sides of a document included in captured image data are detected. Lengths of the detected four sides of the document are calculated. The operations further include determining which of a plurality of predefined paper sizes corresponds to the document based on the calculated lengths of the four sides. The determined corresponding paper size is set as a document size of the document.

## Claims

### Claim 1

An information processing apparatus comprising:
a memory to store instructions; and
a processor to execute the instructions to perform operations including:
detecting four sides of a document included in captured image data, calculating lengths of the detected four sides of the document, determining which of a plurality of predefined paper sizes corresponds to the document based on the calculated lengths of the four sides, and
setting the determined corresponding paper size as a document size of the document.

### Claim 2 (depends on 1)

The information processing apparatus according to claim 1,
wherein calculating includes calculating a width and a height of the document based on the calculated lengths of the four sides, and
wherein determining which the plurality of predefined paper sizes corresponds to the document corresponds is based on the width and the height of the document calculated based on the lengths of the four sides.

### Claim 3 (depends on 1)

The information processing apparatus according to claim 1,
wherein, in executing the instructions, the processor further performs operations including distortion correction processing and cropping processing on the captured image data based on the detected four sides to obtain distortion-corrected image data, and
wherein setting includes setting a paper size determined to correspond to the distortion-corrected image data as the document size of the document.

### Claim 4 (depends on 3)

The information processing apparatus according to claim 3, wherein the distortion-corrected image data is obtained by performing the distortion correction processing and the cropping processing on the captured image data and by shaping the captured image data so that its aspect ratio matches an aspect ratio of the paper size determined to correspond to the document.

### Claim 5 (depends on 1)

The information processing apparatus according to claim 1,
wherein, in executing the instructions, the processor further performs operations including displaying a paper size determined to correspond to the document,
wherein, if an instruction to change the displayed paper size is not given from a user, setting includes setting the paper size determined to correspond to the document as the document size of the document,
wherein, if an instruction to change the displayed paper size is given from the user, setting includes setting a changed paper size as the document size of the document.

### Claim 6 (depends on 5)

The information processing apparatus according to claim 5, wherein in executing the instructions, if accuracy of the paper size determined to correspond to the document is lower than a predetermined standard, the processor further performs operations including notifying the user that the determined corresponding paper size may be incorrect.

### Claim 7 (depends on 1)

The information processing apparatus according to claim 1,
wherein in executing the instructions, if accuracy of the paper size determined to correspond to the document is lower than a predetermined standard, the processor further performs operations including presenting a plurality of paper sizes as options in a descending order of accuracy, and
wherein, if the accuracy of the paper size determined to correspond to the document is lower than the predetermined standard, setting includes setting a paper size selected from the presented options by a user as the document size of the document.

### Claim 8 (depends on 1)

The information processing apparatus according to claim 1,
wherein in executing the instructions, if accuracy of the paper size determined to correspond to the document is lower than a predetermined standard, the processor further performs operations including displaying a width and a height of the document calculated in calculating the lengths, and
wherein, if the accuracy of the paper size determined to correspond to the document is lower than the predetermined standard and a storing instruction with the displayed width and height is given from a user, setting includes setting the displayed width and height as the document size of the document.

### Claim 9 (depends on 1)

The information processing apparatus according to claim 1,
wherein, in executing the instructions, the processor further performs operations including:
distortion correction processing on the captured image data based on the detected four sides to obtain distortion-corrected image data, and
converting a pixel size of the distortion-corrected image data based on the paper size determined to correspond to the document and a resolution suited to an intended use of the captured image data, and
wherein setting includes setting the paper size determined to correspond to the converted image data as the document size of the document.

### Claim 10

A method for an information processing apparatus, the method comprising:
detecting four sides of a document included in captured image data;
calculating lengths of the detected four sides of the document;
determining which of a plurality of predefined paper sizes corresponds to the document based on the calculated lengths of the four sides; and
setting the determined corresponding paper size as a document size of the document.

### Claim 11

A non-transitory computer-readable storage medium storing a program to cause a computer to perform a method for an information processing apparatus, the method comprising:
detecting four sides of a document included in captured image data;
calculating lengths of the detected four sides of the document;
determining which of a plurality of predefined paper sizes corresponds to the document based on the calculated lengths of the four sides; and
setting the determined corresponding paper size as a document size of the document.
