TWI528211B - Non-contact palmprint authentication method, device and portable terminal - Google Patents
Non-contact palmprint authentication method, device and portable terminal Download PDFInfo
- Publication number
- TWI528211B TWI528211B TW104109075A TW104109075A TWI528211B TW I528211 B TWI528211 B TW I528211B TW 104109075 A TW104109075 A TW 104109075A TW 104109075 A TW104109075 A TW 104109075A TW I528211 B TWI528211 B TW I528211B
- Authority
- TW
- Taiwan
- Prior art keywords
- camera
- illumination
- palmprint
- image
- state parameter
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 69
- 238000005286 illumination Methods 0.000 claims description 102
- 230000008569 process Effects 0.000 claims description 40
- 238000012216 screening Methods 0.000 claims description 29
- 238000005516 engineering process Methods 0.000 description 14
- 230000008859 change Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000014509 gene expression Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 210000000056 organ Anatomy 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Studio Devices (AREA)
- Telephone Function (AREA)
Description
本發明涉及便攜終端身份認證技術領域,尤其涉及一種適用於便攜終端的非接觸式掌紋認證方法及裝置。 The present invention relates to the field of portable terminal identity authentication technologies, and in particular, to a contactless palmprint authentication method and apparatus suitable for a portable terminal.
隨著移動通信技術的變革,例如智能手機、平板計算機等便攜終端正在成為人們日常生活和工作的重要工具。例如,除了電話以及短信等傳統應用以外,人們已經可以利用智能手機進行網絡社交、在線購物以及在線支付等多種應用。便攜終端上可能存放有大量有價值的工作數據或隱私數據,因此,用戶對便攜終端上的信息安全越來越關注,希望這些需要保護的數據在未通過身份認證的情況下無法被訪問。 With the revolution of mobile communication technologies, portable terminals such as smart phones and tablet computers are becoming an important tool for people's daily life and work. For example, in addition to traditional applications such as telephony and text messaging, people can already use smartphones for social networking, online shopping, and online payment. A large amount of valuable work data or private data may be stored on the portable terminal. Therefore, the user is paying more and more attention to the information security on the portable terminal, and it is hoped that the data to be protected cannot be accessed without being authenticated.
在傳統的方式中,便攜終端採用密碼或者用戶名與密碼的組合方式來驗證用戶身份。這種方式的問題體現在其安全性和便利性之間存在著天然的矛盾。首先,用戶若想提高安全性,則需要設置複雜的密碼,比如密碼是字母、數字以及特殊符號的組合,甚至可能還需要部分字母是大寫的;其次,在不同的身份認證入口,用戶可能需要使用沒有關聯性的密碼;舉例來說,用戶郵箱密碼與QQ密碼最好沒有關聯性,否則一旦其中某個密碼被他人知曉,另一個密碼很容易被猜到。 In the conventional manner, the portable terminal uses a password or a combination of a username and a password to authenticate the user. The problem with this approach is that there is a natural contradiction between its security and convenience. First of all, if users want to improve security, they need to set up complex passwords. For example, passwords are combinations of letters, numbers and special symbols. It may even require partial letters to be capitalized. Secondly, users may need different authentication portals. Use a password that is not associated; for example, the user's email password is preferably not associated with the QQ password, otherwise another password is easily guessed once one of the passwords is known to others.
在在線支付以及手機銀行等安全性要求極為嚴苛的應用 中,會採用多重身份認證的方式,除了用戶登錄認證之外,還會引入支付密碼雙重認證。目前很多在線支付還需要通過短信發送驗證碼的方式來認證。在這種情況下去,用戶要想獲得安全的使用體驗,必須接受這些嚴格但不便利的安全措施。 Extremely demanding applications such as online payment and mobile banking In the middle, multiple authentication methods will be adopted. In addition to user login authentication, a dual authentication of payment passwords will be introduced. At present, many online payments also need to be authenticated by sending a verification code via SMS. In this case, users must accept these strict but inconvenient security measures in order to have a safe experience.
目前有些開發者和廠商正試圖在便攜終端上引入指紋認證方式來替代傳統的用戶名/密碼認證方式。這種認證方式的便利性較好,但其安全性卻大大降低。這是因為,在便攜終端上使用指紋認證,一旦便攜終端丟失被他人獲取,由於用戶此前使用便攜終端時留下了大量自身的指紋,這些指紋很容易被他人採集後利用,造成指紋認證形同虛設。事實上,公安機關正是利用指紋容易遺留的特點,建立指紋數據庫來協助進行各種案件偵破的。此外,指紋認證存在實施成本高的問題,為了支持指紋認證,便攜終端需要額外配置一個指紋識別硬件,並相應調整便攜終端整體設計,這不僅與便攜終端輕薄化趨勢相背,還引入了開發設計成本升高的問題。 At present, some developers and vendors are trying to introduce fingerprint authentication methods on portable terminals to replace traditional username/password authentication methods. This type of authentication is more convenient, but its security is greatly reduced. This is because fingerprint authentication is used on the portable terminal. Once the portable terminal is lost and acquired by others, since the user has previously left a large number of fingerprints when using the portable terminal, these fingerprints are easily collected and utilized by others, resulting in the fingerprint authentication being ineffective. In fact, the public security organs use the characteristics that fingerprints are easy to leave, and establish a fingerprint database to assist in the detection of various cases. In addition, fingerprint authentication has the problem of high implementation cost. In order to support fingerprint authentication, the portable terminal needs to additionally configure a fingerprint recognition hardware, and adjust the overall design of the portable terminal accordingly, which not only contradicts the trend of thinning and thinning of the portable terminal, but also introduces development and design. The problem of rising costs.
因此,總體上來說,傳統的用戶身份認證技術都無法解決便利性和安全性之間的矛盾。 Therefore, in general, traditional user authentication technology cannot solve the contradiction between convenience and security.
有鑒於此,本發明提供一種非接觸式掌紋認證裝置,應用於包括攝像頭以及照明燈的便攜終端上,該裝置包括:採集控制單元,用於在掌紋認證流程開啟時使能所述攝像頭,並在外部光照不足時保持所述照明燈的工作狀態被設置為照明模式, 從而為所述攝像頭提供補光輸出;篩選輸出單元,用於從所述攝像頭輸出的視頻流中選擇一幀新圖像作為候選圖像,針對該候選圖像獲取所述攝像頭當前的狀態參數集合,判斷該集合中的每一個狀態參數是否都滿足與該參數對應的預設標准,如果都滿足則將候選圖像作為掌紋匹配的對比掌紋圖像輸出,如果該集合中的任一個狀態參數沒有滿足對應的預設標准,則忽略該候選圖像,並重新選擇一幀新圖像作為候選圖像;以及掌紋匹配單元,用於根據預設算法將所述對比掌紋圖像與預先錄入的一個或多個基準掌紋圖像進行匹配,若匹配成功,則確定認證通過;若匹配失敗則向用戶輸出認證失敗提示或返回篩選輸出單元。 In view of the above, the present invention provides a non-contact palmprint authentication device applied to a portable terminal including a camera and an illumination lamp, the device comprising: an acquisition control unit, configured to enable the camera when the palmprint authentication process is turned on, and Keeping the working state of the illuminator set to the illumination mode when the external illumination is insufficient, Thereby providing a fill light output for the camera; a screening output unit, configured to select a frame of a new image from the video stream output by the camera as a candidate image, and acquire a current state parameter set of the camera for the candidate image Determining whether each state parameter in the set satisfies a preset criterion corresponding to the parameter, and if satisfied, the candidate image is output as a palmprint matching palmprint image, if any state parameter in the set is not Satisfying the corresponding preset criterion, ignoring the candidate image, and reselecting a new frame of the image as the candidate image; and a palmprint matching unit for using the contrast palmprint image and the pre-recorded one according to a preset algorithm Or matching the plurality of reference palmprint images, if the matching is successful, determining that the authentication passes; if the matching fails, outputting an authentication failure prompt or returning to the screening output unit.
本發明還提供一種非接觸式掌紋認證方法,應用於包括攝像頭以及照明燈的便攜終端上,其中該方法包括以下步驟:步驟A,在掌紋認證流程開啟時使能所述攝像頭,並在外部光照不足時保持所述照明燈的工作狀態被設置為照明模式,從而為所述攝像頭提供補光輸出;步驟B,從所述攝像頭輸出的視頻流中選擇一幀新圖像作為候選圖像;步驟C,針對該候選圖像獲取所述攝像頭當前的狀態參數集合,判斷該集合中的每一個狀態參數是否都滿足與該參數對應的預設標准,如果都滿足則將該候選圖像作為掌紋匹配的對比掌紋圖像輸出,如果該集合中的任一個狀態參數沒有滿足對應的預設標准,則忽略該候選圖像並返 回步驟B;以及步驟D,根據預設算法將所述對比掌紋圖像與預先錄入的基準掌紋圖像進行匹配,若匹配成功,則確定認證通過;若匹配失敗則向用戶輸出認證失敗提示或返回步驟B。 The present invention also provides a non-contact palmprint authentication method for a portable terminal including a camera and an illumination lamp, wherein the method comprises the following steps: Step A, enabling the camera when the palmprint authentication process is turned on, and external illumination When insufficient, the working state of the illuminating light is set to an illumination mode to provide a fill light output for the camera; and step B, a new image of a frame is selected from the video stream output by the camera as a candidate image; C: acquiring, according to the candidate image, a current state parameter set of the camera, determining whether each state parameter in the set meets a preset criterion corresponding to the parameter, and if the two are satisfied, matching the candidate image as a palmprint matching The contrast palm print image output, if any of the state parameters in the set does not meet the corresponding preset criteria, the candidate image is ignored and returned Going back to step B; and step D, matching the contrast palmprint image with the pre-recorded reference palmprint image according to a preset algorithm, and if the matching is successful, determining that the authentication passes; if the matching fails, outputting an authentication failure prompt or Go back to step B.
本發明能夠有效提升非接觸式掌紋認證中對比掌紋圖像的輸出質量,從而提升非接觸式掌紋認證技術的性能表現。 The invention can effectively improve the output quality of the contrast palmprint image in the non-contact palmprint authentication, thereby improving the performance of the non-contact palmprint authentication technology.
11‧‧‧照明燈 11‧‧‧Lights
12‧‧‧攝像頭 12‧‧‧ camera
101~105‧‧‧步驟 101~105‧‧‧Steps
圖1是本發明一種典型的應用場景圖。 1 is a typical application scenario diagram of the present invention.
圖2是本發明一種實施方式中非接觸式掌紋認證裝置的邏輯結構及其基礎硬件環境的示意圖。 2 is a schematic diagram showing the logical structure of a non-contact palmprint authentication apparatus and its basic hardware environment in an embodiment of the present invention.
圖3是本發明一種實施方式中非接觸式掌紋認證方法的流程圖。 3 is a flow chart of a non-contact palmprint authentication method in an embodiment of the present invention.
圖4是本發明另一種實施方式中非接觸式掌紋認證方法的流程圖。 4 is a flow chart of a non-contact palmprint authentication method in another embodiment of the present invention.
為了解決現有技術的問題,目前業界還在研究人臉識別等技術來實現用戶身份認證。但這種技術仍然無法從本質上改善便利性與安全性的天然矛盾。以人臉識別為例,其安全性上存在的問題是,用戶人臉圖像的取得也是相對容易的,用戶可能在互聯網或其他終端上中存放有大量自身的照片,這些照片可能被他人輕易獲取到,這樣非法用戶就可以利用這些照片來偽裝通過人臉認證。 In order to solve the problems of the prior art, the industry is currently studying technologies such as face recognition to implement user identity authentication. But this technology still does not substantially improve the natural contradiction between convenience and security. Taking face recognition as an example, the security problem is that the acquisition of user face images is relatively easy. Users may store a large number of their own photos on the Internet or other terminals. These photos may be easily taken by others. Get it so that illegal users can use these photos to camouflage through face authentication.
相對於指紋、人臉而言,掌紋被他人獲取的可能性非常小。這是因為,首先,人們在使用便攜終端的過程中,其手部操作大部分依賴於手指。其次,日常生活中,人們在使用手時,手掌通常處於一定程度的收合狀態,即便留下了掌紋,留下的掌紋與手掌張開時的掌紋截然不同,很難用來偽裝通過身份認證。此外,用戶一般不會保存清晰的手掌照片,因而也不會存在照片被他人獲取而加以利用的弊端。 Compared to fingerprints and faces, the possibility that palm prints are acquired by others is very small. This is because, first of all, in the process of using a portable terminal, most of the hand operations depend on the finger. Secondly, in daily life, when people use their hands, the palms are usually in a certain degree of collapse. Even if the palm prints are left, the palm prints are completely different from the palm prints when the palms are open. It is difficult to use for identity authentication. In addition, users generally do not save clear palm photos, so there is no drawback that photos are taken and used by others.
然而,目前的掌紋認證的實現技術仍然要依賴專用的硬件設備,這同樣會造成成本較高和不夠便利的問題。例如中國專利申請公開第CN101833647A號公布了一種掌紋獲取設備及對應的處理方法。在這種方案中,雖然改進了傳統技術中需要屏蔽環境光的缺點,但仍然需要引入專用的硬件,使用閃光燈或外接紅外LED的方式來完成掌紋認證過程,並且仍然是接觸式掌紋認證實現。在接觸式掌紋認證技術中,用戶手掌需要通過一個特定的定位部件(比如手放置臺)固定在距離攝像頭預定距離的位置上,用戶手掌無法自由活動。顯然,這種技術便利性非常差,無法應用於便攜終端。此外,中國專利申請公開第CN1972186A號公布了一種移動式身份認證系統及其認證方法,在該技術中,使用移動設備照相功能,輔助閃光燈來獲取掌紋進行掌紋認證,其帶來了一定的便利性,但是該方案獲取掌紋圖像的質量較低,因此對內置的掌紋匹配算法要求很高,該方案整體上離實際商用仍然有不小的距離。 However, the current palmprint authentication implementation technology still relies on dedicated hardware devices, which also causes high cost and insufficient convenience. For example, Chinese Patent Application Publication No. CN101833647A discloses a palmprint acquisition device and a corresponding processing method. In this solution, although the disadvantages of the need to shield ambient light in the conventional technology are improved, it is still necessary to introduce dedicated hardware, using a flash lamp or an external infrared LED to complete the palmprint authentication process, and still be a contact palmprint authentication implementation. In the contact palmprint authentication technology, the user's palm needs to be fixed at a predetermined distance from the camera by a specific positioning component (such as a hand placement table), and the user's palm cannot move freely. Obviously, this technology is very inconvenient and cannot be applied to portable terminals. In addition, Chinese Patent Application Publication No. CN1972186A discloses a mobile identity authentication system and an authentication method thereof, in which a mobile device camera function is used to assist a flash to obtain a palm print for palmprint authentication, which brings certain convenience. However, the quality of the palmprint image is low, so the built-in palmprint matching algorithm is very demanding, and the scheme is still far from the actual commercial.
針對目前這些技術的缺點本發明提出一種非接觸式掌紋認證的解決方案,以從本質上改善非接觸式掌紋認證的技術基礎,為非 接觸式掌紋認證技術在便利性上的突破提供技術保障。所謂非接觸式掌紋認證是指,被認證的手掌無需被固定在某個定位部件上。 In view of the shortcomings of the current technologies, the present invention proposes a non-contact palmprint authentication solution to substantially improve the technical basis of non-contact palmprint authentication. Contact palmprint authentication technology provides technical support for breakthroughs in convenience. The so-called non-contact palmprint authentication means that the authenticated palm does not need to be fixed on a certain positioning component.
在一種較佳的實施方式中,本發明提供一種基於計算機程序實現的非接觸式掌紋認證裝置,該裝置應用在便攜終端(以下僅以智能手機為例)上。如圖2所示,該智能手機通常包括CPU、內存、攝像頭12、非易失性存儲器、照明燈11以及包括觸摸顯示屏在內的各種輸入輸出硬件等。 In a preferred embodiment, the present invention provides a contactless palmprint authentication device based on a computer program, which is applied to a portable terminal (hereinafter, only a smartphone is taken as an example). As shown in FIG. 2, the smartphone typically includes a CPU, a memory, a camera 12, a non-volatile memory, an illumination lamp 11, and various input and output hardware including a touch display screen.
在優選的方式上,攝像頭12與例如由LED制成的照明燈11通常位於智能手機同一側,比如手機的背面。考慮到結構與外觀設計的變形,在本發明實施過程中,對攝像頭12與照明燈11的位置關系還可以進一步放寬,只要攝像頭12採集圖像的路徑範圍與照明燈11的光照輸出範圍存在交集即可。事實上,只要能閃光拍照的智能手機,均具備實施本發明的基礎硬件環境。如圖1所示,較粗的虛線表示照明燈11的光照輸出範圍,而較細虛線表示攝像頭12採集圖像的路徑範圍。 In a preferred manner, the camera 12 and the illumination 11, for example made of LEDs, are typically located on the same side of the smartphone, such as the back of the handset. Considering the deformation of the structure and the design, in the implementation of the present invention, the positional relationship between the camera 12 and the illumination lamp 11 can be further relaxed, as long as the path range of the image captured by the camera 12 intersects with the illumination output range of the illumination lamp 11. Just fine. In fact, as long as the smart phone capable of flashing photos has the basic hardware environment for implementing the present invention. As shown in FIG. 1, the thicker dashed line indicates the illumination output range of the illumination lamp 11, and the thinner dashed line indicates the path range in which the camera 12 captures the image.
在實現上來說,該裝置可以作為一個獨立的手機應用(APP)安裝在手機上,也可以作為一個特性功能集成在其他手機應用中。 In terms of implementation, the device can be installed as a stand-alone mobile application (APP) on the mobile phone, or integrated as a feature in other mobile applications.
請參考圖2,在一種軟件實施方式(並不排除其他實施方式)中,該裝置作為一個邏輯層面的虛擬裝置,主要包括採集控制單元、篩選輸出單元以及掌紋匹配單元。 Referring to FIG. 2, in a software implementation manner (other embodiments are not excluded), the device functions as a logic level virtual device, and mainly includes an acquisition control unit, a screening output unit, and a palmprint matching unit.
請參考圖3,該裝置的使用和運行過程包括以下步驟。 Referring to Figure 3, the use and operation of the device includes the following steps.
步驟101,採集控制單元根據特定指令開啟掌紋認證流程;步驟102,採集控制單元在掌紋認證流程啟動時使能攝像頭,並至少在外部光照不足時保持照明燈被設置為照明模式;步驟103,篩選輸出單元從攝像頭當前輸出的視頻流中獲取一幀新圖像作為候選圖像;步驟104,篩選輸出單元針對該候選圖像相應獲取攝像頭當前的狀態參數集合,並判斷該集合中的每一個狀態參數是否都滿足與該參數對應的預設標准,如果都滿足則將候選圖像作為掌紋匹配的對比掌紋圖像輸出,如果沒有都滿足,則忽略該候選圖像,並返回步驟103;步驟105,掌紋匹配單元判斷對比掌紋圖像是否與基準掌紋圖像匹配,如果匹配則認證用戶身份合法。 Step 101: The acquisition control unit starts the palmprint authentication process according to the specific instruction; in step 102, the acquisition control unit enables the camera when the palmprint authentication process is started, and keeps the illumination light set to the illumination mode at least when the external illumination is insufficient; The output unit acquires a frame of a new image as a candidate image from the video stream currently output by the camera; in step 104, the filter output unit acquires a current state parameter set of the camera for the candidate image, and determines each state in the set. Whether the parameter satisfies the preset criterion corresponding to the parameter, and if yes, the candidate image is output as a palmprint matching contrast palm print image, if not, the candidate image is ignored, and the process returns to step 103; step 105 The palmprint matching unit determines whether the contrast palmprint image matches the reference palmprint image, and if so, the authenticated user identity is legal.
掌紋認證可以作為各種手機應用的身份驗證機制,用戶若要執行特定操作,如訪問重要數據,其需要通過掌紋認證來驗證其身份。為實現掌紋認證,通常需要先錄入一個或多個用戶掌紋圖像作為基準掌紋圖像。該基準掌紋圖像是掌紋認證的基礎,將後續採集到的對比掌紋圖像與這個基準掌紋圖像進行匹配,匹配成功則認證通過。 Palmprint authentication can be used as an authentication mechanism for various mobile applications. To perform certain operations, such as accessing important data, users need to verify their identity through palmprint authentication. In order to achieve palmprint authentication, it is usually necessary to first enter one or more user palmprint images as a reference palmprint image. The reference palmprint image is the basis of the palmprint authentication, and the subsequent acquired palmprint image is matched with the reference palmprint image, and the matching is successful.
基準掌紋圖像的錄入可以採用多種方式。一種方式是用戶上傳一幀圖像作為基準掌紋圖像,比如使用其他照相設備拍攝的掌紋圖像作為基準掌紋圖像。在一種可能的實現方式中,也可以使用與上述採集對比掌紋圖像類似的方法,來通過智能手機採集一個基準掌紋圖像保存在智能手機內部。 The entry of the reference palmprint image can be done in a variety of ways. One way is for the user to upload a frame of image as a reference palm print image, such as a palm print image taken with other camera equipment as a reference palm print image. In a possible implementation manner, a method similar to the above-described method for collecting a palmprint image may be used to collect a reference palmprint image from the smartphone and save it inside the smartphone.
也就是說,手機APP中可設置有一個基準錄入流程,以供用戶採集並保存基準掌紋圖像。在這種方式中,採集控制單元在基準錄入流程開啟時相應使能所述攝像頭,並在外部光照不足時保持照明燈工作狀態被設置為照明模式為攝像頭提供補光輸出;篩選輸出單元按照步驟103和步驟104那樣篩選圖像,不同的是在基準錄入流程中,其會將輸出的對比掌紋圖像作為基準掌紋圖像保存起來。 That is to say, a mobile phone APP can be set with a reference entry process for the user to collect and save the reference palm print image. In this manner, the acquisition control unit enables the camera correspondingly when the reference entry process is turned on, and maintains the illumination operation state when the external illumination is insufficient, and is set to the illumination mode to provide the fill light output for the camera; the filter output unit follows the steps. 103 and screen 104 filter the image, except that in the benchmark entry process, the saved contrast palm image is saved as a reference palmprint image.
本發明在產品化實現的過程中也會加入這些既有的實現,但錄入基準掌紋圖像以及判斷對比掌紋圖像與基準掌紋圖像是否匹配的過程,可以參考已有技術加以實現。本發明並不關注匹配算法本身的優劣,本發明的目標主要是通過改進對比掌紋圖像的採集以及掌紋認證的流程,來降低掌紋認證類軟件產品的開發難度和開發成本。 The present invention also incorporates these existing implementations in the process of product implementation, but the process of entering the reference palmprint image and determining whether the contrast palmprint image matches the reference palmprint image can be implemented with reference to the prior art. The present invention does not focus on the advantages and disadvantages of the matching algorithm itself. The object of the present invention is to reduce the development difficulty and development cost of the palmprint authentication software product by improving the process of comparing palmprint image acquisition and palmprint authentication.
在作為基準掌紋圖像的用戶掌紋錄入完成後,用戶可能會通過特定的交互界面觸發掌紋認證流程的開啟。例如,用戶可能在屏幕上點擊特定觸摸按鈕來觸發掌紋認證流程開啟;當然觸發掌紋認證流程的開啟也可能是特定應用觸發的,比如某個手機應用在發現某些條件滿足時,其可能會觸發掌紋認證流程開啟。 After the user's palmprint entry as the reference palmprint image is completed, the user may trigger the opening of the palmprint authentication process through a specific interactive interface. For example, the user may click a specific touch button on the screen to trigger the palmprint authentication process to be turned on; of course, the triggering of the palmprint authentication process may also be triggered by a specific application, such as a mobile phone application may trigger when certain conditions are met. The palmprint certification process is open.
在本發明中,在掌紋認證流程開啟之後,採集控制單元會將攝像頭使能並將照明燈設置在照明模式下。在智能手機上,攝像頭開啟之後,其會自動通過內置的傳感器(Sensor)芯片不斷採集圖像並輸出一定幀率的視頻流,比如說30幀/秒的視頻流。這個視頻流通常會展示在手機屏幕上,讓用戶直觀感受到攝像頭所對准的方向或目標。 In the present invention, after the palmprint authentication process is turned on, the acquisition control unit will enable the camera and set the illumination in the illumination mode. On a smartphone, after the camera is turned on, it automatically captures images through the built-in sensor chip and outputs a video stream of a certain frame rate, such as a 30-frame/second video stream. This video stream is usually displayed on the screen of the phone, allowing the user to intuitively see the direction or target that the camera is aimed at.
若要取得一幀對比掌紋圖像與基準掌紋圖像進行匹配,直接的思路是參考智能手機的照相應用加以實現。在照相應用中,當用戶在手機屏幕上點擊照相應用圖標時,攝像頭會開啟並根據用戶操作將當前採集到的一幀圖像輸出並保存。如果某一款其他應用需要取得一幀圖像時,通常的做法也是模擬照相應用的功能實現。 To get a frame to compare the palmprint image with the reference palmprint image, the direct idea is to refer to the camera application of the smartphone. In the camera application, when the user clicks on the camera application icon on the screen of the mobile phone, the camera will turn on and output and save the currently acquired image of one frame according to the user operation. If a particular application needs to take a frame of image, the usual practice is to implement the functionality of a simulated camera application.
當外部光照不足的時候,照相類應用會自動利用閃光燈進行補光。這種方式在需要取得一幀圖像的其他應用場景中也許是可以滿足用戶要求的,然而在掌紋認證過程中卻存在問題。首先,用戶使用智能手機對准手掌的時候,其距離通常比較近,一般在數十厘米的範圍。若選擇自動閃光模式,在很多時候尤其是外部光照輕度不足的情況下,容易造成圖像過曝。但若選擇手動啟動閃光,則不僅便利性差,而且對用戶要求較高。其次,由於閃光是一瞬間完成的,若閃光的同時用戶的手掌在移動,手掌移動會導致運動模糊,最終導致當前拍攝的這一幀圖像的質量較差。用戶手掌與手機之間的相對距離可能隨時發生變化,這種距離的不斷變化對於對焦狀態與曝光狀態有直接和顯著的影響,用戶手掌的移動是不可能控制的,而閃光燈的發光時間是瞬間完成的,因此使用閃光燈模式,與移動終端的使用方式之間存在難以克服的矛盾,導致其通常無法獲取滿足掌紋認證的質量要求的掌紋圖像。 When the external light is insufficient, the camera application will automatically fill the light with the flash. This method may meet user requirements in other application scenarios where one frame of image is required, but there is a problem in the palmprint authentication process. First, when a user uses a smartphone to align the palm of his hand, the distance is usually relatively close, typically in the range of tens of centimeters. If you choose the automatic flash mode, in many cases, especially when the external light is not enough, it is easy to cause the image to be overexposed. However, if you choose to manually start the flash, it is not only convenient, but also high on the user. Secondly, since the flash is completed in an instant, if the user's palm is moving while the flash is being fired, the movement of the palm will cause motion blur, which eventually results in a poor quality of the currently shot image. The relative distance between the palm of the user and the mobile phone may change at any time. The constant change of this distance has a direct and significant influence on the focus state and the exposure state. The movement of the palm of the user is impossible to control, and the flashing time of the flash is instantaneous. Completed, therefore, there is an insurmountable contradiction between using the flash mode and the way the mobile terminal is used, resulting in it being generally unable to obtain a palm print image that satisfies the quality requirements of palmprint authentication.
因此,在進行掌紋認證的時候,若遵循本領域一般的技術實現思路而採用傳統的照相應用方式來採集對比掌紋圖像,基本上難以採集到圖像質量較好的對比掌紋圖像。在這種情況下,需要開發人員開 發更為強大的算法來彌補對比掌紋圖像質量的不足,但這樣一來,開發成本和難度無疑會升高,整體效果卻可能依然很差。 Therefore, when palmprint authentication is performed, if a conventional photographic application method is used to collect contrast palmographic images according to the general technical realization of the art, it is basically difficult to collect contrast palmprint images with better image quality. In this case, developers need to open More powerful algorithms are used to compensate for the lack of quality of the palmprint image, but in this case, the development cost and difficulty will undoubtedly increase, but the overall effect may still be poor.
另外,從應用實際出發,用戶可能在各種場合進行掌紋認證,以閃光模式來獲取對比掌紋圖像無疑會造成光污染,影響到周圍的人群,這樣的產品實現不便於在公共場合使用。 In addition, from the practical application, the user may perform palmprint authentication in various occasions, and obtaining the contrast palmprint image in the flash mode will undoubtedly cause light pollution and affect the surrounding crowds, and such products are not convenient for use in public places.
事實上,閃光模式的思路主要還是受到傳統照相技術思路的影響,希望輸出一個高功率的光照來彌補光照的不足。並且,由於大部分照相應用中目標距離的不確定性,照明模式對於傳統照相需求而言是不適宜的。例如,當被拍攝目標比較遠的時候,照明模式通常毫無意義。然而,具體到掌紋認證應用,由於掌紋通常距離攝像頭較近,完全可以採用照明模式來進行攝像時的補光。 In fact, the idea of the flash mode is mainly influenced by the traditional photographic technology ideas, and it is hoped to output a high-powered light to compensate for the lack of illumination. Also, due to the uncertainty of the target distance in most photographic applications, the illumination mode is not suitable for conventional photographic needs. For example, when the subject is far away, the lighting mode is usually meaningless. However, in particular for palmprint authentication applications, since the palm print is usually closer to the camera, it is entirely possible to use the illumination mode to fill the light when imaging.
換言之,本發明針對掌紋認證的實際,考慮到掌紋通常距離攝像頭較近,採用照明模式來補光,雖然其補光強度比閃光模式要小很多,但由於照明燈與手掌距離較近,不僅可以實現良好的補光效果,而且基本可以確保不會因為照明燈的開啟而導致過曝。 In other words, the present invention is directed to the practice of palmprint authentication, considering that the palm print is usually closer to the camera, and the illumination mode is used to fill the light. Although the fill light intensity is much smaller than the flash mode, since the distance between the illumination lamp and the palm is relatively close, A good fill-in effect is achieved, and it is basically guaranteed that it will not be overexposed due to the opening of the light.
尤其值得注意的是,由於外部光源的位置是不確定的,本發明通過利用手機的照明模式進行攝像補光,可以有效地改善外部光照中存在逆光、順光、以及來自不同角度的光照所產生的負面影響,即消除環境光帶來的負面影響,從而可以保證圖像輸出質量區間變得更加收斂。例如,與在照明模式下拍照相比,在開啟閃光功能拍照的時候,若其他條件一致,智能手機攝像頭輸出的圖像質量的變化區間更大,也就 是說圖像質量輸出不夠穩定。 It is particularly worth noting that since the position of the external light source is uncertain, the present invention can effectively improve the backlighting, the smoothing, and the illumination from different angles in the external illumination by performing the image filling light by using the illumination mode of the mobile phone. The negative impact, that is, the elimination of the negative effects of ambient light, can ensure that the image output quality interval becomes more convergent. For example, compared with taking pictures in the lighting mode, when the flash function is turned on, if the other conditions are the same, the image quality of the smartphone camera output changes more. It means that the image quality output is not stable enough.
而且閃光模式下照明燈的輸出功率很高,無法持續提供照明,如果持續提供照明,將會很容易造成照明燈燒毀。 Moreover, the output power of the illumination lamp in the flash mode is high, and the illumination cannot be continuously provided. If the illumination is continuously provided, it will easily cause the illumination to burn.
在採用照明模式改善對比掌紋圖像質量的基礎上,本發明還對攝像頭連續輸出的多幀圖像進行篩選。攝像頭使能之後,操作系統可能會默認將攝像頭設置在連續自動對焦模式下。考慮到操作系統未必是默認將攝像頭設置為連續自動對焦模式,本發明對採集對比掌紋圖像的過程進一步優化。比如在iOS操作系統中,操作系統允許應用控制攝像頭工作在一次自動對焦模式、連續自動對焦模式、以及手動對焦模式中任一模式下。在iOS 6.0操作系統中這三種模式的表達如下:AVCaptureFocusModeLocked=0,//鎖定焦距,即不對焦 On the basis of improving the quality of the contrast palmprint image by using the illumination mode, the present invention also filters the multi-frame images continuously output by the camera. After the camera is enabled, the operating system may set the camera to continuous autofocus mode by default. The present invention further optimizes the process of acquiring contrast palmographic images, considering that the operating system does not necessarily set the camera to a continuous autofocus mode by default. For example, in the iOS operating system, the operating system allows the application to control the camera to work in either one of the auto focus mode, the continuous auto focus mode, and the manual focus mode. In the iOS 6.0 operating system, the expressions of these three modes are as follows: AVCaptureFocusModeLocked=0, / / lock the focal length, that is, not focus
AVCaptureFocusModeAutoFocus=1,//進行一次對焦,然後鎖定焦距 AVCaptureFocusModeAutoFocus=1, / / focus once, then lock the focus
AVCaptureFocusModeContinuousAutoFocus=2,//連續自動對焦 AVCaptureFocusModeContinuousAutoFocus=2,//Continuous AF
類似地,對於曝光調整而言,iOS也有三種模式供用戶選擇:固定曝光模式、一次自動曝光模式、以及連續自動曝光模式。在iOS 6.0操作系統中這三種模式的表達如下:AVCaptureExposureModeLocked=0,//鎖定光圈,即不進行曝光調整 Similarly, for exposure adjustments, iOS also has three modes for users to choose from: fixed exposure mode, one automatic exposure mode, and continuous auto exposure mode. In the iOS 6.0 operating system, the expressions of these three modes are as follows: AVCaptureExposureModeLocked=0, / / lock the aperture, that is, no exposure adjustment
AVCaptureExposureModeAutoExpose=1,//進行一次曝光調 整,然後鎖定光圈 AVCaptureExposureModeAutoExpose=1, / / make an exposure adjustment Whole, then lock the aperture
AVCaptureExposureModeContinuousAutoExposure=2,//連續自動曝光調整 AVCaptureExposureModeContinuousAutoExposure=2, / / continuous automatic exposure adjustment
為了能夠持續獲取質量較高的圖像輸出,採集控制單元在使能攝像頭時,進一步通過操作系統提供的接口控制攝像頭,以使攝像頭工作在連續自動對焦模式以及連續自動曝光模式下。同理可推知,如果實施過程中涉及到白平衡狀態參數的話,採集控制單元需要對白平衡調整模式做類似的設置。 In order to continuously obtain high quality image output, the acquisition control unit further controls the camera through the interface provided by the operating system when the camera is enabled, so that the camera operates in continuous autofocus mode and continuous auto exposure mode. Similarly, it can be inferred that if the white balance state parameter is involved in the implementation process, the acquisition control unit needs to make similar settings for the white balance adjustment mode.
篩選的原則是攝像頭當前的狀態參數集合中每一個狀態參數是否都滿足該參數對應的預設標准,如果都滿足預設標准則當前這一幀圖像是可以接受的對比掌紋圖像。狀態參數集合至少包括一種狀態參數。在一種可能的實施方式中,採集狀態集合可以包括對焦狀態參數、曝光狀態參數以及白平衡狀態參數中的任意一種或者多種。當然,如果操作系統能夠提供更多狀態參數,則可以根據應用需要加以選擇。 The principle of screening is whether each state parameter in the current state parameter set of the camera satisfies the preset standard corresponding to the parameter. If all the preset criteria are met, the current frame image is an acceptable contrast palm image. The set of state parameters includes at least one state parameter. In a possible implementation manner, the collection state set may include any one or more of a focus state parameter, an exposure state parameter, and a white balance state parameter. Of course, if the operating system can provide more state parameters, it can be selected according to the needs of the application.
在一種可能的具體實施方式中,篩選輸出單元從攝像頭獲得一幀圖像時,其需要根據攝像頭當前的對焦狀態參數以及曝光狀態參數做出選擇。通常,對焦狀態參數可以分別表征對焦完成以及對焦進行中這兩種狀態,曝光狀態參數也可以表征曝光參數調整中以及曝光調整完畢這兩種狀態。當然,隨著技術的發展,操作系統中記錄的對焦狀態參數以及曝光狀態參數可能會有更多的狀態,甚至有可能將多個狀態參數糅合在一起表達。在本發明的實際實施過程中,本領域技術人員可以 根據這些變化做出適應性調整。 In a possible implementation manner, when the screening output unit obtains one frame of image from the camera, it needs to make a selection according to the current focus state parameter of the camera and the exposure state parameter. Generally, the focus state parameter can respectively represent the two states of focus completion and focus progress, and the exposure state parameter can also characterize both the exposure parameter adjustment and the exposure adjustment completion. Of course, with the development of technology, the focus state parameters and the exposure state parameters recorded in the operating system may have more states, and it is even possible to combine multiple state parameters together. In the actual implementation process of the present invention, those skilled in the art may Make adaptations based on these changes.
在實際實施本發明的過程中,可以將滿足要求的對焦狀態參數以及曝光狀態參數保存起來作為可接受的預設標准。此外,各個參數的預設標准可能因操作系統不同而不同。一旦篩選輸出單元發現這兩個狀態參數分別滿足對應的預設標准,則可以確定當前這幀圖像是可以接受的對比掌紋圖像。例如,在本發明的實施方式中,假設對焦狀態參數為1時表示對焦完成,為0時表示對焦進行中;曝光狀態為1表示曝光調整完成,為0是表示曝光調整進行中。那麽,篩選輸出單元獲取到的狀態參數集合為11時,才確定候選圖像是可以接受的對比掌紋圖像,而當狀態參數集合為00、01或10時,則可以忽略候選圖像。 In the actual implementation of the present invention, the desired focus state parameters and exposure state parameters can be saved as acceptable preset criteria. In addition, the preset criteria for each parameter may vary from operating system to operating system. Once the screening output unit finds that the two state parameters respectively satisfy the corresponding preset criteria, it can be determined that the current frame image is an acceptable contrast palm image. For example, in the embodiment of the present invention, it is assumed that the focus state parameter is 1 when the focus is completed, and when it is 0, the focus is in progress; the exposure state of 1 indicates that the exposure adjustment is completed, and the value of 0 indicates that the exposure adjustment is in progress. Then, when the set of state parameters acquired by the screening output unit is 11, it is determined that the candidate image is an acceptable contrast palm print image, and when the state parameter set is 00, 01 or 10, the candidate image can be ignored.
以iOS 6.0操作系統下的實現為例,對於對焦狀態參數是否滿足預設標准,可通過系統提供的對應接口來判斷攝像頭是否正在進行對焦調整。具體來說,可以基於通過調用以下接口而獲得的返回值來判斷,@property(nonatomic,readonly,getter=isAdjustingFocus)BOOL adjustingFocus。如果返回YES表示當前正在對焦調整狀態中;返回NO表示當前不在進行對焦,此時可以理解為對焦完成狀態。 Take the implementation of the iOS 6.0 operating system as an example. For the focus state parameter to meet the preset standard, the corresponding interface provided by the system can be used to determine whether the camera is performing focus adjustment. Specifically, it can be judged based on the return value obtained by calling the following interface, @property(nonatomic, readonly, getter=isAdjustingFocus)BOOL adjustingFocus. If it returns YES, it indicates that it is currently in the focus adjustment state; if it returns NO, it indicates that it is not currently focusing, which can be understood as the focus completion status.
對於曝光狀態參數是否滿足預設標准,可通過判斷攝像頭是否正在進行曝光調整來判斷攝像頭是否正在進行曝光調整。具體來說,可以基於通過調用以下接口而獲得的返回值來判斷,@property(nonatomic,readonly,getter=isAdjustingExposure)BOOL adjustingExposure。如果返回YES表示當前正在進行曝光調整中;返回NO 表示當前不在進行曝光調整,也就是說表征曝光調整完成。 Whether the exposure state parameter satisfies the preset standard can determine whether the camera is performing exposure adjustment by determining whether the camera is performing exposure adjustment. Specifically, it can be judged based on the return value obtained by calling the following interface, @property(nonatomic, readonly, getter=isAdjustingExposure)BOOL adjustingExposure. If YES is returned, it indicates that the exposure adjustment is currently in progress; return NO Indicates that the exposure adjustment is not currently being performed, that is, the exposure adjustment is completed.
在一幀對比掌紋圖像被獲取到之後,對比掌紋圖像可以被輸出到裝置內部的掌紋匹配單元。掌紋匹配單元可使用例如預設匹配算法將該對比掌紋圖像與預先錄入的基準掌紋圖像進行匹配。若匹配成功則通過用戶身份認證。若匹配不成功,則說明當前對比掌紋圖像可能不是來自合法用戶的手掌,或者有可能當前對比掌紋圖像的質量仍然不滿足匹配算法的要求,此時可以向用戶輸出認證失敗提示。請參考圖4,在一種可能的實現方式中,在匹配不成功時,若返回重新獲取候選圖像,則可以提高認證結果的可靠性。 After the one-frame contrast palm print image is acquired, the contrast palm print image can be output to the palmprint matching unit inside the device. The palm print matching unit can match the contrast palm print image with a pre-recorded reference palm print image using, for example, a preset matching algorithm. If the match is successful, the user identity is authenticated. If the matching is unsuccessful, it indicates that the current contrast palm print image may not be from the palm of the legitimate user, or it may be that the quality of the current contrast palmprint image still does not meet the requirements of the matching algorithm, and the authentication failure prompt may be output to the user. Referring to FIG. 4, in a possible implementation manner, if the candidate image is returned after the matching is unsuccessful, the reliability of the authentication result may be improved.
考慮到合法用戶有可能在任何光照環境下採集圖像,如果有一些光照環境極其惡劣,則本次篩選得到的對比掌紋圖像有可能仍然不滿足匹配算法的要求,一種方式是認證失敗就立刻向用戶輸出認證失敗提示,另一種方式是嘗試多次篩選並輸出對比掌紋圖像可以提高身份認證結果的可靠性。進一步來說,為了進一步提高用戶使用體驗,避免反複篩選反複不成功這樣的循環,採集控制單元可以在掌紋認證流程啟動後,啟動一個具有預定時長的定時器,比如10秒的定時器,並在定時器超時但掌紋匹配仍不成功的時候結束掌紋認證流程,同時向用戶輸出認證失敗提示。 Considering that a legitimate user may acquire images in any lighting environment, if some lighting environment is extremely bad, the contrast palmprint image obtained by this screening may still not meet the requirements of the matching algorithm. One way is that the authentication fails immediately. Another way to output the authentication failure prompt to the user is to try to filter and output the contrast palm print image to improve the reliability of the authentication result. Further, in order to further improve the user experience and avoid repeated loops such as repeated unsuccessful attempts, the acquisition control unit may start a timer having a predetermined duration, such as a 10-second timer, after the palmprint authentication process is started. When the timer expires but the palm print matching is still unsuccessful, the palmprint authentication process is ended, and the authentication failure prompt is output to the user.
考慮到網絡化應用的普及,對比掌紋圖像不僅僅可以輸出給本地的掌紋匹配單元,也可以通過網絡輸出到遠端服務器上。遠端服務器上同樣可以有掌紋匹配單元,其同樣可以採用預設的對比算法將對 比掌紋圖像與服務器上預先錄入的基準掌紋圖像進行對比。在這種情況下,掌紋認證流程可以由遠端服務器掌控。 Considering the popularity of networked applications, the contrast palm print image can be output not only to the local palmprint matching unit, but also to the remote server via the network. The remote server can also have a palm print matching unit, which can also use the preset contrast algorithm to Compare the palm print image with the pre-recorded palm print image on the server. In this case, the palmprint authentication process can be controlled by the remote server.
從以上的描述可以看出,本發明採集幀圖像的方式與傳統採集幀圖像的方式是完全不同的,本發明針對候選圖像檢查當前攝像頭狀態,攝像頭狀態符合預設標准,才將候選圖像作為對比掌紋圖像獲取下來,否則忽略掉候選圖像轉而採集下一幀圖像。 As can be seen from the above description, the method for collecting a frame image of the present invention is completely different from the manner of conventionally collecting a frame image. The present invention checks the current camera state for a candidate image, and the camera state meets a preset standard before the candidate is selected. The image is acquired as a contrast palmprint image, otherwise the candidate image is ignored and the next frame image is acquired.
綜合來看,本發明在整個改善視頻流各幀圖像質量的基礎上,又在視頻流裏面篩選圖像質量較佳的圖像,這與傳統照相應用取得圖像的方式截然不同,照相方式僅僅是根據用戶或軟件指令獲取某一時刻的圖像,並沒有結合攝像頭自身當前的例如對焦狀態、曝光狀態等的狀態參數對圖像進行篩選。 In summary, the present invention improves the image quality of the video stream in the whole process, and filters the image with better image quality in the video stream, which is completely different from the traditional camera application. The image is acquired only at a certain time according to the user or the software instruction, and the image is not filtered in combination with the current state parameters such as the focus state, the exposure state, and the like of the camera itself.
以上的實現方式中,整個過程是無需用戶幹預的,本發明稱這種方式為自動掃描方式。如前所述,智能手機可能都默認或者被採集控制單元設置在連續自動對焦模式下,因此攝像頭開啟後其就會自動對焦。在這個基礎上,為了給用戶提供不同的體驗,本發明在另一種可能的實施方式中,提供一種手動點擊實現方式。這種方式允許用戶通過點擊來確定何時開始篩選圖像。 In the above implementation manner, the whole process is without user intervention, and the present invention refers to this mode as an automatic scanning mode. As mentioned earlier, the smartphone may be set by default or by the acquisition control unit in continuous autofocus mode, so it will automatically focus when the camera is turned on. On this basis, in order to provide users with different experiences, the present invention provides a manual click implementation in another possible implementation manner. This approach allows the user to click to determine when to start filtering the image.
在手動點擊實施方式中,所述裝置還包括篩選使能單元。該篩選使能單元進一步用於在掌紋認證流程啟動後,先等待用戶的篩選對比指令,並在收到用戶下發的篩選對比指令後使能篩選輸出單元。攝像頭開啟之後會自動對焦,但此時篩選輸出單元並不篩選任何圖像,直 到用戶通過點擊觸摸顯示屏發出篩選對比指令,篩選輸出單元才開始在步驟103執行對比掌紋圖像的篩選處理。 In a manual click implementation, the apparatus further includes a screening enable unit. The screening enabling unit is further configured to wait for the user to filter and compare the instructions after the palmprint authentication process is started, and enable the screening output unit after receiving the screening comparison instruction sent by the user. The camera will automatically focus after it is turned on, but the filter output unit will not filter any images at this time. When the user issues a screening comparison command by clicking the touch display screen, the screening output unit starts to perform the screening processing of the contrast palmprint image at step 103.
這樣,由於用戶可以通過肉眼觀察屏幕上的畫面清晰度,待畫面清晰的時候才點擊屏幕觸發對比掌紋圖像篩選處理,從篩選到認證通過的時間將會大幅度縮短。值得注意的是,在這種實施方式中,篩選輸出單元依然是通過一定的篩選操作才會獲得對比掌紋圖像,只不過這個篩選的過程可能會大大縮短。 In this way, since the user can visually observe the sharpness of the screen on the screen, when the screen is clear, the screen is triggered to compare the palmprint image screening processing, and the time from screening to certification passing will be greatly shortened. It is worth noting that in this embodiment, the screening output unit still obtains a contrast palm print image through a certain screening operation, but the screening process may be greatly shortened.
無論是自動掃描方式還是手動點擊方式,其都對用戶的被認證的手掌的移動沒有要求,或者說沒有任何引導措施來引導用戶將手掌放置在適合取得高質量圖片的距離區間內。為了加快掌紋認證速度,本發明在一種可能的實施方式中,提供一種引導措施來引導用戶放置手掌。 Whether it is an automatic scanning method or a manual clicking method, it does not require the movement of the user's authenticated palm, or there is no guiding measure to guide the user to place the palm in a distance range suitable for obtaining a high quality picture. In order to speed up the palmprint authentication, the present invention, in a possible embodiment, provides a guiding measure to guide the user to place the palm.
在引導用戶放置手掌的實施方式中,採集控制單元可在使能攝像頭時,還將攝像頭的對焦參數(通常是焦距)以及曝光參數(如光圈)分別設置為預設的固定值。當然隨著主流攝像頭硬件能力的改變,這個固定值可能不斷變化。另外,不同款型的手機,對應的固定值可能不盡相同。在本實施方式中,如果用戶不移動手掌進入一個與固定值集合對應的採集距離區間,那麽篩選輸出單元將無法篩選到符合預設標准的對比掌紋圖像,因為焦距已經是一個固定值,就好像一個定焦攝像頭一樣。這也就是說,在步驟104中,用戶手掌沒有進入較佳的採集距離可能會導致候選掌紋圖像對焦不清晰或者曝光不足,此時篩選輸出單元會 因為基於候選掌紋圖像獲取到的攝像頭狀態參數沒有滿足預設標准而忽略該圖像。因此,為了讓用戶盡快移動手掌或者智能手機來改變手掌與攝像頭之間的距離,在所述狀態參數集合中的對焦狀態參數與曝光狀態參數中任一沒有滿足對應的預設標准時,採集控制單元可以進一步向用戶輸出距離錯誤的提示信息。這種提示信息的可以通過很多方式實現,可能是文字,也可能是圖像或聲音;甚至可通過屏幕背景顏色的變化來實現。例如,用戶手掌不在較佳採集距離區間內時,屏幕背景呈現出與正常默認顏色不一樣的紅色,若用戶手掌處於較佳採集距離區間內,由於無需輸出距離錯誤提示信息,屏幕背景恢複為正常默認顏色。 In an embodiment in which the user is guided to place the palm, the acquisition control unit may also set the focus parameter (usually the focal length) of the camera and the exposure parameter (such as the aperture) to a preset fixed value when the camera is enabled. Of course, as the hardware capabilities of mainstream cameras change, this fixed value may change. In addition, different models of mobile phones, the corresponding fixed values may not be the same. In this embodiment, if the user does not move the palm to enter a collection distance interval corresponding to the fixed value set, the screening output unit will not be able to filter the contrast palm print image that meets the preset standard, because the focal length is already a fixed value, It looks like a fixed focus camera. That is to say, in step 104, the user's palm does not enter a better collection distance, which may result in unclear focus or underexposure of the candidate palmprint image. The image is ignored because the camera state parameter obtained based on the candidate palmprint image does not meet the preset criteria. Therefore, in order to let the user move the palm or the smart phone as soon as possible to change the distance between the palm and the camera, when any of the focus state parameter and the exposure state parameter in the state parameter set does not satisfy the corresponding preset standard, the acquisition control The unit may further output a prompt message with a wrong distance to the user. This kind of prompt information can be implemented in many ways, possibly text, or image or sound; even through the change of the background color of the screen. For example, when the user's palm is not in the preferred collection distance interval, the screen background is different from the normal default color. If the user's palm is in the preferred collection distance interval, the screen background is restored to normal because there is no need to output the distance error prompt information. The default color.
在一種可能的實現方式中,採集控制單元可以在認證通過後將攝像頭與照明燈去使能。對於認證失敗的情況,採集控制單元的處理可以比較靈活。例如,既可以將攝像頭與照明燈去使能;也可以僅將照明燈去使能;還可以不做處理而保持攝像頭與照明燈這兩者繼續使能,並等待用戶再次觸發新的掌紋認證流程或者用戶的退出指示,如果用戶退出則需要將攝像頭和照明燈去使能。 In a possible implementation manner, the acquisition control unit can disable the camera and the illumination after the authentication is passed. For the case of authentication failure, the processing of the acquisition control unit can be more flexible. For example, you can either enable the camera and the illuminator; you can also disable the illuminator only; you can keep the camera and the illuminator enabled without processing, and wait for the user to trigger a new palmprint authentication again. The process or the user's exit indication, if the user exits, the camera and lights need to be enabled.
在一種可能的實現方式中,照明燈可以固定保持在照明模式下。這樣,在外部光照不足的時候照明燈保持補光輸出,可以顯著提升圖像質量;而在外部光照較好的時候依然保持補光輸出,也可以在一定程度上改善圖像質量,比如改善順光和逆光的影響。這種實施方式對於改善圖像質量效果好,但是其節能效果略差。 In one possible implementation, the illuminator can be fixedly held in the illumination mode. In this way, when the external illumination is insufficient, the illumination lamp maintains the fill light output, which can significantly improve the image quality; while the external illumination is good, the fill light output is maintained, and the image quality can be improved to some extent, for example, the improvement is smooth. The effects of light and backlighting. This embodiment is effective for improving image quality, but its energy saving effect is slightly inferior.
在另一種可能的具體實施方式中,採集控制單元會先讀取 智能手機自帶的感光傳感器獲得當前光照參數,根據該光照參數控制照明燈在對應的照明等級下進行補光輸出。這種實施方式可以在光照較好的情況下實現較低強度的補光輸出,甚至可以不開啟照明燈。在外部光照很差的時候,可以控制照明燈實現較高強度的補光輸出。 In another possible implementation manner, the acquisition control unit first reads The light sensor provided by the smart phone obtains the current illumination parameter, and according to the illumination parameter, the illumination lamp is controlled to perform the fill light output under the corresponding illumination level. This embodiment can achieve a lower intensity fill light output with better illumination, and may even not turn on the illumination. When the external illumination is poor, the illumination can be controlled to achieve a higher intensity fill light output.
也就是說,在這一實施方式中,採集控制單元對照明燈的控制分為多種情況,分別對應到不同的光照等級。比如說第一光照等級下,採集控制單元不使能照明燈;當外部光照等級下降到第二光照等級,採集控制單元將照明等設置在照明模式,且將照明燈的補光輸出強度設置為第一補光強度;在第三光照等級下,採集控制單元將照明燈設置在照明模式,且將照明燈的補光輸出等級設置為更高第二補光強度。 That is to say, in this embodiment, the control of the illumination control by the acquisition control unit is divided into a plurality of situations, which respectively correspond to different illumination levels. For example, in the first illumination level, the acquisition control unit does not enable the illumination lamp; when the external illumination level drops to the second illumination level, the acquisition control unit sets the illumination and the like in the illumination mode, and sets the fill light output intensity of the illumination lamp to The first fill light intensity; at the third illumination level, the acquisition control unit sets the illumination light in the illumination mode, and sets the fill light output level of the illumination light to a higher second fill light intensity.
以上兩種實施方式都可以改善光照不足情況下的圖像質量,在光照較好的時候,一種實施方式偏向於圖像質量的考慮,另一種則偏向於節能。 Both of the above embodiments can improve the image quality under the condition of insufficient illumination. When the illumination is good, one embodiment tends to consider image quality, and the other prefers energy saving.
從上一段的描述中可以看出,本發明所稱的在外部光照不足時保持照明燈被設置為照明模式,並不是特指一種觸發關系。也就是說,在本發明中,外部光照不足可能會觸發照明燈被採集控制單元使能,並進行相應等級的補光輸出。但是在可能的實施方式中,照明燈從攝像頭使能的時候就工作在照明模式下了,而與外部光照是否不足沒有直接聯系。因此,外部光照條件不足時保持照明燈被設置為照明模式是一種狀態關系的表達,而非觸發關系的表達。 As can be seen from the description of the previous paragraph, the present invention refers to keeping the illumination lamp set to the illumination mode when the external illumination is insufficient, and does not specifically refer to a trigger relationship. That is to say, in the present invention, insufficient external illumination may trigger the illumination lamp to be enabled by the acquisition control unit and perform a corresponding level of fill light output. However, in a possible implementation, the illuminator operates in the illumination mode when the camera is enabled, and is not directly related to the lack of external illumination. Therefore, keeping the illumination light set to the illumination mode when the external illumination conditions are insufficient is an expression of a state relationship, rather than an expression of a trigger relationship.
以上所述僅為本發明的較佳實施例而已,並不用以限制本 發明,凡在本發明的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本發明保護的範圍之內。 The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. All modifications, equivalents, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.
101~105‧‧‧步驟 101~105‧‧‧Steps
Claims (21)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW104109075A TWI528211B (en) | 2015-03-20 | 2015-03-20 | Non-contact palmprint authentication method, device and portable terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW104109075A TWI528211B (en) | 2015-03-20 | 2015-03-20 | Non-contact palmprint authentication method, device and portable terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI528211B true TWI528211B (en) | 2016-04-01 |
| TW201635179A TW201635179A (en) | 2016-10-01 |
Family
ID=56361378
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW104109075A TWI528211B (en) | 2015-03-20 | 2015-03-20 | Non-contact palmprint authentication method, device and portable terminal |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI528211B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106528758A (en) * | 2016-10-28 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Picture selecting method and device |
| CN107437014A (en) * | 2016-05-27 | 2017-12-05 | 富泰华工业(深圳)有限公司 | Electronic installation and fingerprint identification method with fingerprint identification function |
-
2015
- 2015-03-20 TW TW104109075A patent/TWI528211B/en not_active IP Right Cessation
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107437014A (en) * | 2016-05-27 | 2017-12-05 | 富泰华工业(深圳)有限公司 | Electronic installation and fingerprint identification method with fingerprint identification function |
| TWI694383B (en) * | 2016-05-27 | 2020-05-21 | 鴻海精密工業股份有限公司 | Electronic device with fingerprint identification function and fingerprint identification method |
| CN106528758A (en) * | 2016-10-28 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Picture selecting method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| TW201635179A (en) | 2016-10-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9928399B2 (en) | Non-contact palmprint authentication method, device and mobile terminal | |
| KR102449670B1 (en) | Method and server for generating image data using a plurality of cameras | |
| CN105528573B (en) | User terminal equipment and iris recognition method thereof | |
| US20210084216A1 (en) | Method of controlling camera device and electronic device thereof | |
| JP6374986B2 (en) | Face recognition method, apparatus and terminal | |
| US10423772B2 (en) | Electronic devices with improved iris recognition and methods thereof | |
| US10956553B2 (en) | Method of unlocking an electronic device, unlocking device and system and storage medium | |
| US20210286979A1 (en) | Identity verification method and device, electronic device and computer-readable storage medium | |
| CN109325336B (en) | Unlocking method, unlocking device and computer readable storage medium | |
| CN107220621A (en) | Terminal carries out the method and device of recognition of face | |
| WO2015113479A1 (en) | Mobile terminal iris recognition method and device having human-computer interaction mechanism | |
| JP6391708B2 (en) | Method and apparatus for acquiring iris image, and iris identification device | |
| JP2017191374A (en) | Organism determination device, terminal apparatus, control method of organism determination device, and control program | |
| CN104463083B (en) | Contactless palmprint authentication method, device and portable terminal device | |
| CN103227907A (en) | Method, device and system for remotely controlling image capture unit | |
| TWI752105B (en) | Feature image acquisition method, acquisition device, and user authentication method | |
| CN108288044A (en) | Electronic device, face identification method and Related product | |
| CN110287672A (en) | Verification method and device, electronic device and storage medium | |
| CN106815803B (en) | Picture processing method and device | |
| CN104853096A (en) | Rotation camera-based shooting parameter determination method and terminal | |
| CN206595991U (en) | A kind of double-camera mobile terminal | |
| TWI528211B (en) | Non-contact palmprint authentication method, device and portable terminal | |
| CN106161970B (en) | A shooting method, device and mobile terminal | |
| CN108763906B (en) | Biometric identification method and device | |
| CN108830194B (en) | Biometric identification method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | Annulment or lapse of patent due to non-payment of fees |