TWI612002B - A method for scanning - Google Patents

A method for scanning Download PDF

Info

Publication number
TWI612002B
TWI612002B TW105132701A TW105132701A TWI612002B TW I612002 B TWI612002 B TW I612002B TW 105132701 A TW105132701 A TW 105132701A TW 105132701 A TW105132701 A TW 105132701A TW I612002 B TWI612002 B TW I612002B
Authority
TW
Taiwan
Prior art keywords
paper
detected
image
slope
preset
Prior art date
Application number
TW105132701A
Other languages
Chinese (zh)
Other versions
TW201813906A (en
Inventor
王炫煇
陳麒文
林鼎傑
陳建仁
宋彰憲
Original Assignee
崴強科技股份有限公司
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 崴強科技股份有限公司 filed Critical 崴強科技股份有限公司
Priority to TW105132701A priority Critical patent/TWI612002B/en
Application granted granted Critical
Publication of TWI612002B publication Critical patent/TWI612002B/en
Publication of TW201813906A publication Critical patent/TW201813906A/en

Links

Abstract

本發明公開一種影像掃描方法,該影像掃描方法包括如下步驟:步驟1,偵測盛紙盤內是否有紙,盛紙盤內有紙則執行步驟2,盛紙盤內沒有紙則結束進程並提示錯誤;步驟2,分紙並且進紙;步驟3,偵測是否有紙觸碰進紙感測器,有則執行步驟4,否則結束進程並提示錯誤;步驟4,掃描並偵測影像中的所述進紙邊緣是否有異常,沒有異常則執行步驟5,否則結束進程並提示錯誤;步驟5,繼續完整掃描所述進紙,並重複步驟1至步驟4,直至偵測到盛紙盤內沒有紙則結束進程並提示完成。 The invention discloses an image scanning method. The image scanning method comprises the following steps: Step 1: detecting whether there is paper in the paper tray, performing step 2 in the paper tray, and ending the process without paper in the paper tray Prompt error; Step 2, separate paper and feed paper; Step 3, detect if paper has touched the paper feed sensor, if yes, go to step 4. Otherwise, end the process and prompt an error; Step 4, scan and detect the image If there is any abnormality in the paper feeding edge, step 5 is performed if there is no abnormality, otherwise the process ends and an error is indicated; in step 5, the paper is continuously scanned completely, and steps 1 to 4 are repeated until the paper tray is detected. If there is no paper inside, the process ends and the prompt is completed.

Description

一種影像掃描方法 Image scanning method

本發明涉及一種影像掃描方法,尤其涉及一種當待掃描的紙張有異常時,能防止待掃描紙張破損的影像掃描方法。 The present invention relates to an image scanning method, and more particularly to an image scanning method capable of preventing damage of a paper to be scanned when the paper to be scanned is abnormal.

按,習知的一種掃描裝置包括一分紙機構、一進紙感測元件、一進紙機構、一感光元件和一控制器。在紙張掃描過程中,紙張的行進會先通過分紙機構將紙張分離開來,然後,進紙機構帶動紙張向前饋入,與此同時,控制器控制感光元件進行影像掃描,掃描完成後,繼續進行下一張紙的掃描。 According to a conventional scanning device, a paper separating mechanism, a paper feeding sensing member, a paper feeding mechanism, a photosensitive member, and a controller are included. During the paper scanning process, the paper advances first by separating the paper by the separating mechanism. Then, the paper feeding mechanism drives the paper forward to feed, and at the same time, the controller controls the photosensitive element to perform image scanning. After the scanning is completed, Continue scanning the next piece of paper.

惟,由於某些掃描文件上會釘有釘書釘或是放入的紙張有折疊,而使用者在放入文件時沒有察覺。掃描該兩類紙張在進入分紙機構時,會讓折疊或釘上釘書針的紙張的前端錯開,如果進紙機構帶動紙張繼續向前饋入,會造成紙張的破損。 However, because some scanned documents are stapled or the paper placed is folded, the user does not notice when placing the document. Scanning the two types of paper will cause the front end of the paper folded or stapled to be staggered when entering the separation mechanism. If the paper feeding mechanism drives the paper to continue feeding forward, the paper may be damaged.

因此,有必要提供一種當待掃描的紙張有異常時,能防止待掃描紙張破損的影像掃描方法。 Therefore, it is necessary to provide an image scanning method capable of preventing the paper to be scanned from being damaged when the paper to be scanned is abnormal.

本發明之目的係針對上述習知不足而提供一種當待掃描的紙張有異常時,能防止待掃描紙張破損的影像掃描方法。 SUMMARY OF THE INVENTION The object of the present invention is to provide an image scanning method capable of preventing breakage of a sheet to be scanned when the paper to be scanned is abnormal, in view of the above-described conventional deficiencies.

為了實現上述目的,本發明提供一種影像掃描的方法,應用於一掃描裝置,該掃描裝置包括有盛紙盤和進紙感測器,包括如下步驟:步驟1,偵測盛紙盤內是否有紙,盛紙盤內有紙則執行步驟2,盛紙盤內沒有紙則結束進程並提示錯誤;步驟2,分紙並且進紙;步驟3,偵測是否有紙觸碰進紙感測器,有則執行步驟4,否則結束進程並提示錯誤;步驟4,掃描並偵測影像中的所述進紙邊緣是否有異常,沒有異常則執行步驟5,否則結束進程並提示錯誤;步驟5,繼續完整掃描所述進紙,並重複步驟1至步驟4,直至偵測到盛紙盤內沒有紙則結束進程並提示完成。 In order to achieve the above object, the present invention provides a method for image scanning, which is applied to a scanning device including a paper tray and a paper feed sensor, comprising the following steps: Step 1, detecting whether there is a paper tray Paper, if there is paper in the paper tray, go to step 2. If there is no paper in the paper tray, the process will end and the error will be indicated; in step 2, the paper will be fed and paper will be fed; in step 3, it will be detected if there is paper touch the paper sensor. If yes, go to step 4. Otherwise, end the process and prompt an error; in step 4, scan and detect whether the paper feed edge in the image is abnormal. If there is no abnormality, go to step 5. Otherwise, end the process and prompt an error; step 5 Continue to scan the paper in full and repeat steps 1 through 4 until the paper is detected that there is no paper in the paper tray to end the process and prompt completion.

為了實現上述目的,本發明供一種適用於如上所述之影像掃描方法的掃描裝置,用以對紙張進行掃描,包括一盛紙盤、一控制器、一存儲器、一驅動裝置、一第一感測器、一分紙機構、一進紙機構、一進紙感測器及一圖像傳感器。盛紙盤用於盛放待掃描的紙張;存儲器與控制器連接;驅動裝置由控制器控制;第一感測器由控制器控制,用以感測盛紙盤是否有紙張;分紙機構由驅動裝置驅動從而將複數待進行掃描的紙張分離開來;進紙機構由驅動裝置驅動將分紙機構分離過來的紙張向前饋入;進紙感測器由控制器控制,用以感測由進紙機構饋入進來的紙張並將訊號傳輸至控制器;圖像傳感器由控制器控制,用以掃描紙張並偵測已掃描的部分影像中的進紙邊緣是否有異常及完整掃描沒有異常的紙張。 In order to achieve the above object, the present invention provides a scanning apparatus suitable for the image scanning method as described above for scanning a sheet of paper, including a paper tray, a controller, a memory, a driving device, and a first sense. a measuring device, a paper separating mechanism, a paper feeding mechanism, a paper feeding sensor and an image sensor. The paper tray is for holding the paper to be scanned; the memory is connected with the controller; the driving device is controlled by the controller; the first sensor is controlled by the controller to sense whether the paper tray has paper; the paper separating mechanism is The driving device is driven to separate the plurality of sheets to be scanned; the paper feeding mechanism is driven by the driving device to feed the paper separated by the separating mechanism forward; the paper feeding sensor is controlled by the controller for sensing The paper feeding mechanism feeds in the incoming paper and transmits the signal to the controller; the image sensor is controlled by the controller to scan the paper and detect whether the paper feeding edge in the scanned partial image is abnormal and the complete scanning is abnormal. Paper.

綜上所述,本發明影像掃描方法藉由圖像傳感器掃描並偵測影像的進紙邊緣是否有異常,沒有異常就繼續執行掃描進程,否則結束進程並提示錯誤,從而避免待掃描的紙張有異常時繼續向前饋入造成紙張破損。 In summary, the image scanning method of the present invention scans and detects whether there is an abnormality in the feeding edge of the image by the image sensor, and continues the scanning process without abnormality, otherwise the process ends and an error is indicated, thereby avoiding the paper to be scanned. If the abnormality continues to feed forward, the paper is damaged.

100‧‧‧掃描裝置 100‧‧‧ scanning device

10‧‧‧控制器 10‧‧‧ Controller

20‧‧‧盛紙盤 20‧‧ ‧ paper tray

30‧‧‧第一感測器 30‧‧‧First sensor

40‧‧‧存儲器 40‧‧‧ memory

50‧‧‧驅動裝置 50‧‧‧ drive

60‧‧‧分紙機構 60‧‧‧Separator

70‧‧‧進紙機構 70‧‧‧Feeding mechanism

80‧‧‧進紙感測器 80‧‧‧Feed sensor

90‧‧‧圖像傳感器 90‧‧‧Image sensor

91‧‧‧第一紙張 91‧‧‧First paper

92‧‧‧第一釘書釘 92‧‧‧First Staples

93‧‧‧第二紙張 93‧‧‧Second paper

94‧‧‧第二釘書釘 94‧‧‧second staple

95‧‧‧第三紙張 95‧‧‧ Third paper

96‧‧‧第四紙張 96‧‧‧fourth paper

第一圖係本發明影像掃描方法所採用的掃描裝置之構造示意圖。 The first figure is a schematic structural view of a scanning device used in the image scanning method of the present invention.

第二圖係本發明影像掃描方法之流程示意圖。 The second figure is a schematic flow chart of the image scanning method of the present invention.

第三圖係本發明影像掃描方法所進行掃描的複數紙張的左上角釘有一第一釘書釘的示意圖。 The third figure is a schematic diagram of a first staple in the upper left corner of a plurality of sheets scanned by the image scanning method of the present invention.

第四圖係本發明影像掃描方法所進行掃描的複數紙張的右上角釘有一第二釘書釘的示意圖。 The fourth figure is a schematic diagram of a second staple in the upper right corner of the plurality of sheets scanned by the image scanning method of the present invention.

第五圖係本發明影像掃描方法所進行掃描的紙張為一折疊的紙張的示意圖。 The fifth drawing is a schematic view of the paper scanned by the image scanning method of the present invention as a folded paper.

第六圖係本發明影像掃描方法所進行掃描的複數紙張為正常進紙的示意圖。 The sixth drawing is a schematic diagram of a plurality of sheets scanned by the image scanning method of the present invention as a normal paper feed.

為詳細說明本發明之技術內容、構造特徵、所達成目的及功效,以下茲舉例並配合圖式詳予說明。 In order to explain the technical content, structural features, objectives and effects of the present invention in detail, the following detailed description is given by way of example.

請參閱第一圖,本發明掃描裝置100包括一控制器10、一盛紙盤20、一第一感測器30、一存儲器40、一驅動裝置50、一分紙機構60、一進紙機構70、一進紙感測器80及一圖像傳感器90。其中,所述盛紙盤10用以盛放待掃描的紙張,所述第一感測器30用以感測盛紙盤20內是否有紙,所述存儲器40與控制器10連接,驅動裝置50由控制器10控制,所述分紙機構60由驅動裝置50驅動從而將盛紙盤20內複數待進行掃描的紙張分離開來,所述進紙機構70由驅動裝置50驅動將分紙機構60分離過來的紙張向前饋入,所述進紙感測器80用以感測由進紙機構70饋入 進來的紙張並將訊號傳輸至控制器10,所述圖像傳感器90由控制器10控制,用以掃描紙張並偵測已掃描的部分影像中的進紙邊緣是否有異常及完整掃描沒有異常的紙張。 Referring to the first figure, the scanning device 100 of the present invention comprises a controller 10, a paper tray 20, a first sensor 30, a memory 40, a driving device 50, a paper separating mechanism 60, and a paper feeding mechanism. 70. A paper feed sensor 80 and an image sensor 90. The paper tray 10 is configured to hold paper to be scanned, and the first sensor 30 is configured to sense whether there is paper in the paper tray 20, and the memory 40 is connected to the controller 10, and the driving device is 50 is controlled by the controller 10, and the paper separating mechanism 60 is driven by the driving device 50 to separate the plurality of sheets to be scanned in the paper tray 20, and the paper feeding mechanism 70 is driven by the driving device 50 to separate the paper separating mechanism 60 separated paper is fed forward, and the paper feeding sensor 80 is used to sense feeding by the paper feeding mechanism 70 The incoming paper and the signal are transmitted to the controller 10, and the image sensor 90 is controlled by the controller 10 to scan the paper and detect whether the paper feed edge in the scanned partial image is abnormal and the complete scan is abnormal. Paper.

請參閱第一圖和第二圖,本發明影像掃描方法,包括如下步驟:步驟1,掃描裝置100開啟後,控制器10控制第一感測器30偵測盛紙盤10是否有紙,盛紙盤10內有紙則執行步驟2,盛紙盤10沒有紙則結束進程並提示錯誤;步驟2,分紙並且進紙,具體地,控制器10控制驅動裝置50,由驅動裝置50驅動分紙機構60將盛紙盤20內複數待進行掃描的紙張分離開來,控制驅動裝置50驅動進紙機構70將分紙機構60分離過來的紙張向前饋入;步驟3,定義一預設時間,預設時間後,偵測是否有進紙機構70饋入的紙張觸碰進紙感測器80,有則執行步驟4,否則結束進程並提示錯誤;步驟4,圖像傳感器90掃描並偵測影像中的所述進紙邊緣是否有異常,沒有異常則執行步驟5,否則結束進程並提示錯誤;步驟5,繼續完整掃描所述進紙,並重複步驟1至步驟4,直至偵測到盛紙盤10內沒有紙則結束進程並提示完成。 Referring to the first and second figures, the image scanning method of the present invention comprises the following steps: Step 1. After the scanning device 100 is turned on, the controller 10 controls the first sensor 30 to detect whether the paper tray 10 has paper. If there is paper in the paper tray 10, step 2 is performed. If the paper tray 10 has no paper, the process ends and an error is indicated. In step 2, the paper is fed and fed. Specifically, the controller 10 controls the driving device 50, and the driving device 50 drives the driving device 50. The paper mechanism 60 separates the plurality of sheets to be scanned in the paper tray 20, and the control driving device 50 drives the paper feeding mechanism 70 to feed the paper separated by the paper separating mechanism 60 forward; step 3, defines a preset time After the preset time, it is detected whether the paper fed by the paper feeding mechanism 70 touches the paper feeding sensor 80, and if yes, step 4 is performed; otherwise, the process ends and an error is indicated; in step 4, the image sensor 90 scans and detects If there is any abnormality in the paper feeding edge in the image, step 5 is performed if there is no abnormality, otherwise the process ends and an error is indicated; in step 5, the paper is continuously scanned completely, and steps 1 to 4 are repeated until the detection is detected. There is no paper in the tray 10 Beams and prompts to complete the process.

請參閱第二圖,本實施例中採用的掃描裝置100的分辨率為300DPI(Dot Per Inch),其中所述步驟4中掃描並偵測影像中所述進紙邊緣是否有異常進一步採用如下步驟:一、先掃描一預設距離,在本實施例中該預設距離為半英寸即12.7毫米,對該預設距離上的掃描影像於進紙的縱軸方向上偵測若干行,優選地,在本實施例中為於進紙的縱軸方 向上等間距的偵測150行,在進紙的橫軸方向上偵測若干列,優選地,在本實施例中為在進紙的橫軸方向偵測9列數據,所偵測的9列數據間隔的距離相同;二、找出非背景點即所述進紙邊緣的坐標、三、定義一斜率預設對比值,計算掃描影像中進紙邊緣的斜率是否在斜率預設對比值範圍內,在斜率預設對比值範圍內則繼續進行掃描,不在斜率預設對比值範圍內則結束掃描進程並提示錯誤,優選地,其檢查掃描後的影像之進紙邊緣的斜率預設對比值為0.1051,進紙邊緣的斜率小於或等於0.1051度則繼續進行掃描,進紙邊緣的斜率大於0.1051則結束掃描進程並提示錯誤。 Referring to the second figure, the resolution of the scanning device 100 used in this embodiment is 300 DPI (Dot Per Inch), wherein the step 4 scans and detects whether the paper feeding edge in the image is abnormal. First, a predetermined distance is scanned first. In the embodiment, the preset distance is half an inch, that is, 12.7 mm, and the scanned image on the preset distance is detected in the vertical axis direction of the paper feeding. Preferably, in the present embodiment, the vertical axis of the paper feed 150 rows are detected at an equal interval, and a plurality of columns are detected in the horizontal direction of the paper feed. Preferably, in the embodiment, 9 columns of data are detected in the horizontal direction of the paper feed, and 9 columns are detected. The distance between the data intervals is the same; second, find the non-background point, that is, the coordinates of the paper feed edge, and third, define a slope preset contrast value, and calculate whether the slope of the paper feed edge in the scanned image is within the range of the slope preset contrast value. , the scanning is continued within the range of the slope preset contrast value, and the scanning process is ended and the error is not indicated within the range of the slope preset contrast value. Preferably, it checks the slope of the paper feeding edge of the scanned image to preset the contrast value. 0.1051, the slope of the paper edge is less than or equal to 0.1051 degrees, and the scanning continues. The slope of the paper edge is greater than 0.1051, the scanning process ends and an error is indicated.

本實施例中,找出非背景點即所述進紙邊緣的坐標採用如下方法:首先、確定背景顏色的色值,在本實施例中,我們假設背景顏色的色值為(Rb,Gb,Bb);然後、定義三個色差預設對比值,背景顏色的色值(Rb,Gb,Bb)分別減去偵測到的點的色值,在本實施例中,我們假設所偵測到的點的色值分別(Ra,Ga,Ba),如果Rb-Ra、Gb-Ga和Bb-Ba的絕對值皆分別小於或等於一與其相對應的色差預設對比值,則所偵測到的點為背景點,如果Rb-Ra、Gb-Ga和Bb-Ba的絕對值中至少一個絕對值大於與其相對應的色差預設對比值,則表示偵測到了非背景點即找到紙張,優選地,Rb-Ra、Gb-Ga和Bb-Ba的絕對值分別所對應的色差預設對比值皆為20。 In this embodiment, finding the non-background point, that is, the coordinates of the paper feed edge, adopts the following method: First, determining the color value of the background color. In this embodiment, we assume that the color value of the background color is (Rb, Gb, Bb); Then, define three color difference preset contrast values, and the background color color values (Rb, Gb, Bb) are respectively subtracted from the detected color values of the points. In this embodiment, we assume that the detected values are detected. The color values of the points (Ra, Ga, Ba) are respectively detected if the absolute values of Rb-Ra, Gb-Ga, and Bb-Ba are respectively less than or equal to a corresponding color difference preset value. The point is the background point. If at least one of the absolute values of Rb-Ra, Gb-Ga, and Bb-Ba is greater than the corresponding preset value of the color difference, it means that the non-background point is detected, that is, the paper is found, preferably Ground, the absolute values of the absolute values of Rb-Ra, Gb-Ga, and Bb-Ba are respectively 20 for the color difference.

請參閱第一圖和第三圖,其為本實施例中複數待掃描的紙張的左上角釘有一第一釘書釘92,當分紙機構60將最上面的紙張即第一紙張91分開並由進紙機構70帶動向前饋入,圖像傳感器90於進紙的縱軸方向掃描半英寸並對該掃描影像偵測150行,在進紙的橫軸方向偵測9列數據,當偵 測到非背景的點時記錄下來,圖中所示P1至P9為圖像傳感器90在掃描圖像的橫軸上偵測的9列數據,它們的橫坐標分別是(280,530,780,1030,1280,1530,1780,2030,2280),橫坐標上9列數據的單位皆為像素,P1在縱坐標的數值為150表示為圖像傳感器在橫坐標為280像素的縱軸方向上偵測150行皆沒有找到非背景的點即沒找到紙張,同理,P2表示縱坐標的數值為150表示為圖像傳感器在橫坐標為530像素的縱軸方向上偵測150行皆沒有找到非背景的點即沒找到紙張,P3在縱坐標的數值為140表示為圖像傳感器90在橫坐標為780像素的縱軸方向偵測到140行時找到非背景的點即找到紙張,當找到紙張後便不再往下找,所以數值鎖定在140,依此類推,P4至P9的坐標數值分別由此得來。本實施例中,要得出第一紙張91之進紙邊緣的傾斜角度,採用在縱軸方向上偵測到第一紙張91的第一個點即點P7(1780,21)和在縱軸方向上偵測到第一紙張91的第二個點P6(1530,52)計算得來,本實施例中,第一紙張91之進紙邊緣的斜率為0.124{31/250或12.7mm×(31/150)/〔(250×25.4)mm/300〕},其大於0.1051,所以本實施例掃描完預設的150行,進紙機構70便會停止,避免紙張繼續向前饋入造成紙張破損。 Referring to the first figure and the third figure, in the embodiment, a plurality of first staples 92 are nailed to the upper left corner of the paper to be scanned, and the paper separating mechanism 60 separates the uppermost paper, that is, the first paper 91. The paper feed mechanism 70 drives forward feed, and the image sensor 90 scans a half inch in the longitudinal direction of the paper feed and detects 150 lines of the scanned image, and detects 9 columns of data in the horizontal direction of the paper feed. When the non-background points are detected, P1 to P9 are the nine columns of data detected by the image sensor 90 on the horizontal axis of the scanned image, and their abscissas are (280, 530, 780, respectively). 1030, 1280, 1530, 1780, 2030, 2280), the units of 9 columns of data on the abscissa are all pixels, and the value of P1 on the ordinate is 150. The image sensor is detected on the vertical axis of the 280-pixel abscissa. In the 150 lines, no non-background points were found, that is, no paper was found. Similarly, P2 indicates that the value of the ordinate is 150, indicating that the image sensor has detected no more than 150 lines on the vertical axis of the 530-pixel abscissa. The point of the background is that no paper is found. The value of P3 on the ordinate is 140. When the image sensor 90 detects 140 lines in the direction of the vertical axis of 780 pixels on the abscissa, it finds the non-background point and finds the paper. When the paper is found. After that, it is no longer looking down, so the value is locked at 140, and so on, and the coordinate values of P4 to P9 are derived accordingly. In this embodiment, to obtain the inclination angle of the paper feed edge of the first paper 91, the first point of the first paper 91, that is, the point P7 (1780, 21) and the vertical axis are detected in the longitudinal direction. The second point P6 (1530, 52) of the first paper 91 is detected in the direction. In this embodiment, the slope of the paper feed edge of the first paper 91 is 0.124 {31/250 or 12. 7mm × (31 / 150) / [(250 × 25.4) mm / 300]}, which is greater than 0.1051, so this embodiment scans the preset 150 lines, the paper feeding mechanism 70 will stop, avoid paper Continue feeding forward to cause paper breakage.

請參閱第一圖和第四圖,其為本實施例中複數待掃描的紙張的右上角釘有一第二釘書釘94,當分紙機構60將最上面的紙張即第二紙張92分開並由進紙機構70帶動向前饋入後,圖像傳感器90於進紙的縱軸方向掃描半英寸並對該掃描影像偵測150行,在進紙的橫軸方向偵測9列數據,其圖像傳感器90偵測到P1至P9的各坐標數據為(280,150)、(5 30,30),(780,62),(1030,98),(1280,131),(1530,150),(1780,150),(2030,150),(2280,150),該實施例中,要得出第二紙張93之進紙邊緣的傾斜角度,亦採用在縱軸方向上偵測到第二紙張93的第一個點即點P2(530,30)和在縱軸方向上偵測到第二紙張93的第二個點P3(780,62)計算得來,該實施例中,第二紙張93之進紙邊緣的斜率為0.128(32/250),其大於0.1051,所以在本實施中,掃描完預設的150行,進紙機構70便會停止,避免紙張繼續向前饋入造成第二紙張93破損。 Referring to the first figure and the fourth figure, in the embodiment, a plurality of second staples 94 are nailed to the upper right corner of the paper to be scanned, and the paper separating mechanism 60 separates the uppermost paper, that is, the second paper 92. After being fed forward by the paper feeding mechanism 70, the image sensor 90 scans a half inch in the longitudinal direction of the paper feeding and detects 150 lines of the scanned image, and detects 9 columns of data in the horizontal axis direction of the paper feeding. The image sensor 90 detects that each coordinate data of P1 to P9 is (280, 150), (5) 30, 30), (780, 62), (1030, 98), (1280, 131), (1530, 150), (1780, 150), (2030, 150), (2280, 150), this embodiment In order to obtain the inclination angle of the paper feed edge of the second paper 93, the first point of the second paper 93, that is, the point P2 (530, 30) and the vertical axis direction are detected in the longitudinal direction. The second point P3 (780, 62) of the second paper 93 is detected. In this embodiment, the slope of the paper feed edge of the second paper 93 is 0.128 (32/250), which is greater than 0. .1051, so in this embodiment, after the preset 150 lines are scanned, the paper feeding mechanism 70 is stopped to prevent the paper from continuing to feed forward and the second paper 93 is broken.

請參閱第一圖和第五圖,其為本實施例中所待掃描的紙張為一張折疊了的紙張,該實施例中,當分紙機構60將第三紙張95的鄰近分紙機構60的半頁分紙並由進紙機構70帶動向前饋入,圖像傳感器90偵測於進紙的縱軸方向上掃描半英寸並對該掃描影像偵測150行,在進紙的橫軸方向偵測9列數據,其圖像傳感器90偵測到P1至P9的各坐標數據為(280,150)、(530,150),(780,150),(1030,150),(1280,128),(1530,92),(1780,59),(2030,25),(2280,150),該實施例中,要得出第三紙張95之進紙邊緣的傾斜角度,採用在縱軸方向上偵測到第三紙張95的第一個點即點P8(2030,25)和在縱軸方向上偵測到第三紙張95的第二個點P7(1780,59)計算得來,該實施例中,第三紙張95之進紙邊緣的斜率為0.136(42/250),其大於0.1051,所以在本實施中,掃描完預設的150行,進紙機構70便會停止,從而停止進行,避免第三紙張95繼續向前饋入造成第三紙張95破損。 Referring to the first figure and the fifth figure, the paper to be scanned in this embodiment is a folded paper. In this embodiment, when the paper separating mechanism 60 is adjacent to the paper separation mechanism 60 of the third paper 95. The half-page paper is fed forward by the paper feeding mechanism 70, and the image sensor 90 detects that the vertical axis of the paper is scanned by half an inch and detects 150 lines of the scanned image, on the horizontal axis of the paper feeding. The direction detection 9 columns of data, the image sensor 90 detects the coordinate data of P1 to P9 as (280, 150), (530, 150), (780, 150), (1030, 150), (1280, 128), (1530, 92), (1780, 59), (2030, 25), (2280, 150). In this embodiment, the inclination angle of the paper feed edge of the third paper 95 is to be obtained. The first point P8 (2030, 25) in which the third sheet 95 is detected in the axial direction and the second point P7 (1780, 59) in which the third sheet 95 is detected in the longitudinal direction are calculated. In this embodiment, the slope of the paper feed edge of the third paper 95 is 0.136 (42/250), which is greater than 0.1051, so in the present embodiment, the preset 150 lines are scanned, and the paper feeding mechanism 70 Will stop and stop In the line, the third paper 95 is prevented from continuing to feed forward, causing the third paper 95 to be broken.

請參閱第一圖和第六圖,其為本實施例中待掃描的紙張為正常進紙的紙張,該實施例中,當分紙機構60將第四紙張96從盛紙盤20中分出並由進紙機構70帶動向前饋入,圖像傳感器90於進紙的縱軸方向上掃描半英寸並對該掃描影像偵測150行,在進紙的橫軸方向偵測9列數據,其圖像傳感器90偵測到P1至P9的各坐標數據為(280,71)、(530,61),(780,53),(1030,48),(1280,39),(1530,21),(1780,12),(2030,150),(2280,150),該實施例中,要得出第四紙張96之進紙邊緣的傾斜角度,採用在縱軸方向上偵測到第四紙張96的第一個點即點P7(1780,12)和在縱軸方向上偵測到第四紙張96的第二個點P6(1530,21)計算得來,該實施例第四紙張96之進紙邊緣的斜率為0.036(9/250),其小於0.1051,所以本實施掃描完預設的150行,進紙機構70不會停止,紙張會繼續向前饋進進行掃描。 Referring to the first and sixth figures, in the embodiment, the paper to be scanned is a paper that is normally fed. In this embodiment, when the paper separating mechanism 60 separates the fourth paper 96 from the paper tray 20. The paper feed mechanism 70 drives forward feed, and the image sensor 90 scans a half inch in the longitudinal direction of the paper feed and detects 150 lines of the scanned image, and detects 9 columns of data in the horizontal direction of the paper feed. The image sensor 90 detects that the coordinate data of P1 to P9 are (280, 71), (530, 61), (780, 53), (1030, 48), (1280, 39), (1530, 21). ), (1780, 12), (2030, 150), (2280, 150). In this embodiment, the inclination angle of the paper feed edge of the fourth paper 96 is obtained, and the first direction is detected in the vertical axis direction. The first point of the four sheets 96, point P7 (1780, 12), and the second point P6 (1530, 21) of the fourth sheet 96 detected in the direction of the longitudinal axis are calculated, the fourth sheet of this embodiment The slope of the paper edge of 96 is 0.036 (9/250), which is less than 0.1051. Therefore, after the preset 150 lines are scanned in this embodiment, the paper feeding mechanism 70 will not stop, and the paper will continue to feed forward. scanning.

綜上所述,本發明影像掃描方法藉由圖像傳感器90掃描並偵測影像的進紙邊緣是否有異常,沒有異常就繼續執行掃描進程,否則結束進程並提示錯誤,從而避免待掃描的紙張有異常時繼續向前饋入造成紙張破損。 In summary, the image scanning method of the present invention scans and detects whether there is an abnormality in the paper feeding edge of the image by the image sensor 90, and continues the scanning process without abnormality, otherwise the process ends and an error is indicated, thereby avoiding the paper to be scanned. If there is an abnormality, continue feeding forward to cause damage to the paper.

100‧‧‧掃描裝置 100‧‧‧ scanning device

10‧‧‧控制器 10‧‧‧ Controller

20‧‧‧盛紙盤 20‧‧ ‧ paper tray

30‧‧‧第一感測器 30‧‧‧First sensor

40‧‧‧存儲器 40‧‧‧ memory

50‧‧‧驅動裝置 50‧‧‧ drive

60‧‧‧分紙機構 60‧‧‧Separator

70‧‧‧進紙機構 70‧‧‧Feeding mechanism

80‧‧‧進紙感測器 80‧‧‧Feed sensor

90‧‧‧圖像傳感器 90‧‧‧Image sensor

Claims (7)

一種影像掃描方法,應用於一掃描裝置,該掃描裝置包括有盛紙盤和進紙感測器,包括如下步驟:步驟1,偵測盛紙盤內是否有紙,盛紙盤內有紙則執行步驟2,盛紙盤內沒有紙則結束進程並提示錯誤;步驟2,分紙並且進紙;步驟3,偵測是否有紙觸碰進紙感測器,有則執行步驟4,否則結束進程並提示錯誤;步驟4,掃描並偵測影像中的所述進紙邊緣是否有異常,沒有異常則執行步驟5,否則結束進程並提示錯誤;上述掃描並偵測影像中所述進紙邊緣是否有異常採用如下步驟:一,先掃描一預設距離,對該預設距離上的掃描影像於進紙的縱軸方向上偵測若干行,在進紙的橫軸方向上偵測若干列;二,找出非背景點即所述進紙邊緣的坐標;三,定義一斜率預設對比值,計算掃描影像中進紙邊緣的斜率是否在斜率預設對比值範圍內,在斜率預設對比值範圍內則繼續進行掃描,不在斜率預設對比值範圍內則結束掃描進程並提示錯誤;步驟5,繼續完整掃描所述進紙,並重複步驟1至步驟4,直至偵測到盛紙盤內沒有紙則結束進程並提示完成。 An image scanning method is applied to a scanning device, which comprises a paper tray and a paper feeding sensor, comprising the following steps: Step 1, detecting whether there is paper in the paper tray, and paper in the paper tray Perform step 2, if there is no paper in the paper tray, the process ends and an error is indicated; in step 2, the paper is separated and the paper is fed; in step 3, it is detected whether there is paper touching the paper feed sensor, and if yes, step 4 is performed, otherwise the process ends. The process prompts an error; in step 4, scans and detects whether the paper feed edge in the image is abnormal. If there is no abnormality, step 5 is performed; otherwise, the process ends and an error is indicated; the scan detects the paper feed edge in the image. Whether there is an abnormality, the following steps are taken as follows: First, a predetermined distance is scanned first, and a plurality of rows are detected in the longitudinal direction of the paper feeding direction, and a plurality of columns are detected in the horizontal axis direction of the paper feeding. Second, find the non-background point, that is, the coordinates of the paper feed edge; third, define a slope preset contrast value, calculate whether the slope of the paper feed edge in the scanned image is within the slope preset contrast value, and the slope preset Within the range of contrast values Then continue scanning, not ending the scanning process within the range of the slope preset comparison value and prompting the error; Step 5, continue to scan the paper completely, and repeat steps 1 to 4 until no paper is detected in the paper tray Then the process ends and the prompt is completed. 如申請專利範圍第1項所述之影像掃描方法,找出非背景點即所述進紙邊緣的坐標,採用如下步驟:首先,確定背景顏色的色值,在此,我們假設背景顏色的色值為(Rb,Gb,Bb);然後,定義三個色差預設對比值,背景顏色的色值(Rb,Gb,Bb)分別減去偵測到的點的色值,在此,我們假設所偵測到的點的色值分別(Ra,Ga,Ba),如果Rb-Ra、Gb-Ga和Bb-Ba的絕對值皆分別小於一與其相對應的色差預設對比值,則所偵測到的點為背景點,如果Rb-Ra、Gb-Ga和Bb-Ba的絕對值中至少一個絕對值大於與其相對應的色差預設對比值,則表示偵測到了非背景點即找到紙張。 For example, the image scanning method described in claim 1 finds the non-background point, that is, the coordinates of the paper feeding edge, and adopts the following steps: First, the color value of the background color is determined. Here, we assume the color of the background color. The value is (Rb, Gb, Bb); then, the three color difference preset contrast values are defined, and the color values of the background color (Rb, Gb, Bb) are respectively subtracted from the detected color values of the points, and here we assume The detected color values of the points (Ra, Ga, Ba), respectively, if the absolute values of Rb-Ra, Gb-Ga, and Bb-Ba are respectively less than a corresponding color difference preset value, then the detected The measured point is the background point. If at least one of the absolute values of Rb-Ra, Gb-Ga and Bb-Ba is greater than the corresponding preset value of the color difference, it means that the non-background point is detected and the paper is found. . 如申請專利範圍第2項所述之影像掃描方法,其中所述Rb-Ra、Gb-Ga和Bb-Ba的絕對值分別所對應的色差預設對比值皆為20。 The image scanning method of claim 2, wherein the absolute values of the Rb-Ra, Gb-Ga, and Bb-Ba respectively have a preset difference value of 20 for each color difference. 如申請專利範圍第1項所述之影像掃描方法,其在進紙的縱軸方向掃描並偵測150行數據。 The image scanning method according to claim 1, which scans and detects 150 lines of data in the longitudinal direction of the paper feed. 如申請專利範圍第1項所述之影像掃描方法,其在進紙的橫軸方向偵測9列數據。 The image scanning method according to claim 1, wherein the data is detected in nine columns in the horizontal direction of the paper feed. 如申請專利範圍第5項所述之影像掃描方法,其中所述橫軸方向偵測的9列數據間隔的距離相同。 The image scanning method of claim 5, wherein the distance between the nine columns of data intervals detected by the horizontal axis direction is the same. 如申請專利範圍第1項所述之影像掃描方法,其檢查掃描後的影像之進紙邊緣的斜率預設對比值為0.1051,進紙邊緣的斜率小於或等於0.1051則繼續進行掃描,進紙邊緣的斜率大於0.1051則結束掃描進程並提示錯誤。 The image scanning method according to claim 1, wherein the slope of the paper feeding edge of the scanned image is preset to be 0.1051, and the slope of the paper feeding edge is less than or equal to 0.1051, and the scanning is continued. A slope greater than 0.1051 ends the scanning process and prompts an error.
TW105132701A 2016-10-11 2016-10-11 A method for scanning TWI612002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105132701A TWI612002B (en) 2016-10-11 2016-10-11 A method for scanning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105132701A TWI612002B (en) 2016-10-11 2016-10-11 A method for scanning

Publications (2)

Publication Number Publication Date
TWI612002B true TWI612002B (en) 2018-01-21
TW201813906A TW201813906A (en) 2018-04-16

Family

ID=61728659

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105132701A TWI612002B (en) 2016-10-11 2016-10-11 A method for scanning

Country Status (1)

Country Link
TW (1) TWI612002B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW395114B (en) * 1998-02-20 2000-06-21 Microtek Int Inc Document detection method of scanner
CN1279559A (en) * 1999-06-29 2001-01-10 力捷电脑股份有限公司 Dynamic correcting method and method for defining correcting specification
CN1946125A (en) * 2005-10-05 2007-04-11 佳能株式会社 Image processing device and reading device and control method and eyewinker position display method
TW201215088A (en) * 2010-07-20 2012-04-01 Eastman Kodak Co Method for document scanning

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW395114B (en) * 1998-02-20 2000-06-21 Microtek Int Inc Document detection method of scanner
CN1279559A (en) * 1999-06-29 2001-01-10 力捷电脑股份有限公司 Dynamic correcting method and method for defining correcting specification
CN1946125A (en) * 2005-10-05 2007-04-11 佳能株式会社 Image processing device and reading device and control method and eyewinker position display method
TW201215088A (en) * 2010-07-20 2012-04-01 Eastman Kodak Co Method for document scanning

Also Published As

Publication number Publication date
TW201813906A (en) 2018-04-16

Similar Documents

Publication Publication Date Title
US8205868B2 (en) Inspection apparatus, method of controlling the same, and storage medium
JPS6248875B2 (en)
US8854056B1 (en) Capacitance sensing devices and methods
US9699339B2 (en) Image reading apparatus, computer readable medium for the image reading apparatus, and method to correct an image read by the image reading apparatus
WO2016076165A1 (en) Colorimetry device and colorimetry method
CN104284053A (en) Tilt angle correction apparatus, image reader, image forming apparatus, and program
US7913995B2 (en) Method and apparatus for non-contact measurement of a media stack in an image production device
TWI612002B (en) A method for scanning
JP2016023031A (en) Sheet feeding device and printer
JP6330505B2 (en) Image reading device
US8542414B2 (en) Image reading apparatus
US9796547B2 (en) Conveyance control device
JP2021084738A5 (en)
US8717646B2 (en) Image reading device capable of performing rotation process on read image appropriately
CN107968898A (en) Image scanning method and its scanning means
WO2014043178A1 (en) Capacitance sensing devices and methods
US9787866B1 (en) Image scanning method and image scanning device applying the same
JP2016169104A (en) Feeding device, control method, and program
JP2018074330A (en) Image scanning method and scanner of the same
JP2016085069A (en) Sheet position detecting device
KR101198769B1 (en) Image forming apparatus and control method thereof
JP6452398B2 (en) Image reading device
JP2022100965A (en) Medium feeding device, image reader, and medium feeding method
JP2017055198A5 (en)
US8335024B2 (en) Multiple feeding preventing apparatus and image forming device including the same and image forming method