CN108664825B - Scanning device and image scanning method thereof - Google Patents

Scanning device and image scanning method thereof Download PDF

Info

Publication number
CN108664825B
CN108664825B CN201710212806.0A CN201710212806A CN108664825B CN 108664825 B CN108664825 B CN 108664825B CN 201710212806 A CN201710212806 A CN 201710212806A CN 108664825 B CN108664825 B CN 108664825B
Authority
CN
China
Prior art keywords
scanning
card
channel
sensing element
value
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710212806.0A
Other languages
Chinese (zh)
Other versions
CN108664825A (en
Inventor
张尧硕
林意绚
游瑞益
朱得佑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foxlink Image Technology Co Ltd
Original Assignee
Foxlink Image Technology Co Ltd
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 Foxlink Image Technology Co Ltd filed Critical Foxlink Image Technology Co Ltd
Priority to CN201710212806.0A priority Critical patent/CN108664825B/en
Publication of CN108664825A publication Critical patent/CN108664825A/en
Application granted granted Critical
Publication of CN108664825B publication Critical patent/CN108664825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/1092Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing by means of TV-scanning

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

The invention discloses a scanning device and an image scanning method thereof, wherein the image scanning method comprises the following steps: step A1, recording the background value when no card is in the scanning channel, and using the background value as the preset value; step A2, before card scanning, judging whether the background value in the scanning channel is in accordance with the preset value, if so, executing step A5, otherwise, executing step A3; step A3, moving the card a distance Y; step A4, judging whether the background value in the scanning channel is in accordance with the preset value, if so, executing step A5, otherwise, executing step A8; step A8, checking whether the card moving distance or the accumulated card moving distance exceeds the preset moving distance, if not, executing step A3 again, otherwise, executing step A9; step A9, displaying card jamming; step A5, stopping detection and performing image calibration; step a6, the scan is started until the scan is completed.

Description

Scanning device and image scanning method thereof
Technical Field
The present invention relates to a scanning device and an image scanning method thereof, and more particularly, to a scanning device and an image scanning method thereof, which have low manufacturing cost and can prevent a card from extending into a scanning channel before scanning by sensing whether the card is in the scanning channel, prevent the card from shielding a scanning reading line, and avoid incomplete scanning.
Background
Referring to fig. 1 to 3, a first conventional scanning device 100' for scanning a card 200' includes a base 10', an upper cover 20 covering the base 10', a first roller 11', a second roller 12', a lower image sensing element 13, an upper image sensing element 21', and a motor (not shown). The middle of the lower surface of the upper cover 20 'is formed with an upper groove 22' extending in the transverse direction, the middle of the upper surface of the lower cover 10 'is formed with a lower groove 14' extending in the transverse direction, and the upper image sensing element 21 'and the lower image sensing element 13' are respectively and oppositely disposed in the upper groove 22 'and the lower groove 14'. After the upper cover 20' is covered on the base 10', a first channel 30' is formed between the upper cover 20' and the base 10' in front of the upper image sensing element 21' and the lower image sensing element 13', a scanning channel 40' is formed between the upper image sensing element 21' and the lower image sensing element 13', and a second channel 50' is formed between the upper cover 20' and the base 10' behind the upper image sensing element 21' and the lower image sensing element 13' and is communicated with the outside. The first roller 11 'is installed on the base 10' and extends into the first channel 30', the second roller 12' is installed on the base 10 'and extends into the second channel 50', and both the first roller 11 'and the second roller 12' are connected with a motor, and the motor drives the rollers to rotate forward and backward. The first channel 30', the scanning channel 40' and the second channel 50 'are communicated with each other, a first sensor 60' is disposed in the first channel 30', a second sensor 70' is disposed in the second channel 50 'and located in front of the center line 121' of the second roller 12', a scanning reading line 41' is disposed in the scanning channel 40', the first sensor 60' is used for detecting whether the card 200 'to be scanned is in the first channel 30', and the second sensor 70 'is used for detecting the initial position of the card 200' to be scanned.
The conventional scanner 100' has the following operation flow: inserting the card 200 'into the first channel 30', after the first sensor 60 'detects the card 200' to be scanned in the first channel 30', the first roller 11' and the second roller 12 'rotate forward and drive the card 200' to feed backward, the card 200 'passes through the scanning channel 40' until the rear end edge of the card 200 'reaches the second channel 50', the rear end edge of the card 200 'is located between the center line 121' of the second roller 12 'and the second sensor 70' and keeps a certain distance from the scanning reading line 41', the first roller 11' and the second roller 12 'stop rotating forward, and the card 200' is at the stop position; after a preset time, the first roller 11' and the second roller 12' rotate reversely and drive the card 200' to feed forward, when the card 200' touches the second sensor 70', the scanning device 100' scans, the card 200' continues to feed forward until scanning is completed, and after scanning is completed, the card 200' is fed out from the first channel 30 '.
However, since the card 200 'is easily tilted when being fed backward, the scanning line 41' is partially shielded by the card 200 'before the card 200' is scanned, i.e., when the card 200 'is at the stop position, and the scanning line 41' is shielded by the card 200 'when the card 200' is at the stop position due to the slipping of the second roller 12', the card 200' may not be scanned at some portion during the scanning process, and the scanning is not complete. In addition, the conventional scanning device 100' requires two sensors, which is relatively expensive to manufacture.
Referring to fig. 3 and 4, the second conventional scanning device 300' for scanning the card 200' is configured to feed the card 200' from the first channel 30' and to feed the card 200' out of the second channel 50' after scanning the card 40' through the scanning channel, as opposed to the first conventional scanning device 100', without providing the second sensor 70' in the second channel 20', and only providing the first sensor 60' in the first channel 30', and when the card 200' is inserted into the first channel 30', the first sensor 60' starts scanning when the first sensor 60' senses that the card 200' enters. In the scanner 300', when the card 200' is inserted, the front end of the card 200' is easily extended beyond the image reading line 41', so that the portion of the front end of the card 200' extended beyond the image reading line 41' is not scanned during scanning, and the card 200' is not completely scanned.
Therefore, it is necessary to provide a scanning device and a scanning method thereof that have low manufacturing cost and can prevent the card from extending into the scanning channel and shielding the scanning reading line before scanning by sensing whether the card is in the scanning channel.
Disclosure of Invention
The present invention is directed to provide a scanning device and a scanning method thereof, which have low manufacturing cost and can detect whether there is a card in a scanning channel, so as to ensure that the card does not extend into the scanning channel before scanning, and the card does not shield a scanning reading line, thereby avoiding incomplete scanning.
In order to achieve the above object, the present invention provides a scanning device, which can scan a card, and comprises a base, an upper cover, a lower image sensing element, an upper image sensing element, at least one motor, two sets of rollers, and a card sensing element; a lower groove is formed in the middle of the upper surface of the base; the upper cover is pivoted on the base, and an upper groove is formed in the middle of the lower surface of the upper cover corresponding to the lower groove; the lower image sensing element is arranged in the lower groove; the upper image sensing element is arranged in the upper groove, the upper cover is pivoted on the base, after the upper cover is arranged on the base, a first channel is formed between the upper cover and the base in front of the upper image sensing element and the lower image sensing element, a scanning channel is formed between the upper image sensing element and the lower image sensing element, a second channel communicated with the outside is formed between the upper cover and the base behind the upper image sensing element and the lower image sensing element, the first channel, the scanning channel and the second channel are communicated with each other, and a scanning reading line is arranged in the scanning channel; the motor is arranged on the base; one of the two groups of rollers is arranged on the base and extends into the first channel, the other group of rollers is arranged on the base and extends into the second channel, and the two groups of rollers are connected with the motor and can rotate forwards and backwards under the driving of the motor; the card sensing element is arranged in the first channel.
In order to achieve the above object, the present invention provides an image scanning method for a scanning device, which can scan a card, the scanning device includes a base, an upper cover, a lower image sensing element, an upper image sensing element, at least one motor, two sets of rollers, and a card sensing element; a lower groove is formed in the middle of the upper surface of the base; the upper cover is pivoted on the base, and an upper groove is formed in the middle of the lower surface of the upper cover corresponding to the lower groove; the lower image sensing element is arranged in the lower groove; the upper image sensing element is arranged in the upper groove, the upper cover is pivoted on the base, after the upper cover is arranged on the base, a first channel is formed between the upper cover and the base in front of the upper image sensing element and the lower image sensing element, a scanning channel is formed between the upper image sensing element and the lower image sensing element, a second channel communicated with the outside is formed between the upper cover and the base behind the upper image sensing element and the lower image sensing element, the first channel, the scanning channel and the second channel are communicated with each other, and a scanning reading line is arranged in the scanning channel; the motor is arranged on the base; one of the two groups of rollers is arranged on the base and extends into the first channel, the other group of rollers is arranged on the base and extends into the second channel, and the two groups of rollers are connected with the motor and can rotate forwards and backwards under the driving of the motor; the card sensing element is arranged in the first channel; the image scanning method comprises the following steps: step A1, recording the background value when no card exists in the scanning channel, and using the background value as the preset value as the reference range of the inspection; step a2, before the card scanning, the upper image sensing element and the lower image sensing element determine whether the background value in the scanning channel matches the preset value, if so, step a5 is executed, and if not, step A3 is executed; step A3, the roller group rotates and drives the card to move a distance Y; step A4, the upper image sensing element and the lower image sensing element determine whether the background value in the scanning channel matches the preset value, if the background value matches the preset value, the card is taken away from the scanning channel, if the background value matches the preset value, step A5 is executed, if the background value in the scanning channel does not match the preset value, step A8 is executed; step A8, presetting a moving distance, checking whether the card moving distance or the accumulated card moving distance exceeds the preset moving distance, if not, executing step A3 again, and if so, executing step a 9; step A9, displaying card jamming; step A5, stopping detection and performing image calibration, and executing A6; step A6, starting scanning until the scanning is finished, and executing A7; step A7, end the scan and exit the card.
As a further improvement, the background value recorded in step a1 when there is no card in the scanning channel can be obtained before factory shipment or after the scanning device is powered on.
As a further improvement, the method further comprises the following steps between the steps A1 and A2: step S1, waiting for the scanning command after the scanning device is started, executing step S2 when the scanning command exists, and continuing waiting when the scanning command does not exist; step S2, performing card sensing by the card sensing element, if the card sensing element does not sense the card, performing step S3, and if the card sensing element senses the card, performing step a 2; in step S3, no card prompt signal is displayed.
As a further improvement, a step S4 is further included between the steps S3 and a2, when the card sensing element senses that there is a card, the two sets of rollers drive the card to move a distance X toward the second channel so that the rear end of the card moves into the second channel, and the step a2 is executed after the step S4 is executed.
As a further improvement, the maximum value of the preset value of the background value when no card exists in the scanning channel is B1, and the minimum value thereof is C1, wherein the upper image sensing element and the lower image sensing element of the steps a2 and a4 determine whether the background value in the scanning channel matches the preset value by the following steps: step S7-1, comparing the maximum value of the currently obtained background value with the maximum value of the preset value, defining the maximum value of the currently obtained background value as B2, defining the minimum value of the currently obtained background value as C2, comparing B2 with B1, if B2> B1, performing step A3 (corresponding to step a2) or step A8 (corresponding to step a4), otherwise, performing step S7-2; step S7-2, compare C2 with C1, execute step A3 (corresponding to step a2) or step A8 (corresponding to step a4) if C2< C1, otherwise execute step a 5.
As a further improvement, the maximum value of the preset value of the background value when no card exists in the scanning channel is B1, and the minimum value thereof is S1, and the following steps are adopted when the upper image sensing element and the lower image sensing element of the steps a2 and a4 determine whether the background value in the scanning channel matches the preset value: step S8-1, comparing the minimum value of the currently obtained background value with the minimum value of the preset value, defining the maximum value of the currently obtained background value as B2, defining the minimum value of the currently obtained background value as C2, comparing C2 with C1, if C2< C1, performing step A3 (corresponding to step a2) or step A8 (corresponding to step a4), otherwise, performing step S8-2; step S8-2, compare B2 with B1, if B2> B1, perform step A3 (corresponding to step a2) or step A8 (corresponding to step a4), otherwise perform step a 5.
As a further improvement, wherein the Y distance is 1 MM.
As a further improvement, wherein the preset moving distance is 10 MM.
As described above, the scanning device and the image scanning method thereof of the present invention sense whether the background value in the scanning channel matches the preset value through the lower image sensing element and the upper image sensing element, i.e. sense whether there is a card in the scanning channel, and when there is a card in the scanning channel, send a signal to the motor, and the motor controls the two sets of rollers to rotate to take the card away from the scanning channel, thereby ensuring that the card does not extend into the scanning channel before scanning, the card does not shield the scanning reading line, the scanning is complete, and the scanning quality is good. The scanning device and the image scanning method thereof only need to be provided with one card sensing element, so that compared with the first scanning device of the prior art, the manufacturing cost is reduced, and compared with the second scanning device of the prior art, the scanning quality is better.
Drawings
Fig. 1 is a schematic cross-sectional view of a first conventional art scanning device.
Fig. 2 is a perspective view of the scanning apparatus shown in fig. 1 without an upper cover.
FIG. 3 is a schematic view of the scanning apparatus shown in FIG. 2 before scanning, when a card stays in the second channel.
Fig. 4 is a schematic view of a second prior art scanning device before insertion of a card in preparation for scanning.
FIG. 5 is a cross-sectional view of a scanning device according to an embodiment of the present invention.
Fig. 6 is a perspective view of the scanning device of fig. 5 without the upper cover.
FIG. 7 is a schematic view of the card staying in the second channel before scanning by the scanning device shown in FIG. 6.
Fig. 8 is a schematic view of a second embodiment of a scanning device according to the present invention shown inserted into a card ready for scanning.
FIG. 9 is a schematic view of a scanning process performed by the image scanning method of the scanning device according to the present invention.
Fig. 10 is a schematic view illustrating a scanning process performed by the image scanning method according to the first embodiment of the scanning device of the invention.
Fig. 11 is a schematic view illustrating a scanning process performed by an image scanning method according to a second embodiment of the scanning device of the invention.
Fig. 12 is a flowchart illustrating a first embodiment of determining whether the background value in the scanning channel matches the predetermined value by the upper image sensing device and the lower image sensing device in steps a2 and a4 according to the scanning apparatus and the image scanning method thereof of the present invention.
Fig. 13 is a flowchart illustrating a second embodiment of the scanning device and the image scanning method thereof according to the present invention, in which the upper image sensing device and the lower image sensing device determine whether the background value in the scanning channel matches the predetermined value in steps a2 and a 4.
The reference numerals in the drawings are explained below.
Base 10 of scanner 100
Lower groove 11 and upper cover 20
Upper groove 21 roller 30
First roller 31 and second roller 32
Image sensor 50 on the lower image sensor 40
First channel 71 of card sensor 60
Scanning channel 72 second channel 73
The read line 74 card 200 is scanned.
Detailed Description
In order to explain technical contents, structural features, objects and technical effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in combination with specific embodiments.
Referring to fig. 5 and 6, the scanning device 100 of the present invention includes a base 10, an upper cover 20 covering the base 10, two sets of rollers 30, a lower image sensing element 40, an upper image sensing element 50, a card sensor 60, and a motor (not shown).
Referring to fig. 5 to 7, a lower groove 11 extending in a transverse direction is formed in a middle portion of the upper surface of the base 10, an upper groove 21 extending in a transverse direction is correspondingly formed in a middle portion of the lower surface of the upper cover 20, and the lower image sensing element 40 and the upper image sensing element 50 are respectively and oppositely disposed in the lower groove 11 and the upper groove 21. After the upper cover 20 is covered on the base 10, a first channel 71 is formed between the upper cover 20 and the base 10 in front of the upper image sensing element 50 and the lower image sensing element 40, a scanning channel 72 is formed between the upper image sensing element 50 and the lower image sensing element 40, and a second channel 73 communicated with the outside is formed between the upper cover 20 and the base 10 in back of the upper image sensing element 50 and the lower image sensing element 40. One of the two sets of rollers 30 is mounted on the base and extends into the first channel 71, the other set of rollers is mounted on the base 10 and extends into the second channel 73, and both sets of rollers 30 are connected to a motor and driven by the motor to rotate in the forward and reverse directions. The roller installed on the base 10 and extending into the first channel 71 is defined as a first roller 31, and the roller installed on the base 10 and extending into the second channel 73 is defined as a second roller 32. The first channel 71, the scanning channel 72 and the second channel 73 are communicated with each other, the card sensor 60 is installed in the first channel 71, a scanning reading line 74 is disposed in the scanning channel 72, and the card sensor 60 is used for detecting whether the card 200 to be scanned is in the first channel 71.
Referring to fig. 5 to 7, the scanning device 100 of the present invention includes two embodiments, wherein the card 200 is inserted from the first channel 71, and the first roller 31 and the second roller 32 rotate forward to drive the card 200 to pass through the scanning channel 72 and enter the second channel 73 until the rear end of the card 200 enters the second channel 73. The rear end of the card 200 is spaced from the scan reading line 74, and then the first roller 31 and the second roller 32 rotate reversely to drive the card 200 to scan through the scan channel 73 and feed out from the first channel 71.
Referring to fig. 8, in the scanning device of the second embodiment, the card 200 enters from the first channel 71, and the first roller 31 and the second roller 32 rotate forward to drive the card 200 to pass through the scanning channel 72 to scan the card 200 and feed the card out from the second channel 73.
Please refer to fig. 5, 7 and 9, which illustrate an image scanning method using the scanning apparatus 100 of the present invention, comprising the following steps:
step A1, recording the background value of the scanning channel 72 without the card 200, and using the background value as the reference range of the inspection;
step a2, before scanning the card 200, the upper image sensor 50 and the lower image sensor 40 determine whether the background value in the scanning channel 72 matches the preset value, if so, step a5 is performed, and if the background value in the scanning channel 72 does not match the preset value, step A3 is performed (if matching the preset value indicates that the card 200 does not stay in the scanning channel 72, otherwise, indicates that the card 200 stays in or extends into the scanning channel 72);
step A3, the roller group 30 rotates and drives the card 200 to move a distance Y, and A4 is executed;
step a4, the upper image sensor 50 and the lower image sensor 40 determine whether the background value in the scanning channel 72 matches the predetermined value, if the background value matches the predetermined value, the card 200 is taken away from the scanning channel 72, if the background value matches the predetermined value, step a5 is executed, and if the background value in the scanning channel 72 does not match the predetermined value, step A8 is executed;
step A8, presetting a moving distance, checking whether the accumulated moving distance of the card 200 exceeds the preset moving distance, if not, executing step A3 again, and if so, executing step a 9;
step A9, displaying card 200 stuck;
step A5, stopping detection and performing image calibration, and executing A6;
step A6, starting scanning until the scanning is finished, and executing A7;
step a7, end the scan and exit card 200. The background value recorded in step a1 when there is no card 200 in the scanning channel 72 can be obtained before factory shipment or after the scanning device is powered on. The maximum value of the preset background value for the absence of card 200 in scan channel 72 is defined as B1 and the minimum value is defined as C1.
Referring to fig. 5, fig. 7 and fig. 11, the following steps are further included between steps a1 and a 2:
step S1, the scanning device 100 waits for a scanning command (triggered by the user) after being powered on, and when there is a scanning command, executes step S2, and continues to wait without a scanning command;
step S2, performing card sensing by the card sensing element 60, if the card sensing element 60 does not sense the card 200, then performing step S3, and if the card sensing element 60 senses the card 200, then performing step a 2;
in step S3, no card prompt signal is displayed.
Referring to fig. 5, 7 and 10, in the first embodiment, in the scanning device in which the card 200 enters from the first channel 71 and is fed out from the first channel 71, a step S4 is further included between the steps S3 and a2, when the card sensing element 60 senses that the card 200 is present, the two sets of rollers 30 drive the card 200 to move an X distance toward the second channel 73 so that the rear end of the card 200 moves into the second channel 73, and the step a2 is executed after the step S4 is executed.
Referring to fig. 5 and 12, the first embodiment of the steps a2 and a4, in which the upper image sensor 50 and the lower image sensor 40 determine whether the background value in the scanning channel 72 matches the predetermined value, includes the following steps:
step S7-1, comparing the maximum value of the currently obtained background value with the maximum value of the preset value, defining the maximum value of the currently obtained background value as B2, defining the minimum value of the currently obtained background value as C2, comparing B2 with B1, if B2> B1, performing step A3 or step A8 (corresponding to step a2 and step a4, respectively), otherwise, performing step S7-2;
step S7-2, compare C2 with C1, execute step A3 or step A8 if C2< C1 (corresponding to step a2 and step a4, respectively), otherwise execute step a 5.
Referring to fig. 5 and 13, the second embodiment, in which the upper image sensor 50 and the lower image sensor 40 in the steps a2 and a4 determine whether the background value in the scanning channel 72 matches the predetermined value, includes the following steps:
step S8-1, comparing the minimum value of the currently obtained background value with the minimum value of the preset value, defining the maximum value of the currently obtained background value as B2, defining the minimum value of the currently obtained background value as C2, comparing C2 with C1, if C2< C1, performing step A3 or step A8 (corresponding to step a2 and step a4, respectively), otherwise, performing step S8-2;
step S8-2, compare B2 with B1, if B2> B1 then execute step A3 or step A8 (corresponding to step a2 and step a4, respectively), otherwise execute step a 5.
Referring to fig. 5, 7, 8, 10 and 11, wherein the Y distance is 1MM, and the predetermined moving distance is 10MM, i.e., repeat the step a3 10 times. The difference between the image scanning method of the first embodiment of the scanning device 100 of the present invention and the image scanning method of the second embodiment of the scanning device 100 of the present invention is that the image scanning method of the first embodiment has one more step S4 than the image scanning method of the second embodiment, the first embodiment moves the card 200 to the second channel 73 by X distance before scanning, and the second embodiment does not have this step, and the card 200 stays in the first channel 71 before scanning. In addition, when the Y distance movement is performed, the first embodiment performs the adjustment by the second roller 32 moving toward the front of the card 200, and the second embodiment performs the adjustment by the first roller 31 moving toward the rear of the card 200.
In summary, the scanning device 100 and the image scanning method thereof of the present invention sense whether the background value in the scanning channel 72 matches the preset value through the lower image sensing element 40 and the upper image sensing element 50, i.e. sense whether the card 200 is in the scanning channel 72, and when the card 200 is in the scanning channel 72, send a signal to the motor, and the motor controls the two sets of rollers 30 to rotate to take the card 200 away from the scanning channel 72, thereby ensuring that the card 200 does not extend into the scanning channel 72 before scanning, the card 200 does not shield the scanning reading line 74, the scanning is complete, and the scanning quality is better. The scanning device only needs to be provided with one card sensing element 60, so that the manufacturing cost is reduced compared with the first scanning device of the prior art, and the scanning quality is better compared with the second scanning device of the prior art.

Claims (8)

1. An image scanning method suitable for a scanning device, which can scan a card, is characterized in that:
the scanning device comprises a base, an upper cover, a lower image sensing element, an upper image sensing element, at least one motor, two groups of rollers and a card sensing element;
a lower groove is formed in the middle of the upper surface of the base;
the upper cover is pivoted on the base, and an upper groove is formed in the middle of the lower surface of the upper cover corresponding to the lower groove; the lower image sensing element is arranged in the lower groove;
the upper image sensing element is arranged in the upper groove, the upper cover is pivoted on the base, after the upper cover is arranged on the base, a first channel is formed between the upper cover and the base in front of the upper image sensing element and the lower image sensing element, a scanning channel is formed between the upper image sensing element and the lower image sensing element, a second channel communicated with the outside is formed between the upper cover and the base behind the upper image sensing element and the lower image sensing element, the first channel, the scanning channel and the second channel are communicated with each other, and a scanning reading line is arranged in the scanning channel; the motor is arranged on the base;
one of the two groups of rollers is arranged on the base and extends into the first channel, the other group of rollers is arranged on the base and extends into the second channel, and the two groups of rollers are connected with the motor and can rotate forwards and backwards under the driving of the motor;
the card sensing element is arranged in the first channel; the image scanning method comprises the following steps: step A1, recording the background value when no card exists in the scanning channel, taking the background value as the preset value as the reference range of the inspection, and executing A2;
step a2, before the card scanning, the upper image sensing element and the lower image sensing element determine whether the background value in the scanning channel matches the preset value, if so, step a5 is executed, and if not, step A3 is executed; step A3, the roller group rotates and drives the card to move a distance Y, and A4 is executed;
step A4, the upper image sensing element and the lower image sensing element determine whether the background value in the scanning channel matches the preset value, if the background value matches the preset value, the card is taken away from the scanning channel, if the background value matches the preset value, step A5 is executed, if the background value in the scanning channel does not match the preset value, step A8 is executed;
step A8, presetting a moving distance, checking whether the card moving distance or the accumulated card moving distance exceeds the preset moving distance, if not, executing step A3 again, and if so, executing step a 9;
step A9, displaying card jamming;
step A5, stopping detection and performing image calibration, and executing A6;
step A6, starting scanning until the scanning is finished, and executing A7;
step A7, end the scan and exit the card.
2. The image scanning method of claim 1, wherein: the background value recorded in step a1 when there is no card in the scanning channel can be obtained before factory shipment or after the scanning device is powered on.
3. The image scanning method of claim 1, wherein: the steps A1 and A2 further comprise the following steps: step S1, waiting for the scanning command after the scanning device is started, executing step S2 when the scanning command exists, and continuing waiting when the scanning command does not exist;
step S2, performing card sensing by the card sensing element, if the card sensing element does not sense the card, performing step S3, and if the card sensing element senses the card, performing step a 2;
in step S3, no card prompt signal is displayed.
4. The image scanning method of claim 3, wherein: step S4 is further included between steps S3 and a2, when the card sensing element senses that there is a card, the two sets of rollers drive the card to move a distance X toward the second channel to move the rear end of the card into the second channel, and step a2 is executed after step S4 is executed.
5. The image scanning method of claim 1, wherein: the maximum value of the preset value of the background value when no card exists in the scanning channel is B1, and the minimum value thereof is C1, wherein the upper image sensing element and the lower image sensing element in the steps A2 and A4 adopt the following steps for judging whether the background value in the scanning channel is consistent with the preset value or not: step S7-1, comparing the maximum value of the currently obtained background value with the maximum value of the preset value, defining the maximum value of the currently obtained background value as B2, defining the minimum value of the currently obtained background value as C2, comparing B2 with B1, if B2> B1, performing step A3 or step a8, otherwise, performing step S7-2; step S7-2, compare C2 with C1, execute step A3 or step A8 if C2< C1, otherwise execute step a 5.
6. The image scanning method of claim 1, wherein: the maximum value of the preset value of the background value when no card exists in the scanning channel is B1, the minimum value of the preset value is C1, and the following steps are adopted when the upper image sensing element and the lower image sensing element in the steps A2 and A4 judge whether the background value in the scanning channel is consistent with the preset value or not: step S8-1, comparing the minimum value of the currently obtained background value with the minimum value of the preset value, defining the maximum value of the currently obtained background value as B2, defining the minimum value of the currently obtained background value as C2, comparing C2 with C1, if C2< C1, performing step A3 or step a8, otherwise, performing step S8-2;
step S8-2, compare B2 with B1, execute step A3 or step A8 if B2> B1, otherwise execute step a 5.
7. The image scanning method of claim 1, wherein: wherein the Y distance is 1 MM.
8. The image scanning method of claim 1, wherein: wherein the preset moving distance is 10 MM.
CN201710212806.0A 2017-04-01 2017-04-01 Scanning device and image scanning method thereof Active CN108664825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710212806.0A CN108664825B (en) 2017-04-01 2017-04-01 Scanning device and image scanning method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710212806.0A CN108664825B (en) 2017-04-01 2017-04-01 Scanning device and image scanning method thereof

Publications (2)

Publication Number Publication Date
CN108664825A CN108664825A (en) 2018-10-16
CN108664825B true CN108664825B (en) 2022-01-04

Family

ID=63783800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710212806.0A Active CN108664825B (en) 2017-04-01 2017-04-01 Scanning device and image scanning method thereof

Country Status (1)

Country Link
CN (1) CN108664825B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065198A (en) * 2010-06-24 2011-05-18 苏州佳世达电通有限公司 Scanning device
US8036465B2 (en) * 2003-09-26 2011-10-11 Khomo Malome T Method of text interaction using chirographic techniques
TWI416939B (en) * 2005-11-02 2013-11-21 Visioneer Inc Combination document and card reader scanner
TWM503038U (en) * 2014-11-17 2015-06-11 Lite On Technology Corp Sheet-fed scanning device with calibration function
TWM524597U (en) * 2015-12-21 2016-06-21 崴強科技股份有限公司 Adjustable contact image sensor scanner

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036465B2 (en) * 2003-09-26 2011-10-11 Khomo Malome T Method of text interaction using chirographic techniques
TWI416939B (en) * 2005-11-02 2013-11-21 Visioneer Inc Combination document and card reader scanner
CN102065198A (en) * 2010-06-24 2011-05-18 苏州佳世达电通有限公司 Scanning device
TWM503038U (en) * 2014-11-17 2015-06-11 Lite On Technology Corp Sheet-fed scanning device with calibration function
TWM524597U (en) * 2015-12-21 2016-06-21 崴強科技股份有限公司 Adjustable contact image sensor scanner

Also Published As

Publication number Publication date
CN108664825A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
US6466340B1 (en) Image reading apparatus
US8446645B2 (en) Image reading apparatus
JP5376907B2 (en) Image reading apparatus and image processing method
CN111510573A (en) Tilt detection device, reading device, image processing device, and tilt detection method
US20180309895A1 (en) Image reading apparatus and original size detection method
US8837018B2 (en) Image scanning apparatus scanning document image and image forming apparatus including image scanning apparatus
US11546482B2 (en) Document reading apparatus, control method thereof, and storage medium
US10447876B2 (en) Image reading apparatus
JPWO2017149732A1 (en) Image reading apparatus, control method, and control program
CN109873914A (en) Image read-out and image reading method
US20150281490A1 (en) Image reading apparatus, image reading method, and computer program
CN108664825B (en) Scanning device and image scanning method thereof
US20210188581A1 (en) Medium conveying apparatus for controlling feeding based on a movement amount of an arm and a size of a medium
US20180295256A1 (en) Original reading apparatus
US20220380167A1 (en) Medium transport device, control method, and control program
US9747022B2 (en) Electronic device
US10313548B2 (en) Image scanning method
US11956393B2 (en) Reading device, reading method, and computer-readable recording medium
US20130286449A1 (en) Image reading device capable of performing rotation process on read image appropriately
US7327501B2 (en) Method for acquiring document images with a paper feed scanner
US10414609B2 (en) Automatic document feeder
EP2688277B1 (en) Image forming apparatus and method of controlling the same
JP4963441B2 (en) Image reading apparatus and image forming apparatus
JP2021038090A (en) Image reader
JP2018182486A (en) Scan device and image scanning method of the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant