CN113326721A - Image blur detection method and device based on sliding window re-blur - Google Patents

Image blur detection method and device based on sliding window re-blur Download PDF

Info

Publication number
CN113326721A
CN113326721A CN202010578148.9A CN202010578148A CN113326721A CN 113326721 A CN113326721 A CN 113326721A CN 202010578148 A CN202010578148 A CN 202010578148A CN 113326721 A CN113326721 A CN 113326721A
Authority
CN
China
Prior art keywords
image
sliding window
blur
edge
detection method
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010578148.9A
Other languages
Chinese (zh)
Inventor
肖湘江
肖楠
郭刚
栾悉道
罗钟强
蒿敬波
章博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Chaonengrobot Technology Co ltd
Beijing Institute of Technology BIT
Original Assignee
Hunan Chaonengrobot Technology Co ltd
Beijing Institute of Technology BIT
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 Hunan Chaonengrobot Technology Co ltd, Beijing Institute of Technology BIT filed Critical Hunan Chaonengrobot Technology Co ltd
Publication of CN113326721A publication Critical patent/CN113326721A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components

Abstract

The invention provides an image blur detection method and device based on sliding window re-blur and a computer readable storage medium, and belongs to the technical field of image processing and analysis. Judging the palm area of the acquired image; performing re-blurring processing on the target image to obtain a re-blurred image; converting the target image and the re-blurred image into a gray-scale image; respectively carrying out edge detection on the two obtained gray level images to obtain respective edge images; respectively carrying out sliding window blocking processing on the two obtained edge images, and calculating the structural similarity of the two edge images; and comparing the structural similarity with a preset threshold, if the similarity is greater than or equal to the preset threshold, judging that the target image is clear, otherwise, judging that the target image is fuzzy. In a word, the image blur detection method based on sliding window re-blur provided by the invention can extract image edge information at one time aiming at an embedded application scene, freely set the size of the sliding window and meet the requirement of real-time property on the basis of ensuring the detection accuracy.

Description

Image blur detection method and device based on sliding window re-blur
Technical Field
The invention belongs to the field of image processing, and particularly relates to an image blur detection method and device based on sliding window re-blur.
Background
In the use process of the kindergarten morning examination robot product of the company and the use process of the kindergarten morning examination robot product, due to the field environment difference, lively and active children and the like, the condition that the palm images of the children for herpes detection are acquired by the camera often appears fuzzy distortion, and the efficiency and the accuracy of background herpes detection are seriously influenced. In order to solve the above problems, it is necessary to implement a fast and effective image blur detection method that can be executed on a front-end embedded platform and is used for real-time filtering of palm images.
In inventions 201710518661.7 and 201810137970.4, image segmentation and re-blurring techniques are used that are similar to those of the present patent. In both methods, the original image is divided into a plurality of sub-blocks after being subjected to fuzzy processing, Canny edge information of the sub-blocks is extracted for similarity comparison, and in the method, Sobel edge information is directly extracted from the whole image, and then window sliding and partitioning are performed for similarity comparison.
Disclosure of Invention
The existing fuzzy detection method is difficult to consider both real-time performance and accuracy, and particularly on embedded platforms such as robots and the like, the problem of limited computing resources is particularly prominent. The method provided by the invention can be used for extracting the image edge information at one time aiming at an embedded application scene, reasonably setting the size of the sliding window and meeting the requirement of real-time property on the basis of ensuring the detection accuracy.
The technical scheme of the image blur detection method based on sliding window re-blur provided by the invention specifically comprises the following steps:
the specific technical scheme is as follows:
step S1: judging a palm area of the acquired image, and if the image contains the palm area, extracting an image of the palm area as a target image to be investigated;
step S2: performing re-blurring processing on the target image to obtain a re-blurred image;
step S3: converting the target image and the re-blurred image into a gray-scale image;
step S4: respectively carrying out edge detection on the two obtained gray level images to obtain respective edge images;
step S5: respectively carrying out sliding window blocking processing on the two obtained edge images, and calculating the structural similarity of the two edge images;
step S6: comparing the structural similarity with a preset threshold, if the similarity is greater than or equal to the preset threshold, judging that the target image is clear, otherwise, judging that the target image is fuzzy;
looping through steps S1 to S6 completes the blur detection of the palm image.
Preferably, the extraction method of step S1 is embodied as detecting the palm through a specially trained deep YOLOV3 neural network.
Preferably, the specific method for edge detection is as follows:
adopting a Sobel operator, utilizing two groups of matrixes of 3x3 contained in the Sobel operator to respectively correspond to the transverse direction and the longitudinal direction, and performing plane convolution on the Sobel operator and the image to obtain the gray gradients of the transverse direction and the longitudinal direction of each pixel point;
taking the square sum of the horizontal and longitudinal gray gradients and then squaring to obtain a comprehensive gradient;
the edge image can be obtained after compressing the image into 8-bit gray scale values.
Preferably, when the sliding window blocking processing is performed for blocking, the size of the sliding window and the sliding step length are set to obtain a plurality of sub-blocks, and the variance of each sub-block is calculated.
Preferably, the similarity value is calculated by: and subtracting the corresponding variances of each sub-block of the edge image, then taking an absolute value, and averaging to obtain a similarity value.
The invention also provides a device of the image blur detection method based on sliding window re-blur, which is characterized by comprising the following steps:
a memory having computer program code stored thereon; and
a processor configured to execute the computer program code to perform the above-described method.
The invention also provides a computer-readable storage medium having stored thereon computer program code which, when executed, performs the above-described method.
Compared with the prior art, the image blur detection method based on sliding window re-blur provided by the invention has the key points of re-blur and edge detection of the palm image, sliding window blocking operation and similarity calculation.
By using the method in the patent, real-time detection of whether the palm image on the embedded platform is fuzzy can be realized, the clear picture can reach 97% of passing rate, and the fuzzy picture can be filtered out by 55%.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
fig. 1 is a schematic flow chart of an application example of the image blur detection method based on sliding window re-blur provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Fig. 1 is a schematic flow chart of an application example of the image blur detection method based on sliding window re-blur provided by the present invention. The specific technical scheme is as follows:
step S1-1: and extracting a palm area image. Detecting the palm through a specially trained deep neural network, extracting the palm from the image with the palm, and extracting an image H of the palm area.
Step S1-2: the extracted palm region image H is subjected to a re-blurring process. And performing re-blurring processing on the image H by adopting Gaussian smoothing filtering to obtain a re-blurred image B.
Step S1-3: the palm area image H is converted into a grayscale image X.
Step S1-4: the re-blurred image B is converted into a grayscale image Y.
Step S1-5: edge detection is performed on the grayscale image X. The Sobel operator is one of the most important operators in image edge detection, and comprises two groups of 3x3 matrixes which respectively correspond to the transverse direction and the longitudinal direction and are subjected to plane convolution with the image, so that transverse and longitudinal gray gradients can be obtained. The gradients in two directions can be obtained for each pixel point, the sum of squares of the gradients is taken and then the square is taken to obtain a comprehensive gradient, and the comprehensive gradient is compressed into 8-bit gray values to obtain an edge image P.
Step S1-6: edge detection is performed on the grayscale image Y. The same operation as S1-5 is performed to obtain an edge image Q.
Step S1-7: and performing sliding window blocking processing on the edge image P. The size of the sliding window and the sliding step length can be set according to needs during partitioning, so that a plurality of sub-blocks are obtained, and the variance of each sub-block is calculated.
Step S1-8: and performing sliding window blocking processing on the edge image Q, and calculating the variance of each sub-block.
Step S1-9: and calculating the structural similarity of the images. And subtracting the variances of all corresponding sub-blocks in the edge image P and Q, then taking an absolute value, and averaging to obtain a similarity value.
Step S1-10: and comparing the structural similarity with a preset threshold, if the similarity is greater than or equal to the preset threshold, judging that the target image is clear, otherwise, judging that the target image is fuzzy.
The invention also provides a device of the image blur detection method based on sliding window re-blur, which is characterized by comprising the following steps:
a memory having computer program code stored thereon; and
a processor configured to execute the computer program code to perform the above-described method.
The present invention may be methods, apparatus, systems and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therein for carrying out aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (7)

1. An image blur detection method based on sliding window re-blur is characterized in that: the specific technical scheme is as follows:
judging a palm area of the acquired image, and if the image contains the palm area, extracting an image of the palm area as a target image to be investigated;
performing re-blurring processing on the target image to obtain a re-blurred image;
converting the target image and the re-blurred image into a gray-scale image;
respectively carrying out edge detection on the two obtained gray level images to obtain respective edge images;
respectively carrying out sliding window blocking processing on the two obtained edge images, and calculating the structural similarity of the two edge images;
and comparing the structural similarity with a preset threshold, if the similarity is greater than or equal to the preset threshold, judging that the target image is clear, otherwise, judging that the target image is fuzzy.
2. The sliding window re-blur based image blur detection method according to claim 1, characterized by: the method for extracting the palm area image is to detect the palm through a specially trained deep YOLOV3 neural network.
3. The sliding window re-blur based image blur detection method according to claim 1, characterized by: the specific method for edge detection is as follows:
adopting a Sobel operator, utilizing two groups of matrixes of 3x3 contained in the Sobel operator to respectively correspond to the transverse direction and the longitudinal direction, and performing plane convolution on the Sobel operator and the image to obtain the gray gradients of the transverse direction and the longitudinal direction of each pixel point;
taking the square sum of the horizontal and longitudinal gray gradients and then squaring to obtain a comprehensive gradient;
and compressing the image into 8-bit gray value to obtain an edge image.
4. The sliding window re-blur based image blur detection method according to claim 1, characterized by: when the sliding window blocking processing blocking is carried out, the size of the sliding window and the sliding step length are set to obtain a plurality of sub-blocks, and the variance of each sub-block is calculated.
5. The sliding window re-blur based image blur detection method according to claim 1, characterized by: the similarity value calculation method comprises the following steps: and subtracting the corresponding variances of each sub-block of the edge image, then taking an absolute value, and averaging to obtain a similarity value.
6. An apparatus of an image blur detection method based on sliding window re-blurring, comprising:
a memory having computer program code stored thereon; and
a processor configured to execute the computer program code to perform the method of any of claims 1 to 5.
7. A computer readable storage medium having stored thereon computer program code which, when executed, performs the method of any of claims 1 to 5.
CN202010578148.9A 2020-02-29 2020-06-23 Image blur detection method and device based on sliding window re-blur Pending CN113326721A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2020101348262 2020-02-29
CN202010134826 2020-02-29

Publications (1)

Publication Number Publication Date
CN113326721A true CN113326721A (en) 2021-08-31

Family

ID=77413386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010578148.9A Pending CN113326721A (en) 2020-02-29 2020-06-23 Image blur detection method and device based on sliding window re-blur

Country Status (1)

Country Link
CN (1) CN113326721A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114049540A (en) * 2021-11-29 2022-02-15 平安银行股份有限公司 Method, device, equipment and medium for detecting marked image based on artificial intelligence

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103413311A (en) * 2013-08-19 2013-11-27 厦门美图网科技有限公司 Edge-based fuzzy detection method
CN103544495A (en) * 2012-07-12 2014-01-29 浙江大华技术股份有限公司 Method and system for recognizing of image categories
CN103678984A (en) * 2013-12-20 2014-03-26 湖北微模式科技发展有限公司 Method for achieving user authentication by utilizing camera
CN104394377A (en) * 2014-12-08 2015-03-04 浙江省公众信息产业有限公司 Monitoring image blurring abnormity identification method and device
CN106530281A (en) * 2016-10-18 2017-03-22 国网山东省电力公司电力科学研究院 Edge feature-based unmanned aerial vehicle image blur judgment method and system
CN108109147A (en) * 2018-02-10 2018-06-01 北京航空航天大学 A kind of reference-free quality evaluation method of blurred picture
CN108830279A (en) * 2018-04-03 2018-11-16 南昌奇眸科技有限公司 A kind of image characteristics extraction and matching process
CN109215010A (en) * 2017-06-29 2019-01-15 沈阳新松机器人自动化股份有限公司 A kind of method and robot face identification system of picture quality judgement
CN109785312A (en) * 2019-01-16 2019-05-21 创新奇智(广州)科技有限公司 A kind of image fuzzy detection method, system and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544495A (en) * 2012-07-12 2014-01-29 浙江大华技术股份有限公司 Method and system for recognizing of image categories
CN103413311A (en) * 2013-08-19 2013-11-27 厦门美图网科技有限公司 Edge-based fuzzy detection method
CN103678984A (en) * 2013-12-20 2014-03-26 湖北微模式科技发展有限公司 Method for achieving user authentication by utilizing camera
CN104394377A (en) * 2014-12-08 2015-03-04 浙江省公众信息产业有限公司 Monitoring image blurring abnormity identification method and device
CN106530281A (en) * 2016-10-18 2017-03-22 国网山东省电力公司电力科学研究院 Edge feature-based unmanned aerial vehicle image blur judgment method and system
CN109215010A (en) * 2017-06-29 2019-01-15 沈阳新松机器人自动化股份有限公司 A kind of method and robot face identification system of picture quality judgement
CN108109147A (en) * 2018-02-10 2018-06-01 北京航空航天大学 A kind of reference-free quality evaluation method of blurred picture
CN108830279A (en) * 2018-04-03 2018-11-16 南昌奇眸科技有限公司 A kind of image characteristics extraction and matching process
CN109785312A (en) * 2019-01-16 2019-05-21 创新奇智(广州)科技有限公司 A kind of image fuzzy detection method, system and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114049540A (en) * 2021-11-29 2022-02-15 平安银行股份有限公司 Method, device, equipment and medium for detecting marked image based on artificial intelligence

Similar Documents

Publication Publication Date Title
US10740912B2 (en) Detection of humans in images using depth information
CN109727275B (en) Object detection method, device, system and computer readable storage medium
CN112287875B (en) Abnormal license plate recognition method, device, equipment and readable storage medium
CN113436100B (en) Method, apparatus, device, medium, and article for repairing video
CN110796649A (en) Target detection method and device, electronic equipment and storage medium
CN113286086B (en) Camera use control method and device, electronic equipment and storage medium
CN113326721A (en) Image blur detection method and device based on sliding window re-blur
CN112581374A (en) Speckle sub-pixel center extraction method, system, device and medium
CN112435278B (en) Visual SLAM method and device based on dynamic target detection
CN111325078A (en) Face recognition method, face recognition device and storage medium
US8532393B2 (en) Method and system for line segment extraction
CN114187245A (en) Video contamination detection method and device, electronic equipment and storage medium
CN116631003A (en) Equipment identification method and device based on P & ID drawing, storage medium and electronic equipment
CN114724144B (en) Text recognition method, training device, training equipment and training medium for model
CA2939340A1 (en) Methods for automated chart analysis
CN113628192B (en) Image blur detection method, apparatus, device, storage medium, and program product
CN114596210A (en) Noise estimation method, device, terminal equipment and computer readable storage medium
CN113326722B (en) Image blurring detection method and device based on sequence mode
US10713808B2 (en) Stereo matching method and system using rectangular window
CN115861321B (en) Production environment detection method and system applied to industrial Internet
CN113869163B (en) Target tracking method and device, electronic equipment and storage medium
CN115546747B (en) Road edge detection method and device, image pickup equipment and storage medium
US20170147895A1 (en) Method and device for digit separation
CN113838110B (en) Verification method and device for target detection result, storage medium and electronic equipment
Jiwane et al. Real-Time Object Measurement Using Image Processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210831