CN116152864A - Image compensation circuit and method - Google Patents

Image compensation circuit and method Download PDF

Info

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
Application number
CN202111382323.8A
Other languages
Chinese (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.)
Novatek Microelectronics Corp
Original Assignee
Novatek Microelectronics Corp
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 Novatek Microelectronics Corp filed Critical Novatek Microelectronics Corp
Priority to CN202111382323.8A priority Critical patent/CN116152864A/en
Publication of CN116152864A publication Critical patent/CN116152864A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)

Abstract

本发明公开了一种图像补偿电路及方法,所述图像补偿电路用于一图像感测器,并包括一增益放大器、一补偿控制电路、一存储单元及一数字模拟转换器。该增益放大器用来从该图像感测器接收多个图像信号,并对该多个图像信号进行放大。该补偿控制电路用来产生用于该多个图像信号的多个补偿值。该存储单元耦接于该补偿控制电路,用来存储该多个补偿值。该数字模拟转换器耦接于该存储单元及该增益放大器,用来分别将该多个补偿值转换为多个补偿电压,以利用该多个补偿电压来补偿该多个图像信号。

Figure 202111382323

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.

Figure 202111382323

Description

图像补偿电路及方法Image compensation circuit and method

技术领域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 fingerprint sensor module 10 . As shown in FIG. 1 , the optical fingerprint sensor module 10 includes a panel 102 , a lens 104 and a sensor 106 , which are stacked together to form a modular structure. The operating principle of the optical fingerprint sensor module 10 is that the light source through the panel 102 emits light to the place where the finger is pressed. When the light irradiates the fingerprint of the finger and is reflected, it will pass through the structure of the panel 102 and reach the lens 104, where the light is collected by the lens 104. And then to the pixels on the sensor 106, the pixels can convert the sensed light intensity into a voltage signal, which is processed by the back-end circuit to output a complete fingerprint image.

如图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 fingerprint sensor module 10 , light reflected from the finger and reaching the sensor 106 passes through the structure of the panel 102 and the lens 104 . Due to the differences in the characteristics of the components themselves and assembly tolerances, the relative illuminance at different positions of the sensor 106 may vary greatly. Variation (as shown in Figure 1, there may be errors in the heights z1, z2, and z3 of each part of the module); individual modules have different absorption rates for light; there are differences in the uniformity and illuminance of the light spot of the display, and the light passing through the panel 102 is easily affected by its structure The influence of the curvature of the lens 104 itself; the assembly tolerance may occur more or less during the module assembly process, which may cause the lens 104 to tilt and increase the brightness contrast. The above factors all cause variations in the light-gathering behavior of the optical fingerprint sensor module 10 , resulting in errors in output image signals.

请参考图2,图2为透镜104的相对照度的示意图。如图2所示,根据透镜104的光学特性,中心区域(距离镜心较近的区域)具有较高的相对照度,而周边区域(距离镜心较远的区域)具有较低的相对照度。因此,透镜上存在中心区域通常具有较高亮度而周边区域通常具有较低亮度的固定偏移,呈现如图2所示的等亮圆形。Please refer to FIG. 2 , which is a schematic diagram of the relative illuminance of the lens 104 . As shown in FIG. 2 , according to the optical characteristics of the lens 104 , the central region (the region closer to the center of the mirror) has higher relative illuminance, while the peripheral region (the region farther away from the center of the mirror) has lower relative illuminance. Therefore, there is a fixed offset on the lens where the central area usually has higher brightness and the peripheral area usually has lower brightness, presenting an isoluminous circle as shown in FIG. 2 .

请参考图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 fingerprint sensor module 10 to compensate for errors caused by factors such as lens characteristics, component variations, assembly tolerances, and lens tilts on image signals. and offset.

发明内容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 Embodiment 1 of the present invention.

图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 image compensation circuit 40 according to an embodiment of the present invention. The image compensation circuit 40 includes an image sensor 400, an analog front-end (Analog Front-End, AFE) circuit 410, an analog-to-digital converter (Analog-to-Digital Converter, ADC) 420, a compensation control circuit 430, a The storage unit 432 and a timing controller 440 . The image sensor 400 includes a plurality of sensing pixels arranged in an array, wherein each sensing pixel includes a photosensitive element (such as a photodiode), which can be used to detect light and convert the intensity of the light into a voltage or an image signal IMG in the form of a current. In one embodiment, the image sensor 400 may be an optical fingerprint sensor, which is used to detect light reflected from a finger for fingerprint sensing. The analog front-end circuit 410 is coupled to the image sensor 400 and can receive an image signal IMG from the image sensor 400 and process the image signal IMG. Specifically, the analog front-end circuit 410 includes a Programmable Gain Amplifier (PGA) 412 and a Digital-to-Analog Converter (DAC) 414 . The programmable gain amplifier 412 can amplify the image signal IMG from the image sensor 400, and its gain can be adjusted according to system requirements. The digital-to-analog converter 414 can convert the compensation value CMP used to compensate the image signal IMG into a corresponding compensation voltage, so as to use the compensation voltage to compensate the image signal IMG. After the image signal IMG is amplified and compensated in the analog front-end circuit 410, the image signal IMG in voltage form can be converted into a digital code by the analog-to-digital converter 420, and output to the back-end processor in the form of digital code through the image output interface For fingerprint reading, the output interface may be, for example, a serial peripheral interface (Serial Peripheral Interface, SPI), but not limited thereto.

时序控制器440耦接于图像感测器400,可用来控制图像感测器400的感测运作。如上所述,图像感测器400包括多个感测像素所构成的阵列,而时序控制器440可用来控制该多个感测像素进行图像感测及输出图像信号IMG的时序。详细来说,图像感测器400可搭配一列解码器402及一行解码器404进行设置,列解码器402可用来一列一列地驱动像素运作,行解码器404可用来一行一行地驱动像素运作。时序控制器440可藉由控制列解码器402及行解码器404交互运作来控制图像感测器400上的感测像素。一般来说,光学式指纹感测包括重置、曝光和采样等运作,时序控制器440可控制各感测像素依照预定的时序进行上述感测运作并输出图像信号IMG。The timing controller 440 is coupled to the image sensor 400 and can be used to control the sensing operation of the image sensor 400 . As mentioned above, the image sensor 400 includes an array of a plurality of sensing pixels, and the timing controller 440 can be used to control the timing of the plurality of sensing pixels to perform image sensing and output the image signal IMG. In detail, the image sensor 400 can be set up with a column decoder 402 and a row decoder 404 , the column decoder 402 can be used to drive pixels to operate column by column, and the row decoder 404 can be used to drive pixels to operate row by row. The timing controller 440 can control the sensing pixels on the image sensor 400 by controlling the interworking of the column decoder 402 and the row decoder 404 . In general, optical fingerprint sensing includes operations such as reset, exposure, and sampling. The timing controller 440 can control each sensing pixel to perform the above sensing operations according to a predetermined timing and output an image signal IMG.

补偿控制电路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 compensation control circuit 430 can be used to generate a compensation value CMP for the image signal IMG, and the compensation value CMP can be used to compensate a relative illumination (Relative Illumination, RI) error in the image signal IMG. According to FIG. 2 , it can be known that the characteristics of the lens cause different relative illuminance among different sensing pixels. Therefore, each pixel has its corresponding compensation value CMP for compensating the difference in relative illuminance. In this case, the timing controller 440 can be coupled to the compensation control circuit 430 . In addition to controlling the timing of the sensing pixels outputting the image signal IMG, the timing controller 440 can also provide the coordinate information of the sensing pixels to the compensation control circuit 430, so that the compensation control circuit 430 can generate images corresponding to each sensor according to the coordinate information. The compensation value CMP of the pixel is measured, and the compensation value CMP is stored in the storage unit 432 . The storage unit 432 may be a register implemented by, for example, a D flip-flop. When the sensing pixel outputs the image signal IMG to the analog front-end circuit 410, the digital-to-analog converter 414 can fetch the corresponding compensation value CMP of the sensing pixel from the storage unit 432, and after converting the compensation value CMP into a corresponding compensation voltage, The received image signal IMG is added for compensation.

在一实施例中,图像信号IMG可先通过可编程增益放大器412进行放大之后,再通过补偿电压进行补偿;或者,也可先通过补偿电压对图像信号IMG进行补偿,再通过可编程增益放大器412进行放大。本领域技术人员可依据实际需求选择适合的补偿方式,其不应用以限制本发明的范畴。In one embodiment, the image signal IMG can be amplified by the programmable gain amplifier 412 first, and then compensated by the compensation voltage; or, the image signal IMG can be compensated by the compensation voltage first, and then compensated by the programmable gain amplifier 412 to zoom in. Those skilled in the art can select a suitable compensation method according to actual needs, which should not be used to limit the scope of the present invention.

在一实施例中,补偿电压可以是施加于图像信号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 compensation control circuit 430 can generate a relatively large compensation value CMP to subtract a relatively large voltage from the image signal IMG; for pixels with relatively low relative illuminance, the compensation control circuit 430 can 430 can generate a smaller compensation value CMP to subtract a smaller voltage from the image signal IMG. In this way, the influence caused by the difference in relative illuminance between different pixels can be eliminated, thereby improving the consistency of the relative illuminance, so that the overall image signal IMG falls on a similar level.

因此,完成补偿之后的图像信号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-digital converter 420 Afterwards, it can be easily identified by the subsequent processing circuit, and the fingerprint image with poor resolution can be more effectively enlarged and the difference between the peak and the valley can be judged. It should be noted that the present invention performs compensation before the image signal IMG is converted into digital data, so as to avoid signal saturation causing the analog-to-digital converter 420 to eliminate fingerprint information during conversion.

请参考图5,图5为本发明实施例一图像处理流程50的流程图。图像处理流程50可用于一图像补偿电路(如图4所示的图像补偿电路40),用来从图像感测器400(下文以指纹感测器为例)接收指纹图像信号并且对指纹图像信号进行扫描、补偿及识别。Please refer to FIG. 5 , which is a flowchart of an image processing process 50 according to an embodiment of the present invention. The image processing flow 50 can be used in an image compensation circuit (such as the image compensation circuit 40 shown in FIG. 4 ), which is used to receive the fingerprint image signal from the image sensor 400 (fingerprint sensor is used as an example hereinafter) and process the fingerprint image signal Scan, compensate and identify.

图像处理流程50可区分为测试流程及指纹识别流程两部分。首先,可在指纹感测器的感测区域上放置一待测物体,同时指纹感测器所对应的面板显示光斑,以将光线投射向待测物体,通过待测物体反射之后,通过透镜的聚焦而到达指纹感测器上的感测像素进行成像。The image processing process 50 can be divided into two parts: a testing process and a fingerprint identification process. First, an object to be tested can be placed on the sensing area of the fingerprint sensor, and the panel corresponding to the fingerprint sensor displays light spots to project the light to the object to be tested. After being reflected by the object to be tested, it passes through the lens Focusing and reaching the sensing pixels on the fingerprint sensor for imaging.

在测试流程中,待测物体可以是具有一平滑表面的物体,例如橡胶片,指纹感测器对待测物体进行扫描以取得图像信号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 image compensation circuit 40 . During the test process, the image compensation circuit 40 may determine that the compensation has not been completed, and sequentially obtain the image signals IMG corresponding to each sensing pixel. At this time, since the object to be detected is an object with a smooth surface and there is no difference between the peaks and valleys of the fingerprint, when there is no relative illuminance error, the image compensation circuit 40 expects that each sensing pixel should generate an image signal IMG with the same voltage . That is to say, after the light is reflected by the smooth object, the signal difference detected by the sensing pixels through lens focusing is equivalent to the relative illuminance difference to be eliminated. In this case, according to the image signal IMG obtained during the scanning process, the compensation control circuit 430 can be used to calculate the compensation value CMP corresponding to each sensing pixel, and store the compensation value CMP in the storage unit 432, or update the storage unit 432 Stored compensation value CMP data.

接着,在进行指纹识别流程时,指纹感测区域上的待测物体为手指,此时图像补偿电路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 image compensation circuit 40 judges that relative illuminance compensation needs to be performed, so the fingerprint sensor scans and transmits the corresponding image signal IMG To the analog front-end circuit 410, at the same time, the digital-to-analog converter 414 in the analog front-end circuit 410 can take out the corresponding compensation value CMP from the storage unit 432 and convert it into a compensation voltage, and the gain amplifier 412 amplifies the image signal IMG and adds it to the compensation voltage after compensation The data is transmitted to the analog-to-digital converter 420, and converted into digital code by the analog-to-digital converter 420 for output, so that fingerprint identification and interpretation can be performed by a subsequent processor.

用于补偿图像信号的补偿值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 compensation control circuit 430 can calculate corresponding compensation values CMP for the sensing pixels in different regions. Wherein, the sensing pixels of the first region R1 are located within the inner circle, which means that these pixels are close to the center of the mirror and have relatively large relative illuminance. Therefore, the compensation value CMP of these pixels can be set to a maximum value, such as 255. Sensing pixels in the third region R3 are located outside the outer circle, which means that these pixels are close to the periphery of the lens and have a relatively small relative illuminance. Therefore, the compensation value CMP of these pixels can be set to a minimum value, such as 35. The sensing pixels of the second region R2 are located between the inner circle and the outer circle, and the corresponding compensation value CMP is located between the maximum value and the minimum value (that is, between 255 and 35), and with the distance between the pixel and the lens center increase and gradually decrease. As shown in FIG. 6A , as the distance between the pixel and the mirror center increases, the compensation values CMP are 200, 145, and 90, which decrease sequentially. It should be noted that the value shown in FIG. 6A is only one of many embodiments of the present invention, and those skilled in the art can use an appropriate compensation value to convert the compensation voltage according to the number of digits of the digital-to-analog converter 414 .

在一实施例中,位于内圆和外圆之间的第二区域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:

Figure BDA0003366024580000081
Figure BDA0003366024580000081

其中,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 compensation control circuit 430 thus calculates the required compensation value CMP for each grid according to the sensing result. According to the characteristic that the relative illuminance in the central area of the lens is relatively high and the relative illuminance in the peripheral area is low, the calculated compensation value CMP roughly conforms to this trend, but there are slight irregular differences, which can form the compensation as shown in Figure 6B Value CMP distribution.

需注意,图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 image processing procedure 80 for compensating lens tilt according to an embodiment of the present invention. As shown in FIG. 8 , the system can perform a module test according to the ideal compensation value CMP without lens tilt offset. When the module test fails, it can be further judged whether there is a tilt of the lens (for example, whether there is a block with a sharp drop in brightness) according to the grayscale change of the image. If it is judged that the lens is not tilted, other tests can be performed to find the problem. If it is determined that the lens is tilted, the compensation control circuit 430 may further calculate and set the x-axis and y-axis directions according to the tilted direction of the lens, and adjust the range of the ROI. Then, the compensation control circuit 430 can calculate the compensation value CMP of each sensing pixel according to the new region of interest, the x-axis and the y-axis, and then update and store the compensation value CMP into the storage unit 432 . The image sensor 400 re-scans according to the updated compensation value CMP and outputs the fingerprint data to the backend for fingerprint recognition, so as to determine whether the fingerprint data obtained after compensation with the new compensation value CMP is correct. In this example, if the recognition error still occurs after re-scanning, the compensation control circuit 430 may recalculate and adjust parameters until a correct fingerprint recognition result is obtained.

请参考图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 image compensation circuit 40 shown in FIG. 4 ) can be implemented in a sensing integrated circuit (Integrated Circuit, IC). In addition, the image sensor including the sensing pixel array can be integrated in the same integrated circuit with other circuit components in the image compensation circuit; sensing; alternatively, the image sensor can also be set independently of the display screen and compensation circuit. In addition, the timing controller can also be integrated into the same integrated circuit with other circuit components in the image compensation circuit, or be arranged in a separate integrated circuit.

另外需注意的是,本发明的图像补偿电路及方法是用来补偿图像信号中对应于不同感测像素的相对照度差异,而相对照度的差异通常是以亮度的不同来呈现。因此,上述实施例所提到的相对照度差异或亮度差异均为图像信号上需要补偿的部分,其名称在本说明书中可互相替换,不影响实施例的说明。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)

1.一种图像补偿电路,用于一图像感测器,该图像补偿电路包括:1. An image compensation circuit for an image sensor, the image compensation circuit comprising: 一增益放大器,用来从该图像感测器接收多个图像信号,并对该多个图像信号进行放大;a gain amplifier, used to receive a plurality of image signals from the image sensor, and amplify the plurality of image signals; 一补偿控制电路,用来产生用于该多个图像信号的多个补偿值;a compensation control circuit for generating a plurality of compensation values for the plurality of image signals; 一存储单元,耦接于该补偿控制电路,用来存储该多个补偿值;以及a storage unit, coupled to the compensation control circuit, for storing the plurality of compensation values; and 一数字模拟转换器,耦接于该存储单元及该增益放大器,用来分别将该多个补偿值转换为多个补偿电压,以利用该多个补偿电压来补偿该多个图像信号。A digital-to-analog converter, coupled to the storage unit and the gain amplifier, is used to respectively convert the plurality of compensation values into a plurality of compensation voltages, so as to use the plurality of compensation voltages to compensate the plurality of image signals. 2.如权利要求1所述的图像补偿电路,其特征在于,该多个图像信号分别来自于该图像感测器中的多个感测像素,且该多个补偿值分别对应于该多个感测像素,以对该多个图像信号中相应的图像信号进行补偿。2. The image compensation circuit according to claim 1, wherein the plurality of image signals respectively come from a plurality of sensing pixels in the image sensor, and the plurality of compensation values respectively correspond to the plurality of Pixels are sensed to compensate corresponding image signals of the plurality of image signals. 3.如权利要求2所述的图像补偿电路,其特征在于,还包括:3. The image compensation circuit according to claim 2, further comprising: 一时序控制器,耦接于该补偿控制电路,用来提供该多个感测像素的一坐标信息给该补偿控制电路;a timing controller, coupled to the compensation control circuit, for providing coordinate information of the plurality of sensing pixels to the compensation control circuit; 其中,该补偿控制电路根据该坐标信息来产生分别对应于该多个感测像素的该多个补偿值。Wherein, the compensation control circuit generates the plurality of compensation values respectively corresponding to the plurality of sensing pixels according to the coordinate information. 4.如权利要求1所述的图像补偿电路,其特征在于,该多个图像信号先通过该增益放大器进行放大之后,再通过该多个补偿电压进行补偿。4. The image compensation circuit according to claim 1, wherein the plurality of image signals are first amplified by the gain amplifier, and then compensated by the plurality of compensation voltages. 5.如权利要求1所述的图像补偿电路,其特征在于,该多个图像信号先通过该多个补偿电压进行补偿之后,再通过该增益放大器进行放大。5. The image compensation circuit according to claim 1, wherein the plurality of image signals are compensated by the plurality of compensation voltages first, and then amplified by the gain amplifier. 6.如权利要求1所述的图像补偿电路,其特征在于,该图像感测器包括一透镜,该多个补偿值分别对应于该图像感测器中的多个感测像素,且该多个补偿值的大小分别根据该多个感测像素与该透镜的中心的距离来决定。6. The image compensation circuit according to claim 1, wherein the image sensor comprises a lens, the plurality of compensation values respectively correspond to a plurality of sensing pixels in the image sensor, and the plurality of The magnitudes of the compensation values are respectively determined according to the distances between the plurality of sensing pixels and the center of the lens. 7.如权利要求6所述的图像补偿电路,其特征在于,该多个感测像素根据其与该透镜的中心的距离被区分为一第一区域、一第二区域、及一第三区域,其中,该第一区域位于以该透镜的中心为圆心的一内圆之内,该第二区域位于该内圆和以该透镜的中心为圆心的一外圆之间,该第三区域位于该外圆之外。7. The image compensation circuit according to claim 6, wherein the plurality of sensing pixels are divided into a first area, a second area, and a third area according to their distance from the center of the lens , wherein the first area is located within an inner circle centered on the center of the lens, the second area is located between the inner circle and an outer circle centered on the center of the lens, and the third area is located outside the outer circle. 8.如权利要求7所述的图像补偿电路,其特征在于,该第一区域的该多个感测像素相应的该多个补偿值具有一最大值,该第三区域的该多个感测像素相应的该多个补偿值具有一最小值,该第二区域的该多个感测像素相应的该多个补偿值位于该最大值及该最小值之间且随着与该透镜的中心的距离的增加而逐渐减少。8. The image compensation circuit according to claim 7, wherein the plurality of compensation values corresponding to the plurality of sensing pixels in the first area has a maximum value, and the plurality of sensing pixels in the third area The plurality of compensation values corresponding to the pixels have a minimum value, the plurality of compensation values corresponding to the plurality of sensing pixels in the second region are located between the maximum value and the minimum value and along with the center of the lens gradually decreases with increasing distance. 9.如权利要求7所述的图像补偿电路,其特征在于,该第二区域的该多个感测像素相应的该多个补偿值投射到一轴线来进行计算,当该透镜发生倾斜时,该轴线的方向是根据该透镜倾斜的方向来进行设定。9. The image compensation circuit according to claim 7, wherein the plurality of compensation values corresponding to the plurality of sensing pixels in the second region are projected onto an axis for calculation, and when the lens is tilted, The direction of the axis is set according to the direction in which the lens is tilted. 10.如权利要求6所述的图像补偿电路,其特征在于,当该透镜发生倾斜时,该多个补偿值是根据该透镜倾斜的方向及倾斜的程度来进行调整。10. The image compensation circuit as claimed in claim 6, wherein when the lens is tilted, the plurality of compensation values are adjusted according to the tilting direction and the tilting degree of the lens. 11.如权利要求10所述的图像补偿电路,其特征在于,当该透镜发生倾斜时,将该多个补偿值相应的多个感测像素的一距离数据分别乘上一参数,以调整该多个补偿值。11. The image compensation circuit according to claim 10, wherein when the lens is tilted, a parameter is multiplied by a distance data of a plurality of sensing pixels corresponding to the plurality of compensation values to adjust the Multiple compensation values. 12.如权利要求1所述的图像补偿电路,其特征在于,该多个补偿值的大小是根据一测试流程中利用该图像感测器对一平滑表面物体进行感测所产生的一感测结果来决定。12. The image compensation circuit according to claim 1, wherein the magnitudes of the plurality of compensation values are based on a sensing result generated by using the image sensor to sense a smooth surface object in a test process results to decide. 13.一种图像补偿方法,用于一图像补偿电路,该图像补偿方法包括:13. An image compensation method for an image compensation circuit, the image compensation method comprising: 从一图像感测器接收多个图像信号,并对该多个图像信号进行放大;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 storing the plurality of compensation values in a storage unit; and 分别将该多个补偿值转换为多个补偿电压,以利用该多个补偿电压来补偿该多个图像信号。The plurality of compensation values are respectively converted into a plurality of compensation voltages, so as to compensate the plurality of image signals by using the plurality of compensation voltages. 14.如权利要求13所述的图像补偿方法,其特征在于,该多个图像信号分别来自于该图像感测器中的多个感测像素,且该多个补偿值分别对应于该多个感测像素,以对该多个图像信号中相应的图像信号进行补偿。14. The image compensation method according to claim 13, wherein the plurality of image signals respectively come from a plurality of sensing pixels in the image sensor, and the plurality of compensation values respectively correspond to the plurality of Pixels are sensed to compensate corresponding image signals of the plurality of image signals. 15.如权利要求14所述的图像补偿方法,其特征在于,还包括:15. The image compensation method according to claim 14, further comprising: 根据该多个感测像素的一坐标信息来产生分别对应于该多个感测像素的该多个补偿值。The plurality of compensation values respectively corresponding to the plurality of sensing pixels are generated according to coordinate information of the plurality of sensing pixels. 16.如权利要求13所述的图像补偿方法,其特征在于,该多个图像信号先进行放大之后,再通过该多个补偿电压进行补偿。16. The image compensation method according to claim 13, wherein the plurality of image signals are first amplified, and then compensated by the plurality of compensation voltages. 17.如权利要求13所述的图像补偿方法,其特征在于,该多个图像信号先通过该多个补偿电压进行补偿之后,再进行放大。17. The image compensation method according to claim 13, wherein the plurality of image signals are compensated by the plurality of compensation voltages first, and then amplified. 18.如权利要求13所述的图像补偿方法,其特征在于,该图像感测器包括一透镜,该多个补偿值分别对应于该图像感测器中的多个感测像素,且该图像补偿方法还包括:18. The image compensation method according to claim 13, wherein the image sensor comprises a lens, the plurality of compensation values respectively correspond to a plurality of sensing pixels in the image sensor, and the image Compensation methods also include: 分别根据该多个感测像素与该透镜的中心的距离来决定该多个补偿值的大小。The magnitudes of the plurality of compensation values are determined according to the distances between the plurality of sensing pixels and the center of the lens. 19.如权利要求18所述的图像补偿方法,其特征在于,该多个感测像素根据其与该透镜的中心的距离被区分为一第一区域、一第二区域、及一第三区域,其中,该第一区域位于以该透镜的中心为圆心的一内圆之内,该第二区域位于该内圆和以该透镜的中心为圆心的一外圆之间,该第三区域位于该外圆之外。19. The image compensation method according to claim 18, wherein the plurality of sensing pixels are divided into a first area, a second area, and a third area according to their distance from the center of the lens , wherein the first area is located within an inner circle centered on the center of the lens, the second area is located between the inner circle and an outer circle centered on the center of the lens, and the third area is located outside the outer circle. 20.如权利要求19所述的图像补偿方法,其特征在于,该第一区域的该多个感测像素相应的该多个补偿值具有一最大值,该第三区域的该多个感测像素相应的该多个补偿值具有一最小值,该第二区域的该多个感测像素相应的该多个补偿值位于该最大值及该最小值之间且随着与该透镜的中心的距离的增加而逐渐减少。20. The image compensation method according to claim 19, wherein the plurality of compensation values corresponding to the plurality of sensing pixels in the first area has a maximum value, and the plurality of sensing pixels in the third area The plurality of compensation values corresponding to the pixels have a minimum value, the plurality of compensation values corresponding to the plurality of sensing pixels in the second region are located between the maximum value and the minimum value and along with the center of the lens gradually decreases with increasing distance. 21.如权利要求19所述的图像补偿方法,其特征在于,该第二区域的该多个感测像素相应的该多个补偿值投射到一轴线来进行计算,且该图像补偿方法还包括:21. The image compensation method according to claim 19, wherein the plurality of compensation values corresponding to the plurality of sensing pixels in the second region are projected onto an axis for calculation, and the image compensation method further comprises : 当该透镜发生倾斜时,根据该透镜倾斜的方向来设定该轴线的方向。When the lens is tilted, the direction of the axis is set according to the direction in which the lens is tilted. 22.如权利要求18所述的图像补偿方法,其特征在于,还包括:22. The image compensation method according to claim 18, further comprising: 当该透镜发生倾斜时,根据该透镜倾斜的方向及倾斜的程度来调整该多个补偿值。When the lens is tilted, the multiple compensation values are adjusted according to the tilting direction and the tilting degree of the lens. 23.如权利要求22所述的图像补偿方法,其特征在于,根据该透镜倾斜的方向及倾斜的程度来调整该多个补偿值的步骤包括:23. The image compensation method according to claim 22, wherein the step of adjusting the plurality of compensation values according to the tilted direction and the tilted degree of the lens comprises: 将该多个补偿值相应的多个感测像素的一距离数据分别乘上一参数,以调整该多个补偿值。A parameter is respectively multiplied by a distance data of a plurality of sensing pixels corresponding to the plurality of compensation values to adjust the plurality of compensation values. 24.如权利要求13所述的图像补偿方法,其特征在于,还包括:24. The image compensation method according to claim 13, further comprising: 在一测试流程中,利用该图像感测器对一平滑表面物体进行感测,以产生一感测结果;以及In a test process, using the image sensor to sense a smooth surface object to generate a sensing result; and 根据该感测结果,决定该多个补偿值的大小。According to the sensing result, the magnitudes of the plurality of compensation values are determined.
CN202111382323.8A 2021-11-22 2021-11-22 Image compensation circuit and method Pending CN116152864A (en)

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)

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