WO2022079770A1 - 媒体搬送装置、制御方法及び制御プログラム - Google Patents

媒体搬送装置、制御方法及び制御プログラム Download PDF

Info

Publication number
WO2022079770A1
WO2022079770A1 PCT/JP2020/038523 JP2020038523W WO2022079770A1 WO 2022079770 A1 WO2022079770 A1 WO 2022079770A1 JP 2020038523 W JP2020038523 W JP 2020038523W WO 2022079770 A1 WO2022079770 A1 WO 2022079770A1
Authority
WO
WIPO (PCT)
Prior art keywords
medium
detected
region
unit
scanning direction
Prior art date
Application number
PCT/JP2020/038523
Other languages
English (en)
French (fr)
Inventor
雅晃 堺
Original Assignee
株式会社Pfu
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社Pfu filed Critical 株式会社Pfu
Priority to PCT/JP2020/038523 priority Critical patent/WO2022079770A1/ja
Priority to JP2022557241A priority patent/JP7447301B2/ja
Priority to US18/040,139 priority patent/US11856170B2/en
Publication of WO2022079770A1 publication Critical patent/WO2022079770A1/ja
Priority to JP2024028621A priority patent/JP2024055938A/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65HHANDLING THIN OR FILAMENTARY MATERIAL, e.g. SHEETS, WEBS, CABLES
    • B65H7/00Controlling article feeding, separating, pile-advancing, or associated apparatus, to take account of incorrect feeding, absence of articles, or presence of faulty articles
    • B65H7/02Controlling article feeding, separating, pile-advancing, or associated apparatus, to take account of incorrect feeding, absence of articles, or presence of faulty articles by feelers or detectors
    • B65H7/14Controlling article feeding, separating, pile-advancing, or associated apparatus, to take account of incorrect feeding, absence of articles, or presence of faulty articles by feelers or detectors by photoelectric feelers or detectors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00684Object of the detection
    • H04N1/00718Skew
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00742Detection methods
    • H04N1/00748Detecting edges, e.g. of a stationary sheet

Definitions

  • the present disclosure relates to a medium transport device, and more particularly to a medium transport device that detects an end portion of a medium from an image of the transported medium.
  • a medium carrier device such as a scanner that reads an image of a medium such as a document has a function of specifying a region containing the medium in the scanned image in order to cut out a region containing the medium from the scanned image. .. Therefore, the medium transfer device is required to accurately detect the end portion of the medium.
  • the medium transfer device it is desired to detect the end portion of the medium from the image with higher accuracy.
  • the purpose of the medium transfer device, the control method, and the control program is to enable more accurate detection of the end portion of the medium in the main scanning direction from the image.
  • the medium transport device is based on the positional relationship between the transport unit that transports the medium, the image pickup unit that captures the image of the transported medium, the image pickup position of the image pickup unit, and the arrangement position of the transport unit. It was detected from a storage unit that stores a low-reliability area in the input image in which the medium was captured by the unit, an edge pixel detection unit that detects edge pixels from the input image, and an area in the input image that does not include the low-reliability area. It has an end detection unit that detects an end portion in the main scanning direction of the medium based on the edge pixels, and an output control unit that outputs information about the detected end portion.
  • the medium transport device includes a transport unit that transports the medium, a reference member having a single color, and a medium and a medium that are arranged and transported so as to face the reference member. Positions of an image pickup unit that captures the periphery, an edge pixel detection unit that detects a plurality of edge pixels from the medium and an input image in which the periphery of the medium is imaged by the image pickup unit, and a plurality of edge pixels detected by the edge pixel detection unit. Based on the relationship, it is detected by the fluctuation area detection unit that detects the fluctuation region in which the gradation value fluctuates with respect to the peripheral pixels in the region including the reference member in the input image, and the fluctuation region detection unit in the input image. An end detection unit that detects an end portion in the main scanning direction of the medium based on the edge pixels detected from a region that does not include the fluctuating region, and an output control unit that outputs information about the detected end portion. Has.
  • control method is a control method of a medium transport device having a transport unit for transporting a medium, an image pickup unit for capturing an image of the transported medium, and a storage unit, and is a control method for the image pickup unit.
  • the low-reliability area in the input image captured by the image pickup unit based on the positional relationship between the image pickup position and the placement position of the transport unit is stored in the storage unit, edge pixels are detected from the input image, and the inside of the input image is stored. Based on the edge pixels detected from the region not including the low reliability region, the end portion in the main scanning direction of the medium is detected, and the information regarding the detected end portion is output.
  • control method is a transport unit for transporting a medium, a reference member having a single color, a medium arranged facing the reference member, and the periphery of the medium to be conveyed. It is a control method of a medium transporting apparatus having an image pickup unit that captures an image, and detects a plurality of edge pixels from an input image in which the medium and the periphery of the medium are captured by the image pickup unit, and the detected plurality of edge pixels Based on the positional relationship, a variable region in which the gradation value fluctuates with respect to the peripheral pixels is detected in the region including the reference member in the input image, and the variable region not included in the detected variable region in the input image is detected. Based on the detected edge pixels, the end portion of the medium in the main scanning direction is detected, and information about the detected end portion is output.
  • control program is a control program of a medium transport device having a transport unit for transporting a medium, an image pickup unit for capturing an image of the transported medium, and a storage unit, and is an image pickup unit.
  • the low-reliability area in the input image captured by the image pickup unit based on the positional relationship between the image pickup position and the placement position of the transport unit is stored in the storage unit, edge pixels are detected from the input image, and the inside of the input image is stored.
  • the media carrier is made to detect the end portion in the main scanning direction of the medium and output the information regarding the detected end portion.
  • control program includes a transport unit for transporting a medium, a reference member having a single color, a medium arranged facing the reference member, and the periphery of the medium to be conveyed. It is a control program of a medium transporting device having an image pickup unit that captures an image, and detects a plurality of edge pixels from an input image in which the medium and the periphery of the medium are captured by the image pickup unit, and the detected plurality of edge pixels. Based on the positional relationship, a variable region in which the gradation value fluctuates with respect to the peripheral pixels is detected in the region including the reference member in the input image, and the variable region not included in the detected variable region in the input image is detected. Based on the detected edge pixels, the media carrier is made to detect the end portion of the medium in the main scanning direction and output information about the detected end portion.
  • the medium transfer device, the control method, and the control program can detect the end portion of the medium in the main scanning direction from the image with higher accuracy.
  • FIG. 1 is a perspective view showing a medium transfer device 100 configured as an image scanner.
  • the medium transport device 100 transports a medium that is a document and takes an image.
  • the medium is paper, cardboard, card, passport, or the like.
  • the card is, for example, a plastic resin card.
  • the card is an ID (Identification) card defined by ISO (International Organization for Standardization) / IEC (International Electrotechnical Commission) 7810.
  • the card may be another type of card.
  • the medium transfer device 100 may be a facsimile, a copying machine, a multifunction printer (MFP, Multifunction Peripheral) or the like.
  • MFP Multifunction Peripheral
  • the medium transfer device 100 includes a lower housing 101, an upper housing 102, a mounting table 103, a discharging table 104, an operating device 105, a display device 106, and the like.
  • the upper housing 102 is arranged at a position that covers the upper surface of the medium transfer device 100 and engages with the lower housing 101.
  • the mounting table 103 is engaged with the lower housing 101 so that the medium to be transported can be mounted.
  • the discharge table 104 is engaged with the lower housing 101 so as to be able to hold the discharged medium.
  • the operation device 105 has an input device such as a button and an interface circuit that acquires a signal from the input device, receives an input operation by the user, and outputs an operation signal according to the input operation of the user.
  • the display device 106 has a display including a liquid crystal display, an organic EL (Electro-Luminescence), and an interface circuit for outputting image data to the display, and displays the image data on the display.
  • FIG. 2 is a diagram for explaining a transport path inside the medium transport device 100.
  • the transfer paths inside the medium transfer device 100 include a first medium sensor 111, a feed roller 112, a brake roller 113, a first transfer roller 114, a second transfer roller 115, a second medium sensor 116, a first image pickup device 117a, and a first image transfer device. It has two image pickup devices 117b, a third transfer roller 118, a fourth transfer roller 119, and the like.
  • the number of each roller is not limited to one, and the number of each roller may be plural.
  • the first image pickup device 117a and the second image pickup device 117b may be collectively referred to as an image pickup device 117.
  • the upper surface of the lower housing 101 forms the lower guide 107a of the medium transport path
  • the lower surface of the upper housing 102 forms the upper guide 107b of the medium transport path.
  • the arrow A1 indicates the transport direction of the medium.
  • the upstream means the upstream of the medium transport direction A1
  • the downstream means the downstream of the medium transport direction A1.
  • the first medium sensor 111 is arranged on the upstream side of the feed roller 112 and the brake roller 113.
  • the first medium sensor 111 has a contact detection sensor and detects whether or not a medium is mounted on the mounting table 103.
  • the first medium sensor 111 generates and outputs a first medium signal whose signal value changes depending on whether the medium is mounted on the mounting table 103 or not.
  • the feed roller 112 and the brake roller 113 are provided on the upstream side of the first transfer roller 114 and the second transfer roller 115.
  • the feeding roller 112 is provided on the lower housing 101, and feeds the media mounted on the mounting table 103 in order from the lower side.
  • the brake roller 113 is provided on the upper housing 102 and is arranged so as to face the feeding roller 112.
  • the first transport roller 114 and the second transport roller 115 are provided on the downstream side of the feed roller 112 and the brake roller 113.
  • the first transport roller 114 is provided in the lower housing 101.
  • the second transfer roller 115 is provided on the upper housing 102 and is arranged so as to face the first transfer roller 114.
  • the second medium sensor 116 is arranged on the downstream side of the first transfer roller 114 and the second transfer roller 115 and on the upstream side of the image pickup apparatus 117.
  • the second medium sensor 116 detects whether or not a medium is present at that position.
  • the second medium sensor 116 is a reflection of a light emitter and a light receiver provided on one side of the medium transport path, and a mirror or the like provided at a position facing the light emitter and the light receiver across the transport path. Including members.
  • the light emitter irradiates light toward the transport path.
  • the light receiver receives the light irradiated by the light emitter and reflected by the reflecting member, and generates and outputs a second medium signal which is an electric signal according to the intensity of the received light.
  • the light emitted by the light emitter is shielded by the medium, so that the light emitted by the light emitter is shielded by the medium. 2
  • the signal value of the medium signal changes.
  • the light emitter and the light receiver are provided at positions facing each other across the transport path, and the reflective member may be omitted.
  • the first image pickup device 117a and the second image pickup device 117b are examples of the image pickup unit.
  • the first image pickup apparatus 117a includes a first image pickup sensor 121a and a first reference member 122a.
  • the second image pickup apparatus 117b has a second image pickup sensor 121b, a second reference member 122b, and a transfer guide 123b.
  • the first image sensor 121a is a line sensor based on a 1x optical system type CIS (Contact Image Sensor) having a CMOS (Complementary Metal Oxide Semiconductor) image sensor arranged linearly in the main scanning direction.
  • the first image pickup sensor 121a is arranged so as to face the second reference member 122b that functions as a backing.
  • the first image pickup device 117a has a lens that forms an image on the image pickup element and an A / D converter that amplifies an electric signal output from the image pickup element and converts it into analog / digital (A / D).
  • the first image pickup apparatus 117a images the surface of the conveyed medium and the periphery of the medium at regular intervals, sequentially generates and outputs line images. That is, the number of pixels in the vertical direction (sub-scanning direction) of the line image is 1, and the number of pixels in the horizontal direction (main scanning direction) is a plurality. A predetermined number of line images are combined to generate an input image by a processing circuit described later. That is, the input image is an image in which the medium is captured by the image pickup apparatus 117.
  • the first image pickup sensor 121a images the second reference member 122b when the medium is not conveyed.
  • the surface of the second reference member 122b facing the first image pickup sensor 121a has a single color (for example, white).
  • the medium transfer device 100 corrects an image such as shading based on an image signal obtained by capturing an image of the second reference member 122b.
  • the second image sensor 121b is a CIS line sensor of the same magnification optical system type having CMOS image sensors arranged linearly in the main scanning direction.
  • the second image pickup sensor 121b is arranged so as to face the first reference member 122a that functions as a backing.
  • the second image pickup device 117b has a lens that forms an image on the image pickup element and an A / D converter that amplifies an electric signal output from the image pickup element and converts it into analog / digital (A / D).
  • the second image pickup apparatus 117b images the back surface of the conveyed medium and the periphery of the medium at regular intervals at the image pickup position P2, sequentially generates and outputs a line image.
  • a predetermined number of line images are combined to generate an input image by a processing circuit described later. That is, the input image is an image in which the medium is captured by the image pickup apparatus 117.
  • the second image pickup sensor 121b takes an image of the first reference member 122a when the medium is not conveyed.
  • the surface of the first reference member 122a facing the second image pickup sensor 121b has a single color (for example, white).
  • the medium transfer device 100 corrects an image such as shading based on an image signal obtained by capturing an image of the first reference member 122a.
  • the transport guide 123b is an example of a member that moves in conjunction with the second image pickup apparatus 117b.
  • the transport guide 123b is provided integrally with the second image pickup apparatus 117b.
  • the transport guide 123b has a canopy shape and guides the medium transported by the first transport roller 114 and the second transport roller 115 between the first image pickup device 117a and the second image pickup device 117b.
  • the other end of a spring (not shown) whose one end is supported by the upper housing 102 is attached to the upper surface of the transport guide 123b, and the transport guide 123b is urged by the spring in a direction toward the first image pickup apparatus 117a. ing.
  • the second image pickup apparatus 117b is provided so as to be movable upward in the height direction A8 orthogonal to the medium transport direction.
  • the first image pickup apparatus 117a is fixed to the lower housing 101.
  • the transport guide 123b is moved upward by the medium, and the second image pickup device 117b is a transport guide. It moves upward in conjunction with the movement of 123b.
  • the second image pickup apparatus 117b is provided so as to be movable upward by being pushed up by the medium to be conveyed.
  • the transport guide 123b is formed of a member separate from the second image pickup apparatus 117b.
  • the transport guide 123b may be formed of a member integrated with the second image pickup apparatus 117b.
  • the second image pickup device 117b may be fixed, the first image pickup device 117a may be movably arranged in the height direction A8, and the transport guide 123b may be provided integrally with the first image pickup device 117a.
  • the transport guide 123b moves downward depending on the medium to be transported, and the first image pickup apparatus 117a moves downward in conjunction with the movement of the transport guide 123b.
  • the transport guide 123b may be omitted, and the first image pickup apparatus 117a or the second image pickup apparatus 117b may be provided so as to be movable in the height direction A8 depending on the medium to be conveyed.
  • the medium transfer device 100 may have only one of the first image pickup device 117a and the second image pickup device 117b and read only one side of the medium. Further, instead of the line sensor by the 1x optical system type CIS equipped with the image sensor by CMOS, the line sensor by the 1x optical system type CIS provided by the image pickup element by CCD (Charge Coupled Device) may be used. Further, a reduced optical system type line sensor including a CMOS or CCD image sensor may be used.
  • the first image pickup sensor 121a and the second image pickup sensor 121b may be collectively referred to as an image pickup sensor 121.
  • the first reference member 122a and the second reference member 122b may be collectively referred to as a reference member 122.
  • the third transfer roller 118 and the fourth transfer roller 119 are provided on the downstream side of the image pickup apparatus 117.
  • the third transfer roller 118 is provided in the lower housing 101.
  • the fourth transfer roller 119 is provided on the upper housing 102 and is arranged so as to face the third transfer roller 118.
  • the medium mounted on the mounting table 103 is conveyed in the medium transport direction A1 between the lower guide 107a and the upper guide 107b by the feeding roller 112 rotating in the direction of the arrow A2 in FIG. ..
  • the brake roller 113 rotates in the direction of arrow A3 when the medium is conveyed.
  • the medium is fed between the first transfer roller 114 and the second transfer roller 115 while being guided by the lower guide 107a and the upper guide 107b.
  • the medium is fed between the first image pickup device 117a and the second image pickup device 117b by rotating the first transfer roller 114 and the second transfer roller 115 in the directions of the arrows A4 and A5, respectively.
  • the medium read by the image pickup apparatus 117 is discharged onto the discharge table 104 by rotating the third transfer roller 118 and the fourth transfer roller 119 in the directions of the arrows A6 and A7, respectively.
  • the feeding roller 112, the brake roller 113, the first transport roller 114, the second transport roller 115, the third transport roller 118, and the fourth transport roller 119 are examples of the transport section and transport the medium.
  • FIG. 3 is a block diagram showing a schematic configuration of the medium transfer device 100.
  • the medium transfer device 100 further includes a motor 131, an interface device 132, a storage device 140, a processing circuit 150, and the like, in addition to the above-described configuration.
  • the motor 131 includes one or a plurality of motors, and the feed roller 112, the brake roller 113, the first transfer roller 114, the second transfer roller 115, the third transfer roller 118, and the third transfer roller 118 are subjected to a control signal from the processing circuit 150. 4
  • the transport roller 119 is rotated to transport the medium.
  • the interface device 132 has an interface circuit similar to a serial bus such as USB, and is electrically connected to an information processing device (for example, a personal computer, a personal digital assistant, etc.) (not shown) to transmit and receive images and various information. do. Further, instead of the interface device 132, a communication unit having an antenna for transmitting and receiving wireless signals and a wireless communication interface device for transmitting and receiving signals through a wireless communication line according to a predetermined communication protocol may be used.
  • the predetermined communication protocol is, for example, a wireless LAN (Local Area Network).
  • the storage device 140 includes a memory device such as a RAM (RandomAccessMemory) and a ROM (ReadOnlyMemory), a fixed disk device such as a hard disk, or a portable storage device such as a flexible disk and an optical disk. Further, the storage device 140 stores computer programs, databases, tables, etc. used for various processes of the medium transfer device 100.
  • the computer program may be installed in the storage device 140 from a computer-readable portable recording medium using a known setup program or the like.
  • the portable recording medium is, for example, a CD-ROM (compact disc read only memory), a DVD-ROM (digital versatile disc read only memory), or the like.
  • the storage device 140 stores as data an area table showing a low reliability area in the input image.
  • the low-reliability region is a region in the input image in which the gradation value of the pixel in which the reference member 122 is imaged is likely to fluctuate in the sub-scanning direction.
  • the processing circuit 150 detects the end portion of the medium in the main scanning direction from the input image, the processing circuit 150 detects the end portion without using the edge pixel detected from the low reliability region.
  • the details of the area table will be described later.
  • the storage device 140 is an example of a storage unit.
  • the processing circuit 150 operates based on a program stored in the storage device 140 in advance.
  • a DSP digital signal processor
  • an LSI large scale integration
  • an ASIC Application Specific Integrated Circuit
  • an FPGA Field-Programmable Gate Array
  • the processing circuit 150 is connected to an operation device 105, a display device 106, a first medium sensor 111, a second medium sensor 116, an image pickup device 117, a motor 131, an interface device 132, a storage device 140, and the like, and controls each of these parts. ..
  • the processing circuit 150 performs drive control of the motor 131, image pickup control of the image pickup device 117, etc., acquires an image, and transmits the image to an information processing device (not shown) via the interface device 132. Further, the processing circuit 150 detects the end portion of the medium based on the image captured by the image pickup apparatus 117.
  • FIG. 4 is a diagram showing a schematic configuration of a storage device 140 and a processing circuit 150.
  • the storage device 140 includes a setting program 141, a control program 142, an image acquisition program 143, an edge pixel detection program 144, an end detection program 145, a medium width detection program 146, an output control program 147, and variations.
  • the area detection program 148 and the like are stored.
  • Each of these programs is a functional module implemented by software running on the processor.
  • the processing circuit 150 reads each program stored in the storage device 140 and operates according to each read program.
  • the processing circuit 150 can be used as a setting unit 151, a control unit 152, an image acquisition unit 153, an edge pixel detection unit 154, an end detection unit 155, a medium width detection unit 156, an output control unit 157, and a fluctuation region detection unit 158. Function.
  • FIG. 5 is a diagram showing an example of the data structure of the area table.
  • a low-reliability region is stored in the region table for each combination of the image pickup device 117 and the transport unit.
  • the image pickup device 117 in which the low reliability region is set includes the first image pickup device 117a and the second image pickup device 117b.
  • the transport section in which the low reliability region is set includes a pair of a feed roller 112 and a brake roller 113, a pair of a first transport roller 114 and a second transport roller 115, and a third transport roller 118 and a fourth transport roller 119. Pairs are included.
  • the low reliability region is set based on the positional relationship between the image pickup position of the image pickup apparatus 117 and the arrangement position of the transport unit.
  • a region to be imaged by each image pickup apparatus 117 in the input image is set when the medium sandwiched between the transport portions comes into contact with the transport guide 123b.
  • the transport guide 132 is omitted, as a low reliability region, when the medium sandwiched between the transport portions comes into contact with the second image pickup device 117b, the image is captured by each image pickup device 117 in the input image.
  • the area is set.
  • a region to be imaged by each image pickup apparatus 117 in the input image is set when the front end or the rear end of the conveyed medium passes through the each conveying portion.
  • 6A, 6B, 7A and 7B are schematic views for explaining a low reliability region.
  • FIG. 6A is a schematic diagram for explaining a region to be imaged by each image pickup device 117 in the input image when the medium sandwiched between the feed roller 112 and the brake roller 113 comes into contact with the second image pickup device 117b. ..
  • the nip positions N1 of the feed roller 112 and the brake roller 113 are arranged above the image pickup surface (conveyor surface) of the first image pickup apparatus 117a.
  • the conveyed medium M is sandwiched between the feeding roller 112 and the brake roller 113, and the tip thereof is on the imaging surface of the first imaging device 117a. It is transported so as to move along. That is, the medium M is conveyed so that its tip is tilted downward.
  • the medium M comes into contact with the upstream end of the second image pickup device 117b (transport guide 123b) at a specific timing, and the second image pickup device 117b is pushed up by the medium M and moves upward.
  • the second image pickup device 117b moves upward, the distance between the first image pickup device 117a and the second image pickup device 117b increases. Therefore, in the input image, the gradation value of the pixel in which the second reference member 122b is imaged by the first image pickup sensor 121a before and after this timing, and the first reference member by the second image pickup sensor 121b before and after this timing.
  • the gradation value of the pixel in which 122a is imaged fluctuates.
  • the setting unit 151 takes images when the tip of the setting unit abuts on the image pickup surface of the first image pickup device 117a and the medium sandwiched between the feeding roller 112 and the brake roller 113 contacts the upstream end portion of the second image pickup device 117b.
  • the area imaged by the device 117 is set as a low reliability area.
  • the setting unit 151 uses a position where a straight line passing through the nip position N1 of the feed roller 112 and the brake roller 113 and the upstream end of the second image pickup device 117b abuts on the image pickup surface of the first image pickup device 117a as a medium. Set as the tip position of.
  • the setting unit 151 is a position corresponding to the relative position of the imaging positions P1 and P2 of each image pickup apparatus 117 with respect to the position including the tip of the medium in the vertical direction (sub-scanning direction) in the input image. Is set as the low reliability position. Then, the setting unit 151 sets a region of a predetermined range (for example, 5 pixels) centered on the set low reliability position as the low reliability region in the vertical direction in the input image. Depending on the transport speed of the medium or the member of the medium transport path, the second image pickup apparatus 117b moves upward and then bounces (vibrates), and the gradation value of the reference member 122 fluctuates in the input image. May be longer.
  • the predetermined range is set in consideration of the influence of the transport speed of the medium or the members of the medium transport path.
  • the medium transfer device 100 can suppress erroneous detection of a region in the input image in which the gradation value of the background fluctuates as an edge of the medium.
  • FIG. 6B is a schematic diagram for explaining a region to be imaged by each image pickup apparatus 117 in the input image when the rear end of the conveyed medium passes through the feed roller 112 and the brake roller 113.
  • the second image pickup apparatus 117b pushed up by the medium M vibrates in conjunction with the medium M.
  • the distance between the first image pickup device 117a and the second image pickup device 117b changes. Therefore, in the input image, the gradation value of the pixel in which the second reference member 122b is imaged by the first image pickup sensor 121a before and after this timing, and the first reference member by the second image pickup sensor 121b before and after this timing.
  • the gradation value of the pixel in which 122a is imaged fluctuates.
  • the setting unit 151 sets a region imaged by each image pickup apparatus 117 as a low reliability region when the rear end of the conveyed medium passes through the feed roller 112 and the brake roller 113.
  • the setting unit 151 sets the position on the downstream side of the nip position N1 of the feeding roller 112 and the brake roller 113 by the long side size (or short side size) of the ID card defined by ISO / IEC7810. Set as the tip position.
  • the setting unit 151 sets a position corresponding to the relative position of the imaging positions P1 and P2 of each image pickup apparatus 117 with respect to the set tip position with respect to the position including the tip of the medium in the vertical direction in the input image as a low reliability position. Set.
  • the setting unit 151 sets a region in a predetermined range centered on the set low-reliability position as the low-reliability region in the vertical direction in the input image.
  • the medium transfer device 100 can suppress erroneous detection of a region in the input image in which the gradation value of the background fluctuates as an edge of the medium.
  • FIG. 7A is a schematic diagram for explaining a region to be imaged by each image pickup apparatus 117 in the input image when the tip of the conveyed medium passes through the third transfer roller 118 and the fourth transfer roller 119.
  • the tip of the medium M collides with the third transfer roller 118 or the fourth transfer roller 119 when passing through the third transfer roller 118 and the fourth transfer roller 119, and the third transfer roller 118 And is guided to the nip position N3 of the fourth transfer roller 119. Since the medium M vibrates due to the impact of the collision with the third transport roller 118 or the fourth transport roller 119, the second image pickup apparatus 117b pushed up by the medium M vibrates in conjunction with the medium M.
  • the setting unit 151 sets a region imaged by each image pickup apparatus 117 as a low reliability region when the tip of the transported medium passes through the third transport roller 118 and the fourth transport roller 119.
  • the setting unit 151 sets the nip position N3 of the third transfer roller 118 and the fourth transfer roller 119 at the tip position of the medium.
  • the setting unit 151 sets a position corresponding to the relative position of the imaging positions P1 and P2 of each image pickup apparatus 117 with respect to the set tip position with respect to the position including the tip of the medium in the vertical direction in the input image as a low reliability position. Set.
  • the setting unit 151 sets a region in a predetermined range centered on the set low-reliability position as the low-reliability region in the vertical direction in the input image.
  • the medium transfer device 100 can suppress erroneous detection of a region in the input image in which the gradation value of the background fluctuates as an edge of the medium.
  • FIG. 7B is a schematic diagram for explaining a region to be imaged by each image pickup apparatus 117 in the input image when the rear end of the transported medium passes through the first transport roller 114 and the second transport roller 115. ..
  • the setting unit 151 sets a region imaged by each image pickup apparatus 117 as a low reliability region when the rear end of the transported medium passes through the first transport roller 114 and the second transport roller 115.
  • the setting unit 151 is located downstream of the nip position N2 of the first transfer roller 114 and the second transfer roller 115 by the long side size (or short side size) of the ID card defined by ISO / IEC7810. Is set at the tip position of the medium.
  • the setting unit 151 sets a position corresponding to the relative position of the imaging positions P1 and P2 of each image pickup apparatus 117 with respect to the set tip position with respect to the position including the tip of the medium in the vertical direction in the input image as a low reliability position. Set.
  • the setting unit 151 sets a region in a predetermined range centered on the set low-reliability position as the low-reliability region in the vertical direction in the input image.
  • the medium transfer device 100 can suppress erroneous detection of a region in the input image in which the gradation value of the background fluctuates as an edge of the medium.
  • the setting unit 151 does not need to set all the above-mentioned areas as low-reliability areas, and at least one area may be set as low-reliability areas.
  • the setting unit 151 does not have to set the region as a low reliability region.
  • FIG 8 and 9 are flowcharts showing an example of the operation of the medium reading process of the medium transport device 100.
  • FIGS. 8 and 9 The operation flow described below is mainly executed by the processing circuit 150 in cooperation with each element of the medium transfer device 100 based on the program stored in the storage device 140 in advance.
  • the flow of operations shown in FIGS. 8 and 9 is executed periodically.
  • control unit 152 waits until the user inputs an instruction to read the medium using the operation device 105 and receives an operation signal instructing to read the medium from the operation device 105 (step S101).
  • control unit 152 determines whether or not the medium is mounted on the mounting table 103 based on the first medium signal received from the first medium sensor 111 (step S102).
  • control unit 152 When the medium is not mounted on the mounting table 103, the control unit 152 returns the process to step S101 and waits until a new operation signal is received from the operating device 105.
  • the control unit 152 drives the motor 131 to drive the feeding roller 112, the brake roller 113, and the first to fourth transport rollers 114, 115, 118, and 119. It is rotated to convey the medium (step S103).
  • the image acquisition unit 153 makes the image pickup device 117 image the conveyed medium and acquires a line image (step S104).
  • the image acquisition unit 153 determines whether or not the tip of the medium has passed the position of the second medium sensor 116 based on the second medium signal received from the second medium sensor 116, and the tip of the medium is the second.
  • the image pickup device 117 may start imaging when the position of the medium sensor 116 is passed.
  • the image acquisition unit 153 periodically acquires the second medium signal from the second medium sensor 116, and the signal value of the second medium signal is changed from the value indicating that the medium does not exist to the value indicating the presence of the medium. When it changes, it is determined that the tip of the medium has passed the position of the second medium sensor 116.
  • the image acquisition unit 153 determines whether or not the end portion of the tip of the medium in the main scanning direction has been detected by the end portion detection unit 155 (step S105). The end of the tip of the medium in the main scanning direction is detected in step S110 described later. If the end of the tip of the medium in the main scanning direction has been detected, the image acquisition unit 153 shifts the process to step S112.
  • the image acquisition unit 153 determines whether or not a predetermined number of line images have been acquired from the image pickup apparatus 117 (step S106).
  • the predetermined number is preset to one or a plurality of values (for example, 100) that are considered to surely include the end portion of the tip of the medium in the main scanning direction.
  • the predetermined number may be set to a value that includes the entire medium.
  • the medium transport device 100 can reliably detect the end portion as the predetermined number is larger, and the end portion can be detected earlier as the predetermined number is smaller. If a predetermined number of line images have not been acquired yet, the image acquisition unit 153 returns the process to step S104 and repeats the processes of steps S104 to S106.
  • the image acquisition unit 153 synthesizes a predetermined number of line images to generate an input image (step S107). That is, the input image is an image generated by the image acquisition unit 153 after the medium is imaged by the image pickup device 117.
  • the image pickup device 117 may synthesize a predetermined number of line images to generate an input image, and the image acquisition unit 153 may acquire the input image from the image pickup device 117.
  • FIG. 10 is a schematic diagram showing an example of the input image 1000.
  • the input image 1000 shown in FIG. 10 includes a medium 1001 and further includes a reference member 122 as a background 1002.
  • the background 1002 includes vertical streak noises 1003, 1004, sudden streak noises 1005, 1006, and horizontal streak noises 1007, 1008, 1009.
  • the vertical streak noises 1003 and 1004 are noises generated by foreign matter such as paper dust, dust, glue, etc. adhering to the image pickup surface (glass surface) of the image pickup apparatus 117, or sensitivity unevenness of the line sensor.
  • the sudden noise is noise generated when the electric signal output from the image pickup device is amplified in the image pickup apparatus 117, noise generated due to a difference in characteristics of each component, or the like.
  • the horizontal streak noise is noise generated when the second image pickup apparatus 117b moves in the height direction A8.
  • the horizontal streak noise 1007 is noise generated when the rear end of the medium 1001 passes through the feeding roller 112 and the brake roller 113.
  • the horizontal streak noise 1008 is noise generated when the tip of the medium 1001 passes through the third transport roller 118 and the fourth transport roller 119.
  • the horizontal streak noise 1009 is noise generated when the rear end of the medium 1001 passes through the first transport roller 114 and the second transport roller 115.
  • the fluctuation amount of the gradation value is sufficiently small and horizontal streak noise is generated. I haven't.
  • the edge pixel detection unit 154 reads out the area table from the storage device 140 and specifies the low reliability area (step S108).
  • the low reliability region when the rear end of the medium passes through the feeding roller 112 and the brake roller 113, the front end of the medium passes through the third transport roller 118 and the fourth transport roller 119. It is assumed that a region to be imaged by each image pickup apparatus 117 is set in the input image when the rear end of the medium passes through the first transfer roller 114 and the second transfer roller 115.
  • the area imaged by each image pickup device 117 in the input image is not set as a low reliability area.
  • the edge pixel detection unit 154 detects a plurality of edge pixels in the sub-scanning direction from the input image (step S109).
  • the edge pixel detection unit 154 has a sub-scanning direction based on the gradation values of a plurality of pixels whose positions in the main scanning direction are the same as each other in the input image and the distances in the sub-scanning direction are within a predetermined range of each other. Detects the edge pixel of.
  • the edge pixel detection unit 154 determines the gradation values of the pixels on both sides of each pixel in the vertical line in the vertical direction in order from the upper side for each vertical line extending in the vertical direction (sub-scanning direction).
  • the absolute value of the difference (hereinafter referred to as the adjacent difference value) is calculated.
  • the edge pixel detection unit 154 detects a pixel in each vertical line whose adjacent difference value exceeds the gradation threshold value as an edge pixel.
  • the edge pixel detection unit 154 sets the edge pixel first detected in each vertical line, that is, the pixel located on the uppermost side, as the upper end edge pixel, and detects it as the edge pixel in the sub-scanning direction.
  • the gradation value is a luminance value or a color value (R value, G value or B value) or the like.
  • the gradation threshold value is set to, for example, a difference in luminance value (for example, 20) in which a person can visually discriminate the difference in luminance on an image.
  • the edge pixel detection unit 154 may calculate the absolute value of the difference between the gradation values of two pixels vertically separated from each pixel in the input image by a predetermined distance as an adjacent difference value. Further, the edge pixel detection unit 154 may detect the edge pixel by comparing the gradation value of each pixel in the input image with the threshold value. For example, in the edge pixel detection unit 154, the gradation value of a specific pixel is less than the threshold value, and the gradation value of a pixel vertically adjacent to the specific pixel or a pixel separated by a predetermined distance is equal to or more than the threshold value. If there is, the specific pixel is detected as an edge pixel.
  • the edge pixel detection unit 154 does not detect the edge pixels in the sub-scanning direction for all the pixels in the input image, but instead detects the edge pixels in the sub-scanning direction at regular intervals (for example, 4 pixels) in the main scanning direction in the input image. Edge pixels may be detected.
  • the edge pixel detection unit 154 extracts a target line for detecting edge pixels in the sub-scanning direction from the vertical lines in the input image at regular intervals, and extracts edge pixels in the sub-scanning direction for the extracted target line. To detect.
  • the edge pixel detection unit 154 can reduce the time required for detecting the end portion of the medium, and reduce the processing time and processing load of the medium reading process.
  • the edge pixel detection unit 154 identifies the position of the edge pixel in the sub-scanning direction detected at the uppermost side in the input image as the position including the tip of the medium, and sets it as a low reliability region with reference to the specified position. Identify the area that was created. The edge pixel detection unit 154 does not detect the edge pixel in the sub-scanning direction from the specified low-reliability region, but detects the edge pixel in the sub-scanning direction only from the region in the input image that does not include the low-reliability region.
  • the edge pixel detection unit 154 receives from the first medium sensor 111 a low-reliability region imaged by each image pickup device 117 in the input image when the rear end of the medium passes through the feeding roller 112 and the brake roller 113. It may be specified based on the first medium signal to be used. In that case, the edge pixel detection unit 154 periodically acquires the first medium signal from the first medium sensor 111. In the edge pixel detection unit 154, when the signal value of the first medium signal changes from a value indicating the presence of the medium to a value indicating the absence of the medium, the rear end of the medium is the feeding roller 112 and the brake roller 113. It is determined that the position is immediately before the nip position of.
  • the edge pixel detection unit 154 determines that the rear end of the medium is located immediately before the nip position of the feeding roller 112 and the brake roller 113, and then within a certain period of time, the region in the input image captured by each image pickup device 117 is captured. Specify as a low reliability area.
  • the edge pixel detection unit 154 sets a low reliability region imaged by each image pickup apparatus 117 in the input image when the rear end of the medium passes through the first transfer roller 114 and the second transfer roller 115 as the first medium. It may be specified based on the first medium signal received from the sensor 111. The edge pixel detection unit 154 determines that the rear end of the medium is located immediately before the nip position of the feeding roller 112 and the brake roller 113, and when a predetermined time corresponding to a predetermined medium movement amount has elapsed, the media It is determined that the rear end is located immediately before the first transfer roller 114 and the second transfer roller 115.
  • the edge pixel detection unit 154 determines that the rear end of the medium is located immediately before the first transport roller 114 and the second transport roller 115, and then within a certain period of time, the region in the input image captured by each image pickup device 117 is captured. Specify as a low reliability area.
  • FIG. 11 is a schematic diagram for explaining the upper end edge pixel.
  • FIG. 11 shows the input image 1000 shown in FIG.
  • the dotted line extending in the vertical direction indicates a vertical line extracted as a target line.
  • the pixels T1 to T14 are detected as the upper end edge pixels.
  • the upper end edge pixels T1 and T2 are pixels corresponding to sudden noises 1005 and 1006, respectively.
  • the upper end edge pixel T3 is a pixel corresponding to the left side of the medium.
  • the upper end edge pixels T4 to T14 are pixels corresponding to the upper side of the medium. As shown in FIG.
  • each vertical streak noise 1003, 1004 is stretched in the vertical direction and the gradation value of each pixel in each vertical streak noise 1003, 1004 is within a certain range, each vertical streak noise 1003, The pixel corresponding to 1004 is not detected as the upper edge pixel.
  • the vertical streak noise generated or disappeared during reading (during medium transport) has a change in gradation value at the end thereof, and is therefore detected in the same manner as the sudden noises 1005 and 1006.
  • the vertical streak noise generated or disappeared during reading (during medium transport) is processed in the same manner as the sudden noises 1005 and 1006 in the processing described later, and is not erroneously detected as the end portion of the medium. Further, since the periphery of each horizontal streak noise 1007, 1008, 1009 is set as a low reliability region, the pixel corresponding to each horizontal streak noise 1007, 1008, 1009 is not detected as the upper end edge pixel.
  • the end detection unit 155 detects the end of the tip of the medium in the main scanning direction based on the edge pixels in the sub-scanning direction detected from the region that does not include the low-reliability region in the input image (step). S110). The end detection unit 155 detects the end of the tip of the medium in the main scanning direction based on the positional relationship between the edge pixels in the plurality of sub-scanning directions detected by the edge pixel detecting unit 154.
  • the end detection unit 155 has, as a positional relationship between a plurality of edge pixels in the sub-scanning direction, the number or ratio of edge pixels in the sub-scanning direction within a certain range in the main scanning direction, that is, a certain range in the main scanning direction. Calculate the density of edge pixels in the sub-scanning direction.
  • the end detection unit 155 is the number or ratio of the target lines in which the edge pixels in the sub-scanning direction are detected in the target lines located within a certain range from each target line for each target line extracted from the vertical line. Is calculated.
  • the fixed range is set so that the calculation target of the number or ratio is a predetermined number (for example, 5) of 2 or more.
  • the target line in which the calculated number is the threshold value (for example, 3) or more, or the target line in which the calculated ratio is the threshold value (for example, 0.6) or more is adjacent to each other and is continuous. Extract the group.
  • the end detection unit 155 detects the range in the main scanning direction of the target line group having the largest number of target lines included in the extracted target line group as the tip range of the medium in the main scanning direction. Even if the end detection unit 155 detects a range in which the detected range is reduced by a predetermined margin or a range in which the detected range is expanded by a predetermined margin as the tip range of the medium in the main scanning direction. good. The end detection unit 155 detects the positions of both ends of the target line group detected as the tip range of the medium in the main scanning direction as the ends of the tip of the medium in the main scanning direction.
  • the range from the target line including the upper end edge pixel T3 to the target line including the upper end edge pixel T14 is detected as the tip range of the medium.
  • the target line including the upper end edge pixel T3 and the target line including the upper end edge pixel T14 are detected as the ends of the tip of the medium in the main scanning direction. That is, the pixels corresponding to the vertical streak noises 1003 and 1004 are not detected as the upper end edge pixels, and therefore are not included in the tip range of the medium.
  • the target lines including the upper end edge pixels T1 and T2 corresponding to the sudden noises 1005 and 1006 are located discretely, they are not included in the tip range of the medium.
  • the pixels corresponding to the horizontal streak noises 1007, 1008, and 1009 are not detected as the upper end edge pixels, and therefore are not included in the tip range of the medium. Even if the difference between the gradation values of the background and the medium is small in some of the target lines corresponding to the tip of the medium and the top edge pixel is not detected, the top edge of the surrounding target line is the top edge. When an edge pixel is detected, a part of the target line is also included in the tip range of the medium.
  • the end detection unit 155 reduces the influence of noise and the influence of detection omission of the upper end edge pixel by using the number or ratio of edge pixels in the sub-scanning direction within a certain range, thereby reducing the influence of noise and the influence of detection omission of the upper end edge pixel, and the tip range of the medium.
  • the end portion can be detected with high accuracy.
  • horizontal streak noise is detected as edge pixels in the sub-scanning direction, which causes an erroneous detection of the tip range of the medium when the tip range of the medium is used by using the edge pixels in the sub-scanning direction. ..
  • the end detection unit 155 uses the upper end edge pixels to detect the tip range of the medium and its ends with high accuracy by excluding the region where horizontal streak noise is generated from the region for detecting the upper end edge pixels. be able to.
  • the end detection unit 155 may detect the edge pixels in the sub-scanning direction continuously detected in the main scanning direction as the positional relationship between the edge pixels in the plurality of sub-scanning directions. In that case, the end detection unit 155 calculates the number (continuous number) of edge pixels in the sub-scanning direction that are continuously detected in the main scanning direction. The end detection unit 155 extracts a group of target lines in which target lines in which edge pixels in the sub-scanning direction are detected are adjacent to each other and are continuous by a predetermined number (for example, three) or more.
  • the end detection unit 155 detects the range in the main scanning direction of the target line group having the largest number of target lines included in the extracted target line group as the tip range of the medium in the main scanning direction. Even if the end detection unit 155 detects a range in which the detected range is reduced by a predetermined margin or a range in which the detected range is expanded by a predetermined margin as the tip range of the medium in the main scanning direction. good. The end detection unit 155 detects the positions of both ends of the target line group detected as the tip range of the medium in the main scanning direction as the ends of the tip of the medium in the main scanning direction.
  • the range from the target line including the upper end edge pixel T3 to the target line including the upper end edge pixel T14 is detected as the tip range of the medium.
  • the target line including the upper end edge pixel T3 and the target line including the upper end edge pixel T14 are detected as the ends of the tip of the medium in the main scanning direction. That is, the pixels corresponding to the vertical streak noises 1003 and 1004 are not detected as the upper end edge pixels, and therefore are not included in the tip range of the medium.
  • the target lines including the upper end edge pixels T1 and T2 corresponding to the sudden noises 1005 and 1006 are located discretely, they are not included in the tip range of the medium.
  • the pixels corresponding to the horizontal streak noises 1007, 1008, and 1009 are not detected as the upper end edge pixels, and therefore are not included in the tip range of the medium.
  • the end detection unit 155 is based on the edge pixels in the sub-scanning direction continuously detected in the main scanning direction, thereby reducing the influence of noise and shortening the tip range of the medium and its end. Moreover, it can be detected with a low load.
  • the end detection unit 155 uses the upper end edge pixels by excluding the area where horizontal streak noise is generated from the area for detecting the upper end edge pixels, so that the tip range of the medium and its end can be accurately detected. Can be detected.
  • the end detection unit 155 may calculate the approximation of the position in the sub-scanning direction as the positional relationship between the edge pixels in the plurality of sub-scanning directions. For example, the end detection unit 155 calculates the distance in the sub-scanning direction between the edge pixels in the plurality of sub-scanning directions as the approximation of the position in the sub-scanning direction.
  • the target lines in which the edge pixels in the sub-scanning direction are detected are located within the first distance from each other in the main scanning direction, and the edge pixels in the sub-scanning direction detected in each target line are sub-scanning. A group of target lines located within the second distance in the direction is extracted.
  • the first distance is set to, for example, a predetermined time (for example, twice) the distance between the target lines adjacent to each other.
  • the second distance is set to, for example, a predetermined time (for example, twice) the distance between the target lines adjacent to each other.
  • the end detection unit 155 detects the range in the main scanning direction of the target line group having the largest number of target lines included in the extracted target line group as the tip range of the medium in the main scanning direction. Even if the end detection unit 155 detects a range in which the detected range is reduced by a predetermined margin or a range in which the detected range is expanded by a predetermined margin as the tip range of the medium in the main scanning direction. good. The end detection unit 155 detects the positions of both ends of the target line group detected as the tip range of the medium in the main scanning direction as the ends of the tip of the medium in the main scanning direction.
  • the range from the target line including the upper end edge pixel T4 to the target line including the upper end edge pixel T14 is detected as the tip range of the medium. That is, the pixels corresponding to the vertical streak noises 1003 and 1004 are not detected as the upper end edge pixels, and therefore are not included in the tip range of the medium. Further, since the target lines including the upper end edge pixels T1 and T2 corresponding to the sudden noises 1005 and 1006 are located discretely, they are not included in the tip range of the medium. Further, the pixels corresponding to the horizontal streak noises 1007, 1008, and 1009 are not detected as the upper end edge pixels, and therefore are not included in the tip range of the medium.
  • the line is not included in the tip range of the medium.
  • the end detection unit 155 reduces the influence of noise and the influence of the side side of the medium by using the distance in the sub-scanning direction between the edge pixels in the sub-scanning direction, and reduces the influence of noise and the influence of the side of the medium, so that the tip range of the medium and its edge
  • the part can be detected with high accuracy.
  • the end detection unit 155 uses the upper end edge pixels by excluding the area where horizontal streak noise is generated from the area for detecting the upper end edge pixels, so that the tip range of the medium and its end can be accurately detected. Can be detected.
  • the end detection unit 155 may calculate the frequency of edge pixels in the sub-scanning direction for each line in a plurality of main scanning directions as the approximation of the position in the sub-scanning direction.
  • the end detection unit 155 calculates the number of edge pixels detected in the sub-scanning direction on the line in the main scanning direction for each line in the main scanning direction.
  • the end detection unit 155 generates a histogram in which the position in the sub-scanning direction of the line in each main scanning direction is a class and the calculated number is used for the line in each main scanning direction as a frequency.
  • the end detection unit 155 extracts the target line in which the edge pixel in the sub-scanning direction is detected as the target line group within the class range in which the frequency is equal to or higher than the frequency threshold value.
  • the frequency threshold is set to a predetermined value (for example, 3) in advance.
  • the frequency threshold value may be dynamically set according to the generated histogram. In that case, the frequency threshold is set to, for example, 1/2 of the maximum frequency.
  • the end detection unit 155 detects the range of the extracted target line group in the main scanning direction as the tip range of the medium in the main scanning direction. Even if the end detection unit 155 detects a range in which the detected range is reduced by a predetermined margin or a range in which the detected range is expanded by a predetermined margin as the tip range of the medium in the main scanning direction. good. The end detection unit 155 detects the positions of both ends of the target line group detected as the tip range of the medium in the main scanning direction as the ends of the tip of the medium in the main scanning direction.
  • FIG. 12 is a schematic diagram for explaining the histogram 1200 generated by the end detection unit 155.
  • FIG. 12 shows a histogram 1200 generated from the input image 1000 shown in FIG.
  • the vertical axis indicates the position (class) of the line in each main scanning direction in the sub-scanning direction
  • the horizontal axis indicates the number (frequency) calculated for the line in each main scanning direction.
  • the frequency is high in the range in which the upper end edge pixels T4 to T14 corresponding to the upper side of the medium are present in the sub-scanning direction.
  • the frequency is low at the positions where the upper end edge pixels T1 and T2 corresponding to the sudden noises 1005 and 1006 and the upper end edge pixels T3 corresponding to the left side of the medium are present.
  • the range from the target line including the upper end edge pixel T4 to the target line including the upper end edge pixel T14 is detected as the tip range of the medium. That is, the target line including the upper end edge pixels T1 and T2 corresponding to the sudden noises 1005 and 1006 and the target line including the upper end edge pixels T3 corresponding to the left side of the medium 1001 are not included in the tip range of the medium.
  • the end detection unit 155 reduces the influence of noise and the influence of the side side of the medium by using the frequency of the edge pixels in the sub-scanning direction for each line in the main scanning direction, thereby reducing the influence of noise and the influence of the side of the medium, and the tip range of the medium and its surface.
  • the edge can be detected with high accuracy.
  • the end detection unit 155 uses the upper end edge pixels by excluding the area where horizontal streak noise is generated from the area for detecting the upper end edge pixels, so that the tip range of the medium and its end can be accurately detected. Can be detected.
  • the medium width detecting unit 156 detects the medium width based on the end portion of the tip of the medium detected by the end portion detecting unit 155 in the main scanning direction (step S111).
  • the medium width detecting unit 156 detects, for example, the Euclidean distance between both ends of the tip of the medium in the main scanning direction as the medium width.
  • the medium width detection unit 156 calculates the Euclidean distance W between both ends of the tip of the medium in the main scanning direction according to the following equation (1).
  • (x 1 , y 1 ) is the coordinates of one end of the tip of the medium in the main scanning direction in the coordinate system in which the main scanning direction is the x-axis and the sub-scanning direction is the y-axis in the input image.
  • (X 2 , y 2 ) are the coordinates of the other end of the tip of the medium in the main scanning direction in the coordinate system.
  • the medium transfer device 100 stores in advance a table showing the relationship between the coordinates of each end and the Euclidean distance, and the medium width detection unit 156 acquires the Euclidean distance by referring to the table. May be good.
  • the medium width detection unit 156 may detect the distance in the main scanning direction between both ends of the tip of the medium in the main scanning direction as the medium width. In that case, the medium width detecting unit 156 calculates the distance W in the main scanning direction between both ends of the tip of the medium in the main scanning direction according to the following equation (2).
  • the image acquisition unit 153 determines whether or not the entire medium has been imaged (step S112).
  • the image acquisition unit 153 determines, for example, whether or not the rear end of the medium has passed the position of the second medium sensor 116 based on the second medium signal received from the second medium sensor 116.
  • the image acquisition unit 153 periodically acquires the second medium signal from the second medium sensor 116, and the signal value of the second medium signal is changed from the value indicating the presence of the medium to the value indicating the absence of the medium. When it changes, it is determined that the tip of the medium has passed the position of the second medium sensor 116.
  • the image acquisition unit 153 states that when a predetermined time has elapsed since the rear end of the medium passed the position of the second medium sensor 116, the rear end of the medium passed the image pickup position of the image pickup apparatus 117 and the entire medium was imaged. judge.
  • the image acquisition unit 153 may determine that the entire conveyed medium has been imaged when a predetermined number of line images have been acquired from the image pickup apparatus 117.
  • the image acquisition unit 153 returns the process to step S104 and repeats the processes of steps S104 to S112.
  • the image acquisition unit 153 when the entire conveyed medium is imaged, the image acquisition unit 153 generates a scanned image by combining all the acquired line images (step S113).
  • the image acquisition unit 153 may use the input image as a scanned image.
  • the edge pixel detection unit 154 detects a plurality of edge pixels in the main scanning direction from the scanned image (step S114).
  • the edge pixel detection unit 154 has a main scanning direction based on the gradation values of a plurality of pixels whose positions in the sub-scanning direction are the same in the scanned image and the distances in the main scanning direction are within a predetermined range of each other. Detects the edge pixel of. Further, the edge pixel detection unit 154 detects the edge pixels in the main scanning direction within a predetermined distance from the two ends in the main scanning direction of the tip of the medium detected by the end detecting unit 155 in the main scanning direction. To detect.
  • the end detection unit 155 is located on the left side of the scanned image within a predetermined distance from the left end of the tip of the medium detected by the end detection unit 155 for each horizontal line extending in the horizontal direction (main scanning direction). In order from, the horizontal adjacent difference value of each pixel in each horizontal line is calculated. The end detection unit 155 detects pixels in each horizontal line whose adjacent difference value exceeds the gradation threshold value as edge pixels. The end detection unit 155 detects the first detected edge pixel in each horizontal line, that is, the leftmost pixel within a predetermined distance from the left end of the tip of the medium detected by the end detection unit 155. The leftmost edge pixel is used.
  • the end detection unit 155 detects edge pixels in order from the right side within a predetermined distance from the right end of the tip of the medium detected by the end detection unit 155.
  • the end detection unit 155 sets the edge pixel first detected in each horizontal line, that is, the pixel located on the rightmost side within a predetermined distance from the right end of the tip of the medium detected by the end detection unit 155. It is an edge pixel.
  • the end detection unit 155 detects the left end edge pixel and the right end edge pixel as edge pixels in the main scanning direction.
  • the end detection unit 155 may calculate the absolute value of the difference between the gradation values of two pixels horizontally separated from each pixel in the scanned image by a predetermined distance as an adjacent difference value. Further, the end detection unit 155 may detect the edge pixel by comparing the gradation value of each pixel in the scanned image with the threshold value. For example, in the end detection unit 155, the gradation value of a specific pixel is less than the threshold value, and the gradation value of a pixel horizontally adjacent to the specific pixel or a pixel separated by a predetermined distance is equal to or more than the threshold value. If there is, the specific pixel is detected as an edge pixel.
  • the end detection unit 155 does not detect the edge pixels in the main scanning direction for all the pixels in the scanned image, but in the scanned image at regular intervals (for example, 4 pixels) in the sub-scanning direction in the main scanning direction. Edge pixels may be detected.
  • the end detection unit 155 extracts a target line for detecting edge pixels in the main scanning direction from the horizontal lines in the scanned image at regular intervals, and extracts edge pixels in the main scanning direction for the extracted target lines. To detect.
  • the end detection unit 155 can reduce the time required for detecting the end of the medium, and can reduce the processing time and processing load of the medium reading process.
  • the edge pixel detection unit 154 does not detect the edge pixel in the main scanning direction from the low-reliability region and does not include the low-reliability region in the input image, as in the case of detecting the edge pixel in the sub-scanning direction.
  • the edge pixel in the main scanning direction is detected only from only.
  • FIG. 13 is a schematic diagram for explaining the left end edge pixel and the right end edge pixel.
  • FIG. 13 shows the input image 1000 shown in FIG. In FIG. 10, the dotted line extending in the horizontal direction indicates a horizontal line extracted as a target line.
  • the pixels L1 to L11 are detected as the leftmost edge pixels, and the pixels R1 to R11 are detected as the rightmost edge pixels.
  • the leftmost edge pixels L1 to L11 are pixels corresponding to the left side of the medium, respectively.
  • the rightmost edge pixels R1 to R11 are pixels corresponding to the right side of the medium, respectively.
  • Each edge pixel is detected within a predetermined distance in the main scanning direction from each end T3, T14 of the tip of the medium detected by the end detection unit 155.
  • the edge pixels corresponding to the side sides of the medium are well detected without being affected by the vertical streak noises 1003 and 1004 and the sudden noises 1005 and 1006. Further, the periphery of each horizontal streak noise 1007, 1008, 1009 is set as a low reliability region. Therefore, the edge pixels corresponding to the side sides of the medium are well detected without being affected by the horizontal streak noises 1007, 1008, and 1009.
  • the end detection unit 155 detects the side side of the medium as the end of the medium in the main scanning direction based on the edge pixels in the main scanning direction (step S115).
  • the end detection unit 155 detects a straight line passing through each left end edge pixel as the left side of the medium and detects a straight line passing through each right end edge pixel as the right side of the medium by using the least squares method.
  • the end detection unit 155 may detect a straight line passing through each edge pixel as a side side of the medium by using a Hough transform.
  • the end detection unit 155 detects the end of the rear end of the medium in the main scanning direction (step S116).
  • the edge pixel detection unit 154 detects edge pixels in the input image or the scanned image in the same manner as in the process of step S109, and the edge pixel located at the lowermost side in each vertical line is the lower end edge pixel (sub-scanning direction). Detected as an edge pixel).
  • the end detection unit 155 detects the end of the rear end of the medium in the main scanning direction based on the lower end edge pixel in the same manner as in the process of step S110.
  • the output control unit 157 generates a cut-out image obtained by cutting out a region of the medium from the read image (step S117).
  • the output control unit 157 detects a straight line passing through the upper end edge pixel as the upper side of the medium and detects a straight line passing through the lower end edge pixel as the lower side of the medium by using the least squares method or the Hough transform.
  • the output control unit 157 detects a region surrounded by the detected upper side and lower side and the two side sides of the medium detected by the end detection unit 155 as a medium region.
  • the output control unit 157 cuts out a region of the detected medium and generates a cut-out image.
  • the output control unit 157 outputs the generated cutout image by transmitting it to the information processing device via the interface device 132 (step S118).
  • the output control unit 157 may output the generated cutout image by displaying it on the display device 106.
  • the side side of the medium in the cut-out image is the end of the medium detected by the end detection unit 155 in the main scanning direction, and the cut-out image is an example of information about the end detected by the end detection unit 155. ..
  • the output control unit 157 transmits the scanned image to the information processing apparatus without generating the cut-out image, and indicates the position of the end portion of the medium detected by the end portion detecting unit 155 in the scanned image in the main scanning direction.
  • the coordinates may be transmitted to the information processing apparatus as information about the end. In that case, the information processing apparatus generates a cut-out image from the read image based on the received coordinates.
  • the output control unit 157 may determine in step S110 whether the medium is a card or paper based on the end of the tip of the medium detected by the end detection unit 155. In that case, the output control unit 157 determines that the medium is a card when the distance between the ends of the tips of the medium is equal to or less than the threshold value, and determines that the medium is a card when the distance between the ends of the tips of the medium is larger than the threshold value. Is determined to be paper.
  • the threshold value is set to, for example, a value obtained by adding a margin to the longitudinal size of the card defined by ISO / IEC7810.
  • the output control unit 157 transmits information indicating whether the medium is a card or paper to the information processing apparatus as information regarding the end portion of the medium.
  • the information processing apparatus classifies the received images according to whether the medium is a card or paper. Further, the output control unit 157 periodically determines whether or not the double feeding of the conveyed medium has occurred based on the ultrasonic signal output from the ultrasonic sensor (not shown), and the double feeding of the medium is performed. When it occurs, the transport of the medium may be stopped. In that case, when the medium is a card, the output control unit 157 may determine that double feeding of the medium has not occurred. As a result, the output control unit 157 can prevent the output control unit 157 from erroneously determining that double feeding of the medium has occurred when the card is conveyed.
  • the output control unit 157 detects the size of the medium based on the end of the medium detected by the end detection unit 155 in the main scanning direction, and the third transport roller 118 and the third transfer roller 118 according to the detected size of the medium. 4
  • the rotation speed of the transport roller 119 (the discharge speed of the medium) may be changed. In that case, the output control unit 157 detects the distance between the ends of the medium in the main scanning direction as the size of the medium.
  • the output control unit 157 is a motor so as to change the rotation speeds of the third transfer roller 118 and the fourth transfer roller 119 according to the size of the detected medium. Change the rotation speed of 131.
  • the output control unit 157 changes the rotation speed of the motor 131 so that the smaller the size of the medium, the lower (slower) the rotation speed, and the larger the size of the medium, the higher (faster) the rotation speed.
  • the medium transport device 100 can prevent the medium having a small size from being ejected vigorously and being scattered on the ejection table 104, and can improve the alignment of the medium on the ejection table 104.
  • the output control unit 157 may determine in step S110 whether or not the skew of the medium has occurred based on the end of the tip of the medium detected by the end detection unit 155.
  • the medium transport device 100 is set with a range of the position of the end portion of the tip of the medium and a range of the inclination (angle with respect to the main scanning direction) of the tip of the medium, which is considered to have caused the skew of the medium.
  • the table is stored in the storage device 140 in advance.
  • the output control unit 157 calculates the slope of a straight line passing through the two ends of the tip of the medium detected by the end detection unit 155.
  • the output control unit 157 causes skew of the medium depending on whether or not the two ends of the tip of the medium detected by the end detection unit 155 and the calculated inclination are included in the preset range. Judge whether or not.
  • the output control unit 157 determines that the skew of the medium has occurred, the motor 131 is stopped to stop the transfer of the medium, and the information indicating that the transfer abnormality of the medium has occurred is used as the information regarding the end of the medium. Output and notify the user.
  • control unit 152 determines whether or not the medium remains on the mounting table 103 based on the first medium signal received from the first medium sensor 111 (step S119). When the medium remains on the mounting table 103, the control unit 152 returns the process to step S104 and repeats the process of steps S104 to S119.
  • control unit 152 stops the motor 131 (step S120) and ends a series of steps.
  • step S111 may be omitted. Further, the processing of steps S114 to S117 may be omitted, and the output control unit 157 may output the scanned image in step S118.
  • the edge pixel detection unit 154 may detect edge pixels in the sub-scanning direction from the entire region in the input image. In that case, in step S110, the end detection unit 155 only detects the edge pixels in the sub-scanning direction from the area that does not include the low-reliability area among the edge pixels detected by the edge pixel detection unit 154 in the input image. The end of the tip of the medium in the main scanning direction is detected based on.
  • the edge pixel detection unit 154 may detect edge pixels in the main scanning direction from the entire region in the input image. In that case, in step S115, the end detection unit 155 is limited to the edge pixels in the main scanning direction detected from the area that does not include the low reliability area among the edge pixels detected by the edge pixel detection unit 154 in the input image. The end of the medium in the main scanning direction is detected based on.
  • the medium transfer device 100 uses edge pixels in a low-reliability region in which the gradation value of the reference member 122 changes when a medium such as a card having high rigidity is conveyed in the input image. Instead, it detects the edge of the medium in the main scanning direction. As a result, the medium transport device 100 removes the influence of noise generated by the movement of the second image pickup device 117b in the height direction A8, and detects the end portion of the medium in the main scanning direction from the image with higher accuracy. Is now possible.
  • the medium transfer device 100 detects the end portion of the tip of the medium in the main scanning direction before the entire medium is imaged based on the input image including a predetermined number of line images, the medium transfer device 100 detects the end portion of the tip of the medium in the main scanning direction at an early stage (in real time). It has become possible to detect the end of the tip of the medium in the main scanning direction.
  • steps S201 to S207, S211 to S213, and S218 to S221 of FIGS. 14 and 15 are the same as the processes of steps S101 to S107, S111 to S113, and S117 to S120 of FIGS. 8 and 9, and are therefore detailed. The explanation is omitted. Hereinafter, only steps S208 to S210 and S214 to S217 will be described.
  • step S208 the edge pixel detection unit 154 detects a plurality of edge pixels in the sub-scanning direction from the input image in the same manner as in the process of step S109 of FIG. 7 (step S208). However, the edge pixel detection unit 154 detects edge pixels in the sub-scanning direction from the entire region in the input image.
  • the fluctuation region detection unit 158 detects a fluctuation region in which the gradation value fluctuates with respect to the peripheral pixels in the region including the reference member 122 in the input image (step S209).
  • the fluctuation region detection unit 158 detects the fluctuation region based on the positional relationship of the edge pixels in the plurality of sub-scanning directions detected by the edge pixel detection unit 154.
  • the fluctuation region detection unit 158 detects the pixel detected as the edge pixel in the sub-scanning direction on the leftmost side as the leftmost edge pixel for each horizontal line in the input image, and as the edge pixel in the sub-scanning direction on the rightmost side. The detected pixel is detected as the rightmost edge pixel.
  • the fluctuation region detection unit 158 positions the left end edge pixel and the right end edge pixel of the horizontal line adjacent to the horizontal line or within a predetermined distance below the sub-scanning direction with respect to the left end edge pixel and the right end edge pixel of each horizontal line. Calculate the fluctuation value.
  • the fluctuation area detection unit 158 divides the difference between the positions of the two corresponding edge pixels in the main scanning direction by the difference between the positions of the two edge pixels in the sub-scanning direction, and divides the divided value into the fluctuation value of the position of each edge pixel. Calculated as.
  • the fluctuation area detection unit 158 scans each horizontal line from the uppermost horizontal line toward the lower side, and first, the magnitude of the fluctuation value of either the left end edge pixel or the right end edge pixel is equal to or larger than the fluctuation threshold value.
  • the position of the horizontal line that has become is detected as the tip position of the medium.
  • the fluctuation region detection unit 158 further scans each horizontal line downward from the horizontal line detected as the tip position.
  • the fluctuation area detection unit 158 is a horizontal line in which the magnitude of the fluctuation value of either the left end edge pixel or the right end edge pixel is once less than the fluctuation threshold value and then becomes the fluctuation threshold value or more again, or a predetermined margin from the horizontal line.
  • the area below the upper horizontal line is detected as a variable area.
  • FIG. 16 is a schematic diagram for explaining the fluctuation region.
  • Graph 1600 in FIG. 16 is a graph showing the positions of the left end edge pixel and the right end edge pixel in the input image 1000.
  • the vertical axis indicates the position in the input image in the sub-scanning direction
  • the horizontal axis indicates the position in the input image in the main scanning direction.
  • the solid line 1601 indicates the position of the left end edge pixel
  • the dotted line 1602 indicates the position of the right end edge pixel.
  • the region 1603 in the solid line 1601 corresponds to the left side of the medium 1001.
  • the region 1604 corresponds to the horizontal streak noise 1007.
  • the area 1605 in the dotted line 1602 corresponds to the upper side of the medium 1001.
  • the region 1606 corresponds to the right side of the medium 1001.
  • the region 1607 corresponds to the horizontal streak noise 1007.
  • the graph 1620 of FIG. 16 is a graph showing changes in the positions of the left end edge pixel and the right end edge pixel in the input image 1000.
  • the vertical axis indicates the position in the input image in the sub-scanning direction
  • the horizontal axis indicates the fluctuation value.
  • the solid line 1621 shows the fluctuation value for the left end edge pixel
  • the dotted line 1622 shows the fluctuation value for the right end edge pixel.
  • the regions 1623 to 1624 in the solid line 1621 correspond to the regions 1603 to 1604 in the solid line 1601
  • the regions 1625 to 1627 in the dotted line 1622 correspond to the regions 1605 to 1607 in the dotted line 1602.
  • the absolute value of the fluctuation value is large in the region 1625 of the right end edge pixel corresponding to the upper side of the medium 1001. After that, the absolute value of the fluctuation value becomes small in the region 1623 of the left end edge pixel corresponding to the left side of the medium 1001 and the region 1626 of the right end edge pixel corresponding to the right side of the medium 1001. Then, the absolute value of the fluctuation value is increased again in the region 1624 of the left end edge pixel and the region 1627 of the right end edge pixel corresponding to the horizontal streak noise 1007. Therefore, the region 1624 or the region below the region 1627 in the sub-scanning direction, that is, the region below the horizontal streak noise 1007 is detected as the fluctuation region.
  • the end detection unit 155 is the main scanning direction of the tip of the medium based on the edge pixels in the sub-scanning direction detected from the region not including the fluctuation region detected by the fluctuation region detection unit 158 in the input image. (Step S210). The end detection unit 155 detects the end of the tip of the medium in the main scanning direction in the same manner as in the process of step S110.
  • step S214 the edge pixel detection unit 154 detects a plurality of edge pixels in the main scanning direction from the scanned image in the same manner as in the process of step S114 of FIG. 8 (step S214). However, the edge pixel detection unit 154 detects edge pixels in the main scanning direction from the entire region in the scanned image.
  • the fluctuation region detection unit 158 detects the fluctuation region based on the positional relationship of the edge pixels in the plurality of main scanning directions detected by the edge pixel detection unit 154 (step S215).
  • the fluctuation region detection unit 158 detects the fluctuation region using the left end edge pixel and the right end edge pixel of each horizontal line detected in step S214.
  • the fluctuation region detection unit 158 positions the left end edge pixel and the right end edge pixel of the horizontal line adjacent to the horizontal line or within a predetermined distance below the sub-scanning direction with respect to the left end edge pixel and the right end edge pixel of each horizontal line. Calculate the fluctuation value.
  • the fluctuation area detection unit 158 divides the difference between the positions of the two corresponding edge pixels in the main scanning direction by the difference between the positions of the two edge pixels in the sub-scanning direction, and divides the divided value into the fluctuation value of the position of each edge pixel. Calculated as.
  • the fluctuation region detection unit 158 scans each horizontal line downward from the horizontal line at the tip position of the medium detected in step S210.
  • the fluctuation area detection unit 158 expands a region in which the magnitude of the fluctuation value of either the left end edge pixel or the right end edge pixel is equal to or larger than the fluctuation threshold value in the sub-scanning direction, or a region thereof by a predetermined margin.
  • the region is detected as a variable region.
  • FIG. 17 is a schematic diagram for explaining the fluctuation region.
  • Graph 1700 in FIG. 17 is a graph showing the positions of the left end edge pixel and the right end edge pixel in the input image 1000.
  • the vertical axis indicates the position in the input image in the sub-scanning direction
  • the horizontal axis indicates the position in the input image in the main scanning direction.
  • the solid line 1701 indicates the position of the left end edge pixel
  • the dotted line 1702 indicates the position of the right end edge pixel.
  • the region 1703 in the solid line 1701 corresponds to the vertical streak noise 1003.
  • the region 1704 corresponds to the sudden noise 1005 and the horizontal streak noise 1007.
  • Region 1705 corresponds to horizontal streak noise 1008.
  • the region 1706 corresponds to the sudden noise 1006.
  • Region 1707 corresponds to horizontal streak noise 1009.
  • the region 1708 in the dotted line 1702 corresponds to the vertical streak noise 1004.
  • Region 1709 corresponds to horizontal streak noise 1007.
  • Region 1710 corresponds to horizontal streak noise 1008.
  • Region 1711 corresponds to horizontal streak noise 1009.
  • the graph 1720 in FIG. 17 is a graph showing changes in the positions of the left end edge pixel and the right end edge pixel in the input image 1000.
  • the vertical axis indicates the position in the input image in the sub-scanning direction
  • the horizontal axis indicates the fluctuation value.
  • the solid line 1721 shows the fluctuation value for the left end edge pixel
  • the dotted line 1722 shows the fluctuation value for the right end edge pixel.
  • the regions 1723 to 1727 in the solid line 1721 correspond to the regions 1703 to 1707 in the solid line 1701
  • the regions 1728 to 1731 in the dotted line 1722 correspond to the regions 1708 to 1711 in the dotted line 1702.
  • the absolute value of the fluctuation value is large in the region corresponding to the horizontal streak noise 1007, 1008, 1009 and the region corresponding to the sudden noise 1005, 1006. It has become. Therefore, the region corresponding to the horizontal streak noise 1007, 1008, 1009 and the region corresponding to the sudden noise 1005, 1006 are detected as the fluctuation region in the sub-scanning direction.
  • FIG. 18 is a schematic diagram for explaining other fluctuation regions.
  • Graph 1800 in FIG. 18 is a graph showing the positions of the left end edge pixel and the right end edge pixel when the vertical streak noises 1003 and 1004 are not present in the input image 1000.
  • the vertical axis indicates the position in the input image in the sub-scanning direction
  • the horizontal axis indicates the position in the input image in the main scanning direction.
  • the solid line 1801 indicates the position of the left end edge pixel
  • the dotted line 1802 indicates the position of the right end edge pixel.
  • the region 1803 in the solid line 1801 corresponds to the left side of the medium 1001.
  • Region 1804 corresponds to sudden noise 1005 and horizontal streak noise 1007.
  • Region 1805 corresponds to horizontal streak noise 1008.
  • the region 1806 corresponds to the sudden noise 1006.
  • Region 1807 corresponds to horizontal streak noise 1009.
  • Region 1808 corresponds to the lower edge of medium 1001.
  • the region 1809 in the dotted line 1802 corresponds to the upper side of the medium 1001.
  • Region 1810 corresponds to the right side of the medium 1001.
  • Region 1811 corresponds to horizontal streak noise 1007.
  • Region 1812 corresponds to horizontal streak noise 1008.
  • Region 1813 corresponds to horizontal streak noise 1009.
  • the graph 1820 in FIG. 18 is a graph showing changes in the positions of the left end edge pixel and the right end edge pixel in the input image 1000.
  • the vertical axis indicates the position in the input image in the sub-scanning direction
  • the horizontal axis indicates the fluctuation value.
  • the solid line 1821 shows the fluctuation value for the left end edge pixel
  • the dotted line 1822 shows the fluctuation value for the right end edge pixel.
  • the regions 1823 to 1728 in the solid line 1821 correspond to the regions 1803 to 1808 in the solid line 1801
  • the regions 1829 to 1833 in the dotted line 1822 correspond to the regions 1809 to 1813 in the dotted line 1802.
  • the absolute value of the fluctuation value is large in the region corresponding to the horizontal streak noise 1007, 1008, 1009 and the region corresponding to the sudden noise 1005, 1006. It has become. Therefore, the region corresponding to the horizontal streak noise 1007, 1008, 1009 and the region corresponding to the sudden noise 1005, 1006 are detected as the fluctuation region in the sub-scanning direction.
  • the end detection unit 155 sets the side side of the medium as the medium based on the edge pixels in the main scanning direction detected from the region not including the fluctuation region detected by the fluctuation region detection unit 158 in the scanned image. It is detected as an end portion in the main scanning direction (step S216).
  • the edge pixel detection unit 154 again detects a plurality of edge pixels in the main scanning direction from the scanned image in the same manner as in the process of step S114. That is, the edge pixel detection unit 154 is the edge pixel in the main scanning direction within a region within a predetermined distance from the two ends in the main scanning direction of the tip of the medium detected by the end detection unit 155 in the main scanning direction. Is detected.
  • the end portion detecting unit 155 detects the end portion of the medium in the main scanning direction in the same manner as in the process of step S115.
  • the end detection unit 155 mainly scans the rear end of the medium based on the edge pixels in the sub-scanning direction detected from the region not including the fluctuation region detected by the fluctuation region detection unit 158 in the scanned image.
  • the end in the direction is detected (step S217).
  • the edge pixel detection unit 154 detects edge pixels in the input image or the scanned image in the same manner as in the process of step S208, and the pixel located at the lowermost side in each vertical line is the lower end edge pixel (in the sub-scanning direction). Detected as an edge pixel). Further, the end detection unit 155 detects the end of the rear end of the medium in the main scanning direction based on the lower end edge pixels in the same manner as in the process of step S209.
  • the fluctuation area detection unit 158 scans each horizontal line from the lowest horizontal line to the upper side, and first, the magnitude of the fluctuation value of either the left end edge pixel or the right end edge pixel is equal to or larger than the fluctuation threshold value.
  • the position of the horizontal line that has become is detected as the rear end position of the medium.
  • the fluctuation region detection unit 158 further scans each horizontal line upward from the horizontal line detected as the rear end position.
  • the fluctuation area detection unit 158 is a horizontal line in which the magnitude of the fluctuation value of either the left end edge pixel or the right end edge pixel is once less than the fluctuation threshold value and then becomes the fluctuation threshold value or more again, or a predetermined margin from the horizontal line.
  • the area above the lower horizontal line is detected as a variable area.
  • the medium transport device 100 dynamically detects the variable region, and even when detecting the end portion of the medium in the main scanning direction of the medium without using the edge pixels in the variable region, the medium is detected from the image. It has become possible to detect the end portion in the main scanning direction of the image with higher accuracy.
  • the medium transfer device 100 detects the end portion of the medium from the image regardless of the size or type of the medium by automatically detecting the area in which the edge pixel is not used without setting the area in advance. Is now possible.
  • FIG. 19 is a diagram showing a schematic configuration of a processing circuit 250 in an image reader according to still another embodiment.
  • the processing circuit 250 is used in place of the processing circuit 150 of the medium transfer device 100 to execute the medium reading process.
  • the processing circuit 250 includes a setting circuit 251, a control circuit 252, an image acquisition circuit 253, an edge pixel detection circuit 254, an end detection circuit 255, a medium width detection circuit 256, an output control circuit 257, a fluctuation region detection circuit 258, and the like.
  • Each of these parts may be composed of an independent integrated circuit, a microprocessor, firmware, or the like.
  • the setting circuit 251 is an example of the setting unit and has the same function as the setting unit 151.
  • the setting circuit 251 sets a low reliability region and stores it in the storage device 140.
  • the control circuit 252 is an example of the control unit and has the same function as the control unit 152.
  • the control circuit 252 receives an operation signal from the operation device 105 and a medium detection signal from the first medium sensor 111, drives the motor 131 according to each received signal, and controls the transfer of the medium.
  • the image acquisition circuit 253 is an example of the image acquisition unit and has the same function as the image acquisition unit 153.
  • the image acquisition circuit 253 receives the second medium signal from the second medium sensor 116, receives the line image from the image pickup device 117, generates an input image, and stores the line image and the input image in the storage device 140.
  • the edge pixel detection circuit 254 is an example of the edge pixel detection unit, and has the same function as the edge pixel detection unit 154.
  • the edge pixel detection circuit 254 reads an input image from the storage device 140, detects the edge pixel from the input image, and stores the detection result in the storage device 140.
  • the end detection circuit 255 is an example of the end detection unit, and has the same function as the end detection unit 155.
  • the end detection circuit 255 reads the input image, the detection result of the edge pixel, the setting information of the low reliability region, or the detection result of the fluctuation region from the storage device 140.
  • the end detection circuit 255 detects the end in the main scanning direction of the medium based on the edge pixels detected from the region not including the low reliability region or the fluctuation region in the input image, and stores the detection result in the storage device 140. do.
  • the medium width detection circuit 256 is an example of the medium width detection unit, and has the same function as the medium width detection unit 156.
  • the medium width detection circuit 256 reads the detection result of the end portion in the main scanning direction of the medium from the storage device 140, detects the medium width based on the end portion in the main scanning direction of the medium, and transmits the detection result to the storage device 140.
  • the output control circuit 257 is an example of the output control unit, and has the same function as the output control unit 157.
  • the output control circuit 257 reads a line image from the storage device 140 and generates a read image. Further, the output control circuit 257 reads out the detection result of the end portion in the main scanning direction of the medium, generates a cutout image based on the end portion in the main scanning direction of the medium, and processes information (not shown) via the interface device 132. Send to the device.
  • the fluctuation region detection circuit 258 is an example of the fluctuation region detection unit, and has the same function as the fluctuation region detection unit 158.
  • the variable region detection circuit 258 reads the input image and the detection result of the edge pixel from the storage device 140, detects the variable region based on the positional relationship of the plurality of edge pixels, and stores the detection result in the storage device 140.
  • the image reader can detect the end portion of the medium in the main scanning direction from the image with higher accuracy even when the processing circuit 250 is used.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Controlling Sheets Or Webs (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

画像から媒体の主走査方向における端部をより高精度に検出することが可能な媒体搬送装置、制御方法及び制御プログラムを提供する。媒体搬送装置は、媒体を搬送する搬送部と、搬送される媒体を撮像する撮像部と、撮像部の撮像位置と搬送部の配置位置との位置関係に基づく、撮像部により媒体が撮像された入力画像内の低信頼領域を記憶する記憶部と、入力画像からエッジ画素を検出するエッジ画素検出部と、入力画像内で低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出する端部検出部と、検出された端部に関する情報を出力する出力制御部と、を有する。

Description

媒体搬送装置、制御方法及び制御プログラム
 本開示は、媒体搬送装置に関し、特に、搬送される媒体を撮像した画像から媒体の端部を検出する媒体搬送装置に関する。
 一般に、原稿等の媒体の画像を読み取るスキャナ等の媒体搬送装置は、読み取った画像から媒体が含まれる領域を切り出すために、読み取った画像において媒体が含まれる領域を特定する機能を有している。そのために、媒体搬送装置は、媒体の端部を精度良く検出することが求められている。
 入力された画像の背景領域の明度の差に基づいて、原稿の厚さが一定でないか否かを判定し、厚さが一定でない原稿であれば、背景領域の明度に応じた閾値で画像を二値化して背景領域と原稿領域とを特定する画像処理装置が開示されている(特許文献1を参照)。
特開2019-193159号公報
 媒体搬送装置では、画像から媒体の端部をより高精度に検出することが望まれている。
 媒体搬送装置、制御方法及び制御プログラムの目的は、画像から媒体の主走査方向における端部をより高精度に検出することを可能とすることにある。
 実施形態の一側面に係る媒体搬送装置は、媒体を搬送する搬送部と、搬送される媒体を撮像する撮像部と、撮像部の撮像位置と搬送部の配置位置との位置関係に基づく、撮像部により媒体が撮像された入力画像内の低信頼領域を記憶する記憶部と、入力画像からエッジ画素を検出するエッジ画素検出部と、入力画像内で低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出する端部検出部と、検出された端部に関する情報を出力する出力制御部と、を有する。
 また、実施形態の一側面に係る媒体搬送装置は、媒体を搬送する搬送部と、単一の色を有する基準部材と、基準部材と対向して配置され、且つ、搬送される媒体及び媒体の周辺を撮像する撮像部と、撮像部により媒体及び媒体の周辺が撮像された入力画像から複数のエッジ画素を検出するエッジ画素検出部と、エッジ画素検出部により検出された複数のエッジ画素の位置関係に基づいて、入力画像において基準部材が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出する変動領域検出部と、入力画像内で変動領域検出部により検出された変動領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出する端部検出部と、検出された端部に関する情報を出力する出力制御部と、を有する。
 また、実施形態の一側面に係る制御方法は、媒体を搬送する搬送部と、搬送される媒体を撮像する撮像部と、記憶部と、を有する媒体搬送装置の制御方法であって、撮像部の撮像位置と搬送部の配置位置との位置関係に基づく、撮像部により媒体が撮像された入力画像内の低信頼領域を記憶部に記憶し、入力画像からエッジ画素を検出し、入力画像内で低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、検出された端部に関する情報を出力する。
 また、実施形態の一側面に係る制御方法は、媒体を搬送する搬送部と、単一の色を有する基準部材と、基準部材と対向して配置され、且つ、搬送される媒体及び媒体の周辺を撮像する撮像部と、を有する媒体搬送装置の制御方法であって、撮像部により媒体及び媒体の周辺が撮像された入力画像から複数のエッジ画素を検出し、検出された複数のエッジ画素の位置関係に基づいて、入力画像において基準部材が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出し、入力画像内で検出された変動領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、検出された端部に関する情報を出力する。
 また、実施形態の一側面に係る制御プログラムは、媒体を搬送する搬送部と、搬送される媒体を撮像する撮像部と、記憶部と、を有する媒体搬送装置の制御プログラムであって、撮像部の撮像位置と搬送部の配置位置との位置関係に基づく、撮像部により媒体が撮像された入力画像内の低信頼領域を記憶部に記憶し、入力画像からエッジ画素を検出し、入力画像内で低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、検出された端部に関する情報を出力することを媒体搬送装置に実行させる。
 また、実施形態の一側面に係る制御プログラムは、媒体を搬送する搬送部と、単一の色を有する基準部材と、基準部材と対向して配置され、且つ、搬送される媒体及び媒体の周辺を撮像する撮像部と、を有する媒体搬送装置の制御プログラムであって、撮像部により媒体及び媒体の周辺が撮像された入力画像から複数のエッジ画素を検出し、検出された複数のエッジ画素の位置関係に基づいて、入力画像において基準部材が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出し、入力画像内で検出された変動領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、検出された端部に関する情報を出力することを媒体搬送装置に実行させる。
 本実施形態によれば、媒体搬送装置、制御方法及び制御プログラムは、画像から媒体の主走査方向における端部をより高精度に検出することが可能となる。
 本発明の目的及び効果は、特に請求項において指摘される構成要素及び組み合わせを用いることによって認識され且つ得られるだろう。前述の一般的な説明及び後述の詳細な説明の両方は、例示的及び説明的なものであり、特許請求の範囲に記載されている本発明を制限するものではない。
実施形態に係る媒体搬送装置100を示す斜視図である。 媒体搬送装置100内部の搬送経路を説明するための図である。 媒体搬送装置100の概略構成を示すブロック図である。 記憶装置140及び処理回路150の概略構成を示す図である。 領域テーブルのデータ構造の一例を示す図である。 低信頼領域について説明するための模式図である。 低信頼領域について説明するための模式図である。 低信頼領域について説明するための模式図である。 低信頼領域について説明するための模式図である。 媒体読取処理の動作の例を示すフローチャートである。 媒体読取処理の動作の例を示すフローチャートである。 入力画像1000の一例を示す模式図である。 上端エッジ画素について説明するための模式図である。 ヒストグラム1200について説明するための模式図である。 左端エッジ画素等について説明するための模式図である。 他の媒体読取処理の動作の例を示すフローチャートである。 他の媒体読取処理の動作の例を示すフローチャートである。 変動領域について説明するための模式図である。 変動領域について説明するための模式図である。 他の変動領域について説明するための模式図である。 他の媒体搬送装置における処理回路250の概略構成を示す図である。
 以下、本開示の一側面に係る媒体搬送装置、制御方法及び制御プログラムについて図を参照しつつ説明する。但し、本発明の技術的範囲はそれらの実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶ点に留意されたい。
 図1は、イメージスキャナとして構成された媒体搬送装置100を示す斜視図である。媒体搬送装置100は、原稿である媒体を搬送し、撮像する。媒体は、用紙、厚紙、カード又はパスポート等である。カードは、例えばプラスチック製の樹脂カードである。特に、カードは、ISO(International Organization for Standardization)/IEC(International Electrotechnical Commission)7810で規定されるID(Identification)カードである。なお、カードは、他の種類のカードでもよい。媒体搬送装置100は、ファクシミリ、複写機、プリンタ複合機(MFP、Multifunction Peripheral)等でもよい。
 媒体搬送装置100は、下側筐体101、上側筐体102、載置台103、排出台104、操作装置105及び表示装置106等を備える。
 上側筐体102は、媒体搬送装置100の上面を覆う位置に配置され、下側筐体101に係合している。載置台103は、搬送される媒体を載置可能に下側筐体101に係合している。排出台104は、排出された媒体を保持可能に下側筐体101に係合している。
 操作装置105は、ボタン等の入力デバイス及び入力デバイスから信号を取得するインタフェース回路を有し、利用者による入力操作を受け付け、利用者の入力操作に応じた操作信号を出力する。表示装置106は、液晶、有機EL(Electro-Luminescence)等を含むディスプレイ及びディスプレイに画像データを出力するインタフェース回路を有し、画像データをディスプレイに表示する。
 図2は、媒体搬送装置100内部の搬送経路を説明するための図である。
 媒体搬送装置100内部の搬送経路は、第1媒体センサ111、給送ローラ112、ブレーキローラ113、第1搬送ローラ114、第2搬送ローラ115、第2媒体センサ116、第1撮像装置117a、第2撮像装置117b、第3搬送ローラ118及び第4搬送ローラ119等を有している。なお、各ローラの数は一つに限定されず、各ローラの数はそれぞれ複数でもよい。以下では、第1撮像装置117a及び第2撮像装置117bを総じて撮像装置117と称する場合がある。
 下側筐体101の上面は媒体の搬送路の下側ガイド107aを形成し、上側筐体102の下面は媒体の搬送路の上側ガイド107bを形成する。図2において矢印A1は媒体の搬送方向を示す。以下では、上流とは媒体の搬送方向A1の上流のことをいい、下流とは媒体の搬送方向A1の下流のことをいう。
 第1媒体センサ111は、給送ローラ112及びブレーキローラ113の上流側に配置される。第1媒体センサ111は、接触検出センサを有し、載置台103に媒体が載置されているか否かを検出する。第1媒体センサ111は、載置台103に媒体が載置されている状態と載置されていない状態とで信号値が変化する第1媒体信号を生成して出力する。
 給送ローラ112及びブレーキローラ113は、第1搬送ローラ114及び第2搬送ローラ115より上流側に設けられる。給送ローラ112は、下側筐体101に設けられ、載置台103に載置された媒体を下側から順に給送する。ブレーキローラ113は、上側筐体102に設けられ、給送ローラ112と対向して配置される。
 第1搬送ローラ114及び第2搬送ローラ115は、給送ローラ112及びブレーキローラ113より下流側に設けられる。第1搬送ローラ114は、下側筐体101に設けられる。第2搬送ローラ115は、上側筐体102に設けられ、第1搬送ローラ114と対向して配置される。
 第2媒体センサ116は、第1搬送ローラ114及び第2搬送ローラ115より下流側且つ撮像装置117より上流側に配置される。第2媒体センサ116は、その位置に媒体が存在するか否かを検出する。第2媒体センサ116は、媒体の搬送路に対して一方の側に設けられた発光器及び受光器と、搬送路を挟んで発光器及び受光器と対向する位置に設けられたミラー等の反射部材とを含む。発光器は、搬送路に向けて光を照射する。一方、受光器は、発光器により照射され、反射部材により反射された光を受光し、受光した光の強度に応じた電気信号である第2媒体信号を生成して出力する。第2媒体センサ116の位置に媒体が存在する場合、発光器により照射された光はその媒体により遮光されるため、第2媒体センサ116の位置に媒体が存在する状態と存在しない状態とで第2媒体信号の信号値は変化する。なお、発光器及び受光器は、搬送路を挟んで相互に対向する位置に設けられ、反射部材は省略されてもよい。
 第1撮像装置117a及び第2撮像装置117bは、撮像部の一例である。第1撮像装置117aは、第1撮像センサ121aと、第1基準部材122aとを有する。第2撮像装置117bは、第2撮像センサ121bと、第2基準部材122bと、搬送ガイド123bとを有する。
 第1撮像センサ121aは、主走査方向に直線状に配列されたCMOS(Complementary Metal Oxide Semiconductor)による撮像素子を有する等倍光学系タイプのCIS(Contact Image Sensor)によるラインセンサである。第1撮像センサ121aは、裏当てとして機能する第2基準部材122bと対向して配置される。また、第1撮像装置117aは、撮像素子上に像を結ぶレンズと、撮像素子から出力された電気信号を増幅し、アナログ/デジタル(A/D)変換するA/D変換器とを有する。第1撮像装置117aは、撮像位置P1において、一定間隔毎に、搬送される媒体の表面及び媒体の周辺を撮像してライン画像を順次生成し、出力する。即ち、ライン画像の垂直方向(副走査方向)の画素数は1であり、水平方向(主走査方向)の画素数は複数である。後述する処理回路により、所定数のライン画像が合成されて入力画像が生成される。即ち、入力画像は、撮像装置117により媒体が撮像された画像である。
 第1撮像センサ121aは、媒体が搬送されていない場合、第2基準部材122bを撮像する。第2基準部材122bの第1撮像センサ121aと対向する面は単一の色(例えば白色)を有している。媒体搬送装置100は、第2基準部材122bを撮像した画像信号に基づいてシェーディング等の画像の補正を行う。
 第2撮像センサ121bは、主走査方向に直線状に配列されたCMOSによる撮像素子を有する等倍光学系タイプのCISによるラインセンサである。第2撮像センサ121bは、裏当てとして機能する第1基準部材122aと対向するように配置される。また、第2撮像装置117bは、撮像素子上に像を結ぶレンズと、撮像素子から出力された電気信号を増幅し、アナログ/デジタル(A/D)変換するA/D変換器とを有する。第2撮像装置117bは、撮像位置P2において、一定間隔毎に、搬送される媒体の裏面及び媒体の周辺を撮像してライン画像を順次生成し、出力する。後述する処理回路により、所定数のライン画像が合成されて入力画像が生成される。即ち、入力画像は、撮像装置117により媒体が撮像された画像である。
 第2撮像センサ121bは、媒体が搬送されていない場合、第1基準部材122aを撮像する。第1基準部材122aの第2撮像センサ121bと対向する面は単一の色(例えば白色)を有している。媒体搬送装置100は、第1基準部材122aを撮像した画像信号に基づいてシェーディング等の画像の補正を行う。
 搬送ガイド123bは、第2撮像装置117bと連動して移動する部材の一例である。搬送ガイド123bは、第2撮像装置117bと一体的に設けられる。搬送ガイド123bは、ひさし状の形状を有し、第1搬送ローラ114及び第2搬送ローラ115によって搬送された媒体を第1撮像装置117aと第2撮像装置117bの間に案内する。搬送ガイド123bの上面には、一端が上側筐体102に支持された不図示のばねの他端が取り付けられ、搬送ガイド123bは、そのばねにより第1撮像装置117a側に向かう方向に付勢されている。第2撮像装置117bは、媒体搬送方向と直交する高さ方向A8において上方向に移動可能に設けられている。一方、第1撮像装置117aは下側筐体101に固定されている。厚紙、カード又はパスポートのように、所定の厚さを有し且つ高い剛性を有する媒体が搬送された場合、搬送ガイド123bは、その媒体によって上方に移動し、第2撮像装置117bは、搬送ガイド123bの移動と連動して、上方に移動する。このように、第2撮像装置117bは、搬送される媒体に押し上げられることによって上方向に移動可能に設けられている。
 搬送ガイド123bは、第2撮像装置117bと別個の部材により形成される。なお、搬送ガイド123bは、第2撮像装置117bと一体の部材により形成されてもよい。また、第2撮像装置117bが固定され、第1撮像装置117aが高さ方向A8に移動可能に配置され、搬送ガイド123bが第1撮像装置117aと一体的に設けられてもよい。その場合、搬送ガイド123bは、搬送される媒体によって下方に移動し、第1撮像装置117aは、搬送ガイド123bの移動と連動して下方に移動する。また、搬送ガイド123bが省略され、第1撮像装置117a又は第2撮像装置117bが、搬送される媒体によって高さ方向A8に移動可能に設けられてもよい。
 なお、媒体搬送装置100は、第1撮像装置117a及び第2撮像装置117bを一方だけ配置し、媒体の片面だけを読み取ってもよい。また、CMOSによる撮像素子を備える等倍光学系タイプのCISによるラインセンサの代わりに、CCD(Charge Coupled Device)による撮像素子を備える等倍光学系タイプのCISによるラインセンサが利用されてもよい。また、CMOS又はCCDによる撮像素子を備える縮小光学系タイプのラインセンサが利用されてもよい。以下では、第1撮像センサ121a及び第2撮像センサ121bを総じて撮像センサ121と称する場合がある。また、第1基準部材122a及び第2基準部材122bを総じて基準部材122と称する場合がある。
 第3搬送ローラ118及び第4搬送ローラ119は、撮像装置117より下流側に設けられる。第3搬送ローラ118は、下側筐体101に設けられる。第4搬送ローラ119は、上側筐体102に設けられ、第3搬送ローラ118と対向して配置される。
 載置台103に載置された媒体は、給送ローラ112が図2の矢印A2の方向に回転することによって、下側ガイド107aと上側ガイド107bの間を媒体搬送方向A1に向かって搬送される。ブレーキローラ113は、媒体搬送時、矢印A3の方向に回転する。給送ローラ112及びブレーキローラ113の働きにより、載置台103に複数の媒体が載置されている場合、載置台103に載置されている媒体のうち給送ローラ112と接触している媒体のみが分離される。これにより、分離された媒体以外の媒体の搬送が制限されるように動作する(重送の防止)。
 媒体は、下側ガイド107aと上側ガイド107bによりガイドされながら、第1搬送ローラ114と第2搬送ローラ115の間に送り込まれる。媒体は、第1搬送ローラ114及び第2搬送ローラ115がそれぞれ矢印A4及び矢印A5の方向に回転することによって、第1撮像装置117aと第2撮像装置117bの間に送り込まれる。撮像装置117により読み取られた媒体は、第3搬送ローラ118及び第4搬送ローラ119がそれぞれ矢印A6及び矢印A7の方向に回転することによって排出台104上に排出される。給送ローラ112、ブレーキローラ113、第1搬送ローラ114、第2搬送ローラ115、第3搬送ローラ118及び第4搬送ローラ119は、搬送部の一例であり、媒体を搬送する。
 図3は、媒体搬送装置100の概略構成を示すブロック図である。
 媒体搬送装置100は、前述した構成に加えて、モータ131、インタフェース装置132、記憶装置140及び処理回路150等をさらに有する。
 モータ131は、1つ又は複数のモータを含み、処理回路150からの制御信号によって、給送ローラ112、ブレーキローラ113、第1搬送ローラ114、第2搬送ローラ115、第3搬送ローラ118及び第4搬送ローラ119を回転させて媒体を搬送させる。
 インタフェース装置132は、例えばUSB等のシリアルバスに準じるインタフェース回路を有し、不図示の情報処理装置(例えば、パーソナルコンピュータ、携帯情報端末等)と電気的に接続して画像及び各種の情報を送受信する。また、インタフェース装置132の代わりに、無線信号を送受信するアンテナと、所定の通信プロトコルに従って、無線通信回線を通じて信号の送受信を行うための無線通信インタフェース装置とを有する通信部が用いられてもよい。所定の通信プロトコルは、例えば無線LAN(Local Area Network)である。
 記憶装置140は、RAM(Random Access Memory)、ROM(Read Only Memory)等のメモリ装置、ハードディスク等の固定ディスク装置、又はフレキシブルディスク、光ディスク等の可搬用の記憶装置等を有する。また、記憶装置140には、媒体搬送装置100の各種処理に用いられるコンピュータプログラム、データベース、テーブル等が格納される。コンピュータプログラムは、コンピュータ読み取り可能な可搬型記録媒体から、公知のセットアッププログラム等を用いて記憶装置140にインストールされてもよい。可搬型記録媒体は、例えばCD-ROM(compact disc read only memory)、DVD-ROM(digital versatile disc read only memory)等である。
 また、記憶装置140には、データとして、入力画像内の低信頼領域を示す領域テーブルが格納される。低信頼領域は、入力画像内で副走査方向において基準部材122が撮像された画素の階調値が変動する可能性が高い領域である。処理回路150は、入力画像から媒体の主走査方向における端部を検出する際に、低信頼領域から検出されたエッジ画素を使用せずに端部を検出する。領域テーブルの詳細については後述する。記憶装置140は、記憶部の一例である。
 処理回路150は、予め記憶装置140に記憶されているプログラムに基づいて動作する。なお、処理回路150に代えて、DSP(digital signal processor)、LSI(large scale integration)、ASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)等が用いられてもよい。
 処理回路150は、操作装置105、表示装置106、第1媒体センサ111、第2媒体センサ116、撮像装置117、モータ131、インタフェース装置132及び記憶装置140等と接続され、これらの各部を制御する。処理回路150は、モータ131の駆動制御、撮像装置117の撮像制御等を行い、画像を取得し、インタフェース装置132を介して不図示の情報処理装置に送信する。また、処理回路150は、撮像装置117により撮像された画像に基づいて媒体の端部を検出する。
 図4は、記憶装置140及び処理回路150の概略構成を示す図である。
 図4に示すように、記憶装置140には、設定プログラム141、制御プログラム142、画像取得プログラム143、エッジ画素検出プログラム144、端部検出プログラム145、媒体幅検出プログラム146、出力制御プログラム147及び変動領域検出プログラム148等が記憶される。これらの各プログラムは、プロセッサ上で動作するソフトウェアにより実装される機能モジュールである。処理回路150は、記憶装置140に記憶された各プログラムを読み取り、読み取った各プログラムに従って動作する。これにより、処理回路150は、設定部151、制御部152、画像取得部153、エッジ画素検出部154、端部検出部155、媒体幅検出部156、出力制御部157及び変動領域検出部158として機能する。
 図5は、領域テーブルのデータ構造の一例を示す図である。
 図5に示すように、領域テーブルには、撮像装置117と搬送部の組合せ毎に低信頼領域が記憶される。低信頼領域が設定される撮像装置117には、第1撮像装置117a及び第2撮像装置117bが含まれる。低信頼領域が設定される搬送部には、給送ローラ112とブレーキローラ113のペア、第1搬送ローラ114と第2搬送ローラ115のペア、及び、第3搬送ローラ118と第4搬送ローラ119のペアが含まれる。低信頼領域は、撮像装置117の撮像位置と搬送部の配置位置との位置関係に基づいて設定される。低信頼領域として、各搬送部に挟持された媒体が搬送ガイド123bと接触する時に、入力画像内で各撮像装置117に撮像される領域が設定される。なお、搬送ガイド132が省略されている場合には、低信頼領域として、各搬送部に挟持された媒体が第2撮像装置117bと接触する時に、入力画像内で各撮像装置117に撮像される領域が設定される。または、低信頼領域として、搬送される媒体の先端又は後端が各搬送部を通過する時に、入力画像内で各撮像装置117に撮像される領域が設定される。
 図6A、図6B、図7A及び図7Bは、低信頼領域について説明するための模式図である。
 図6Aは、給送ローラ112及びブレーキローラ113に挟持された媒体が第2撮像装置117bと接触する時に、入力画像内で各撮像装置117に撮像される領域について説明するための模式図である。
 図6Aに示すように、高さ方向A8において、給送ローラ112とブレーキローラ113のニップ位置N1は、第1撮像装置117aの撮像面(搬送面)より上側に配置される。所定の厚さを有し且つ高い剛性を有する媒体Mが搬送される場合、搬送される媒体Mは、給送ローラ112及びブレーキローラ113に挟持され、先端が第1撮像装置117aの撮像面に沿って移動するように搬送される。即ち、媒体Mは、先端が下側に傾くように搬送される。そのため、媒体Mは特定のタイミングで第2撮像装置117b(搬送ガイド123b)の上流側の端部に接触し、第2撮像装置117bは媒体Mに押し上げられて上方向に移動する。第2撮像装置117bが上方向に移動した場合、第1撮像装置117aと第2撮像装置117bの間の距離が増大する。したがって、入力画像内で、このタイミングの前後に第1撮像センサ121aにより第2基準部材122bが撮像された画素の階調値、及び、このタイミングの前後に第2撮像センサ121bにより第1基準部材122aが撮像された画素の階調値が変動する。
 設定部151は、先端が第1撮像装置117aの撮像面に当接し且つ給送ローラ112及びブレーキローラ113に挟持された媒体が第2撮像装置117bの上流側の端部に接触する時に各撮像装置117により撮像される領域を低信頼領域として設定する。設定部151は、給送ローラ112及びブレーキローラ113のニップ位置N1と、第2撮像装置117bの上流側の端部とを通過する直線が第1撮像装置117aの撮像面と当接する位置を媒体の先端位置として設定する。設定部151は、入力画像内で垂直方向(副走査方向)において媒体の先端が含まれる位置に対して、設定した先端位置に対する各撮像装置117の撮像位置P1、P2の相対位置に対応する位置を低信頼位置として設定する。そして、設定部151は、入力画像内で垂直方向において、設定した低信頼位置を中心とする所定範囲(例えば5画素)の領域を低信頼領域として設定する。なお、媒体の搬送速度又は媒体搬送路の部材によっては、第2撮像装置117bは、上方向に移動した後、バウンド(振動)し、入力画像内で基準部材122の階調値が変動する期間が長くなる可能性がある。所定範囲は、媒体の搬送速度又は媒体搬送路の部材等の影響を考慮して設定される。
 これにより、媒体搬送装置100は、入力画像内で背景の階調値が変動する領域を媒体のエッジとして誤って検出することを抑制できる。
 図6Bは、搬送される媒体の後端が給送ローラ112及びブレーキローラ113を通過する時に、入力画像内で各撮像装置117に撮像される領域について説明するための模式図である。
 図6Bに示すように、媒体Mの後端が給送ローラ112とブレーキローラ113のニップ位置N1を通過した時、媒体Mは、給送ローラ112とブレーキローラ113から離間した衝撃で振動する。そのため、媒体Mによって押し上げられていた第2撮像装置117bは、媒体Mと連動して振動する。第2撮像装置117bが振動した場合、第1撮像装置117aと第2撮像装置117bの間の距離が変化する。したがって、入力画像内で、このタイミングの前後に第1撮像センサ121aにより第2基準部材122bが撮像された画素の階調値、及び、このタイミングの前後に第2撮像センサ121bにより第1基準部材122aが撮像された画素の階調値が変動する。
 設定部151は、搬送される媒体の後端が給送ローラ112及びブレーキローラ113を通過する時に各撮像装置117により撮像される領域を低信頼領域として設定する。設定部151は、給送ローラ112及びブレーキローラ113のニップ位置N1に対して、ISO/IEC7810で規定されるIDカードの長辺サイズ分(又は短辺サイズ分)だけ下流側の位置を媒体の先端位置として設定する。設定部151は、入力画像内で垂直方向において媒体の先端が含まれる位置に対して、設定した先端位置に対する各撮像装置117の撮像位置P1、P2の相対位置に対応する位置を低信頼位置として設定する。そして、設定部151は、入力画像内で垂直方向において、設定した低信頼位置を中心とする所定範囲の領域を低信頼領域として設定する。これにより、媒体搬送装置100は、入力画像内で背景の階調値が変動する領域を媒体のエッジとして誤って検出することを抑制できる。
 図7Aは、搬送される媒体の先端が第3搬送ローラ118及び第4搬送ローラ119を通過する時に、入力画像内で各撮像装置117に撮像される領域について説明するための模式図である。
 図7Aに示すように、媒体Mの先端は、第3搬送ローラ118及び第4搬送ローラ119を通過する時、第3搬送ローラ118又は第4搬送ローラ119に衝突して、第3搬送ローラ118及び第4搬送ローラ119のニップ位置N3に案内される。媒体Mが第3搬送ローラ118又は第4搬送ローラ119に衝突した衝撃で振動するため、媒体Mによって押し上げられていた第2撮像装置117bは、媒体Mと連動して振動する。
 設定部151は、搬送される媒体の先端が第3搬送ローラ118及び第4搬送ローラ119を通過する時に各撮像装置117により撮像される領域を低信頼領域として設定する。設定部151は、第3搬送ローラ118及び第4搬送ローラ119のニップ位置N3を媒体の先端位置に設定する。設定部151は、入力画像内で垂直方向において媒体の先端が含まれる位置に対して、設定した先端位置に対する各撮像装置117の撮像位置P1、P2の相対位置に対応する位置を低信頼位置として設定する。そして、設定部151は、入力画像内で垂直方向において、設定した低信頼位置を中心とする所定範囲の領域を低信頼領域として設定する。これにより、媒体搬送装置100は、入力画像内で背景の階調値が変動する領域を媒体のエッジとして誤って検出することを抑制できる。
 図7Bは、搬送される媒体の後端が第1搬送ローラ114及び第2搬送ローラ115を通過する時に、入力画像内で各撮像装置117に撮像される領域について説明するための模式図である。
 図7Bに示すように、媒体Mの後端が第1搬送ローラ114及び第2搬送ローラ115のニップ位置N2を通過した時、媒体Mは、第1搬送ローラ114と第2搬送ローラ115から離間した衝撃で振動する。そのため、媒体Mによって押し上げられていた第2撮像装置117bは、媒体Mと連動して振動する。
 設定部151は、搬送される媒体の後端が第1搬送ローラ114及び第2搬送ローラ115を通過する時に各撮像装置117により撮像される領域を低信頼領域として設定する。設定部151は、第1搬送ローラ114及び第2搬送ローラ115のニップ位置N2に対して、ISO/IEC7810で規定されるIDカードの長辺サイズ分(又は短辺サイズ分)だけ下流側の位置を媒体の先端位置に設定する。設定部151は、入力画像内で垂直方向において媒体の先端が含まれる位置に対して、設定した先端位置に対する各撮像装置117の撮像位置P1、P2の相対位置に対応する位置を低信頼位置として設定する。そして、設定部151は、入力画像内で垂直方向において、設定した低信頼位置を中心とする所定範囲の領域を低信頼領域として設定する。これにより、媒体搬送装置100は、入力画像内で背景の階調値が変動する領域を媒体のエッジとして誤って検出することを抑制できる。
 なお、設定部151は、上記した全ての領域を低信頼領域として設定する必要がなく、少なくとも一つの領域を低信頼領域として設定すればよい。特に、図6Aで説明した、媒体が第2撮像装置117bと接触する時に撮像される領域では、背景の階調値の変動量が小さい。そのため、設定部151は、その領域を低信頼領域として設定しなくてもよい。
 図8及び図9は、媒体搬送装置100の媒体読取処理の動作の例を示すフローチャートである。
 以下、図8及び図9に示したフローチャートを参照しつつ、媒体搬送装置100の媒体読取処理の動作の例を説明する。なお、以下に説明する動作のフローは、予め記憶装置140に記憶されているプログラムに基づき主に処理回路150により媒体搬送装置100の各要素と協働して実行される。図8及び図9に示す動作のフローは、定期的に実行される。
 最初に、制御部152は、利用者により操作装置105を用いて媒体の読み取りの指示が入力されて、媒体の読み取りを指示する操作信号を操作装置105から受信するまで待機する(ステップS101)。
 次に、制御部152は、第1媒体センサ111から受信する第1媒体信号に基づいて載置台103に媒体が載置されているか否かを判定する(ステップS102)。
 載置台103に媒体が載置されていない場合、制御部152は、ステップS101へ処理を戻し、操作装置105から新たに操作信号を受信するまで待機する。
 一方、載置台103に媒体が載置されている場合、制御部152は、モータ131を駆動して給送ローラ112、ブレーキローラ113、第1~第4搬送ローラ114、115、118及び119を回転させて、媒体を搬送させる(ステップS103)。
 次に、画像取得部153は、搬送された媒体を撮像装置117に撮像させて、ライン画像を取得する(ステップS104)。なお、画像取得部153は、第2媒体センサ116から受信する第2媒体信号に基づいて媒体の先端が第2媒体センサ116の位置を通過したか否かを判定し、媒体の先端が第2媒体センサ116の位置を通過した時に撮像装置117に撮像を開始させてもよい。画像取得部153は、第2媒体センサ116から定期的に第2媒体信号を取得し、第2媒体信号の信号値が、媒体が存在しないことを示す値から媒体が存在することを示す値に変化したときに、媒体の先端が第2媒体センサ116の位置を通過したと判定する。
 次に、画像取得部153は、端部検出部155により、媒体の先端の主走査方向における端部が検出済みであるか否かを判定する(ステップS105)。媒体の先端の主走査方向における端部は、後述するステップS110において検出される。媒体の先端の主走査方向における端部が検出済みである場合、画像取得部153は、処理をステップS112に移行する。
 一方、媒体の先端の主走査方向における端部が未検出である場合、画像取得部153は、撮像装置117から所定数のライン画像を取得したか否かを判定する(ステップS106)。所定数は、媒体の先端の主走査方向における端部が確実に含まれると考えられる1又は複数の値(例えば100)に予め設定される。所定数は、媒体全体が含まれる値に設定されてもよい。媒体搬送装置100は、所定数が大きい程、確実に端部を検出することができ、所定数が小さい程、早期に端部を検出することができる。所定数のライン画像をまだ取得していない場合、画像取得部153は、処理をステップS104に戻し、ステップS104~S106の処理を繰り返す。
 一方、所定数のライン画像を取得した場合、画像取得部153は、所定数のライン画像を合成して入力画像を生成する(ステップS107)。即ち、入力画像は、撮像装置117により媒体が撮像されて、画像取得部153により生成された画像である。なお、撮像装置117が所定数のライン画像を合成して入力画像を生成し、画像取得部153は撮像装置117から入力画像を取得してもよい。
 図10は、入力画像1000の一例を示す模式図である。
 図10に示す入力画像1000には、媒体1001が含まれており、さらに基準部材122が背景1002として含まれている。背景1002には、縦筋ノイズ1003、1004、突発ノイズ1005、1006、及び、横筋ノイズ1007、1008、1009が含まれている。縦筋ノイズ1003、1004は、撮像装置117の撮像面(ガラス面)上に付着した紙粉、埃、のり等の異物、又は、ラインセンサの感度ムラ等により発生するノイズである。突発ノイズは、撮像装置117内で撮像素子から出力された電気信号を増幅する際に発生するノイズ、又は、部品毎の特性の違いに起因して発生するノイズ等である。横筋ノイズは、第2撮像装置117bが高さ方向A8に移動することにより発生するノイズである。
 横筋ノイズ1007は、媒体1001の後端が給送ローラ112及びブレーキローラ113を通過する時に発生したノイズである。横筋ノイズ1008は、媒体1001の先端が第3搬送ローラ118及び第4搬送ローラ119を通過する時に発生したノイズである。横筋ノイズ1009は、媒体1001の後端が第1搬送ローラ114及び第2搬送ローラ115を通過する時に発生したノイズである。図10に示す例では、給送ローラ112及びブレーキローラ113に挟持された媒体が第2撮像装置117bと接触する時に撮像された領域では、階調値の変動量が十分小さく、横筋ノイズは発生していない。
 次に、エッジ画素検出部154は、記憶装置140から領域テーブルを読み出し、低信頼領域を特定する(ステップS108)。図10を用いて説明する例では、低信頼領域として、媒体の後端が給送ローラ112及びブレーキローラ113を通過する時、媒体の先端が第3搬送ローラ118及び第4搬送ローラ119を通過する時、及び、媒体の後端が第1搬送ローラ114及び第2搬送ローラ115を通過する時に、入力画像内で各撮像装置117に撮像される領域が設定されているものとする。一方、搬送部に挟持された媒体が第2撮像装置117bと接触する時に、入力画像内で各撮像装置117に撮像される領域は、低信頼領域として設定されていないものとする。
 次に、エッジ画素検出部154は、入力画像から複数の副走査方向のエッジ画素を検出する(ステップS109)。エッジ画素検出部154は、入力画像内で主走査方向の位置が相互に同一であり且つ副走査方向の距離が相互に所定範囲内である複数の画素の階調値に基づいて、副走査方向のエッジ画素を検出する。
 エッジ画素検出部154は、入力画像内で、垂直方向(副走査方向)に延伸する垂直ライン毎に、上側から順に、各垂直ライン内の各画素の垂直方向の両隣の画素の階調値の差の絶対値(以下、隣接差分値と称する)を算出する。エッジ画素検出部154は、各垂直ライン内で隣接差分値が階調閾値を越える画素をエッジ画素として検出する。エッジ画素検出部154は、各垂直ライン内で最初に検出されたエッジ画素、即ち最も上側に位置する画素を上端エッジ画素とし、副走査方向のエッジ画素として検出する。階調値は、輝度値又は色値(R値、G値又はB値)等である。階調閾値は、例えば、人が画像上の輝度の違いを目視により判別可能な輝度値の差(例えば20)に設定される。
 なお、エッジ画素検出部154は、入力画像内の各画素から垂直方向に所定距離だけ離れた二つの画素の階調値の差の絶対値を隣接差分値として算出してもよい。また、エッジ画素検出部154は、入力画像内の各画素の階調値を閾値と比較することによりエッジ画素を検出してもよい。例えば、エッジ画素検出部154は、特定の画素の階調値が閾値未満であり、その特定の画素に対して垂直方向に隣接する画素又は所定距離だけ離れた画素の階調値が閾値以上である場合、その特定の画素をエッジ画素として検出する。
 また、エッジ画素検出部154は、入力画像内の全ての画素について副走査方向のエッジ画素を検出するのでなく、入力画像内で主走査方向における一定間隔(例えば4画素)毎に副走査方向のエッジ画素を検出してもよい。エッジ画素検出部154は、入力画像内の垂直ラインの中から、一定間隔毎に、副走査方向のエッジ画素を検出する対象ラインを抽出し、抽出した対象ラインについて、副走査方向のエッジ画素を検出する。これにより、エッジ画素検出部154は、媒体の端部の検出に要する時間を低減させ、媒体読取処理の処理時間及び処理負荷を低減させることが可能となる。
 エッジ画素検出部154は、入力画像内で最も上側で検出された副走査方向のエッジ画素の位置を媒体の先端が含まれる位置として特定し、特定した位置を基準にして、低信頼領域として設定された領域を特定する。エッジ画素検出部154は、特定した低信頼領域からは副走査方向のエッジ画素を検出せず、入力画像内で低信頼領域を含まない領域のみから副走査方向のエッジ画素を検出する。
 なお、エッジ画素検出部154は、媒体の後端が給送ローラ112及びブレーキローラ113を通過する時に入力画像内で各撮像装置117に撮像される低信頼領域を、第1媒体センサ111から受信する第1媒体信号に基づいて特定してもよい。その場合、エッジ画素検出部154は、第1媒体センサ111から定期的に第1媒体信号を取得する。エッジ画素検出部154は、第1媒体信号の信号値が、媒体が存在することを示す値から媒体が存在しないことを示す値に変化した時に媒体の後端が給送ローラ112及びブレーキローラ113のニップ位置の直前に位置すると判定する。エッジ画素検出部154は、媒体の後端が給送ローラ112及びブレーキローラ113のニップ位置の直前に位置すると判定してから一定時間内に各撮像装置117に撮像された入力画像内の領域を低信頼領域として特定する。
 同様に、エッジ画素検出部154は、媒体の後端が第1搬送ローラ114及び第2搬送ローラ115を通過する時に入力画像内で各撮像装置117に撮像される低信頼領域を、第1媒体センサ111から受信する第1媒体信号に基づいて特定してもよい。エッジ画素検出部154は、媒体の後端が給送ローラ112及びブレーキローラ113のニップ位置の直前に位置すると判定してから、所定の媒体移動量に相当する所定時間が経過した時に、媒体の後端が第1搬送ローラ114及び第2搬送ローラ115の直前に位置すると判定する。エッジ画素検出部154は、媒体の後端が第1搬送ローラ114及び第2搬送ローラ115の直前に位置すると判定してから一定時間内に各撮像装置117に撮像された入力画像内の領域を低信頼領域として特定する。
 図11は、上端エッジ画素について説明するための模式図である。
 図11には、図10に示した入力画像1000が示される。図11において、垂直方向に延伸する点線は対象ラインとして抽出された垂直ラインを示す。図11に示す例では、画素T1~T14が上端エッジ画素として検出されている。上端エッジ画素T1、T2は、それぞれ突発ノイズ1005、1006に対応する画素である。上端エッジ画素T3は、媒体の左辺に対応する画素である。上端エッジ画素T4~T14は、媒体の上辺に対応する画素である。図11に示すように、各縦筋ノイズ1003、1004は垂直方向に延伸し且つ各縦筋ノイズ1003、1004内の各画素の階調値は一定範囲内であるため、各縦筋ノイズ1003、1004に対応する画素は上端エッジ画素として検出されない。なお、読取途中(媒体搬送途中)に発生又は消滅した縦筋ノイズは、その端部で階調値の変化を有するため、突発ノイズ1005、1006と同様に検出される。このような読取途中(媒体搬送途中)に発生又は消滅した縦筋ノイズは、後述処理において突発ノイズ1005、1006と同様に処理され、媒体の端部として誤って検出されない。また、各横筋ノイズ1007、1008、1009の周辺は低信頼領域として設定されているため、各横筋ノイズ1007、1008、1009に対応する画素は上端エッジ画素として検出されない。
 次に、端部検出部155は、入力画像内で低信頼領域を含まない領域から検出された副走査方向のエッジ画素に基づいて、媒体の先端の主走査方向における端部を検出する(ステップS110)。端部検出部155は、エッジ画素検出部154により検出された複数の副走査方向のエッジ画素の間の位置関係に基づいて、媒体の先端の主走査方向における端部を検出する。
 例えば、端部検出部155は、複数の副走査方向のエッジ画素の間の位置関係として、主走査方向における一定範囲内における副走査方向のエッジ画素の数又は割合、即ち主走査方向における一定範囲内における副走査方向のエッジ画素の密度を算出する。端部検出部155は、垂直ラインから抽出された対象ライン毎に、各対象ラインから一定範囲内に位置する対象ラインの中で、副走査方向のエッジ画素が検出された対象ラインの数又は割合を算出する。一定範囲は、数又は割合の算出対象が2以上の所定数(例えば5)となるように設定される。端部検出部155は、算出した数が閾値(例えば3)以上である対象ライン、又は、算出した割合が閾値(例えば0.6)以上である対象ラインが相互に隣接して連続する対象ライン群を抽出する。
 端部検出部155は、抽出した対象ライン群の内、含まれる対象ラインの数が最も多い対象ライン群の主走査方向の範囲を、主走査方向における媒体の先端範囲として検出する。なお、端部検出部155は、検出した範囲から所定のマージンだけ縮小させた範囲、又は、検出した範囲を所定のマージンだけ拡大させた範囲を主走査方向における媒体の先端範囲として検出してもよい。端部検出部155は、主走査方向における媒体の先端範囲として検出した対象ライン群の両端の位置を、媒体の先端の主走査方向における端部として検出する。
 図11に示す例では、上端エッジ画素T3を含む対象ラインから、上端エッジ画素T14を含む対象ラインまでの範囲が媒体の先端範囲として検出される。そして、上端エッジ画素T3を含む対象ラインと、上端エッジ画素T14を含む対象ラインとが媒体の先端の主走査方向における端部として検出される。即ち、縦筋ノイズ1003、1004に対応する画素は、上端エッジ画素として検出されないため、媒体の先端範囲に含まれない。また、突発ノイズ1005、1006に対応する上端エッジ画素T1、T2を含む対象ラインは離散的に位置するため、媒体の先端範囲に含まれない。また、横筋ノイズ1007、1008、1009に対応する画素は、上端エッジ画素として検出されないため、媒体の先端範囲に含まれない。また仮に、媒体の先端に対応する対象ラインの内の一部の対象ラインで背景と媒体の階調値の差が小さく、上端エッジ画素が検出されなかった場合でも、その周囲の対象ラインで上端エッジ画素が検出された場合、その一部の対象ラインも媒体の先端範囲に含まれる。
 端部検出部155は、一定範囲内における副走査方向のエッジ画素の数又は割合を用いることにより、ノイズの影響、及び、上端エッジ画素の検出漏れの影響を低減させて、媒体の先端範囲及びその端部を高精度に検出することができる。特に、横筋ノイズは、副走査方向のエッジ画素として検出されるため、副走査方向のエッジ画素を利用して媒体の先端範囲を利用する際に、媒体の先端範囲を誤って検出する要因となる。端部検出部155は、横筋ノイズが発生する領域を、上端エッジ画素を検出する領域から除外することにより、上端エッジ画素を利用して、媒体の先端範囲及びその端部を高精度に検出することができる。
 なお、端部検出部155は、複数の副走査方向のエッジ画素の間の位置関係として、主走査方向において連続して検出された副走査方向のエッジ画素を検出してもよい。その場合、端部検出部155は、主走査方向において連続して検出された副走査方向のエッジ画素の数(連続数)を算出する。端部検出部155は、副走査方向のエッジ画素が検出された対象ラインが相互に隣接して所定数(例えば3つ)以上連続する対象ライン群を抽出する。
 端部検出部155は、抽出した対象ライン群の内、含まれる対象ラインの数が最も多い対象ライン群の主走査方向の範囲を、主走査方向における媒体の先端範囲として検出する。なお、端部検出部155は、検出した範囲から所定のマージンだけ縮小させた範囲、又は、検出した範囲を所定のマージンだけ拡大させた範囲を主走査方向における媒体の先端範囲として検出してもよい。端部検出部155は、主走査方向における媒体の先端範囲として検出した対象ライン群の両端の位置を、媒体の先端の主走査方向における端部として検出する。
 図11に示す例では、上端エッジ画素T3を含む対象ラインから、上端エッジ画素T14を含む対象ラインまでの範囲が媒体の先端範囲として検出される。そして、上端エッジ画素T3を含む対象ラインと、上端エッジ画素T14を含む対象ラインとが媒体の先端の主走査方向における端部として検出される。即ち、縦筋ノイズ1003、1004に対応する画素は、上端エッジ画素として検出されないため、媒体の先端範囲に含まれない。また、突発ノイズ1005、1006に対応する上端エッジ画素T1、T2を含む対象ラインは離散的に位置するため、媒体の先端範囲に含まれない。また、横筋ノイズ1007、1008、1009に対応する画素は、上端エッジ画素として検出されないため、媒体の先端範囲に含まれない。
 この場合、仮に、媒体の先端に対応する対象ラインの内の一部の対象ラインで上端エッジ画素が検出されなかった場合、媒体の先端範囲が正しく検出されない。しかしながら、副走査方向のエッジ画素の連続数は、一定範囲内における副走査方向のエッジ画素の数又は割合より、短時間に算出される。したがって、端部検出部155は、主走査方向において連続して検出された副走査方向のエッジ画素に基づくことにより、ノイズの影響を低減させつつ、媒体の先端範囲及びその端部をより短時間且つ低負荷に検出することができる。特に、端部検出部155は、横筋ノイズが発生する領域を、上端エッジ画素を検出する領域から除外することにより、上端エッジ画素を利用して、媒体の先端範囲及びその端部を高精度に検出することができる。
 また、端部検出部155は、複数の副走査方向のエッジ画素の間の位置関係として、副走査方向の位置の近似性を算出してもよい。例えば、端部検出部155は、副走査方向の位置の近似性として、複数の副走査方向のエッジ画素の間の副走査方向における距離を算出する。端部検出部155は、副走査方向のエッジ画素が検出された対象ラインが主走査方向において相互に第1距離内に位置し且つ各対象ラインで検出された副走査方向のエッジ画素が副走査方向において第2距離内に位置する対象ライン群を抽出する。第1距離は、例えば相互に隣接する対象ライン間の距離の所定倍(例えば2倍)に設定される。第2距離は、例えば相互に隣接する対象ライン間の距離の所定倍(例えば2倍)に設定される。
 端部検出部155は、抽出した対象ライン群の内、含まれる対象ラインの数が最も多い対象ライン群の主走査方向の範囲を、主走査方向における媒体の先端範囲として検出する。なお、端部検出部155は、検出した範囲から所定のマージンだけ縮小させた範囲、又は、検出した範囲を所定のマージンだけ拡大させた範囲を主走査方向における媒体の先端範囲として検出してもよい。端部検出部155は、主走査方向における媒体の先端範囲として検出した対象ライン群の両端の位置を、媒体の先端の主走査方向における端部として検出する。
 図11に示す例では、上端エッジ画素T4を含む対象ラインから、上端エッジ画素T14を含む対象ラインまでの範囲が媒体の先端範囲として検出される。即ち、縦筋ノイズ1003、1004に対応する画素は、上端エッジ画素として検出されないため、媒体の先端範囲に含まれない。また、突発ノイズ1005、1006に対応する上端エッジ画素T1、T2を含む対象ラインは離散的に位置するため、媒体の先端範囲に含まれない。また、横筋ノイズ1007、1008、1009に対応する画素は、上端エッジ画素として検出されないため、媒体の先端範囲に含まれない。また、媒体1001の左辺に対応する上端エッジ画素T3は、副走査方向において近傍に位置する上端エッジ画素T4、T5に対して、主走査方向において離間しているため、上端エッジ画素T3を含む対象ラインは媒体の先端範囲に含まれない。
 また仮に、主走査方向において媒体の近傍に突発ノイズが発生した場合でも、副走査方向においてその突発ノイズが媒体の先端と離間していれば、その突発ノイズは媒体の先端範囲に含まれない。端部検出部155は、副走査方向のエッジ画素の間の副走査方向における距離を用いることにより、ノイズの影響、及び、媒体の側辺の影響を低減させて、媒体の先端範囲及びその端部を高精度に検出することができる。特に、端部検出部155は、横筋ノイズが発生する領域を、上端エッジ画素を検出する領域から除外することにより、上端エッジ画素を利用して、媒体の先端範囲及びその端部を高精度に検出することができる。
 また、端部検出部155は、副走査方向の位置の近似性として、複数の主走査方向のライン毎の副走査方向のエッジ画素の頻度を算出してもよい。端部検出部155は、主走査方向のライン毎に、その主走査方向のライン上で副走査方向のエッジ画素が検出された数を算出する。端部検出部155は、各主走査方向のラインの副走査方向の位置を階級とし、各主走査方向のラインについて算出された数を頻度とするヒストグラムを生成する。端部検出部155は、生成したヒストグラムにおいて、頻度が頻度閾値以上である階級範囲内で、副走査方向のエッジ画素が検出された対象ラインを対象ライン群として抽出する。頻度閾値は、予め所定の値(例えば3)に設定される。なお、頻度閾値は、生成したヒストグラムに応じて動的に設定されてもよい。その場合、頻度閾値は、例えば最大頻度の1/2等に設定される。
 端部検出部155は、抽出した対象ライン群の主走査方向の範囲を、主走査方向における媒体の先端範囲として検出する。なお、端部検出部155は、検出した範囲から所定のマージンだけ縮小させた範囲、又は、検出した範囲を所定のマージンだけ拡大させた範囲を主走査方向における媒体の先端範囲として検出してもよい。端部検出部155は、主走査方向における媒体の先端範囲として検出した対象ライン群の両端の位置を、媒体の先端の主走査方向における端部として検出する。
 図12は、端部検出部155により生成されるヒストグラム1200について説明するための模式図である。
 図12には、図10に示した入力画像1000から生成されたヒストグラム1200が示される。図12において、縦軸は各主走査方向のラインの副走査方向の位置(階級)を示し、横軸は各主走査方向のラインについて算出された数(頻度)を示す。図12に示す例では、副走査方向において、媒体の上辺に対応する上端エッジ画素T4~T14が存在する範囲で頻度が高くなっている。一方、突発ノイズ1005、1006に対応する上端エッジ画素T1、T2、及び、媒体の左辺に対応する上端エッジ画素T3が存在する位置では頻度が低くなっている。
 したがって、図11に示す例では、上端エッジ画素T4を含む対象ラインから、上端エッジ画素T14を含む対象ラインまでの範囲が媒体の先端範囲として検出される。即ち、突発ノイズ1005、1006に対応する上端エッジ画素T1、T2を含む対象ライン、及び、媒体1001の左辺に対応する上端エッジ画素T3を含む対象ラインは媒体の先端範囲に含まれない。端部検出部155は、主走査方向のライン毎の副走査方向のエッジ画素の頻度を用いることにより、ノイズの影響、及び、媒体の側辺の影響を低減させて、媒体の先端範囲及びその端部を高精度に検出することができる。特に、端部検出部155は、横筋ノイズが発生する領域を、上端エッジ画素を検出する領域から除外することにより、上端エッジ画素を利用して、媒体の先端範囲及びその端部を高精度に検出することができる。
 次に、媒体幅検出部156は、端部検出部155により検出された媒体の先端の主走査方向における端部に基づいて、媒体幅を検出する(ステップS111)。媒体幅検出部156は、例えば媒体の先端の主走査方向における両方の端部の間のユークリッド距離を媒体幅として検出する。媒体幅検出部156は、以下の式(1)に従って、媒体の先端の主走査方向における両方の端部の間のユークリッド距離Wを算出する。
Figure JPOXMLDOC01-appb-M000001
 ここで、(x1、y1)は、入力画像において主走査方向をx軸、副走査方向をy軸とした座標系における媒体の先端の主走査方向における一方の端部の座標であり、(x2、y2)は、その座標系における媒体の先端の主走査方向における他方の端部の座標である。なお、媒体搬送装置100は、各端部の座標とユークリッド距離との間の関係を示すテーブルを予め記憶しておき、媒体幅検出部156は、そのテーブルを参照してユークリッド距離を取得してもよい。
 なお、媒体幅検出部156は、媒体の先端の主走査方向における両方の端部の間の主走査方向における距離を媒体幅として検出してもよい。その場合、媒体幅検出部156は、以下の式(2)に従って、媒体の先端の主走査方向における両方の端部の間の主走査方向における距離Wを算出する。
Figure JPOXMLDOC01-appb-M000002
 次に、画像取得部153は、媒体全体が撮像されたか否かを判定する(ステップS112)。画像取得部153は、例えば、第2媒体センサ116から受信する第2媒体信号に基づいて媒体の後端が第2媒体センサ116の位置を通過したか否かを判定する。画像取得部153は、第2媒体センサ116から定期的に第2媒体信号を取得し、第2媒体信号の信号値が、媒体が存在することを示す値から媒体が存在しないことを示す値に変化したときに、媒体の先端が第2媒体センサ116の位置を通過したと判定する。画像取得部153は、媒体の後端が第2媒体センサ116の位置を通過してから所定時間が経過した時に媒体の後端が撮像装置117の撮像位置を通過し、媒体全体が撮像されたと判定する。なお、画像取得部153は、予め定められた数のライン画像を撮像装置117から取得したときに、搬送された媒体の全体が撮像されたと判定してもよい。
 まだ搬送された媒体の全体が撮像されていない場合、画像取得部153は、処理をステップS104へ戻し、ステップS104~S112の処理を繰り返す。
 一方、搬送された媒体の全体が撮像された場合、画像取得部153は、取得した全てのライン画像を結合することにより、読取画像を生成する(ステップS113)。なお、入力画像に含まれるライン数(所定数)が、媒体全体が含まれる値に設定されている場合、画像取得部153は、入力画像を読取画像として使用してもよい。
 次に、エッジ画素検出部154は、読取画像から複数の主走査方向のエッジ画素を検出する(ステップS114)。エッジ画素検出部154は、読取画像内で副走査方向の位置が相互に同一であり且つ主走査方向の距離が相互に所定範囲内である複数の画素の階調値に基づいて、主走査方向のエッジ画素を検出する。また、エッジ画素検出部154は、主走査方向において、端部検出部155により検出された媒体の先端の主走査方向における二つの端部から所定距離の範囲内で、主走査方向のエッジ画素を検出する。
 端部検出部155は、読取画像内で、水平方向(主走査方向)に延伸する水平ライン毎に、端部検出部155により検出された媒体の先端の左端から所定距離の範囲内で、左側から順に、各水平ライン内の各画素の水平方向の隣接差分値を算出する。端部検出部155は、各水平ライン内で隣接差分値が階調閾値を越える画素をエッジ画素として検出する。端部検出部155は、各水平ライン内で、最初に検出されたエッジ画素、即ち端部検出部155により検出された媒体の先端の左端から所定距離の範囲内で最も左側に位置する画素を左端エッジ画素とする。同様に、端部検出部155は、端部検出部155により検出された媒体の先端の右端から所定距離の範囲内で、右側から順に、エッジ画素を検出する。端部検出部155は、各水平ライン内で最初に検出されたエッジ画素、即ち端部検出部155により検出された媒体の先端の右端から所定距離の範囲内で最も右側に位置する画素を右端エッジ画素とする。端部検出部155は、左端エッジ画素及び右端エッジ画素を主走査方向のエッジ画素として検出する。
 なお、端部検出部155は、読取画像内の各画素から水平方向に所定距離だけ離れた二つの画素の階調値の差の絶対値を隣接差分値として算出してもよい。また、端部検出部155は、読取画像内の各画素の階調値を閾値と比較することによりエッジ画素を検出してもよい。例えば、端部検出部155は、特定の画素の階調値が閾値未満であり、その特定の画素に対して水平方向に隣接する画素又は所定距離だけ離れた画素の階調値が閾値以上である場合、その特定の画素をエッジ画素として検出する。
 また、端部検出部155は、読取画像内の全ての画素について主走査方向のエッジ画素を検出するのでなく、読取画像内で副走査方向における一定間隔(例えば4画素)毎に主走査方向のエッジ画素を検出してもよい。端部検出部155は、読取画像内の水平ラインの中から、一定間隔毎に、主走査方向のエッジ画素を検出する対象ラインを抽出し、抽出した対象ラインについて、主走査方向のエッジ画素を検出する。これにより、端部検出部155は、媒体の端部の検出に要する時間を低減させることが可能となり、媒体読取処理の処理時間及び処理負荷を低減させることが可能となる。
 また、エッジ画素検出部154は、副走査方向のエッジ画素を検出する場合と同様に、低信頼領域からは主走査方向のエッジ画素を検出せず、入力画像内で低信頼領域を含まない領域のみから主走査方向のエッジ画素を検出する。
 図13は、左端エッジ画素及び右端エッジ画素について説明するための模式図である。
 図13には、図10に示した入力画像1000が示される。図10において、水平方向に延伸する点線は対象ラインとして抽出された水平ラインを示す。図13に示す例では、画素L1~L11が左端エッジ画素として検出され、画素R1~R11が右端エッジ画素として検出されている。左端エッジ画素L1~L11は、それぞれ媒体の左辺に対応する画素である。右端エッジ画素R1~R11は、それぞれ媒体の右辺に対応する画素である。各エッジ画素は、端部検出部155により検出された媒体の先端の各端部T3、T14から主走査方向の所定距離の範囲内で検出されている。そのため、縦筋ノイズ1003、1004及び突発ノイズ1005、1006の影響を受けることなく、媒体の側辺に対応するエッジ画素が良好に検出されている。また、各横筋ノイズ1007、1008、1009の周辺は低信頼領域として設定されている。そのため、各横筋ノイズ1007、1008、1009の影響を受けることなく、媒体の側辺に対応するエッジ画素が良好に検出されている。
 次に、端部検出部155は、主走査方向のエッジ画素に基づいて、媒体の側辺を媒体の主走査方向の端部として検出する(ステップS115)。端部検出部155は、最小二乗法を用いて、各左端エッジ画素を通過する直線を媒体の左辺として検出し、各右端エッジ画素を通過する直線を媒体の右辺として検出する。なお、端部検出部155は、ハフ変換を用いて、各エッジ画素を通過する直線を媒体の側辺として検出してもよい。
 次に、端部検出部155は、媒体の後端の主走査方向における端部を検出する(ステップS116)。エッジ画素検出部154は、ステップS109の処理と同様にして、入力画像又は読取画像内でエッジ画素を検出し、各垂直ライン内で最も下側に位置するエッジ画素を下端エッジ画素(副走査方向のエッジ画素)として検出する。端部検出部155は、ステップS110の処理と同様にして、下端エッジ画素に基づいて、媒体の後端の主走査方向における端部を検出する。
 次に、出力制御部157は、読取画像から媒体の領域を切り出した切り出し画像を生成する(ステップS117)。出力制御部157は、最小二乗法又はハフ変換を用いて、上端エッジ画素を通過する直線を媒体の上辺として検出し、下端エッジ画素を通過する直線を媒体の下辺として検出する。出力制御部157は、検出した上辺及び下辺と、端部検出部155により検出された媒体の二つの側辺とで囲まれた領域を媒体の領域として検出する。出力制御部157は、検出した媒体の領域を切り出して切り出し画像を生成する。
 次に、出力制御部157は、生成した切り出し画像をインタフェース装置132を介して情報処理装置に送信することにより出力する(ステップS118)。出力制御部157は、生成した切り出し画像を表示装置106に表示することにより出力してもよい。切り出し画像における媒体の側辺は、端部検出部155により検出された媒体の主走査方向の端部であり、切り出し画像は、端部検出部155により検出された端部に関する情報の一例である。なお、出力制御部157は、切り出し画像を生成せずに読取画像を情報処理装置に送信し、読取画像内で端部検出部155により検出された媒体の主走査方向の端部の位置を示す座標を、端部に関する情報として情報処理装置に送信してもよい。その場合、情報処理装置が、受信した座標に基づいて読取画像から切り出し画像を生成する。
 また、出力制御部157は、ステップS110において、端部検出部155により検出された媒体の先端の端部に基づいて、媒体がカードであるか用紙であるかを判定してもよい。その場合、出力制御部157は、媒体の先端の端部間の距離が閾値以下である場合、媒体がカードであると判定し、媒体の先端の端部間の距離が閾値より大きい場合、媒体が用紙であると判定する。閾値は、例えばISO/IEC7810で規定されるカードの長手方向のサイズにマージンを加えた値に設定される。出力制御部157は、媒体がカードであるか用紙であるかを示す情報を、媒体の端部に関する情報として情報処理装置に送信する。この場合、情報処理装置は、媒体がカードであるか用紙であるかに応じて、受信した画像を分類する。また、出力制御部157は、不図示の超音波センサから出力される超音波信号に基づいて、搬送される媒体の重送が発生したか否かを定期的に判定し、媒体の重送が発生した場合に、媒体の搬送を停止させてもよい。その場合、出力制御部157は、媒体がカードであるときは、媒体の重送が発生していないと判定してもよい。これにより、出力制御部157は、カードが搬送された時に、媒体の重送が発生したと誤って判定することを抑制できる。
 また、出力制御部157は、端部検出部155により検出された媒体の主走査方向の端部に基づいて媒体のサイズを検出し、検出した媒体のサイズに応じて第3搬送ローラ118及び第4搬送ローラ119の回転速度(媒体の排出速度)を変更してもよい。その場合、出力制御部157は、媒体の主走査方向の端部間の距離を媒体のサイズとして検出する。そして、出力制御部157は、ステップS112において媒体全体が撮像されたと判定された場合、検出した媒体のサイズに応じて第3搬送ローラ118及び第4搬送ローラ119の回転速度を変更するようにモータ131の回転速度を変更する。出力制御部157は、媒体のサイズが小さい程、回転速度が低く(遅く)なり、媒体のサイズが大きい程、回転速度が高く(速く)なるように、モータ131の回転速度を変更する。これにより、媒体搬送装置100は、サイズが小さい媒体が勢いよく排出されて、排出台104上で媒体が散らばってしまうことを抑制でき、排出台104における媒体の整列性を向上させることができる。
 また、出力制御部157は、ステップS110において、端部検出部155により検出された媒体の先端の端部に基づいて、媒体のスキューが発生したか否かを判定してもよい。その場合、媒体搬送装置100は、媒体のスキューが発生したとみなされる、媒体の先端の端部の位置の範囲と、媒体の先端の傾き(主走査方向に対する角度)の範囲とが設定されたテーブルを予め記憶装置140に記憶しておく。出力制御部157は、端部検出部155により検出された媒体の先端の二つの端部を通過する直線の傾きを算出する。出力制御部157は、端部検出部155により検出された媒体の先端の二つの端部と、算出した傾きとが、予め設定された範囲に含まれるか否かにより、媒体のスキューが発生したか否かを判定する。出力制御部157は、媒体のスキューが発生したと判定した場合、モータ131を停止して媒体の搬送を停止させ、媒体の搬送異常が発生したことを示す情報を、媒体の端部に関する情報として出力し、利用者に通知する。
 次に、制御部152は、第1媒体センサ111から受信する第1媒体信号に基づいて載置台103に媒体が残っているか否かを判定する(ステップS119)。載置台103に媒体が残っている場合、制御部152は、ステップS104へ処理を戻し、ステップS104~S119の処理を繰り返す。
 一方、載置台103に媒体が残っていない場合、制御部152は、モータ131を停止し(ステップS120)、一連のステップを終了する。
 なお、ステップS111の処理は省略されてもよい。また、ステップS114~S117の処理が省略され、ステップS118において、出力制御部157は読取画像を出力してもよい。また、ステップS109において、エッジ画素検出部154は、入力画像内の全領域から副走査方向のエッジ画素を検出してもよい。その場合、ステップS110において、端部検出部155は、入力画像内でエッジ画素検出部154により検出されたエッジ画素の内、低信頼領域を含まない領域から検出された副走査方向のエッジ画素のみに基づいて、媒体の先端の主走査方向における端部を検出する。同様に、ステップS114において、エッジ画素検出部154は、入力画像内の全領域から主走査方向のエッジ画素を検出してもよい。その場合、ステップS115において、端部検出部155は、入力画像内でエッジ画素検出部154により検出されたエッジ画素の内、低信頼領域を含まない領域から検出された主走査方向のエッジ画素のみに基づいて、媒体の主走査方向の端部を検出する。
 以上詳述したように、媒体搬送装置100は、入力画像内で、剛性の高いカード等の媒体が搬送された場合に基準部材122の階調値が変化する低信頼領域におけるエッジ画素を使用せずに、媒体の主走査方向における端部を検出する。これにより、媒体搬送装置100は、第2撮像装置117bの高さ方向A8の移動によって発生するノイズの影響を除去して、画像から媒体の主走査方向における端部をより高精度に検出することが可能となった。
 特に、媒体搬送装置100は、媒体読取中に撮像装置117に対して異物が付着又は剥離した場合のように、事前に取得していた基準画像を用いて画像内の異物を除去できない場合でも、縦筋ノイズによる影響を低減させることが可能となった。
 また、媒体搬送装置100は、所定数のライン画像を含む入力画像に基づいて、媒体全体が撮像される前に媒体の先端の主走査方向における端部を検出するため、早期に(リアルタイムに)媒体の先端の主走査方向における端部を検出することが可能となった。
 図14及び図15は、他の媒体読取処理の動作の例を示すフローチャートである。図14及び図15に示すフローチャートは、図8及び図9に示したフローチャートの代わりに実行される。図14及び図15のステップS201~S207、S211~S213、S218~S221の処理は、図8及び図9のステップS101~S107、S111~S113、S117~S120の処理と同様であるため、詳細な説明を省略する。以下では、ステップS208~S210、S214~S217についてのみ説明する。
 ステップS208において、エッジ画素検出部154は、図7のステップS109の処理と同様にして、入力画像から複数の副走査方向のエッジ画素を検出する(ステップS208)。但し、エッジ画素検出部154は、入力画像内の全領域から副走査方向のエッジ画素を検出する。
 次に、変動領域検出部158は、入力画像において基準部材122が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出する(ステップS209)。変動領域検出部158は、エッジ画素検出部154により検出された複数の副走査方向のエッジ画素の位置関係に基づいて、変動領域を検出する。
 例えば、変動領域検出部158は、入力画像内の水平ライン毎に、最も左側で副走査方向のエッジ画素として検出された画素を左端エッジ画素として検出し、最も右側で副走査方向のエッジ画素として検出された画素を右端エッジ画素として検出する。変動領域検出部158は、各水平ラインの左端エッジ画素及び右端エッジ画素に対する、副走査方向の下方においてその水平ラインに隣接する又は所定距離内の水平ラインの左端エッジ画素及び右端エッジ画素の位置の変動値を算出する。変動領域検出部158は、対応する二つのエッジ画素の主走査方向の位置の差を、その二つのエッジ画素の副走査方向の位置の差で除算した除算値を各エッジ画素の位置の変動値として算出する。
 変動領域検出部158は、最も上側に位置する水平ラインから下側に向けて各水平ラインを走査し、最初に左端エッジ画素又は右端エッジ画素の何れかの変動値の大きさが変動閾値以上となった水平ラインの位置を媒体の先端位置として検出する。変動領域検出部158は、先端位置として検出した水平ラインから下側に向けて各水平ラインをさらに走査する。変動領域検出部158は、左端エッジ画素又は右端エッジ画素の何れかの変動値の大きさが一旦変動閾値未満となってから再度変動閾値以上となった水平ライン又はその水平ラインより所定のマージンだけ上側の水平ラインより下側の領域を変動領域として検出する。
 図16は、変動領域について説明するための模式図である。
 図16のグラフ1600は、入力画像1000内の左端エッジ画素と右端エッジ画素の位置を示すグラフである。グラフ1600において、縦軸は入力画像内の副走査方向の位置を示し、横軸は入力画像内の主走査方向の位置を示す。グラフ1600において、実線1601は左端エッジ画素の位置を示し、点線1602は右端エッジ画素の位置を示す。実線1601内の領域1603は媒体1001の左辺に対応している。領域1604は横筋ノイズ1007に対応している。点線1602内の領域1605は媒体1001の上辺に対応している。領域1606は媒体1001の右辺に対応している。領域1607は横筋ノイズ1007に対応している。
 図16のグラフ1620は、入力画像1000内の左端エッジ画素と右端エッジ画素の位置の変化を示すグラフである。グラフ1620において、縦軸は入力画像内の副走査方向の位置を示し、横軸は変動値を示す。グラフ1620において、実線1621は左端エッジ画素についての変動値を示し、点線1622は右端エッジ画素についての変動値を示す。実線1621内の領域1623~1624は、実線1601内の領域1603~1604に対応し、点線1622内の領域1625~1627は、点線1602内の領域1605~1607に対応している。
 グラフ1620において変動値を上端から見ていくと、まず、媒体1001の上辺に対応する右端エッジ画素の領域1625において変動値の絶対値は大きくなっている。その後、媒体1001の左辺に対応する左端エッジ画素の領域1623及び媒体1001の右辺に対応する右端エッジ画素の領域1626において変動値の絶対値は小さくなっている。そして、横筋ノイズ1007に対応する左端エッジ画素の領域1624及び右端エッジ画素の領域1627において変動値の絶対値は再度大きくなっている。そのため、副走査方向において領域1624又は領域1627より下側の領域、即ち横筋ノイズ1007より下側の領域が変動領域として検出される。
 次に、端部検出部155は、入力画像内で変動領域検出部158により検出された変動領域を含まない領域から検出された副走査方向のエッジ画素に基づいて、媒体の先端の主走査方向における端部を検出する(ステップS210)。端部検出部155は、ステップS110の処理と同様にして、媒体の先端の主走査方向における端部を検出する。
 また、ステップS214において、エッジ画素検出部154は、図8のステップS114の処理と同様にして、読取画像から複数の主走査方向のエッジ画素を検出する(ステップS214)。但し、エッジ画素検出部154は、読取画像内の全領域から主走査方向のエッジ画素を検出する。
 次に、変動領域検出部158は、エッジ画素検出部154により検出された複数の主走査方向のエッジ画素の位置関係に基づいて、変動領域を検出する(ステップS215)。
 変動領域検出部158は、ステップS214で検出された各水平ラインの左端エッジ画素及び右端エッジ画素を用いて、変動領域を検出する。変動領域検出部158は、各水平ラインの左端エッジ画素及び右端エッジ画素に対する、副走査方向の下方においてその水平ラインに隣接する又は所定距離内の水平ラインの左端エッジ画素及び右端エッジ画素の位置の変動値を算出する。変動領域検出部158は、対応する二つのエッジ画素の主走査方向の位置の差を、その二つのエッジ画素の副走査方向の位置の差で除算した除算値を各エッジ画素の位置の変動値として算出する。
 変動領域検出部158は、ステップS210で検出した媒体の先端位置の水平ラインから下側に向けて各水平ラインを走査する。変動領域検出部158は、副走査方向において、左端エッジ画素又は右端エッジ画素の内の何れかの変動値の大きさが変動閾値以上となる領域、又は、その領域を所定のマージンだけ拡大させた領域を変動領域として検出する。
 図17は、変動領域について説明するための模式図である。
 図17のグラフ1700は、入力画像1000内の左端エッジ画素と右端エッジ画素の位置を示すグラフである。グラフ1700において、縦軸は入力画像内の副走査方向の位置を示し、横軸は入力画像内の主走査方向の位置を示す。グラフ1700において、実線1701は左端エッジ画素の位置を示し、点線1702は右端エッジ画素の位置を示す。実線1701内の領域1703は縦筋ノイズ1003に対応している。領域1704は突発ノイズ1005及び横筋ノイズ1007に対応している。領域1705は横筋ノイズ1008に対応している。領域1706は突発ノイズ1006に対応している。領域1707は横筋ノイズ1009に対応している。点線1702内の領域1708は縦筋ノイズ1004に対応している。領域1709は横筋ノイズ1007に対応している。領域1710は横筋ノイズ1008に対応している。領域1711は横筋ノイズ1009に対応している。
 図17のグラフ1720は、入力画像1000内の左端エッジ画素と右端エッジ画素の位置の変化を示すグラフである。グラフ1720において、縦軸は入力画像内の副走査方向の位置を示し、横軸は変動値を示す。グラフ1720において、実線1721は左端エッジ画素についての変動値を示し、点線1722は右端エッジ画素についての変動値を示す。実線1721内の領域1723~1727は、実線1701内の領域1703~1707に対応し、点線1722内の領域1728~1731は、点線1702内の領域1708~1711に対応している。
 グラフ1720において変動値を媒体の先端位置から下側に見ていくと、横筋ノイズ1007、1008、1009に対応する領域、及び、突発ノイズ1005、1006に対応する領域において変動値の絶対値が大きくなっている。そのため、副走査方向において横筋ノイズ1007、1008、1009に対応する領域、及び、突発ノイズ1005、1006に対応する領域が変動領域として検出される。
 図18は、他の変動領域について説明するための模式図である。
 図18のグラフ1800は、入力画像1000において縦筋ノイズ1003、1004が存在しない場合の、左端エッジ画素と右端エッジ画素の位置を示すグラフである。グラフ1800において、縦軸は入力画像内の副走査方向の位置を示し、横軸は入力画像内の主走査方向の位置を示す。グラフ1800において、実線1801は左端エッジ画素の位置を示し、点線1802は右端エッジ画素の位置を示す。実線1801内の領域1803は媒体1001の左辺に対応している。領域1804は突発ノイズ1005及び横筋ノイズ1007に対応している。領域1805は横筋ノイズ1008に対応している。領域1806は突発ノイズ1006に対応している。領域1807は横筋ノイズ1009に対応している。領域1808は媒体1001の下辺に対応している。点線1802内の領域1809は媒体1001の上辺に対応している。領域1810は媒体1001の右辺に対応している。領域1811は横筋ノイズ1007に対応している。領域1812は横筋ノイズ1008に対応している。領域1813は横筋ノイズ1009に対応している。
 図18のグラフ1820は、入力画像1000内の左端エッジ画素と右端エッジ画素の位置の変化を示すグラフである。グラフ1820において、縦軸は入力画像内の副走査方向の位置を示し、横軸は変動値を示す。グラフ1820において、実線1821は左端エッジ画素についての変動値を示し、点線1822は右端エッジ画素についての変動値を示す。実線1821内の領域1823~1728は、実線1801内の領域1803~1808に対応し、点線1822内の領域1829~1833は、点線1802内の領域1809~1813に対応している。
 グラフ1820において変動値を媒体の先端位置から下側に見ていくと、横筋ノイズ1007、1008、1009に対応する領域、及び、突発ノイズ1005、1006に対応する領域において変動値の絶対値が大きくなっている。そのため、副走査方向において横筋ノイズ1007、1008、1009に対応する領域、及び、突発ノイズ1005、1006に対応する領域が変動領域として検出される。
 次に、端部検出部155は、読取画像内で変動領域検出部158により検出された変動領域を含まない領域から検出された主走査方向のエッジ画素に基づいて、媒体の側辺を媒体の主走査方向の端部として検出する(ステップS216)。この場合、エッジ画素検出部154は、ステップS114の処理と同様にして、改めて、読取画像から複数の主走査方向のエッジ画素を検出する。即ち、エッジ画素検出部154は、主走査方向において、端部検出部155により検出された媒体の先端の主走査方向における二つの端部から所定距離内の領域内で、主走査方向のエッジ画素を検出する。そして、端部検出部155は、ステップS115の処理と同様にして、媒体の主走査方向の端部を検出する。
 次に、端部検出部155は、読取画像内で変動領域検出部158により検出された変動領域を含まない領域から検出された副走査方向のエッジ画素に基づいて、媒体の後端の主走査方向における端部を検出する(ステップS217)。
 エッジ画素検出部154は、ステップS208の処理と同様にして、入力画像又は読取画像内でエッジ画素を検出し、各垂直ライン内で最も下側に位置する画素を下端エッジ画素(副走査方向のエッジ画素)として検出する。また、端部検出部155は、ステップS209の処理と同様にして、下端エッジ画素に基づいて、媒体の後端の主走査方向における端部を検出する。変動領域検出部158は、最も下側に位置する水平ラインから上側に向けて各水平ラインを走査し、最初に左端エッジ画素又は右端エッジ画素の何れかの変動値の大きさが変動閾値以上となった水平ラインの位置を媒体の後端位置として検出する。変動領域検出部158は、後端位置として検出した水平ラインから上側に向けて各水平ラインをさらに走査する。変動領域検出部158は、左端エッジ画素又は右端エッジ画素の何れかの変動値の大きさが一旦変動閾値未満となってから再度変動閾値以上となった水平ライン又はその水平ラインより所定のマージンだけ下側の水平ラインより上側の領域を変動領域として検出する。
 以上詳述したように、媒体搬送装置100は、動的に変動領域を検出し、変動領域におけるエッジ画素を使用せずに、媒体の主走査方向における端部を検出する場合も、画像から媒体の主走査方向における端部をより高精度に検出することが可能となった。
 特に、媒体搬送装置100は、エッジ画素を使用しない領域を予め設定しておかずに、自動的に検出することにより、媒体のサイズ又は種類等によらず、画像から媒体の端部を検出することが可能となった。
 図19は、さらに他の実施形態に係る画像読取装置における処理回路250の概略構成を示す図である。処理回路250は、媒体搬送装置100の処理回路150の代わりに使用され、媒体読取処理を実行する。処理回路250は、設定回路251、制御回路252、画像取得回路253、エッジ画素検出回路254、端部検出回路255、媒体幅検出回路256、出力制御回路257及び変動領域検出回路258等を有する。なお、これらの各部は、それぞれ独立した集積回路、マイクロプロセッサ、ファームウェア等で構成されてもよい。
 設定回路251は、設定部の一例であり、設定部151と同様の機能を有する。設定回路251は、低信頼領域を設定し、記憶装置140に記憶する。
 制御回路252は、制御部の一例であり、制御部152と同様の機能を有する。制御回路252は、操作装置105から操作信号を、第1媒体センサ111から媒体検出信号を受信し、受信した各信号に応じてモータ131を駆動し、媒体の搬送を制御する。
 画像取得回路253は、画像取得部の一例であり、画像取得部153と同様の機能を有する。画像取得回路253は、第2媒体センサ116から第2媒体信号を受信し、撮像装置117からライン画像を受信して入力画像を生成し、ライン画像及び入力画像を記憶装置140に記憶する。
 エッジ画素検出回路254は、エッジ画素検出部の一例であり、エッジ画素検出部154と同様の機能を有する。エッジ画素検出回路254は、記憶装置140から入力画像を読み出し、入力画像からエッジ画素を検出し、検出結果を記憶装置140に記憶する。
 端部検出回路255は、端部検出部の一例であり、端部検出部155と同様の機能を有する。端部検出回路255は、記憶装置140から入力画像、エッジ画素の検出結果及び低信頼領域の設定情報又は変動領域の検出結果を読み出す。端部検出回路255は、入力画像内で低信頼領域又は変動領域を含まない領域から検出されたエッジ画素に基づいて媒体の主走査方向における端部を検出し、検出結果を記憶装置140に記憶する。
 媒体幅検出回路256は、媒体幅検出部の一例であり、媒体幅検出部156と同様の機能を有する。媒体幅検出回路256は、記憶装置140から媒体の主走査方向における端部の検出結果を読み出し、媒体の主走査方向における端部に基づいて、媒体幅を検出し、検出結果を記憶装置140に記憶する。
 出力制御回路257は、出力制御部の一例であり、出力制御部157と同様の機能を有する。出力制御回路257は、記憶装置140からライン画像を読み出して読出画像を生成する。また、出力制御回路257は、媒体の主走査方向における端部の検出結果を読み出し、媒体の主走査方向における端部に基づいて切り出し画像を生成し、インタフェース装置132を介して不図示の情報処理装置へ送信する。
 変動領域検出回路258は、変動領域検出部の一例であり、変動領域検出部158と同様の機能を有する。変動領域検出回路258は、記憶装置140から入力画像及びエッジ画素の検出結果を読み出し、複数のエッジ画素の位置関係に基づいて変動領域を検出し、検出結果を記憶装置140に記憶する。
 以上詳述したように、画像読取装置は、処理回路250を用いる場合においても、画像から媒体の主走査方向における端部をより高精度に検出することが可能となった。
 100 媒体搬送装置
 112 給送ローラ
 113 ブレーキローラ
 114 第1搬送ローラ
 115 第2搬送ローラ
 117 撮像装置
 122 基準部材
 118 第3搬送ローラ
 119 第4搬送ローラ
 140 記憶装置
 154 エッジ画素検出部
 155 端部検出部
 156 媒体幅検出部
 157 出力制御部
 158 変動領域検出部

Claims (10)

  1.  媒体を搬送する搬送部と、
     搬送される媒体を撮像する撮像部と、
     前記撮像部の撮像位置と前記搬送部の配置位置との位置関係に基づく、前記撮像部により媒体が撮像された入力画像内の低信頼領域を記憶する記憶部と、
     前記入力画像からエッジ画素を検出するエッジ画素検出部と、
     前記入力画像内で前記低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出する端部検出部と、
     前記検出された端部に関する情報を出力する出力制御部と、
     を有することを特徴とする媒体搬送装置。
  2.  前記記憶部は、搬送される媒体の先端又は後端が前記搬送部を通過する時に前記撮像部により撮像される領域を前記低信頼領域として記憶する、請求項1に記載の媒体搬送装置。
  3.  前記撮像部は、搬送される媒体に押し上げられることによって上方向に移動可能に設けられ、
     前記記憶部は、前記搬送部に挟持された媒体が前記撮像部又は前記撮像部と連動して移動する部材に接触する時に前記撮像部により撮像される領域を前記低信頼領域として記憶する、請求項1または2に記載の媒体搬送装置。
  4.  媒体を搬送する搬送部と、
     単一の色を有する基準部材と、
     前記基準部材と対向して配置され、且つ、搬送される媒体及び媒体の周辺を撮像する撮像部と、
     前記撮像部により媒体及び媒体の周辺が撮像された入力画像から複数のエッジ画素を検出するエッジ画素検出部と、
     前記エッジ画素検出部により検出された複数のエッジ画素の位置関係に基づいて、前記入力画像において前記基準部材が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出する変動領域検出部と、
     前記入力画像内で前記変動領域検出部により検出された変動領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出する端部検出部と、
     前記検出された端部に関する情報を出力する出力制御部と、
     を有することを特徴とする媒体搬送装置。
  5.  前記エッジ画素検出部は、前記エッジ画素として、前記入力画像内で主走査方向の位置が相互に同一であり且つ副走査方向の距離が相互に所定範囲内である複数の画素の階調値に基づいて、副走査方向のエッジ画素のみを検出する、請求項1~4の何れか一項に記載の媒体搬送装置。
  6.  前記端部検出部により検出された媒体の主走査方向における端部に基づいて、媒体幅を検出する媒体幅検出部をさらに有する、請求項1~5の何れか一項に記載の媒体搬送装置。
  7.  媒体を搬送する搬送部と、搬送される媒体を撮像する撮像部と、記憶部と、を有する媒体搬送装置の制御方法であって、
     前記撮像部の撮像位置と前記搬送部の配置位置との位置関係に基づく、前記撮像部により媒体が撮像された入力画像内の低信頼領域を前記記憶部に記憶し、
     前記入力画像からエッジ画素を検出し、
     前記入力画像内で前記低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、
     前記検出された端部に関する情報を出力する、
     ことを特徴とする制御方法。
  8.  媒体を搬送する搬送部と、単一の色を有する基準部材と、前記基準部材と対向して配置され、且つ、搬送される媒体及び媒体の周辺を撮像する撮像部と、を有する媒体搬送装置の制御方法であって、
     前記撮像部により媒体及び媒体の周辺が撮像された入力画像から複数のエッジ画素を検出し、
     前記検出された複数のエッジ画素の位置関係に基づいて、前記入力画像において前記基準部材が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出し、
     前記入力画像内で前記検出された変動領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、
     前記検出された端部に関する情報を出力する、
     ことを特徴とする制御方法。
  9.  媒体を搬送する搬送部と、搬送される媒体を撮像する撮像部と、記憶部と、を有する媒体搬送装置の制御プログラムであって、
     前記撮像部の撮像位置と前記搬送部の配置位置との位置関係に基づく、前記撮像部により媒体が撮像された入力画像内の低信頼領域を前記記憶部に記憶し、
     前記入力画像からエッジ画素を検出し、
     前記入力画像内で前記低信頼領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、
     前記検出された端部に関する情報を出力する、
     ことを前記媒体搬送装置に実行させることを特徴とする制御プログラム。
  10.  媒体を搬送する搬送部と、単一の色を有する基準部材と、前記基準部材と対向して配置され、且つ、搬送される媒体及び媒体の周辺を撮像する撮像部と、を有する媒体搬送装置の制御プログラムであって、
     前記撮像部により媒体及び媒体の周辺が撮像された入力画像から複数のエッジ画素を検出し、
     前記検出された複数のエッジ画素の位置関係に基づいて、前記入力画像において前記基準部材が含まれる領域内で周辺画素に対して階調値が変動している変動領域を検出し、
     前記入力画像内で前記検出された変動領域を含まない領域から検出されたエッジ画素に基づいて、媒体の主走査方向における端部を検出し、
     前記検出された端部に関する情報を出力する、
     ことを前記媒体搬送装置に実行させることを特徴とする制御プログラム。
PCT/JP2020/038523 2020-10-12 2020-10-12 媒体搬送装置、制御方法及び制御プログラム WO2022079770A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/JP2020/038523 WO2022079770A1 (ja) 2020-10-12 2020-10-12 媒体搬送装置、制御方法及び制御プログラム
JP2022557241A JP7447301B2 (ja) 2020-10-12 2020-10-12 媒体搬送装置、制御方法及び制御プログラム
US18/040,139 US11856170B2 (en) 2020-10-12 2020-10-12 Medium carrying device, control method, and control program
JP2024028621A JP2024055938A (ja) 2020-10-12 2024-02-28 媒体搬送装置、制御方法及び制御プログラム

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/038523 WO2022079770A1 (ja) 2020-10-12 2020-10-12 媒体搬送装置、制御方法及び制御プログラム

Publications (1)

Publication Number Publication Date
WO2022079770A1 true WO2022079770A1 (ja) 2022-04-21

Family

ID=81207799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/038523 WO2022079770A1 (ja) 2020-10-12 2020-10-12 媒体搬送装置、制御方法及び制御プログラム

Country Status (3)

Country Link
US (1) US11856170B2 (ja)
JP (2) JP7447301B2 (ja)
WO (1) WO2022079770A1 (ja)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002142084A (ja) * 2000-10-31 2002-05-17 Pfu Ltd 画像読取装置
JP2020058012A (ja) * 2018-09-26 2020-04-09 株式会社リコー 読取装置および画像形成装置
JP2020061720A (ja) * 2018-10-12 2020-04-16 株式会社Pfu 画像処理装置、制御方法及び制御プログラム

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002142054A (ja) 2000-08-23 2002-05-17 Canon Inc 電子ボード装置及び電子ボード装置のデータ処理方法
JP4844247B2 (ja) 2006-06-12 2011-12-28 富士ゼロックス株式会社 画像処理装置および画像処理プログラム
WO2018008067A1 (ja) * 2016-07-04 2018-01-11 株式会社Pfu 画像読取装置、制御方法及び制御プログラム
JP6873074B2 (ja) * 2018-03-12 2021-05-19 株式会社Pfu 画像処理装置、制御方法及び制御プログラム
JP2019193159A (ja) 2018-04-26 2019-10-31 キヤノン電子株式会社 画像処理装置及び画像処理方法
JP7104650B2 (ja) * 2019-03-20 2022-07-21 株式会社Pfu 画像読取装置、画像処理システム、制御方法及び制御プログラム
JP7211238B2 (ja) * 2019-04-16 2023-01-24 株式会社リコー エッジ検出装置、傾き補正装置、読取装置、画像処理装置およびエッジ検出方法
JP2022131523A (ja) * 2021-02-26 2022-09-07 株式会社Pfu 媒体搬送装置、制御方法及び制御プログラム
JP2022131544A (ja) * 2021-02-26 2022-09-07 株式会社Pfu 媒体搬送装置、制御方法及び制御プログラム

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002142084A (ja) * 2000-10-31 2002-05-17 Pfu Ltd 画像読取装置
JP2020058012A (ja) * 2018-09-26 2020-04-09 株式会社リコー 読取装置および画像形成装置
JP2020061720A (ja) * 2018-10-12 2020-04-16 株式会社Pfu 画像処理装置、制御方法及び制御プログラム

Also Published As

Publication number Publication date
US11856170B2 (en) 2023-12-26
JP2024055938A (ja) 2024-04-19
JPWO2022079770A1 (ja) 2022-04-21
US20230276011A1 (en) 2023-08-31
JP7447301B2 (ja) 2024-03-11

Similar Documents

Publication Publication Date Title
US10771636B2 (en) Image processing apparatus for detecting a noise line based on noise pixels in the shadow region
US11258913B2 (en) Medium conveying apparatus for estimating a shape of a conveyed medium based on a line image acquired by imaging a selected surface
US10516798B2 (en) Image reading apparatus for detecting a shadow region formed by end of conveyed document
US20210253387A1 (en) Medium conveying apparatus for determining conveyance abnormality based on determination result of floating and skew of medium
US11032443B2 (en) Image reading apparatus for detecting a dirt substance from a white reference image and a document image
US20220256047A1 (en) Medium conveying apparatus for determining whether a conveyed medium is id card
JP2023009113A (ja) 重送検出装置、制御方法及び制御プログラム
US10757281B1 (en) Image reading apparatus for executing image processing based on a reliability level according to a number of conveyance mechanisms clamping a medium
US10523826B2 (en) Image processing apparatus for generating a warning according to dirt degree
WO2022079770A1 (ja) 媒体搬送装置、制御方法及び制御プログラム
US11050890B1 (en) Medium conveying apparatus for determining conveyance abnormality based on images acquired by changing backing member
US20220274795A1 (en) Medium conveying apparatus to execute abnormality processing for multi-feed based on overlap detection width
US20220116509A1 (en) Image reading apparatus for detecting end portion of front end or rear end of medium
JPWO2020188811A1 (ja) 重送検出装置、制御方法及び制御プログラム
JP7478627B2 (ja) 媒体搬送装置、制御方法及び制御プログラム
US11891266B2 (en) Medium conveying apparatus to determine whether multi-feed has occurred based on whether outer shape of object area in input image is rectangular
US11820624B2 (en) Medium conveying apparatus to detect multi-feed based on continuous overlap portion
US11290610B2 (en) Medium conveying apparatus for determining conveyance abnormality using degree of slip of medium
JP2024086995A (ja) 媒体搬送装置、制御方法及び制御プログラム
JP2023090551A (ja) 画像処理装置、制御方法及び制御プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20957599

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022557241

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20957599

Country of ref document: EP

Kind code of ref document: A1