[go: up one dir, main page]

TW201813906A - A method for scanning and scanning device thereof - Google Patents

A method for scanning and scanning device thereof Download PDF

Info

Publication number
TW201813906A
TW201813906A TW105132701A TW105132701A TW201813906A TW 201813906 A TW201813906 A TW 201813906A TW 105132701 A TW105132701 A TW 105132701A TW 105132701 A TW105132701 A TW 105132701A TW 201813906 A TW201813906 A TW 201813906A
Authority
TW
Taiwan
Prior art keywords
paper
scanning
image
detected
tray
Prior art date
Application number
TW105132701A
Other languages
Chinese (zh)
Other versions
TWI612002B (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

Landscapes

  • Facsimiles In General (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

This invention relates to a method and a scanning device thereof for scanning paper. The scanning device includes a paper tray and a paper feed sensor. This method includes following steps: step 1, detecting whether there is paper in the paper tray, performing step 2 if there is paper in the paper tray, ending process and showing error if no paper in the paper tray; step 2, separating paper and feeding paper; step 3, detecting whether there is paper touching the paper feed sensor, performing step 4 if there is paper touching the paper feed sensor, ending process and showing error if no paper touching the paper feed sensor; step 4, scanning paper and detecting a feeding edge of this paper, performing step 5 if the feeding edge of this paper is in normal condition, ending process and showing error if the feeding edge of this paper is in abnormal condition; step 5, keeping scanning until the feeding paper is scanned completely, performing step1 to step 4 until no paper in the paper tray is detected, ending process and showing the process is finished if no paper in the paper tray.

Description

一種影像掃描方法及其掃描裝置Image scanning method and scanning device thereof

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

本發明之目的係針對上述習知不足而提供一種當待掃描的紙張有異常時,能防止待掃描紙張破損的影像掃描方法及其掃描裝置。SUMMARY OF THE INVENTION An object of the present invention is to provide an image scanning method and a scanning apparatus capable of preventing damage of a paper to be scanned when the paper to be scanned is abnormal, in view of the above-mentioned 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 and the scanning device of the present invention scan and detect whether there is an abnormality in the paper feeding edge of the image by using the image sensor, and continue the scanning process without abnormality, otherwise the process ends and an error is prompted, thereby avoiding waiting If the scanned paper is abnormal, continue feeding forward to cause damage to the paper.

為詳細說明本發明之技術內容、構造特徵、所達成目的及功效,以下茲舉例並配合圖式詳予說明。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 separate paper feed forward, the paper feed sensor 80 is used to sense the paper fed by the paper feed mechanism 70 and transmit the signal to the controller 10, the image sensor 90 is controlled by the controller 10 control, used to scan the paper and detect the abnormality of the paper feed edge in the scanned part of the image and the complete scan of the paper without abnormality.

請參閱第一圖和第二圖,本發明影像掃描方法,包括如下步驟:   步驟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. Step 2, paper separation and paper feeding. Specifically, the controller 10 controls the driving device 50, and is driven by 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, defining 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 the edge of the paper feed in the image is abnormal, execute step 5 if there is no abnormality, otherwise the process ends and an error is indicated; Step 5, to continue scanning the complete feed, and repeat steps 1 through 4, the filled tray is not detected until the paper 10 is finished 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, 150 rows are detected at equal intervals in the longitudinal direction of the paper feed, and a plurality of columns are detected in the horizontal axis direction of the paper feed, preferably, in this embodiment, in the paper feed. The horizontal axis direction detects 9 columns of data, and the detected 9 columns of data are separated by the same distance; 2. Find the non-background point, that is, the coordinates of the paper feeding edge, 3. Define a slope preset contrast value, and calculate the scan. Whether the slope of the paper feed edge in the image is within the range of the slope preset contrast value, and the scan is continued within the range of the slope preset contrast value, and the scan process is ended without the slope preset contrast value range. An error is displayed. Preferably, it checks the slope of the paper feed edge of the scanned image to have a preset contrast value of 0.1051, and the slope of the paper feed edge is less than or equal to 0.1051 degrees, and the scanning continues, and the slope of the paper feed edge is greater than 0.1051 ends the scanning process and prompts an error.

本實施例中,找出非背景點即所述進紙邊緣的坐標採用如下方法:首先、確定背景顏色的色值,在本實施例中,我們假設背景顏色的色值為(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. I found that none of the 150 lines found a non-background point, that is, no paper was found. Similarly, P2 means that the value of the ordinate is 150, which means that the image sensor is in the horizontal direction. When the vertical axis of the 530 pixel is detected, 150 lines are detected, and no non-background point is found, that is, no paper is found. The value of P3 on the ordinate is 140, and the image sensor 90 is detected on the vertical axis of the 780-pixel abscissa. When the 140 lines are found, the non-background point is found, and the paper is found. When the paper is found, the paper is not looked down, so the value is locked at 140, and so on, and the coordinate values of P4 to P9 are respectively obtained. 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)、(530,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 the coordinate data of P1 to P9 are (280, 150), (530, 30), (780, 62), (1030, 98), (1280, 131), (1530, 150). , (1780, 150), (2030, 150), (2280, 150). In this embodiment, the inclination angle of the paper feed edge of the second paper 93 is obtained, and the first direction is detected in the vertical axis direction. The first point of the two sheets 93 is the point P2 (530, 30) and the second point P3 of the second sheet 93 is detected in the direction of the longitudinal axis (780). 62) Calculated, 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 the present embodiment, 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 of the third sheet 95, that is, the point P8 (2030, 25) is detected in the axial direction, and the second sheet of the third sheet 95 is detected in the direction of the longitudinal axis. P7 (1780, 59) is 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 this embodiment, the scan is completed. When 150 rows are set, the paper feeding mechanism 70 is stopped, thereby stopping, and the third paper 95 is prevented from continuing to feed forward to cause 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 The slope of the paper feed edge of the fourth paper 96 of this embodiment is 0.036 (9/250), which is less than 0.1051, so the paper feed mechanism 70 does not stop after the implementation scans the preset 150 lines. The paper will continue to feed forward for scanning.

綜上所述,本發明影像掃描方法及其掃描裝置藉由圖像傳感器90掃描並偵測影像的進紙邊緣是否有異常,沒有異常就繼續執行掃描進程,否則結束進程並提示錯誤,從而避免待掃描的紙張有異常時繼續向前饋入造成紙張破損。In summary, the image scanning method and the scanning device of the present invention scan and detect whether there is an abnormality in the paper feeding edge of the image by the image sensor 90, and continue the scanning process without abnormality, otherwise the process ends and an error is prompted, thereby avoiding If the paper to be scanned is abnormal, 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

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

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

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

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

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

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

一圖係本發明影像掃描方法及其掃描裝置所採用的掃描裝置之構造示意圖。 第二圖係本發明影像掃描方法及其掃描裝置之流程示意圖。 第三圖係本發明影像掃描方法及其掃描裝置所進行掃描的複數紙張的左上角釘有一第一釘書釘的示意圖。 第四圖係本發明影像掃描方法及其掃描裝置所進行掃描的複數紙張的右上角釘有一第二釘書釘的示意圖。 第五圖係本發明影像掃描方法及其掃描裝置所進行掃描的紙張為一折疊的紙張的示意圖。 第六圖係本發明影像掃描方法及其掃描裝置所進行掃描的複數紙張為正常進紙的示意圖。BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a schematic view showing the construction of an image scanning method and a scanning device used in the scanning device of the present invention. The second figure is a schematic flow chart of the image scanning method and the scanning device of the present invention. The third figure is a schematic view of the image scanning method of the present invention and the scanning device of the scanning device, wherein the upper left corner of the plurality of sheets is stapled with a first staple. The fourth figure is a schematic diagram of the image scanning method of the present invention and the scanning paper of the scanning device, which has a second staple in the upper right corner of the plurality of sheets scanned. The fifth figure is a schematic view of the image scanning method of the present invention and the paper scanned by the scanning device as a folded paper. The sixth drawing is a schematic diagram of the image scanning method of the present invention and the plurality of sheets scanned by the scanning device for normal feeding.

Claims (9)

一種影像掃描方法,應用於一掃描裝置,該掃描裝置包括有盛紙盤和進紙感測器,包括如下步驟:步驟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; and step 5, the full scan of the paper feed is continued, 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. 如申請專利範圍第1項所述之影像掃描方法,其中所述步驟4中掃描並偵測影像中所述進紙邊緣是否有異常進一步採用如下步驟:一,先掃描一預設距離,對該預設距離上的掃描影像於進紙的縱軸方向上偵測若干行,在進紙的橫軸方向上偵測若干列;二,找出非背景點即所述進紙邊緣的坐標;三,定義一斜率預設對比值,計算掃描影像中進紙邊緣的斜率是否在斜率預設對比值範圍內,在斜率預設對比值範圍內則繼續進行掃描,不在斜率預設對比值範圍內則結束掃描進程並提示錯誤。The image scanning method of claim 1, wherein the scanning and detecting the abnormality of the paper feeding edge in the image in the step 4 further comprises the following steps: first, scanning a preset distance, first The scanned image at the preset distance detects a plurality of rows in the longitudinal direction of the paper feeding, and detects a plurality of columns in the horizontal axis direction of the paper feeding; second, finds the non-background point, that is, the coordinates of the paper feeding edge; Define a slope preset contrast value, calculate whether the slope of the paper feed edge in the scanned image is within the range of the slope preset contrast value, and continue scanning within the slope preset contrast value range, not within the slope preset contrast value range. End the scanning process and prompt an error. 如申請專利範圍第2項所述之影像掃描方法,找出非背景點即所述進紙邊緣的坐標,採用如下步驟:首先,確定背景顏色的色值,在此,我們假設背景顏色的色值為(Rb,Gb,Bb);然後,定義三個色差預設對比值,背景顏色的色值(Rb,Gb,Bb)分別減去偵測到的點的色值,在此,我們假設所偵測到的點的色值分別(Ra,Ga,Ba),如果Rb-Ra、Gb-Ga和Bb-Ba的絕對值皆分別小於一與其相對應的色差預設對比值,則所偵測到的點為背景點,如果Rb-Ra、Gb-Ga和Bb-Ba的絕對值中至少一個絕對值大於與其相對應的色差預設對比值,則表示偵測到了非背景點即找到紙張。For example, in the image scanning method described in claim 2, to find the non-background point, that is, the coordinates of the paper feeding edge, the following steps are taken: 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. . 如申請專利範圍第3項所述之影像掃描方法,其中所述Rb-Ra、Gb-Ga和Bb-Ba的絕對值分別所對應的色差預設對比值皆為20。The image scanning method according to claim 3, wherein the absolute values of the Rb-Ra, the Gb-Ga, and the Bb-Ba respectively have a preset difference value of 20 for each color difference. 如申請專利範圍第2項所述之影像掃描方法,其在進紙的縱軸方向掃描並偵測150行數據。The image scanning method according to claim 2, which scans and detects 150 lines of data in the longitudinal direction of the paper feed. 如申請專利範圍第2項所述之影像掃描方法,其在進紙的橫軸方向偵測9列數據。The image scanning method according to claim 2, wherein the data is detected in nine columns in the horizontal direction of the paper feed. 如申請專利範圍第6項所述之影像掃描方法,其中所述橫軸方向偵測的9列數據間隔的距離相同。The image scanning method according to claim 6, wherein the distance between the nine columns of data intervals detected by the horizontal axis direction is the same. 如申請專利範圍第2項所述之影像掃描方法,其檢查掃描後的影像之進紙邊緣的斜率預設對比值為0.1051,進紙邊緣的斜率小於或等於0.1051則繼續進行掃描,進紙邊緣的斜率大於0.1051則結束掃描進程並提示錯誤。The image scanning method according to claim 2, 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. 一種掃描裝置,適用於如申請專利範圍第1項所述之影像掃描方法,用以對紙張進行掃描,包括:一盛紙盤,用於盛放待掃描的紙張;一控制器;一存儲器,與控制器連接;一驅動裝置,由控制器控制;一第一感測器,由控制器控制,用以感測盛紙盤是否有紙張;一分紙機構,由驅動裝置驅動從而將複數待進行掃描的紙張分離開來;一進紙機構,由驅動裝置驅動將分紙機構分離過來的紙張向前饋入;一進紙感測器,由控制器控制,用以感測由進紙機構饋入進來的紙張並將訊號傳輸至控制器;及一圖像傳感器,由控制器控制,用以掃描紙張並偵測已掃描的部分影像中的進紙邊緣是否有異常及完整掃描沒有異常的紙張。A scanning device, which is suitable for the image scanning method according to claim 1, for scanning a paper, comprising: a paper tray for holding paper to be scanned; a controller; a memory, Connected to the controller; a driving device controlled by the controller; a first sensor controlled by the controller for sensing whether the paper tray has paper; a paper separating mechanism driven by the driving device to be plural The scanning paper is separated; a paper feeding mechanism drives the paper separated by the separating mechanism to feed forward; a paper feeding sensor is controlled by the controller to sense the paper feeding mechanism Feeding incoming paper and transmitting the signal to the controller; and an image sensor controlled by the controller 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.
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 TWI612002B (en) 2018-01-21
TW201813906A true 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)

Family Cites Families (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 Calibration Method and Method for Establishing Calibration Specifications
JP2007104444A (en) * 2005-10-05 2007-04-19 Canon Inc Image reading apparatus and foreign substance region display method thereof
US20120019874A1 (en) * 2010-07-20 2012-01-26 Schaertel David M Method for document scanning

Also Published As

Publication number Publication date
TWI612002B (en) 2018-01-21

Similar Documents

Publication Publication Date Title
US8448932B2 (en) Inspection apparatus, method of controlling the same, and storage medium
US8342501B2 (en) Sheet feeding device and image forming apparatus with a plurality of sheet feed trays
CN109587369A (en) Image scanning apparatus and its control method
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
US9272546B2 (en) Sheet feeding apparatus
US8542414B2 (en) Image reading apparatus
CN118714230A (en) Document reading device, control method of document reading device and storage medium
TWI612002B (en) A method for scanning
US10554858B2 (en) Image processing apparatus and image processing method
CN107968898A (en) Image scanning method and scanning device thereof
US20170036882A1 (en) Post-processing apparatus and image forming system
US8717646B2 (en) Image reading device capable of performing rotation process on read image appropriately
JP6591903B2 (en) Transport control device
CN113472963A (en) Image reading apparatus, image reading method, image reading system, and storage medium
JP2018074330A (en) Image scanning method and scanner of the same
US9787866B1 (en) Image scanning method and image scanning device applying the same
JP6394237B2 (en) Reader, position detection method, and program
JP2014210624A (en) Sheet ejection device
US8335024B2 (en) Multiple feeding preventing apparatus and image forming device including the same and image forming method
US11448993B2 (en) Image forming system, sheet processing device, and control method of sheet processing device
JP2017055198A5 (en)
JP7341746B2 (en) Sheet feeding device and recording device
JP7240594B2 (en) image forming device
JP5732009B2 (en) Image forming apparatus and medium discharging method
TWI535262B (en) Multipick detection by using image processor