TW202118275A - Residual image eliminating method for optical image and electronic device using the same pre-storing a residual image decay coefficient lambda or a decay curve comparison table in a memory unit - Google Patents

Residual image eliminating method for optical image and electronic device using the same pre-storing a residual image decay coefficient lambda or a decay curve comparison table in a memory unit Download PDF

Info

Publication number
TW202118275A
TW202118275A TW108138276A TW108138276A TW202118275A TW 202118275 A TW202118275 A TW 202118275A TW 108138276 A TW108138276 A TW 108138276A TW 108138276 A TW108138276 A TW 108138276A TW 202118275 A TW202118275 A TW 202118275A
Authority
TW
Taiwan
Prior art keywords
image
frame
pixel
images
optical image
Prior art date
Application number
TW108138276A
Other languages
Chinese (zh)
Other versions
TWI720660B (en
Inventor
馮繼雄
田志民
王長海
李保梁
陳子軒
陳世林
劉小寧
宋子明
Original Assignee
大陸商北京集創北方科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大陸商北京集創北方科技股份有限公司 filed Critical 大陸商北京集創北方科技股份有限公司
Priority to TW108138276A priority Critical patent/TWI720660B/en
Application granted granted Critical
Publication of TWI720660B publication Critical patent/TWI720660B/en
Publication of TW202118275A publication Critical patent/TW202118275A/en

Links

Images

Landscapes

  • Image Input (AREA)

Abstract

Disclosed is a residual image eliminating method for an optical image, which includes: pre-storing a residual image decay coefficient lambda or a decay curve comparison table in a memory unit, wherein 0 < lambda < 1, and the decay curve comparison table includes a plurality of groups of data composed of average values of anterior-frame images and average values of posterior-frame images; performing continuous two image acquisition operation on an acquired image to obtain a first-frame image and a second-frame image; and performing a residual image elimination calculation on the first-frame image and the second-frame image according to the residual image decay coefficient lambda or the decay curve comparison table to generate an output image.

Description

光學圖像的殘影消除方法及利用其之電子裝置Optical image residual image elimination method and electronic device using the same

本發明係有關一種光學圖像的採集方法,尤指一種光學圖像的殘影消除方法。The present invention relates to an optical image acquisition method, especially an optical image residual image elimination method.

光學圖像採集是利用光源(可見光、不可見光或X射線)照射到採集對象上產生反射光信號或者透射光信號,再通過圖像感測器(CMOS或CCD)轉換為電信號從而成像的一種資訊採集方法。比如屏下光學指紋採集需要借助螢幕(OLED或 TFT-LCD)提供光源,在螢幕下方放置圖像感測器接收反射光信號,從而得到指紋信號。為了擴大採圖面積或增加圖像品質,一般需要連續採集多幅圖像。Optical image collection is a kind of imaging that uses a light source (visible light, invisible light or X-ray) to irradiate the collection object to generate a reflected light signal or a transmitted light signal, which is then converted into an electrical signal by an image sensor (CMOS or CCD) Information collection method. For example, the under-screen optical fingerprint collection requires a screen (OLED or TFT-LCD) to provide a light source, and an image sensor is placed under the screen to receive the reflected light signal to obtain the fingerprint signal. In order to expand the image acquisition area or increase the image quality, it is generally necessary to continuously acquire multiple images.

然而,由於圖像感測器(CMOS或CCD)的內部有等效電容,因此,當驅動電路進行連續採圖時會有圖像殘影產生。請參照圖1,其為圖像感測器所採集之圖像在無殘影時和有殘影時的對照示意圖。如圖1所示,第一幀無殘影圖像10a、第二幀無殘影圖像11a和第三幀無殘影圖像12a分別顯示A、B及C,而在有殘影時之第一幀圖像10b、第二幀圖像11b和第三幀圖像12b上則除了分別顯示了A、B及C外,第二幀圖像11b還留存上一次採集的殘影A,而第三幀圖像12b則還留存上一次採集的殘影B及上上次採集的殘影A。However, due to the internal equivalent capacitance of the image sensor (CMOS or CCD), image afterimages may be generated when the driving circuit is continuously collecting images. Please refer to FIG. 1, which is a schematic diagram of the comparison between the images collected by the image sensor when there is no afterimage and when there is afterimage. As shown in Figure 1, the first frame of image 10a, the second frame of image 11a, and the third frame of image 12a show A, B, and C, respectively. In addition to displaying A, B, and C on the first frame image 10b, the second frame image 11b, and the third frame image 12b, the second frame image 11b also retains the afterimage A from the last acquisition, and The third frame of image 12b also retains the afterimage B collected last time and the afterimage A collected last time.

為解決上述問題,本領域亟需一種新穎的光學圖像的殘影消除方法。In order to solve the above-mentioned problems, a novel method for removing residual images of optical images is urgently needed in the art.

本發明之一目的在於提供一種光學圖像的殘影消除方法,其可在不須增加額外電路操作的情況下有效消除圖像的殘影。An object of the present invention is to provide a method for removing the residual image of an optical image, which can effectively remove the residual image of the image without adding additional circuit operations.

本發明之另一目的在於提供一種電子裝置,其可在不須增加額外電路操作的情況下,有效消除其光學圖像採集裝置所採集到的圖像的殘影。Another object of the present invention is to provide an electronic device, which can effectively eliminate the residual image of the image captured by the optical image capture device without adding additional circuit operations.

為達到前述之目的,一種光學圖像的殘影消除方法乃被提出,其係實現在一光學圖像採集裝置上,且其包含以下步驟:In order to achieve the aforementioned purpose, a method for removing the residual image of an optical image is proposed, which is implemented on an optical image acquisition device and includes the following steps:

在該光學圖像採集裝置之一記憶單元中預存一殘影衰減係數 λ或一衰減曲線對照表,其中,0<λ<1,且該衰減曲線對照表包含複數組由在先幀圖像的平均值和在後幀圖像的平均值所組成的資料;An afterimage attenuation coefficient λ or an attenuation curve comparison table is pre-stored in a memory unit of the optical image acquisition device, where 0<λ<1, and the attenuation curve comparison table contains a complex array of images from previous frames Data composed of the average value and the average value of the subsequent frame images;

對一採集對象進行連續兩次採圖操作以獲得一第一幀圖像和一第二幀圖像;以及Perform two consecutive image capture operations on a captured object to obtain a first frame image and a second frame image; and

對該第一幀圖像和該第二幀圖像進行一殘影消除計算以產生一輸出圖像,其中,該殘影消除計算表示為C = C2 -λ*C1 ,C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,C1 代表該第一幀圖像的各畫素灰階值;或該殘影消除計算表示為C = C2 -Map(C1 ),C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,Map(C1 )代表依該衰減曲線對照表對該第一幀圖像的各畫素灰階值C1 進行一內插計算所產生的畫素灰階值。Perform an afterimage elimination calculation on the first frame image and the second frame image to generate an output image, where the afterimage elimination calculation is expressed as C = C 2 -λ*C 1 , and C represents the output The grayscale value of each pixel of the image, C 2 represents the grayscale value of each pixel of the second frame of image, and C 1 represents the grayscale value of each pixel of the first frame of image; or the residual image elimination calculation Expressed as C = C 2 -Map(C 1 ), C represents the grayscale value of each pixel of the output image, C 2 represents the grayscale value of each pixel of the second frame of image, and Map(C 1 ) represents by the attenuation curve table for pixel gray level value within one interpolation calculation to the generated each pixel grayscale value C 1 of the first frame image.

在可能的實施例中,該光學圖像採集裝置具有一CMOS圖像感測器或一 CCD 圖像感測器。In a possible embodiment, the optical image acquisition device has a CMOS image sensor or a CCD image sensor.

在一實施例中,該殘影衰減係數 λ或該衰減曲線對照表係經由一預先量測程式獲得,該預先量測程式包括:In an embodiment, the residual image attenuation coefficient λ or the attenuation curve comparison table is obtained through a pre-measurement program, and the pre-measurement program includes:

將該光學圖像採集裝置置於一暗箱中,並受一光源照明一段時間;Place the optical image acquisition device in a dark box and be illuminated by a light source for a period of time;

關閉該光源,然後使該光學圖像採集裝置連續擷取複數幀圖像;以及Turn off the light source, and then enable the optical image acquisition device to continuously capture a plurality of frames of images; and

依所述複數幀圖像的至少一組相鄰的兩幀圖像產生至少兩個畫素灰階平均值,及依所述至少兩個畫素灰階平均值計算該殘影衰減係數 λ;或依所述複數幀圖像中的第2至第n幀圖像的畫素灰階平均值產生n-1個所述在後幀圖像的平均值,依所述複數幀圖像中的第1至第n-1幀圖像的畫素灰階平均值產生n-1個所述在先幀圖像的平均值,及依n-1個所述在後幀圖像的平均值和n-1個所述在先幀圖像的平均值產生該衰減曲線對照表,n為大於2的整數。Generating at least two pixel gray scale average values according to at least one group of adjacent two frame images of the plurality of frame images, and calculating the residual image attenuation coefficient λ according to the at least two pixel gray scale average values; Or generate n-1 average values of the subsequent frame images according to the average value of the pixel gray scales of the second to nth frames in the plurality of frames of images, and according to the average value of the images in the plurality of frames The average value of the pixel gray scales of the first to n-1th frame images produces the average value of n-1 images of the previous frame, and the sum of the average values of n-1 images of the subsequent frame The average value of n-1 the previous frame images generates the attenuation curve comparison table, and n is an integer greater than 2.

在可能的實施例中,該採集對象可為一指紋或一手掌。In a possible embodiment, the collection object may be a fingerprint or a palm.

在可能的實施例中,該光學圖像採集裝置可利用可見光或不可見光進行所述的採圖操作。In a possible embodiment, the optical image acquisition device may use visible light or invisible light to perform the image acquisition operation.

為達到前述之目的,本發明進一步提出一種電子裝置,其包括一中央處理單元及一觸控屏,其中,該觸控屏具有如前述之光學圖像採集裝置以實現所述之光學圖像的殘影消除方法,且該中央處理單元係用以與該觸控屏通信。In order to achieve the foregoing objective, the present invention further provides an electronic device, which includes a central processing unit and a touch screen, wherein the touch screen has the aforementioned optical image acquisition device to realize the optical image Afterimage elimination method, and the central processing unit is used to communicate with the touch screen.

在可能的實施例中,該觸控屏可為一光學式觸控屏或一電容式觸控屏。In possible embodiments, the touch screen may be an optical touch screen or a capacitive touch screen.

在可能的實施例中,該觸控屏可包括一液晶顯示陣列、一有機發光二極體顯示陣列、一微發光二極體顯示陣列或一量子點發光二極體顯示陣列。In possible embodiments, the touch screen may include a liquid crystal display array, an organic light emitting diode display array, a micro light emitting diode display array, or a quantum dot light emitting diode display array.

在可能的實施例中,該電子裝置可為一智慧型手機或一可攜式電腦。In possible embodiments, the electronic device can be a smart phone or a portable computer.

本發明之原理在於:圖像感測器( CMOS 或 CCD )的內部等效電容 C 與等效電阻 R 構成 RC 等效電路,在一光學圖像採集裝置對採集對象進行連續採圖操作時,設第 n 幀的採集圖像 為an ,第 n 幀的指紋信號為 sn ,則由於等效電容 C 的電壓不能突變,導致第 n-1 幀的採集圖像an-1 沒有完全清空,特別地,當該等效電路為一階 RC 電路時,電壓呈指數衰減,即衰減比例恒為一定值。一般情况下的公式表示為: sn = an – f(an-1 ),其中,f為一衰減函數。The principle of the present invention is that the internal equivalent capacitance C and equivalent resistance R of the image sensor (CMOS or CCD) form an RC equivalent circuit. When an optical image acquisition device performs continuous image acquisition operations on the acquisition object, provided captured image n-th frame is a n, fingerprint signal of the n-th frame is S n, the equivalent capacitance C due to the voltage can not change suddenly, resulting in the n-1 a captured image frame n-1 is not completely empty In particular, when the equivalent circuit is a first-order RC circuit, the voltage decays exponentially, that is, the attenuation ratio is constant at a certain value. In general formula is expressed as: s n = a n - f (a n-1), wherein, f is an attenuation function.

也就是說,本發明在獲得衰減函數f後,即可計算出第 n-1 幀圖像在第 n 幀圖像上的殘影值f(an-1 ),然後再依第 n 幀圖像(an )和殘影值f(an-1 )的差值得出第 n 幀的信號(sn )。That is to say, after obtaining the attenuation function f, the present invention can calculate the residual image value f(a n-1 ) of the n-1th frame image on the nth frame image, and then according to the nth frame image The difference between the image (a n ) and the residual image value f (an -1 ) is the signal (s n ) of the nth frame.

在一實施例中,殘影值f(an-1 ) =λan-1 ,λ為殘影衰減係數,0<λ<1。In an embodiment, the residual image value f(a n-1 )=λa n-1 , λ is the residual image attenuation coefficient, 0<λ<1.

在另一實施例中,殘影值f(an-1 ) = Map(an-1 ),代表其係依一衰減曲線對照表對第 n-1 幀的採集圖像an-1 進行一內插計算而產生。In another embodiment, the residual image value f(a n-1 ) = Map(a n-1 ), which means that it is based on an attenuation curve comparison table on the n-1th frame of the acquired image a n-1 Generated by an interpolation calculation.

衰減函數f可預存在一記憶單元中,且其可依一預先量測程式獲得。該預先量測程式(請一併參照圖2a及圖2b)包括:The attenuation function f can be pre-stored in a memory unit, and it can be obtained according to a pre-measurement program. The pre-measurement program (please refer to Figure 2a and Figure 2b together) includes:

(一)將一光學圖像採集裝置22置於一暗箱20中,並受一光源21照明一段時間;(1) Place an optical image acquisition device 22 in a dark box 20 and be illuminated by a light source 21 for a period of time;

(二)關閉光源21,然後使光學圖像採集裝置22擷取複數幀圖像;以及(2) Turn off the light source 21, and then enable the optical image capture device 22 to capture multiple frames of images; and

(三)依所述複數幀圖像的至少一組相鄰的兩幀圖像產生至少兩個畫素灰階平均值,及依所述至少兩個畫素灰階平均值計算該殘影衰減係數 λ;或依所述複數幀圖像中的第2至第n幀圖像的畫素灰階平均值產生n-1個在後幀圖像的平均值,依所述複數幀圖像中的第1至第n-1幀圖像的畫素灰階平均值產生n-1個在先幀圖像的平均值,及依n-1個所述在後幀圖像的平均值和n-1個所述在先幀圖像的平均值產生該衰減曲線對照表,n為大於2的整數。(3) Generate at least two pixel grayscale average values according to at least one group of adjacent two frame images of the plurality of frame images, and calculate the residual image attenuation based on the at least two pixel grayscale average values Coefficient λ; or according to the average value of the pixel gray scales of the second to nth frames in the plurality of frames of images, n-1 average values of the subsequent frame images are generated, according to the plurality of frames of images The pixel gray scale average value of the first to n-1th frame images produces the average value of n-1 previous frame images, and the average value of n-1 subsequent frame images and n -1 The average value of the previous frame images generates the attenuation curve comparison table, and n is an integer greater than 2.

請一併參照圖3a及圖3b,其中,圖3a繪示15幀圖像的畫素灰階平均值的變化圖;以及圖3b繪示由圖3a所示之前8幀圖像的畫素灰階平均值的任兩相鄰平均值的比值所產生的殘影衰減係數 λ的變化圖。由圖3b可知,λ約等於0.6。Please refer to Fig. 3a and Fig. 3b together, in which Fig. 3a shows the change of the average pixel gray scale of 15 frames of image; and Fig. 3b shows the pixel gray of the previous 8 frames of image shown in Fig. 3a The change graph of the residual image attenuation coefficient λ produced by the ratio of any two adjacent average values of the order average value. It can be seen from Figure 3b that λ is approximately equal to 0.6.

另外,請一併參照圖4a及圖4b,其中,圖4a繪示所述衰減曲線之一實施例,其具有19個二維資料點,各所述二維資料點均對應一所述在先幀圖像的平均值和一所述在後幀圖像的平均值,也就是說,所述19個二維資料點係由20幀圖像中的第2至第20幀圖像的畫素灰階平均值及20幀圖像中的第1至第19幀圖像的畫素灰階平均值所構成;以及圖4b為以一輸入圖像之平均值做為一所述在先幀圖像的平均值,而在圖4a所示之衰減曲線上對應到一所述在後幀圖像的平均值之示意圖。In addition, please refer to FIGS. 4a and 4b together. Among them, FIG. 4a shows an embodiment of the attenuation curve, which has 19 two-dimensional data points, and each of the two-dimensional data points corresponds to a previous The average value of the frame image and the average value of the subsequent frame image, that is, the 19 two-dimensional data points are composed of the pixels of the second to the twentieth frame of the 20 frames of images The gray scale average value and the pixel gray scale average value of the first to 19th frames of the 20 frames of images; and FIG. 4b is the average value of an input image as the previous frame image The average value of the image, and the attenuation curve shown in FIG. 4a corresponds to a schematic diagram of the average value of the subsequent frame image.

依上述的說明,本發明提出一種光學圖像的殘影消除方法。請參照圖5,其繪示本發明之光學圖像的殘影消除方法之一實施例流程圖。如圖5所示,本發明之光學圖像的殘影消除方法係實現在一光學圖像採集裝置上,其中,該光學圖像採集裝置具有一CMOS(complementary metal-oxide-semiconductor;互補式金氧半)圖像感測器或一 CCD (charge coupled device;電荷耦合元件)圖像感測器,且該方法包含以下步驟:在該光學圖像裝置之一記憶單元中預存一殘影衰減係數 λ或一衰減曲線對照表,其中,0<λ<1,且該衰減曲線對照表包含複數組由在先幀圖像的平均值和在後幀圖像的平均值所組成的資料(步驟a1);對一採集对象進行連續兩次採圖操作以獲得一第一幀圖像和一第二幀圖像(步驟b1);以及對該第一幀圖像和該第二幀圖像進行一殘影消除計算以產生一輸出圖像,其中,該殘影消除計算表示為C = C2 -λ*C1 ,C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,C1 代表該第一幀圖像的各畫素灰階值;或該殘影消除計算表示為C = C2 -Map(C1 ),C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,Map(C1 )代表依該衰減曲線對照表對該第一幀圖像的各畫素灰階值C1 進行一內插計算所產生的畫素灰階值(步驟c1)。另外,在上述的方法中,所述的採集對象可為指紋或掌紋,且該光學圖像採集裝置可利用可見光或不可見光進行所述的採圖操作。Based on the above description, the present invention proposes a method for removing the residual image of an optical image. Please refer to FIG. 5, which shows a flow chart of an embodiment of the method for removing the residual image of an optical image of the present invention. As shown in FIG. 5, the method for eliminating the residual image of an optical image of the present invention is implemented on an optical image acquisition device, wherein the optical image acquisition device has a CMOS (complementary metal-oxide-semiconductor; complementary metal-oxide-semiconductor; Oxygen half) image sensor or a CCD (charge coupled device; charge coupled device) image sensor, and the method includes the following steps: prestore a residual image attenuation coefficient in a memory unit of the optical image device λ or an attenuation curve comparison table, where 0<λ<1, and the attenuation curve comparison table contains a complex array of data consisting of the average value of the previous frame image and the average value of the subsequent frame image (step a1 ); Perform two consecutive image capture operations on a captured object to obtain a first frame image and a second frame image (step b1); and perform a second frame image on the first frame image and the second frame image Afterimage elimination calculation to generate an output image, where the afterimage elimination calculation is expressed as C = C 2 -λ*C 1 , C represents the grayscale value of each pixel of the output image, and C 2 represents the second The grayscale value of each pixel of the frame image, C 1 represents the grayscale value of each pixel of the first frame image; or the residual image elimination calculation is expressed as C = C 2 -Map(C 1 ), and C represents the The grayscale value of each pixel of the output image, C 2 represents the grayscale value of each pixel of the second frame of image, and Map(C 1 ) represents each painting of the first frame of image according to the attenuation curve comparison table. C 1 pixel gray level value for the gray scale pixel value (step c1) interpolation calculation within a generated. In addition, in the above method, the collection object can be a fingerprint or a palm print, and the optical image collection device can use visible light or invisible light to perform the image collection operation.

依上述的說明,本發明進一步提出一種電子裝置。請參照圖6,其為本發明之電子裝置之一實施例的方塊圖。如圖6所示,一電子裝置100包括一中央處理單元110及一觸控屏120,其中,觸控屏120可具有一液晶顯示陣列、一有機發光二極體顯示陣列、一微發光二極體顯示陣列或一量子點發光二極體顯示陣列,且其具有一光學圖像採集裝置120a。Based on the above description, the present invention further provides an electronic device. Please refer to FIG. 6, which is a block diagram of an embodiment of the electronic device of the present invention. As shown in FIG. 6, an electronic device 100 includes a central processing unit 110 and a touch screen 120. The touch screen 120 may have a liquid crystal display array, an organic light emitting diode display array, and a micro light emitting diode. Volume display array or a quantum dot light emitting diode display array, and it has an optical image acquisition device 120a.

中央處理單元110係用以與觸控屏120通信以提供一觸控顯示功能。The central processing unit 110 is used to communicate with the touch screen 120 to provide a touch display function.

光學圖像採集裝置120a具有一CMOS圖像感測器或一 CCD 圖像感測器,且係用以執行如前述之光學圖像的殘影消除方法。The optical image acquisition device 120a has a CMOS image sensor or a CCD image sensor, and is used to perform the aforementioned optical image afterimage elimination method.

另外,在可能的實施例中,電子裝置100可為一智慧型手機或一可攜式電腦。In addition, in possible embodiments, the electronic device 100 may be a smart phone or a portable computer.

依上述的說明可知,本發明可提供以下的優點:According to the above description, the present invention can provide the following advantages:

1.本發明之光學圖像殘影消除方法可在不須增加額外電路操作的情況下有效消除圖像的殘影。1. The optical image afterimage elimination method of the present invention can effectively eliminate image afterimage without adding additional circuit operations.

2.本發明之電子裝置可在不須增加額外電路操作的情況下,有效消除其光學圖像採集裝置所採集到的圖像的殘影。2. The electronic device of the present invention can effectively eliminate the residual image of the image collected by the optical image collecting device without adding additional circuit operations.

本發明所揭示者,乃較佳實施例之一種,舉凡局部之變更或修飾而源於本發明之技術思想而為熟習該項技藝知人所易於推知者,俱不脫本發明之專利權範疇。The disclosure of the present invention is one of the preferred embodiments. Any partial change or modification that is derived from the technical idea of the present invention and can be easily deduced by those skilled in the art does not deviate from the scope of the patent right of the present invention.

綜上所陳,本案無論目的、手段與功效,皆顯示其迥異於習知技術,且其首先發明合於實用,確實符合發明之專利要件,懇請 貴審查委員明察,並早日賜予專利俾嘉惠社會,是為至禱。In summary, regardless of the purpose, means and effects of this case, it is shown that it is very different from the conventional technology, and its first invention is suitable for practicality, and it does meet the patent requirements of the invention. I implore the examiner to observe it and grant the patent as soon as possible. Society is for the best prayer.

10a:第一幀無殘影圖像 11a:第二幀無殘影圖像 12a:第三幀無殘影圖像 10b:第一幀圖像 11b:第二幀圖像 12b:第三幀圖像 20:暗箱 21:光源 22:光學圖像採集裝置 100:電子裝置 110:中央處理單元 120:觸控屏 120a:光學圖像採集裝置 步驟a1:在該光學圖像採集裝置之一記憶單元中預存一殘影衰減係數 λ或一衰減曲線對照表,其中,0<λ<1,且該衰減曲線對照表包含複數組由在先幀圖像的平均值和在後幀圖像的平均值所組成的資料 步驟b1:對一採集對象進行連續兩次採圖操作以獲得一第一幀圖像和一第二幀圖像 步驟c1:對該第一幀圖像和該第二幀圖像進行一殘影消除計算以產生一輸出圖像,其中,該殘影消除計算表示為C = C2 -λ*C1 ,C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,C1 代表該第一幀圖像的各畫素灰階值;或該殘影消除計算表示為C = C2 -Map(C1 ),C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,Map(C1 )代表依該衰減曲線對照表對該第一幀圖像的各畫素灰階值C1 進行一內插計算所產生的畫素灰階值10a: the first frame without residual image 11a: the second frame without residual image 12a: the third frame without residual image 10b: the first frame image 11b: the second frame image 12b: the third frame image Image 20: Dark box 21: Light source 22: Optical image capture device 100: Electronic device 110: Central processing unit 120: Touch screen 120a: Optical image capture device Step a1: In one of the memory unit of the optical image capture device Prestore a residual image attenuation coefficient λ or an attenuation curve comparison table, where 0<λ<1, and the attenuation curve comparison table contains a complex array consisting of the average value of the previous frame image and the average value of the subsequent frame image. Composition data Step b1: Perform two consecutive image acquisition operations on a collection object to obtain a first frame image and a second frame image Step c1: Perform the first frame image and the second frame image An afterimage elimination calculation to generate an output image, where the afterimage elimination calculation is expressed as C = C 2 -λ*C 1 , C represents the grayscale value of each pixel of the output image, and C 2 represents the first The grayscale value of each pixel of the two frames of image, C 1 represents the grayscale value of each pixel of the first frame of image; or the residual image elimination calculation is expressed as C = C 2 -Map(C 1 ), C represents The grayscale value of each pixel of the output image, C 2 represents the grayscale value of each pixel of the second frame of image, and Map(C 1 ) represents each of the first frame of image according to the attenuation curve comparison table. Pixel gray level value C 1 Pixel gray level value generated by an interpolation calculation

圖1為圖像感測器所採集之圖像在無殘影時和有殘影時的對照示意圖。 圖2a為將一光學圖像採集裝置置於一暗箱中以並受一光源照明一段時間之示意圖。 圖2b為關閉圖2a所示之光源,然後使光學圖像採集裝置擷取複數幀圖像以       計算出一殘影衰減係數或一衰減曲線之示意圖。 圖3a繪示15幀圖像的畫素灰階平均值的變化圖。 圖3b繪示由圖3a所示之前8幀圖像的畫素灰階平均值的任兩相鄰平均值的比值所產生的殘影衰減係數的變化圖。 圖4a為本發明所采之衰減曲線之一實施例的示意圖。 圖4b為以一輸入圖像之平均值做為一在先幀圖像的平均值,而在圖4a所示之衰減曲線上對應到一在後幀圖像的平均值之示意圖。 圖5繪示本發明之光學圖像的殘影消除方法之一實施例的流程圖。 圖6為本發明之電子裝置之一實施例的方塊圖。Figure 1 is a schematic diagram of the comparison between the images collected by the image sensor when there is no afterimage and when there is afterimage. Figure 2a is a schematic diagram of placing an optical image capture device in a dark box and subjecting it to a light source for a period of time. Fig. 2b is a schematic diagram of turning off the light source shown in Fig. 2a, and then allowing the optical image acquisition device to capture multiple frames of images to calculate an afterimage attenuation coefficient or an attenuation curve. FIG. 3a shows the change of the average value of the pixel gray scale of 15 frames of images. FIG. 3b shows the change diagram of the residual image attenuation coefficient produced by the ratio of any two adjacent average values of the pixel grayscale average values of the previous 8 frames of the image shown in FIG. 3a. Fig. 4a is a schematic diagram of an embodiment of the attenuation curve adopted in the present invention. FIG. 4b is a schematic diagram of taking the average value of an input image as the average value of a previous frame image, and the attenuation curve shown in FIG. 4a corresponds to the average value of a subsequent frame image. FIG. 5 shows a flowchart of an embodiment of the method for removing residual image of an optical image according to the present invention. FIG. 6 is a block diagram of an embodiment of the electronic device of the present invention.

步驟a1:在該光學圖像採集裝置之一記憶單元中預存一殘影衰減係數λ或一衰減曲線對照表,其中,0<λ<1,且該衰減曲線對照表包含複數組由在先幀圖像的平均值和在後幀圖像的平均值所組成的資料Step a1: Prestore a residual image attenuation coefficient λ or an attenuation curve comparison table in a memory unit of the optical image acquisition device, where 0<λ<1, and the attenuation curve comparison table contains a complex array of data from previous frames Data composed of the average value of the image and the average value of the subsequent frame image

步驟b1:對一採集對象進行連續兩次採圖操作以獲得一第一幀圖像和一第二幀圖像Step b1: Perform two consecutive image capture operations on a captured object to obtain a first frame image and a second frame image

步驟c1:對該第一幀圖像和該第二幀圖像進行一殘影消除計算以產生一輸出圖像,其中,該殘影消除計算表示為C=C2 -λ *C1 ,C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,C1 代表該第一幀圖像的各畫素灰階值;或該殘影消除計算表示為C=C2 -Map(C1 ),C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,Map(C1 )代表依該衰減曲線對照表對該第一幀圖像的各畫素灰階值C1 進行一內插計算所產生的畫素灰階值Step c1: Perform an afterimage elimination calculation on the first frame image and the second frame image to generate an output image, where the afterimage elimination calculation is expressed as C=C 2 -λ *C 1 , C Represents the grayscale value of each pixel of the output image, C 2 represents the grayscale value of each pixel of the second frame of image, and C 1 represents the grayscale value of each pixel of the first frame of image; or the residual The shadow elimination calculation is expressed as C=C 2 -Map(C 1 ), C represents the grayscale value of each pixel of the output image, C 2 represents the grayscale value of each pixel of the second frame of image, Map(C 1 ) Represents the pixel gray scale value generated by performing an interpolation calculation on each pixel gray scale value C 1 of the first frame of image according to the attenuation curve comparison table

Claims (9)

一種光學圖像的殘影消除方法,係實現在一光學圖像採集裝置上,其包含以下步驟: 在該光學圖像採集裝置之一記憶單元中預存一殘影衰減係數 λ或一衰減曲線對照表,其中,0<λ<1,且該衰減曲線對照表包含複數組由在先幀圖像的平均值和在後幀圖像的平均值所組成的資料; 對一採集對象進行連續兩次採圖操作以獲得一第一幀圖像和一第二幀圖像;以及 對該第一幀圖像和該第二幀圖像進行一殘影消除計算以產生一輸出圖像,其中,該殘影消除計算表示為C = C2 -λ*C1 ,C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,C1 代表該第一幀圖像的各畫素灰階值;或該殘影消除計算表示為C = C2 -Map(C1 ),C代表該輸出圖像的各畫素灰階值,C2 代表該第二幀圖像的各畫素灰階值,Map(C1 )代表依該衰減曲線對照表對該第一幀圖像的各畫素灰階值C1 進行一內插計算所產生的畫素灰階值。An optical image residual image elimination method is implemented on an optical image acquisition device, which includes the following steps: Prestore a residual image attenuation coefficient λ or an attenuation curve comparison in a memory unit of the optical image acquisition device Table, where 0<λ<1, and the attenuation curve comparison table contains a complex array of data consisting of the average value of the previous frame image and the average value of the subsequent frame image; two consecutive operations on a collection object Image acquisition operation to obtain a first frame image and a second frame image; and performing an afterimage elimination calculation on the first frame image and the second frame image to generate an output image, wherein the The afterimage elimination calculation is expressed as C = C 2 -λ*C 1 , C represents the grayscale value of each pixel of the output image, C 2 represents the grayscale value of each pixel of the second frame image, and C 1 represents The grayscale value of each pixel of the first frame of image; or the afterimage elimination calculation is expressed as C = C 2 -Map(C 1 ), C represents the grayscale value of each pixel of the output image, and C 2 represents The grayscale value of each pixel of the second frame of image, Map(C 1 ) represents the result of an interpolation calculation for each pixel grayscale value C 1 of the first frame of image according to the attenuation curve comparison table Pixel grayscale value. 如申請專利範圍第1項所述之光學圖像的殘影消除方法,其中該光學圖像採集裝置具有一CMOS圖像感測器或一 CCD 圖像感測器。According to the method for removing the residual image of an optical image as described in item 1 of the scope of patent application, the optical image acquisition device has a CMOS image sensor or a CCD image sensor. 如申請專利範圍第1項所述之光學圖像的殘影消除方法,其中該殘影衰減係數 λ或該衰減曲線對照表係經由一預先量測程式獲得,該預先量測程式包括: 將該光學圖像採集裝置置於一暗箱中,並受一光源照明一段時間; 關閉該光源,然後使該光學圖像採集裝置擷取複數幀圖像;以及 依所述複數幀圖像的至少一組相鄰的兩幀圖像產生至少兩個畫素灰階平均值,及依所述至少兩個畫素灰階平均值計算該殘影衰減係數 λ;或依所述複數幀圖像中的第2至第n幀圖像的畫素灰階平均值產生n-1個所述在後幀圖像的平均值,依所述複數幀圖像中的第1至第n-1幀圖像的畫素灰階平均值產生n-1個所述在先幀圖像的平均值,及依n-1個所述在後幀圖像的平均值和n-1個所述在先幀圖像的平均值產生該衰減曲線對照表,n為大於2的整數。As described in the first item of the scope of patent application, the residual image elimination method of an optical image, wherein the residual image attenuation coefficient λ or the attenuation curve comparison table is obtained through a pre-measurement program, and the pre-measurement program includes: Place the optical image acquisition device in a dark box and be illuminated by a light source for a period of time; Turn off the light source, and then enable the optical image capture device to capture a plurality of frames of images; and Generating at least two pixel gray scale average values according to at least one group of adjacent two frame images of the plurality of frame images, and calculating the residual image attenuation coefficient λ according to the at least two pixel gray scale average values; Or generate n-1 average values of the subsequent frame images according to the average value of the pixel gray scales of the second to nth frames in the plurality of frames of images, and according to the average value of the images in the plurality of frames The average value of the pixel gray scales of the first to n-1th frame images produces the average value of n-1 images of the previous frame, and the sum of the average values of n-1 images of the subsequent frame The average value of n-1 the previous frame images generates the attenuation curve comparison table, and n is an integer greater than 2. 如申請專利範圍第1項所述之光學圖像的殘影消除方法,其中該採集對象係一指紋或一掌紋。According to the method for removing the residual image of an optical image as described in item 1 of the scope of patent application, the collection object is a fingerprint or a palm print. 如申請專利範圍第1項所述之光學圖像的殘影消除方法,其中該光學圖像採集裝置係利用可見光或不可見光進行所述的採圖操作。According to the method for removing the residual image of an optical image as described in item 1 of the scope of patent application, the optical image acquisition device uses visible light or invisible light to perform the image acquisition operation. 一種電子裝置,包括一中央處理單元及一觸控屏,其中,該觸控屏具有如申請專利範圍第1至5項中任一項所述之光學圖像採集裝置以實現所述之光學圖像的殘影消除方法,且該中央處理單元係用以與該觸控屏通信。An electronic device, comprising a central processing unit and a touch screen, wherein the touch screen has the optical image acquisition device as described in any one of the 1 to 5 scope of the patent application to realize the optical image Image afterimage elimination method, and the central processing unit is used to communicate with the touch screen. 如申請專利範圍第6項所述之電子裝置,其中該觸控屏係一光學式觸控屏或一電容式觸控屏。For the electronic device described in item 6 of the scope of patent application, the touch screen is an optical touch screen or a capacitive touch screen. 如申請專利範圍第6項所述之電子裝置,其中該觸控屏包括由一液晶顯示陣列、一有機發光二極體顯示陣列、一微發光二極體顯示陣列和一量子點發光二極體顯示陣列所組成群組所選擇的一種顯示陣列。The electronic device described in item 6 of the scope of patent application, wherein the touch screen includes a liquid crystal display array, an organic light emitting diode display array, a micro light emitting diode display array, and a quantum dot light emitting diode A display array selected by the group consisting of display arrays. 如申請專利範圍第6項所述之電子裝置,其係一智慧型手機或一可攜式電腦。For example, the electronic device described in item 6 of the scope of patent application is a smart phone or a portable computer.
TW108138276A 2019-10-23 2019-10-23 Optical image residual image elimination method and electronic device using the same TWI720660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108138276A TWI720660B (en) 2019-10-23 2019-10-23 Optical image residual image elimination method and electronic device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108138276A TWI720660B (en) 2019-10-23 2019-10-23 Optical image residual image elimination method and electronic device using the same

Publications (2)

Publication Number Publication Date
TWI720660B TWI720660B (en) 2021-03-01
TW202118275A true TW202118275A (en) 2021-05-01

Family

ID=76035855

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108138276A TWI720660B (en) 2019-10-23 2019-10-23 Optical image residual image elimination method and electronic device using the same

Country Status (1)

Country Link
TW (1) TWI720660B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114613327B (en) * 2022-03-10 2024-05-24 海信视像科技股份有限公司 OLED display equipment and OLED display method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108416817B (en) * 2018-02-01 2022-04-19 上海奕瑞光电子科技股份有限公司 Automatic residual image correction coefficient obtaining method
CN109583420B (en) * 2018-12-14 2021-02-05 京东方科技集团股份有限公司 Driving method and equipment of fingerprint identification device

Also Published As

Publication number Publication date
TWI720660B (en) 2021-03-01

Similar Documents

Publication Publication Date Title
Abdelhamed et al. Noise flow: Noise modeling with conditional normalizing flows
JP6352968B2 (en) Image sensor
CN111988544A (en) Predicting optimal values of parameters using machine learning
US20150350567A1 (en) Data digitization and display for an imaging system
CN106576145A (en) Imaging device
CN105721772B (en) A kind of asynchronous time domain visual information imaging method
Lu et al. Sparse coding for image denoising using spike and slab prior
CN111882489A (en) Super-resolution graph recovery method for simultaneously enhancing underwater images
TWI720660B (en) Optical image residual image elimination method and electronic device using the same
CN111654719B (en) Video micro-motion detection method based on permutation entropy algorithm
WO2019193781A1 (en) Emotion inference device, emotion inference method, and program
KR20180114049A (en) Machine vision systems that form one-dimensional digital representations of low information content scenes
Zhu et al. Design of a digital address-event triggered compressive acquisition image sensor
Purohit et al. Image processing framework for performance enhancement of low-light image sensors
CN111027516A (en) Biological characteristic image acquisition device and method and intelligent equipment
JP4563982B2 (en) Motion estimation method, apparatus, program thereof, and recording medium thereof
CN108551541A (en) A kind of imaging system and its imaging method that low cost is highly sensitive
TWI482147B (en) Image processing method and image display apparatus
Xiao et al. Image analysis using modulated light sources
CN110823117B (en) Single-step phase-shift electronic speckle interferometry method, system, device and storage medium
CN110580685B (en) Optical equal-thickness interference image data processing system
CN110740230A (en) Image acquisition method, residual image attenuation parameter measurement system, image acquisition device, electronic apparatus, and computer-readable storage medium
Zhang et al. Fourier single-pixel imaging based on lateral inhibition for low-contrast scenes
Azhari et al. Digital image enhancement by brightness and contrast manipulation using Verilog hardware description language
JP2006295666A (en) Noise elimination device