CN116152864A - Image compensation circuit and method - Google Patents
Image compensation circuit and method Download PDFInfo
- Publication number
- CN116152864A CN116152864A CN202111382323.8A CN202111382323A CN116152864A CN 116152864 A CN116152864 A CN 116152864A CN 202111382323 A CN202111382323 A CN 202111382323A CN 116152864 A CN116152864 A CN 116152864A
- Authority
- CN
- China
- Prior art keywords
- compensation
- image
- lens
- sensing pixels
- compensation values
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000007423 decrease Effects 0.000 claims description 15
- 238000012360 testing method Methods 0.000 claims description 15
- 230000003287 optical effect Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000005286 illumination Methods 0.000 description 6
- 238000003384 imaging method Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 238000010521 absorption reaction Methods 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 229920001971 elastomer Polymers 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
Images
Landscapes
- Image Input (AREA)
Abstract
本发明公开了一种图像补偿电路及方法,所述图像补偿电路用于一图像感测器,并包括一增益放大器、一补偿控制电路、一存储单元及一数字模拟转换器。该增益放大器用来从该图像感测器接收多个图像信号,并对该多个图像信号进行放大。该补偿控制电路用来产生用于该多个图像信号的多个补偿值。该存储单元耦接于该补偿控制电路,用来存储该多个补偿值。该数字模拟转换器耦接于该存储单元及该增益放大器,用来分别将该多个补偿值转换为多个补偿电压,以利用该多个补偿电压来补偿该多个图像信号。
The invention discloses an image compensation circuit and method. The image compensation circuit is used for an image sensor and includes a gain amplifier, a compensation control circuit, a storage unit and a digital-to-analog converter. The gain amplifier is used for receiving multiple image signals from the image sensor and amplifying the multiple image signals. The compensation control circuit is used to generate a plurality of compensation values for the plurality of image signals. The storage unit is coupled to the compensation control circuit for storing the plurality of compensation values. The digital-to-analog converter is coupled to the storage unit and the gain amplifier, and is used for converting the plurality of compensation values into a plurality of compensation voltages, so as to compensate the plurality of image signals by using the plurality of compensation voltages.
Description
技术领域technical field
本发明涉及一种图像补偿电路及方法,尤其涉及一种可用于光学式图像感测器的图像补偿电路及方法。The invention relates to an image compensation circuit and method, in particular to an image compensation circuit and method applicable to an optical image sensor.
背景技术Background technique
近年来,光学式指纹识别已成为最普及的指纹识别方案之一。在光学式指纹感测器中,因为感测组件的特性,会在输出的感测信号上产生相对照度(RelativeIllumination,RI)的差异,此相对照度差异会造成后端信号容易饱和。请参考图1,图1为一般光学式指纹感测器模块10的结构示意图。如图1所示,光学式指纹感测器模块10包括一面板102、一透镜104及一感测器106,其互相叠合而形成模块化的架构。光学式指纹感测器模块10的运作原理为,通过面板102的光源发射光线至手指按压处,当光线照射到手指指纹反射之后,会经过面板102结构而到达透镜104,藉由透镜104聚集光线再到达感测器106上的像素,像素可将感测到的光线强度转换为电压信号,由后端的电路进行处理,从而输出完整的指纹图像。In recent years, optical fingerprint recognition has become one of the most popular fingerprint recognition solutions. In the optical fingerprint sensor, due to the characteristics of the sensing components, there will be a difference in relative illumination (Relative Illumination, RI) in the output sensing signal, and the difference in relative illumination will cause the back-end signal to be easily saturated. Please refer to FIG. 1 , which is a schematic structural diagram of a general optical
如图1所示,在光学式指纹感测器模块10的结构中,光线从手指反射到达感测器106的路径上会经过面板102的结构和透镜104。由于组件本身特性的差异以及组装公差,可能造成感测器106不同位置上的相对照度呈现大幅度的变化,这些差异包括个别模块空间上的距离变异,即材质本身的厚度变异以及模块空间堆叠的变异(如图1中,模块各部分的高度z1、z2、z3均可能存在误差);个别模块对光线的吸收率不同;显示器光斑均匀性与照度存在差异,且光线通过面板102易受到其结构的影响;透镜104本身的曲率工艺变异;模块组装过程中或多或少会发生组装公差,可能造成透镜104倾斜而导致亮度对比增加。以上因素均造成光学式指纹感测器模块10的聚光行为出现变异,导致输出的图像信号出现误差。As shown in FIG. 1 , in the structure of the optical
请参考图2,图2为透镜104的相对照度的示意图。如图2所示,根据透镜104的光学特性,中心区域(距离镜心较近的区域)具有较高的相对照度,而周边区域(距离镜心较远的区域)具有较低的相对照度。因此,透镜上存在中心区域通常具有较高亮度而周边区域通常具有较低亮度的固定偏移,呈现如图2所示的等亮圆形。Please refer to FIG. 2 , which is a schematic diagram of the relative illuminance of the
请参考图3,图3示出了不同指纹感测器模块的指纹成像。其中,图(a)为正常的指纹图像,可清楚呈现圆形的指纹,其中心亮度较亮而周围亮度较暗。图(b)呈现了透镜轻微倾斜造成的影响,可看出指纹图像的右侧出现遮蔽手指成像位置的黑色区块。图(c)则是透镜严重倾斜之下产生的画面,其中,图像的左上方出现明显的黑影,导致左上方可侦测指纹的感光区域大幅缩小。Please refer to FIG. 3 , which shows fingerprint imaging of different fingerprint sensor modules. Among them, Figure (a) is a normal fingerprint image, which can clearly present a circular fingerprint, and its center brightness is brighter while the surrounding brightness is darker. Figure (b) shows the effect caused by the slight tilt of the lens. It can be seen that there is a black block covering the imaging position of the finger on the right side of the fingerprint image. Figure (c) is the screen produced under the severe tilt of the lens, in which there is an obvious black shadow in the upper left of the image, which causes the photosensitive area in the upper left to detect fingerprints to be greatly reduced.
鉴于此,实有必要提出一种可用于光学式指纹感测器模块10的图像补偿电路及方法,用来补偿透镜特性、组件变异、组装公差、及透镜倾斜等因素在图像信号上造成的误差和偏移。In view of this, it is necessary to propose an image compensation circuit and method that can be used in the optical
发明内容Contents of the invention
因此,本发明的主要目的即在于提出一种可用于图像感测器的图像补偿电路及方法,可针对感测器从发光到成像之间的各种变异所产生的相对照度误差进行补偿。Therefore, the main purpose of the present invention is to provide an image compensation circuit and method applicable to an image sensor, which can compensate for relative illuminance errors caused by various variations of the sensor from light emission to imaging.
本发明的一实施例公开了一种图像补偿电路,用于一图像感测器,该图像补偿电路包括一增益放大器、一补偿控制电路、一存储单元及一数字模拟转换器(Digital-to-Analog Converter,DAC)。该增益放大器用来从该图像感测器接收多个图像信号,并对该多个图像信号进行放大。该补偿控制电路用来产生用于该多个图像信号的多个补偿值。该存储单元耦接于该补偿控制电路,用来存储该多个补偿值。该数字模拟转换器耦接于该存储单元及该增益放大器,用来分别将该多个补偿值转换为多个补偿电压,以利用该多个补偿电压来补偿该多个图像信号。An embodiment of the present invention discloses an image compensation circuit for an image sensor, the image compensation circuit includes a gain amplifier, a compensation control circuit, a storage unit and a digital-to-analog converter (Digital-to- Analog Converter, DAC). The gain amplifier is used for receiving multiple image signals from the image sensor and amplifying the multiple image signals. The compensation control circuit is used to generate a plurality of compensation values for the plurality of image signals. The storage unit is coupled to the compensation control circuit for storing the plurality of compensation values. The digital-to-analog converter is coupled to the storage unit and the gain amplifier, and is used for converting the plurality of compensation values into a plurality of compensation voltages, so as to compensate the plurality of image signals by using the plurality of compensation voltages.
本发明的另一实施例公开了一种图像补偿方法,用于一图像补偿电路。该图像补偿方法包括下列步骤:从一图像感测器接收多个图像信号,并对该多个图像信号进行放大;产生用于该多个图像信号的多个补偿值,并将该多个补偿值存储在一存储单元中;以及分别将该多个补偿值转换为多个补偿电压,以利用该多个补偿电压来补偿该多个图像信号。Another embodiment of the present invention discloses an image compensation method for an image compensation circuit. The image compensation method includes the following steps: receiving a plurality of image signals from an image sensor, and amplifying the plurality of image signals; generating a plurality of compensation values for the plurality of image signals, and compensating the plurality of storing values in a storage unit; and converting the plurality of compensation values into a plurality of compensation voltages respectively, so as to compensate the plurality of image signals by using the plurality of compensation voltages.
附图说明Description of drawings
图1为一般光学式指纹感测器模块的结构示意图。FIG. 1 is a schematic structural diagram of a general optical fingerprint sensor module.
图2为透镜的相对照度的示意图。Fig. 2 is a schematic diagram of the relative illuminance of the lens.
图3示出了不同指纹感测器模块的指纹成像。Figure 3 shows fingerprint imaging for different fingerprint sensor modules.
图4为本发明实施例一图像补偿电路的示意图。FIG. 4 is a schematic diagram of an image compensation circuit according to an embodiment of the present invention.
图5为本发明实施例一图像处理流程的流程图。FIG. 5 is a flowchart of an image processing process according to
图6A及6B为本发明实施例一感测像素阵列及其相应的补偿值的示意图。6A and 6B are schematic diagrams of a sensing pixel array and its corresponding compensation values according to an embodiment of the present invention.
图7为透镜倾斜造成感测区域呈现椭圆形的示意图。FIG. 7 is a schematic diagram of an ellipse-shaped sensing area caused by tilting the lens.
图8为本发明实施例用于补偿透镜倾斜的一图像处理流程的流程图。FIG. 8 is a flowchart of an image processing procedure for compensating lens tilt according to an embodiment of the present invention.
图9为本发明实施例根据透镜倾斜方向调整轴线以计算补偿值的示意图。FIG. 9 is a schematic diagram of adjusting the axis according to the tilt direction of the lens to calculate the compensation value according to an embodiment of the present invention.
图10示出了透镜在不同倾斜方向之下产生不同的参数数值。Figure 10 shows that the lens produces different parameter values under different tilt directions.
其中,附图标记说明如下:Wherein, the reference signs are explained as follows:
10 光学式指纹感测器模块10 Optical Fingerprint Sensor Module
102 面板102 panels
104 透镜104 lenses
106 感测器106 sensors
40 图像补偿电路40 Image Compensation Circuit
400 图像感测器400 image sensor
402 列解码器402 column decoder
404 行解码器404 line decoder
410 模拟前端电路410 Analog front-end circuit
412 可编程增益放大器412 Programmable Gain Amplifier
414 数字模拟转换器414 Digital to Analog Converter
420 模拟数字转换器420 Analog to Digital Converter
430 补偿控制电路430 compensation control circuit
432 存储单元432 storage units
440 时序控制器440 Sequence Controller
IMG 图像信号IMG image signal
CMP 补偿值CMP compensation value
50、80 图像处理流程50, 80 image processing flow
r_min、r_max 半径r_min, r_max radius
r_data 距离数据r_data distance data
R1、R2、R3 区域R1, R2, R3 regions
WGT_0、WGT_1、WGT_2、WGT_3 参数WGT_0, WGT_1, WGT_2, WGT_3 parameters
具体实施方式Detailed ways
请参考图4,图4为本发明实施例一图像补偿电路40的示意图。图像补偿电路40包括一图像感测器400、一模拟前端(Analog Front-End,AFE)电路410、一模拟数字转换器(Analog-to-Digital Converter,ADC)420、一补偿控制电路430、一存储单元432及一时序控制器440。图像感测器400包括以阵列方式排列的多个感测像素,其中每一感测像素都包括一感光组件(如光电二极管(photodiode)),可用来侦测光线并将光线的强度转换为电压或电流形式的图像信号IMG。在一实施例中,图像感测器400可以是一光学式指纹感测器,用来侦测手指反射的光线以进行指纹感测。模拟前端电路410耦接于图像感测器400,可从图像感测器400接收图像信号IMG,并且对图像信号IMG进行处理。详细来说,模拟前端电路410包括一可编程增益放大器(Programmable Gain Amplifier,PGA)412及一数字模拟转换器(Digital-to-Analog Converter,DAC)414。可编程增益放大器412可对来自于图像感测器400的图像信号IMG进行放大,其增益大小可依据系统需求而调整。数字模拟转换器414可将用来对图像信号IMG进行补偿的补偿值CMP转换为相应的补偿电压,以利用补偿电压来补偿图像信号IMG。当图像信号IMG在模拟前端电路410中完成放大及补偿之后,可通过模拟数字转换器420将电压形式的图像信号IMG转换为数字码,以数字码的形式通过图像输出接口输出至后端处理器以进行指纹判读,该输出接口可以是例如串行外设接口(SerialPeripheral Interface,SPI),但不限于此。Please refer to FIG. 4 , which is a schematic diagram of an
时序控制器440耦接于图像感测器400,可用来控制图像感测器400的感测运作。如上所述,图像感测器400包括多个感测像素所构成的阵列,而时序控制器440可用来控制该多个感测像素进行图像感测及输出图像信号IMG的时序。详细来说,图像感测器400可搭配一列解码器402及一行解码器404进行设置,列解码器402可用来一列一列地驱动像素运作,行解码器404可用来一行一行地驱动像素运作。时序控制器440可藉由控制列解码器402及行解码器404交互运作来控制图像感测器400上的感测像素。一般来说,光学式指纹感测包括重置、曝光和采样等运作,时序控制器440可控制各感测像素依照预定的时序进行上述感测运作并输出图像信号IMG。The
补偿控制电路430可用来产生用于图像信号IMG的补偿值CMP,补偿值CMP可用来对图像信号IMG中的相对照度(Relative Illumination,RI)误差进行补偿。根据图2可知,透镜的特性造成不同感测像素之间具有不同的相对照度,因此,每一像素都具有其相应的补偿值CMP,用来补偿相对照度的差异。在此情形下,可将时序控制器440耦接至补偿控制电路430。时序控制器440除了控制感测像素输出图像信号IMG的时序之外,还可将感测像素的坐标信息提供给补偿控制电路430,使补偿控制电路430可根据坐标信息来产生分别对应于各感测像素的补偿值CMP,并将补偿值CMP存储至存储单元432。存储单元432可以是通过例如D型正反器(D flip-flop)来实现的暂存器。当感测像素将图像信号IMG输出至模拟前端电路410的同时,数字模拟转换器414可从存储单元432取出该感测像素相应的补偿值CMP,将补偿值CMP转换为相应的补偿电压之后,加入接收到的图像信号IMG以进行补偿。The
在一实施例中,图像信号IMG可先通过可编程增益放大器412进行放大之后,再通过补偿电压进行补偿;或者,也可先通过补偿电压对图像信号IMG进行补偿,再通过可编程增益放大器412进行放大。本领域技术人员可依据实际需求选择适合的补偿方式,其不应用以限制本发明的范畴。In one embodiment, the image signal IMG can be amplified by the
在一实施例中,补偿电压可以是施加于图像信号IMG的减项,即,图像信号IMG的电压值会扣除补偿电压以消除相对照度的影响。在此情形下,针对相对照度较大的像素,补偿控制电路430可产生较大的补偿值CMP,以在图像信号IMG上扣除较大幅度的电压;针对相对照度较小的像素,补偿控制电路430可产生较小的补偿值CMP,以在图像信号IMG上扣除较小幅度的电压。如此一来,可消除不同像素之间相对照度差异所造成的影响,从而提升相对照度的一致性,使得整体图像信号IMG落在相近的电平上。In an embodiment, the compensation voltage may be a subtraction term applied to the image signal IMG, that is, the voltage value of the image signal IMG will be subtracted by the compensation voltage to eliminate the influence of the relative illuminance. In this case, for pixels with relatively large relative illuminance, the
因此,完成补偿之后的图像信号IMG可消除例如透镜差异及/或组装公差所造成的偏移,使各像素输出的图像信号IMG具有彼此接近的电平,通过模拟数字转换器420转换成数字数据之后可藉由后续处理电路轻易地识别,针对解析度较差的指纹图像也能够更有效地进行放大并判读波峰波谷的差异。需注意的是,本发明是在图像信号IMG转换成数字数据之前进行补偿,可避免信号饱和造成模拟数字转换器420进行转换的过程中消除指纹信息。Therefore, the image signal IMG after compensation can eliminate the offset caused by, for example, lens difference and/or assembly tolerance, so that the image signal IMG output by each pixel has a level close to each other, and is converted into digital data by the analog-to-
请参考图5,图5为本发明实施例一图像处理流程50的流程图。图像处理流程50可用于一图像补偿电路(如图4所示的图像补偿电路40),用来从图像感测器400(下文以指纹感测器为例)接收指纹图像信号并且对指纹图像信号进行扫描、补偿及识别。Please refer to FIG. 5 , which is a flowchart of an
图像处理流程50可区分为测试流程及指纹识别流程两部分。首先,可在指纹感测器的感测区域上放置一待测物体,同时指纹感测器所对应的面板显示光斑,以将光线投射向待测物体,通过待测物体反射之后,通过透镜的聚焦而到达指纹感测器上的感测像素进行成像。The
在测试流程中,待测物体可以是具有一平滑表面的物体,例如橡胶片,指纹感测器对待测物体进行扫描以取得图像信号IMG,并将图像信号IMG传送至图像补偿电路40。在测试流程中,图像补偿电路40可判断补偿尚未完成,并且依序取得对应于各感测像素的图像信号IMG。此时,由于待测物体是表面平滑的物体而不存在指纹波峰波谷的差异,当没有相对照度误差的情形下,图像补偿电路40预期每一感测像素都应产生具有相同电压的图像信号IMG。也就是说,当光线通过平滑物体反射之后,通过透镜聚焦而被感测像素侦测到的信号差异即相当于需消除的相对照度差异。在此情形下,依据扫描过程中得到的图像信号IMG,可利用补偿控制电路430计算每一感测像素相应的补偿值CMP,并将补偿值CMP存入存储单元432中,或更新存储单元432所存储的补偿值CMP数据。During the test process, the object to be tested may be an object with a smooth surface, such as a rubber sheet. The fingerprint sensor scans the object to obtain an image signal IMG, and transmits the image signal IMG to the
接着,在进行指纹识别流程时,指纹感测区域上的待测物体为手指,此时图像补偿电路40判断需要进行相对照度补偿,因此,指纹感测器进行扫描并将相应的图像信号IMG传送至模拟前端电路410,同时模拟前端电路410中的数字模拟转换器414可从存储单元432取出相应的补偿值CMP并转换为补偿电压,增益放大器412将图像信号IMG放大并加入补偿电压的补偿之后传送至模拟数字转换器420,由模拟数字转换器420转成数字码输出,从而通过后续的处理器进行指纹识别和判读。Next, when performing the fingerprint identification process, the object to be detected on the fingerprint sensing area is a finger, and at this time the
用于补偿图像信号的补偿值CMP可通过多种方式产生。在一实施例中,可根据感测像素与透镜中心的距离来决定所需要的补偿值CMP大小。如图6A所示,补偿值CMP完全是由像素(x,y)与镜心(cnt_x,cnt_y)的距离来决定,以对如图2所示的相对照度差异进行补偿。详细来说,可在指纹感测区域上,以透镜中心(cnt_x,cnt_y)为圆心设定一内圆(其半径为r_min)及一外圆(其半径为r_max),其中,外圆的半径r_max大于内圆的半径r_min。依据外圆及内圆,可将感测像素区分为第一区域R1、第二区域R2及第三区域R3,其中,第一区域R1位于内圆之内,第二区域R2位于内圆和外圆之间,第三区域R3位于外圆之外。The compensation value CMP for compensating the image signal can be generated in various ways. In one embodiment, the required compensation value CMP can be determined according to the distance between the sensing pixel and the center of the lens. As shown in FIG. 6A , the compensation value CMP is entirely determined by the distance between the pixel (x, y) and the mirror center (cnt_x, cnt_y), so as to compensate for the relative illuminance difference shown in FIG. 2 . Specifically, on the fingerprint sensing area, an inner circle (with a radius of r_min) and an outer circle (with a radius of r_max) can be set with the center of the lens (cnt_x, cnt_y) as the center, wherein the radius of the outer circle r_max is greater than the radius r_min of the inner circle. According to the outer circle and the inner circle, the sensing pixels can be divided into a first region R1, a second region R2 and a third region R3, wherein the first region R1 is located inside the inner circle, and the second region R2 is located between the inner circle and the outer circle. Between the circles, the third region R3 is located outside the outer circle.
接着,补偿控制电路430可分别针对不同区域的感测像素来计算其相应的补偿值CMP。其中,第一区域R1的感测像素位于内圆之内,代表这些像素靠近镜心而具有较大的相对照度,因此可将这些像素的补偿值CMP设定为一最大值,如255。第三区域R3的感测像素位于外圆之外,代表这些像素靠近透镜外围而具有较小的相对照度,因此可将这些像素的补偿值CMP设定为一最小值,如35。第二区域R2的感测像素位于内圆和外圆之间,其相应的补偿值CMP则位于最大值和最小值之间(即255与35之间),且随着像素与透镜中心的距离的增加而逐渐减少。如图6A所示,随着像素与镜心距离的增加,补偿值CMP为200、145、90依序递减。需注意的是,图6A所示的数值仅为本发明众多实施方式的其中一种,本领域技术人员可依据数字模拟转换器414的位数,采用适合的补偿值来转换成补偿电压。Next, the
在一实施例中,位于内圆和外圆之间的第二区域R2的感测像素的补偿值CMP可利用下列公式计算:In an embodiment, the compensation value CMP of the sensing pixels located in the second region R2 between the inner circle and the outer circle can be calculated using the following formula:
其中,r_data为一距离数据,用来表示像素与镜心的距离,而DAC_max及DAC_min分别代表最大及最小补偿值。通过上述公式的计算,可确保位于内圆和外圆之间的感测像素的补偿值CMP以线性方式由内而外递减,从而有效补偿透镜的光学特性所造成的相对照度差异。Wherein, r_data is a distance data, which is used to indicate the distance between the pixel and the mirror center, and DAC_max and DAC_min respectively represent the maximum and minimum compensation values. Through the calculation of the above formula, it can be ensured that the compensation value CMP of the sensing pixel located between the inner circle and the outer circle decreases linearly from the inside to the outside, thereby effectively compensating the relative illuminance difference caused by the optical characteristics of the lens.
需注意,图6A仅示出5×5个感测像素及其相应的补偿值作为范例。实际上,图像感测器上可能包括数百列及数百行的感测像素,可通过上述方式分区计算并取得每一像素相应的补偿值。It should be noted that FIG. 6A only shows 5×5 sensing pixels and their corresponding compensation values as an example. In fact, the image sensor may include hundreds of columns and rows of sensing pixels, and the compensation value corresponding to each pixel can be calculated and obtained in the above manner.
图6B示出了另一种补偿方式,除了针对透镜特性造成的相对照度差异进行补偿外,还针对光线聚光行为和组装公差等变异所造成的相对照度差异进行补偿。如上所述,光线通过手指反射再穿透透镜而到达图像感测器上的感测像素,其路径需通过面板结构、透镜等不同材质,再加上组装公差的影响,因而在感测像素上产生不规则的亮度差异。因此,在图6B的实施例中,可将感测像素分为数个图像网格,其中每一网格对应于一补偿值CMP,通过补偿后使整体亮度保持相近。在上述测试流程中,可利用图像感测器400对平滑表面的物体进行感测,以产生一感测结果。补偿控制电路430从而根据该感测结果来计算每一网格所需的补偿值CMP大小。根据透镜中心区域的相对照度较高而周边区域的相对照度较低的特性,所计算出的补偿值CMP大致符合这样的趋势,但存在些微的不规则差异,可形成例如图6B所示的补偿值CMP分布。Fig. 6B shows another compensation method, in addition to compensating for the difference in relative illuminance caused by lens characteristics, it also compensates for the difference in relative illuminance caused by variations such as light-gathering behavior and assembly tolerances. As mentioned above, the light is reflected by the finger and then passes through the lens to reach the sensing pixels on the image sensor. Produces irregular brightness differences. Therefore, in the embodiment of FIG. 6B , the sensing pixels can be divided into several image grids, wherein each grid corresponds to a compensation value CMP, and the overall brightness remains similar after compensation. In the above test process, the image sensor 400 can be used to sense an object with a smooth surface to generate a sensing result. The
需注意,图6B示出了5×5个网格及其相应的补偿值CMP作为范例,其中,每一网格可包括任意数量的感测像素。此外,依据感测区域的大小以及感测像素的总数,可将图像感测器上的像素依适合的方式分割成任意数量的网格,而不限于此。It should be noted that FIG. 6B shows 5×5 grids and their corresponding compensation values CMP as an example, wherein each grid may include any number of sensing pixels. In addition, according to the size of the sensing area and the total number of sensing pixels, the pixels on the image sensor can be divided into any number of grids in a suitable manner, without being limited thereto.
在另一实施例中,考虑透镜倾斜对图像信号IMG可能造成的影响,上述计算补偿值CMP的公式(1)也可对应进行调整。请回头参考图3,如图(b)及图(c)所示,当模块测试(Module Test,MT)过程中发现透镜倾斜的情况时,会出现某一侧的边界被阻挡而无法正确显示指纹图像。此时,感测区域呈现的指纹图像非正圆形,而是类似椭圆形的图案,如图7所示。其中,被阻挡的一侧出现亮度的急遽下降,而另一侧亮度下降的幅度则变得较为平缓。换言之,虽然指纹的图像信号IMG仍大致符合靠近透镜中心的相对照度较大而靠近透镜外围的相对照度较小且由内而外逐渐递减的分布,但相对照度在不同方向的递减速度将有所差异。In another embodiment, considering the possible influence of the lens tilt on the image signal IMG, the above formula (1) for calculating the compensation value CMP may also be adjusted accordingly. Please refer back to Figure 3, as shown in Figure (b) and Figure (c), when the lens is found to be tilted during the Module Test (Module Test, MT), the border on one side will be blocked and cannot be displayed correctly fingerprint image. At this time, the fingerprint image presented in the sensing area is not a perfect circle, but an oval-like pattern, as shown in FIG. 7 . Among them, a sharp decrease in brightness occurs on the blocked side, while the decrease in brightness on the other side becomes more gradual. In other words, although the image signal IMG of the fingerprint still roughly conforms to the distribution that the relative illuminance near the center of the lens is larger and the relative illuminance near the periphery of the lens is smaller and gradually decreases from inside to outside, but the relative illuminance decreases in different directions. difference.
一般来说,在指纹感测过程中,图像感测器会对手指覆盖的区域进行扫描和感光,而呈现如图6A所示的圆形图像,通过感测像素进行扫描并取得指纹图像的区域可视为感兴趣区域(Region of Interest,ROI)。当发生透镜倾斜的情况下,扫描的图像会出现部分区域被阻挡而无法取得指纹图像数据,因此感兴趣区域也须对应调整,以排除被阻挡的区域,避免被阻挡的位置上的图像信号影响到整体指纹识别结果。在一实施例中,可在模块测试过程中观察指纹图像并判断透镜倾斜的程度,据此修改指纹感测区域(如上述感兴趣区域);或者,图像感测器或图像补偿电路可依据侦测到的图像内容来判断透镜倾斜的程度(例如侦测图像是否发生偏移或出现亮度急遽下降的区块),以依据侦测结果来调整指纹感测区域。Generally speaking, during the fingerprint sensing process, the image sensor will scan and sense the area covered by the finger to present a circular image as shown in Figure 6A, and scan through the sensing pixels to obtain the area of the fingerprint image It can be regarded as a region of interest (Region of Interest, ROI). When the lens is tilted, some areas of the scanned image will be blocked and the fingerprint image data cannot be obtained. Therefore, the area of interest must be adjusted accordingly to exclude the blocked area and avoid the influence of the image signal on the blocked position. to the overall fingerprint recognition result. In one embodiment, the fingerprint image can be observed during the module test and the degree of lens inclination can be judged, thereby modifying the fingerprint sensing region (such as the above-mentioned region of interest); or, the image sensor or image compensation circuit can be based on the detection The detected image content is used to determine the degree of lens inclination (for example, to detect whether the image is shifted or if there is a block with a sharp drop in brightness), so as to adjust the fingerprint sensing area according to the detection result.
当发生透镜倾斜时,上述关于补偿值CMP的计算公式(1)也需对应进行调整。在一实施例中,可将位于内圆和外圆之间的感测像素相应的补偿值CMP投射到x轴和y轴上来进行计算,当透镜发生倾斜时,可根据透镜倾斜的方向来设定用于计算补偿值CMP的x轴和y轴方向,并据此将距离数据r_data(即像素与镜心的距离)乘上一参数,或直接调整距离数据r_data的数值。以图7为例,可设定x轴和y轴方向倾斜45度左右,依倾斜方向调整右上方和左下方的距离,并据此重新计算出适合的补偿值CMP。When the lens is tilted, the above calculation formula (1) about the compensation value CMP also needs to be adjusted correspondingly. In one embodiment, the compensation value CMP corresponding to the sensing pixel located between the inner circle and the outer circle can be projected onto the x-axis and y-axis for calculation. When the lens is tilted, it can be set according to the direction in which the lens tilts. Determine the x-axis and y-axis directions used to calculate the compensation value CMP, and accordingly multiply the distance data r_data (that is, the distance between the pixel and the mirror center) by a parameter, or directly adjust the value of the distance data r_data. Taking Figure 7 as an example, the x-axis and y-axis can be set to incline at about 45 degrees, and the distances between the upper right and lower left can be adjusted according to the inclination direction, and the appropriate compensation value CMP can be recalculated accordingly.
在一实施例中,可在模块测试失败的情况下进行因应透镜倾斜的补偿值调整。请参考图8,图8为本发明实施例用于补偿透镜倾斜的一图像处理流程80的流程图。如图8所示,系统可依据无透镜倾斜偏移的理想补偿值CMP,进行一次模块测试。当模块测试失败时,可根据图像的灰度变化,进一步判断是否出现透镜倾斜的情况(例如判断是否出现亮度急遽下降的区块)。若判断未发生透镜倾斜,可进行其它测试以寻找问题。若判断为透镜倾斜时,补偿控制电路430可依据透镜倾斜的方向,进一步计算并设定x轴和y轴方向,并调整感兴趣区域的范围。接着,补偿控制电路430可依据新的感兴趣区域、x轴和y轴来计算每一感测像素的补偿值CMP,再将补偿值CMP更新并存入存储单元432。图像感测器400并依据更新后的补偿值CMP重新进行扫描并输出指纹数据至后端进行指纹识别,以判断利用新的补偿值CMP进行补偿之后得到的指纹数据是否正确。在此例中,若重新扫描仍发生识别错误的情况,补偿控制电路430可重新进行计算并调整参数,直到取得正确的指纹识别结果为止。In one embodiment, the compensation value adjustment according to the tilt of the lens can be performed when the module test fails. Please refer to FIG. 8 , which is a flow chart of an
请参考图9,图9为本发明实施例根据透镜倾斜方向调整轴线以计算补偿值的示意图。如图9所示,依据透镜倾斜的方向,可将x轴及y轴倾斜45度角。举例来说,右上方到左下方的轴线可视为x轴,左上方到右下方的轴线可视为y轴。然而,将x轴与y轴替换也不影响本实施例的说明。此外,右下、左下、右上及左上4个方向分别设定4个参数WGT_0、WGT_1、WGT_2及WFT_3,这些参数可分别对应于该轴线方向的相对照度分布,并用来调整该方向的感测像素的补偿值。也就是说,感测像素相应的补偿值可根据透镜倾斜的方向及倾斜程度,并根据该像素的位置,藉由相应的参数WGT_0、WGT_1、WGT_2及/或WFT_3来进行调整。Please refer to FIG. 9 , which is a schematic diagram of adjusting the axis according to the tilting direction of the lens to calculate the compensation value according to an embodiment of the present invention. As shown in FIG. 9 , according to the tilting direction of the lens, the x-axis and the y-axis can be tilted at an angle of 45 degrees. For example, the axis from the upper right to the lower left can be regarded as the x-axis, and the axis from the upper left to the lower right can be regarded as the y-axis. However, replacing the x-axis with the y-axis does not affect the description of this embodiment. In addition, four parameters WGT_0, WGT_1, WGT_2 and WFT_3 are respectively set for the four directions of lower right, lower left, upper right and upper left. These parameters can respectively correspond to the relative illuminance distribution in this axis direction and be used to adjust the sensing pixels in this direction compensation value. That is to say, the corresponding compensation value of the sensing pixel can be adjusted according to the direction and degree of lens inclination, and according to the position of the pixel, through corresponding parameters WGT_0, WGT_1, WGT_2 and/or WFT_3.
请进一步参考图10,其示出了透镜在不同倾斜方向之下产生不同的参数WGT_0、WGT_1、WGT_2及WFT_3数值。举例来说,位于中间的图是透镜未倾斜的理想图案,其亮度为中心最亮,并且向四周均匀地下降,因此所有方向的参数WGT_0~WGT_3都可设为1,代表计算出的补偿值CMP不需调整。在左上、右上、左下及右下4张图中,指纹图像分别呈现透镜朝向不同方向倾斜的偏移,且倾斜方向分别对应于4个轴线的方向,在这些图例中,透镜倾斜造成某一方向的亮度下降地特别缓慢,因此,该方向的轴线参数WGT可设定为32/64,代表位于该方向像素的补偿值CMP的计算过程中,距离数据r_data需乘上参数32/64,从而套用至公式(1)而得到该像素的补偿值CMP。其中,参数WGT=32/64相当于该方向的亮度下降的速度降为原先的1/2。另外,如上、下、左、右的4张图所示,其分别在上、下、左、右方向的亮度下降的速度减缓,因此相应轴线上的参数WGT可设定为32/64,可据此计算出对应方向像素的补偿值CMP。以上方的图为例,可将参数WGT_2及WGT_3分别设定为32/64,并据此计算并调整位于感测器阵列上半部的感测像素的补偿值CMP。Please further refer to FIG. 10 , which shows that different values of parameters WGT_0 , WGT_1 , WGT_2 and WFT_3 are generated under different tilt directions of the lens. For example, the picture in the middle is an ideal pattern with the lens not tilted. Its brightness is the brightest in the center and decreases uniformly to the surroundings. Therefore, the parameters WGT_0~WGT_3 in all directions can be set to 1, representing the calculated compensation value CMP does not need to be adjusted. In the upper left, upper right, lower left, and lower right images, the fingerprint images show the offset of the lens tilted in different directions, and the tilt directions correspond to the directions of the four axes. In these illustrations, the lens tilt causes the brightness in a certain direction The decline is very slow, so the axis parameter WGT in this direction can be set to 32/64, which means that during the calculation of the compensation value CMP of the pixel in this direction, the distance data r_data needs to be multiplied by the parameter 32/64, so as to be applied to the formula (1) Obtain the compensation value CMP of the pixel. Wherein, the parameter WGT=32/64 is equivalent to reducing the speed of brightness decrease in this direction to 1/2 of the original one. In addition, as shown in the four pictures of up, down, left, and right, the speeds of brightness decline in the directions of up, down, left, and right are slowed down, so the parameter WGT on the corresponding axis can be set to 32/64, which can be Based on this, the compensation value CMP of the pixel in the corresponding direction is calculated. Taking the above figure as an example, the parameters WGT_2 and WGT_3 can be set to 32/64 respectively, and the compensation value CMP of the sensing pixels located in the upper half of the sensor array can be calculated and adjusted accordingly.
换言之,参数WGT_0、WGT_1、WGT_2及WGT_3可在不同方向上根据透镜倾斜造成该方向亮度下降的速度快慢来进行设定。在一张指纹图像上,可依据透镜倾斜的状况对参数WGT_0~WGT_3中的一或多者进行调整。需注意的是,上述数值32/64仅是说明用来补偿亮度下降速度减缓的其中一种范例值,实际数值可依据透镜倾斜的程度而定,且不同方向可设定不同的参数值,从而计算出更为理想的图像信号补偿值。In other words, the parameters WGT_0 , WGT_1 , WGT_2 and WGT_3 can be set in different directions according to the speed at which the luminance decreases in that direction caused by the tilt of the lens. On a fingerprint image, one or more of the parameters WGT_0˜WGT_3 can be adjusted according to the tilt of the lens. It should be noted that the above value of 32/64 is only one of the sample values used to compensate for the slowing down of brightness decline. The actual value can be determined according to the degree of lens inclination, and different parameter values can be set in different directions, so that A more ideal image signal compensation value is calculated.
值得注意的是,本发明的目的在于提供一种可对图像感测器所输出的图像信号进行补偿的图像补偿电路及其图像补偿方法,可根据透镜特性、组件变异、组装公差、及/或透镜倾斜等因素对图像信号上产生的相对照度差异进行补偿。本领域技术人员当可据此进行修饰或变化,而不限于此。举例来说,在上述实施例中,图像信号IMG是以电压的形式传送至模拟前端电路,再通过模拟数字转换器将电压信号转换为数字码。再另一实施例中,可依据图像感测器的类型,利用电流信号或其它信号来携带指纹信息以进行传送,而模拟前端电路可将电流信号转换为电压信号再通过补偿电压进行补偿。此外,上述实施例都是以指纹感测器及指纹信号为例来说明图像感测器的相关运作;然而,本领域技术人员应了解,本发明的实施例适用于具有任意目的的光学式图像感测器,只要是利用光线感测来取得感测信息的图像感测器,都可能受到透镜照度差异、组装公差、及/或透镜倾斜等因素的影响而产生图像信号的误差,因此都可通过本发明的图像补偿电路及方法来进行补偿。It should be noted that the object of the present invention is to provide an image compensation circuit and an image compensation method capable of compensating the image signal output by the image sensor, which can be based on lens characteristics, component variations, assembly tolerances, and/or Factors such as lens tilt compensate for relative illuminance differences on the image signal. Those skilled in the art may make modifications or changes accordingly, but are not limited thereto. For example, in the above embodiments, the image signal IMG is transmitted to the analog front-end circuit in the form of voltage, and then the voltage signal is converted into digital code by the analog-to-digital converter. In yet another embodiment, according to the type of the image sensor, the current signal or other signals may be used to carry fingerprint information for transmission, and the analog front-end circuit may convert the current signal into a voltage signal and compensate with a compensation voltage. In addition, the above-mentioned embodiments all take the fingerprint sensor and the fingerprint signal as an example to illustrate the related operation of the image sensor; however, those skilled in the art should understand that the embodiments of the present invention are applicable to any optical image Sensors, as long as they are image sensors that use light sensing to obtain sensing information, may be affected by factors such as lens illumination differences, assembly tolerances, and/or lens tilts to generate image signal errors, and therefore can be Compensation is performed through the image compensation circuit and method of the present invention.
除此之外,本发明的图像补偿电路(如图4所示的图像补偿电路40)可实现于一感测集成电路(Integrated Circuit,IC)中。此外,包括感测像素阵列的图像感测器可以和图像补偿电路中的其它电路组件整合在同一颗集成电路中;或是整合在一显示屏并通过面板工艺来实现,同时利用面板的光源来进行感测;或者,图像感测器也可独立于显示屏和补偿电路而单独设置。另外,时序控制器也可以和图像补偿电路中的其它电路组件整合在同一颗集成电路中,或设置于单独存在的集成电路。In addition, the image compensation circuit of the present invention (the
另外需注意的是,本发明的图像补偿电路及方法是用来补偿图像信号中对应于不同感测像素的相对照度差异,而相对照度的差异通常是以亮度的不同来呈现。因此,上述实施例所提到的相对照度差异或亮度差异均为图像信号上需要补偿的部分,其名称在本说明书中可互相替换,不影响实施例的说明。It should also be noted that the image compensation circuit and method of the present invention are used to compensate the difference in relative illuminance corresponding to different sensing pixels in the image signal, and the difference in relative illuminance is usually represented by the difference in brightness. Therefore, the relative illuminance difference or luminance difference mentioned in the above-mentioned embodiments are all parts of the image signal that need to be compensated, and their names can be replaced with each other in this specification without affecting the description of the embodiments.
综上所述,本发明提出了一种针对不同感测像素相应的相对照度差异进行补偿的图像补偿电路及方法,可用于图像感测器(如光学式指纹感测器)。图像补偿电路可在测试流程中进行感测,并取得各像素或网格的适当补偿值,或依据感测像素对应透镜中心的位置计算相应的补偿值,并将补偿值存储在存储单元中。接着,可在指纹识别流程中利用数字模拟转换器从存储单元中取出补偿值,并将其转换为补偿电压来进行补偿。在一实施例中,可在模块测试中判断透镜是否发生倾斜,从而因应透镜倾斜的情况来调整补偿值。通过上述补偿,可提升整体指纹图像的亮度一致性。本发明的补偿方式可在模拟数字转换器之前的模拟前端电路进行,以在模拟端的增益放大器对图像信号放大之前或之后进行补偿,可避免图像信号进入模拟数字转换器时即达到饱和,以提升信号放大的空间。此外,针对解析度较差的指纹图像也能够更有效地进行放大并判读波峰波谷的差异。To sum up, the present invention proposes an image compensation circuit and method for compensating relative illuminance differences corresponding to different sensing pixels, which can be used in image sensors (such as optical fingerprint sensors). The image compensation circuit can sense during the test process and obtain the appropriate compensation value of each pixel or grid, or calculate the corresponding compensation value according to the position of the sensing pixel corresponding to the center of the lens, and store the compensation value in the storage unit. Then, a digital-to-analog converter can be used to fetch the compensation value from the storage unit in the process of fingerprint identification, and convert it into a compensation voltage for compensation. In one embodiment, it is possible to determine whether the lens is tilted during the module test, so as to adjust the compensation value according to the lens tilt. Through the above compensation, the brightness consistency of the overall fingerprint image can be improved. The compensation method of the present invention can be carried out in the analog front-end circuit before the analog-to-digital converter, so as to compensate before or after the image signal is amplified by the gain amplifier at the analog end, which can prevent the image signal from reaching saturation when it enters the analog-to-digital converter, so as to improve room for signal amplification. In addition, fingerprint images with poor resolution can be more effectively enlarged and the difference between peaks and valleys can be judged.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (24)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111382323.8A CN116152864A (en) | 2021-11-22 | 2021-11-22 | Image compensation circuit and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111382323.8A CN116152864A (en) | 2021-11-22 | 2021-11-22 | Image compensation circuit and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116152864A true CN116152864A (en) | 2023-05-23 |
Family
ID=86339391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111382323.8A Pending CN116152864A (en) | 2021-11-22 | 2021-11-22 | Image compensation circuit and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116152864A (en) |
-
2021
- 2021-11-22 CN CN202111382323.8A patent/CN116152864A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1781017B1 (en) | Methods and devices for image signal processing | |
US9451187B2 (en) | Lens shading calibration for cameras | |
US6950139B2 (en) | Image reading device and storage medium storing control procedure for image reading device | |
JP2008513968A (en) | Measuring method of brightness and uniformity in organic LED display | |
JPH04213272A (en) | Sensor compensation method of document scanner | |
US20090040371A1 (en) | Methods, systems and apparatuses for pixel value correction using multiple vertical and/or horizontal correction curves | |
US7492963B2 (en) | Method for adjusting image data | |
US9936129B2 (en) | Generating high resolution images | |
CN108803006B (en) | Optical fiber scanning imaging system, optical fiber scanning imaging equipment and distortion detection and correction system of optical fiber scanning imaging equipment | |
US4829339A (en) | Film printing/reading system | |
TWI789127B (en) | Image compensation circuit and method | |
CN116152864A (en) | Image compensation circuit and method | |
JP2015201828A (en) | Color correction device and color correction method | |
JP3418812B2 (en) | Pixel replacement method for infrared imaging device | |
US11122188B1 (en) | Image noise reduction device and method thereof | |
US20030220741A1 (en) | Signal processing apparatus and signal processing program | |
JP2010244537A (en) | Image distortion correction method | |
US6914701B2 (en) | Digitizer with improved dynamic range and photometric resolution | |
US4922284A (en) | Film printing/reading system | |
KR20050058221A (en) | Signal processing method and image acquisition device | |
RU87854U1 (en) | IMAGE FORMING DEVICE | |
JP4067728B2 (en) | Correction method of input / output characteristics of infrared detector | |
US20230412940A1 (en) | Image pickup apparatus and image processing method | |
KR102249187B1 (en) | Apparatus For Processing Image Of X-ray Film Using Multi-Scan Technique | |
KR100697541B1 (en) | Imaging Circuits and Methods of Space Compensation |
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 |