Motion blurred image recognition method, device, electronic device and payment device

By determining the temporal and spatial conformity of the area of ​​interest in the image sequence, the robustness and efficiency problems of motion blurred image recognition in face recognition are solved, and rapid screening and recognition of high-quality images are achieved, which is suitable for fast payment scenarios. .

CN113743173BActive Publication Date: 2024-10-18ALIPAY COM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010861263.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-27
Publication Date
2024-10-18
Estimated Expiration
2040-05-27

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively identify and eliminate poor quality images due to motion blur in face recognition, especially in fast payment scenarios with high timeliness requirements and poor robustness to illumination and image noise.

Method used

By judging the temporal and spatial compliance of the area of ​​interest (such as the position of the human eye) in the image sequence, it is judged whether there is motion blur in the image, and threshold judgments such as time interval and intersection ratio are used to simplify the calculation process and improve robustness. sex.

Benefits of technology

Effectively remove poor-quality images due to motion blur in image sequences, improve recognition accuracy, reduce computational complexity and time-consuming, and enhance robustness to illumination and noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113743173B_ABST
    Figure CN113743173B_ABST
Patent Text Reader

Abstract

The present application discloses a motion blurred image recognition method, device, electronic device and payment device, the method comprising: obtaining an image sequence; selecting an nth target image P from the image sequence; n Start with the next target image P n+1 Conformity determination is performed; n is a positive integer greater than or equal to 1; if the target image P n+1 If the conformity is not satisfied, the target image P is determined n+1 There is motion blur; if the target image P n+1 If the conformity is satisfied, then according to the target image P n The state of the target image P is updated n+1 state, and according to the target image P n+1 The state of the target image P n+1 Whether there is motion blur; wherein the target image is an image containing a target area in the image sequence, and the nth target image P n is the initial state.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of Chinese patent application CN111368813A. The application date of the original application is: May 27, 2020; the application number is: 202010461530.1; the name of the invention is: Method, device, electronic device and payment device for identifying motion blurred images. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and payment device for recognizing motion blurred images. Background Art

[0003] With the gradual maturity of pattern recognition technology, the technology of identifying biological individuals based on biological signs (i.e. biometric recognition) has begun to be applied and promoted in fields that require identity authentication, such as mobile phone unlocking based on fingerprint / face recognition, fingerprint door locks, face payment, etc.

[0004] At present, the market has launched a payment method that can complete quick payment by scanning the face, officially entering the era of "making a living by face". However, there are problems such as difficulty in distinguishing similar faces, facial features are easily affected by external factors, and are easy to be attacked when confirming identity through face recognition. In comparison, the iris is superior to the face in terms of individual feature recognizability, stability, and resistance to attacks. Therefore, multimodal identity recognition that integrates face and iris has become a development trend. Since the iris has very high requirements for image quality, it is necessary to determine and exclude blurred images to obtain high-quality iris images for recognition. Summary of the invention

[0005] In view of this, the embodiments of the present specification provide a method, device, electronic device and payment device for identifying a motion blurred image, so as to more quickly and accurately identify whether there is a motion blurred image in an image sequence.

[0006] The embodiments of this specification adopt the following technical solutions:

[0007] The embodiment of this specification provides a method for identifying a motion blurred image, the method comprising:

[0008] Get image sequence;

[0009] From the nth target image P in the image sequence n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1;

[0010] If the target image P n+1 If the conformity is not satisfied, the target image P is determined n+1 There is motion blur;

[0011] If the target image P n+1 If the conformity is satisfied, then according to the target image P n The state of the target image P is updated n+1 state, and according to the target image P n+1 The state of the target image P n+1 Is there motion blur?

[0012] The target image is an image in the image sequence that contains the target area, and the nth target image P n is the initial state.

[0013] The embodiment of this specification also provides a method for identifying a motion blurred image, the method comprising:

[0014] Get image sequence;

[0015] From the nth target image P in the image sequence n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1;

[0016] If the target image P n+1 If the conformity is satisfied, the target image P is determined n+1 There is motion blur; otherwise, it is determined that the target image P n+1 There is no motion blur;

[0017] The target image is an image in the image sequence that contains a target area.

[0018] The embodiment of this specification provides a motion blurred image recognition device, the device comprising:

[0019] An acquisition module, wherein the acquisition module is used to acquire an image sequence;

[0020] A determination module, the determination module is used to determine the nth target image P in the image sequence acquired by the acquisition module. n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; and,

[0021] If the target image P n+1 If the conformity is not satisfied, the target image P is determined n+1 There is motion blur; if the target image P n+1 If the conformity is satisfied, then according to the target image P n The state of the target image P is updated n+1 state, and according to the target image P n+1The state of the target image P n+1 Whether there is motion blur; wherein the target image is an image containing a target area in the image sequence, and the nth target image P n is the initial state.

[0022] The embodiment of this specification also provides a motion blurred image recognition device, the device comprising:

[0023] An acquisition unit, the acquisition unit is used to acquire an image sequence;

[0024] A determination unit, the determination unit is used to determine the nth target image P in the image sequence acquired by the acquisition unit. n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; and,

[0025] If the target image P n+1 If the conformity is not satisfied, the target image P is determined n+1 There is motion blur; otherwise, it is determined that the target image P n+1 There is no motion blur;

[0026] The target image is an image in the image sequence that contains a target area.

[0027] The embodiment of the present specification also provides an electronic device, including: at least one processor and a memory, wherein the memory stores a program and is configured such that the at least one processor executes the above-mentioned motion blurred image recognition method.

[0028] The embodiments of the present specification also provide a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the above-mentioned method for identifying motion blurred images is implemented.

[0029] The embodiment of this specification also provides a payment device, including:

[0030] A collection unit, used for collecting face video data;

[0031] An image screening unit, used to screen out the to-be-recognized image without motion blur according to the above method;

[0032] An image recognition unit, used for recognizing the screened images to be recognized;

[0033] The payment unit is used to determine whether to perform a payment operation according to the recognition result of the image recognition unit.

[0034] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: The motion blurred image recognition method provided in the embodiments of this specification is used to remove images with poor quality due to motion blur in an image sequence. Compared with the traditional method of determining whether an image has motion blur by extracting features or encoding the region of interest on a single image, the method of this specification determines whether an image has motion blur by the position information and time information of the region of interest (such as the position of the human eye) in the image sequence, and has better robustness to factors such as illumination and image noise. In addition, the method has the advantages of simple process, no reliance on complex calculations, and short calculation time. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor:

[0036] Figure 1 A main flow chart of a method for identifying motion blurred images provided in an embodiment of this specification;

[0037] Figure 2 A specific flow chart of the method for identifying motion blurred images provided in the embodiments of this specification;

[0038] Figure 3 This is an example of the judgment result of some images in the image sequence obtained in the embodiment of this specification;

[0039] Figure 4 A schematic diagram of the structure of a motion blurred image recognition device provided in an embodiment of this specification;

[0040] Figure 5 A schematic diagram of the structure of a payment device provided in an embodiment of this specification;

[0041] Figure 6 A main flow chart of a method for identifying motion blurred images provided by another embodiment of this specification;

[0042] Figure 7 A schematic diagram of the structure of a motion blurred image device provided by another embodiment of the present specification. DETAILED DESCRIPTION

[0043] As described in the background technology, since the iris has very high requirements for image quality, it is necessary to determine and exclude blurred images to obtain high-quality iris images. In the quick payment scenario, since the payment process has very high requirements for timeliness, most of the entire process is the transition time from the customer's movement to stillness. Therefore, it is very important to exclude images with poor quality due to motion blur from the image sequence.

[0044] Traditional motion blur determination methods mainly determine whether an image has motion blur by performing gradient calculation or encoding on the region of interest on a single image. However, such methods, based on the original calculation of the region of interest in the image, have a high additional computational complexity, resulting in a long judgment time. At the same time, such methods are less robust to factors such as lighting and image noise.

[0045] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0046] In this article, the term motion blur refers to the obvious blurring and dragging traces caused by fast-moving objects in static scenes or a series of pictures, such as movies or animations; the term eye location refers to the location of the human eye in the image, and the result is generally given by the horizontal and vertical coordinates, length and width of the circumscribed rectangular box of the human eye in the upper left corner of the image; the term intersection-over-Union (IoU) refers to the overlap rate between the candidate box and the original marked box, that is, the ratio of their intersection to their union. The term region of interest refers to the area to be processed from the processed image in the form of a square, circle, ellipse, irregular polygon, etc.

[0047] Figure 1 This is a main flow chart of a method for identifying motion blurred images provided in an embodiment of this specification. The method includes:

[0048] S102: Acquire an image sequence.

[0049] In this step, an image sequence in the video data can be obtained based on the collected video data. The image sequence generally includes multiple frames of images, such as each video data includes about 20 frames or about 30 frames of images. As an example, in a quick payment scenario, the user's face video data can be collected by a corresponding collection device, wherein each face video data can include about 20 frames of images.

[0050] S104: Select the nth target image P from the image sequence n Start with the next target image P n+1 Conduct compliance assessment.

[0051] As a specific example, before this step and after step S102 (obtaining the image sequence), the method of the present specification may further include: determining the nth target image P in the image sequence n and its next target image P n+1 . As an example, the target area contained in the target image is the position of the human eye, and those skilled in the art can detect the position of the human eye by using a corresponding human eye positioning algorithm. Regarding the human eye positioning algorithm, it is possible to select but not limited to using a human eye detection algorithm based on a deep convolutional network, and the embodiments of this specification do not limit this. Those skilled in the art can select a suitable algorithm to detect images containing the position of the human eye in the image sequence according to actual needs. In the embodiments of this specification, after the position of the human eye is detected, the position of the human eye can be represented by a rectangular box in the image. Among them, the first image in which the target area is detected can be used as the target image P n , the next image where the target area is detected is taken as the target image P n+1 .

[0052] In this step, n is a positive integer greater than or equal to 1. As an example, take n=1 as an example, that is, from the first target image P n (the image containing the target area), and then 2 It should be noted that in the embodiments of this specification, the conformity determination mainly refers to the conformity of two adjacent target images, and is not necessarily a comparison between two adjacent frames in the image sequence. In some special cases, the current frame image is the target image, and its next frame image may not be the target image, but its next frame image is the target image. In this case, the current target image is P n , and the next frame image of the current target image is its next target image P 2 .

[0053] Regarding the conformity, in the embodiments of this specification, the conformity may be the conformity in the spatiotemporal dimension. Specifically, the conformity may refer to the temporal conformity and spatial conformity of two adjacent target images. The temporal conformity may be the time interval between two adjacent target images; the spatial conformity may be the consistency between two adjacent target images, generally the consistency of the corresponding target areas in the target images.

[0054] The following is a further detailed description of how to perform compliance determination in this step.

[0055] In this example, the nth target image P can be compared first. n Its next target image P n+1 If t> the first set threshold, the target image P is determined to be n+1 If t≤the first set threshold, compare the nth target image P n Its next target image P n+1 If r < the second set threshold, the target image P is determined to be n+1 does not meet the conformity; if r ≥ the second set threshold, then the target image P is determined n+1 Meet compliance.

[0056] In the above, the first set threshold may be a pre-set time threshold, for example, the first set threshold may be 300 milliseconds. Those skilled in the art may also flexibly set the first set threshold according to actual conditions, for example, they may set a suitable first set threshold based on past experience, or they may reasonably set the first set threshold based on the conditions of the hardware device, such as acquisition accuracy, etc. The embodiments of this specification do not specifically limit how to set the first set threshold. As an example, the nth target image P n Its next target image P n+1 The time interval t can also be determined by the number of frames or the frame sequence number, etc., in order to reflect the time interval between the current target image frame and the previous target image.

[0057] In the above, when the target area is the human eye position, the human eye position is represented by a rectangular box in the image, and the first target image P can be calculated respectively. n The size of the rectangular box corresponding to the human eye position in 1 and its next target image P n+1 The size of the rectangular box corresponding to the human eye position in 2 . Target image P n Its next target image P n+1The consistency r between them can be measured by the intersection-over-union ratio, that is, the overlap ratio between the candidate box and the original marked box. It can be calculated according to the following formula:

[0058] r=R n+1 / R n ;

[0059] Among them, R n+1 The target image P n+1 The rectangular frame data corresponding to the target area in R n The target image P n The rectangular box data corresponding to the target area in .

[0060] It should be noted that although the embodiments of this specification use the intersection-and-union ratio as a measure of consistency, technical personnel in this field may also choose other measures to represent the consistency of the target areas corresponding to two adjacent target images. For example, the ratio of the sizes of rectangular frames or the pixel distance between the centers of rectangular frames may be used to reflect the consistency between the human eye position corresponding to the current target image and the human eye position corresponding to the previous target image.

[0061] In the above, the second set threshold can be 0.8, 0.9, etc., that is, the target image P n Its next target image P n+1 When the consistency r between them reaches more than 80%, the compliance is met. Those skilled in the art may also set other appropriate second set thresholds according to actual needs, such as setting an appropriate second set threshold based on past experience, or reasonably set the second set threshold based on the conditions of the hardware equipment, such as acquisition accuracy, etc. The embodiments of this specification do not specifically limit how to set the second set threshold.

[0062] This step can be executed cyclically, for example: first, from the first target image P 1 Start with the target image P 1 For its next target image P 2 Perform compliance determination, if the compliance is met, execute step S106, otherwise execute step S108; then use the target image P 2 For its next target image P 3 Perform compliance determination, if the compliance is met, execute step S106, otherwise execute step S108; then use the target image P 3 For its next target image P 4 Perform compliance determination, if the compliance is met, execute step S106, otherwise execute step S108... and repeat the determination in a loop.

[0063] S106: If the target image P n+1If the conformity is not met, the target image P is judged n+1 There is motion blur.

[0064] In this step, if the target image P is determined in step S104 n+1 Does not meet the compliance, that is, whether the target image P n With P n+1 The time interval between them does not meet the first set threshold, or the target image P n With P n+1 The consistency between them does not meet the second set threshold, and the target image P n+1 The conformity is not met, i.e., there is motion blur.

[0065] S108: If the target image P n+1 If the conformity is satisfied, then according to the target image P n Update the target image P n+1 state, and according to the target image P n+1 The state of the target image P n+1 Whether there is motion blur.

[0066] In this step, the target image P n The state is the initial state, and the target image P n+1 The updated state represents the target image P n+1 is the target image that meets the compliance requirement for the mth time. Specifically, taking n=1 as an example, the target image P 1 For its next target image P 2 Compliance determination is performed. If the target image P 2 Satisfies the conformity judgment. At this time, due to the target image P n is the initial state, for example, the initial state may be the target image P 1 The number m = 1, then according to the target image P n Update the target image P from the initial state 2 When the state is 2 The number is updated to m = 2; then the target image P 2 For its next target image P 3 Make a compliance judgment. If the target image P 3 If the conformity judgment is satisfied, the target image P is updated similarly. 3 When the state is 3 The number is updated to m = 3; then the target image P 3 For its next target image P 4 Compliance determination is performed. If the target image P 4 If the conformity judgment is satisfied, the target image P is updated similarly. 4When the state is 4 The number is updated to m=4, and the determination and update are repeated in sequence.

[0067] It should be noted that, in the above, if the target image P 2 If the conformity judgment is not satisfied, the target image P 1 The state is updated to m = 0 (the target image P 1 The initial state is m = 1), then according to the target image P n Update the target image P from the initial state 2 When the state is 2 The state is updated to m = 1; at this time, the target image P 2 For its next target image P 3 Make a compliance judgment. If the target image P 3 If the compliance is satisfied, update P 3 The number is m=1. If the target image P 3 If the conformity judgment is not satisfied, then the target image P 2 The state of the target image P is updated to m = 0. 3 The state is updated to m=1.

[0068] As an example, in this step, according to the target image P n+1 The state of the target image P n+1 Whether there is motion blur, which can include:

[0069] If m> the third set threshold, it is determined that the target image P n+1 There is no motion blur; otherwise, it is determined that the target image P n+1 There is motion blur. The third threshold value may be 1, 2 or 3, and may also be flexibly set by those skilled in the art according to actual conditions, and the embodiments of this specification do not limit this.

[0070] In order to explain the motion blurred image recognition method in this specification in more detail, an example of a specific practical application is used as an example below. Figure 2 , Figure 2 This is a specific flow chart of a method for identifying a motion blurred image provided by an embodiment of this specification. In this specific implementation, the following steps are performed:

[0071] S210: Initialize parameters.

[0072] In this step, a time threshold T (a first set threshold), an overlap rate threshold D (ie, a second set threshold), and a frame threshold M are set, and a frame counter n=0 is initialized.

[0073] S220: Acquire a single frame image in the image sequence.

[0074] In this step, an image sequence in the video data can be obtained based on the collected video data. The image sequence includes multiple frames of images, and each frame of the image is obtained in sequence.

[0075] S230: Human eye positioning.

[0076] In this step, for the acquired frame image, starting from the first frame image, it is detected whether the image contains the position of the human eye. If there is no human eye in the image, n=0 is set, and S220-S230 is repeatedly executed, that is, whether the second frame image contains the position of the human eye, until an image containing the position of the human eye is detected, and the rectangular box in the image is used to represent the position of the human eye.

[0077] S240: Frame time determination.

[0078] In this step, the frame image containing the eye position detected in step S230 is recorded as n=1 if the frame image is the second frame image, and the time of the frame image is recorded as t 1 , and execute step S270, after the state is updated, execute S220-230 again, that is, detect whether the third frame image contains the human eye position, if it contains the human eye position, then take the third frame image as the current image, and record the time of the current image as t 2 , compare t 2 With t 1 The difference between 2 -t 1 >T, then it is determined that the current frame image has motion blur. At this time, let n = 0, and record the current image (the third frame image) as n = 1, and the time of the current image as t 1 , and execute step S270, after the state is updated, execute S220-230 again, that is, detect whether the fourth frame image contains the human eye position, if it contains the human eye position, then take the fourth frame image as the current image, and record the time of the current image as t 2 , compare t 2 With t 1 The difference between the two is determined repeatedly until t 2 -t 1 ≤T.

[0079] S250: consistency determination.

[0080] In this step, when the fourth frame image is used as the current image, if t 2 -t 1 ≤T, then the rectangular box corresponding to the eye position in the third frame image is recorded as R 1, the rectangular box corresponding to the eye position contained in the current frame (the fourth frame image) is recorded as R 2 Then calculate the overlap ratio r = R 2 / R 1 If r<D, it is determined that the current image has motion blur. At this time, let n=0, and record the current image (the fourth frame image) as n=1, and the time of the current image as t 1 , execute step S270, after the state is updated, execute S220-S250 again (i.e., perform frame time determination and consistency determination on the fifth frame containing the image of the human eye position again) until r≥D.

[0081] When the fifth frame image is used as the current frame image, t 2 -t 1 ≤T, and r≥D, then add 1 to the count of the current frame, that is, the current frame is recorded as n=2, and execute step S270. After the state is updated, execute S220-S250 again. If the sixth frame image is used as the current frame image, t 2 -t 1 ≤T, and r≥D, then the count of the current frame is increased by 1, that is, the current frame is recorded as n=3, otherwise n=0.

[0082] S260: Motion blur determination.

[0083] If n>M, it is determined that the current frame image does not have motion blur. The frame threshold M here is the set third threshold. If M=1, then in step S250, the frame images corresponding to n=2 and n=3 do not have motion blur; if M=2, then in step S250, the frame image corresponding to n=3 does not have motion blur. Figure 3 , Figure 3 This is an example of the judgment result of some frame images in the image sequence obtained in the embodiments of this specification. Figure 3 Seven frames of human eyes are shown in FIG. 1 , where M=1 is taken as an example, and the determination result of whether there is motion blur is as follows: Figure 3 As shown, n=0, n=1 (ie, n≤M) represent images with motion blur, and n=2, n=3 (ie, n>M) represent images without motion blur. Those skilled in the art can set the frame threshold M according to actual conditions.

[0084] As described above, the method for identifying motion blurred images provided in the embodiments of this specification is used to remove images with poor quality due to motion blur in an image sequence. Compared with the traditional method of determining whether an image has motion blur by extracting features or encoding a region of interest on a single image, the method of this specification determines whether an image has motion blur by determining the position information and time information (mainly through frame time determination and consistency determination) of the region of interest (such as the position of the human eye) in the image sequence, and has better robustness to factors such as illumination and image noise. In addition, the method has the advantages of a simple process, no reliance on complex calculations, and short calculation time.

[0085] Based on the same idea, the embodiments of this specification also provide a motion blurred image recognition device. Figure 4 This is a schematic diagram of the structure of the motion blurred image recognition device provided in the embodiment of this specification. Figure 4 As shown, the device comprises:

[0086] An acquisition module 401, which is used to acquire an image sequence;

[0087] The determination module 402 is used to determine the nth target image P obtained from the acquisition module 401. n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; and,

[0088] If the target image P n+1 If the conformity is not met, the target image P is judged n+1 There is motion blur;

[0089] If the target image P n+1 If the conformity is satisfied, then according to the target image P n Update the target image P n+1 state, and according to the target image P n+1 The state of the target image P n+1 Is there motion blur?

[0090] The target image is an image in the image sequence that contains the target area, and the nth target image P n is the initial state.

[0091] Further, the determination module 402 is used to determine the nth target image P n Start with the next target image P n+1 Compliance determination is performed, specifically including: comparing the nth target image P n Its next target image P n+1If t> the first set threshold, it is determined that the target image P n+1 Compliance is not met.

[0092] Further, the determination module 402 is used to determine the nth target image P n Start with the next target image P n+1 Performing a conformity determination, specifically including: if t≤the first set threshold, comparing the nth target image P n Its next target image P n+1 If r < the second set threshold, then the target image P is determined to be n+1 does not meet the conformity; if r ≥ the second set threshold, then the target image P is determined n+1 Meet compliance.

[0093] Further, the determination module calculates r according to the following formula: r = R n+1 / R n ; Among them, R n+1 The target image P n+1 The rectangular frame data corresponding to the target area in R n The target image P n The rectangular box data corresponding to the target area in .

[0094] Further, if Figure 4 As shown, the device further includes a detection module 400, which is used to determine the nth target image P in the image sequence. n and its next target image P n+1 ; Wherein, the target area contained in the target image is the position of the human eye.

[0095] Furthermore, if the target image P n+1 If the conformity is satisfied, then the target image P n+1 The updated state represents the target image P n+1 is the target image that satisfies the compliance for the mth consecutive time.

[0096] Further, the determination module 402 determines the target image P n+1 The state of the target image P n+1 Whether there is motion blur, specifically including: if m> the third set threshold, then determine the target image P n+1 There is no motion blur; otherwise, it is determined that the target image P n+1 There is motion blur.

[0097] For the specific implementation of the device, please refer to the above description of the method, which will not be repeated here.

[0098] Based on the same idea, an embodiment of the present specification also provides an electronic device, including: at least one processor and a memory, wherein the memory stores a program and is configured so that the at least one processor executes the motion blurred image recognition method of the present specification.

[0099] Based on the same idea, an embodiment of the present specification further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the method for recognizing motion blurred images of the present specification is implemented.

[0100] The present specification also provides a payment device, referring to Figure 5 , Figure 5 A schematic diagram of the structure of a payment device provided in an embodiment of this specification, such as Figure 5 As shown, the payment device includes:

[0101] The acquisition unit 501 is used to acquire face video data;

[0102] An image screening unit 502 is used to screen out images to be identified that do not have motion blur according to the above-mentioned motion blurred image identification method;

[0103] An image recognition unit 503 is used to recognize the selected images to be recognized;

[0104] The payment unit 504 is used to determine whether to perform a payment operation according to the recognition result of the image recognition unit 503.

[0105] In the embodiments of this specification, the payment device may be a face-swiping payment device, specifically a multi-modal identity recognition method based on face and iris to realize payment operation. The image screening unit 502 of the payment device uses the above-mentioned motion blur image recognition method to obtain an image without motion blur from the collected multiple frames of face images to perform face and iris recognition, and then determines whether to perform the payment operation based on the recognition result. As an example, if multiple images to be recognized are screened, one of the frames to be recognized can be selected for recognition, which can be determined by the configuration of the payment device, and this application does not limit this.

[0106] For the specific implementation of how to filter motion blurred images in a payment device, please refer to the above description of the motion blurred image recognition method, which will not be repeated here.

[0107] This specification also provides another embodiment of a method for identifying a motion blurred image. Figure 6 , Figure 6 This is a main flow chart of a motion blurred image recognition method provided by another embodiment of this specification. The motion blurred image recognition method provided by this embodiment includes:

[0108] S602: Acquire an image sequence;

[0109] S604: Select the nth target image P from the image sequence n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1;

[0110] S606: If the target image P n+1 If the conformity is satisfied, the target image P is determined n+1 There is motion blur;

[0111] S608: If the target image P n+1 If the conformity is not met, the target image P is judged n+1 There is no motion blur.

[0112] The target image is an image in the image sequence that contains a target area.

[0113] The above steps S602-S606 are the same as steps S102-S106. For the specific embodiments of steps S602-S606, please refer to the above description of steps S102-S106, which will not be repeated here. The difference between this embodiment and the above embodiment is that in step S608 of this embodiment, if the target image P n+1 If the conformity is not met, the target image P is judged n+1 There is no motion blur. In other words, in this embodiment, only the target image P n+1 The result of the conformity determination is used to determine the target image P n+1 Whether there is motion blur, thereby further simplifying the determination process and more quickly identifying images with motion blur in the image sequence.

[0114] This specification also provides another embodiment of a motion blurred image recognition device. Figure 7 , Figure 7 This is a schematic diagram of the structure of a motion blurred image device provided by another embodiment of this specification. Figure 7 As shown, the device of this embodiment includes:

[0115] An acquisition unit 701, which is used to acquire an image sequence;

[0116] The determination unit 702 is used to determine the nth target image P in the image sequence obtained by the acquisition unit 701. n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; and,

[0117] If the target image P n+1 If the conformity is not satisfied, the target image P is determined n+1 There is motion blur; otherwise, it is determined that the target image P n+1 There is no motion blur;

[0118] The target image is an image in the image sequence that contains a target area.

[0119] For the specific embodiments of the device, please refer to the above description of the method, which will not be repeated here.

[0120] The above describes specific embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0121] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0122] The apparatus, device, non-volatile computer-readable storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, device, and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and non-volatile computer storage medium will not be repeated here.

[0123] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0124] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0125] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0126] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0127] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0128] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0129] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0130] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0131] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0132] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0133] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0134] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0135] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0136] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0137] The above is only an embodiment of this specification and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for identifying a motion blurred image, the method comprising: Get image sequence; From the nth target image P in the image sequence n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; The target image P is determined according to the result of the conformity determination. n+1 Is there motion blur? Among them, from the nth target image P in the image sequence n Start with the next target image P n+1 The conformity determination includes: n With the target image P n+1 Determine the time interval between If the time interval t> the first set threshold, it is determined that the target image P n+1 There is motion blur; The target image is an image in the image sequence that contains a target area.

2. The method according to claim 1, wherein the target image P n With the target image P n+1 The time interval between the two is determined, including: Compare the nth target image P n Its next target image P n+1 Whether the time interval t between them is greater than the first set threshold.

3. The method according to claim 2, if t≤the first set threshold, then n With the target image P n+1 The consistency between them is determined by: The target image P n The corresponding target area and the target image P n+1 The consistency of the corresponding target area in .

4. The method according to claim 3, wherein the target image P n With the target image P n+1 The consistency between them is determined, including: Compare the nth target image P n Its next target image P n+1 Whether the consistency r between them is greater than the second set threshold.

5. The method according to claim 4, wherein the target image P is judged according to the result of the conformity judgment. n+1 The presence or absence of motion blur, including: If t≤the first set threshold value and r<the second set threshold value, then the target image P is determined to be n+1 There is motion blur.

6. The method according to claim 4, wherein the target image P is judged according to the result of the conformity judgment. n+1 The presence or absence of motion blur, including: If t≤the first set threshold value and r≥the second set threshold value, then the target image P is judged n+1 Whether t≤the first set threshold and r≥the second set threshold are satisfied for the mth consecutive time; wherein m>the third set threshold; If yes, then determine the target image P n+1 There is no motion blur; otherwise, it is determined that the target image P n+1 There is motion blur.

7. The method according to claim 4, wherein the target image P n With the target image P n+1 The consistency r between them is calculated according to the following formula: r=R n+1 / R n ; in, R n+1 The target image P n+1 The rectangular frame data corresponding to the target area in R n The target image P n The rectangular box data corresponding to the target area in . 8 . The method according to claim 1 , wherein the target area contained in the target image is a human eye position.

9. The method according to any one of claims 1 to 7, after acquiring the image sequence, and after selecting the nth target image P from the image sequence n Start with the next target image P n+1 Before making a compliance determination, the method further includes: Determine the nth target image P in the image sequence n and its next target image P n+1 .

10. A motion blurred image recognition device, the device comprising: An acquisition module, wherein the acquisition module is used to acquire an image sequence; A determination module, the determination module is used to determine the nth target image P in the image sequence acquired by the acquisition module. n Start with the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; Among them, the nth target image P in the image sequence acquired from the acquisition module n Start with the next target image P n+1 Compliance determination: the target image P n With the target image P n+1 Determine the time interval between The determination module is also used to determine the target image P according to the result of the conformity determination. n+1 Is there motion blur? If the time interval t> the first set threshold, it is determined that the target image P n+1 There is motion blur; The target image is an image in the image sequence that contains a target area.

11. The device according to claim 10, wherein the determination module is specifically configured to: Compare the nth target image P n Its next target image P n+1 Whether the time interval t between them is greater than the first set threshold.

12. The device according to claim 11, if t≤the first set threshold, then for the nth target image P n Its next target image P n+1 Specifically, the target image P n The corresponding target area and the target image P n+1 The consistency of the corresponding target area in .

13. An electronic device comprising: At least one processor and a memory, wherein the memory stores a program and is configured so that the at least one processor executes the method for identifying a motion blurred image according to any one of claims 1 to 9.

14. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the method for identifying a motion blurred image according to any one of claims 1 to 9.

15. A payment device comprising: A collection unit, used for collecting face video data; An image screening unit, configured to screen out an image to be identified without motion blur according to the method of any one of claims 1 to 9; An image recognition unit, used for recognizing the screened images to be recognized; The payment unit is used to determine whether to perform a payment operation according to the recognition result of the image recognition unit.

Citation Information

Patent Citations

  • Method and device for recognizing blink movement

    CN106897659A

  • Fuzzy face image recognition method and device and terminal equipment

    CN110378235A

  • Image detection method and device and computer storage medium

    CN110458790A

  • Focus region display method and apparatus, and terminal device

    IN201917052991A

  • Image processing method and apparatus

    WO2019196542A1