# US 2021/0084181 A1 · Medium conveying apparatus for estimating a shape of a conveyed medium based on a line image acquired by imaging a selected surface

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

- Number: US 2021/0084181 A1
- Document ID: US20210084181A1
- Status: Published application
- Kind: A1
- Application number: 16/985,033
- Filed: 2020-08-04
- Published: 2021-03-18
- Earliest claimed: 2019-09-13
- Assignees: Pfu Limited
- Applicants: Pfu Limited
- Inventors: Masaaki Sakai
- Web page: https://patentgrep.com/patent/US20210084181A1

## CPC

- H04N 1/00748: {Detecting edges, e.g. of a stationary sheet}
- H04N 1/00602: {Feed rollers}
- H04N 1/00644: {Counting or calculating, e.g. a number of remaining sheets}
- H04N 1/00737: {using the scanning elements as detectors}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A medium conveying apparatus includes a processor to detect edge pixel from a first line image and a second line image, select a first surface or a second surface of the medium, based on the number of the detected edge pixels, a comparison between a gradation value of each of the detected edge pixels and a gradation value of a peripheral pixel of each of the detected edge pixels, or a variation of gradation values of pixels within a predetermined distance from each of the detected edge pixels or the peripheral pixel of each of the detected edge pixels, estimate a shape of the medium based on a line image acquired by imaging the selected surface, and control a conveying roller or cut out a medium image from the first line image and the second line image and output the medium image, based on the estimated shape.

## Claims

### Claim 1

A medium conveying apparatus comprising:
a conveying roller to convey a medium;
a first imaging device to generate a first line image acquired by imaging a first surface of the medium conveyed by the conveying roller;
a second imaging device to generate a second line image acquired by imaging a second surface of the medium conveyed by the conveying roller; and
a processor to
detect edge pixels from the first line image and the second line image,
select the first surface or the second surface of the medium, based on the number of the detected edge pixels, a comparison between a gradation value of each of the detected edge pixels and a gradation value of a peripheral pixel of said each of the detected edge pixels, or a variation of gradation values of pixels within a predetermined distance from said each of the detected edge pixels or the peripheral pixel of said each of the detected edge pixels,
estimate a shape of the medium based on a line image acquired by imaging the selected surface, and
control the conveying roller or cut out a medium image from the first line image and the second line image and output the medium image, based on the estimated shape.

### Claim 2 (depends on 1)

The medium conveying apparatus according to claim 1, wherein the processor
counts the number of the detected edge pixels each time the first line image and the second line image are generated, and
selects the first surface or the second surface that corresponds to a line image a counted number of which exceeds a predetermined threshold.

### Claim 3 (depends on 1)

The medium conveying apparatus according to claim 1, wherein the processor
calculates a statistical value based on a comparison between the gradation value of said each detected edge pixel from each of a predetermined number of first line images and each of a predetermined number of second line images and a gradation value of a peripheral pixel of each edge pixel, and
selects the first surface or the second surface based on the calculated statistical value.

### Claim 4 (depends on 1)

The medium conveying apparatus according to claim 1, wherein the processor
calculates a statistical value based on variation in gradation values of pixels within a predetermined distance from each edge pixel detected from each of a predetermined number of first line images and a predetermined number of second line images or a peripheral pixel of each edge pixel, and
selects the first surface or the second surface based on the calculated statistical value.

### Claim 5 (depends on 1)

The medium conveying apparatus according to claim 1, wherein the processor estimates whether the shape of the medium is a shape of a card.

### Claim 6 (depends on 5)

The medium conveying apparatus according to claim 5, further comprising an ultrasonic sensor including an ultrasonic transmitter for transmitting an ultrasonic wave and an ultrasonic receiver facing the ultrasonic transmitter for receiving the ultrasonic wave and generating an ultrasonic signal corresponding to the received ultrasonic wave, wherein the processor
determines whether multi-feed of the medium has occurred by comparing the ultrasonic signal with a threshold value,
controls the conveying roller to stop conveying the medium when the processor determines that multi-feed of the medium has occurred, and
changes the threshold value or stops determining whether multi-feed has occurred, according to whether the shape of the conveyed medium is the shape of the card.

### Claim 7

A method for estimating a shape of a conveyed medium, comprising:
conveying a medium by a conveyance roller;
generating a first line image acquired by a first imaging device by imaging a first surface of the medium conveyed by the conveying roller;
generating a second line image acquired by a second imaging device by imaging a second surface of the medium conveyed by the conveying roller;
detecting edge pixels from the first line image and the second line image;
selecting the first surface or the second surface of the medium, based on the number of the detected edge pixels, a comparison between a gradation value of each of the detected edge pixels and a gradation value of a peripheral pixel of said each of the detected edge pixels, or a variation of gradation values of pixels within a predetermined distance from said each of the detected edge pixels or the peripheral pixel of said each of the detected edge pixels;
estimating a shape of the medium based on a line image acquired by imaging the selected surface; and
controlling the conveying roller or cutting out a medium image from the first line image and the second line image and outputting the medium image, based on the estimated shape.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising counting the number of the detected edge pixels each time the first line image and the second line image are generated, wherein
the first surface or the second surface that corresponds to a line image a counted number of which exceeds a predetermined threshold, is selected.

### Claim 9 (depends on 7)

The method according to claim 7, further comprising calculating a statistical value based on a comparison between the gradation value of said each detected edge pixel from each of a predetermined number of first line images and each of a predetermined number of second line images and a gradation value of a peripheral pixel of each edge pixel, wherein
the first surface or the second surface is selected based on the calculated statistical value.

### Claim 10 (depends on 7)

The method according to claim 7, further comprising calculating a statistical value based on variation in gradation values of pixels within a predetermined distance from each edge pixel detected from each of a predetermined number of first line images and a predetermined number of second line images or a peripheral pixel of each edge pixel, wherein
the first surface or the second surface is selected based on the calculated statistical value.

### Claim 11 (depends on 7)

The method according to claim 7, wherein whether the shape of the medium is a shape of a card is estimated.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
transmitting an ultrasonic wave by an ultrasonic transmitter;
receiving the ultrasonic wave and generating an ultrasonic signal corresponding to the received ultrasonic wave by an ultrasonic receiver facing the ultrasonic transmitter;
determining whether multi-feed of the medium has occurred by comparing the ultrasonic signal with a threshold value;
controlling the conveying roller to stop conveying the medium when it is determined that multi-feed of the medium has occurred; and
changing the threshold value or stopping determining whether multi-feed has occurred, according to whether the shape of the conveyed medium is the shape of the card.

### Claim 13

A computer-readable, non-transitory medium storing a computer program, wherein the computer program causes a medium conveying apparatus including a conveying roller to convey a medium, a first imaging device to generate a first line image acquired by imaging a first surface of the medium conveyed by the conveying roller, and a second imaging device to generate a second line image acquired by imaging a second surface of the medium conveyed by the conveying roller, to execute a process, the process comprising:
detecting edge pixels from the first line image and the second line image;
selecting the first surface or the second surface of the medium, based on the number of the detected edge pixels, a comparison between a gradation value of each of the detected edge pixels and a gradation value of a peripheral pixel of said each of the detected edge pixels, or a variation of gradation values of pixels within a predetermined distance from said each of the detected edge pixels or the peripheral pixel of said each of the detected edge pixels;
estimating a shape of the medium based on a line image acquired by imaging the selected surface; and
controlling the conveying roller or cutting out a medium image from the first line image and the second line image and outputting the medium image, based on the estimated shape.

### Claim 14 (depends on 13)

The computer-readable, non-transitory medium according to claim 13, the process further comprising counting the number of the detected edge pixels each time the first line image and the second line image are generated, wherein
the first surface or the second surface that corresponds to a line image a counted number of which exceeds a predetermined threshold, is selected.

### Claim 15 (depends on 13)

The computer-readable, non-transitory medium according to claim 13, the process further comprising calculating a statistical value based on a comparison between the gradation value of said each detected edge pixel from each of a predetermined number of first line images and each of a predetermined number of second line images and a gradation value of a peripheral pixel of each edge pixel, wherein
the first surface or the second surface is selected based on the calculated statistical value.

### Claim 16 (depends on 13)

The computer-readable, non-transitory medium according to claim 13, the process further comprising calculating a statistical value based on variation in gradation values of pixels within a predetermined distance from each edge pixel detected from each of a predetermined number of first line images and a predetermined number of second line images or a peripheral pixel of each edge pixel, wherein
the first surface or the second surface is selected based on the calculated statistical value.

### Claim 17 (depends on 13)

The computer-readable, non-transitory medium according to claim 13, wherein whether the shape of the medium is a shape of a card is estimated.

### Claim 18 (depends on 17)

The computer-readable, non-transitory medium according to claim 17, wherein the medium conveying apparatus further includes an ultrasonic sensor having an ultrasonic transmitter for transmitting an ultrasonic wave and an ultrasonic receiver facing the ultrasonic transmitter for receiving the ultrasonic wave and generating an ultrasonic signal corresponding to the received ultrasonic wave, the process further comprising:
determining whether multi-feed of the medium has occurred by comparing the ultrasonic signal with a threshold value;
controlling the conveying roller to stop conveying the medium when it is determined that multi-feed of the medium has occurred; and
changing the threshold value or stopping determining whether multi-feed has occurred, according to whether the shape of the conveyed medium is the shape of the card.
