MEDIUM CONVEYING DEVICE, CONTROL METHOD, AND CONTROL PROGRAM

The media conveying device addresses the challenge of conveyance control by using a combination of image detection and control units to accurately stop the conveyance when abnormalities are detected, thereby preventing media damage.

JP7674561B2Active Publication Date: 2025-05-09PFU LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024069288
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2025-05-09
Estimated Expiration
2040-06-18

AI Technical Summary

Technical Problem

Existing media conveying devices face challenges in effectively controlling media conveyance, particularly in preventing damage from conveyance abnormalities such as skew and jam.

Method used

The media conveying device incorporates a conveying unit, an image generation system, a detection unit, a determination unit, and a control unit to detect the inclination of the medium based on line images and determine if a part of the medium has passed a critical position, triggering the conveyance to stop when threshold conditions are met.

Benefits of technology

This solution enables more precise control of media conveyance, effectively preventing damage from abnormalities by accurately detecting and responding to skew and jam conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007674561000001
    Figure 0007674561000001
  • Figure 0007674561000002
    Figure 0007674561000002
  • Figure 0007674561000003
    Figure 0007674561000003
Patent Text Reader

Abstract

To provide a medium conveying apparatus, a control method and a control program that are capable of controlling conveyance of a medium more appropriately.SOLUTION: A medium conveying apparatus 100 includes conveyance units 112, 113, 114, 115 to convey a medium, imaging units 123a, 123b to sequentially generate a line image acquired by imaging the medium conveyed by the conveyance units, a detection unit 172 to detect an inclination of the conveyed medium based on at least two first pixels in the line image, a determination unit 173 to determine whether a part of the conveyed medium has passed through a position corresponding to a second pixel located outside the first pixels based on the line image, and a control unit 171 to stop the conveyance of the medium by the conveyance units when the inclination detected by the detection unit is equal to or greater than a threshold and the determination unit determines that a part of the medium has passed through the position corresponding to the second pixel.SELECTED DRAWING: Figure 8
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a medium transport device, a control method, and a control program, and more particularly to a medium transport device that transports and images a medium, a control method, and a control program. [Background technology]

[0002] In a medium transport device such as a scanner, transport abnormalities such as skew (oblique movement) and jam (paper jam) may occur when the medium moves along the transport path. When a medium transport abnormality occurs, the medium transport device needs to appropriately stop transport of the medium to prevent damage to the medium.

[0003] An image processing device is disclosed that predicts a first predicted position where the leading edge of the sheet will protrude a predetermined amount in a direction perpendicular to the sheet transport direction based on the position of the leading edge of the sheet and the amount of skew of the sheet, and stops the transport mechanism just before the first predicted position (see Patent Document 1). [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2012-206858 A Summary of the Invention [Problem to be solved by the invention]

[0005] In a medium transport device, it is desirable to more appropriately control the transport of a medium.

[0006] An object of the present invention is to provide a medium transport device, a control method, and a control program that are capable of more appropriately controlling the transport of a medium. [Means for solving the problem]

[0007] A medium transporting device according to one aspect of the present invention includes a transporting unit that transports a medium, an imaging unit that images the medium transported by the transporting unit and sequentially generates line images, a detection unit that detects a tilt of the medium transported based on at least two first pixels in the line image, a determination unit that determines whether a portion of the medium transported has passed a position corresponding to a second pixel located outside the first pixel based on the line image, and a control unit that stops transport of the medium by the transporting unit when the tilt detected by the detection unit is greater than or equal to a threshold value and the determination unit determines that a portion of the medium has passed a position corresponding to the second pixel.

[0008] Furthermore, a control method according to one aspect of the present invention is a control method for a media transporting device having a transporting unit that transports a medium, comprising: an imaging unit that images the medium transported by the transporting unit and sequentially generates line images; a unit that detects a tilt of the medium being transported based on at least two first pixels in the line image; and a unit that determines based on the line image whether a part of the medium being transported has passed a position corresponding to a second pixel located outside the first pixel; and when the detected tilt is greater than or equal to a threshold value and it is determined that a part of the medium has passed a position corresponding to the second pixel, the unit stops transporting the medium.

[0009] Furthermore, a control program according to one aspect of the present invention is a control program for a medium conveying device having a conveying unit that conveys a medium, comprising an imaging unit that images the medium conveyed by the conveying unit and sequentially generates line images, and an imaging unit that detects a tilt of the medium being conveyed based on at least two first pixels in the line image, and determines based on the line image whether a part of the medium being conveyed has passed a position corresponding to a second pixel located outside the first pixel, and causes the medium conveying device to stop conveying the medium by the conveying unit when the detected tilt is greater than or equal to a threshold value and it is determined that a part of the medium has passed a position corresponding to the second pixel. Effect of the Invention

[0010] According to the present invention, the medium transport device, the control method, and the control program are capable of more appropriately controlling the transport of a medium. [Brief description of the drawings]

[0011] [Figure 1] 1 is a perspective view showing a medium conveying device 100 according to an embodiment. [Diagram 2] 2 is a diagram for explaining a transport path inside the medium transport device 100. FIG. [Diagram 3] FIG. 1 is a diagram for explaining an imaging device 117. [Figure 4] 1 is a block diagram showing a schematic configuration of a medium conveying device 100. FIG. [Diagram 5] FIG. 2 is a schematic diagram for explaining a first pixel and a second pixel. [Figure 6] FIG. 1 is a diagram showing a schematic configuration of a storage device 160 and a processing circuit 170. [Figure 7] 10 is a flowchart illustrating an example of the operation of a medium reading process. [Figure 8] 10 is a flowchart showing an example of an operation of an abnormality determination process. [Figure 9A] 1A and 1B are schematic diagrams for explaining the inclination of a medium. [Figure 9B] 10A and 10B are schematic diagrams for explaining the passage of a medium through a predetermined position. [Figure 10] 10 is a flowchart illustrating an example of an operation of a correction process. [Figure 11] FIG. 13 is a block diagram showing a schematic configuration of another medium conveying device 200. [Figure 12] 10 is a flowchart showing an example of another operation of the abnormality determination process. [Figure 13] 10 is a flowchart illustrating an example of another correction process operation. [Figure 14] FIG. 13 is a diagram showing a schematic configuration of another processing circuit 270. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, a medium conveying device according to one aspect of the present invention will be described with reference to the drawings. However, it should be noted that the technical scope of the present invention is not limited to the embodiment, but extends to the inventions described in the claims and their equivalents.

[0013] 1 is a perspective view showing a medium conveying device 100 configured as an image scanner. The medium conveying device 100 conveys a medium, which is an original document, and captures an image of the medium. The medium is paper, cardboard, a card, a booklet, a passport, or the like. The medium conveying device 100 may be a facsimile, a copier, a multifunction printer (MFP, Multifunction Peripheral), or the like. Note that the medium being conveyed may not be an original document, but may be a print target, or the like, and the medium conveying device 100 may be a printer, or the like.

[0014] The medium conveying device 100 includes a lower housing 101, an upper housing 102, a placement table 103, a discharge table 104, an operation device 105, a display device 106, and the like.

[0015] The upper housing 102 is disposed in a position that covers the top surface of the medium conveying device 100, and engages with the lower housing 101 by a hinge so that it can be opened and closed when a medium is jammed, when the inside of the medium conveying device 100 is cleaned, and the like.

[0016] The placement stage 103 is engaged with the lower housing 101 so that the medium to be transported can be placed thereon. The ejection stage 104 is engaged with the lower housing 101 so that the ejected medium can be held thereon.

[0017] The operation device 105 has an input device such as a button and an interface circuit for acquiring a signal from the input device, accepts an input operation by a user, and outputs an operation signal according to the input operation by the user. The display device 106 has a display including a liquid crystal, an organic EL (Electro-Luminescence), or the like, and an interface circuit for outputting image data to the display, and displays the image data on the display.

[0018] FIG. 2 is a diagram for explaining a transport path inside the medium transport device 100. As shown in FIG.

[0019] The transport path inside the medium transport device 100 includes a first sensor 111, a feed roller 112, a brake roller 113, a first transport roller 114, a second transport roller 115, a second sensor 116, a first imaging device 117a, a second imaging device 117b, a third transport roller 118, and a fourth transport roller 119. The number of each roller is not limited to one, and each roller may be multiple. Hereinafter, the first imaging device 117a and the second imaging device 117b may be collectively referred to as the imaging device 117.

[0020] The top surface of the lower housing 101 forms a lower guide 107a of the medium transport path, and the bottom surface of the upper housing 102 forms an upper guide 107b of the medium transport path. In Fig. 2, an arrow A1 indicates the medium transport direction. Hereinafter, "upstream" refers to the upstream side of the medium transport direction A1, and "downstream" refers to the downstream side of the medium transport direction A1.

[0021] The first sensor 111 is disposed upstream of the feed roller 112 and the brake roller 113. The first sensor 111 has a contact detection sensor, and detects whether or not a medium is placed on the placement table 103. The first sensor 111 generates and outputs a first medium signal whose signal value changes depending on whether a medium is placed on the placement table 103 or not.

[0022] The feed roller 112 is provided in the lower housing 101, and feeds the media placed on the placement table 103 from the bottom up. The brake roller 113 is provided in the upper housing 102, and is disposed opposite the feed roller 112.

[0023] The second sensor 116 is an example of a media sensor, and is disposed between the first and second transport rollers 114 and 115 and the imaging device 117 in the media transport direction A1, and at a substantially central position in the width direction A8 perpendicular to the media transport direction A1. The second sensor 116 includes a light emitter and a light receiver provided on one side (e.g., the lower housing 101) of the media transport path, and a reflecting member such as a mirror provided at a position (e.g., the upper housing 102) facing the light emitter and the light receiver across the media transport path. The light emitter irradiates light toward the media transport path. On the other hand, the light receiver receives the light irradiated by the light emitter and reflected by the reflecting member, and generates and outputs a second media signal, which is an electrical signal according to the intensity of the received light. When a medium is present at the position of the second sensor 116, the light irradiated by the light emitter of the second sensor 116 is blocked by the medium. Therefore, the signal value of the second medium signal changes depending on whether or not a medium is present at the position of second sensor 116. As a result, second sensor 116 detects whether or not a medium is present at that position, and detects the fed medium. Note that the light emitter and the light receiver are provided at positions facing each other across the transport path, and the reflecting member may be omitted.

[0024] The medium placed on the mounting table 103 is transported between the lower guide 107a and the upper guide 107b in the medium transport direction A1 by the rotation of the feed roller 112 in the direction of the arrow A2 in Fig. 2, i.e., the medium feed direction. The brake roller 113 rotates in the direction of the arrow A3, i.e., the opposite direction to the medium feed direction, when transporting the medium. When multiple media are placed on the mounting table 103, the feed roller 112 and the brake roller 113 function to separate only the media placed on the mounting table 103 that is in contact with the feed roller 112. This operates to restrict the transport of media other than the separated media (preventing double feeding).

[0025] The medium is fed between the first conveyor roller 114 and the second conveyor roller 115 while being guided by the lower guide 107a and the upper guide 107b. The medium is fed between the first imaging device 117a and the second imaging device 117b by the first conveyor roller 114 and the second conveyor roller 115 rotating in the directions of the arrows A4 and A5, respectively. The feed roller 112, the brake roller 113, the first conveyor roller 114 and the second conveyor roller 115 are an example of a conveying unit that conveys the medium. The medium read by the imaging device 117 is discharged onto the discharge tray 104 by the third conveyor roller 118 and the fourth conveyor roller 119 rotating in the directions of the arrows A6 and A7, respectively.

[0026] FIG. 3 is a diagram for explaining the imaging device 117. As shown in FIG.

[0027] 3, the first imaging device 117a and the second imaging device 117b are disposed facing each other. The first imaging device 117a includes a first light transmitting member 121a, a first light source 122a, a first imaging sensor 123a, a first backing member 124a, etc. The second imaging device 117b includes a second light transmitting member 121b, a second light source 122b, a second imaging sensor 123b, a second backing member 124b, etc.

[0028] The first light transmitting member 121a and the second light transmitting member 121b are made of transparent glass. Alternatively, the first light transmitting member 121a and the second light transmitting member 121b may be made of transparent plastic or the like.

[0029] The first light source 122a is provided on the opposite side of the second backing member 124b across the first light transmitting member 121a and the second light transmitting member 121b. The first light source 122a has an LED (Light Emitting Diode) and irradiates light toward the surface of the medium transported to the position of the imaging device 117 (or toward the opposing second backing member 124b when the medium is not being transported).

[0030] Similarly, the second light source 122b is provided on the opposite side of the first backing member 124a across the second light transmitting member 121b and the first light transmitting member 121a. The second light source 122b has an LED, and irradiates light toward the back side of the medium transported to the position of the imaging device 117 (or toward the opposing first backing member 124a when the medium is not being transported).

[0031] The first imaging sensor 123a is an example of a first imaging unit, and is provided on the opposite side of the second backing member 124b across the first light transmitting member 121a and the second light transmitting member 121b. The first imaging sensor 123a has a line sensor based on a CIS (Contact Image Sensor) of a life-size optical system type having imaging elements based on CMOS (Complementary Metal Oxide Semiconductor) linearly arranged in the main scanning direction. The first imaging sensor 123a also has a lens that forms an image on the imaging element, and an A / D converter that amplifies and analog-to-digital (A / D) converts the electrical signal output from the imaging element. The first imaging sensor 123a captures one side (front surface) of the medium transported by the transport unit and the periphery of the medium at an imaging position L1. The first imaging sensor 123a sequentially generates and outputs first line images that capture an area of ​​the medium being transported facing the line sensor at regular intervals. Furthermore, when the medium is not being transported, the first imaging sensor 123a generates and outputs a first reference image by capturing an image of the second backing member 124b. The first line image and the first reference image each have one pixel in the vertical direction (sub-scanning direction) and multiple pixels in the horizontal direction (main scanning direction).

[0032] Similarly, the second imaging sensor 123b is an example of a second imaging section, and is provided on the opposite side of the first backing member 124a across the first light transmitting member 121a and the second light transmitting member 121b. The second imaging sensor 123b is disposed downstream of the first imaging sensor 123a in the medium conveying direction A1. The second imaging sensor 123b has a line sensor based on a CIS of a life-size optical system type having imaging elements based on CMOS linearly arranged in the main scanning direction. The second imaging sensor 123b also has a lens that forms an image on the imaging element, and an A / D converter that amplifies and analog-to-digital converts the electrical signal output from the imaging element. The second imaging sensor 123b captures one side (back side) of the medium conveyed by the conveying section and the periphery of the medium at the imaging position L2. The second imaging sensor 123b sequentially generates and outputs second line images that capture an area of ​​the medium conveyed facing the line sensor at regular intervals. Furthermore, when the medium is not being transported, the second imaging sensor 123b generates and outputs a second reference image by capturing an image of the first backing member 124a. The second line image and the second reference image each have one pixel in the vertical direction (sub-scanning direction) and multiple pixels in the horizontal direction (main scanning direction).

[0033] The first imaging sensor 123a and the second imaging sensor 123b are examples of an imaging unit, and either the first imaging sensor 123a or the second imaging sensor 123b may be omitted. Also, instead of a CIS line sensor of an equal magnification optical system type having a CMOS imaging element, a CIS line sensor of an equal magnification optical system type having a CCD (Charge Coupled Device) imaging element may be used. Also, a reduction optical system type line sensor having a CMOS or CCD imaging element may be used.

[0034] The first backing member 124a is provided below the first light transmitting member 121a at a position facing the second light source 122b and the second imaging sensor 123b. The first backing member 124a has a first facing surface facing the second imaging sensor 123b. The first facing surface has, for example, a white color, and functions as a white reference member for performing image correction such as shading based on an image signal captured by the first facing surface.

[0035] Similarly, the second backing member 124b is provided above the second light transmitting member 121b at a position facing the first light source 122a and the first imaging sensor 123a. The second backing member 124b has a second facing surface facing the first imaging sensor 123a. The second facing surface has, for example, a white color, and functions as a white reference member for performing image correction such as shading based on an image signal captured by the second facing surface.

[0036] Hereinafter, the first light source 122a and the second light source 122b may be collectively referred to as light source 122. The first imaging sensor 123a and the second imaging sensor 123b may be collectively referred to as imaging sensor 123. Furthermore, the first backing member 124a and the second backing member 124b may be collectively referred to as backing member 124. Furthermore, the first opposing surface and the second opposing surface may be collectively referred to as opposing surfaces.

[0037] FIG. 4 is a block diagram showing a schematic configuration of the medium conveying device 100. As shown in FIG.

[0038] In addition to the above-mentioned components, the medium conveying device 100 further includes a motor 151, an interface device 152, a first average value calculation circuit 153a, a second average value calculation circuit 153b, a storage device 160, a processing circuit 170, and the like.

[0039] The motor 151 has one or more motors, and rotates the feed roller 112, the brake roller 113, and the first to fourth transport rollers 114, 115, 118, and 119 in response to a control signal from the processing circuit 170 to transport the medium.

[0040] The interface device 152 has an interface circuit conforming to a serial bus such as USB, and is electrically connected to an information processing device (not shown, for example, a personal computer, a mobile information terminal, etc.) to transmit and receive input images and various information. Also, instead of the interface device 152, 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 in accordance with a predetermined communication protocol may be used. The predetermined communication protocol is, for example, a wireless LAN (Local Area Network).

[0041] The first average value calculation circuit 153a receives the first line image from the first imaging device 117a every time the first imaging device 117a generates the first line image. The first average value calculation circuit 153a calculates a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the received first line image, and outputs it to the processing circuit 170. A plurality of pixels are set as the first pixel by the processing circuit 170. The peripheral pixels are pixels located within a predetermined range (for example, 5 pixels) from the first pixel. The gradation value is a luminance value or a color value (R value, G value, or B value).

[0042] The second average value calculation circuit 153b receives the second line image from the second imaging device 117b every time the second imaging device 117b generates the second line image. The second average value calculation circuit 153b calculates a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the received second line image, and outputs it to the processing circuit 170. As the second pixel, a pixel located outside the first pixel, that is, a pixel located on the end side of the width direction A8, is set. As the second pixel, one or more pixels are set by the processing circuit 170. As the second pixel, for example, an end pixel located at the end of the width direction A8 in the second line image is set. The peripheral pixel is a pixel located within a predetermined range (for example, 5 pixels) from the second pixel.

[0043] Hereinafter, the first average value calculation circuit 153a and the second average value calculation circuit 153b may be collectively referred to as the average value calculation circuit 153. The average value calculation circuit 153 is a digital signal processor (DSP), a large scale integration (LSI), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or the like.

[0044] Fig. 5 is a schematic diagram for explaining the first pixel and the second pixel. Fig. 5 is a schematic diagram showing the lower housing 101 as viewed from above with the upper housing 102 removed.

[0045] As shown in FIG. 5, for example, a pixel corresponding to a center position P1 in the width direction A8 perpendicular to the medium conveying direction within the imaging position L1 of the first imaging device 117a and positions P2 and P3 that are a predetermined distance outward from the center position P1 are set as the first pixel. That is, a pixel at which each position P1 to P3 is imaged within the first line image is set as the first pixel. The predetermined distance is set in advance to a length that allows the inclination of the medium M being conveyed to be calculated. Pixels corresponding to the peripheral regions R1, R2, and R3 of each position P1, P2, and P3, that is, pixels at which each region R1 to R3 is imaged, are set as peripheral pixels of each first pixel. Note that at least two pixels need to be set as the first pixel, and a pixel corresponding to any one of the positions P1, P2, and P3 does not need to be set as the first pixel.

[0046] Also, as the second pixel, for example, the pixel corresponding to the end positions P4 and P5 in the width direction A8 within the imaging position L2 of the second imaging device 117b, i.e., the pixel at which each position P4, P5 is imaged, is set. The pixel corresponding to the peripheral region R4, R5 of each position P4, P5, i.e., the pixel at which each region R4, R5 is imaged, is set as the peripheral pixel of the second pixel. Note that it is sufficient that at least one pixel is set as the second pixel, and the pixel corresponding to either one of the positions P4, P5 does not have to be set as the second pixel.

[0047] The storage device 160 includes a memory device such as a random access memory (RAM) or a read only memory (ROM), a fixed disk device such as a hard disk, or a portable storage device such as a flexible disk or an optical disk. The storage device 160 also stores computer programs, databases, tables, and the like used for various processes of the medium conveying device 100. The computer programs may be installed in the storage device 160 from a computer-readable portable recording medium using a known setup program or the like. The portable recording medium is, for example, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or the like.

[0048] The processing circuit 170 operates based on a program previously stored in the storage device 160. The processing circuit is, for example, a CPU (Central Processing Unit). The processing circuit 170 may be, for example, a DSP, an LSI, an ASIC, an FPGA, or the like.

[0049] The processing circuit 170 is connected to the operation device 105, the display device 106, the first sensor 111, the second sensor 116, the imaging device 117, the motor 151, the interface device 152, the average value calculation circuit 153, the storage device 160, etc., and controls each of these components. The processing circuit 170 performs drive control of the motor 151, image capture control of the imaging device 117, etc., generates an input image, and transmits it to the information processing device via the interface device 152. The processing circuit 170 also determines whether or not a medium transport abnormality has occurred based on the line image generated by the imaging device 117, and controls the transport of the medium based on the determination result.

[0050] FIG. 6 is a diagram showing a schematic configuration of the storage device 160 and the processing circuit 170. As shown in FIG.

[0051] 6, the storage device 160 stores a control program 161, a detection program 162, a determination program 163, an image generation program 164, a correction program 165, and the like. Each of these programs is a functional module implemented by software that runs on a processor. The processing circuitry 170 reads each program stored in the storage device 160 and operates according to the read program. As a result, the processing circuitry 170 functions as a control unit 171, a detection unit 172, a determination unit 173, an image generation unit 174, and a correction unit 175.

[0052] FIG. 7 is a flowchart showing an example of the operation of the medium reading process of the medium conveying device 100.

[0053] An example of the operation of the medium reading process of the medium conveying device 100 will be described below with reference to the flowchart shown in Fig. 7. The flow of the operation described below is executed mainly by the processing circuit 170 in cooperation with each element of the medium conveying device 100 based on a program previously stored in the storage device 160. The flow of the operation shown in Fig. 7 is executed periodically.

[0054] First, the control unit 171 waits until a user inputs an instruction to read a medium using the operation device 105 and an operation signal instructing to read a medium is received from the operation device 105 (step S101).

[0055] Next, control unit 171 acquires a first medium signal from first sensor 111, and determines whether or not a medium is placed on placement table 103 based on the acquired first medium signal (step S102).

[0056] If no medium is placed on the placement table 103, the control unit 171 returns the process to step S101 and waits until a new operation signal is received from the operation device 105.

[0057] On the other hand, when a medium is placed on the placement table 103, the control unit 171 causes each imaging sensor 123 to capture an image of the opposing surface of each backing member 124 to generate a first reference image and a second reference image, and acquires the generated first reference image and second reference image (step S103). In addition, the control unit 171 acquires the first average value and the second average value calculated from the first reference image and the second reference image from the first average value calculation circuit 153a and the second average value calculation circuit 153b.

[0058] Next, the control unit 171 drives the motor 151 to rotate the feed roller 112, the brake roller 113, and the first to fourth transport rollers 114, 115, 118, and 119 to feed and transport the medium (step S104).

[0059] Next, control unit 171 determines whether the leading edge of the medium has passed the position of second sensor 116 (step S105). Control unit 171 periodically acquires a second medium signal from second sensor 116, and determines whether a medium is present at the position of second sensor 116 based on the acquired second medium signal. Control unit 171 determines that the leading edge of the medium has passed the position of second sensor 116 when the signal value of the second medium signal changes from a value indicating that a medium is not present to a value indicating that a medium is present.

[0060] If the leading edge of the medium has not passed the position of second sensor 116, control unit 171 determines whether a first predetermined time has elapsed since feeding of the medium began (step S106). The first predetermined time is set, based on a prior experiment, to a time that is a margin added to the time required from the start of feeding of the medium until the leading edge of the medium passes the position of second sensor 116. If the first predetermined time has not elapsed since feeding of the medium began, control unit 171 returns the process to step S105, and repeats the processes of steps S105 to S106.

[0061] On the other hand, if the first predetermined time has elapsed since the start of feeding of the medium, the determination unit 173 determines that a transport abnormality, such as a transport stop due to a medium jam (paper jam) or slip, has occurred (step S107).

[0062] Next, the control unit 171 stops the motor 151, stops the feeding and transporting of the medium by the transport unit (step S108), and ends the series of steps. After stopping the feeding and transporting of the medium, the control unit 171 may notify the user that a medium transport abnormality has occurred by a speaker, LED, etc. (not shown).

[0063] On the other hand, if the leading edge of the medium passes the position of the second sensor 116 in step S105, the control unit 171 causes the imaging device 117 to start imaging (step S109).

[0064] Next, the processing circuit 170 executes an abnormality determination process (step S110). The processing circuit 170 executes the abnormality determination process every time the imaging device 117 generates the first line image and the second line image. In the abnormality determination process, the detection unit 172 detects the inclination of the medium being conveyed based on the first line image, and the determination unit 173 determines whether or not a part of the medium being conveyed has passed a predetermined position based on the second line image. The control unit 171 determines whether or not a conveyance abnormality such as skew (oblique movement) of the medium has occurred based on the detection result by the detection unit 172 and the determination result by the determination unit 173. That is, after the leading edge of the medium being conveyed by the conveying unit passes the position of the second sensor 116, the detection unit 172 detects the inclination of the medium being conveyed, and the determination unit 173 determines whether or not a part of the medium being conveyed has passed a predetermined position. This enables the medium conveying device 100 to reduce the processing load of the medium reading process. Details of the abnormality determination process will be described later.

[0065] Next, the control unit 171 determines whether or not it has been determined in the abnormality determination process that a medium transport abnormality has occurred (step S111).

[0066] If it is determined in the abnormality determination process that a medium transport abnormality has occurred, control unit 171 stops motor 151, stops feeding and transporting the medium by the transport unit (step S108), and ends the series of steps.

[0067] On the other hand, if it is determined in the abnormality determination process that no abnormality in the transport of the medium has occurred, the control unit 171 determines whether or not the entire transported medium has been imaged by the imaging device 117 (step S112). The control unit 171 periodically acquires a second medium signal from the second sensor 116, and determines whether or not a medium is present at the position of the second sensor 116 based on the acquired second medium signal. The control unit 171 determines that the trailing edge of the medium has passed the position of the second sensor 116 when the signal value of the second medium signal changes from a value indicating the presence of the medium to a value indicating the absence of the medium. The control unit 171 determines that the entire medium has been imaged when a first predetermined time has elapsed since it was determined that the trailing edge of the medium has passed the position of the second sensor 116. If the entire medium has not yet been imaged, the control unit 171 returns the process to step S110, and repeats the processes of steps S110 to S112.

[0068] On the other hand, when the entire medium has been imaged, the image generation unit 174 synthesizes all the generated first line images to generate a first input image, and synthesizes all the generated second line images to generate a second input image (step S113).

[0069] Next, the correction unit 175 executes a correction process (step S114). In the correction process, the correction unit 175 corrects the first input image and / or the second input image based on the average value of the gradation values ​​of the neighboring pixels of the first pixel in the first line image and / or the average value of the gradation values ​​of the neighboring pixels of the second pixel in the second line image. The details of the correction process will be described later.

[0070] Next, the image generating unit 174 transmits the first input image and the second input image to the information processing device via the interface device 152 (step S115).

[0071] Next, control unit 171 determines whether or not a medium remains on mounting table 103 based on the medium detection signal obtained from first sensor 111 (step S116). If a medium remains on mounting table 103, control unit 171 returns the process to step S105, and repeats the processes of steps S105 to S116.

[0072] On the other hand, if there are no media remaining on mounting table 103, control unit 171 stops motor 151 (step S117) and ends the series of steps.

[0073] 8 is a flowchart showing an example of the operation of the abnormality determination process. The flow of the operation shown in FIG. 8 is executed in step S110 of the flowchart shown in FIG.

[0074] First, the detection unit 172 acquires each first average value calculated from the latest first line image from the first average value calculation circuit 153a, and stores it in the storage device 160 (step S201).

[0075] Next, the detection unit 172 detects the inclination of the medium being transported based on each of the first average values ​​acquired up to now (Step S202).

[0076] First, the detection unit 172 determines, for each of a plurality of first pixels, whether or not the leading edge of the medium has been detected at the respective first pixels.

[0077] Next, the detection unit 172 calculates a first variation value for each first pixel for which the leading edge of the medium has not yet been detected. The detection unit 172 calculates a value obtained by subtracting the first average value calculated for the corresponding first pixel in the first reference image from the first average value calculated for each first pixel in the latest first line image, as the first variation value. The detection unit 172 may also calculate a value obtained by dividing the first average value calculated for each first pixel in the latest first line image by the first average value calculated for the corresponding first pixel in the first reference image, as the first variation value. In this way, the detection unit 172 can calculate the first variation value based on the difference between the gradation value of the backing member 124 and the gradation value of the medium.

[0078] Furthermore, the detection unit 172 may calculate, as the first variation value, a value obtained by subtracting the first average value calculated for the corresponding first pixel in the immediately preceding first line image from the first average value calculated for each first pixel in the latest first line image. Furthermore, the detection unit 172 may calculate, as the first variation value, a value obtained by dividing the first average value calculated for each first pixel in the latest first line image by the first average value calculated for the corresponding first pixel in the immediately preceding first line image. In this way, the detection unit 172 can calculate the first variation value based on the difference between the gradation value of the shadow formed by the leading edge of the medium and the gradation value of the leading edge of the medium.

[0079] Next, the detection unit 172 determines whether each of the first variation values ​​calculated for each of the multiple first pixels is greater than a first threshold value. The first threshold value can be set to, for example, a difference in luminance values ​​(e.g., 20) that allows a person to visually distinguish a difference in luminance on an image. If the first variation value is greater than the first threshold value, the detection unit 172 determines that the leading edge of the medium is captured in the first pixel corresponding to that first variation value, and detects the leading edge of the medium.

[0080] Next, the detection unit 172 determines whether the leading edge of the medium has been detected in all of the first pixels. If the leading edge of the medium has been detected in all of the first pixels, the detection unit 172 calculates the inclination of a line passing through two first pixels for each pair of two first pixels that are adjacent to each other in the width direction A8 and that have been detected as the leading edge of the medium. For example, the detection unit 172 calculates the inclination of a line passing through two first pixels by dividing the increase amount ΔY in the medium transport direction A1 of the two first pixels by the increase amount ΔX in the width direction A8. The increase amount ΔY in the medium transport direction A1 is a value obtained by subtracting the coordinate of the medium transport direction A1 of one first pixel from the coordinate of the other first pixel in the composite image obtained by combining the first line images. The increase amount ΔX in the width direction A8 is a value obtained by subtracting the coordinate of the width direction A8 of one first pixel from the coordinate of the width direction A8 of the other first pixel in the composite image obtained by combining the first line images. The detection unit 172 detects the average value of the slope of the straight lines calculated for each pair as the slope of the medium being transported.

[0081] FIG. 9A is a schematic diagram for explaining the inclination of the medium.

[0082] FIG. 9A shows a composite image B in which a plurality of first line images are composited. In FIG. 9A, each first line image is displayed in a horizontally inverted manner. In the composite image B, a medium M conveyed at an inclination is captured. In the example shown in FIG. 9A, the leading edge of the medium M is detected at the first pixel C1 of the first line image B1, the leading edge of the medium M is detected at the first pixel C2 of the first line image B2, and the leading edge of the medium M is detected at the first pixel C3 of the first line image B3. As pairs of two first pixels detected as the leading edge of the medium that are adjacent to each other in the width direction A8, the first pixels C1 and C2 and the first pixels C2 and C3 are extracted. Then, the average value of the inclination (ΔY1 / ΔX1) of the straight line D1 passing through the first pixels C1 and C2 and the inclination (ΔY2 / ΔX2) of the straight line D2 passing through the first pixels C2 and C3 is detected as the inclination of the conveyed medium.

[0083] In this way, the detection unit 172 detects the inclination of the medium being transported based on the first average value of the gradation values ​​of the pixels surrounding the first pixel in the first line image. Note that, when only two pixels are set as the first pixel, the detection unit 172 detects the quotient obtained by dividing the increase amount ΔY in the medium transport direction A1 at the two first pixels by the increase amount ΔX in the width direction A8 as the inclination of the medium being transported. The detection unit 172 may also detect the inclination of the medium being transported based on the gradation value of the first pixel in the first line image without using the first average value acquired from the first average value calculation circuit 153a. In this case, the detection unit 172 calculates, as the first variation value, a value obtained by subtracting the gradation value of the corresponding first pixel in the first reference image or the immediately preceding first line image from the gradation value of each first pixel in the latest first line image. Alternatively, the detection unit 172 calculates, as the first variation value, a value obtained by dividing the gradation value of each first pixel in the latest first line image by the gradation value of the corresponding first pixel in the first reference image or the immediately preceding first line image. In this manner, the detection unit 172 detects the inclination of the medium being transported based on at least two first pixels in the first line image.

[0084] Next, the determination unit 173 acquires the second average values ​​calculated from the latest second line image from the second average value calculation circuit 153b, and stores them in the storage device 160 (step S203).

[0085] Next, the determination unit 173 determines whether or not a part of the transported medium has passed a position corresponding to the second pixel based on the obtained second average value (Step S204).

[0086] First, the determination unit 173 determines whether or not a part of the medium has been detected in any of the second pixels. If a part of the medium has not been detected in any of the second pixels, the determination unit 173 calculates a second variation value for each second pixel in the same manner as in the process of step S202. The determination unit 173 calculates a value obtained by subtracting the second average value calculated for the corresponding second pixel in the second reference image or the immediately preceding second line image from the second average value calculated for each second pixel in the latest second line image, as the second variation value. Alternatively, the determination unit 173 calculates a value obtained by dividing the second average value calculated for each second pixel in the latest second line image by the second average value calculated for the corresponding second pixel in the second reference image or the immediately preceding second line image, as the second variation value.

[0087] Next, the determination unit 173 determines whether any of the second variation values ​​calculated for each second pixel is greater than a second threshold value. The second threshold value can be set to, for example, a difference in luminance values ​​(e.g., 20) that allows a person to visually distinguish a difference in luminance on an image. If any of the second variation values ​​is greater than the second threshold value, the determination unit 173 determines that a part of the transported medium has passed a position corresponding to the second pixel that corresponds to that second variation value.

[0088] FIG. 9B is a schematic diagram for explaining passage of the position corresponding to the second pixel of the medium.

[0089] Fig. 9B shows a composite image E in which multiple second line images are combined. A medium M that is transported at an angle is captured in the composite image E. In the example shown in Fig. 9B, it is determined that a part of the transported medium has passed through a position corresponding to a second pixel F1 in the second line image E1.

[0090] In this way, the determination unit 173 determines whether or not a part of the medium being conveyed has passed a position corresponding to the second pixel based on the average value of the gradation values ​​of the pixels surrounding the second pixel in the second line image. The determination unit 173 may determine whether or not a part of the medium being conveyed has passed a position corresponding to the second pixel based on the gradation value of the second pixel in the second line image without using the second average value acquired from the second average value calculation circuit 153b. In this case, the determination unit 173 calculates a value obtained by subtracting the gradation value of the corresponding second pixel in the second reference image or the immediately preceding second line image from the gradation value of each second pixel in the second line image as the second variation value. Alternatively, the detection unit 172 calculates a value obtained by dividing the gradation value of each second pixel in the latest second line image by the gradation value of the corresponding second pixel in the second reference image or the immediately preceding second line image as the second variation value. In this way, the detection unit 172 determines whether or not a part of the medium being conveyed has passed a position corresponding to the second pixel based on the second line image.

[0091] Next, control unit 171 determines whether the tilt detected by detection unit 172 is equal to or greater than a threshold value and whether determination unit 173 has determined that a part of the medium has passed a position corresponding to the second pixel (step S205). If the tilt detected by detection unit 172 is less than the threshold value, or if determination unit 173 has not determined that a part of the medium has passed a position corresponding to the second pixel, control unit 171 determines that a medium transport abnormality has not yet occurred and ends the series of steps.

[0092] On the other hand, if the tilt detected by detection unit 172 is equal to or greater than the threshold value and determination unit 173 determines that a part of the medium has passed the position corresponding to the second pixel, control unit 171 determines that a medium transport abnormality has occurred (step S206) and ends the series of steps. In this case, in step S108 of FIG. 7, control unit 171 stops transport of the medium by the transport unit.

[0093] The medium conveying device 100 may determine whether or not a medium conveyance abnormality occurs based on only one of the first line image or the second line image. In that case, for example, the second average value calculation circuit 153b is omitted, and the first average value calculation circuit 153a calculates the first average value of the gradation values ​​of the peripheral pixels of the first pixel in the first line image, and calculates the second average value of the gradation values ​​of the peripheral pixels of the second pixel in the first line image. In step S203, the determination unit 173 acquires the second average value from the first average value calculation circuit 153a. Alternatively, the first average value calculation circuit 153a is omitted, and the second average value calculation circuit 153b calculates the second average value of the gradation values ​​of the peripheral pixels of the second pixel in the second line image, and calculates the first average value of the gradation values ​​of the peripheral pixels of the first pixel in the second line image. In that case, in step S201, the detection unit 172 acquires the first average value from the second average value calculation circuit 153b. In these cases, the correction process is omitted. The medium conveying device 100 allows for a reduction in circuit scale, which makes it possible to reduce the cost and power consumption of the device.

[0094] Alternatively, the detection unit 172 may detect the inclination of the medium based on the second line image, and the determination unit 173 may determine whether or not a part of the medium has passed a position corresponding to the second pixel based on the first line image. In this case, for example, the first average value calculation circuit 153a calculates a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the first line image, and the second average value calculation circuit 153b calculates a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the second line image. In step S201, the detection unit 172 obtains the first average value from the second average value calculation circuit 153b, and in step S203, the determination unit 173 obtains the second average value from the first average value calculation circuit 153a.

[0095] Also, the average value calculation circuit 153 may be omitted, and the processing circuit 170 may calculate the first average value and / or the second average value from the first line image and the second line image. In that case, although the processing load of the medium reading process increases, the medium conveying device 100 can have a reduced circuit scale, and it is possible to reduce the cost and power consumption of the device.

[0096] The detection unit 172 may detect the inclination of the medium being conveyed based on both the first line image and the second line image. In this case, the second average value calculation circuit 153b calculates the second average value of the gradation values ​​of the peripheral pixels of the second pixel in the second line image, and calculates the first average value of the gradation values ​​of the peripheral pixels of the first pixel in the second line image. In step S201, the detection unit 172 acquires each first average value calculated from the latest first line image from the first average value calculation circuit 153a, and acquires each first average value calculated from the latest second line image from the second average value calculation circuit 153b. In step S202, the detection unit 172 detects the average value, minimum value, or maximum value of the inclination calculated based on each first average value calculated from the first line image and each first average value calculated from the second line image as the inclination of the medium being conveyed. This allows the detection unit 172 to detect the inclination of the medium being conveyed with higher accuracy.

[0097] The determination unit 173 may also determine whether or not a portion of the medium being conveyed has passed a position corresponding to the second pixel based on both the first line image and the second line image. In this case, the first average value calculation circuit 153a calculates a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the first line image, and calculates a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the first line image. In step S203, the determination unit 173 obtains each second average value calculated from the latest second line image from the second average value calculation circuit 153b, and obtains each second average value calculated from the latest first line image from the first average value calculation circuit 153a. In step S204, the determination unit 173 determines that a portion of the medium being conveyed has passed a position corresponding to the second pixel when the second variation value calculated from the second line image is greater than the second threshold value and the second variation value calculated from the first line image is greater than the second threshold value. Note that the determination unit 173 may determine that a part of the medium being transported has passed a position corresponding to the second pixel when the second variation value calculated from the second line image is greater than the second threshold value, or when the second variation value calculated from the first line image is greater than the second threshold value. This allows the determination unit 173 to more accurately determine whether or not a part of the medium being transported has passed a position corresponding to the second pixel.

[0098] 10 is a flowchart showing an example of the operation of the correction process. The flow of the operation shown in FIG. 10 is executed in step S114 of the flowchart shown in FIG.

[0099] First, the correction unit 175 reads out and acquires, from the storage device 160, each of the first average values ​​calculated from all of the first line images (step S301).

[0100] Next, the correction unit 175 calculates a first statistical value of each of the acquired first average values ​​(step S302). The correction unit 175 calculates the average value, median, mode, maximum value, or minimum value of each of the first average values ​​as the first statistical value. The correction unit 175 may calculate the first statistical value only from the first average values ​​at the ends (leading and trailing ends) in the medium transport direction A1 among the first average values. This allows the correction unit 175 to calculate the first statistical value without being affected by the content (characters, lines, images, etc.) printed on the medium.

[0101] Next, the correction unit 175 reads out and acquires the second average values ​​calculated from all the second line images from the storage device 160 (step S303).

[0102] Next, the correction unit 175 calculates a second statistical value of each of the acquired second average values ​​(step S304). The correction unit 175 calculates the average value, median, mode, maximum value, or minimum value of each of the second average values ​​as the second statistical value. The correction unit 175 may calculate the second statistical value only from the second average values ​​at the ends (leading and trailing ends) in the medium transport direction A1 among the second average values. This allows the correction unit 175 to calculate the second statistical value without being affected by the content printed on the medium.

[0103] Next, the correction unit 175 determines whether the difference between the calculated first statistical value and the second statistical value is equal to or greater than the gradation threshold (step S305). The gradation threshold can be set to, for example, a gradation value difference (e.g., 10) that allows a person to visually distinguish the difference in brightness on an image. If the difference between the first statistical value and the second statistical value is less than the gradation threshold, the correction unit 175 ends the series of steps without performing any particular processing.

[0104] On the other hand, if the difference between the first statistical value and the second statistical value is equal to or greater than the gradation threshold, the correction unit 175 corrects the first input image and / or the second input image (step S306), and ends the series of steps. For example, if the first statistical value is smaller than the second statistical value, the correction unit 175 corrects the first input image so as to add a subtraction value obtained by subtracting the first statistical value from the second statistical value to the gradation value of each pixel in the first input image. Note that, if the first statistical value is smaller than the second statistical value, the correction unit 175 may correct the second input image so as to subtract a subtraction value obtained by subtracting the first statistical value from the second statistical value from the gradation value of each pixel in the second input image. On the other hand, if the second statistical value is smaller than the first statistical value, the correction unit 175 corrects the second input image so as to add a subtraction value obtained by subtracting the second statistical value from the first statistical value to the gradation value of each pixel in the second input image. In addition, when the second statistical value is smaller than the first statistical value, the correction unit 175 may correct the first input image by subtracting a value obtained by subtracting the second statistical value from the gradation value of each pixel in the first input image.

[0105] In this way, the correction unit 175 corrects the first input image or the second input image based on the first average value and the second average value. The first input image is an example of an image based on a first line image, and the second input image is an example of an image based on a second line image. This allows the correction unit 175 to unify the overall brightness of each input image when the distances from the first light source 122a and the second light source 122b to the medium are significantly different and a difference occurs in the overall brightness of the first input image and the second input image. In addition, the correction unit 175 corrects each input image efficiently while suppressing an increase in the processing load by correcting the input image using the first average value and the second average value used for medium transport control.

[0106] As described above in detail, the medium conveying device 100 stops conveying the medium when the inclination of the medium detected based on the first line image is equal to or greater than the threshold value and when it is determined based on the second line image that a part of the medium has passed the position corresponding to the second pixel. As a result, even if the medium is skewed, the medium conveying device 100 continues conveying the medium when the possibility of the medium colliding with the side wall of the conveying path is low, and stops conveying the medium when the possibility of the medium colliding with the side wall of the conveying path is high, thereby suppressing the occurrence of damage to the medium. In other words, even if a part of the medium has passed a position such as the end of the imaging device 117, the medium conveying device 100 continues conveying the medium when the medium is not skewed, and stops conveying the medium when the medium is skewed, thereby suppressing the occurrence of damage to the medium. Therefore, the medium conveying device 100 is able to more appropriately control the conveyance of the medium.

[0107] Furthermore, medium conveying device 100 determines that a medium conveyance abnormality has occurred and stops conveying the medium only when a portion of the medium has actually passed a position such as an edge of imaging device 117. This allows medium conveying device 100 to more accurately determine whether or not a medium conveyance abnormality has occurred.

[0108] In addition, even if there is a high possibility that part of the content in the medium will not be captured by the imaging device 117, the medium conveying device 100 can stop conveying the medium and notify the user that an abnormality has occurred in conveying the medium, thereby improving user convenience.

[0109] Furthermore, because medium conveying device 100 determines the occurrence of a medium conveyance abnormality based on an image captured by imaging device 117, it can determine whether or not a medium conveyance abnormality has occurred without using a special sensor for detecting the approach of the medium to a side wall of the conveyance path. Therefore, medium conveying device 100 can determine whether or not a medium conveyance abnormality has occurred while suppressing increases in device costs and device size.

[0110] Increasing the number of pixels for which the average value of the gradation values ​​of the surrounding pixels is calculated in each average value calculation circuit 153 increases the circuit scale of each average value calculation circuit 153, and increases the device cost of the medium conveying device 100. In the medium conveying device 100, the number of pixels for which the average value of the gradation values ​​of the surrounding pixels is calculated from the first line image and the number of pixels for which the average value of the gradation values ​​of the surrounding pixels is calculated from the second line image are each set to 2 to 3. This allows the medium conveying device 100 to further correct both the first input image and the second input image with low load and high accuracy using the first average value and the second average value while suppressing increases in device costs.

[0111] In particular, the media conveying device 100 can appropriately stop conveying of media when media larger than the maximum size supported by the media conveying device 100, media stapled, or media folded in half is being conveyed and skew of the media occurs.

[0112] FIG. 11 is a block diagram showing a schematic configuration of a medium conveying device 200 according to another embodiment.

[0113] As shown in FIG. 11, the medium conveying device 200 has an average value calculation circuit 253 instead of the first average value calculation circuit 153a and the second average value calculation circuit 153b.

[0114] The average value calculation circuit 253 can receive a first line image from the first imaging device 117a, calculate a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the received first line image, and output it to the processing circuit 170. Furthermore, the average value calculation circuit 253 can receive a second line image from the second imaging device 117b, calculate a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the received second line image, and output it to the processing circuit 170. However, the average value calculation circuit 253 calculates and outputs only either the first average value or the second average value according to the setting from the processing circuit 170.

[0115] Fig. 12 is a flowchart showing an example of the operation of abnormality determination processing by medium conveying device 200. The flowchart shown in Fig. 12 is executed in place of the flowchart shown in Fig. 8. Note that, when conveyance of the medium starts, control unit 171 sets average value calculation circuit 253 to calculate and output a first average value.

[0116] First, the detection unit 172 determines whether or not a tilt equal to or greater than a threshold has already been detected as the tilt of the medium currently being transported (step S401). If a tilt equal to or greater than the threshold has already been detected, the detection unit 172 transitions the process to step S406.

[0117] On the other hand, if a tilt equal to or greater than the threshold has not yet been detected, the detection unit 172 acquires each first average value calculated from the latest first line image from the average value calculation circuit 253, and stores them in the storage device 160 (step S402).

[0118] Next, the detection unit 172 detects the inclination of the medium being transported in the same manner as in step S202 of FIG. 8 (step S403).

[0119] Next, the control unit 171 determines whether the tilt detected by the detection unit 172 is equal to or greater than a threshold value (step S404). If the tilt detected by the detection unit 172 is less than the threshold value, the control unit 171 determines that no medium transport abnormality has occurred yet, and ends the series of steps.

[0120] On the other hand, if the inclination detected by the detection unit 172 is equal to or greater than the threshold value, the control unit 171 changes the setting of the average value calculation circuit 253 so that the average value calculation circuit 253 thereafter calculates and outputs a second average value (step S405), and ends the series of steps.

[0121] On the other hand, if a tilt equal to or greater than the threshold has already been detected in step S401, the judgment unit 173 obtains each second average value calculated from the latest second line image from the average value calculation circuit 253 and stores them in the memory device 160 (step S406).

[0122] Next, the determination unit 173 determines whether or not a part of the medium being conveyed has passed a position corresponding to the second pixel, in a manner similar to the process of step S204 in FIG. 8 (step S407).

[0123] Next, control unit 171 determines whether or not determination unit 173 has determined that a portion of the medium has passed the position corresponding to the second pixel (step S408). If determination unit 173 has not determined that a portion of the medium has passed the position corresponding to the second pixel, control unit 171 determines that a medium transport abnormality has not yet occurred, and ends the series of steps.

[0124] On the other hand, if the determination unit 173 determines that a part of the medium has passed the position corresponding to the second pixel, the control unit 171 determines that a medium transport abnormality has occurred (step S409) and ends the series of steps. In this case, in step S108 of FIG. 7, the control unit 171 stops transport of the medium by the transport unit.

[0125] In this way, only when the tilt detected by the detection unit 172 is equal to or greater than the threshold value, the determination unit 173 determines whether or not a part of the conveyed medium has passed a position corresponding to the second pixel, based on the second line image generated subsequently. This eliminates the need for the average calculation circuit 253 to simultaneously calculate the first average value and the second average value, making it possible to reduce the number of pixel groups for which average values ​​are calculated simultaneously. Therefore, the medium conveyance device 100 can have a reduced circuit scale, making it possible to reduce the cost and power consumption of the device.

[0126] Similarly to medium conveying device 100, medium conveying device 200 may have a first average value calculation circuit 153a and a second average value calculation circuit 153b and execute the abnormality determination process shown in Fig. 12. In that case, in step S402, detection unit 172 acquires each first average value from first average value calculation circuit 153a, and in step S406, determination unit 173 acquires each second average value from second average value calculation circuit 153b.

[0127] Also, like the medium conveying device 100, the medium conveying device 200 may determine whether or not a medium conveyance abnormality occurs based on only one of the first line image or the second line image. In that case, for example, the average calculation circuit 253 calculates a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the first line image, and calculates a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the first line image. Alternatively, the average calculation circuit 253 calculates a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the second line image, and calculates a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the second line image. In these cases, the correction process is omitted. The medium conveying device 200 can simplify the circuit configuration of the average calculation circuit 253, and can achieve low cost and low power consumption of the device.

[0128] Also, similar to the medium conveying device 100, the detection unit 172 may detect the inclination of the medium based on the second line image, and the determination unit 173 may determine whether or not a part of the medium has passed a position corresponding to the second pixel based on the first line image. In that case, for example, the average calculation circuit 253 may calculate a second average value of the gradation values ​​of the peripheral pixels of the second pixel in the first line image, and calculate a first average value of the gradation values ​​of the peripheral pixels of the first pixel in the second line image. Also, similar to the medium conveying device 100, the average calculation circuit 253 may be omitted, and the processing circuit 170 may calculate the first average value and / or the second average value from the first line image and the second line image.

[0129] As described above in detail, the medium conveying device 200 is able to more appropriately control the conveyance of the medium even when the average value calculation circuit 253 is used instead of the first average value calculation circuit 153a and the second average value calculation circuit 153b.

[0130] 13 is a flowchart showing an example of the operation of a correction process according to another embodiment of the present invention, which is executed instead of the flowchart shown in FIG.

[0131] First, the correction unit 175 reads and acquires from the storage device 160 the first average value calculated from the first line image in which the leading edge of the medium is captured, and the first average value calculated from the first line image in which the trailing edge of the medium is captured (step S501). The correction unit 175 specifies the first line image in which the leading edge of the medium is detected by the detection unit 172 in step S202 of FIG. 8 as the first line image in which the leading edge of the medium is captured. Furthermore, when the first variation value becomes greater than the first threshold value after the trailing edge of the medium passes the position of the second sensor 116, the correction unit 175 detects the first pixel adjacent to the first pixel corresponding to the first variation value on the transport direction side of the medium as the trailing edge of the medium. Then, the correction unit 175 specifies the first line image in which the trailing edge of the medium is detected as the first line image in which the trailing edge of the medium is captured.

[0132] Next, the correction unit 175 corrects the first input image based on the first average value calculated from the first line image in which the leading end of the medium is captured and the first average value calculated from the first line image in which the trailing end of the medium is captured (step S502).

[0133] For example, if the leading or trailing edge of the medium is lifted up relative to the transport path and transported, the distance between each position of the medium and the first light source 122a in the medium transport direction A1 changes, and the brightness of the medium may vary in the vertical direction (medium transport direction A1) in the first input image. The correction unit 175 corrects the first input image based on the first average value related to the leading edge of the medium and the first average value related to the trailing edge of the medium so that the brightness of the medium in the vertical direction in the first input image is constant. If the first average value related to the trailing edge of the medium is higher than the first average value related to the leading edge of the medium, the correction unit 175 corrects each pixel in the first input image so that the gradation value becomes lower the closer to the trailing edge of the medium. On the other hand, if the first average value related to the trailing edge of the medium is lower than the first average value related to the leading edge of the medium, the correction unit 175 corrects each pixel in the first input image so that the gradation value becomes higher the closer to the trailing edge of the medium.

[0134] For example, the correction unit 175 calculates a correction coefficient α according to the following formula (1), and corrects each pixel in the first input image by multiplying the gradation value of each pixel by the correction coefficient α. α=y 0 / y' (1) Here, y′ is the first average value y 0 and the first average value y 1 It is a linearly interpolated value and is calculated by the following formula (2). y'=y 0 +(y 1 -y 0 )×(xx 0 ) / (x 1 -x 0 ) (2) where x 0 is the vertical position (coordinate) of the leading edge of the medium in the first input image, and x 1 is the vertical position of the trailing edge of the medium in the first input image, and x is the vertical position of the pixel to be corrected in the input image.

[0135] The correction unit 175 calculates the first average value y 0 , but the first average value y 1 Based on this, the correction coefficient α may be calculated by the following formula (3). α=y 1 / y' (3)

[0136] Next, the correction unit 175 reads and acquires from the storage device 160 the second average value calculated from the second line image in which the leading edge of the medium is captured, and the second average value calculated from the second line image in which the trailing edge of the medium is captured (step S503). The correction unit 175 acquires each of the second average values ​​in the same manner as in the process of step S501.

[0137] Next, the correction unit 175 corrects the second input image based on the second average value calculated from the second line image in which the leading edge of the medium is captured and the second average value calculated from the second line image in which the trailing edge of the medium is captured (step S504), and ends the series of steps. The correction unit 175 corrects the second input image in the same manner as the processing in step S502.

[0138] The correction unit 175 may omit either one of steps S501 to S502 or steps S503 to S504 and correct only one of the first input image or the second input image. The correction unit 175 may execute both the correction process shown in FIG. 13 and the correction process shown in FIG.

[0139] In this way, the correction unit 175 corrects the first input image based on the first average value, and / or corrects the second input image based on the second average value. Note that the correction unit 175 may correct the first line image or the second line image, instead of correcting the first input image or the second input image, based on the first average value and the second average value. In that case, the image generation unit 174 generates the first input image by synthesizing the corrected first line image, and generates the second input image by synthesizing the corrected second line image.

[0140] As described above in detail, the medium conveying device is now able to more appropriately control the conveyance of the medium even when correcting the first input image based on the first average value and correcting the second input image based on the second average value.

[0141] 14 is a diagram showing a schematic configuration of a processing circuit 270 in a medium conveying device according to another embodiment. The processing circuit 270 is used in place of the processing circuit 170 of the medium conveying device 100 or the medium conveying device 200, and executes medium reading processing and the like in place of the processing circuit 170. The processing circuit 270 has a control circuit 271, a detection circuit 272, a determination circuit 273, an image generation circuit 274, a correction circuit 275, and the like. Each of these components may be formed of an independent integrated circuit, microprocessor, firmware, and the like.

[0142] The control circuit 271 is an example of a control unit, and has the same functions as the control unit 171. The control circuit 271 receives an operation signal from the operation device 105, a first medium signal from the first sensor 111, and a second medium signal from the second sensor 116, and reads out the detection result of the tilt of the medium and the determination result of the passage of the medium through a predetermined position from the storage device 160. The control circuit 271 drives the motor 151 in accordance with each received signal and the read detection results and determination results, and stops the motor 151 if an abnormality in the transport of the medium is detected.

[0143] The detection circuit 272 is an example of a detection unit, and has the same function as the detection unit 172. The detection circuit 272 receives each average value from the average value calculation circuit 153 (or 253), detects the tilt of the medium based on each received average value, and stores the detection result in the storage device 160.

[0144] The determination circuit 273 is an example of a determination unit, and has the same function as the determination unit 173. The determination circuit 273 receives each average value from the average value calculation circuit 153 (or 253), determines whether or not a part of the medium has passed a position corresponding to the second pixel based on each received average value, and stores the determination result in the storage device 160.

[0145] The image generation circuit 274 is an example of an image generation unit, and has the same function as the image generation unit 174. The image generation circuit 274 receives the first line image and the second line image from the imaging device 117, generates a first input image and a second input image from each of the received line images, and stores them in the storage device 160. In addition, the image generation circuit 274 reads out the first input image and the second input image corrected by the correction circuit 275 from the storage device 160, and transmits them to the information processing device via the interface device 152.

[0146] The correction circuit 275 is an example of a correction unit, and has the same function as the correction unit 175. The correction circuit 275 receives each average value from the average value calculation circuit 153 (or 253), and reads out the first input image and the second input image from the storage device 160. The correction circuit 275 corrects the first input image and the second input image based on each average value, and stores them in the storage device 160.

[0147] As described above in detail, the medium conveying device is now able to more appropriately control the conveyance of the medium, even when using the processing circuit 270. [Explanation of symbols]

[0148] 100 Media transport device 112 Feeding roller 113 Brake roller 114 First conveyor roller 115 Second conveyor roller 116 Second Sensor 123a First imaging sensor 123b Second imaging sensor 171 Control Unit 172 Detection unit 173 Judgment Department 175 Correction section

Claims

1. A transport unit that transports the medium; an imaging unit that captures an image of the medium being transported by the transport unit; a notification unit that notifies an occurrence of a medium transport abnormality based on a tilt of the medium detected based on an image generated by the imaging unit and based on whether or not the medium has passed a predetermined position detected based on the image generated by the imaging unit; and A medium transport device comprising:

2. The present invention further includes a detection unit that detects abnormalities in the transport of a medium based on a tilt of the medium detected based on an image generated by the imaging unit and whether or not the medium has passed a predetermined position detected based on the image generated by the imaging unit, The medium transport device according to claim 1 , wherein the notification unit notifies the occurrence of a medium transport abnormality when the detection unit detects a medium transport abnormality.

3. the imaging unit captures an image of the medium being transported by the transport unit to sequentially generate line images; a first detection unit that detects a tilt of the medium being conveyed based on at least two first pixels in the line image; The medium conveying device of claim 1, further comprising a second detection unit that detects whether or not a position corresponding to a second pixel located outside the first pixel of the medium being conveyed has been passed through based on the line image as whether or not the specified position has been passed through.

4. the imaging unit includes a first imaging unit that images one side of the medium transported by the transport unit to generate a first line image, and a second imaging unit that images the other side of the medium transported by the transport unit to generate a second line image, The first detection unit detects a tilt of the medium being conveyed based on the first line image, The medium transport device according to claim 3 , wherein the second detection unit detects whether or not the transported medium has passed the predetermined position based on the second line image.

5. a first average value calculation unit that calculates an average value of gradation values ​​of pixels surrounding the first pixel in the first line image; a second average value calculation unit that calculates an average value of gradation values ​​of pixels surrounding the second pixel in the second line image, The first detection unit detects a tilt of the medium being conveyed based on an average value of gradation values ​​of pixels surrounding the first pixel in the first line image, The medium transport device according to claim 4 , wherein the second detection unit detects whether the transported medium has passed through the predetermined position based on an average value of gradation values ​​of pixels surrounding the second pixel in the second line image.

6. The medium conveying device of claim 5, further comprising a correction unit that corrects the first line image, the second line image, an image based on the first line image, or an image based on the second line image based on an average value of gradation values ​​of surrounding pixels of the first pixel in the first line image and an average value of gradation values ​​of surrounding pixels of the second pixel in the second line image.

7. the second imaging unit is disposed downstream of the first imaging unit in a medium transport direction, The medium transport device according to claim 4 , wherein the first detection unit detects a tilt of the medium being transported based on the first line image and the second line image.

8. the second imaging unit is disposed downstream of the first imaging unit in a medium transport direction, The medium transport device according to claim 4 , wherein the second detection unit detects whether or not the transported medium has passed through the predetermined position based on the first line image and the second line image.

9. The medium transport device of claim 3, wherein the second detection unit detects whether or not the transported medium has passed through the specified position based on a line image generated subsequently only if the inclination detected by the first detection unit is greater than or equal to a threshold value.

10. a media sensor disposed between the transport unit and the imaging unit in a media transport direction; The medium transport device according to any one of claims 3 to 9, wherein the first detection unit detects a tilt of the medium being transported after a leading edge of the medium being transported by the transport unit passes the position of the medium sensor.

11. A method for controlling a medium conveying device having a conveying unit that conveys a medium, comprising: capturing an image of the medium being transported by the transport unit to generate an image; notifying the occurrence of a medium transport abnormality based on the tilt of the medium detected based on the generated image and based on whether or not the medium has passed a predetermined position detected based on the generated image; A control method comprising:

12. A control program for a medium conveying device having a conveying unit that conveys a medium, capturing an image of the medium being transported by the transport unit to generate an image; notifying the occurrence of a medium transport abnormality based on the tilt of the medium detected based on the generated image and based on whether or not the medium has passed a predetermined position detected based on the generated image; A control program for causing the medium transport device to execute the above steps.

Citation Information

Patent Citations

  • Original reading apparatus

    JP2006270560A

  • Image processing apparatus and sheet conveyance method

    JP2012206858A

  • Medium transfer device, image reading apparatus and transfer control method

    JP2020088784A