TWI796610B - Image processing method, chip, and electronic device - Google Patents

Image processing method, chip, and electronic device Download PDF

Info

Publication number
TWI796610B
TWI796610B TW109137332A TW109137332A TWI796610B TW I796610 B TWI796610 B TW I796610B TW 109137332 A TW109137332 A TW 109137332A TW 109137332 A TW109137332 A TW 109137332A TW I796610 B TWI796610 B TW I796610B
Authority
TW
Taiwan
Prior art keywords
descriptor
target
image
sample image
key points
Prior art date
Application number
TW109137332A
Other languages
Chinese (zh)
Other versions
TW202117591A (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 大陸商敦泰電子(深圳)有限公司
Publication of TW202117591A publication Critical patent/TW202117591A/en
Application granted granted Critical
Publication of TWI796610B publication Critical patent/TWI796610B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1347Preprocessing; Feature extraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1365Matching; Classification

Abstract

The invention provides an image processing method, the method includes: acquiring a template image collected by an image collection device; acquiring a first set of key points of the template image and a second set of descriptors of the key points; and determining whether any description area of the descriptors exceeds an edge of the template image. The method further includes marking the descriptor whose description area exceeds the edge of the template image as a target descriptor, and mark the key point of the target descriptor is a target key point; and regenerating a target descriptor based on the target key point and a sample image, and updating the template image based on the regenerated target descriptor. The invention also provides a chip and an electronic device. The invention can improve an accuracy of image matching.

Description

影像處理方法、晶片及電子裝置 Image processing method, chip and electronic device

本申請涉及圖像識別技術領域,具體涉及一種影像處理方法、晶片及電子裝置。 The present application relates to the technical field of image recognition, in particular to an image processing method, a chip and an electronic device.

傳統的圖像匹配的流程,基本都是先提取關鍵點,然後根據關鍵點的位置劃分一塊區域提取描述符。然而,有些圖像(例如指紋)區域比較小,當關鍵點的位置靠近圖像的邊緣時,根據所述關鍵點生成的描述符的區域不完整,導致描述符的資訊不全,從而會導致匹配的效果不佳。 The traditional image matching process basically extracts key points first, and then divides a region according to the position of the key points to extract descriptors. However, some images (such as fingerprints) have a relatively small area. When the position of the key point is close to the edge of the image, the area of the descriptor generated according to the key point is incomplete, resulting in incomplete information of the descriptor, which will lead to matching does not work well.

鑒於以上問題,本申請提出一種影像處理方法、晶片及電子裝置,以提高圖像匹配的準確率。 In view of the above problems, the present application proposes an image processing method, a chip and an electronic device to improve the accuracy of image matching.

本申請的第一方面提供一種影像處理方法,所述方法包括:獲取圖像採集設備採集的範本圖像;提取所述範本圖像中的關鍵點,得到關鍵點集;基於所述關鍵點集中的每個關鍵點生成描述符,得到描述符集;確認所述描述符集中是否有描述符的描述區域超出所述範本圖像的邊緣;當存在描述符的描述區域超出所述範本圖像的邊緣時,標記描述區域超出所述範本圖像的邊緣的描述符為目標描述符,及標記所述目標描述符中的關鍵點為目標關鍵點;根據 所述目標關鍵點和樣本圖像重新生成目標描述符;以及基於重新生成的目標描述符更新所述範本圖像。 The first aspect of the present application provides an image processing method, the method comprising: acquiring a sample image collected by an image acquisition device; extracting key points in the sample image to obtain a key point set; Generate a descriptor for each key point of the descriptor to obtain a descriptor set; confirm whether the description area of the descriptor in the descriptor set exceeds the edge of the template image; When the edge, mark the descriptor that describes the region beyond the edge of the template image as the target descriptor, and mark the key points in the target descriptor as target key points; according to The target keypoints and sample images regenerate target descriptors; and update the sample images based on the regenerated target descriptors.

根據本申請的一些實施方式,所述方法還包括:計算所述目標描述符中超出所述範本圖像的邊緣的區域的大小;比對計算的區域是否大於或等於預設區域;當所述計算的區域大於或等於所述預設區域時,根據所述目標關鍵點和樣本圖像重新生成目標描述符。 According to some embodiments of the present application, the method further includes: calculating the size of an area in the target descriptor beyond the edge of the template image; comparing whether the calculated area is greater than or equal to a preset area; when the When the calculated area is greater than or equal to the preset area, the target descriptor is regenerated according to the target key points and the sample image.

根據本申請的一些實施方式,根據所述目標描述符和樣本圖像重新生成目標描述符包括:利用所述樣本圖像覆蓋所述目標描述符;根據所述目標描述符獲得所述目標關鍵點;確定所述目標關鍵點在所述樣本圖像中的目標位置;以所述目標位置作為所述樣本圖像的關鍵點,並根據所述樣本圖像的關鍵點重新生成目標描述符。 According to some embodiments of the present application, regenerating the target descriptor according to the target descriptor and the sample image includes: covering the target descriptor with the sample image; obtaining the target key points according to the target descriptor ; Determine the target position of the target key point in the sample image; use the target position as the key point of the sample image, and regenerate the target descriptor according to the key point of the sample image.

根據本申請的一些實施方式,所述樣本圖像為與所述範本圖像匹配的圖像。 According to some embodiments of the present application, the sample image is an image matched with the template image.

根據本申請的一些實施方式,所述基於重新生成的目標描述符更新所述範本圖像包括:基於重新生成的目標描述符確認範本圖像中的關鍵點;根據所述確認的關鍵點匹配在所述範本圖像中的目標描述符;以所述重新生成的目標描述圖替換匹配的目標描述符,以更新所述範本圖像。 According to some embodiments of the present application, the updating the sample image based on the regenerated object descriptor includes: confirming key points in the sample image based on the regenerated object descriptor; an object descriptor in the template image; replacing the matched object descriptor with the regenerated object descriptor map, so as to update the template image.

本申請的第二方面提供一種影像處理晶片,所述晶片包括:獲取模組,用於獲取圖像採集設備採集的範本圖像;提取模組,用於提取所述範本圖像中的關鍵點,得到關鍵點集;生成模組,用於基於所述關鍵點集中的每個關鍵點生成描述符,得到描述符集;確認模組,用於確認所述描述符集中是否有描述符的描述區域超出所述範本圖像的邊緣;標記模組,用於當存在描述符的描述區域超出所述範本圖像的邊緣時,標記描述區域超出所述範本圖像的邊緣的描述符為目標描述符;所述生成模組,還用於根據所述目標描述符和樣本 圖像重新生成目標描述符;以及更新模組,用於基於重新生成的目標描述符更新所述範本圖像。 The second aspect of the present application provides an image processing chip, the chip includes: an acquisition module, used to acquire a sample image collected by an image acquisition device; an extraction module, used to extract key points in the sample image , to obtain the key point set; the generation module is used to generate a descriptor based on each key point in the key point set to obtain the descriptor set; the confirmation module is used to confirm whether there is a description of the descriptor in the descriptor set The area exceeds the edge of the template image; the marking module is used to mark the descriptor whose description area exceeds the edge of the template image as the target description when the description area of the existing descriptor exceeds the edge of the template image character; the generation module is also used to The image regenerates the target descriptor; and an updating module, configured to update the template image based on the regenerated target descriptor.

根據本申請的一些實施方式,所述生成模組,還用於:計算所述目標描述符中超出所述範本圖像的邊緣的區域的大小;比對計算的區域是否大於或等於預設區域;當所述計算的區域大於或等於所述預設區域時,根據所述目標關鍵點和樣本圖像重新生成目標描述符。 According to some embodiments of the present application, the generation module is further used to: calculate the size of the area beyond the edge of the template image in the target descriptor; compare whether the calculated area is greater than or equal to the preset area ; When the calculated area is greater than or equal to the preset area, regenerate the target descriptor according to the target key points and the sample image.

根據本申請的一些實施方式,所述生成模組,還用於:利用所述樣本圖像覆蓋所述目標描述符;根據所述目標描述符獲得所述目標關鍵點;確定所述目標關鍵點在所述樣本圖像中的目標位置;以所述目標位置作為所述樣本圖像的關鍵點,並根據所述樣本圖像的關鍵點重新生成目標描述符。 According to some embodiments of the present application, the generation module is further configured to: use the sample image to cover the target descriptor; obtain the target key points according to the target descriptor; determine the target key points A target position in the sample image; using the target position as a key point of the sample image, and regenerating a target descriptor according to the key point of the sample image.

根據本申請的一些實施方式,所述更新模組還用於:基於重新生成的目標描述符確認範本圖像中的關鍵點;根據所述確認的關鍵點匹配在所述範本圖像中的目標描述符;利用所述重新生成的目標描述符替換匹配的目標描述符,更新所述範本圖像。 According to some embodiments of the present application, the update module is further configured to: confirm the key points in the sample image based on the regenerated target descriptor; match the target in the sample image according to the confirmed key points Descriptor: use the regenerated target descriptor to replace the matched target descriptor, and update the template image.

本申請第三方面提供一種電子裝置,所述電子裝置包括:處理器;以及記憶體,所述記憶體中存儲有多個程式模組,所述多個程式模組由所述處理器載入並執行如前所述的影像處理方法。 The third aspect of the present application provides an electronic device, the electronic device includes: a processor; and a memory, wherein a plurality of program modules are stored in the memory, and the plurality of program modules are loaded by the processor And execute the image processing method as mentioned above.

本申請中影像處理方法、晶片及電子裝置,通過確定範本圖像中位於圖像邊緣的關鍵點,並通過樣本圖像將所述關鍵點對應的描述符進行更新,可以增加圖像邊緣處關鍵點被匹配上的可能性,從而提升圖像後續匹配的準確率。 In the image processing method, chip, and electronic device of the present application, by determining the key points at the edge of the image in the sample image, and updating the descriptors corresponding to the key points through the sample image, the key points at the edge of the image can be increased. The possibility of the point being matched, thereby improving the accuracy of the subsequent matching of the image.

A:範本圖像 A:Template image

B:樣本圖像 B: sample image

A1~A9、B1~B3:關鍵點 A1~A9, B1~B3: key points

DA1~DA9、DB1~DB3:描述符 D A1 ~ D A9 、 D B1 ~ D B3 : Descriptor

10:電子裝置 10: Electronic device

11:記憶體 11: Memory

12:處理器 12: Processor

13:電腦程式 13: Computer program

20:影像處理晶片 20: Image processing chip

201:獲取模組 201: Get the module

202:提取模組 202: Extract module

203:生成模組 203: Generate modules

204:確認模組 204: Confirm the module

205:標記模組 205: Marking Module

206:更新模組 206:Update module

圖1是本申請一實施例所提供的影像處理方法的流程示意圖。 FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application.

圖2是本申請一實施例所提供的範本圖像A中的關鍵點的示意圖。 FIG. 2 is a schematic diagram of key points in a sample image A provided by an embodiment of the present application.

圖3是本申請一實施例提供的根據範本圖像A中的關鍵點生成的描述符的示意圖。 Fig. 3 is a schematic diagram of a descriptor generated according to key points in a sample image A provided by an embodiment of the present application.

圖4是本申請一實施例所提供的樣本圖像B覆蓋所述範本圖像A的示意圖。 FIG. 4 is a schematic diagram of a sample image B covering the sample image A provided by an embodiment of the present application.

圖5是本申請實施例所提供的影像處理晶片示意圖。 FIG. 5 is a schematic diagram of an image processing chip provided by an embodiment of the present application.

圖6是本申請一實施方式提供的電子裝置架構示意圖。 FIG. 6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application.

為了能夠更清楚地理解本申請的上述目的、特徵和優點,下面結合附圖和具體實施例對本申請進行詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。 In order to more clearly understand the above objects, features and advantages of the present application, the present application will be described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.

在下面的描述中闡述了很多具體細節以便於充分理解本申請,所描述的實施例僅是本申請一部分實施例,而不是全部的實施例。 Many specific details are set forth in the following description to facilitate a full understanding of the application, and the described embodiments are only a part of the embodiments of the application, rather than all the embodiments.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本申請的技術領域的技術人員通常理解的含義相同。本文中在本申請的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本申請。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of the application are only for the purpose of describing specific embodiments, and are not intended to limit the application.

請參閱圖1,圖1為本申請一個實施例提供的影像處理方法的流程示意圖。根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。為了便於說明,僅示出了與本申請實施例相關的部分。如圖1所示,所述影像處理方法包括以下步驟。 Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an image processing method provided by an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. For ease of description, only the parts related to the embodiment of the present application are shown. As shown in Fig. 1, the image processing method includes the following steps.

步驟S1、獲取圖像採集設備採集的範本圖像。 Step S1. Obtain a template image collected by an image collection device.

在一實施方式中,所述圖像採集設備可以是指紋採集設備,所述指紋採集設備可以是設置於手機、平板電腦、工業設備等智慧終端機中的,用 於採集用戶指紋進行身份認證。所述指紋採集設備還可以是設置於考勤裝置中的,用於採集使用者指紋進行考勤等。所述指紋採集設備可以是通過光學指紋採集技術、電容式感測器指紋採集技術、超聲波指紋採集技術、或電磁波指紋採集技術等手段採集指紋圖像的設備。 In one embodiment, the image collection device may be a fingerprint collection device, and the fingerprint collection device may be installed in a smart terminal such as a mobile phone, a tablet computer, or an industrial device. To collect user fingerprints for identity authentication. The fingerprint collection device can also be set in the attendance device, and is used to collect user fingerprints for attendance and so on. The fingerprint collection device may be a device that collects fingerprint images by means of optical fingerprint collection technology, capacitive sensor fingerprint collection technology, ultrasonic fingerprint collection technology, or electromagnetic wave fingerprint collection technology.

在其他實施方式中,所述圖像採集設備還可以是攝像頭。所述範本圖像可以是所述攝像頭拍攝的人物圖像、動物圖像、景物圖像等圖像。 In other implementation manners, the image acquisition device may also be a camera. The template image may be an image of a person, an animal, a scene, etc. captured by the camera.

在本實施方式中,當圖像採集設備後續在使用過程中採集的圖像需要進行圖像匹配時,可以使用所述範本圖像來對後續採集的圖像進行匹配。然而,由於所述範本圖像可能存在邊緣處的關鍵點的描述符區域不完整,導致匹配效果不佳。為了提升匹配精度,可以通過本申請提供的影像處理方法對所述範本圖像進行處理,補全所述範本圖像的邊緣處的關鍵點的描述符區域。 In this implementation manner, when the images acquired by the image acquisition device subsequently during use need to be matched, the template images may be used to match the subsequently acquired images. However, because the sample image may have incomplete descriptor regions of key points at the edges, the matching effect is not good. In order to improve the matching accuracy, the sample image may be processed by the image processing method provided in the present application to complement the descriptor area of the key point at the edge of the sample image.

步驟S2、提取所述範本圖像中的關鍵點,得到關鍵點集。 Step S2, extracting key points in the sample image to obtain a key point set.

所述關鍵點表示與所述範本圖像的特徵或特性相關聯的點,且可被稱為興趣點或特徵點。舉例來說,關鍵點可位於所述範本圖像中的物件的輪廓處。例如,所述關鍵點可以是指紋圖像中的細節點,例如,指紋紋線的端點、分叉點、分歧點、孤立點、環點、指紋的中心點、三角點等。所述關鍵點也可以是人臉圖像中的左眼區域、有眼區域、鼻子區域、左嘴角區域以及右嘴角區域等。 The key points represent points associated with features or characteristics of the template image, and may be referred to as interest points or feature points. For example, key points may be located at the outlines of objects in the template image. For example, the key points may be minutiae points in the fingerprint image, for example, endpoints of fingerprint lines, bifurcation points, bifurcation points, isolated points, ring points, central points of fingerprints, triangular points, and the like. The key points may also be the left eye area, eye area, nose area, left mouth corner area, right mouth corner area, etc. in the face image.

在本實施方式中,提取所述範本圖像中的關鍵點的演算法包括Harris角點檢測演算法,尺度不變性特徵變換(Scale-invariant feature transform,SIFT)特徵檢測演算法,加速魯棒性特徵(Speeded Up Robust Features,SURF)特徵檢測演算法,ORB(Oriented FAST and Rotated BRIEF)特徵檢測演算法等。 In this embodiment, the algorithm for extracting key points in the sample image includes Harris corner detection algorithm, scale-invariant feature transform (Scale-invariant feature transform, SIFT) feature detection algorithm, accelerated robustness Feature (Speeded Up Robust Features, SURF) feature detection algorithm, ORB (Oriented FAST and Rotated BRIEF) feature detection algorithm, etc.

舉例而言,如圖2所示的範本圖像A,提取所述範本圖像A中的關鍵點A1至關鍵點A9,得到關鍵點集{A1、A2、A3、A4、A5、A6、A7、A8、 A9}。 For example, for the sample image A shown in Figure 2, the key points A1 to A9 in the sample image A are extracted to obtain the key point set {A1, A2, A3, A4, A5, A6, A7 , A8, A9}.

需要說明的是,在步驟S2之前,所述影像處理方法還可以包括:預處理所述範本圖像的步驟。具體地,所述預處理所述範本圖像包括灰度化所述範本圖像、二值化所述待識別特性等。 It should be noted that, before step S2, the image processing method may further include: a step of preprocessing the template image. Specifically, the preprocessing of the sample image includes gray-scaling the sample image, binarizing the feature to be recognized, and the like.

步驟S3、基於所述關鍵點集中的每個關鍵點生成描述符,得到描述符集。 Step S3, generating a descriptor based on each key point in the key point set to obtain a descriptor set.

在本實施方式中,根據所述範本圖像生成適當的關鍵點,用於創建相應的描述符以表徵所述圖像。在一實施方式中,描述符D可以是SIFT型描述符。具體地,對於每個關鍵點,將所述關鍵點周圍的局部區域順時針旋轉,以確保其旋轉不變性。在旋轉後的區域內,將以關鍵點位置為中心16X16的矩形視窗均勻地分成16個子區域,所述描述符窗口即為16個4×4的子塊。在每個子塊上計算八個方向n*π/4(n=0,1,...7)的梯度累加值,16個子塊一共得到128個值,這個1×128的向量就被定義為一個關鍵點的描述符D。 In this embodiment, appropriate key points are generated according to the sample image, and are used to create corresponding descriptors to characterize the image. In one embodiment, the descriptor D may be a SIFT-type descriptor. Specifically, for each key point, the local area around the key point is rotated clockwise to ensure its rotation invariance. In the rotated area, the 16×16 rectangular window with the key point position as the center is evenly divided into 16 sub-areas, and the descriptor window is 16 4×4 sub-blocks. Calculate the cumulative gradient value of eight directions n*π/4 (n=0,1,...7) on each sub-block. A total of 128 values are obtained for 16 sub-blocks. This 1×128 vector is defined as A descriptor D of a keypoint.

此外,即使在所討論的示例中參照了SIFT型描述符,類似考慮同樣適用於採用不同類型的描述符(例如,加速魯棒特徵(SURF)和定向梯度長條圖(HOG)或者可能的其它類型)的情況。另外,在其他實施方式中,除了與梯度有關的資料的描述符外,還可以考慮不同類型的描述符,例如,包括與色度梯度、飽和度梯度或者甚至顏色(包括亮度、飽和度和色度)梯度有關的資料。 Furthermore, even though SIFT-type descriptors are referred to in the discussed examples, similar considerations apply to employing different types of descriptors (e.g., accelerated robust features (SURF) and histograms of oriented gradients (HOG) or possibly other type) case. Additionally, in other embodiments, in addition to descriptors related to gradients, different types of descriptors may be considered, including, for example, those related to hue gradients, saturation gradients, or even colors (including lightness, saturation, and hue). degree) gradient-related information.

在本實施方式中,所述描述符可以實現為用於圍繞給定關鍵點的特定半徑(支援區域)的多維描述符(例如128維)。例如,所述特定半徑設置為15個圖元。 In this embodiment, the descriptor may be implemented as a multi-dimensional descriptor (eg, 128 dimensions) for a specific radius (support region) around a given keypoint. For example, the specific radius is set to 15 primitives.

如圖3所示的範本圖像A,基於關鍵點集{A1、A2、A3、A4、A5、A6、A7、A8、A9}中的每一關鍵點,可以生成描述符。例如,基於關鍵點A1,可以生成描述符DA1;基於關鍵點A2,可以生成描述符DA2;依此類推,基於關 鍵點A9,可以生成描述符DA9。得到的描述符集為{DA1、DA2、DA3、DA4、DA5、DA6、DA7、DA8、DA9}。 For example image A shown in FIG. 3 , descriptors can be generated based on each key point in the key point set {A1, A2, A3, A4, A5, A6, A7, A8, A9}. For example, based on the key point A1, the descriptor D A1 can be generated; based on the key point A2, the descriptor D A2 can be generated; and so on, based on the key point A9, the descriptor D A9 can be generated. The resulting descriptor set is {D A1 , D A2 , D A3 , D A4 , D A5 , D A6 , D A7 , D A8 , D A9 }.

步驟S4、確認所述描述符集中是否有描述符的描述區域超出所述範本圖像的邊緣。當存在描述符的描述區域超出所述範本圖像的邊緣時,流程進入步驟S5;當沒有描述符的描述區域超出所述範本圖像的邊緣時,流程結束。 Step S4 , confirming whether the description area of any descriptor in the descriptor set exceeds the edge of the template image. When the description area with descriptors exceeds the edge of the sample image, the process enters step S5; when the description area without descriptors exceeds the edge of the sample image, the process ends.

為了保證關鍵點的描述符的可分性,所述描述符的描述區域會儘量選擇比較大。而為了保證範本圖像中的關鍵點的數量,關鍵點有可能分佈在範本圖像的邊緣區域。這樣有可能導致所述描述符的描述區域會超出圖像的邊緣。例如,如圖3所示的範本圖像A中,描述符DA1、DA2、DA3、DA8、和DA9都超出所述範本圖像的邊緣。 In order to ensure the separability of the descriptor of the key point, the description area of the descriptor will be selected as large as possible. In order to ensure the number of key points in the sample image, the key points may be distributed in the edge area of the sample image. This may cause the description area of the descriptor to exceed the edge of the image. For example, in the sample image A shown in FIG. 3 , the descriptors D A1 , D A2 , D A3 , D A8 , and D A9 are all beyond the edge of the sample image.

步驟S5、標記描述區域超出所述範本圖像的邊緣的描述符為目標描述符,及標記所述目標描述符中的關鍵點為目標關鍵點。 Step S5 , marking a descriptor whose description area exceeds the edge of the sample image as an object descriptor, and marking a key point in the object descriptor as an object key point.

由於超過範本圖像的邊緣的描述符的資訊不全,在後續進行圖像匹配的過程中會出現匹配效果不佳的情況。因此,本案為瞭解決匹配效果不佳的問題,需要將超出所述範本圖像的邊緣的描述符補充完整,提升圖像匹配精度。 Due to the incomplete information of the descriptors beyond the edge of the template image, poor matching effect may occur in the subsequent image matching process. Therefore, in order to solve the problem of poor matching effect in this case, it is necessary to complete the descriptors beyond the edge of the template image to improve the accuracy of image matching.

在一實施方式中,在標記所述目標描述符後,可以先判斷是否需要更新所述目標描述符。當所述目標描述符的描述區域超過所述範本圖像的邊緣的區域比較小的時候,所述目標描述符的描述區域能準確描述所述範本圖像,無需更新所述目標描述符;當所述目標描述符的描述區域超過所述範本圖像的邊緣的區域比較大的時候,所述目標描述符不能準確地描述所述範本圖像,需要更新所述目標描述符。 In an implementation manner, after marking the object descriptor, it may first be determined whether the object descriptor needs to be updated. When the description area of the target descriptor is relatively small beyond the edge of the sample image, the description area of the target descriptor can accurately describe the sample image without updating the target descriptor; When the description area of the target descriptor exceeds the area of the edge of the sample image is relatively large, the target descriptor cannot accurately describe the sample image, and the target descriptor needs to be updated.

具體地,計算所述目標描述符的描述區域中超出所述範本圖像的邊緣的區域的大小,並比對計算的區域是否大於或等於預設區域。當所述計算 的區域大於或等於所述預設區域時,確認需要更新所述目標描述符,流程進入步驟S6;當所述計算的區域小於所述預設區域時,確認不需要更新所述目標描述符,流程結束。 Specifically, calculating the size of an area beyond the edge of the sample image in the description area of the target descriptor, and comparing whether the calculated area is greater than or equal to a preset area. When the calculation When the calculated area is greater than or equal to the preset area, it is confirmed that the target descriptor needs to be updated, and the process enters step S6; when the calculated area is smaller than the preset area, it is confirmed that the target descriptor does not need to be updated, The process ends.

例如,如圖3所示的範本圖像A中,描述符DA1和DA9的描述區域中超出所述範本圖像的邊緣的區域較小,無需更新描述符DA1和DA9;而描述符DA2、DA3和DA8的描述區域中超出所述範本圖像的邊緣的區域較大,需要更新描述符DA2、DA3和DA8For example, in the sample image A shown in Figure 3, the areas beyond the edge of the sample image in the description areas of the descriptors D A1 and D A9 are small, and there is no need to update the descriptors D A1 and D A9 ; In the description areas of the descriptors D A2 , D A3 and D A8 , the areas beyond the edge of the template image are relatively large, and the descriptors D A2 , D A3 and D A8 need to be updated.

步驟S6、根據所述目標關鍵點和樣本圖像重新生成目標描述符。 Step S6, regenerate the target descriptor according to the target key points and the sample image.

在本實施方式中,所述樣本圖像為與所述範本圖像匹配的圖像,同時所述樣本圖像完整、品質較好。例如,所述樣本圖像與所述範本圖像之間的相似度大於第一預設值,或者所述樣本圖像中的關鍵點與所述範本圖像中的關鍵點匹配的比例大於第二預設值。需要說明的是,所述樣本圖像具有所述範本圖像中位於邊緣處的關鍵點的完整描述符資訊,即範本圖像邊緣的描述符描述的區域在樣本圖像中對應的區域必須是完整的。 In this implementation manner, the sample image is an image that matches the template image, and the sample image is complete and of good quality. For example, the similarity between the sample image and the sample image is greater than a first preset value, or the proportion of the key points in the sample image matching the key points in the sample image is greater than the first preset value. Two default values. It should be noted that the sample image has complete descriptor information of the key points located at the edge in the sample image, that is, the region described by the descriptor of the edge of the sample image must be a corresponding region in the sample image. complete.

可以理解的是,在本實施方式中,所述樣本圖像可以是預先存儲在所述電子裝置中的圖像,也可以是通過所述圖像採集設備採集的圖像。 It can be understood that, in this embodiment, the sample image may be an image pre-stored in the electronic device, or an image collected by the image acquisition device.

具體地,根據所述目標關鍵點和樣本圖像重新生成目標描述符包括:利用所述樣本圖像覆蓋所述目標描述符;根據所述目標描述符獲得所述目標關鍵點;確定所述目標關鍵點在所述樣本圖像中的目標位置;以所述目標位置作為所述樣本圖像的關鍵點,並根據所述樣本圖像的關鍵點重新生成目標描述符。 Specifically, regenerating the target descriptor according to the target key points and the sample image includes: covering the target descriptor with the sample image; obtaining the target key points according to the target descriptor; determining the target A target position of the key point in the sample image; using the target position as a key point of the sample image, and regenerating a target descriptor according to the key point of the sample image.

需要說明的是,所述樣本圖像覆蓋所述目標描述符時,需要將範 本圖像A中在邊緣的關鍵點落在與所述樣本圖像B的重合區域內。如圖4所示,所述範本圖像中的目標關鍵點A2、A3和A8,都落在都所述範本圖像與所述樣本圖像的重合區域內,即被所述樣本圖像B所覆蓋;確定所述目標關鍵點在樣本圖像B中的位置,以確定的位置作為所述樣本圖像B的關鍵點,如關鍵點B1、B2和B3。在所述樣本圖像中,以所述關鍵點B1、B2和B3分別生成目標描述符DB1、DB2和DB3。 It should be noted that when the sample image covers the target descriptor, the range The key point on the edge in this image A falls within the overlapping area with the sample image B. As shown in Figure 4, the target key points A2, A3 and A8 in the sample image all fall within the overlapping area between the sample image and the sample image, that is, the sample image B covered: determine the position of the target key point in the sample image B, and use the determined position as the key point of the sample image B, such as key points B1, B2 and B3. In the sample image, target descriptors DB1 , DB2 and DB3 are respectively generated with the key points B1 , B2 and B3 .

步驟S7、基於重新生成的目標描述符更新所述範本圖像。 Step S7, updating the template image based on the regenerated target descriptor.

在本實施方式中,可以以重新生成的目標描述符替換所述範本圖像中的目標描述符。具體地,基於重新生成的目標描述符確認範本圖像中的關鍵點;根據所述確認的關鍵點匹配在所述範本圖像中的目標描述符;以所述重新生成的目標描述圖替換匹配的目標描述符,以更新所述範本圖像。 In this implementation manner, the target descriptor in the template image may be replaced with a regenerated target descriptor. Specifically, confirm the key points in the sample image based on the regenerated target descriptor; match the target descriptor in the sample image according to the confirmed key point; replace the matching with the regenerated target descriptor map target descriptor to update the template image.

需要說明的是,所述重新生成的目標描述符的關鍵點與所述範本圖像中的目標描述符的關鍵點對應。例如,如圖4所示,基於重新生成的目標描述符DB1確認範本圖像中的關鍵點A2,根據所述確認的關鍵點A2匹配在所述範本圖像中的目標描述符DA2,最後利用重新生成的目標描述符DB1替換所述範本圖像中的目標描述符DA2。同理,利用重新生成的目標描述符DB2替換所述範本圖像中的目標描述符DA3,以及利用重新生成的目標描述符DB3替換所述範本圖像中的目標描述符DA8。 It should be noted that the key points of the regenerated target descriptor correspond to the key points of the target descriptor in the sample image. For example, as shown in Figure 4, based on the regenerated target descriptor DB1, confirm the key point A2 in the sample image, match the target descriptor DA2 in the sample image according to the confirmed key point A2, and finally use The regenerated object descriptor DB1 replaces the object descriptor DA2 in the sample image. Similarly, the object descriptor DA3 in the sample image is replaced with the regenerated object descriptor DB2, and the object descriptor DA8 in the sample image is replaced with the regenerated object descriptor DB3.

需要說明的是,在基於重新生成的目標描述符更新所述範本圖像時,還可以增加圖像面積完整性和圖像品質的卡控,保證更新的正確性。 It should be noted that, when updating the template image based on the regenerated target descriptor, it is also possible to increase the integrity of the image area and the control of image quality to ensure the correctness of the update.

圖1-4詳細介紹了本申請的影像處理,通過所述方法,能夠提高影像處理的效率及準確率。下面結合圖5和圖6,對實現所述影像處理的軟體晶片的功能模組以及硬體裝置架構進行介紹。應該瞭解,所述實施例僅為說明之用,在專利申請範圍上並不受此結構的限制。 1-4 describe the image processing of the present application in detail, and the efficiency and accuracy of the image processing can be improved through the method. The functional modules of the software chip and the architecture of the hardware device for realizing the image processing will be introduced below with reference to FIG. 5 and FIG. 6 . It should be understood that the embodiments are only for illustration, and are not limited by the structure in terms of the scope of the patent application.

圖5為本申請一實施方式提供的影像處理晶片的結構圖。 FIG. 5 is a structural diagram of an image processing chip provided by an embodiment of the present application.

在一些實施方式中,所述影像處理晶片20可以包括多個由程式碼段所組成的功能模組,以實現影像處理的功能。 In some implementations, the image processing chip 20 may include a plurality of functional modules composed of program code segments to realize image processing functions.

參考圖5,本實施方式中,影像處理晶片20根據其所執行的功能,可以被劃分為多個功能模組,所述各個功能模組用於執行圖1對應實施方式中的各個步驟,以實現影像處理的功能。本實施方式中,所述影像處理晶片20的功能模組包括:獲取模組201、提取模組202、生成模組203、確認模組204、標記模組205以及更新模組206。各個功能模組的功能將在下面的實施例中進行詳述。 Referring to FIG. 5 , in this embodiment, the image processing chip 20 can be divided into a plurality of functional modules according to the functions it performs, and each functional module is used to execute the steps in the corresponding embodiment in FIG. 1 , so as to Realize the function of image processing. In this embodiment, the functional modules of the image processing chip 20 include: an acquisition module 201 , an extraction module 202 , a generation module 203 , a confirmation module 204 , a marking module 205 and an updating module 206 . The functions of each functional module will be described in detail in the following embodiments.

所述獲取模組201用於獲取圖像採集設備採集的範本圖像。 The obtaining module 201 is used to obtain the sample image collected by the image collection device.

所述提取模組202用於提取所述範本圖像中的關鍵點,得到關鍵點集。 The extraction module 202 is used to extract key points in the sample image to obtain a key point set.

在一個實施方式中,所述關鍵點可以是指紋圖像中的細節點,例如,指紋紋線的端點、分叉點、分歧點、孤立點、環點、指紋的中心點、三角點等。所述關鍵點也可以是人臉圖像中的左眼區域、有眼區域、鼻子區域、左嘴角區域以及右嘴角區域等。 In one embodiment, the key points may be minutiae points in the fingerprint image, for example, endpoints of fingerprint lines, bifurcation points, bifurcation points, isolated points, ring points, central points of fingerprints, triangle points, etc. . The key points may also be the left eye area, eye area, nose area, left mouth corner area, right mouth corner area, etc. in the face image.

在本實施方式中,提取所述範本圖像中的關鍵點的演算法包括Harris角點檢測演算法,尺度不變性特徵變換(Scale-invariant feature transform,SIFT)特徵檢測演算法,加速魯棒性特徵(Speeded Up Robust Features,SURF)特徵檢測演算法,ORB(Oriented FAST and Rotated BRIEF)特徵檢測演算法等。 In this embodiment, the algorithm for extracting key points in the sample image includes Harris corner detection algorithm, scale-invariant feature transform (Scale-invariant feature transform, SIFT) feature detection algorithm, accelerated robustness Feature (Speeded Up Robust Features, SURF) feature detection algorithm, ORB (Oriented FAST and Rotated BRIEF) feature detection algorithm, etc.

所述生成模組203用於基於所述關鍵點集中的每個關鍵點生成描述符,得到描述符集。 The generating module 203 is configured to generate a descriptor based on each key point in the key point set to obtain a descriptor set.

所述確認模組204用於確認所述描述符集中是否有描述符的描述區域超出所述範本圖像的邊緣。 The confirming module 204 is used for confirming whether the description area of any descriptor in the descriptor set exceeds the edge of the sample image.

所述標記模組205用於標記描述區域超出所述範本圖像的邊緣的描述符為目標描述符,及標記所述目標描述符中的關鍵點為目標關鍵點。 The labeling module 205 is used to label descriptors whose description areas exceed the edge of the sample image as target descriptors, and mark keypoints in the target descriptors as target keypoints.

在一實施方式中,在標記所述目標描述符後,所述標記模組205還用於判斷是否需要更新所述目標描述符。當所述目標描述符的描述區域超過所述範本圖像的邊緣的區域比較小的時候,所述目標描述符的描述區域能準確描述所述範本圖像,無需更新所述目標描述符;當所述目標描述符的描述區域超過所述範本圖像的邊緣的區域比較大的時候,所述目標描述符不能準確地描述所述範本圖像,需要更新所述目標描述符。 In one embodiment, after marking the target descriptor, the marking module 205 is further configured to determine whether the target descriptor needs to be updated. When the description area of the target descriptor is relatively small beyond the edge of the sample image, the description area of the target descriptor can accurately describe the sample image without updating the target descriptor; When the description area of the target descriptor exceeds the area of the edge of the sample image is relatively large, the target descriptor cannot accurately describe the sample image, and the target descriptor needs to be updated.

所述生成模組204還用於根據所述目標關鍵點和樣本圖像重新生成目標描述符。 The generating module 204 is also used to regenerate object descriptors according to the object key points and sample images.

具體地,所述生成模組204用於利用所述樣本圖像覆蓋所述目標描述符;根據所述目標描述符獲得所述目標關鍵點;確定所述目標關鍵點在所述樣本圖像中的目標位置;以所述目標位置作為所述樣本圖像的關鍵點,並根據所述樣本圖像的關鍵點重新生成目標描述符。 Specifically, the generating module 204 is used to cover the target descriptor with the sample image; obtain the target key point according to the target descriptor; determine that the target key point is in the sample image the target position; using the target position as the key point of the sample image, and regenerating the target descriptor according to the key point of the sample image.

所述更新模組206用於基於重新生成的目標描述符更新所述範本圖像。 The updating module 206 is used for updating the template image based on the regenerated object descriptor.

在本實施方式中,可以以重新生成的目標描述符替換所述範本圖像中的目標描述符。具體地,基於重新生成的目標描述符確認範本圖像中的關鍵點;根據所述確認的關鍵點匹配在所述範本圖像中的目標描述符;以所述重新生成的目標描述圖替換匹配的目標描述符,以更新所述範本圖像。 In this implementation manner, the target descriptor in the template image may be replaced with a regenerated target descriptor. Specifically, confirm the key points in the sample image based on the regenerated target descriptor; match the target descriptor in the sample image according to the confirmed key point; replace the matching with the regenerated target descriptor map target descriptor to update the template image.

圖6為本申請一實施方式提供的電子裝置的功能模組示意圖。所述電子裝置10包括記憶體11、處理器12以及存儲在所述記憶體11中並可在所述處 理器12上運行的電腦程式13,例如影像處理的程式。 FIG. 6 is a schematic diagram of functional modules of an electronic device provided by an embodiment of the present application. The electronic device 10 includes a memory 11, a processor 12 and stored in the memory 11 and can be A computer program 13 running on the processor 12, such as an image processing program.

在本實施方式中,所述電子裝置10可以是但不限於智慧手機、平板電腦、智慧工業設備、指紋考勤機等。 In this embodiment, the electronic device 10 may be, but not limited to, a smart phone, a tablet computer, a smart industrial device, a fingerprint time attendance machine, and the like.

所述處理器12執行所述電腦程式13時實現上述方法實施例中影像處理的步驟,用於識別所述指紋採集單元11採集到的指紋圖像。或者,所述處理器13執行所述電腦程式13實現上述晶片實施例中各模組/單元的功能。 When the processor 12 executes the computer program 13, it implements the steps of image processing in the above method embodiment, which is used to identify the fingerprint image collected by the fingerprint collection unit 11 . Alternatively, the processor 13 executes the computer program 13 to implement the functions of the modules/units in the above chip embodiment.

示例性的,所述電腦程式13可以被分割成一個或多個模組/單元,所述一個或者多個模組/單元被存儲在所述記憶體11中,並由所述處理器12執行,以完成本申請。所述一個或多個模組/單元可以是能夠完成特定功能的一系列電腦程式指令段,該指令段用於描述所述電腦程式13在所述電子裝置10中的執行過程。例如,所述電腦程式13可以被分割成圖5中的模組201-206。 Exemplarily, the computer program 13 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 11 and executed by the processor 12 , to complete this application. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 13 in the electronic device 10 . For example, the computer program 13 can be divided into modules 201-206 in FIG. 5 .

本領域技術人員可以理解,所述示意圖6僅僅是電子裝置10的示例,並不構成對電子裝置10的限定,電子裝置10可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件,例如所述電子裝置10還可以包括輸入輸出設備等。 Those skilled in the art can understand that the schematic diagram 6 is only an example of the electronic device 10, and does not constitute a limitation to the electronic device 10. The electronic device 10 may include more or less components than those shown in the figure, or combine certain components. , or different components, for example, the electronic device 10 may also include input and output devices and the like.

所稱處理器12可以是中央處理單元(Central Processing Unit,CPU),還可以包括其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可以是微處理器或者該處理器也可以是任何常規的處理器等,所述處理器12是所述電子裝置10的控制中心,利用各種介面和線路連接整個電子裝置10的各個部分。 The so-called processor 12 may be a central processing unit (Central Processing Unit, CPU), and may also include other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., the processor 12 is the control center of the electronic device 10, and uses various interfaces and lines to connect various parts of the entire electronic device 10 .

所述記憶體11可用於存儲所述電腦程式13和/或模組/單元,所述處理器12通過運行或執行存儲在所述記憶體11內的電腦程式和/或模組/單元,以及 調用存儲在記憶體11內的資料,實現所述電子裝置10的各種功能。記憶體11可以包括外部存儲介質,也可以包括記憶體。此外,記憶體11可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如硬碟、記憶體、插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)、至少一個磁碟記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。 The memory 11 can be used to store the computer program 13 and/or module/unit, and the processor 12 runs or executes the computer program and/or module/unit stored in the memory 11, and Various functions of the electronic device 10 are realized by calling the data stored in the memory 11 . The memory 11 may include an external storage medium or a memory. In addition, memory 11 can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory card (Flash Card), at least one disk memory component, flash memory device, or other volatile solid state memory components.

所述電子裝置10集成的模組/單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲介質中。基於這樣的理解,本申請實現上述實施例方法中的全部或部分流程,也可以通過電腦程式來指令相關的硬體來完成,所述的電腦程式可存儲於一電腦可讀存儲介質中,該電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。需要說明的是,所述電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波信號和電信信號。 If the integrated modules/units of the electronic device 10 are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above-mentioned embodiments in the present application can also be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can realize the steps of the above-mentioned various method embodiments. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable Excludes electrical carrier signals and telecommunication signals.

最後應說明的是,以上實施例僅用以說明本申請的技術方案而非限制,儘管參照較佳實施例對本申請進行了詳細說明,本領域的普通技術人員應當理解,可以對本申請的技術方案進行修改或等同替換,而不脫離本申請技術方案的精神和範圍。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application without limitation. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be Make modifications or equivalent replacements without departing from the spirit and scope of the technical solutions of the present application.

Claims (9)

一種影像處理方法,應用於電子裝置,所述方法包括:獲取圖像採集設備採集的範本圖像;提取所述範本圖像中的關鍵點,得到關鍵點集;基於所述關鍵點集中的每個關鍵點生成描述符,得到描述符集;確認所述描述符集中是否有描述符的描述區域超出所述範本圖像的邊緣;當存在描述符的描述區域超出所述範本圖像的邊緣時,標記描述區域超出所述範本圖像的邊緣的描述符為目標描述符,及標記所述目標描述符中的關鍵點為目標關鍵點;根據所述目標關鍵點和樣本圖像重新生成目標描述符;以及基於重新生成的目標描述符更新所述範本圖像,包括:基於重新生成的目標描述符確認範本圖像中的關鍵點;根據所述確認的關鍵點匹配在所述範本圖像中的目標描述符;利用所述重新生成的目標描述符替換匹配的目標描述符,更新所述範本圖像。 An image processing method applied to an electronic device, the method comprising: acquiring a sample image collected by an image acquisition device; extracting key points in the sample image to obtain a key point set; based on each key point set in the key point set A key point generates a descriptor to obtain a descriptor set; confirm whether the description area of the descriptor in the descriptor set exceeds the edge of the template image; when there is a description area of the descriptor beyond the edge of the template image , mark the descriptor whose description area exceeds the edge of the sample image as the target descriptor, and mark the key points in the target descriptor as target key points; regenerate the target description according to the target key points and the sample image and updating the sample image based on the regenerated target descriptor, including: confirming key points in the sample image based on the regenerated target descriptor; matching in the sample image according to the confirmed key points the target descriptor; using the regenerated target descriptor to replace the matched target descriptor, and update the template image. 如請求項1所述之影像處理方法,所述方法還包括:計算所述目標描述符中超出所述範本圖像的邊緣的區域的大小;比對計算的區域是否大於或等於預設區域;當所述計算的區域大於或等於所述預設區域時,根據所述目標關鍵點和樣本圖像重新生成目標描述符。 The image processing method according to claim 1, the method further includes: calculating the size of an area in the target descriptor beyond the edge of the template image; comparing whether the calculated area is greater than or equal to a preset area; When the calculated area is greater than or equal to the preset area, regenerate the target descriptor according to the target key points and the sample image. 如請求項2所述之影像處理方法,根據所述目標描述符和樣本圖像重新生成目標描述符包括:利用所述樣本圖像覆蓋所述目標描述符;根據所述目標描述符獲得所述目標關鍵點; 確定所述目標關鍵點在所述樣本圖像中的目標位置;以所述目標位置作為所述樣本圖像的關鍵點,並根據所述樣本圖像的關鍵點重新生成目標描述符。 According to the image processing method described in Claim 2, regenerating the object descriptor according to the object descriptor and the sample image includes: covering the object descriptor with the sample image; obtaining the object descriptor according to the object descriptor key points of the target; Determine the target position of the target key point in the sample image; use the target position as the key point of the sample image, and regenerate the target descriptor according to the key point of the sample image. 如請求項1所述之影像處理方法,所述樣本圖像為與所述範本圖像匹配的圖像。 In the image processing method according to claim 1, the sample image is an image matched with the template image. 一種影像處理晶片,所述晶片包括:獲取模組,用於獲取圖像採集設備採集的範本圖像;提取模組,用於提取所述範本圖像中的關鍵點,得到關鍵點集;生成模組,用於基於所述關鍵點集中的每個關鍵點生成描述符,得到描述符集;確認模組,用於確認所述描述符集中是否有描述符的描述區域超出所述範本圖像的邊緣;標記模組,用於當存在描述符的描述區域超出所述範本圖像的邊緣時,標記描述區域超出所述範本圖像的邊緣的描述符為目標描述符,及標記所述目標描述符中的關鍵點為目標關鍵點;所述生成模組,還用於根據所述目標關鍵點和樣本圖像重新生成目標描述符;以及更新模組,用於基於重新生成的目標描述符更新所述範本圖像。 An image processing chip, the chip includes: an acquisition module, used to acquire a sample image collected by an image acquisition device; an extraction module, used to extract key points in the sample image, and obtain a key point set; generate A module for generating descriptors based on each key point in the key point set to obtain a descriptor set; a confirmation module for confirming whether the description area of any descriptor in the descriptor set exceeds the template image The edge of the mark module, used to mark the descriptor whose description area exceeds the edge of the sample image as the target descriptor when the description area of the existing descriptor exceeds the edge of the sample image, and mark the target The key points in the descriptor are target key points; the generation module is also used to regenerate the target descriptor according to the target key points and the sample image; and the update module is used to regenerate the target descriptor based on Update said template image. 如請求項5所述之影像處理晶片,所述生成模組,還用於:計算所述目標描述符中超出所述範本圖像的邊緣的區域的大小;比對計算的區域是否大於或等於預設區域;當所述計算的區域大於或等於所述預設區域時,根據所述目標關鍵點和樣本圖像重新生成目標描述符。 The image processing chip as described in claim 5, the generating module is also used to: calculate the size of the area beyond the edge of the template image in the target descriptor; compare whether the calculated area is greater than or equal to A preset area: when the calculated area is greater than or equal to the preset area, regenerate the target descriptor according to the target key points and the sample image. 如請求項5所述之影像處理晶片,所述生成模組還用於: 利用所述樣本圖像覆蓋所述目標描述符;根據所述目標描述符獲得所述目標關鍵點;確定所述目標關鍵點在所述樣本圖像中的目標位置;以所述目標位置作為所述樣本圖像的關鍵點,並根據所述樣本圖像的關鍵點重新生成目標描述符。 In the image processing chip described in claim 5, the generation module is also used for: Use the sample image to cover the target descriptor; obtain the target key point according to the target descriptor; determine the target position of the target key point in the sample image; use the target position as the target position key points of the sample image, and regenerate the target descriptor according to the key points of the sample image. 如請求項5所述之影像處理晶片,所述更新模組還用於:基於重新生成的目標描述符確認範本圖像中的關鍵點;根據所述確認的關鍵點匹配在所述範本圖像中的目標描述符;利用所述重新生成的目標描述符替換匹配的目標描述符,更新所述範本圖像。 In the image processing chip as described in claim 5, the update module is further used to: confirm the key points in the template image based on the regenerated target descriptor; match the key points in the template image according to the confirmed key points The target descriptor in ; use the regenerated target descriptor to replace the matching target descriptor, and update the template image. 一種電子裝置,所述電子裝置包括:處理器;以及記憶體,所述記憶體中存儲有多個程式模組,所述多個程式模組由所述處理器載入並執行如請求項1至請求項4中任意一項所述的影像處理方法。 An electronic device, comprising: a processor; and a memory, wherein a plurality of program modules are stored in the memory, and the plurality of program modules are loaded and executed by the processor as in claim 1 To the image processing method described in any one of Claim 4.
TW109137332A 2020-07-13 2020-10-27 Image processing method, chip, and electronic device TWI796610B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010671321.X 2020-07-13
CN202010671321.XA CN111860272B (en) 2020-07-13 2020-07-13 Image processing method, chip and electronic device

Publications (2)

Publication Number Publication Date
TW202117591A TW202117591A (en) 2021-05-01
TWI796610B true TWI796610B (en) 2023-03-21

Family

ID=72984323

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109137332A TWI796610B (en) 2020-07-13 2020-10-27 Image processing method, chip, and electronic device

Country Status (2)

Country Link
CN (1) CN111860272B (en)
TW (1) TWI796610B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112308027B (en) * 2020-11-23 2022-04-01 敦泰电子(深圳)有限公司 Image matching method, biological recognition chip and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110717927A (en) * 2019-10-10 2020-01-21 桂林电子科技大学 Indoor robot motion estimation method based on deep learning and visual inertial fusion
CN110781911A (en) * 2019-08-15 2020-02-11 腾讯科技(深圳)有限公司 Image matching method, device, equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106415606B (en) * 2014-02-14 2019-11-08 河谷控股Ip有限责任公司 A kind of identification based on edge, system and method
US9443164B2 (en) * 2014-12-02 2016-09-13 Xerox Corporation System and method for product identification
US9946918B2 (en) * 2015-11-16 2018-04-17 MorphoTrak, LLC Symbol detection for desired image reconstruction
US10152213B2 (en) * 2016-09-01 2018-12-11 Adobe Systems Incorporated Techniques for selecting objects in images
CN106485264B (en) * 2016-09-20 2019-03-15 河南理工大学 It is divided based on gradient sequence and the curve of mapping policy describes and matching process
CN110197184A (en) * 2019-04-19 2019-09-03 哈尔滨工业大学 A kind of rapid image SIFT extracting method based on Fourier transformation
CN110765857A (en) * 2019-09-12 2020-02-07 敦泰电子(深圳)有限公司 Fingerprint identification method, chip and electronic device
CN110929741A (en) * 2019-11-22 2020-03-27 腾讯科技(深圳)有限公司 Image feature descriptor extraction method, device, equipment and storage medium
CN111369605B (en) * 2020-02-27 2022-08-16 河海大学 Infrared and visible light image registration method and system based on edge features

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781911A (en) * 2019-08-15 2020-02-11 腾讯科技(深圳)有限公司 Image matching method, device, equipment and storage medium
CN110717927A (en) * 2019-10-10 2020-01-21 桂林电子科技大学 Indoor robot motion estimation method based on deep learning and visual inertial fusion

Also Published As

Publication number Publication date
CN111860272B (en) 2023-10-20
CN111860272A (en) 2020-10-30
TW202117591A (en) 2021-05-01

Similar Documents

Publication Publication Date Title
CN102667810B (en) Face recognition in digital images
US20170004346A1 (en) Fingerprint recognition method and apparatus
US20160307057A1 (en) Fully Automatic Tattoo Image Processing And Retrieval
Kavitha et al. Evaluation of distance measures for feature based image registration using alexnet
CN111814194B (en) Image processing method and device based on privacy protection and electronic equipment
Oldal et al. Hand geometry and palmprint-based authentication using image processing
TWI796610B (en) Image processing method, chip, and electronic device
CN113011426A (en) Method and device for identifying certificate
Sivaranjani et al. Implementation of fingerprint and newborn footprint feature extraction on Raspberry Pi
CN115690803A (en) Digital image recognition method and device, electronic equipment and readable storage medium
WO2022199395A1 (en) Facial liveness detection method, terminal device and computer-readable storage medium
KR102558736B1 (en) Method and apparatus for recognizing finger print
Tiwari et al. A palmprint based recognition system for smartphone
JP7121132B2 (en) Image processing method, apparatus and electronic equipment
Wicht et al. Mixed handwritten and printed digit recognition in Sudoku with Convolutional Deep Belief Network
Nawaz et al. Image authenticity detection using DWT and circular block-based LTrP features
Verma et al. Secure rotation invariant face detection system for authentication
CN107301549B (en) Fingerprint authentication system and method
CN108304838B (en) Picture information identification method and terminal
CN112308027B (en) Image matching method, biological recognition chip and electronic device
KR20180065475A (en) Method and Apparatus for Restoring Fingerprint Image Using Fingerprints Left on Fingerprint Sensor and Touch Screen
CN105787424B (en) A kind of image processing method and device
WO2022001381A1 (en) Biological feature recognition method and apparatus
CN113158788B (en) Facial expression recognition method and device, terminal equipment and storage medium
Piciucco et al. Biometric fusion for palm-vein-based recognition systems