WO2021239000A1 - Method and apparatus for identifying motion blur image, and electronic device and payment device - Google Patents

Method and apparatus for identifying motion blur image, and electronic device and payment device Download PDF

Info

Publication number
WO2021239000A1
WO2021239000A1 PCT/CN2021/096147 CN2021096147W WO2021239000A1 WO 2021239000 A1 WO2021239000 A1 WO 2021239000A1 CN 2021096147 W CN2021096147 W CN 2021096147W WO 2021239000 A1 WO2021239000 A1 WO 2021239000A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target image
compliance
target
motion blur
Prior art date
Application number
PCT/CN2021/096147
Other languages
French (fr)
Chinese (zh)
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 WO2021239000A1 publication Critical patent/WO2021239000A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • G06Q20/40145Biometric identity checks

Definitions

  • This application relates to the field of computer technology, and in particular to a method, device, electronic equipment, and payment equipment for recognizing motion blurred images.
  • biometrics the technology of identifying biological individuals based on biological signs (ie, biometrics) has begun to be applied and promoted in areas that require identity verification, such as fingerprint/face recognition-based mobile phone unlocking, fingerprint door locks , Pay by face, etc.
  • the market has launched a payment method that can complete quick payment by swiping the face, officially entering the era of "relying on the face to eat".
  • it is difficult to identify similar faces and facial features are easily affected by external factors and easily attacked by confirming the identity through face recognition.
  • the iris is superior to the human face in terms of individual characteristics, stability, and resistance to aggression. Therefore, multi-modal identity recognition that integrates human face and iris has become a development trend. Because the iris has very high requirements for image quality, it is necessary to judge and eliminate the blurred image to obtain a high-quality iris image and then recognize it.
  • the embodiments of this specification provide a method, device, electronic device and payment device for recognizing a motion blurred image, so as to more quickly and accurately recognize whether there is a motion blurred image in an image sequence.
  • the embodiment of this specification provides a method for recognizing a motion blurred image, the method includes: acquiring an image sequence; starting from the nth target image P n in the image sequence, The next target image P n+1 is subject to compliance determination; n is a positive integer greater than or equal to 1; if the target image P n+1 does not meet compliance, it is determined that the target image P n+1 has motion blur; if object image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, P and determines the target image according to a state of the object image P n + 1 n+1 whether there is motion blur; wherein, the target image is an image that includes a target area in the image sequence, and the nth target image P n is an initial state.
  • the embodiment of this specification also provides a method for recognizing a motion blurred image, which includes: acquiring an image sequence; starting from the nth target image P n in the image sequence, the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; if the target image P n+1 meets compliance, it is determined that the target image P n+1 has motion blur; otherwise, it is determined that the target image P n+1 is not There is motion blur; wherein, the target image is an image containing a target area in the image sequence.
  • the embodiment of this specification provides a device for recognizing a motion blur image
  • the device includes: an acquisition module, the acquisition module is used to acquire an image sequence; a judgment module, the judgment module is used to obtain an image from the acquisition module Start with the n-th target image P n in the sequence, and perform compliance judgment on the next target image P n+1 ; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance, it is determined that the target image P n + 1 motion blur exists; if the target image P n + 1 satisfy the compliance, the state of the image P n + 1 is updated in accordance with the target state of the target image P n, and in accordance with the said object image P n + 1 determines the state of the object image P n + 1 if there is a motion blur; wherein the target image is an image in the sequence of images including the target region, and the n-th object image P n is the initial state.
  • the embodiment of this specification also provides a device for recognizing a motion blurred image, the device includes: an acquisition unit, the acquisition unit is used to acquire an image sequence; a determination unit, the determination unit is used to acquire the Start with the nth target image P n in the image sequence, and perform compliance judgment on the next target image P n+1 ; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance , It is determined that the target image P n+1 has motion blur; otherwise, it is determined that the target image P n+1 does not have motion blur; wherein, the target image is an image that includes a target area in the image sequence.
  • the embodiment of the present specification also provides an electronic device, including: at least one processor and a memory, the memory stores a program, and is configured to execute the above-mentioned motion blur image recognition method by the at least one processor.
  • the embodiments of the present specification also provide a computer-readable storage medium that stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the aforementioned motion-blurred image recognition method is implemented.
  • the embodiment of this specification also provides a payment device, which includes: a collection unit for collecting facial video data; an image screening unit for screening out images to be recognized without motion blur according to the above-mentioned method; and an image recognition unit, It is used for recognizing the screened out image to be recognized; the payment unit is used for determining whether to perform a payment operation according to the recognition result of the image recognition unit.
  • the above-mentioned at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:
  • the motion blur image recognition method provided by the embodiments of this specification is used to remove images of poor quality caused by motion blur in an image sequence. Compared with traditional methods, Perform feature extraction or coding on the region of interest on a single image to determine whether the image has motion blur.
  • the method in this specification is to use the position information of the region of interest in the image sequence (such as the position of the human eye) in the image and Time information is used to determine whether the image has motion blur, which is more robust to factors such as illumination and image noise.
  • the method also has the advantages of simple process, no dependence on complex calculations, and short calculation time.
  • Fig. 1 is a main flow chart of a method for recognizing a motion blurred image provided by an embodiment of this specification
  • FIG. 2 is a specific flowchart of a method for recognizing a motion blurred image provided by an embodiment of this specification
  • FIG. 3 is an example of the judgment result of some images in the image sequence obtained by the embodiment of this specification.
  • FIG. 4 is a schematic structural diagram of a motion blur image recognition device provided by an embodiment of this specification.
  • Figure 5 is a schematic structural diagram of a payment device provided by an embodiment of the specification.
  • FIG. 6 is a main flow chart of a method for recognizing a motion blurred image according to another embodiment of this specification.
  • FIG. 7 is a schematic structural diagram of a motion blur image device provided by another embodiment of this specification.
  • the iris has very high requirements for image quality, it is necessary to determine and exclude the blurred image to obtain a high-quality iris image.
  • the payment process since the payment process requires very high timeliness, most of the entire process is the transition time from customer movement to stationary. Therefore, how to exclude poor quality images due to motion blur from the image sequence is very important.
  • the traditional motion blur determination method mainly determines whether the image has motion blur by performing gradient calculation or encoding on the region of interest on a single image.
  • this type of method has higher additional computational complexity, which leads to a long time-consuming judgment.
  • such methods are less robust to factors such as illumination and image noise.
  • motion blur a static scene or a series of pictures like movies or fast moving objects in an animation cause obvious fuzzy drag traces
  • human eye positioning locate the human eye in the image The position, the result is generally given by the horizontal and vertical coordinates, length and width of the circumscribed rectangular frame of the human eye in the upper left corner of the image
  • Intersection-over-Union IoU: refers to the difference between the candidate frame and the original marked frame Overlap rate, that is, the ratio of their intersection and union.
  • region of interest region of interest: that is, the region that needs to be processed is outlined in the form of boxes, circles, ellipses, and irregular polygons from the processed image.
  • FIG. 1 is a main flow chart of a method for recognizing a motion blurred image provided by an embodiment of this specification.
  • the method includes: S102: Obtain an image sequence.
  • an image sequence in the video data can be obtained based on the collected video data.
  • the image sequence generally contains multiple frames of images, for example, each video data contains about 20 or 30 frames of images.
  • each video data contains about 20 or 30 frames of images.
  • the user's facial video data can be collected through a corresponding collection device, where each facial video data can include about 20 frames of images.
  • the method of this specification may further include: determining the nth target image P n in the image sequence and its next The target image P n+1 .
  • 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 through a corresponding eye positioning algorithm.
  • the eye location algorithm but not limited to the use of the eye detection algorithm based on the deep convolutional network, the embodiment of this specification does not limit this, and those skilled in the art can select a suitable algorithm to detect the image sequence containing people according to actual needs. Image of eye position.
  • the rectangular frame in the image can be used to indicate the position of the human eye.
  • the first image in which the target area is detected can be used as the target image P n
  • the next image in which the target area is detected can be used as the target image P n+1 .
  • n is a positive integer greater than or equal to 1.
  • the compliance determination mainly refers to the compliance of two adjacent target images, and not necessarily the comparison between two adjacent frames in the image sequence.
  • the current frame image is the target image, and the next frame image may not be the target image.
  • the next frame image is the target image.
  • the current target image is P n
  • the next frame of the current target image is P n.
  • One frame of image is its next target image P 2 .
  • the compliance may be compliance in the space-time dimension.
  • the conformity may refer to the temporal and spatial conformity of two adjacent target images.
  • the temporal compliance can be the time interval between two adjacent target images;
  • the spatial compliance can be the consistency between two adjacent target images, generally the corresponding target in the target image Regional consistency.
  • the time interval t between the n-th target image P n and the next target image P n+1 can be compared first, if t>the first set threshold, then the target image P n+1 can be determined Does not meet compliance. If t ⁇ the first set threshold, compare the consistency r between the nth target image P n and the next target image P n+1 , if r ⁇ the second set threshold, then determine the target image P n +1 does not meet the compliance; if r ⁇ the second set threshold, it is determined that the target image P n+1 meets the compliance.
  • the first set threshold may be a preset time threshold.
  • the first set threshold may be 300 milliseconds.
  • Those skilled in the art can also flexibly set the first set threshold according to actual conditions.
  • an appropriate first threshold can be set based on past experience, or the first threshold can be set reasonably according to the hardware device's conditions, such as acquisition accuracy.
  • the first set threshold is not specifically limited.
  • the time interval t between the n-th target image P n and the next target image P n+1 can also be determined by the number of frames or the frame sequence number, etc., to reflect the current target image frame and its previous target The length of time between images.
  • the human eye position is represented by the rectangular frame in the image
  • the rectangular frame size R 1 corresponding to the human eye position in the first target image P n and the next target image can be calculated separately
  • the consistency r between the target image P n and the next target image P n+1 can be measured by the intersection ratio, that is, the overlap ratio between the candidate frame and the original marked frame. It can be calculated according to the following formula:
  • R n+1 is the rectangular frame data corresponding to the target area in the target image P n+1 ;
  • R n is the rectangular frame data corresponding to the target area in the target image P n.
  • the embodiment of this specification selects the intersection ratio as the measure of consistency, for those skilled in the art, other measures can also be selected to indicate the consistency of the target regions corresponding to two adjacent target images.
  • the ratio of the size of the rectangular frame or the pixel distance of the center of the rectangular frame can also be used to reflect the consistency of the human eye position corresponding to the current target image and the human eye position corresponding to the previous target image.
  • the second set threshold may be 0.8, 0.9, etc., that is, when the consistency r between the target image P n and the next target image P n+1 reaches 80% or more, the compliance is satisfied.
  • Those skilled in the art can also set other appropriate second set thresholds according to actual needs, such as setting appropriate second set thresholds based on past experience, or reasonably based on hardware equipment conditions, such as acquisition accuracy, etc.
  • the second set threshold is set, and the embodiment of this specification does not specifically limit how to set the second set threshold.
  • This step may be executed cyclically, for example: start with the first object images P 1 starts, to its next target image P 1 P 2 a target image for compliance determination, if the conformity is performed to meet the step S106, or step S108 is performed ; Then use the target image P 2 to determine the compliance of its next target image P 3 , if the compliance is met, perform step S106, otherwise perform step S108; then use the target image P 3 for the next target image P 4 Perform compliance determination, if compliance is met, step S106 is executed, otherwise, step S108...sequentially cyclically determine.
  • step S104 if it is determined in step S104 that the target image P n+1 does not meet the compliance, that is, whether the time interval between the target images P n and P n+1 does not meet the first set threshold, or the target image P n If the consistency with P n+1 does not meet the second set threshold, it is determined that the target image P n+1 does not meet the compliance, that is, there is motion blur.
  • the initial state may be the target image P.
  • the initial state of the image P n updates the state of the target image P 2
  • the target image P n + 1 determines the target image P n + 1 if motion blur exists, specifically comprising: if m> a third set threshold, it is determined that the object image P n+1 does not have motion blur; otherwise, it is determined that the target image P n+1 has motion blur.
  • the third set threshold value can be 1, 2 or 3, and can also be flexibly set by those skilled in the art according to actual conditions, which is not limited in the embodiment of this specification.
  • FIG. 2 is a specific flowchart of a method for recognizing a motion blurred image provided by an embodiment of this specification. In this specific implementation, the following steps are performed:
  • S220 Acquire a single frame image in the image sequence.
  • an image sequence in the video data can be obtained according to the collected video data.
  • the image sequence contains multiple frames of images, and each frame of image is obtained in turn.
  • execute S220-230 again, that is, to detect whether the third frame of image contains the position of the human eye, if it contains the position of the human eye, then the third frame of The time of is recorded as t 2 , and the difference between t 2 and t 1 is compared. If t 2 -t 1 >T, it is determined that the current frame image has motion blur.
  • step S270 After the status is updated, execute S220-230 again, that is, detect the first Whether the four frames of images contain the position of the human eye, if it contains the position of the human eye, the fourth frame of image is taken as the current image, the time of the current image is recorded as t 2 , the difference between t 2 and t 1 is compared, and so on Determine until t 2 -t 1 ⁇ T.
  • FIG. 3 is an example of the judgment result of partial frame images in the image sequence obtained in the embodiment of this specification.
  • Figure 3 shows seven frame images containing human eyes.
  • the motion-blurred image recognition method provided by the embodiments of this specification is used to remove images of poor quality caused by motion blur in an image sequence.
  • the feature extraction or coding of the region of interest on a single image is performed.
  • the method of this specification is to determine the position information and time information (mainly through frame time determination and consistency determination) of the region of interest in the image sequence (such as the position of the human eye) in the image.
  • Judge whether the image has motion blur it has better robustness to factors such as illumination and image noise.
  • the method also has the advantages of simple process, no dependence on complex calculations, and short calculation time.
  • FIG. 4 is a schematic diagram of the structure of a motion blur image recognition device provided by an embodiment of this specification. 4, the apparatus comprising: an acquisition module 401, acquisition module 401 for acquiring a sequence of images; decision block 402, decision block 402 for acquiring module 401 acquires from the n-th object image P n starts, its Perform compliance determination for the next target image P n+1 ; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 has motion blur; if object image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, and the determination of the target image P n + 1 in accordance with the state of the object image P n + 1 Whether there is motion blur; wherein, the target image is an image containing a target area in the image sequence,
  • the decision block 402 for starting the n-th object image P n, for compliance to its next determination target image P n + 1, comprises: comparing the target n-th image P n to its next target image P n The time interval t between +1 ; if t>the first set threshold, it is determined that the target image P n+1 does not meet the compliance.
  • the judging module 402 is configured to start from the nth target image P n and make a compliance judgment for the next target image P n+1 , and specifically includes: if t ⁇ the first set threshold, compare the nth target image P n The consistency r between the target image P n and its next target image P n+1 ; if r ⁇ the second set threshold, it is determined that the target image P n+1 does not meet the compliance; if r ⁇ the second set Threshold, it is determined that the target image P n+1 satisfies compliance.
  • the device further includes a detection module 400, which is used to determine the nth target image P n and the next target image P n+1 in the image sequence; wherein, the The target area contained in the target image is the position of the human eye.
  • a detection module 400 which is used to determine the nth target image P n and the next target image P n+1 in the image sequence; wherein, the The target area contained in the target image is the position of the human eye.
  • the state of the image P n + 1 after updating the target object image represented by P n + 1 is m times continuously satisfied compliance target image.
  • decision block 402 determines that the object image P n + 1 according to whether there is motion blur state of the object image P n + 1, specifically comprising: if m> a third set threshold, it is determined that the object image P n + 1 is not There is motion blur; otherwise, it is determined that the target image P n+1 has motion blur.
  • an embodiment of this specification also provides an electronic device, including: at least one processor and a memory, the memory stores a program and is configured to execute the motion blur of this specification by the at least one processor Image recognition method.
  • the embodiments of this specification also provide a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the movement of this specification is realized. Recognition method of blurred images.
  • FIG. 5 is a schematic structural diagram of the payment device provided by the embodiment of the specification.
  • Face video data image screening unit 502, used to screen out images to be recognized without motion blur according to the aforementioned motion blur image recognition method
  • payment unit 504 Used to determine whether to perform a payment operation according to the recognition result of the image recognition unit 503.
  • the payment device may be a face-swiping payment device, specifically a multi-modal identification method based on the face and the iris of the human eye to realize the payment operation.
  • the image screening unit 502 of the payment device uses the aforementioned motion-blur image recognition method to obtain images without motion blur from the collected multi-frame face images to perform face and eye iris recognition, and then determine whether to proceed according to the recognition results Payment operation.
  • one of the images to be identified can be selected for identification, which can be specifically determined by the configuration of the payment device, which is not limited in this application.
  • FIG. 6 is a main flow chart of a method for recognizing a motion blurred image according to another embodiment of this specification.
  • the method for recognizing a motion blur image provided by this embodiment includes: S602: acquiring an image sequence; S604: starting from the nth target image P n in the image sequence, conforming to the next target image P n+1 Judgment; n is a positive integer greater than or equal to 1; S606: If the target image P n+1 meets compliance, it is determined that the target image P n+1 has motion blur; S608: If the target image P n+1 does not meet the compliance, Then it is determined that there is no motion blur in the target image P n+1.
  • the target image is an image containing a target area in the image sequence.
  • steps S602-S606 are the same as steps S102-S106.
  • 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 foregoing embodiment is that in step S608 of this embodiment, if the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 does not have motion blur. In other words, in this embodiment, only be determined from the result of the target image P n + 1 for compliance determination target image P n + 1 if there is a motion blur, further simplifying the decision process more quickly identify the image sequence The presence of motion-blurred images.
  • FIG. 7 is a schematic structural diagram of a motion blur image device provided by another embodiment of this specification.
  • the apparatus of this embodiment includes: an obtaining unit 701, which is used to obtain an image sequence; The image P n starts, and the next target image P n+1 is determined for compliance; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance, then the target image P is determined n+1 has motion blur; otherwise, it is determined that the target image P n+1 does not have motion blur; wherein, the target image is an image that includes a target area in the image sequence.
  • the apparatus, equipment, non-volatile computer readable storage medium, and method provided in the embodiments of this specification correspond to each other. Therefore, the apparatus, equipment, and non-volatile computer storage medium also have beneficial technical effects similar to the corresponding method.
  • the beneficial technical effects of the method have been described in detail above, therefore, the beneficial technical effects of the corresponding device, equipment, and non-volatile computer storage medium will not be repeated here.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic.
  • controllers in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded logic.
  • the same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell 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 Any combination of these devices.
  • the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, the embodiments of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the 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, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cartridges, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This specification can also be practiced in distributed computing environments. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Studio Devices (AREA)

Abstract

Disclosed are a method and apparatus for identifying a motion blur image, and an electronic device and a payment device. The method comprises: acquiring an image sequence; starting from an nth target image Pn in the image sequence, performing conformance determination on the next target image Pn+1 thereof, wherein n is a positive integer greater than or equal to 1; if the target image Pn+1 does not meet conformance, determining that there is motion blur in the target image Pn+1; and if the target image Pn+1 meets conformance, updating the state of the target image Pn+1 according to the state of the target image Pn, and determining whether there is motion blur in the target image Pn+1 according to the state of the target image Pn+1, wherein the target image is an image in the image sequence that includes a target area, and the nth target image Pn is in an initial state.

Description

运动模糊图像的识别方法、装置、电子设备和支付设备Motion blur image recognition method, device, electronic equipment and payment equipment 技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种运动模糊图像的识别方法、装置、电子设备和支付设备。This application relates to the field of computer technology, and in particular to a method, device, electronic equipment, and payment equipment for recognizing motion blurred images.
背景技术Background technique
随着模式识别技术的逐步成熟,基于生物体体征对生物个体进行识别(即生物识别)技术开始在需要身份验证的领域得到应用及推广,如基于指纹/人脸识别的手机解锁,指纹门锁,刷脸支付等。With the gradual maturity of pattern recognition technology, the technology of identifying biological individuals based on biological signs (ie, biometrics) has begun to be applied and promoted in areas that require identity verification, such as fingerprint/face recognition-based mobile phone unlocking, fingerprint door locks , Pay by face, etc.
目前,市场上已推出了刷脸即能完成快捷支付的支付方式,正式进入“靠脸吃饭”时代。但是通过人脸识别来确认身份存在难辨相似脸、脸部特征容易受外部因素影响、易被攻击等问题。相比而言,虹膜在个体特征的可辨识性、稳定性及抵御攻击性等方面均优于人脸。因此,融合人脸及虹膜的多模态身份识别成为发展的趋势。由于虹膜对图像质量的要求非常高,因此需要对模糊图像进行判定并排除来获取高质量虹膜图像再进行识别。At present, the market has launched a payment method that can complete quick payment by swiping the face, officially entering the era of "relying on the face to eat". However, it is difficult to identify similar faces and facial features are easily affected by external factors and easily attacked by confirming the identity through face recognition. In contrast, the iris is superior to the human face in terms of individual characteristics, stability, and resistance to aggression. Therefore, multi-modal identity recognition that integrates human face and iris has become a development trend. Because the iris has very high requirements for image quality, it is necessary to judge and eliminate the blurred image to obtain a high-quality iris image and then recognize it.
发明内容Summary of the invention
有鉴于此,本说明书实施例提供了一种运动模糊图像的识别方法、装置、电子设备和支付设备,用以更加快速、准确地识别出图像序列中是否存在运动模糊的图像。In view of this, the embodiments of this specification provide a method, device, electronic device and payment device for recognizing a motion blurred image, so as to more quickly and accurately recognize whether there is a motion blurred image in an image sequence.
本说明书实施例采用下述技术方案:本说明书实施例提供了一种运动模糊图像的识别方法,该方法包括:获取图像序列;从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊;若目标图像P n+1满足符合性,则根据所述目标图像P n的状态更新所述目标图像P n+1的状态,以及根据所述目标图像P n+1的状态判断所述目标图像P n+1是否存在运动模糊;其中,所述目标图像为所述图像序列中包含目标区域的图像,且所述第n个目标图像P n为初始状态。 The embodiment of this specification adopts the following technical solution: the embodiment of this specification provides a method for recognizing a motion blurred image, the method includes: acquiring an image sequence; starting from the nth target image P n in the image sequence, The next target image P n+1 is subject to compliance determination; n is a positive integer greater than or equal to 1; if the target image P n+1 does not meet compliance, it is determined that the target image P n+1 has motion blur; if object image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, P and determines the target image according to a state of the object image P n + 1 n+1 whether there is motion blur; wherein, the target image is an image that includes a target area in the image sequence, and the nth target image P n is an initial state.
本说明书实施例还提供了一种运动模糊图像的识别方法,该方法包括:获取图像序列;从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合 性判定;n为大于等于1的正整数;若目标图像P n+1满足符合性,则判定所述目标图像P n+1存在运动模糊;否则判定所述目标图像P n+1不存在运动模糊;其中,所述目标图像为所述图像序列中包含目标区域的图像。 The embodiment of this specification also provides a method for recognizing a motion blurred image, which includes: acquiring an image sequence; starting from the nth target image P n in the image sequence, the next target image P n+1 Perform compliance determination; n is a positive integer greater than or equal to 1; if the target image P n+1 meets compliance, it is determined that the target image P n+1 has motion blur; otherwise, it is determined that the target image P n+1 is not There is motion blur; wherein, the target image is an image containing a target area in the image sequence.
本说明书实施例提供了一种运动模糊图像的识别装置,该装置包括:获取模块,所述获取模块用于获取图像序列;判定模块,所述判定模块用于从所述获取模块获取到的图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;以及,若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊;若目标图像P n+1满足符合性,则根据所述目标图像P n的状态更新所述目标图像P n+1的状态,并根据所述目标图像P n+1的状态判断所述目标图像P n+1是否存在运动模糊;其中,所述目标图像为所述图像序列中包含目标区域的图像,且所述第n个目标图像P n为初始状态。 The embodiment of this specification provides a device for recognizing a motion blur image, the device includes: an acquisition module, the acquisition module is used to acquire an image sequence; a judgment module, the judgment module is used to obtain an image from the acquisition module Start with the n-th target image P n in the sequence, and perform compliance judgment on the next target image P n+1 ; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance, it is determined that the target image P n + 1 motion blur exists; if the target image P n + 1 satisfy the compliance, the state of the image P n + 1 is updated in accordance with the target state of the target image P n, and in accordance with the said object image P n + 1 determines the state of the object image P n + 1 if there is a motion blur; wherein the target image is an image in the sequence of images including the target region, and the n-th object image P n is the initial state.
本说明书实施例还提供了一种运动模糊图像的识别装置,该装置包括:获取单元,所述获取单元用于获取图像序列;判定单元,所述判定单元用于从所述获取单元获取到的图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;以及,若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊;否则判定所述目标图像P n+1不存在运动模糊;其中,所述目标图像为所述图像序列中包含目标区域的图像。 The embodiment of this specification also provides a device for recognizing a motion blurred image, the device includes: an acquisition unit, the acquisition unit is used to acquire an image sequence; a determination unit, the determination unit is used to acquire the Start with the nth target image P n in the image sequence, and perform compliance judgment on the next target image P n+1 ; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance , It is determined that the target image P n+1 has motion blur; otherwise, it is determined that the target image P n+1 does not have motion blur; wherein, the target image is an image that includes a target area in the image sequence.
本说明书实施例还提供了一种电子设备,包括:至少一个处理器和存储器,所述存储器存储有程序,并且被配置成由所述至少一个处理器执行上述的运动模糊图像的识别方法。The embodiment of the present specification also provides an electronic device, including: at least one processor and a memory, the memory stores a program, and is configured to execute the above-mentioned motion blur image recognition method by the at least one processor.
本说明书实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述的运动模糊图像的识别方法。The embodiments of the present specification also provide a computer-readable storage medium that stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the aforementioned motion-blurred image recognition method is implemented.
本说明书实施例还提供了一种支付设备,包括:采集单元,用于采集人脸视频数据;图像筛选单元,用于根据上述的方法筛选出不存在运动模糊的待识别图像;图像识别单元,用于对筛选出的待识别图像进行识别;支付单元,用于根据所述图像识别单元的识别结果确定是否进行支付操作。The embodiment of this specification also provides a payment device, which includes: a collection unit for collecting facial video data; an image screening unit for screening out images to be recognized without motion blur according to the above-mentioned method; and an image recognition unit, It is used for recognizing the screened out image to be recognized; the payment unit is used for determining whether to perform a payment operation according to the recognition result of the image recognition unit.
本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:本说明书实施例提供的运动模糊图像的识别方法,用于去除图像序列中由于运动模糊导致质量差的 图像,相对于传统方法通过对单张图像上的感兴趣区域进行特征提取或者编码等方式来判断图像是否存在运动模糊,本说明书的方法是通过对图像序列中感兴趣区域(如人眼位置)在图像中的位置信息和时间信息来判断图像是否存在运动模糊,对光照、图像噪声等因素具有更好的鲁棒性。除此之外,该方法还具有过程简单,不依赖复杂计算,计算耗时短的优点。The above-mentioned at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: The motion blur image recognition method provided by the embodiments of this specification is used to remove images of poor quality caused by motion blur in an image sequence. Compared with traditional methods, Perform feature extraction or coding on the region of interest on a single image to determine whether the image has motion blur. The method in this specification is to use the position information of the region of interest in the image sequence (such as the position of the human eye) in the image and Time information is used to determine whether the image has motion blur, which is more robust to factors such as illumination and image noise. In addition, the method also has the advantages of simple process, no dependence on complex calculations, and short calculation time.
附图说明Description of the drawings
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图:In order to more clearly describe the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments described in this specification. For those of ordinary skill in the art, without creative labor, other drawings can be obtained from these drawings:
图1为本说明书实施例提供的运动模糊图像的识别方法的主要流程图;Fig. 1 is a main flow chart of a method for recognizing a motion blurred image provided by an embodiment of this specification;
图2为本说明书实施例提供的运动模糊图像的识别方法的具体流程图;FIG. 2 is a specific flowchart of a method for recognizing a motion blurred image provided by an embodiment of this specification;
图3为本说明书实施例得到的图像序列中部分图像的判断结果示例;FIG. 3 is an example of the judgment result of some images in the image sequence obtained by the embodiment of this specification;
图4为本说明书实施例提供的运动模糊图像的识别装置的结构示意图;FIG. 4 is a schematic structural diagram of a motion blur image recognition device provided by an embodiment of this specification;
图5为本说明书实施例提供的支付设备的结构示意图;Figure 5 is a schematic structural diagram of a payment device provided by an embodiment of the specification;
图6为本说明书另一实施例提供的运动模糊图像的识别方法的主要流程图;FIG. 6 is a main flow chart of a method for recognizing a motion blurred image according to another embodiment of this specification;
图7为本说明书另一实施例提供的运动模糊图像装置的结构示意图。FIG. 7 is a schematic structural diagram of a motion blur image device provided by another embodiment of this specification.
具体实施方式Detailed ways
如背景技术所述,由于虹膜对图像质量的要求非常高,因此需要对模糊图像进行判定并排除来获取高质量虹膜图像。而在快捷支付场景中,由于支付过程对时效性要求非常地高,整个过程大部分时间是从顾客运动到静止之间的过渡时间。因此,如何从图像序列排除由于运动模糊导致质量差的图像显得非常重要。As described in the background art, since the iris has very high requirements for image quality, it is necessary to determine and exclude the blurred image to obtain a high-quality iris image. In the fast payment scenario, since the payment process requires very high timeliness, most of the entire process is the transition time from customer movement to stationary. Therefore, how to exclude poor quality images due to motion blur from the image sequence is very important.
传统运动模糊判定方法主要是通过对单张图像上的感兴趣区域进行梯度计算或者编码等方式来判断图像是否存在运动模糊。但此类方法在原有计算图像感兴趣区域的前提下,附加的计算复杂度较高,导致判断耗时长。同时,此类方法对于光照、图像噪声等因素鲁棒性较差。The traditional motion blur determination method mainly determines whether the image has motion blur by performing gradient calculation or encoding on the region of interest on a single image. However, under the premise of calculating the region of interest in the original image, this type of method has higher additional computational complexity, which leads to a long time-consuming judgment. At the same time, such methods are less robust to factors such as illumination and image noise.
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this specification, the following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of this specification, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
在本文中,术语运动模糊(motion blur):静态场景或一系列的图片像电影或是动画中快速移动的物体造成明显的模糊拖动痕迹;术语人眼定位:定位图像中人眼所处的位置,结果一般以人眼的外接矩形框在图像中左上角的横、纵坐标以及长、宽给出;术语交并比(Intersection-over-Union,IoU):指候选框与原标记框的交叠率,即它们的交集与并集的比值。术语感兴趣区域(region of interest):即从被处理的图像以方框、圆、椭圆、不规则多边形等方式勾勒出需要处理的区域。In this article, the term motion blur (motion blur): a static scene or a series of pictures like movies or fast moving objects in an animation cause obvious fuzzy drag traces; the term human eye positioning: locate the human eye in the image The position, the result is generally given by the horizontal and vertical coordinates, length and width of the circumscribed rectangular frame of the human eye in the upper left corner of the image; the term Intersection-over-Union (IoU): refers to the difference between the candidate frame and the original marked frame Overlap rate, that is, the ratio of their intersection and union. The term region of interest (region of interest): that is, the region that needs to be processed is outlined in the form of boxes, circles, ellipses, and irregular polygons from the processed image.
图1为本说明书实施例提供的一种运动模糊图像的识别方法的主要流程图。该方法包括:S102:获取图像序列。FIG. 1 is a main flow chart of a method for recognizing a motion blurred image provided by an embodiment of this specification. The method includes: S102: Obtain an image sequence.
该步骤中可以根据采集到的视频数据,获取该视频数据中的图像序列,图像序列中一般包含多帧图像,如每个视频数据包含20帧左右或30帧左右的图像等。作为示例,在快捷支付场景中,可以通过相应的采集设备来采集用户的人脸视频数据,其中,每个人脸视频数据中可以包括20帧左右的图像。In this step, an image sequence in the video data can be obtained based on the collected video data. The image sequence generally contains multiple frames of images, for example, each video data contains about 20 or 30 frames of images. As an example, in a quick payment scenario, the user's facial video data can be collected through a corresponding collection device, where each facial video data can include about 20 frames of images.
S104:从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定。 S104: Starting from the n-th target image P n in the image sequence, perform compliance judgment on the next target image P n+1.
作为一种具体的示例,在该步骤之前,以及在步骤S102步骤(获取图像序列)之后,本说明书的方法还可以包括:确定所述图像序列中的第n个目标图像P n和其下一个目标图像P n+1。作为示例,所述目标图像中包含的目标区域为人眼位置,本领域技术人员可以通过相应的人眼定位算法来检测人眼位置。关于人眼定位算法可选用但不限于使用基于深度卷积网络的人眼检测算法,本说明书实施例不对此进行限定,本领域技术人员可以根据实际需要选择合适的算法来检测图像序列中包含人眼位置的图像。在本说明书实施例中,当检测到人眼位置后,可以用图像中的矩形框来表示人眼位置所在的位置。其中,可以将第一个检测到目标区域的图像作为目标图像P n,将下一个检测到目标区域的图像作为目标图像P n+1As a specific example, before this step and after step S102 (acquiring an image sequence), the method of this specification may further include: determining the nth target image P n in the image sequence and its next The 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 through a corresponding eye positioning algorithm. Regarding the eye location algorithm, but not limited to the use of the eye detection algorithm based on the deep convolutional network, the embodiment of this specification does not limit this, and those skilled in the art can select a suitable algorithm to detect the image sequence containing people according to actual needs. Image of eye position. In the embodiment of this specification, when the position of the human eye is detected, the rectangular frame in the image can be used to indicate the position of the human eye. Among them, the first image in which the target area is detected can be used as the target image P n , and the next image in which the target area is detected can be used as the target image P n+1 .
该步骤中,n为大于等于1的正整数。作为示例,以n=1为例,即从第1个目标图 像P n(包含目标区域的图像)开始,对其下一个目标图像P 2进行符合性判定。在此需要说明的是,在本说明书实施例中,符合性判定主要是指相邻的两个目标图像的符合性情况,而并不一定是图像序列中相邻的两帧图像之间的比较。在一些特殊情况下,当前帧图像为目标图像,其下一帧图像可能不是目标图像,其下下一帧图像为目标图像,此时的当前目标图像为P n,而当前目标图像的下下一帧图像为其下一个目标图像P 2In this step, n is a positive integer greater than or equal to 1. As an example, an example to n = 1, i.e., from the first object images P n (including the image of the target area), beginning with the next line with its determination target image P 2. It should be noted here that in the embodiments of this specification, the compliance determination mainly refers to the compliance of two adjacent target images, and not necessarily the comparison between two adjacent frames in the image sequence. . In some special cases, the current frame image is the target image, and the next frame image may not be the target image. The next frame image is the target image. At this time, the current target image is P n , and the next frame of the current target image is P n. One frame of image is its next target image P 2 .
关于符合性,在本说明书实施例中,该符合性可以是时空维度的符合性。具体而言,该符合性可以指相邻的两个目标图像在时间上的符合性和空间上的符合性。其中,时间上的符合性可以是相邻的两个目标图像之间的时间间隔;空间上的符合性可以是相邻的两个目标图像之间的一致性,一般为目标图像中对应的目标区域的一致性。Regarding compliance, in the embodiments of this specification, the compliance may be compliance in the space-time dimension. Specifically, the conformity may refer to the temporal and spatial conformity of two adjacent target images. Among them, the temporal compliance can be the time interval between two adjacent target images; the spatial compliance can be the consistency between two adjacent target images, generally the corresponding target in the target image Regional consistency.
下面对该步骤如何进行符合性判定,作进一步详细说明。The following is a further detailed description of how to perform compliance determination for this step.
在本说明书示例中,首先可以比较第n个目标图像P n与其下一个目标图像P n+1之间的时间间隔t,如果t>第一设定阈值,则判定该目标图像P n+1不满足符合性。如果t≤第一设定阈值,则比较第n个目标图像P n与其下一个目标图像P n+1之间的一致性r,如果r<第二设定阈值,则判定该目标图像P n+1不满足符合性;如果r≥第二设定阈值,则判定该目标图像P n+1满足符合性。 In the example of this specification, the time interval t between the n-th target image P n and the next target image P n+1 can be compared first, if t>the first set threshold, then the target image P n+1 can be determined Does not meet compliance. If t ≤ the first set threshold, compare the consistency r between the nth target image P n and the next target image P n+1 , if r <the second set threshold, then determine the target image P n +1 does not meet the compliance; if r≥the second set threshold, it is determined that the target image P n+1 meets the compliance.
上述中,第一设定阈值可以是为预先设定的时间阈值,例如该第一设定阈值可以为300毫秒,本领域技术人员也可以根据实际情况灵活地设定该第一设定阈值,例如可以根据以往的经验设定合适的第一设定阈值,也可以根据硬件设备的情况,如采集精度等,来合理地设定第一设定阈值,本说明书实施例对具体如何设定该第一设定阈值不作具体的限定。作为示例,第n个目标图像P n与其下一个目标图像P n+1之间的时间间隔t还可以采用相隔帧数量或帧序号等方式确定,旨在反映当前的目标图像帧与其上一个目标图像之间相隔的时长。 In the foregoing, the first set threshold may be a preset time threshold. For example, the first set threshold may be 300 milliseconds. Those skilled in the art can also flexibly set the first set threshold according to actual conditions. For example, an appropriate first threshold can be set based on past experience, or the first threshold can be set reasonably according to the hardware device's conditions, such as acquisition accuracy. The first set threshold is not specifically limited. As an example, the time interval t between the n-th target image P n and the next target image P n+1 can also be determined by the number of frames or the frame sequence number, etc., to reflect the current target image frame and its previous target The length of time between images.
上述中,目标区域为人眼位置时,人眼位置用图像中的矩形框来表示,可以分别计算第1个目标图像P n中的人眼位置对应的矩形框大小R 1和其下一个目标图像P n+1中的人眼位置对应的矩形框大小R 2。目标图像P n与其下一个目标图像P n+1之间的一致性r可以使用交并比,即候选框与原标记框的交叠率作为衡量值。具体可以按照如下公式计算: In the above, when the target area is the human eye position, the human eye position is represented by the rectangular frame in the image, and the rectangular frame size R 1 corresponding to the human eye position in the first target image P n and the next target image can be calculated separately The size of the rectangular frame R 2 corresponding to the position of the human eye in P n+1 . The consistency r between the target image P n and the next target image P n+1 can be measured by the intersection ratio, that is, the overlap ratio between the candidate frame and the original marked frame. It can be calculated according to the following formula:
r=R n+1/R nr=R n+1 /R n ;
其中,R n+1为目标图像P n+1中的目标区域对应的矩形框数据;R n为目标图像P n中的 目标区域对应的矩形框数据。 Among them, R n+1 is the rectangular frame data corresponding to the target area in the target image P n+1 ; R n is the rectangular frame data corresponding to the target area in the target image P n.
需要说明的是,虽然本说明书实施例选用交并比作为一致性的衡量值,但是对本领域技术人员来说,还可以选择其他的衡量值来表示相邻两个目标图像对应的目标区域的一致性,例如还可以采用矩形框大小之比或者矩形框中心的像素距离等方式,旨在反映当前目标图像对应的人眼位置和其上一个目标图像对应的人眼位置的一致性。It should be noted that although the embodiment of this specification selects the intersection ratio as the measure of consistency, for those skilled in the art, other measures can also be selected to indicate the consistency of the target regions corresponding to two adjacent target images. For example, the ratio of the size of the rectangular frame or the pixel distance of the center of the rectangular frame can also be used to reflect the consistency of the human eye position corresponding to the current target image and the human eye position corresponding to the previous target image.
上述中,第二设定阈值可以是0.8、0.9等,即目标图像P n与其下一个目标图像P n+1之间的一致性r达到80%以上时,满足符合性。本领域技术人员也可以根据实际需要设置其他合适的第二设定阈值,如根据以往的经验设定合适的第二设定阈值,也可以根据硬件设备的情况,如采集精度等,来合理地设定第二设定阈值,本说明书实施例对具体如何设定该第二设定阈值不作具体的限定。 In the above, the second set threshold may be 0.8, 0.9, etc., that is, when the consistency r between the target image P n and the next target image P n+1 reaches 80% or more, the compliance is satisfied. Those skilled in the art can also set other appropriate second set thresholds according to actual needs, such as setting appropriate second set thresholds based on past experience, or reasonably based on hardware equipment conditions, such as acquisition accuracy, etc. The second set threshold is set, and the embodiment of this specification does not specifically limit how to set the second set threshold.
该步骤可以循环执行,例如:先从第1个目标图像P 1开始,以目标图像P 1对其下一个目标图像P 2进行符合性判定,如果满足符合性则执行步骤S106,否则执行步骤S108;然后再以目标图像P 2对其下一个目标图像P 3进行符合性判定,如果满足符合性则执行步骤S106,否则执行步骤S108;然后再以目标图像P 3对其下一个目标图像P 4进行符合性判定,如果满足符合性则执行步骤S106,否则执行步骤S108……依次循环判定。 This step may be executed cyclically, for example: start with the first object images P 1 starts, to its next target image P 1 P 2 a target image for compliance determination, if the conformity is performed to meet the step S106, or step S108 is performed ; Then use the target image P 2 to determine the compliance of its next target image P 3 , if the compliance is met, perform step S106, otherwise perform step S108; then use the target image P 3 for the next target image P 4 Perform compliance determination, if compliance is met, step S106 is executed, otherwise, step S108...sequentially cyclically determine.
S106:若目标图像P n+1不满足符合性,则判定目标图像P n+1存在运动模糊。 S106: If the target image P n+1 does not satisfy the compliance, it is determined that the target image P n+1 has motion blur.
该步骤中,如果步骤S104中判定目标图像P n+1不满足符合性,即无论是目标图像P n与P n+1之间的时间间隔不满足第一设定阈值,还是目标图像P n与P n+1之间的一致性不满足第二设定阈值,均判定目标图像P n+1不满足符合性,即存在运动模糊。 In this step, if it is determined in step S104 that the target image P n+1 does not meet the compliance, that is, whether the time interval between the target images P n and P n+1 does not meet the first set threshold, or the target image P n If the consistency with P n+1 does not meet the second set threshold, it is determined that the target image P n+1 does not meet the compliance, that is, there is motion blur.
S108:若目标图像P n+1满足符合性,则根据所述目标图像P n的状态更新该目标图像P n+1的状态,以及根据该目标图像P n+1的状态判断该目标图像P n+1是否存在运动模糊。 S108: If the target image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, P of the target image and determining the state of the object image P n + 1 Whether n+1 is motion blur.
在该步骤中,目标图像P n的状态为初始状态,目标图像P n+1更新后的状态表示目标图像P n+1为连续第m次满足符合性的目标图像。具体而言,以n=1为例,以目标图像P 1对其下一个目标图像P 2进行符合性判定,如果目标图像P 2满足符合性判定,此时由于目标图像P n为初始状态,例如该初始状态可以是目标图像P 1的编号m=1,那么根据目标图像P n的初始状态更新目标图像P 2的状态时,可以将目标图像P 2的编号更新为m=2;然后再以目标图像P 2对其下一个目标图像P 3进行符合判定,如果目标图像P 3满足符合性判定,则同理更新目标图像P 3的状态时,可以将目标图像P 3的编号更新为m=3;再以目标图像P 3对其下一个目标图像P 4进行符合性判定,如果目标图像P 4满足符合性 判定,则同理更新目标图像P 4的状态时,可以将目标图像P 4的编号更新为m=4,依次循环判定并更新。 In this step, the state of the object image P n to an initial state, the target state image P n + 1 represents the updated target image P n + 1 is m times in a row to meet compliance target image. Specifically, taking n=1 as an example, take the target image P 1 to make a compliance judgment for its next target image P 2. If the target image P 2 satisfies the compliance judgment, at this time, since the target image P n is the initial state, For example, the initial state may be the target image P. 1 number m = 1, then the state of the object image P 2 is updated according to the initial state of the object image P n when the target image P-number update 2 may be as m = 2; and then in its next target image P 2 P 3 a target image for compliance determination, if the target image P 3 satisfy the compliance determination, the status update empathy object image P 3, P-number target image may be updated to 3 m = 3; when following the target image and then its P 3 P 4 a target image for compliance determination, if the target image P 4 satisfies compliance determination, the object image P empathy update state 4, the target image P may be 4 The number of is updated to m=4, and it is determined and updated in turn.
需要说明书的是,上述中,如果目标图像P 2不满足符合性判定,则可以将目标图像P 1的状态更新为m=0(目标图像P 1的初始状态为m=1),那么根据目标图像P n的初始状态更新目标图像P 2的状态时,可以将目标图像P 2的状态更新为m=1;此时再以目标图像P 2对其下一个目标图像P 3进行符合判定,如果目标图像P 3满足符合性判定,则更新P 3的编号为m=1,如果目标图像P 3不满足符合性判定,则同理可以将目标图像P 2的状态更新为m=0,将目标图像P 3的状态更新为m=1。 It should be noted that, in the above, if the target image P 2 does not meet the compliance determination, the state of the target image P 1 can be updated to m=0 ( the initial state of the target image P 1 is m=1), then according to the target When the initial state of the image P n updates the state of the target image P 2 , the state of the target image P 2 can be updated to m = 1; at this time, the target image P 2 is used to determine the conformity of the next target image P 3, if If the target image P 3 satisfies the compliance determination, the number of the update P 3 is m = 1. If the target image P 3 does not meet the compliance determination, the state of the target image P 2 can be updated to m = 0 in the same way. P-state image 3 is updated to m = 1.
作为示例,在该步骤中,根据该目标图像P n+1的状态判断该目标图像P n+1是否存在运动模糊,具体可以包括:如果m>第三设定阈值,则判定该目标图像P n+1不存在运动模糊;否则,判定该目标图像P n+1存在运动模糊。给第三设定阈值为可以是1、2或3,也可以由本领域技术人员根据实际情况灵活设定,本说明书实施例不对此进行限定。 As an example, in this step, according to the state of the object image P n + 1 determines the target image P n + 1 if motion blur exists, specifically comprising: if m> a third set threshold, it is determined that the object image P n+1 does not have motion blur; otherwise, it is determined that the target image P n+1 has motion blur. The third set threshold value can be 1, 2 or 3, and can also be flexibly set by those skilled in the art according to actual conditions, which is not limited in the embodiment of this specification.
为了对本说明书的一种运动模糊图像的识别方法进行更详细的说明,下面以一个具体的实际应用中的示例进行说明。参照图2,图2为本说明书实施例提供的一种运动模糊图像的识别方法的具体流程图。在该具体的实施方式中,执行如下步骤:In order to describe in more detail a method for recognizing a motion blur image in this specification, a specific practical example is used for description below. Referring to FIG. 2, FIG. 2 is a specific flowchart of a method for recognizing a motion blurred image provided by an embodiment of this specification. In this specific implementation, the following steps are performed:
S210:初始化参数。S210: Initialize parameters.
该步骤中,设定时间阈值T(第一设定阈值)、交叠率阈值D(即第二设定阈值)、帧阈值M,并初始化帧计数器n=0。In this step, the time threshold T (the first set threshold), the overlap rate threshold D (ie, the second set threshold), and the frame threshold M are set, and the frame counter n=0 is initialized.
S220:获取图像序列中的单帧图像。S220: Acquire a single frame image in the image sequence.
该步骤中,可以根据采集到的视频数据,获取该视频数据中的图像序列,图像序列中包含多帧图像,依次获取每帧图像。In this step, an image sequence in the video data can be obtained according to the collected video data. The image sequence contains multiple frames of images, and each frame of image is obtained in turn.
S230:人眼定位。S230: Human eye positioning.
该步骤中,针对获取到的帧图像,从第一帧图像开始,检测该图像是否包含人眼位置,若该图像中不存在人眼,设置n=0,重复执行S220-S230,即检测第二帧图像是否包含人眼位置,直到检测到包含人眼位置的图像,用图像中的矩形框来表示人眼所在的位置。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, set n=0, repeat S220-S230, that is, detect the first image. Whether the two frames of images contain the position of the human eye until the image containing the position of the human eye is detected, the rectangular frame in the image is used to indicate the position of the human eye.
S240:帧时间判定。S240: Frame time determination.
该步骤中,将步骤S230中检测到的包含人眼位置的帧图像,假如该帧图像为第二 帧图像,则将该图像记作n=1,并将该帧图像的时间记作t 1,并执行步骤S270,进行状态更新后,再次执行S220-230,即检测第三帧图像是否包含人眼位置,如果包含人眼位置,则将该第三帧图像作为当前图像,将该当前图像的时间记作t 2,比较t 2与t 1之间的差异,如t 2-t 1>T,则判定当前帧图像存在运动模糊。此时令n=0,并将当前图像(第三帧图像)记作n=1,当前图像的时间记作t 1,并执行步骤S270,进行状态更新后,再次执行S220-230,即检测第四帧图像是否包含人眼位置,如果包含人眼位置,则将该第四帧图像作为当前图像,将该当前图像的时间记作t 2,比较t 2与t 1之间的差异,如此循环判定,直至t 2-t 1≤T。 In this step, the frame image including the human eye position detected in step S230, if the frame image is the second frame image, then the image is denoted as n=1, and the time of the frame image is denoted as t 1 , And execute step S270. After the status is updated, execute S220-230 again, that is, to detect whether the third frame of image contains the position of the human eye, if it contains the position of the human eye, then the third frame of The time of is recorded as t 2 , and the difference between t 2 and t 1 is compared. If t 2 -t 1 >T, it is determined that the current frame image has motion blur. At this time, let n=0, record the current image (the third frame of image) as n=1, and record the time of the current image as t 1 , and execute step S270. After the status is updated, execute S220-230 again, that is, detect the first Whether the four frames of images contain the position of the human eye, if it contains the position of the human eye, the fourth frame of image is taken as the current image, the time of the current image is recorded as t 2 , the difference between t 2 and t 1 is compared, and so on Determine until t 2 -t 1 ≤T.
S250:一致性判定。S250: Consistency determination.
在该步骤中,当第四帧图像作为当前图像时,如果t 2-t 1≤T,则将第三帧图像中的人眼位置对应的矩形框记作R 1,将当前帧(第四帧图像)包含的人眼位置对应的矩形框记作R 2。然后计算交叠率r=R 2/R 1。如果r<D,则判定当前图像存在运动模糊。此时令n=0,并将当前图像(第四帧图像)记作n=1,当前图像的时间记作t 1,执行步骤S270,进行状态更新后,再次执行S220-S250(即对第五帧包含人眼位置的图像再次进行帧时间判定、一致性判定),直至r≥D。 In this step, when the fourth frame of image is used as the current image, if t 2 -t 1 ≤ T, the rectangular frame corresponding to the position of the human eye in the third frame of image is marked as R 1 , and the current frame (fourth The rectangular frame corresponding to the position of the human eye contained in the frame image is denoted 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, record the current image (the fourth frame of image) as n=1, and record the time of the current image as t 1 , and execute step S270. After the status is updated, execute S220-S250 again (that is, for the fifth The frame contains the image of the human eye position, and the frame time determination and consistency determination are performed again, until r≥D.
在第五帧图像作为当前帧图像时,满足t 2-t 1≤T,且r≥D,则对当前帧的计数加1,即当前帧记作n=2,并执行步骤S270,进行状态更新后,再次执行S220-S250,如果第六帧图像作为当前帧图像时,满足t 2-t 1≤T,且r≥D,则对当前帧的计数加1,即当前帧记作n=3,否则另n=0。 When the fifth frame image is used as the current frame image, t 2 -t 1 ≤ T and r ≥ D, the current frame count is increased by 1, that is, the current frame is marked as n = 2, and step S270 is executed to proceed to the state After updating, perform S220-S250 again, if the sixth frame of image is used as the current frame of image, if t 2 -t 1 ≤ T and r ≥ D, then the current frame count is increased by 1, that is, the current frame is denoted as n = 3, otherwise n=0.
S260:运动模糊判定。S260: Motion blur determination.
如果n>M,则判定当前帧图像不存在运动模糊。此处的帧阈值M即设定的第三设定阈值,如果M=1,则在步骤S250中,n=2、n=3对应的帧图像不存在运动模糊;如果M=2,则在步骤S250中,n=3对应的帧图像不存在运动模糊。参照图3,图3为本说明书实施例得到的图像序列中部分帧图像的判断结果示例。图3中示出了七幅包含人眼的帧图像,其中,以M=1为例,其是否存在运动模糊的判定结果如图3所示,即n=0、n=1(即n≤M)代表存在运动模糊的图像,n=2、n=3(即n>M)代表不存在运动模糊的图像。本领域技术人员可以根据实际情况设定帧阈值M。If n>M, it is determined that there is no motion blur in the current frame of image. The frame threshold M here is the third set threshold. If M=1, then in step S250, the frame image corresponding to n=2 and n=3 does not have motion blur; if M=2, then In step S250, the frame image corresponding to n=3 does not have motion blur. Referring to FIG. 3, FIG. 3 is an example of the judgment result of partial frame images in the image sequence obtained in the embodiment of this specification. Figure 3 shows seven frame images containing human eyes. Taking M = 1 as an example, the result of determining whether there is motion blur is shown in Figure 3, that is, n = 0, n = 1 (that is, n ≤ M) represents an image with motion blur, n=2, n=3 (ie n>M) represents an image without motion blur. Those skilled in the art can set the frame threshold M according to the actual situation.
如上所述,本说明书实施例提供的运动模糊图像的识别方法,用于去除图像序列中由于运动模糊导致质量差的图像,相对于传统方法通过对单个图像上的感兴趣区域进行 特征提取或者编码等方式来判断图像是否存在运动模糊,本说明书的方法是通过对图像序列中感兴趣区域(如人眼位置)在图像中的位置信息和时间信息(主要通过帧时间判定、一致性判定)来判断图像是否存在运动模糊,对光照、图像噪声等因素具有更好的鲁棒性。除此之外,该方法还具有过程简单,不依赖复杂计算,计算耗时短的优点。As mentioned above, the motion-blurred image recognition method provided by the embodiments of this specification is used to remove images of poor quality caused by motion blur in an image sequence. Compared with the traditional method, the feature extraction or coding of the region of interest on a single image is performed. To determine whether the image has motion blur, the method of this specification is to determine the position information and time information (mainly through frame time determination and consistency determination) of the region of interest in the image sequence (such as the position of the human eye) in the image. Judge whether the image has motion blur, it has better robustness to factors such as illumination and image noise. In addition, the method also has the advantages of simple process, no dependence on complex calculations, and short calculation time.
基于同样的思路,本说明书实施例还提供了一种运动模糊图像的识别装置。图4为本说明书实施例提供的运动模糊图像的识别装置的结构示意图。如图4所示,该装置包括:获取模块401,获取模块401用于获取图像序列;判定模块402,判定模块402用于从获取模块401获取到的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;以及,若目标图像P n+1不满足符合性,则判定该目标图像P n+1存在运动模糊;若目标图像P n+1满足符合性,则根据所述目标图像P n的状态更新该目标图像P n+1的状态,以及根据该目标图像P n+1的状态判断该目标图像P n+1是否存在运动模糊;其中,所述目标图像为所述图像序列中包含目标区域的图像,所述第n个目标图像P n为初始状态。 Based on the same idea, the embodiment of this specification also provides a motion blur image recognition device. FIG. 4 is a schematic diagram of the structure of a motion blur image recognition device provided by an embodiment of this specification. 4, the apparatus comprising: an acquisition module 401, acquisition module 401 for acquiring a sequence of images; decision block 402, decision block 402 for acquiring module 401 acquires from the n-th object image P n starts, its Perform compliance determination for the next target image P n+1 ; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 has motion blur; if object image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, and the determination of the target image P n + 1 in accordance with the state of the object 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 an initial state.
进一步,判定模块402用于从第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定,具体包括:比较第n个目标图像P n与其下一个目标图像P n+1之间的时间间隔t;如果t>第一设定阈值,则判定该目标图像P n+1不满足符合性。 Further, the decision block 402 for starting the n-th object image P n, for compliance to its next determination target image P n + 1, comprises: comparing the target n-th image P n to its next target image P n The time interval t between +1 ; if t>the first set threshold, it is determined that the target image P n+1 does not meet the compliance.
进一步,判定模块402用于从第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定,具体还包括:如果t≤第一设定阈值,则比较第n个目标图像P n与其下一个目标图像P n+1之间的一致性r;如果r<第二设定阈值,则判定该目标图像P n+1不满足符合性;如果r≥第二设定阈值,则判定该目标图像P n+1满足符合性。 Further, the judging module 402 is configured to start from the nth target image P n and make a compliance judgment for the next target image P n+1 , and specifically includes: if t ≤ the first set threshold, compare the nth target image P n The consistency r between the target image P n and its next target image P n+1 ; if r<the second set threshold, it is determined that the target image P n+1 does not meet the compliance; if r≥the second set Threshold, it is determined that the target image P n+1 satisfies compliance.
进一步,判定模块按照如下公式计算r:r=R n+1/R n;其中,R n+1为目标图像P n+1中的目标区域对应的矩形框数据;R n为目标图像P n中的目标区域对应的矩形框数据。 Further, the determination module calculates r according to the following formula: r=R n+1 /R n ; where R n+1 is the rectangular frame data corresponding to the target area in the target image P n+1 ; R n is the target image P n The rectangular frame data corresponding to the target area in.
进一步,如图4所示,该装置还包括检测模块400,检测模块400用于确定所述图像序列中的第n个目标图像P n和其下一个目标图像P n+1;其中,所述目标图像中包含的目标区域为人眼位置。 Further, as shown in FIG. 4, the device further includes a detection module 400, which is used to determine the nth target image P n and the next target image P n+1 in the image sequence; wherein, the The target area contained in the target image is the position of the human eye.
进一步,若目标图像P n+1满足符合性,则该目标图像P n+1更新后的状态表示目标图像P n+1为连续第m次满足符合性的目标图像。 Further, if the target image P n + 1 satisfy the compliance, the state of the image P n + 1 after updating the target object image represented by P n + 1 is m times continuously satisfied compliance target image.
进一步,判定模块402根据该目标图像P n+1的状态判断该目标图像P n+1是否存在运动模糊,具体包括:如果m>第三设定阈值,则判定该目标图像P n+1不存在运动模糊; 否则,判定该目标图像P n+1存在运动模糊。 Further, decision block 402 determines that the object image P n + 1 according to whether there is motion blur state of the object image P n + 1, specifically comprising: if m> a third set threshold, it is determined that the object image P n + 1 is not There is motion blur; otherwise, it is determined that the target image P n+1 has motion blur.
关于该装置的具体实施方式参见上文关于方法的说明,在此不再赘述。For the specific implementation of the device, please refer to the above description of the method, which will not be repeated here.
基于同样的思路,本说明书实施例还提供了一种电子设备,包括:至少一个处理器和存储器,所述存储器存储有程序,并且被配置成由所述至少一个处理器执行本说明书的运动模糊图像的识别方法。Based on the same idea, an embodiment of this specification also provides an electronic device, including: at least one processor and a memory, the memory stores a program and is configured to execute the motion blur of this specification by the at least one processor Image recognition method.
基于同样的思路,本说明书实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现本说明书的运动模糊图像的识别方法。Based on the same idea, the embodiments of this specification also provide a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the movement of this specification is realized. Recognition method of blurred images.
本说明书实施例还提供了一种支付设备,参照图5,图5为本说明书实施例提供的支付设备的结构示意图,如图5所示,该支付设备包括:采集单元501,用于采集人脸视频数据;图像筛选单元502,用于根据上述运动模糊图像的识别方法筛选出不存在运动模糊的待识别图像;图像识别单元503,用于对筛选出的待识别图像进行识别;支付单元504,用于根据图像识别单元503的识别结果确定是否进行支付操作。The embodiment of this specification also provides a payment device. Referring to FIG. 5, FIG. 5 is a schematic structural diagram of the payment device provided by the embodiment of the specification. As shown in FIG. Face video data; image screening unit 502, used to screen out images to be recognized without motion blur according to the aforementioned motion blur image recognition method; image recognition unit 503, used to recognize the screened images to be recognized; payment unit 504 , Used to determine whether to perform a payment operation according to the recognition result of the image recognition unit 503.
在本说明书实施例中,该支付设备可以是刷脸支付设备,具体为基于人脸和人眼虹膜的多模态身份识别方式来实现支付操作。该支付设备的图像筛选单元502采用上述的运动模糊图像识别方法从采集到的多帧人脸图像中获取不存在运动模糊的图像以进行人脸和人眼虹膜识别,进而根据识别结果确定是否进行支付操作。作为示例,如果筛选出多个待识别图像,则可以选择其中一帧待识别图像进行识别,具体可以由支付设备的配置决定,本申请不对此进行限定。In the embodiment of this specification, the payment device may be a face-swiping payment device, specifically a multi-modal identification method based on the face and the iris of the human eye to realize the payment operation. The image screening unit 502 of the payment device uses the aforementioned motion-blur image recognition method to obtain images without motion blur from the collected multi-frame face images to perform face and eye iris recognition, and then determine whether to proceed according to the recognition results Payment operation. As an example, if multiple images to be identified are filtered out, one of the images to be identified can be selected for identification, which can be specifically determined by the configuration of the payment device, which is not limited in this application.
关于支付设备中如何筛选运动模糊的图像的具体实施方式参见上文对运动模糊图像识别方法的说明,此处不再赘述。For the specific implementation of how to filter the motion-blurred images in the payment device, please refer to the above description of the motion-blurred image recognition method, which will not be repeated here.
本说明书还提供了另一实施例的运动模糊图像的识别方法。参照图6,图6为本说明书另一实施例提供的运动模糊图像的识别方法的主要流程图。该实施例提供的运动模糊图像的识别方法包括:S602:获取图像序列;S604:从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;S606:若目标图像P n+1满足符合性,则判定目标图像P n+1存在运动模糊;S608:若目标图像P n+1不满足符合性,则判定目标图像P n+1不存在运动模糊。 This specification also provides a method for recognizing a motion blurred image according to another embodiment. Referring to FIG. 6, FIG. 6 is a main flow chart of a method for recognizing a motion blurred image according to another embodiment of this specification. The method for recognizing a motion blur image provided by this embodiment includes: S602: acquiring an image sequence; S604: starting from the nth target image P n in the image sequence, conforming to the next target image P n+1 Judgment; n is a positive integer greater than or equal to 1; S606: If the target image P n+1 meets compliance, it is determined that the target image P n+1 has motion blur; S608: If the target image P n+1 does not meet the compliance, Then it is determined that there is no motion blur in the target image P n+1.
其中,所述目标图像为所述图像序列中包含目标区域的图像。Wherein, the target image is an image containing a target area in the image sequence.
上述步骤S602-S606与步骤S102-S106相同,关于步骤S602-S606的具体实施例可 以参见上文对步骤S102-S106的说明,此处不再赘述。该实施例与上述实施例区别在于,该实施例的步骤S608中,若目标图像P n+1不满足符合性,则判定目标图像P n+1不存在运动模糊。换言之,在该实施例中,只根据对目标图像P n+1进行符合性判定的结果来判定目标图像P n+1是否存在运动模糊,从而进一步简化判定过程,更加快速地识别出图像序列中的存在运动模糊的图像。 The foregoing steps S602-S606 are the same as steps S102-S106. For 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 foregoing embodiment is that in step S608 of this embodiment, if the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 does not have motion blur. In other words, in this embodiment, only be determined from the result of the target image P n + 1 for compliance determination target image P n + 1 if there is a motion blur, further simplifying the decision process more quickly identify the image sequence The presence of motion-blurred images.
本说明书还提供了另一实施例的运动模糊图像的识别装置。参照图7,图7为本说明书另一实施例提供的运动模糊图像装置的结构示意图。如图7所示,该实施例的装置包括:获取单元701,获取单元701用于获取图像序列;判定单元702,判定单元702用于从获取单元701获取到的图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;以及,若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊;否则判定所述目标图像P n+1不存在运动模糊;其中,所述目标图像为所述图像序列中包含目标区域的图像。 This specification also provides another embodiment of a motion blur image recognition device. Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a motion blur image device provided by another embodiment of this specification. As shown in FIG. 7, the apparatus of this embodiment includes: an obtaining unit 701, which is used to obtain an image sequence; The image P n starts, and the next target image P n+1 is determined for compliance; n is a positive integer greater than or equal to 1; and, if the target image P n+1 does not meet the compliance, then the target image P is determined n+1 has motion blur; otherwise, it is determined that the target image P n+1 does not have motion blur; wherein, the target image is an image that includes a target area in the image sequence.
关于该装置的具体实施例参见上文关于方法的说明,此处不再赘述。For the specific embodiment of the device, please refer to the description of the method above, which will not be repeated here.
上述对本说明书特定实施例进行了描述,其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,附图中描绘的过程不一定必须按照示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The specific embodiments of this specification have been described above, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily have to be in the specific order or sequential order shown in order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机可读存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various 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 for related parts, please refer to the part of the description of the method embodiments.
本说明书实施例提供的装置、设备、非易失性计算机可读存储介质与方法是对应的,因此,装置、设备、非易失性计算机存储介质也具有与对应方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述对应装置、设备、非易失性计算机存储介质的有益技术效果。The apparatus, equipment, non-volatile computer readable storage medium, and method provided in the embodiments of this specification correspond to each other. Therefore, the apparatus, equipment, and non-volatile computer storage medium also have beneficial technical effects similar to the corresponding method. The beneficial technical effects of the method have been described in detail above, therefore, the beneficial technical effects of the corresponding device, equipment, and non-volatile computer storage medium will not be repeated here.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接 改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如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)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) and software improvements (improvements in method flow). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (such as a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a piece of PLD, without having to ask the 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 realized by using "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one type of HDL, but many types, 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), etc., currently most commonly used It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that just a little bit of logic programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain the hardware circuit that implements the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded logic. The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这 些设备中的任何设备的组合。The systems, devices, modules, or units explained in the foregoing embodiments may be specifically implemented by computer chips or entities, or implemented 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 cell 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 Any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本说明书实施例可提供为方法、系统、或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, the embodiments of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This specification is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或 技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The 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, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cartridges, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements includes not only those elements, but also Other elements that are not explicitly listed, or include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity or equipment that includes the element.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。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 can also be practiced in distributed computing environments. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所述仅为本说明书实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of this specification, and are not intended to limit this application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (19)

  1. 一种运动模糊图像的识别方法,该方法包括:A method for recognizing motion blurred images, the method includes:
    获取图像序列;Get image sequence;
    从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数; Starting from the n-th target image P n in the image sequence, perform compliance judgment on the next target image P n+1 ; n is a positive integer greater than or equal to 1;
    若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊; If the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 has motion blur;
    若目标图像P n+1满足符合性,则根据所述目标图像P n的状态更新所述目标图像P n+1的状态,以及根据所述目标图像P n+1的状态判断所述目标图像P n+1是否存在运动模糊; If the target image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, and the determination target image according to a state of the object image P n + 1 P n+1 whether there is motion blur;
    其中,所述目标图像为所述图像序列中包含目标区域的图像,且所述第n个目标图像P n为初始状态。 Wherein, the target image is an image that includes a target area in the image sequence, and the nth target image P n is an initial state.
  2. 根据权利要求1所述的方法,从第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定,具体包括: According to the method of claim 1, starting from the nth target image P n , the compliance determination for the next target image P n+1 specifically includes:
    比较第n个目标图像P n与其下一个目标图像P n+1之间的时间间隔t; Compare the time interval t between the nth target image P n and the next target image P n+1;
    如果t>第一设定阈值,则判定该目标图像P n+1不满足符合性。 If t>the first set threshold, it is determined that the target image P n+1 does not satisfy the compliance.
  3. 根据权利要求2所述的方法,According to the method of claim 2,
    如果t≤第一设定阈值,则比较第n个目标图像P n与其下一个目标图像P n+1之间的一致性r; If t ≤ the first set threshold, compare the consistency r between the nth target image P n and the next target image P n+1;
    如果r<第二设定阈值,则判定该目标图像P n+1不满足符合性;如果r≥第二设定阈值,则判定该目标图像P n+1满足符合性。 If r<the second set threshold, it is determined that the target image P n+1 does not meet the compliance; if r ≥ the second set threshold, it is determined that the target image P n+1 meets the compliance.
  4. 根据权利要求3所述的方法,第n个目标图像P n与其下一个目标图像P n+1之间的一致性r,按照如下公式计算: According to the method of claim 3 , the consistency r between the n-th target image P n and the next target image P n+1 is calculated according to the following formula:
    r=R n+1/R nr=R n+1 /R n ;
    其中,R n+1为目标图像P n+1中的目标区域对应的矩形框数据;R n为目标图像P n中的目标区域对应的矩形框数据。 Among them, R n+1 is the rectangular frame data corresponding to the target area in the target image P n+1 ; R n is the rectangular frame data corresponding to the target area in the target image P n.
  5. 根据权利要求1所述的方法,在获取图像序列之后,以及在从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定,之前,所述方法还包括: The method according to claim 1, after acquiring the image sequence, and starting from the n-th target image P n in the image sequence, the compliance determination is performed on the next target image P n+1, before, The method also includes:
    确定所述图像序列中的第n个目标图像P n和其下一个目标图像P n+1Determine the n-th target image P n and its next target image P n+1 in the image sequence;
    其中,所述目标图像中包含的目标区域为人眼位置。Wherein, the target area included in the target image is the position of the human eye.
  6. 根据权利要求1至5中任一项所述的方法,若目标图像P n+1满足符合性,则该目标图像P n+1更新后的状态表示目标图像P n+1为连续第m次满足符合性的目标图像。 1 5 A method according to any one of the claims, if the target image P n + 1 satisfy the compliance, the state of the image P n + 1 after updating the target object image P n + represents an m-th consecutive Meet the target image for compliance.
  7. 根据权利要求6所述的方法,根据该目标图像P n+1的状态判断该目标图像P n+1是否存在运动模糊,具体包括: The method according to claim 6, according to the state of the object image P n + 1 determines the target image P n + 1 if motion blur exists, comprises:
    如果m>第三设定阈值,则判定该目标图像P n+1不存在运动模糊;否则,判定该目标图像P n+1存在运动模糊。 If m>the third set threshold, it is determined that the target image P n+1 does not have motion blur; otherwise, it is determined that the target image P n+1 has motion blur.
  8. 一种运动模糊图像的识别方法,该方法包括:A method for recognizing motion blurred images, the method includes:
    获取图像序列;Get image sequence;
    从所述图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数; Starting from the n-th target image P n in the image sequence, perform compliance judgment on the next target image P n+1 ; n is a positive integer greater than or equal to 1;
    若目标图像P n+1满足符合性,则判定所述目标图像P n+1存在运动模糊;否则判定所述目标图像P n+1不存在运动模糊; If the target image P n+1 meets the compliance, it is determined that the target image P n+1 has motion blur; otherwise, it is determined that the target image P n+1 does not have motion blur;
    其中,所述目标图像为所述图像序列中包含目标区域的图像。Wherein, the target image is an image containing a target area in the image sequence.
  9. 一种运动模糊图像的识别装置,该装置包括:A motion blur image recognition device, the device includes:
    获取模块,所述获取模块用于获取图像序列;An acquisition module, the acquisition module is used to acquire an image sequence;
    判定模块,所述判定模块用于从所述获取模块获取到的图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;以及, A determination module, the determination module is used to start from the nth target image P n in the image sequence acquired by the acquisition module, and make a compliance determination for the next target image P n+1 ; n is greater than or equal to 1 Positive integer; and,
    若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊; If the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 has motion blur;
    若目标图像P n+1满足符合性,则根据所述目标图像P n的状态更新所述目标图像P n+1的状态,并根据所述目标图像P n+1的状态判断所述目标图像P n+1是否存在运动模糊; If the target image P n + 1 satisfy the compliance, the state of the object image P n + 1 is updated according to the state of the target image P n, and determines the target image according to a state of the object image P n + 1 P n+1 whether there is motion blur;
    其中,所述目标图像为所述图像序列中包含目标区域的图像,且所述第n个目标图像P n为初始状态。 Wherein, the target image is an image that includes a target area in the image sequence, and the nth target image P n is an initial state.
  10. 根据权利要求9所述的装置,所述判定模块用于从第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定,具体包括: The device according to claim 9, wherein the determination module is configured to start from the nth target image P n and make a compliance determination for the next target image P n+1 , which specifically includes:
    比较第n个目标图像P n与其下一个目标图像P n+1之间的时间间隔t; Compare the time interval t between the nth target image P n and the next target image P n+1;
    如果t>第一设定阈值,则判定该目标图像P n+1不满足符合性。 If t>the first set threshold, it is determined that the target image P n+1 does not satisfy the compliance.
  11. 根据权利要求10所述的装置,所述判定模块用于从第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定,具体还包括: The device according to claim 10, wherein the determination module is configured to start from the nth target image P n and perform a compliance determination for the next target image P n+1 , and specifically further includes:
    如果t≤第一设定阈值,则比较第n个目标图像P n与其下一个目标图像P n+1之间的一致性r; If t ≤ the first set threshold, compare the consistency r between the nth target image P n and the next target image P n+1;
    如果r<第二设定阈值,则判定该目标图像P n+1不满足符合性;如果r≥第二设定阈值,则判定该目标图像P n+1满足符合性。 If r<the second set threshold, it is determined that the target image P n+1 does not meet the compliance; if r ≥ the second set threshold, it is determined that the target image P n+1 meets the compliance.
  12. 根据权利要求11所述的装置,所述判定模块按照如下公式计算r:The device according to claim 11, wherein the determination module calculates r according to the following formula:
    r=R n+1/R nr=R n+1 /R n ;
    其中,R n+1为目标图像P n+1中的目标区域对应的矩形框数据;R n为目标图像P n中的目标区域对应的矩形框数据。 Among them, R n+1 is the rectangular frame data corresponding to the target area in the target image P n+1 ; R n is the rectangular frame data corresponding to the target area in the target image P n.
  13. 根据权利要求9所述的装置,该装置还包括:The device according to claim 9, further comprising:
    检测模块,所述检测模块用于确定所述图像序列中的第n个目标图像P n和其下一个目标图像P n+1A detection module, which is used to determine the nth target image P n and its next target image P n+1 in the image sequence;
    其中,所述目标图像中包含的目标区域为人眼位置。Wherein, the target area included in the target image is the position of the human eye.
  14. 根据权利要求9至13中任一项所述的装置,若目标图像P n+1满足符合性,则该目标图像P n+1更新后的状态表示目标图像P n+1为连续第m次满足符合性的目标图像。 9-1 apparatus according to any of claims 13, if the target image P n + 1 satisfy the compliance, the object image P n + 1 denotes the state after updating the target image P n + m-1 consecutive times Meet the target image for compliance.
  15. 根据权利要求14所述的装置,所述判定模块根据该目标图像P n+1的状态判断该目标图像P n+1是否存在运动模糊,具体包括: The apparatus according to claim 14, the determining module determines that the object image P n + 1 according to whether there is motion blur state of the object image P n + 1, specifically comprising:
    如果m>第三设定阈值,则判定该目标图像P n+1不存在运动模糊;否则,判定该目标图像P n+1存在运动模糊。 If m>the third set threshold, it is determined that the target image P n+1 does not have motion blur; otherwise, it is determined that the target image P n+1 has motion blur.
  16. 一种运动模糊图像的识别装置,该装置包括:A motion blur image recognition device, the device includes:
    获取单元,所述获取单元用于获取图像序列;An acquiring unit, the acquiring unit is used to acquire an image sequence;
    判定单元,所述判定单元用于从所述获取单元获取到的图像序列中的第n个目标图像P n开始,对其下一个目标图像P n+1进行符合性判定;n为大于等于1的正整数;以及, A judging unit, the judging unit is configured to start from the n-th target image P n in the image sequence acquired by the acquiring unit, and make a compliance judgment for the next target image P n+1 ; n is greater than or equal to 1 Positive integer; and,
    若目标图像P n+1不满足符合性,则判定所述目标图像P n+1存在运动模糊;否则判定所述目标图像P n+1不存在运动模糊; If the target image P n+1 does not meet the compliance, it is determined that the target image P n+1 has motion blur; otherwise, it is determined that the target image P n+1 does not have motion blur;
    其中,所述目标图像为所述图像序列中包含目标区域的图像。Wherein, the target image is an image containing a target area in the image sequence.
  17. 一种电子设备,包括:至少一个处理器和存储器,所述存储器存储有程序,并且被配置成由所述至少一个处理器执行权利要求1至7中任一项所述的运动模糊图像的识别方法,或执行权利要求8所述的运动模糊图像的识别方法。An electronic device, comprising: at least one processor and a memory, the memory stores a program, and is configured to execute the motion blur image recognition according to any one of claims 1 to 7 by the at least one processor Method, or implement the motion-blurred image recognition method of claim 8.
  18. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至7中任一项所述的运动模糊图像的识别方法,或实现权利要求8所述的运动模糊图像的识别方法。A computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the motion blur image according to any one of claims 1 to 7 is realized Recognition method, or realize the recognition method of motion blur image according to claim 8.
  19. 一种支付设备,包括:A payment device including:
    采集单元,用于采集人脸视频数据;The collection unit is used to collect face video data;
    图像筛选单元,用于根据权利要求1至7中任一项所述的方法或权利要求8所示的方法筛选出不存在运动模糊的待识别图像;An image screening unit, configured to screen out images to be recognized without motion blur according to the method described in any one of claims 1 to 7 or the method shown in claim 8;
    图像识别单元,用于对筛选出的待识别图像进行识别;The image recognition unit is used to recognize the screened out 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.
PCT/CN2021/096147 2020-05-27 2021-05-26 Method and apparatus for identifying motion blur image, and electronic device and payment device WO2021239000A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010461530.1 2020-05-27
CN202010461530.1A CN111368813B (en) 2020-05-27 2020-05-27 Motion blurred image identification method and device, electronic equipment and payment equipment

Publications (1)

Publication Number Publication Date
WO2021239000A1 true WO2021239000A1 (en) 2021-12-02

Family

ID=71211041

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096147 WO2021239000A1 (en) 2020-05-27 2021-05-26 Method and apparatus for identifying motion blur image, and electronic device and payment device

Country Status (2)

Country Link
CN (2) CN113743173A (en)
WO (1) WO2021239000A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113743173A (en) * 2020-05-27 2021-12-03 支付宝(杭州)信息技术有限公司 Motion blurred image identification method and device, electronic equipment and payment equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202178A (en) * 2010-03-25 2011-09-28 株式会社东芝 Image processing method and device
US20120162448A1 (en) * 2010-04-30 2012-06-28 Honeywell International Inc. Method and system for detecting motion blur
CN105117705A (en) * 2015-08-26 2015-12-02 北京无线电计量测试研究所 Iris image quality cascade type evaluation method
CN110443620A (en) * 2019-08-06 2019-11-12 中国工商银行股份有限公司 Brush face method of payment and device
CN111368813A (en) * 2020-05-27 2020-07-03 支付宝(杭州)信息技术有限公司 Motion blurred image identification method and device, electronic equipment and payment equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729860B (en) * 2013-12-31 2016-10-05 华为软件技术有限公司 A kind of method and apparatus of tracking image target
EP3748953B1 (en) * 2014-01-07 2024-04-17 ML Netherlands C.V. Adaptive camera control for reducing motion blur during real-time image capture
WO2016145591A1 (en) * 2015-03-16 2016-09-22 Nokia Technologies Oy Moving object detection based on motion blur
CN109461131A (en) * 2018-11-20 2019-03-12 中山大学深圳研究院 A kind of real-time deblurring method of intelligent inside rear-view mirror based on neural network algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202178A (en) * 2010-03-25 2011-09-28 株式会社东芝 Image processing method and device
US20120162448A1 (en) * 2010-04-30 2012-06-28 Honeywell International Inc. Method and system for detecting motion blur
CN105117705A (en) * 2015-08-26 2015-12-02 北京无线电计量测试研究所 Iris image quality cascade type evaluation method
CN110443620A (en) * 2019-08-06 2019-11-12 中国工商银行股份有限公司 Brush face method of payment and device
CN111368813A (en) * 2020-05-27 2020-07-03 支付宝(杭州)信息技术有限公司 Motion blurred image identification method and device, electronic equipment and payment equipment

Also Published As

Publication number Publication date
CN111368813B (en) 2020-08-28
CN113743173A (en) 2021-12-03
CN111368813A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US11423695B2 (en) Face location tracking method, apparatus, and electronic device
TWI714834B (en) Human face live detection method, device and electronic equipment
US8989448B2 (en) Moving object detecting device, moving object detecting method, moving object detection program, moving object tracking device, moving object tracking method, and moving object tracking program
WO2020073860A1 (en) Video cropping method and device
JP5554984B2 (en) Pattern recognition method and pattern recognition apparatus
CN106650662B (en) Target object shielding detection method and device
US8553931B2 (en) System and method for adaptively defining a region of interest for motion analysis in digital video
US20160062456A1 (en) Method and apparatus for live user recognition
CN105894464B (en) A kind of medium filtering image processing method and device
US9846956B2 (en) Methods, systems and computer-readable mediums for efficient creation of image collages
CN109086734A (en) The method and device that pupil image is positioned in a kind of pair of eye image
US9952677B2 (en) Method and apparatus for distinguishing features in data
US20170220894A1 (en) Image processing device, image processing method, and program
CN108875519B (en) Object detection method, device and system and storage medium
US10269136B2 (en) System and method for processing depth images which capture an interaction of an object relative to an interaction plane
CN113627306B (en) Key point processing method and device, readable storage medium and terminal
CN111259757B (en) Living body identification method, device and equipment based on image
WO2021239000A1 (en) Method and apparatus for identifying motion blur image, and electronic device and payment device
CN109508575A (en) Face tracking method and device, electronic equipment and computer readable storage medium
CN114613006A (en) Remote gesture recognition method and device
CN109523573A (en) The tracking and device of target object
KR101681233B1 (en) Method and apparatus for detecting face with low energy or low resolution
KR101909326B1 (en) User interface control method and system using triangular mesh model according to the change in facial motion
JP2018005510A (en) Image processor, image processing method, and program
CN109118506A (en) The method and device of pupil image marginal point in a kind of determining eye image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21813562

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21813562

Country of ref document: EP

Kind code of ref document: A1