CN111031188B - 基于cis传感器的扫描仪的纸张歪斜检测方法 - Google Patents

基于cis传感器的扫描仪的纸张歪斜检测方法 Download PDF

Info

Publication number
CN111031188B
CN111031188B CN201911186774.7A CN201911186774A CN111031188B CN 111031188 B CN111031188 B CN 111031188B CN 201911186774 A CN201911186774 A CN 201911186774A CN 111031188 B CN111031188 B CN 111031188B
Authority
CN
China
Prior art keywords
paper
scanner
pixel points
black pixel
cis sensor
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
CN201911186774.7A
Other languages
English (en)
Other versions
CN111031188A (zh
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.)
Ningbo Huagao Information Technology Co ltd
Original Assignee
Ningbo Huagao Information 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 Ningbo Huagao Information Technology Co ltd filed Critical Ningbo Huagao Information Technology Co ltd
Priority to CN201911186774.7A priority Critical patent/CN111031188B/zh
Publication of CN111031188A publication Critical patent/CN111031188A/zh
Application granted granted Critical
Publication of CN111031188B publication Critical patent/CN111031188B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00684Object of the detection
    • H04N1/00718Skew
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00729Detection means
    • H04N1/00734Optical detectors
    • H04N1/00737Optical detectors using the scanning elements as detectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/024Details of scanning heads ; Means for illuminating the original
    • H04N1/028Details of scanning heads ; Means for illuminating the original for picture information pick-up
    • H04N1/03Details of scanning heads ; Means for illuminating the original for picture information pick-up with photodetectors arranged in a substantially linear array
    • H04N1/031Details of scanning heads ; Means for illuminating the original for picture information pick-up with photodetectors arranged in a substantially linear array the photodetectors having a one-to-one and optically positive correspondence with the scanned picture elements, e.g. linear contact sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

本发明涉及基于CIS传感器的扫描仪的纸张歪斜检测方法包括以下步骤:先启动CIS传感器,然后将纸张送入到扫描仪中,使纸张逐渐经过扫描区域;FPGA模块接收CIS传感器所采集到的所有单行图像,并获取每个单行图像中所包含的全黑像素点数量和非全黑像素点数量;微处理模块接收FPGA模块所采集的所有单行图像中所包含的全黑像素点数量和非全黑像素点数量数据信息,并根据所有单行图像中所包含的全黑像素点数量和非全黑像素点数量的数据信息判断纸张是否过于歪斜;本发明的优点是:不但能够精确判断纸张是否过于弯斜,不易受到外界环境干扰,而且能够有效降低扫描仪的制造成本,而且有利于扫描仪的小型化发展。

Description

基于CIS传感器的扫描仪的纸张歪斜检测方法
技术领域
本发明涉及一种扫描仪,具体是一种基于CIS传感器的扫描仪的纸张歪斜检测方法。
背景技术
在便携式扫描仪中,使用最普遍的就是接触式图像模块(CIS),CIS是一种自带光源的线性模块,扫描依次仅能够得到一帧或行图像信息,因此,图像采集时必须配合横向(垂直于CIS方向)的运动才能得到一幅完整二维图像。CIS的工作原理是利用光源照亮图片或实物,然后CIS对图片或实物进行扫描,采集图像信息,并以模拟信号的形式向往传送。
现有基于CIS传感器的扫描仪通常包括外壳以及设置在外壳内部的光学采集组件和数据处理组件,光学采集组件包括CIS传感器和AD采样模块;数据处理组件包括FPGA模块、微处理模块、电源模块和液晶显示屏;外壳的底部设置有滚动件和扫描窗口,FPGA模块分别与CIS传感器、AD采样模块和微处理模块电连接,微处理模块与液晶显示屏电连接。
上述的基于CIS传感器的扫描仪通常采用红外传感器检测纸张位置或利用声音或利用电机的电流大小等等方式判断纸张是否卡纸,但是上述判断纸张是否卡纸的方式要么会造成扫描仪的结构复杂化,导致扫描仪制造成本大大增加,并且不利于扫描仪小型化发展,要么容易受到外界环境干扰,导致判断不够准确。
发明内容
本发明要解决的技术问题是,提供一种基于CIS传感器的扫描仪的纸张歪斜检测方法,其利用扫描仪自带的CIS传感器来检测进入扫描仪的纸张的歪斜程度,以此来避免扫描仪卡纸故障的产生。
为解决上述技术问题,本发明提供了一种基于CIS传感器的扫描仪的纸张歪斜检测方法,包括以下步骤:
先启动CIS传感器,然后将纸张送入到扫描仪中,使纸张逐渐经过扫描区域;
FPGA模块接收CIS传感器所采集到的所有单行图像,并获取每个单行图像中所包含的全黑像素点数量和非全黑像素点数量;
微处理模块接收FPGA模块所采集的所有单行图像中所包含的全黑像素点数量和非全黑像素点数量数据信息,并根据所有单行图像中所包含的全黑像素点数量和非全黑像素点数量的数据信息判断纸张是否过于歪斜。
本发明所述的基于CIS传感器的扫描仪的纸张歪斜检测方法,其中,根据所有单行图像中所包含的全黑像素点数量和非全黑像素点数量的数据信息判断纸张是否过于歪斜的具体方法是:
获取单行图像中所包含的非全黑像素点数量的理论最大值N1,具体公式如下:
Figure BDA0002292580340000021
其中,A为扫描仪的分辨率所对应的数值,B为纸张的最大可倾斜角度的绝对值,L为纸张的理论宽度所对应的数值;
获取单行图像中所包含的非全黑像素点数量达到理论最大值N1时纸张在扫描区域中的移动距离值H1,具体公式如下:
Figure BDA0002292580340000022
获取纸张在扫描区域中的实际移动距离值H2,且当H2>H1时,
若获取的单行图像中所包含的非全黑像素点数量的实际值N2>N1时,则判断纸张过于歪斜,扫描仪需要停机;
若获取的单行图像中所包含的非全黑像素点数量的实际值N2≤N1时,则判断纸张没有过于歪斜,扫描仪不需要停机。
采用上述结构后,与现有技术相比,本发明具有以下优点:本发明基于CIS传感器的扫描仪的纸张歪斜检测方法利用扫描仪自带的CIS传感器来检测进入扫描仪的纸张的歪斜程度,不但能够精确判断纸张是否过于弯斜,不易受到外界环境干扰,从而能够有效避免扫描仪卡纸故障的产生,而且扫描仪无需额外增加其它部件,能够有效保证扫描仪的结构简单化,从而不但能够有效降低扫描仪的制造成本,而且有利于扫描仪的小型化发展。
附图说明
图1是本发明基于CIS传感器的扫描仪的纸张歪斜检测方法的中CIS传感器扫描纸张的原理图;
图2是本发明基于CIS传感器的扫描仪的纸张歪斜检测方法的中,FPGA模块获取各个单行图像中所包含的非全黑像素点数量的实际值变化图。
具体实施方式
下面结合附图和具体实施方式对本发明基于CIS传感器的扫描仪的纸张歪斜检测方法作进一步的详细说明。
如图1至图2所示,本发明基于CIS传感器的扫描仪的纸张歪斜检测方法包括以下步骤:
先启动CIS传感器,然后将纸张送入到扫描仪中,使纸张逐渐经过扫描区域;
FPGA模块接收CIS传感器所采集到的所有单行图像,并获取每个单行图像中所包含的全黑像素点数量和非全黑像素点数量;
微处理模块接收FPGA模块所采集的所有单行图像中所包含的全黑像素点数量和非全黑像素点数量数据信息,并根据所有单行图像中所包含的全黑像素点数量和非全黑像素点数量的数据信息判断纸张是否过于歪斜;
根据所有单行图像中所包含的全黑像素点数量和非全黑像素点数量的数据信息判断纸张是否过于歪斜的具体方法是:
获取单行图像中所包含的非全黑像素点数量的理论最大值N1,具体公式如下:
Figure BDA0002292580340000031
其中,A为扫描仪的分辨率所对应的数值;B为纸张的最大可倾斜角度的绝对值,它是扫描仪的预设数值,不同的扫描仪可根据自身能够承受纸张的倾斜程度进行预设,优选为0~10度的;L为纸张的理论宽度所对应的数值,本实施例中的纸张指的是市面上常见的用于打印或复印的矩形纸,如A0、A1、A2、B1、B2、A4、A5等等。
获取单行图像中所包含的非全黑像素点数量达到理论最大值N1时纸张在扫描区域中的移动距离值H1,具体公式如下:
Figure BDA0002292580340000032
获取纸张在扫描区域中的实际移动距离值H2,且当H2>H1时,
若获取的单行图像中所包含的非全黑像素点数量的实际值N2>N1时,则判断纸张过于歪斜,扫描仪需要停机;
若获取的单行图像中所包含的非全黑像素点数量的实际值N2≤N1时,则判断纸张没有过于歪斜,扫描仪不需要停机。
以上的实施例仅仅是对本发明的优选实施方式进行描述,并非对本发明的范围进行限定,在不脱离本发明设计精神的前提下,本领域普通技术人员对本发明的技术方案作出的各种变形和改进,均应落入本发明权利要求书确定的保护范围内。

Claims (1)

1.一种基于CIS传感器的扫描仪的纸张歪斜检测方法,其特征在于,包括以下步骤:
先启动CIS传感器,然后将纸张送入到扫描仪中,使纸张逐渐经过扫描区域;
FPGA模块接收CIS传感器所采集到的所有单行图像,并获取每个单行图像中所包含的全黑像素点数量和非全黑像素点数量;
微处理模块接收FPGA模块所采集的所有单行图像中所包含的全黑像素点数量和非全黑像素点数量数据信息,并根据所有单行图像中所包含的全黑像素点数量和非全黑像素点数量的数据信息判断纸张是否过于歪斜,具体方法是:
获取单行图像中所包含的非全黑像素点数量的理论最大值N1,具体公式如下:
Figure FDA0003051296050000011
其中,A为扫描仪的分辨率所对应的数值,B为纸张的最大可倾斜角度的绝对值,L为纸张的理论宽度所对应的数值;
获取单行图像中所包含的非全黑像素点数量达到理论最大值N1时纸张在扫描区域中的移动距离值H1,具体公式如下:
Figure FDA0003051296050000012
获取纸张在扫描区域中的实际移动距离值H2,且当H2>H1时,
若获取的单行图像中所包含的非全黑像素点数量的实际值N2>N1时,则判断纸张过于歪斜,扫描仪需要停机;
若获取的单行图像中所包含的非全黑像素点数量的实际值N2≤N1时,则判断纸张没有过于歪斜,扫描仪不需要停机。
CN201911186774.7A 2019-11-28 2019-11-28 基于cis传感器的扫描仪的纸张歪斜检测方法 Active CN111031188B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911186774.7A CN111031188B (zh) 2019-11-28 2019-11-28 基于cis传感器的扫描仪的纸张歪斜检测方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911186774.7A CN111031188B (zh) 2019-11-28 2019-11-28 基于cis传感器的扫描仪的纸张歪斜检测方法

Publications (2)

Publication Number Publication Date
CN111031188A CN111031188A (zh) 2020-04-17
CN111031188B true CN111031188B (zh) 2021-07-06

Family

ID=70202777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911186774.7A Active CN111031188B (zh) 2019-11-28 2019-11-28 基于cis传感器的扫描仪的纸张歪斜检测方法

Country Status (1)

Country Link
CN (1) CN111031188B (zh)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9022483D0 (en) * 1990-10-17 1990-11-28 Int Computers Ltd Detecting skew in digitised images
US5313311A (en) * 1992-12-23 1994-05-17 Xerox Corporation Hybrid mechanical and electronic deskew of scanned images in an image input terminal
JP3248420B2 (ja) * 1996-03-01 2002-01-21 ミノルタ株式会社 デジタル複写機
JP3876531B2 (ja) * 1998-05-28 2007-01-31 富士通株式会社 文書画像の傾き補正方法
JP4394064B2 (ja) * 2005-11-18 2010-01-06 富士通株式会社 傾きの検出方法および傾き検出装置並びに物体の位置制御方法および位置制御装置
CN209330211U (zh) * 2019-03-06 2019-08-30 宁波华高信息科技有限公司 一种具有纸张歪斜检测功能的扫描仪

Also Published As

Publication number Publication date
CN111031188A (zh) 2020-04-17

Similar Documents

Publication Publication Date Title
EP2169933A3 (en) Image processing system and image scanner therefor
EP1307039A3 (en) Image processing apparatus and image scanning apparatus
US8102575B2 (en) Image processing apparatus and method
US20180176407A1 (en) Image reading apparatus, image forming apparatus, reading method, and image forming system
CN102377906A (zh) 图像读取装置及图像读取装置的控制方法
CN111031188B (zh) 基于cis传感器的扫描仪的纸张歪斜检测方法
JPH04245767A (ja) 画像入力装置
CN103458158A (zh) 线阵相机曝光时间的控制方法及其系统
US8547563B2 (en) Mobile device scan for printing devices
CN101175137A (zh) 扫描设备及其黑斑校正方法
US11240383B2 (en) Image reading apparatus, defect detection method, and storage medium
EP3358816A1 (en) Image-reading device and image-forming device
US9106778B2 (en) Device and method for determining presence of a document to be imaged and providing a preview of the document
USRE42498E1 (en) Wide image scanner
EP2552092B1 (en) Image scanning apparatus capable of detecting condensation
CN102685360A (zh) 整合式接触式影像感测模块及影像扫瞄系统
CN103491273A (zh) 具有校正功能的馈纸式扫描装置
CN115996267A (zh) 读取装置和图像形成装置
CN102065198A (zh) 扫描装置
CN110769126B (zh) 一种多功能扫描装置
US8422785B2 (en) Image processing apparatus, image processing method, and program
KR101052933B1 (ko) 우편물 자동 처리장치
CN218830073U (zh) 扫描设备及图像形成装置
US20110128591A1 (en) Scan apparatus and carrier sheet having background pattern for boundary detection
US11190656B2 (en) Image scanning apparatus

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Paper skew detection method of scanner based on CIS sensor

Effective date of registration: 20220125

Granted publication date: 20210706

Pledgee: Ningbo Tianjin Enterprise Service Co.,Ltd.

Pledgor: NINGBO HUAGAO INFORMATION TECHNOLOGY CO.,LTD.

Registration number: Y2022330000164

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230511

Granted publication date: 20210706

Pledgee: Ningbo Tianjin Enterprise Service Co.,Ltd.

Pledgor: NINGBO HUAGAO INFORMATION TECHNOLOGY CO.,LTD.

Registration number: Y2022330000164