[go: up one dir, main page]

WO2020094088A1 - Image capturing method, monitoring camera, and monitoring system - Google Patents

Image capturing method, monitoring camera, and monitoring system Download PDF

Info

Publication number
WO2020094088A1
WO2020094088A1 PCT/CN2019/116202 CN2019116202W WO2020094088A1 WO 2020094088 A1 WO2020094088 A1 WO 2020094088A1 CN 2019116202 W CN2019116202 W CN 2019116202W WO 2020094088 A1 WO2020094088 A1 WO 2020094088A1
Authority
WO
WIPO (PCT)
Prior art keywords
face target
image
quality
video frame
face
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.)
Ceased
Application number
PCT/CN2019/116202
Other languages
French (fr)
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Publication of WO2020094088A1 publication Critical patent/WO2020094088A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • the present application relates to the technical field of video surveillance, in particular to an image capture method, surveillance camera and surveillance system.
  • the surveillance camera captures the face object appearing in the scene, and uploads the captured image to the comparison system.
  • the comparison system extracts the face features from the captured image, and extracts the extracted face features and the black list face features Perform a comparison, and if the similarity of the comparison is greater than a certain threshold, an alarm is generated.
  • the surveillance camera detects the face target, it will capture the face target and upload the captured image to the comparison system.
  • the captured image is likely to appear
  • the face target in occlusion, blur, etc. affects the similarity of the comparison, causing false alarms or false negatives, and the accuracy of the comparison results is low.
  • the purpose of the embodiments of the present application is to provide an image capture method, a monitoring camera, and a monitoring system, so as to ensure that the comparison result of the comparison system has high accuracy.
  • the specific technical solutions are as follows:
  • an image capture method which includes:
  • the face target image is uploaded to the comparison system as a captured image.
  • the method further includes:
  • the next video frame is obtained as the current video frame in the order of first to last video frames
  • the step of determining the face target image of the same face target in the current video frame and the previous video frame includes:
  • the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;
  • the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.
  • the method further includes:
  • For the same face target determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;
  • the face target image and image quality of the face target in the current video frame are cached
  • the cached face target image of the face target is uploaded to the comparison system as a captured image.
  • the steps of performing quality analysis on the face target image to obtain the image quality of the face target image include:
  • the face target quality parameters of the face target image include at least one or more of the degree of face occlusion, face clarity, and posture;
  • the image quality of the face target image is determined.
  • the image quality includes an image quality score value
  • the steps of performing quality analysis on the face target image to obtain the image quality of the face target image include:
  • the steps to determine whether the image quality meets the preset quality conditions include:
  • an embodiment of the present application provides a surveillance camera, including a surveillance camera, a processor, and a memory, where,
  • Surveillance camera used to collect the current video frame
  • Memory used to store computer programs
  • the processor when used to execute the computer program stored on the memory, implements the following steps:
  • the face target image is uploaded to the comparison system as a captured image.
  • the next video frame is obtained as the current video frame in the order of first to last video frames
  • the processor implements the step of determining the face target image of the same face target in the current video frame and the previous video frame, the specific steps are as follows:
  • the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;
  • the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.
  • For the same face target determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;
  • the face target image and image quality of the face target in the current video frame are cached
  • the cached face target image of the face target is uploaded to the comparison system as a captured image.
  • the processor when the processor implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it specifically implements the following steps:
  • the face target quality parameters of the face target image include at least one or more of the degree of face occlusion, face clarity, and posture;
  • the image quality of the face target image is determined.
  • the image quality includes an image quality score value
  • the processor implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it specifically implements the following steps:
  • the processor When the processor implements the step of judging whether the image quality meets the preset quality condition, it specifically implements the following steps:
  • an embodiment of the present application provides a machine-readable storage medium in which a computer program is stored.
  • the computer program is executed by a processor, the image capture method provided in the first aspect of the embodiment of the present application is implemented .
  • an embodiment of the present application provides an application program for execution at runtime: the image capturing method provided in the first aspect of the embodiment of the present application.
  • an embodiment of the present application provides a monitoring system, including a monitoring camera and a comparison system;
  • Surveillance camera used to collect the current video frame; perform face target detection on the current video frame to determine the face target image in the current video frame; perform quality analysis on the face target image to obtain the image quality of the face target image; Whether the image quality meets the preset quality conditions; if it meets, upload the face target image as a captured image to the comparison system;
  • the comparison system is used to compare and alarm the captured images.
  • the monitoring camera collects the current video frame, performs face target detection on the current video frame, and determines the face target image in the current video frame.
  • the target image is subjected to quality analysis to obtain the image quality of the face target image. If the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image.
  • the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm.
  • the image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system
  • the results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.
  • FIG. 1 is a schematic diagram of an operation process of a monitoring system according to an embodiment of this application;
  • FIG. 2 is a schematic flowchart of an image capture method according to an embodiment of the present application.
  • FIG. 3 is an example diagram of capturing a face target image according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a surveillance camera according to an embodiment of this application.
  • FIG. 5 is a schematic structural diagram of a monitoring system according to an embodiment of this application.
  • the monitoring system mainly captures, compares and alarms face targets.
  • the monitoring system includes a surveillance camera and a comparison system.
  • the comparison system can be a background server, which is mainly used to realize feature extraction, face comparison and alarm.
  • the operation process of the monitoring system is shown in Figure 1.
  • the monitoring camera collects video data, captures the face target image from the video data through the face capture algorithm, and the monitoring camera transmits the captured face target image to the comparison system.
  • the system extracts the face features of the face target image, compares the extracted face features with the face features of all the people in the database, and if the similarity is higher than the preset threshold, an alarm is generated.
  • the captured face target image is mainly transmitted. Therefore, the quality and real-time performance of the face target image seriously affect the performance and real-time performance of the comparison system, that is, monitoring
  • the image capture method performed by the camera is the key to ensuring the performance and real-time performance of the comparison system.
  • the embodiments of the present application provide an image capture method, a monitoring camera, a machine-readable storage medium, and a monitoring system.
  • the execution subject of the image capture method provided in the embodiments of the present application may be a surveillance camera (for example, a smart camera, a network camera, etc.) in the surveillance system, and the surveillance camera may include at least a surveillance camera and a processor equipped with a core processing chip .
  • the method for implementing the image capturing method provided by the embodiments of the present application may be at least one method of software, hardware circuits, and logic circuits provided in the monitoring camera.
  • an image capture method provided by an embodiment of the present application may include the following steps:
  • Surveillance cameras can be installed in all corners of the city, for example, community entrances, intersections, parks, stadiums, etc.
  • the requirements for capturing the face target clearly.
  • the surveillance camera can shoot the surveillance scene in real time to obtain the video data of the surveillance scene, and the video data includes the video frames of each frame and the time stamp of each video frame collected.
  • the current video frame collected needs to be processed.
  • S202 Perform face target detection on the current video frame to determine the face target image in the current video frame.
  • the preset target detection algorithm can be a traditional feature matching algorithm, which can determine the current video frame by face features such as eyes, nose, mouth, ears, etc. Whether the target in is a face target, if it is a face target, a certain area around the face target is divided into a face target frame, and the image in the face target frame or the image within a certain range of the face target frame is a person Face target image; the preset target detection algorithm can also be a more popular intelligent detection algorithm, such as deep neural network.
  • the network model of deep neural network can be obtained by training a large number of face images, by inputting the current video frame into the depth
  • the neural network can obtain the interest area of the face target in the current video frame, and the image in the interest area of the face target or the image within a certain range of the interest area of the face target is the face target image.
  • other methods that can detect the face target in the video frame also belong to the protection scope of the embodiments of the present application, and details are not repeated here.
  • S203 Perform quality analysis on the face target image to obtain the image quality of the face target image.
  • the image quality of the face target image there are many factors that affect the image quality of the face target image, such as the degree to which the face target is blocked in the face target image, the imaging clarity of the face target in the face target image, and the pose of the face target in the face target image and many more.
  • the image quality of the face target image such as contrast, brightness, and so on, which are not listed here.
  • the preset quality analysis algorithm can also assign, for example, good, good, medium, and poor evaluation results to the face target image.
  • S203 may specifically be:
  • the face target quality parameters of the face target image where the face target quality parameters include at least one or more of the degree of face occlusion, face clarity, and posture; according to the face target quality parameters, determine the person The image quality of the face target image.
  • the face target quality parameter refers to the parameter that affects the image quality of the face target image, mainly including the face target's posture, degree of occlusion, and imaging clarity.
  • the facial target quality parameters such as the posture information, degree of occlusion and sharpness of the facial target are based on the comprehensive consideration of the effects of different facial target quality parameters on the image quality to obtain the image quality of the facial target image. For example, in the face target image in the face target frame in the current video frame, the face target A is completely frontal, the face is occluded by 1/10, and the sharpness is very high, it can be determined that the image quality of the face target image is excellent Or, quantify the image quality and assign an image quality score of 9.
  • the image quality may include an image quality score value.
  • S203 can specifically be:
  • the quality score of the face target image is obtained to obtain the image quality score value of the face target image.
  • the image quality can be expressed by a quantized image quality score value.
  • the quality score algorithm is used to score the face target image to obtain a quantized image quality score value.
  • the image quality can also be expressed as the evaluation results of excellent, good, medium, and poor.
  • the preset quality condition is a condition set to determine whether the image quality of the face target image can meet the requirement of higher image quality. If the image quality can meet the preset quality condition, it means that the image quality of the face target image is higher. If it cannot be satisfied, it means that the image quality of the face target image in the current video frame cannot meet the requirements.
  • S204 may specifically be:
  • the preset quality condition may be greater than the preset quality threshold, for example, the preset quality threshold is 8 points, if the quantized image quality score value is greater than 8 points, it means that the face target image can achieve a better image quality High requirements, if the image quality score value is not greater than 8, it means that the face target image can not meet the requirements.
  • the preset quality condition may also be a preset degree of image quality evaluation.
  • the preset quality condition may be that the image quality is good. If the image quality of the face target image reaches good and above, it means that the face target image It can meet the requirement of high image quality. If the image quality of the face target image is not good, it means that the face target image cannot meet the requirements.
  • the image capture method provided by the embodiment of the present application may further perform the following steps:
  • the next video frame is obtained as the current video frame in the order of the video frames from first to last.
  • the current video frame may include multiple face targets.
  • a face target image of any face target if the image quality does not meet the preset quality conditions, it means that the image quality of the face target image of the face target cannot meet the requirements
  • the next video frame can be obtained in sequence, and the next video frame is used as the current video frame to determine the face target image of the same face target in the video frame Whether the quality of the image can meet the requirements.
  • the second step is to determine the face target image of the same face target in the current video frame and the previous video frame.
  • the way to determine the face target image of the same face target in the current video frame and the previous video frame can be using an intelligent target tracking algorithm to track the same face target, or it can be used in the current video frame as in S202
  • the target detection algorithm performs face target detection, and then determines the target frame matching method.
  • the third step is to analyze the quality of the face target image in the current video frame to obtain the image quality of the face target image.
  • the fourth step is to return to S204 until the image quality of the face target image in the current video frame meets the preset quality condition, and upload the face target image as a captured image to the comparison system.
  • the step of determining the face target image of the same face target in the current video frame and the previous video frame may specifically be:
  • the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;
  • the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.
  • the method of determining the face target image of the same face target in the current video frame and the previous video frame may be to use the target detection algorithm as in S202 for the current video frame to detect the face target, and then match through the face target frame The way is determined.
  • the matching conditions such as whether the size of the face target frame is the same, whether the position offset is less than a certain threshold, whether the motion trajectory meets a certain smoothness, etc. Based on these matching conditions, a certain amount can be allocated between the two face target frames Matching degree, when the matching degree reaches the preset matching degree threshold, it means that the two face target frames are the same as the face target frame of the same face target. The greater the matching degree, the two face target frames are the same The possibility of the face target frame of the face target is greater. Therefore, the face target frame in the current video frame can be assigned the same target frame identifier as the face target frame with the highest matching degree in the previous video. If the target frame identification is the same, it means that the face targets in the face target image are the same target, and different face target frames have different target frame identifications, which are used to distinguish different face targets.
  • the face target can be captured immediately, and the face target image can be uploaded to the comparison system as a captured image ,
  • the captured image compared by the comparison system has a higher image quality, and the captured image received by the comparison system with the higher image quality is uploaded immediately after being captured by the surveillance camera, and has a better quality real-time.
  • the image capturing method provided by the embodiment of the present application may further perform the following steps:
  • For the same face target determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;
  • the face target image and image quality of the face target in the current video frame are cached
  • the cached face target image of the face target is uploaded to the comparison system as a captured image.
  • the surveillance camera sequentially analyzes the quality of the face target image of the face target in each video frame.
  • the first video frame and The image quality of the face target image of the face target in the first video frame is cached. If the image quality of the face target image of the face target in the subsequent video frame is better than the cached image quality, the better Image quality and face target image buffering, overwriting the face target image and image quality of the face target that have been cached. After the face target disappears, the face target image with the best image quality of the face target is cached, and the face target image can be uploaded as a captured image.
  • the way to determine the end of the tracking of the face target may be that the matching degree of the continuous multiple frames to the face target is very low, then the tracking of the face target may be determined to end, or, through the target tracking algorithm, the tracking of the face target may be determined If it is lost, that is, a certain face target cannot be tracked in multiple consecutive frames, then it can be determined that the tracking of the face target ends.
  • the comparison system can finally calibrate the alarm with the comparison result of the captured image with the best image quality, so as to ensure that the final alarm has high accuracy.
  • the surveillance camera only needs to transmit a small number of captured images (up to two), which can not only ensure high real-time performance, but also ensure the accuracy of the comparison results, and save bandwidth resources.
  • the surveillance camera first collects the first frame, detects the face target image of the face target in the first frame, and performs quality analysis on the face target image. If the quality score value is less than the preset quality threshold, the surveillance camera next collects the second frame, detects the face target image of the face target in the second frame again, and performs image quality analysis on the face target image to obtain the image quality The score value is still less than the preset quality threshold. Continue to collect frames 3, 4, and 5 in sequence. The image quality of the obtained face target image is less than the preset quality threshold.
  • the obtained person If the image quality of the face target image is greater than the preset quality threshold, the face target image as a captured image will be uploaded to the comparison system for processing.
  • the target tracking ends for example, at the 50th frame, it is determined that the target tracking ends.
  • the frame with the best cached image quality is not the 6th frame, but the 30th frame, then the face target in the 30th frame is determined.
  • the face target image is uploaded to the comparison system as a captured image.
  • the surveillance camera collects the current video frame, performs face target detection on the current video frame, determines the face target image in the current video frame, and performs quality analysis on the face target image to obtain the image of the face target image Quality, if the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image.
  • the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm.
  • the image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system
  • the results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.
  • an embodiment of the present application provides a surveillance camera. As shown in FIG. 4, it includes a surveillance camera 401, a processor 402, and a memory 403, where,
  • Surveillance camera 401 used to collect the current video frame
  • Memory 403 used to store computer programs
  • the processor 402 is configured to execute the following steps when executing the computer program stored on the memory 403:
  • the face target image is uploaded to the comparison system as a captured image.
  • processor 402 executes the computer program stored in the memory 403, the following steps may also be implemented:
  • the next video frame is obtained as the current video frame in the order of first to last video frames
  • the processor 402 when the processor 402 implements the step of determining the face target image of the same face target in the current video frame and the previous video frame, it may specifically implement the following steps:
  • the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;
  • the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.
  • processor 402 executes the computer program stored on the memory 403, the following steps may also be implemented:
  • For the same face target determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;
  • the face target image and image quality of the face target in the current video frame are cached
  • the cached face target image of the face target is uploaded to the comparison system as a captured image.
  • processor 402 when the processor 402 implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it may specifically implement the following steps:
  • the face target quality parameters of the face target image include at least one or more of the degree of face occlusion, face clarity, and posture;
  • the image quality of the face target image is determined.
  • the image quality includes an image quality score value
  • processor 402 implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it may specifically implement the following steps:
  • the processor 402 When the processor 402 implements the step of judging whether the image quality meets the preset quality condition, it specifically implements the following steps:
  • the above memory may include RAM (Random Access Memory, random access memory), or may include NVM (Non-Volatile Memory, non-volatile memory), for example, at least one disk memory.
  • the memory may also be at least one storage device located away from the processor.
  • the above processor may be a general-purpose processor, including CPU (Central Processing Unit), NP (Network Processor), etc .; it may also be DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing, digital signal processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Other programmable logic devices discrete gates or transistor logic devices, discrete hardware components.
  • Data can be transmitted between the surveillance camera 401, the processor 402, and the memory 403 through a wired connection or a wireless connection, and the surveillance camera can communicate with the comparison system through a wired communication interface or a wireless communication interface.
  • 4 is only an example of data transmission between the surveillance camera 401, the processor 402, and the memory 403 through the bus, and is not intended as a limitation of a specific connection method.
  • the processor of the surveillance camera can read the computer program stored in the memory and run the computer program to realize that the surveillance camera collects the current video frame and performs face target detection on the current video frame to determine Face target image in the current video frame, perform quality analysis on the face target image to obtain the image quality of the face target image, if the image quality meets the preset quality conditions, the face target image is uploaded as a captured image to the comparison To the system.
  • the face target image can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm.
  • the image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system
  • the results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.
  • embodiments of the present application also provide a machine-readable storage medium, and the machine-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the image capturing method provided by the embodiment of the present application All steps.
  • the machine-readable storage medium stores a computer program that executes the image capture method provided by the embodiments of the present application at runtime, so it can be achieved that the surveillance camera collects the current video frame and performs face target detection on the current video frame , Determine the face target image in the current video frame, and perform quality analysis on the face target image to obtain the image quality of the face target image. If the image quality meets the preset quality conditions, use the face target image as the captured image Upload to the comparison system. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm.
  • the image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system
  • the results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.
  • An embodiment of the present application also provides an application program for executing at run time: all steps of the image capturing method provided by the embodiment of the present application.
  • the application program executes the image capturing method provided in the embodiment of the present application when it is running, so that it can realize that: the monitoring camera collects the current video frame, performs face target detection on the current video frame, and determines The face target image is subjected to quality analysis to obtain the image quality of the face target image. If the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm.
  • the image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system
  • the results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.
  • the monitoring system may include a monitoring camera 510 and a comparison system 520;
  • the surveillance camera 510 is used to collect the current video frame; perform face target detection on the current video frame to determine the face target image in the current video frame; perform quality analysis on the face target image to obtain the image quality of the face target image; Determine whether the image quality meets the preset quality conditions; if it meets, upload the face target image as a captured image to the comparison system 520;
  • the comparison system 520 is used for comparing and alarming the captured images.
  • the monitoring camera 510 can also be used to implement all the steps provided in the above method embodiments, and no more details are provided here.
  • the comparison system 520 compares and alarms the captured images, which may specifically include: extracting the captured images, and comparing the extracted facial features with the facial features in the blacklist, if the similarity of the comparison is greater than a certain Threshold, then alarm.
  • the monitoring camera collects the current video frame, performs face target detection on the current video frame, determines the face target image in the current video frame, and performs quality analysis on the face target image to obtain the image of the face target image Quality, if the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image.
  • the quality analysis of the face target image in the current video frame when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison alarm.
  • the image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system
  • the results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)

Abstract

An image capturing method, a monitoring camera, and a monitoring system. The image capturing method comprises: acquiring a current video frame (S201); determining a face target image in a current video frame during face target detection on the current video frame (S202); analyzing the quality of the face target image to obtain the image quality of the face target image (S203); determining whether the image quality satisfies a preset quality condition (S204); and if yes, uploading the face target image as a captured image to a comparison system (S205). The method can ensure that a comparison result of the comparison system has high accuracy.

Description

一种图像抓拍方法、监控相机及监控系统Image capturing method, monitoring camera and monitoring system

本申请要求于2018年11月7日提交中国专利局、申请号为201811321514.1发明名称为“一种图像抓拍方法、监控相机及监控系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the Chinese Patent Office on November 7, 2018, with the application number 201811321514.1 and the invention titled "An Image Capture Method, Surveillance Camera, and Surveillance System", the entire contents of which are incorporated by reference in In this application.

技术领域Technical field

本申请涉及视频监控技术领域,特别是涉及一种图像抓拍方法、监控相机及监控系统。The present application relates to the technical field of video surveillance, in particular to an image capture method, surveillance camera and surveillance system.

背景技术Background technique

为了减少社会犯罪率,城市各个角落安装了大量的监控相机。监控相机对场景中出现的人脸目标进行抓拍,并将抓拍图像上传给比对系统,由比对系统对抓拍图像进行人脸特征提取,并将提取的人脸特征和黑名单中的人脸特征进行比对,若比对的相似度大于一定阈值,则进行报警。In order to reduce the social crime rate, a large number of surveillance cameras are installed in all corners of the city. The surveillance camera captures the face object appearing in the scene, and uploads the captured image to the comparison system. The comparison system extracts the face features from the captured image, and extracts the extracted face features and the black list face features Perform a comparison, and if the similarity of the comparison is greater than a certain threshold, an alarm is generated.

在相应的视频监控系统中,监控相机一旦检测到人脸目标,就会对人脸目标进行抓拍,将抓拍图像上传给比对系统,然而,由于人脸目标处于移动中,很可能出现抓拍图像中的人脸目标被遮挡、模糊等情况,影响比对的相似度,造成虚警或漏报,比对结果的准确性较低。In the corresponding video surveillance system, once the surveillance camera detects the face target, it will capture the face target and upload the captured image to the comparison system. However, since the face target is moving, the captured image is likely to appear The face target in occlusion, blur, etc. affects the similarity of the comparison, causing false alarms or false negatives, and the accuracy of the comparison results is low.

发明内容Summary of the invention

本申请实施例的目的在于提供一种图像抓拍方法、监控相机及监控系统,以保证比对系统的比对结果具有较高的准确性。具体技术方案如下:The purpose of the embodiments of the present application is to provide an image capture method, a monitoring camera, and a monitoring system, so as to ensure that the comparison result of the comparison system has high accuracy. The specific technical solutions are as follows:

第一方面,本申请实施例提供了一种图像抓拍方法,该方法包括:In a first aspect, an embodiment of the present application provides an image capture method, which includes:

采集当前视频帧;Collect the current video frame;

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标图像;Perform face target detection on the current video frame to determine the face target image in the current video frame;

对人脸目标图像进行质量分析,得到人脸目标图像的图像质量;Perform quality analysis on the face target image to obtain the image quality of the face target image;

判断图像质量是否满足预设质量条件;Determine whether the image quality meets the preset quality conditions;

若满足,则将该人脸目标图像作为抓拍图像上传至比对系统。If satisfied, the face target image is uploaded to the comparison system as a captured image.

可选的,在判断图像质量是否满足预设质量条件的步骤之后,该方法还 包括:Optionally, after the step of determining whether the image quality meets the preset quality condition, the method further includes:

针对任一人脸目标图像,若该人脸目标图像的图像质量不满足预设质量条件,则按照视频帧从先到后的顺序,获取下一视频帧作为当前视频帧;For any face target image, if the image quality of the face target image does not meet the preset quality conditions, the next video frame is obtained as the current video frame in the order of first to last video frames;

确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像;Determine the face target image of the same face target in the current video frame and the previous video frame;

对当前视频帧中的人脸目标图像进行质量分析,得到该人脸目标图像的图像质量;Perform a quality analysis on the face target image in the current video frame to obtain the image quality of the face target image;

返回执行判断图像质量是否满足预设质量条件的步骤,直至当前视频帧中人脸目标图像的图像质量满足预设质量条件时,将该人脸目标图像作为抓拍图像上传至比对系统。Return to the step of judging whether the image quality meets the preset quality condition, until the image quality of the face target image in the current video frame meets the preset quality condition, upload the face target image as a captured image to the comparison system.

可选的,确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的步骤,包括:Optionally, the step of determining the face target image of the same face target in the current video frame and the previous video frame includes:

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标框;Perform face target detection on the current video frame to determine the face target frame in the current video frame;

将当前视频帧中的人脸目标框分别与上一视频帧中的各人脸目标框进行匹配;Match the face target frame in the current video frame with each face target frame in the previous video frame;

若匹配度达到预设匹配度阈值,则给当前视频帧中的人脸目标框分配与上一视频帧中匹配度最大的人脸目标框相同的目标框标识;If the matching degree reaches the preset matching degree threshold, the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;

确定当前视频帧中与上一视频帧具有相同目标框标识的人脸目标框中的人脸目标图像为同一人脸目标的人脸目标图像。It is determined that the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.

可选的,在将该人脸目标图像作为抓拍图像上传至比对系统的步骤之后,该方法还包括:Optionally, after the step of uploading the face target image as a captured image to the comparison system, the method further includes:

针对同一人脸目标,判断当前视频帧中该人脸目标的人脸目标图像的图像质量是否优于已缓存的该人脸目标的人脸目标图像的图像质量;For the same face target, determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;

若优于,则缓存当前视频帧中该人脸目标的人脸目标图像及图像质量;If it is better, the face target image and image quality of the face target in the current video frame are cached;

在确定该人脸目标的跟踪结束后,将缓存的该人脸目标的人脸目标图像作为抓拍图像上传至比对系统。After determining that the tracking of the face target ends, the cached face target image of the face target is uploaded to the comparison system as a captured image.

可选的,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量 的步骤,包括:Optionally, the steps of performing quality analysis on the face target image to obtain the image quality of the face target image include:

获取人脸目标图像的人脸目标质量参数,其中,人脸目标质量参数至少包括:人脸遮挡程度、人脸清晰度和姿态中的一种或多种;Obtain the face target quality parameters of the face target image, where the face target quality parameters include at least one or more of the degree of face occlusion, face clarity, and posture;

根据人脸目标质量参数,确定人脸目标图像的图像质量。According to the face target quality parameter, the image quality of the face target image is determined.

可选的,图像质量包括图像质量评分值;Optionally, the image quality includes an image quality score value;

对人脸目标图像进行质量分析,得到人脸目标图像的图像质量的步骤,包括:The steps of performing quality analysis on the face target image to obtain the image quality of the face target image include:

对人脸目标图像进行质量评分,得到人脸目标图像的图像质量评分值;Perform a quality score on the face target image to obtain the image quality score value of the face target image;

判断图像质量是否满足预设质量条件的步骤,包括:The steps to determine whether the image quality meets the preset quality conditions include:

判断图像质量评分值是否大于预设质量阈值;Determine whether the image quality score is greater than the preset quality threshold;

若大于,则确定图像质量满足预设质量条件;If it is greater, it is determined that the image quality meets the preset quality conditions;

若不大于,则确定图像质量不满足预设质量条件。If it is not greater, it is determined that the image quality does not satisfy the preset quality condition.

第二方面,本申请实施例提供了一种监控相机,包括监控摄像头、处理器和存储器,其中,In a second aspect, an embodiment of the present application provides a surveillance camera, including a surveillance camera, a processor, and a memory, where,

监控摄像头,用于采集当前视频帧;Surveillance camera, used to collect the current video frame;

存储器,用于存放计算机程序;Memory, used to store computer programs;

处理器,用于执行存储器上所存放的计算机程序时,实现如下步骤:The processor, when used to execute the computer program stored on the memory, implements the following steps:

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标图像;Perform face target detection on the current video frame to determine the face target image in the current video frame;

对人脸目标图像进行质量分析,得到人脸目标图像的图像质量;Perform quality analysis on the face target image to obtain the image quality of the face target image;

判断图像质量是否满足预设质量条件;Determine whether the image quality meets the preset quality conditions;

若满足,则将该人脸目标图像作为抓拍图像上传至比对系统。If satisfied, the face target image is uploaded to the comparison system as a captured image.

可选的,处理器执行存储器上所存放的计算机程序时,还实现如下步骤:Optionally, when the processor executes the computer program stored on the memory, the following steps are also implemented:

针对任一人脸目标图像,若该人脸目标图像的图像质量不满足预设质量条件,则按照视频帧从先到后的顺序,获取下一视频帧作为当前视频帧;For any face target image, if the image quality of the face target image does not meet the preset quality conditions, the next video frame is obtained as the current video frame in the order of first to last video frames;

确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像;Determine the face target image of the same face target in the current video frame and the previous video frame;

对当前视频帧中的人脸目标图像进行质量分析,得到该人脸目标图像的图像质量;Perform a quality analysis on the face target image in the current video frame to obtain the image quality of the face target image;

返回执行判断图像质量是否满足预设质量条件的步骤,直至当前视频帧中人脸目标图像的图像质量满足预设质量条件时,将该人脸目标图像作为抓拍图像上传至比对系统。Return to the step of judging whether the image quality meets the preset quality condition, until the image quality of the face target image in the current video frame meets the preset quality condition, upload the face target image as a captured image to the comparison system.

可选的,处理器在实现确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的步骤时,具体实现如下步骤:Optionally, when the processor implements the step of determining the face target image of the same face target in the current video frame and the previous video frame, the specific steps are as follows:

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标框;Perform face target detection on the current video frame to determine the face target frame in the current video frame;

将当前视频帧中的人脸目标框分别与上一视频帧中的各人脸目标框进行匹配;Match the face target frame in the current video frame with each face target frame in the previous video frame;

若匹配度达到预设匹配度阈值,则给当前视频帧中的人脸目标框分配与上一视频帧中匹配度最大的人脸目标框相同的目标框标识;If the matching degree reaches the preset matching degree threshold, the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;

确定当前视频帧中与上一视频帧具有相同目标框标识的人脸目标框中的人脸目标图像为同一人脸目标的人脸目标图像。It is determined that the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.

可选的,处理器执行存储器上所存放的计算机程序时,还实现如下步骤:Optionally, when the processor executes the computer program stored on the memory, the following steps are also implemented:

针对同一人脸目标,判断当前视频帧中该人脸目标的人脸目标图像的图像质量是否优于已缓存的该人脸目标的人脸目标图像的图像质量;For the same face target, determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;

若优于,则缓存当前视频帧中该人脸目标的人脸目标图像及图像质量;If it is better, the face target image and image quality of the face target in the current video frame are cached;

在确定该人脸目标的跟踪结束后,将缓存的该人脸目标的人脸目标图像作为抓拍图像上传至比对系统。After determining that the tracking of the face target ends, the cached face target image of the face target is uploaded to the comparison system as a captured image.

可选的,处理器在实现对人脸目标图像进行质量分析,得到人脸目标图像的图像质量的步骤时,具体实现如下步骤:Optionally, when the processor implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it specifically implements the following steps:

获取人脸目标图像的人脸目标质量参数,其中,人脸目标质量参数至少包括:人脸遮挡程度、人脸清晰度和姿态中的一种或多种;Obtain the face target quality parameters of the face target image, where the face target quality parameters include at least one or more of the degree of face occlusion, face clarity, and posture;

根据人脸目标质量参数,确定人脸目标图像的图像质量。According to the face target quality parameter, the image quality of the face target image is determined.

可选的,图像质量包括图像质量评分值;Optionally, the image quality includes an image quality score value;

处理器在实现对人脸目标图像进行质量分析,得到人脸目标图像的图像质量的步骤时,具体实现如下步骤:When the processor implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it specifically implements the following steps:

对人脸目标图像进行质量评分,得到人脸目标图像的图像质量评分值;Perform a quality score on the face target image to obtain the image quality score value of the face target image;

处理器在实现判断图像质量是否满足预设质量条件的步骤时,具体实现如下步骤:When the processor implements the step of judging whether the image quality meets the preset quality condition, it specifically implements the following steps:

判断图像质量评分值是否大于预设质量阈值;Determine whether the image quality score is greater than the preset quality threshold;

若大于,则确定图像质量满足预设质量条件;If it is greater, it is determined that the image quality meets the preset quality conditions;

若不大于,则确定图像质量不满足预设质量条件。If it is not greater, it is determined that the image quality does not satisfy the preset quality condition.

第三方面,本申请实施例提供了一种机器可读存储介质,机器可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现本申请实施例第一方面所提供的图像抓拍方法。In a third aspect, an embodiment of the present application provides a machine-readable storage medium in which a computer program is stored. When the computer program is executed by a processor, the image capture method provided in the first aspect of the embodiment of the present application is implemented .

第四方面,本申请实施例提供了一种应用程序,用于在运行时执行:本申请实施例第一方面所提供的图像抓拍方法。According to a fourth aspect, an embodiment of the present application provides an application program for execution at runtime: the image capturing method provided in the first aspect of the embodiment of the present application.

第五方面,本申请实施例提供了一种监控系统,包括监控相机及比对系统;In a fifth aspect, an embodiment of the present application provides a monitoring system, including a monitoring camera and a comparison system;

监控相机,用于采集当前视频帧;对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标图像;对人脸目标图像进行质量分析,得到人脸目标图像的图像质量;判断图像质量是否满足预设质量条件;若满足,则将该人脸目标图像作为抓拍图像上传至比对系统;Surveillance camera, used to collect the current video frame; perform face target detection on the current video frame to determine the face target image in the current video frame; perform quality analysis on the face target image to obtain the image quality of the face target image; Whether the image quality meets the preset quality conditions; if it meets, upload the face target image as a captured image to the comparison system;

比对系统,用于对抓拍图像进行比对报警。The comparison system is used to compare and alarm the captured images.

本申请实施例提供的一种图像抓拍方法、监控相机及监控系统,监控相机采集当前视频帧,对当前视频帧进行人脸目标检测,确定出当前视频帧中的人脸目标图像,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。通过对当前视频帧中的人脸目标图像进行质量分析,可以在 人脸目标图像的图像质量满足预设质量条件时,立即抓拍人脸目标,上传抓拍图像至比对系统进行比对报警。比对系统所接收到的抓拍图像的图像质量能够满足预设的质量条件,保证了比对系统在进行人脸特征比对时抓拍图像具有较高的图像质量,从而保证了比对系统的比对结果具有较高的准确性,并且,监控相机一旦检测到人脸目标图像的图像质量满足预设质量条件,就立即抓拍,并将抓拍图像上传至比对系统进行比对报警,保证了比对系统进行比对时具有较高的实时性。An image capturing method, a monitoring camera and a monitoring system provided by the embodiments of the present application, the monitoring camera collects the current video frame, performs face target detection on the current video frame, and determines the face target image in the current video frame. The target image is subjected to quality analysis to obtain the image quality of the face target image. If the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm. The image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system The results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

附图说明BRIEF DESCRIPTION

为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application and the technical solutions of the prior art, the following briefly introduces the drawings required in the embodiments and the prior art. Obviously, the drawings in the following description are only For some embodiments of the application, for those of ordinary skill in the art, without paying any creative labor, other drawings may be obtained based on these drawings.

图1为本申请实施例的监控系统的运行流程示意图;FIG. 1 is a schematic diagram of an operation process of a monitoring system according to an embodiment of this application;

图2为本申请实施例的图像抓拍方法的流程示意图;2 is a schematic flowchart of an image capture method according to an embodiment of the present application;

图3为本申请实施例的人脸目标图像抓拍的示例图;3 is an example diagram of capturing a face target image according to an embodiment of the present application;

图4为本申请实施例的监控相机的结构示意图;4 is a schematic structural diagram of a surveillance camera according to an embodiment of this application;

图5为本申请实施例的监控系统的结构示意图。5 is a schematic structural diagram of a monitoring system according to an embodiment of this application.

具体实施方式detailed description

为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application more clear, the following describes the present application in further detail with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

在实际应用中,主要由监控系统来实现人脸目标的抓拍、比对和报警,该监控系统包括监控相机和比对系统。比对系统可以是后台服务器,主要用来实现特征提取、人脸比对和报警。In practical applications, the monitoring system mainly captures, compares and alarms face targets. The monitoring system includes a surveillance camera and a comparison system. The comparison system can be a background server, which is mainly used to realize feature extraction, face comparison and alarm.

监控系统的运行过程如图1所示,监控相机采集视频数据,经过人脸抓拍 算法,从视频数据中抓拍人脸目标图像,监控相机将抓拍的人脸目标图像传输给比对系统,由比对系统提取人脸目标图像的人脸特征,将提取的人脸特征和数据库中所有人的人脸特征进行比对,如果相似度高于预设的阈值,则进行报警。The operation process of the monitoring system is shown in Figure 1. The monitoring camera collects video data, captures the face target image from the video data through the face capture algorithm, and the monitoring camera transmits the captured face target image to the comparison system. The system extracts the face features of the face target image, compares the extracted face features with the face features of all the people in the database, and if the similarity is higher than the preset threshold, an alarm is generated.

在监控相机和比对系统中传递的主要是抓拍的人脸目标图像,因此,人脸目标图像的质量和实时性严重影响着比对系统进行比对的性能和实时性,也就是说,监控相机所执行的图像抓拍方法是保证比对系统进行比对的性能和实时性的关键。In the surveillance camera and the comparison system, the captured face target image is mainly transmitted. Therefore, the quality and real-time performance of the face target image seriously affect the performance and real-time performance of the comparison system, that is, monitoring The image capture method performed by the camera is the key to ensuring the performance and real-time performance of the comparison system.

因此,为了保证比对系统的比对结果具有较高的准确性,本申请实施例提供了一种图像抓拍方法、监控相机、机器可读存储介质及监控系统。Therefore, in order to ensure that the comparison result of the comparison system has high accuracy, the embodiments of the present application provide an image capture method, a monitoring camera, a machine-readable storage medium, and a monitoring system.

下面,首先对本申请实施例所提供的图像抓拍方法进行介绍。In the following, the image capture method provided by the embodiments of the present application is first introduced.

本申请实施例所提供的图像抓拍方法的执行主体可以为上述监控系统中的监控相机(例如,智能照相机、网络摄像机等),监控相机中至少可以包括监控摄像头和搭载有核心处理芯片的处理器。实现本申请实施例所提供的图像抓拍方法的方式可以为设置于监控相机中的软件、硬件电路和逻辑电路中的至少一种方式。The execution subject of the image capture method provided in the embodiments of the present application may be a surveillance camera (for example, a smart camera, a network camera, etc.) in the surveillance system, and the surveillance camera may include at least a surveillance camera and a processor equipped with a core processing chip . The method for implementing the image capturing method provided by the embodiments of the present application may be at least one method of software, hardware circuits, and logic circuits provided in the monitoring camera.

如图2所示,本申请实施例所提供的一种图像抓拍方法,可以包括如下步骤:As shown in FIG. 2, an image capture method provided by an embodiment of the present application may include the following steps:

S201,采集当前视频帧。S201: Collect the current video frame.

监控相机可以架设在城市的各个角落,例如,小区入口、十字路口、公园、体育场等等,这里对监控相机的具体架设位置、架设角度和监控相机的分辨率不做具体要求,能够满足覆盖范围尽可能大、清晰拍摄到人脸目标的要求即可。Surveillance cameras can be installed in all corners of the city, for example, community entrances, intersections, parks, stadiums, etc. Here, there is no specific requirement for the specific location, angle and resolution of the surveillance camera, which can meet the coverage. As long as possible, the requirements for capturing the face target clearly.

监控相机可以实时地对监控场景进行拍摄,得到监控场景的视频数据,视频数据中包括一帧一帧的视频帧以及采集到每一个视频帧的时间戳等。为了保证人脸目标图像的实时性,需要对采集到的当前视频帧进行处理。The surveillance camera can shoot the surveillance scene in real time to obtain the video data of the surveillance scene, and the video data includes the video frames of each frame and the time stamp of each video frame collected. In order to ensure the real-time nature of the face target image, the current video frame collected needs to be processed.

S202,对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标 图像。S202: Perform face target detection on the current video frame to determine the face target image in the current video frame.

可以利用预设的目标检测算法对当前视频帧进行人脸目标检测,预设目标检测算法可以为传统的特征匹配算法,通过例如眼睛、鼻子、嘴巴、耳朵等人脸特征,来判断当前视频帧中的目标是否为人脸目标,若是人脸目标,则划分该人脸目标周围的一定区域为人脸目标框,该人脸目标框中的图像或者该人脸目标框的一定范围内的图像即为人脸目标图像;预设目标检测算法还可以为目前较为流行的智能检测算法,例如深度神经网络,深度神经网络的网络模型可以通过对大量的人脸图像进行训练得到,通过将当前视频帧输入深度神经网络,可以得到当前视频帧中人脸目标的感兴趣区域,该人脸目标的感兴趣区域中的图像或者该人脸目标的感兴趣区域的一定范围内的图像即为人脸目标图像。当然,其他能够检测出视频帧中人脸目标的方法也属于本申请实施例的保护范围,这里不再一一赘述。You can use the preset target detection algorithm to detect the face of the current video frame. The preset target detection algorithm can be a traditional feature matching algorithm, which can determine the current video frame by face features such as eyes, nose, mouth, ears, etc. Whether the target in is a face target, if it is a face target, a certain area around the face target is divided into a face target frame, and the image in the face target frame or the image within a certain range of the face target frame is a person Face target image; the preset target detection algorithm can also be a more popular intelligent detection algorithm, such as deep neural network. The network model of deep neural network can be obtained by training a large number of face images, by inputting the current video frame into the depth The neural network can obtain the interest area of the face target in the current video frame, and the image in the interest area of the face target or the image within a certain range of the interest area of the face target is the face target image. Of course, other methods that can detect the face target in the video frame also belong to the protection scope of the embodiments of the present application, and details are not repeated here.

S203,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量。S203. Perform quality analysis on the face target image to obtain the image quality of the face target image.

影响人脸目标图像的图像质量的因素有很多,例如人脸目标图像中人脸目标被遮挡的程度、人脸目标图像中人脸目标的成像清晰度、人脸目标图像中人脸目标的姿态等等。人脸目标在人脸目标图像中被遮挡的越少则图像质量越高、人脸目标在人脸目标图像中的成像越清晰则图像质量越高、人脸目标在人脸目标图像中正面越多则图像质量越高等等。当然,影响人脸目标图像的图像质量的因素还有许多种,例如对比度、亮度等等,这里不再一一列举。There are many factors that affect the image quality of the face target image, such as the degree to which the face target is blocked in the face target image, the imaging clarity of the face target in the face target image, and the pose of the face target in the face target image and many more. The less the face target is occluded in the face target image, the higher the image quality, the clearer the face target is imaged in the face target image, the higher the image quality, and the more positive the face target in the face target image More often the image quality is higher and so on. Of course, there are many factors that affect the image quality of the face target image, such as contrast, brightness, and so on, which are not listed here.

可以综合考虑上述因素,通过加权的方式给人脸目标图像分配一定的图像质量评分值;也可以只考虑其中某一个或某些因素设置的分析算法,给人脸目标图像分配一定的图像质量评分值。预设质量分析算法还可以给人脸目标图像分配例如优、良、中、差的评价结果。You can consider the above factors comprehensively and assign a certain image quality score value to the face target image by weighting; you can also consider only one or some of the factors set by the analysis algorithm to assign a certain image quality score to the face target image value. The preset quality analysis algorithm can also assign, for example, good, good, medium, and poor evaluation results to the face target image.

可选的,S203具体可以为:Optionally, S203 may specifically be:

获取人脸目标图像的人脸目标质量参数,其中,人脸目标质量参数至少包括:人脸遮挡程度、人脸清晰度和姿态中的一种或多种;根据人脸目标质量参数,确定人脸目标图像的图像质量。Obtain the face target quality parameters of the face target image, where the face target quality parameters include at least one or more of the degree of face occlusion, face clarity, and posture; according to the face target quality parameters, determine the person The image quality of the face target image.

人脸目标质量参数是指影响人脸目标图像的图像质量的参数,主要包括人脸目标的姿态、被遮挡程度和成像清晰度等,在对人脸目标图像进行图像质量分析时,可以获取人脸目标的姿态信息、被遮挡程度和清晰度等人脸目标质量参数,基于不同人脸目标质量参数对图像质量的影响的综合考虑,得到人脸目标图像的图像质量。例如,当前视频帧中人脸目标框中的人脸目标图像中人脸目标A完全正面、面部被遮挡了1/10、清晰度很高,则可以确定该人脸目标图像的图像质量为优,或者,对图像质量进行量化,分配图像质量评分值9。The face target quality parameter refers to the parameter that affects the image quality of the face target image, mainly including the face target's posture, degree of occlusion, and imaging clarity. When performing image quality analysis on the face target image, you can obtain the person The facial target quality parameters such as the posture information, degree of occlusion and sharpness of the facial target are based on the comprehensive consideration of the effects of different facial target quality parameters on the image quality to obtain the image quality of the facial target image. For example, in the face target image in the face target frame in the current video frame, the face target A is completely frontal, the face is occluded by 1/10, and the sharpness is very high, it can be determined that the image quality of the face target image is excellent Or, quantify the image quality and assign an image quality score of 9.

可选的,图像质量可以包括图像质量评分值。Optionally, the image quality may include an image quality score value.

相应的,S203具体可以为:Correspondingly, S203 can specifically be:

对人脸目标图像进行质量评分,得到人脸目标图像的图像质量评分值。The quality score of the face target image is obtained to obtain the image quality score value of the face target image.

为了便于监控相机处理,图像质量可以由量化的图像质量评分值表示,通过质量评分算法,对人脸目标图像进行质量评分,得到一个量化的图像质量评分值。当然,图像质量还可以表示为优、良、中、差等评价结果。In order to facilitate the processing of the monitoring camera, the image quality can be expressed by a quantized image quality score value. The quality score algorithm is used to score the face target image to obtain a quantized image quality score value. Of course, the image quality can also be expressed as the evaluation results of excellent, good, medium, and poor.

S204,判断图像质量是否满足预设质量条件。S204: Determine whether the image quality meets the preset quality condition.

预设质量条件为判断人脸目标图像的图像质量是否能够达到图像质量较高的要求所设置的条件,如果图像质量能够满足预设质量条件,则说明人脸目标图像的图像质量较高,如果不能满足,则说明当前视频帧中人脸目标图像的图像质量不能够达到要求。The preset quality condition is a condition set to determine whether the image quality of the face target image can meet the requirement of higher image quality. If the image quality can meet the preset quality condition, it means that the image quality of the face target image is higher. If it cannot be satisfied, it means that the image quality of the face target image in the current video frame cannot meet the requirements.

可选的,针对图像质量包括图像质量评分值的情况,S204具体可以为:Optionally, for the case where the image quality includes an image quality score value, S204 may specifically be:

判断图像质量评分值是否大于预设质量阈值;若大于,则确定图像质量满足预设质量条件;若不大于,则确定图像质量不满足预设质量条件。It is determined whether the image quality score value is greater than the preset quality threshold; if it is greater, it is determined that the image quality meets the preset quality condition; if not, it is determined that the image quality does not meet the preset quality condition.

针对量化的图像质量,预设质量条件可以是大于预设质量阈值,例如预设质量阈值为8分,如果量化的图像质量评分值大于8分,则说明该人脸目标图像可以达到图像质量较高的要求,如果图像质量评分值不大于8分,则说明该人脸目标图像不能够达到要求。For the quantized image quality, the preset quality condition may be greater than the preset quality threshold, for example, the preset quality threshold is 8 points, if the quantized image quality score value is greater than 8 points, it means that the face target image can achieve a better image quality High requirements, if the image quality score value is not greater than 8, it means that the face target image can not meet the requirements.

当然,预设质量条件还可以是预设的图像质量评价程度,例如预设质量 条件可以为图像质量达到良,如果人脸目标图像的图像质量达到良及良以上,则说明该人脸目标图像可以达到图像质量较高的要求,如果人脸目标图像的图像质量达不到良,则说明该人脸目标图像不能够达到要求。Of course, the preset quality condition may also be a preset degree of image quality evaluation. For example, the preset quality condition may be that the image quality is good. If the image quality of the face target image reaches good and above, it means that the face target image It can meet the requirement of high image quality. If the image quality of the face target image is not good, it means that the face target image cannot meet the requirements.

可选的,在S204之后,本申请实施例所提供的图像抓拍方法还可以执行如下步骤:Optionally, after S204, the image capture method provided by the embodiment of the present application may further perform the following steps:

第一步,针对任一人脸目标图像,若该人脸目标图像的图像质量不满足预设质量条件,则按照视频帧从先到后的顺序,获取下一视频帧作为当前视频帧。In the first step, for any face target image, if the image quality of the face target image does not meet the preset quality condition, the next video frame is obtained as the current video frame in the order of the video frames from first to last.

当前视频帧中可以包括多个人脸目标,针对任一人脸目标的人脸目标图像,如果图像质量不满足预设质量条件,则说明该人脸目标的人脸目标图像的图像质量不能够达到要求,为了尽快的找到图像质量能够达到要求的人脸目标图像,可以按序获取下一视频帧,将该下一视频帧作为当前视频帧来判断该视频帧中同一人脸目标的人脸目标图像的图像质量是否能够达到要求。The current video frame may include multiple face targets. For a face target image of any face target, if the image quality does not meet the preset quality conditions, it means that the image quality of the face target image of the face target cannot meet the requirements In order to find the face target image with the image quality that meets the requirements as soon as possible, the next video frame can be obtained in sequence, and the next video frame is used as the current video frame to determine the face target image of the same face target in the video frame Whether the quality of the image can meet the requirements.

第二步,确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像。The second step is to determine the face target image of the same face target in the current video frame and the previous video frame.

确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的方式,可以是采用智能目标跟踪算法,对同一人脸目标进行跟踪得到,还可以是对当前视频帧采用如S202中的目标检测算法进行人脸目标检测,再通过目标框匹配的方式确定。The way to determine the face target image of the same face target in the current video frame and the previous video frame can be using an intelligent target tracking algorithm to track the same face target, or it can be used in the current video frame as in S202 The target detection algorithm performs face target detection, and then determines the target frame matching method.

第三步,对当前视频帧中的人脸目标图像进行质量分析,得到该人脸目标图像的图像质量。The third step is to analyze the quality of the face target image in the current video frame to obtain the image quality of the face target image.

第四步,返回执行S204,直至当前视频帧中人脸目标图像的图像质量满足预设质量条件时,将该人脸目标图像作为抓拍图像上传至比对系统。The fourth step is to return to S204 until the image quality of the face target image in the current video frame meets the preset quality condition, and upload the face target image as a captured image to the comparison system.

对新的当前视频帧中的人脸目标图像进行质量分析、判断,如果图像质量不能够满足预设质量条件,则获取再下一个视频帧,进行人脸目标图像的确定、图像质量分析、判断的处理,直到某一个视频帧中人脸目标图像的图像质量能够满足预设质量条件时,立即对人脸目标进行抓拍,保证在检测到图像质量达到要求的人脸目标图像时,第一时间将抓拍图像上传,保证了比对系统进行人脸特征比对的实时性。Perform quality analysis and judgment on the face target image in the new current video frame. If the image quality does not meet the preset quality conditions, obtain the next video frame to determine the face target image, image quality analysis, and judgment Processing, until the image quality of the face target image in a certain video frame can meet the preset quality conditions, immediately capture the face target to ensure that the first time when the face target image with the required image quality meets the requirements Upload the captured image to ensure the real-time nature of the facial feature comparison in the comparison system.

可选的,确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的步骤,具体可以为:Optionally, the step of determining the face target image of the same face target in the current video frame and the previous video frame may specifically be:

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标框;Perform face target detection on the current video frame to determine the face target frame in the current video frame;

将当前视频帧中的人脸目标框分别与上一视频帧中的各人脸目标框进行匹配;Match the face target frame in the current video frame with each face target frame in the previous video frame;

若匹配度达到预设匹配度阈值,则给当前视频帧中的人脸目标框分配与上一视频帧中匹配度最大的人脸目标框相同的目标框标识;If the matching degree reaches the preset matching degree threshold, the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;

确定当前视频帧中与上一视频帧具有相同目标框标识的人脸目标框中的人脸目标图像为同一人脸目标的人脸目标图像。It is determined that the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.

确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的方式,可以是对当前视频帧采用如S202中的目标检测算法进行人脸目标检测,再通过人脸目标框匹配的方式确定。The method of determining the face target image of the same face target in the current video frame and the previous video frame may be to use the target detection algorithm as in S202 for the current video frame to detect the face target, and then match through the face target frame The way is determined.

综合考虑匹配条件,例如人脸目标框的大小是否相同、位置偏移量是否小于一定的阈值、运动轨迹是否满足一定的平滑性等,基于这些匹配条件可以给两个人脸目标框之间分配一定的匹配度,当匹配度达到预设匹配度阈值,则说明这两个人脸目标框为同一人脸目标的人脸目标框的可能性较大,匹配度越大则两个人脸目标框为同一人脸目标的人脸目标框的可能性就越大,因此,可以给当前视频帧中的人脸目标框分配与上一视频中匹配度最大的人脸目标框相同的目标框标识。目标框标识相同,则说明其中的人脸目标图像中的人脸目标为同一目标,不同的人脸目标框具有不同的目标框标识,用于区分不同的人脸目标。Comprehensively consider the matching conditions, such as whether the size of the face target frame is the same, whether the position offset is less than a certain threshold, whether the motion trajectory meets a certain smoothness, etc. Based on these matching conditions, a certain amount can be allocated between the two face target frames Matching degree, when the matching degree reaches the preset matching degree threshold, it means that the two face target frames are the same as the face target frame of the same face target. The greater the matching degree, the two face target frames are the same The possibility of the face target frame of the face target is greater. Therefore, the face target frame in the current video frame can be assigned the same target frame identifier as the face target frame with the highest matching degree in the previous video. If the target frame identification is the same, it means that the face targets in the face target image are the same target, and different face target frames have different target frame identifications, which are used to distinguish different face targets.

S205,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。S205: If the image quality meets the preset quality condition, upload the face target image as a captured image to the comparison system.

如果人脸目标图像的图像质量满足预设质量条件,则说明该人脸目标图像的图像质量较高,此时可以立即抓拍人脸目标,将该人脸目标图像作为抓拍图像上传至比对系统,则比对系统进行比对的抓拍图像具有较高的图像质量,并且,比对系统接收到该图像质量较高的抓拍图像,是在监控相机抓拍到后立即上传上来的,具有较好的实时性。If the image quality of the face target image satisfies the preset quality condition, it means that the image quality of the face target image is high. At this time, the face target can be captured immediately, and the face target image can be uploaded to the comparison system as a captured image , The captured image compared by the comparison system has a higher image quality, and the captured image received by the comparison system with the higher image quality is uploaded immediately after being captured by the surveillance camera, and has a better quality real-time.

可选的,在S205之后,本申请实施例所提供的图像抓拍方法还可以执行如下步骤:Optionally, after S205, the image capturing method provided by the embodiment of the present application may further perform the following steps:

针对同一人脸目标,判断当前视频帧中该人脸目标的人脸目标图像的图像质量是否优于已缓存的该人脸目标的人脸目标图像的图像质量;For the same face target, determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;

若优于,则缓存当前视频帧中该人脸目标的人脸目标图像及图像质量;If it is better, the face target image and image quality of the face target in the current video frame are cached;

在确定人脸目标的跟踪结束后,将缓存的该人脸目标的人脸目标图像作为抓拍图像上传至比对系统。After determining that the tracking of the face target ends, the cached face target image of the face target is uploaded to the comparison system as a captured image.

为了保证比对系统在进行比对时,能够有更为精准的比对结果,监控相机依次对每一个视频帧中人脸目标的人脸目标图像进行质量分析,首先将第一个视频帧和第一个视频帧中人脸目标的人脸目标图像的图像质量进行缓存,后续视频帧中该人脸目标的人脸目标图像的图像质量如果更优于缓存的图像质量,则把更优的图像质量和人脸目标图像缓存,覆盖掉已经缓存的该人脸目标的人脸目标图像和图像质量。在人脸目标消失之后,缓存的就是该人脸目标的图像质量最优的一个人脸目标图像,则可以将该人脸目标图像作为抓拍图像上传。In order to ensure that the comparison system can have a more accurate comparison result when performing the comparison, the surveillance camera sequentially analyzes the quality of the face target image of the face target in each video frame. First, the first video frame and The image quality of the face target image of the face target in the first video frame is cached. If the image quality of the face target image of the face target in the subsequent video frame is better than the cached image quality, the better Image quality and face target image buffering, overwriting the face target image and image quality of the face target that have been cached. After the face target disappears, the face target image with the best image quality of the face target is cached, and the face target image can be uploaded as a captured image.

确定人脸目标的跟踪结束的方式,可以是连续多帧对该人脸目标的匹配度都很低,则可以确定该人脸目标的跟踪结束,或者,通过目标跟踪算法,确定人脸目标跟踪丢失,即连续多帧无法跟踪到某一人脸目标,则可以确定该人脸目标的跟踪结束。The way to determine the end of the tracking of the face target may be that the matching degree of the continuous multiple frames to the face target is very low, then the tracking of the face target may be determined to end, or, through the target tracking algorithm, the tracking of the face target may be determined If it is lost, that is, a certain face target cannot be tracked in multiple consecutive frames, then it can be determined that the tracking of the face target ends.

比对系统最终可以以图像质量最优的抓拍图像的比对结果进行报警的校对,从而保证最终的报警具有较高的准确性。整个过程中,监控相机只需要传输少量的抓拍图像(最多两张),这样既能够保证较高的实时性,又可以保证比对结果的准确性,还节省了带宽资源。The comparison system can finally calibrate the alarm with the comparison result of the captured image with the best image quality, so as to ensure that the final alarm has high accuracy. In the whole process, the surveillance camera only needs to transmit a small number of captured images (up to two), which can not only ensure high real-time performance, but also ensure the accuracy of the comparison results, and save bandwidth resources.

以某一人脸目标为例,如图3所示,监控相机首先采集第1帧,检测出人脸目标在第1帧中的人脸目标图像,对人脸目标图像进行质量分析所得到的图像质量评分值小于预设质量阈值,则监控相机接下来采集第2帧,再次检测出该人脸目标在第2帧中的人脸目标图像,对人脸目标图像进行质量分析所得到的图像质量评分值还是小于预设质量阈值,继续按序采集第3帧、第4帧、第5 帧,所得到的人脸目标图像的图像质量均小于预设质量阈值,直到第6帧,得到的人脸目标图像的图像质量大于预设质量阈值,则该人脸目标图像作为抓拍图像会被上传给比对系统进行处理。当目标跟踪结束时,例如在第50帧时确定目标跟踪结束,已缓存的图像质量最优的一帧并不是第6帧,而是第30帧,则确定第30帧中该人脸目标的人脸目标图像作为抓拍图像上传给比对系统。Taking a certain face target as an example, as shown in FIG. 3, the surveillance camera first collects the first frame, detects the face target image of the face target in the first frame, and performs quality analysis on the face target image. If the quality score value is less than the preset quality threshold, the surveillance camera next collects the second frame, detects the face target image of the face target in the second frame again, and performs image quality analysis on the face target image to obtain the image quality The score value is still less than the preset quality threshold. Continue to collect frames 3, 4, and 5 in sequence. The image quality of the obtained face target image is less than the preset quality threshold. Until frame 6, the obtained person If the image quality of the face target image is greater than the preset quality threshold, the face target image as a captured image will be uploaded to the comparison system for processing. When the target tracking ends, for example, at the 50th frame, it is determined that the target tracking ends. The frame with the best cached image quality is not the 6th frame, but the 30th frame, then the face target in the 30th frame is determined. The face target image is uploaded to the comparison system as a captured image.

应用本实施列,监控相机采集当前视频帧,对当前视频帧进行人脸目标检测,确定出当前视频帧中的人脸目标图像,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。通过对当前视频帧中的人脸目标图像进行质量分析,可以在人脸目标图像的图像质量满足预设质量条件时,立即抓拍人脸目标,上传抓拍图像至比对系统进行比对报警。比对系统所接收到的抓拍图像的图像质量能够满足预设的质量条件,保证了比对系统在进行人脸特征比对时抓拍图像具有较高的图像质量,从而保证了比对系统的比对结果具有较高的准确性,并且,监控相机一旦检测到人脸目标图像的图像质量满足预设质量条件,就立即抓拍,并将抓拍图像上传至比对系统进行比对报警,保证了比对系统进行比对时具有较高的实时性。Applying this example, the surveillance camera collects the current video frame, performs face target detection on the current video frame, determines the face target image in the current video frame, and performs quality analysis on the face target image to obtain the image of the face target image Quality, if the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm. The image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system The results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

相应于上述方法实施例,本申请实施例提供了一种监控相机,如图4所示,包括监控摄像头401、处理器402和存储器403,其中,Corresponding to the above method embodiment, an embodiment of the present application provides a surveillance camera. As shown in FIG. 4, it includes a surveillance camera 401, a processor 402, and a memory 403, where,

监控摄像头401,用于采集当前视频帧;Surveillance camera 401, used to collect the current video frame;

存储器403,用于存放计算机程序;Memory 403, used to store computer programs;

处理器402,用于执行存储器403上所存放的计算机程序时,实现如下步骤:The processor 402 is configured to execute the following steps when executing the computer program stored on the memory 403:

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标图像;Perform face target detection on the current video frame to determine the face target image in the current video frame;

对人脸目标图像进行质量分析,得到人脸目标图像的图像质量;Perform quality analysis on the face target image to obtain the image quality of the face target image;

判断图像质量是否满足预设质量条件;Determine whether the image quality meets the preset quality conditions;

若满足,则将该人脸目标图像作为抓拍图像上传至比对系统。If satisfied, the face target image is uploaded to the comparison system as a captured image.

可选的,处理器402执行存储器403上所存放的计算机程序时,还可以实 现如下步骤:Optionally, when the processor 402 executes the computer program stored in the memory 403, the following steps may also be implemented:

针对任一人脸目标图像,若该人脸目标图像的图像质量不满足预设质量条件,则按照视频帧从先到后的顺序,获取下一视频帧作为当前视频帧;For any face target image, if the image quality of the face target image does not meet the preset quality conditions, the next video frame is obtained as the current video frame in the order of first to last video frames;

确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像;Determine the face target image of the same face target in the current video frame and the previous video frame;

对当前视频帧中的人脸目标图像进行质量分析,得到该人脸目标图像的图像质量;Perform a quality analysis on the face target image in the current video frame to obtain the image quality of the face target image;

返回执行判断图像质量是否满足预设质量条件的步骤,直至当前视频帧中人脸目标图像的图像质量满足预设质量条件时,将该人脸目标图像作为抓拍图像上传比对系统。Return to the step of judging whether the image quality meets the preset quality condition until the image quality of the face target image in the current video frame meets the preset quality condition, upload the face target image as a captured image to the comparison system.

可选的,处理器402在实现确定当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的步骤时,具体可以实现如下步骤:Optionally, when the processor 402 implements the step of determining the face target image of the same face target in the current video frame and the previous video frame, it may specifically implement the following steps:

对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标框;Perform face target detection on the current video frame to determine the face target frame in the current video frame;

将当前视频帧中的人脸目标框分别与上一视频帧中的各人脸目标框进行匹配;Match the face target frame in the current video frame with each face target frame in the previous video frame;

若匹配度达到预设匹配度阈值,则给当前视频帧中的人脸目标框分配与上一视频帧中匹配度最大的人脸目标框相同的目标框标识;If the matching degree reaches the preset matching degree threshold, the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree;

确定当前视频帧中与上一视频帧具有相同目标框标识的人脸目标框中的人脸目标图像为同一人脸目标的人脸目标图像。It is determined that the face target image in the face target frame with the same target frame identifier as the previous video frame in the current video frame is the face target image of the same face target.

可选的,处理器402执行存储器403上所存放的计算机程序时,还可以实现如下步骤:Optionally, when the processor 402 executes the computer program stored on the memory 403, the following steps may also be implemented:

针对同一人脸目标,判断当前视频帧中该人脸目标的人脸目标图像的图像质量是否优于已缓存的该人脸目标的人脸目标图像的图像质量;For the same face target, determine whether the image quality of the face target image of the face target in the current video frame is better than the image quality of the cached face target image of the face target;

若优于,则缓存当前视频帧中该人脸目标的人脸目标图像及图像质量;If it is better, the face target image and image quality of the face target in the current video frame are cached;

在确定该人脸目标的跟踪结束后,将缓存的该人脸目标的人脸目标图像作为抓拍图像上传至比对系统。After determining that the tracking of the face target ends, the cached face target image of the face target is uploaded to the comparison system as a captured image.

可选的,处理器402在实现对人脸目标图像进行质量分析,得到人脸目标 图像的图像质量的步骤时,具体可以实现如下步骤:Optionally, when the processor 402 implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it may specifically implement the following steps:

获取人脸目标图像的人脸目标质量参数,其中,人脸目标质量参数至少包括:人脸遮挡程度、人脸清晰度和姿态中的一种或多种;Obtain the face target quality parameters of the face target image, where the face target quality parameters include at least one or more of the degree of face occlusion, face clarity, and posture;

根据人脸目标质量参数,确定人脸目标图像的图像质量。According to the face target quality parameter, the image quality of the face target image is determined.

可选的,图像质量包括图像质量评分值;Optionally, the image quality includes an image quality score value;

处理器402在实现对人脸目标图像进行质量分析,得到人脸目标图像的图像质量的步骤时,具体可以实现如下步骤:When the processor 402 implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it may specifically implement the following steps:

对人脸目标图像进行质量评分,得到脸目标图像的图像质量评分值;Perform a quality score on the face target image to obtain the image quality score of the face target image;

处理器402在实现判断图像质量是否满足预设质量条件的步骤时,具体实现如下步骤:When the processor 402 implements the step of judging whether the image quality meets the preset quality condition, it specifically implements the following steps:

判断图像质量评分值是否大于预设质量阈值;Determine whether the image quality score is greater than the preset quality threshold;

若大于,则确定图像质量满足预设质量条件;If it is greater, it is determined that the image quality meets the preset quality conditions;

若不大于,则确定图像质量不满足预设质量条件。If it is not greater, it is determined that the image quality does not satisfy the preset quality condition.

上述存储器可以包括RAM(Random Access Memory,随机存取存储器),也可以包括NVM(Non-Volatile Memory,非易失性存储器),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离上述处理器的存储装置。The above memory may include RAM (Random Access Memory, random access memory), or may include NVM (Non-Volatile Memory, non-volatile memory), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

上述处理器可以是通用处理器,包括CPU(Central Processing Unit,中央处理器)、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processing,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above processor may be a general-purpose processor, including CPU (Central Processing Unit), NP (Network Processor), etc .; it may also be DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

监控摄像头401、处理器402和存储器403之间可以通过有线连接或者无线连接的方式进行数据传输,并且监控相机可以通过有线通信接口或者无线通信接口与比对系统进行通信。图4所示的仅为监控摄像头401、处理器402与存储器403之间通过总线进行数据传输的示例,不作为具体连接方式的限定。Data can be transmitted between the surveillance camera 401, the processor 402, and the memory 403 through a wired connection or a wireless connection, and the surveillance camera can communicate with the comparison system through a wired communication interface or a wireless communication interface. 4 is only an example of data transmission between the surveillance camera 401, the processor 402, and the memory 403 through the bus, and is not intended as a limitation of a specific connection method.

本实施例中,该监控相机的处理器通过读取存储器中存储的计算机程序,并通过运行该计算机程序,能够实现:监控相机采集当前视频帧,对当前视频帧进行人脸目标检测,确定出当前视频帧中的人脸目标图像,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。通过对当前视频帧中的人脸目标图像进行质量分析,可以在人脸目标图像的图像质量满足预设质量条件时,立即抓拍人脸目标,上传抓拍图像至比对系统进行比对报警。比对系统所接收到的抓拍图像的图像质量能够满足预设的质量条件,保证了比对系统在进行人脸特征比对时抓拍图像具有较高的图像质量,从而保证了比对系统的比对结果具有较高的准确性,并且,监控相机一旦检测到人脸目标图像的图像质量满足预设质量条件,就立即抓拍,并将抓拍图像上传至比对系统进行比对报警,保证了比对系统进行比对时具有较高的实时性。In this embodiment, the processor of the surveillance camera can read the computer program stored in the memory and run the computer program to realize that the surveillance camera collects the current video frame and performs face target detection on the current video frame to determine Face target image in the current video frame, perform quality analysis on the face target image to obtain the image quality of the face target image, if the image quality meets the preset quality conditions, the face target image is uploaded as a captured image to the comparison To the system. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm. The image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system The results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

另外,本申请实施例还提供了一种机器可读存储介质,所述机器可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例所提供的图像抓拍方法的所有步骤。In addition, embodiments of the present application also provide a machine-readable storage medium, and the machine-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the image capturing method provided by the embodiment of the present application All steps.

本实施例中,机器可读存储介质存储有在运行时执行本申请实施例所提供的图像抓拍方法的计算机程序,因此能够实现:监控相机采集当前视频帧,对当前视频帧进行人脸目标检测,确定出当前视频帧中的人脸目标图像,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。通过对当前视频帧中的人脸目标图像进行质量分析,可以在人脸目标图像的图像质量满足预设质量条件时,立即抓拍人脸目标,上传抓拍图像至比对系统进行比对报警。比对系统所接收到的抓拍图像的图像质量能够满足预设的质量条件,保证了比对系统在进行人脸特征比对时抓拍图像具有较高的图像质量,从而保证了比对系统的比对结果具有较高的准确性,并且,监控相机一旦检测到人脸目标图像的图像质量满足预设质量条件,就立即抓拍,并将抓拍图像上传至比对系统进行比对报警,保证了比对系统进行比对时具有较高的实时性。In this embodiment, the machine-readable storage medium stores a computer program that executes the image capture method provided by the embodiments of the present application at runtime, so it can be achieved that the surveillance camera collects the current video frame and performs face target detection on the current video frame , Determine the face target image in the current video frame, and perform quality analysis on the face target image to obtain the image quality of the face target image. If the image quality meets the preset quality conditions, use the face target image as the captured image Upload to the comparison system. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm. The image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system The results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

本申请实施例还提供了一种应用程序,用于在运行时执行:本申请实施例所提供的图像抓拍方法的所有步骤。An embodiment of the present application also provides an application program for executing at run time: all steps of the image capturing method provided by the embodiment of the present application.

本申请实施例中,应用程序在运行时执行本申请实施例所提供的图像抓拍方法,因此能够实现:监控相机采集当前视频帧,对当前视频帧进行人脸目标检测,确定出当前视频帧中的人脸目标图像,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。通过对当前视频帧中的人脸目标图像进行质量分析,可以在人脸目标图像的图像质量满足预设质量条件时,立即抓拍人脸目标,上传抓拍图像至比对系统进行比对报警。比对系统所接收到的抓拍图像的图像质量能够满足预设的质量条件,保证了比对系统在进行人脸特征比对时抓拍图像具有较高的图像质量,从而保证了比对系统的比对结果具有较高的准确性,并且,监控相机一旦检测到人脸目标图像的图像质量满足预设质量条件,就立即抓拍,并将抓拍图像上传至比对系统进行比对报警,保证了比对系统进行比对时具有较高的实时性。In the embodiment of the present application, the application program executes the image capturing method provided in the embodiment of the present application when it is running, so that it can realize that: the monitoring camera collects the current video frame, performs face target detection on the current video frame, and determines The face target image is subjected to quality analysis to obtain the image quality of the face target image. If the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison and alarm. The image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system The results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

本申请实施例还提供了一种监控系统,如图5所示,该监控系统可以包括监控相机510及比对系统520;An embodiment of the present application also provides a monitoring system. As shown in FIG. 5, the monitoring system may include a monitoring camera 510 and a comparison system 520;

监控相机510,用于采集当前视频帧;对当前视频帧进行人脸目标检测,确定当前视频帧中的人脸目标图像;对人脸目标图像进行质量分析,得到人脸目标图像的图像质量;判断图像质量是否满足预设质量条件;若满足,则将该人脸目标图像为抓拍图像上传至比对系统520;The surveillance camera 510 is used to collect the current video frame; perform face target detection on the current video frame to determine the face target image in the current video frame; perform quality analysis on the face target image to obtain the image quality of the face target image; Determine whether the image quality meets the preset quality conditions; if it meets, upload the face target image as a captured image to the comparison system 520;

比对系统520,用于对抓拍图像进行比对报警。The comparison system 520 is used for comparing and alarming the captured images.

监控相机510还可以用于实现上述方法实施例所提供的所有步骤,这里不再一一赘述。The monitoring camera 510 can also be used to implement all the steps provided in the above method embodiments, and no more details are provided here.

比对系统520对抓拍图像进行比对报警,具体可以包括:对抓拍图像进行特征提取,并将提取的人脸特征和黑名单中的人脸特征进行比对,若比对的相似度大于一定阈值,则进行报警。The comparison system 520 compares and alarms the captured images, which may specifically include: extracting the captured images, and comparing the extracted facial features with the facial features in the blacklist, if the similarity of the comparison is greater than a certain Threshold, then alarm.

应用本实施例,监控相机采集当前视频帧,对当前视频帧进行人脸目标检测,确定出当前视频帧中的人脸目标图像,对人脸目标图像进行质量分析,得到人脸目标图像的图像质量,若图像质量满足预设质量条件,则将该人脸目标图像作为抓拍图像上传至比对系统。通过对当前视频帧中的人脸目标图 像进行质量分析,可以在人脸目标图像的图像质量满足预设质量条件时,立即抓拍人脸目标,上传抓拍图像至比对系统进行比对报警。比对系统所接收到的抓拍图像的图像质量能够满足预设的质量条件,保证了比对系统在进行人脸特征比对时抓拍图像具有较高的图像质量,从而保证了比对系统的比对结果具有较高的准确性,并且,监控相机一旦检测到人脸目标图像的图像质量满足预设质量条件,就立即抓拍,并将抓拍图像上传至比对系统进行比对报警,保证了比对系统进行比对时具有较高的实时性。Applying this embodiment, the monitoring camera collects the current video frame, performs face target detection on the current video frame, determines the face target image in the current video frame, and performs quality analysis on the face target image to obtain the image of the face target image Quality, if the image quality meets the preset quality conditions, the face target image is uploaded to the comparison system as a captured image. Through the quality analysis of the face target image in the current video frame, when the image quality of the face target image meets the preset quality conditions, the face target can be captured immediately, and the captured image can be uploaded to the comparison system for comparison alarm. The image quality of the captured image received by the comparison system can meet the preset quality conditions, ensuring that the captured image has a higher image quality when the comparison system performs face feature comparison, thus ensuring the comparison of the comparison system The results have high accuracy, and once the surveillance camera detects that the image quality of the face target image meets the preset quality conditions, it immediately captures the picture and uploads the captured image to the comparison system for comparison and alarm, ensuring the comparison It has high real-time performance when comparing the system.

对于监控相机、机器可读存储介质以及监控系统实施例而言,由于其所涉及的方法内容基本相似于前述的方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the embodiments of the surveillance camera, the machine-readable storage medium, and the surveillance system, since the content of the methods involved is basically similar to the foregoing method embodiments, the description is relatively simple. For the related parts, refer to the partial description of the method embodiments. can.

对于监控相机、机器可读存储介质以及应用程序实施例而言,由于其所涉及的方法内容基本相似于前述的方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the surveillance camera, machine-readable storage medium, and application program embodiments, because the content of the methods involved is basically similar to the foregoing method embodiments, the description is relatively simple. For the related parts, refer to the section of the method embodiments. can.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、监控相机、机器可读存储介质、应用程序以及监控系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The embodiments in this specification are described in a related manner. The same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, monitoring camera, machine-readable storage medium, application program, and monitoring system embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the related parts, refer to the section of the method embodiments. can.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only the preferred embodiments of this application and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in this application Within the scope of protection.

Claims (14)

一种图像抓拍方法,其特征在于,所述方法包括:An image capture method, characterized in that the method includes: 采集当前视频帧;Collect the current video frame; 对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中的人脸目标图像;Performing face target detection on the current video frame to determine the face target image in the current video frame; 对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量;Performing quality analysis on the face target image to obtain the image quality of the face target image; 判断所述图像质量是否满足预设质量条件;Determine whether the image quality meets the preset quality conditions; 若满足,则将所述人脸目标图像作为抓拍图像上传至比对系统。If satisfied, the face target image is uploaded to the comparison system as a captured image. 根据权利要求1所述的方法,其特征在于,在所述判断所述图像质量是否满足预设质量条件之后,所述方法还包括:The method according to claim 1, wherein after the judging whether the image quality satisfies a preset quality condition, the method further comprises: 针对任一人脸目标图像,若该人脸目标图像的图像质量不满足所述预设质量条件,则按照视频帧从先到后的顺序,获取下一视频帧作为当前视频帧;For any face target image, if the image quality of the face target image does not meet the preset quality condition, the next video frame is obtained as the current video frame in the order of first to last video frames; 确定所述当前视频帧与上一视频帧中同一人脸目标的人脸目标图像;Determining a face target image of the same face target in the current video frame and the previous video frame; 对所述当前视频帧中的人脸目标图像进行质量分析,得到该人脸目标图像的图像质量;Performing quality analysis on the face target image in the current video frame to obtain the image quality of the face target image; 返回执行所述判断所述图像质量是否满足预设质量条件的步骤,直至当前视频帧中人脸目标图像的图像质量满足所述预设质量条件时,将该人脸目标图像作为抓拍图像上传至比对系统。Return to performing the step of determining whether the image quality meets the preset quality condition until the image quality of the face target image in the current video frame meets the preset quality condition, upload the face target image as a captured image to Compare systems. 根据权利要求2所述的方法,其特征在于,所述确定所述当前视频帧与上一视频帧中同一人脸目标的人脸目标图像,包括:The method according to claim 2, wherein the determining the face target image of the same face target in the current video frame and the previous video frame includes: 对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中的人脸目标框;Performing face target detection on the current video frame to determine the face target frame in the current video frame; 将所述当前视频帧中的人脸目标框分别与上一视频帧中的各人脸目标框进行匹配;Matching the face target frames in the current video frame with each face target frame in the previous video frame; 若匹配度达到预设匹配度阈值,则给所述当前视频帧中的人脸目标框分配与所述上一视频帧中匹配度最大的人脸目标框相同的目标框标识;If the matching degree reaches a preset matching degree threshold, the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree; 确定所述当前视频帧中与所述上一视频帧具有相同目标框标识的人脸目标框中的人脸目标图像为同一人脸目标的人脸目标图像。It is determined that the face target image in the face target frame with the same target frame identifier in the current video frame and the previous video frame is the face target image of the same face target. 根据权利要求1或2所述的方法,其特征在于,在所述将所述人脸目标图像作为抓拍图像上传至比对系统之后,所述方法还包括:The method according to claim 1 or 2, wherein after the uploading of the face target image as a captured image to a comparison system, the method further comprises: 针对同一人脸目标,判断所述当前视频帧中所述人脸目标的人脸目标图像的图像质量是否优于已缓存的所述人脸目标的人脸目标图像的图像质量;For the same face target, determine whether the image quality of the face target image of the face target in the current video frame is superior to the cached image quality of the face target image of the face target; 若优于,则缓存所述当前视频帧中所述人脸目标的人脸目标图像及图像质量;If it is better, cache the face target image and image quality of the face target in the current video frame; 在确定所述人脸目标的跟踪结束后,将缓存的所述人脸目标的人脸目标图像作为抓拍图像上传至比对系统。After determining that the tracking of the face target ends, the cached face target image of the face target is uploaded to the comparison system as a captured image. 根据权利要求1所述的方法,其特征在于,所述对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量,包括:The method according to claim 1, wherein the quality analysis of the face target image to obtain the image quality of the face target image includes: 获取所述人脸目标图像的人脸目标质量参数,所述人脸目标质量参数至少包括:人脸遮挡程度、人脸清晰度和姿态中的一种或多种;Acquiring a face target quality parameter of the face target image, the face target quality parameter includes at least one or more of a degree of face occlusion, face clarity, and posture; 根据所述人脸目标质量参数,确定所述人脸目标图像的图像质量。The image quality of the face target image is determined according to the face target quality parameter. 根据权利要求1或5所述的方法,其特征在于,所述图像质量包括图像质量评分值;The method according to claim 1 or 5, wherein the image quality includes an image quality score value; 所述对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量,包括:The quality analysis of the face target image to obtain the image quality of the face target image includes: 对所述人脸目标图像进行质量评分,得到所述人脸目标图像的图像质量评分值;Performing a quality score on the face target image to obtain an image quality score value of the face target image; 所述判断所述图像质量是否满足预设质量条件,包括:The judging whether the image quality satisfies the preset quality condition includes: 判断所述图像质量评分值是否大于预设质量阈值;Determine whether the image quality score value is greater than a preset quality threshold; 若大于,则确定所述图像质量满足所述预设质量条件;If it is greater, it is determined that the image quality meets the preset quality condition; 若不大于,则确定所述图像质量不满足所述预设质量条件。If it is not greater, it is determined that the image quality does not satisfy the preset quality condition. 一种监控相机,其特征在于,包括监控摄像头、处理器和存储器,其中,A surveillance camera is characterized by comprising a surveillance camera, a processor and a memory, wherein, 所述监控摄像头,用于采集当前视频帧;The monitoring camera is used to collect the current video frame; 所述存储器,用于存放计算机程序;The memory is used to store computer programs; 所述处理器,用于执行所述存储器上所存放的计算机程序时,实现如下步骤:When the processor is used to execute the computer program stored on the memory, the following steps are implemented: 对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中的人脸目标图像;Performing face target detection on the current video frame to determine the face target image in the current video frame; 对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量;Performing quality analysis on the face target image to obtain the image quality of the face target image; 判断所述图像质量是否满足预设质量条件;Determine whether the image quality meets the preset quality conditions; 若满足,则将所述人脸目标图像作为抓拍图像上传至比对系统。If satisfied, the face target image is uploaded to the comparison system as a captured image. 根据权利要求7所述的监控相机,其特征在于,所述处理器执行所述存储器上所存放的计算机程序时,还实现如下步骤:The surveillance camera according to claim 7, wherein when the processor executes the computer program stored on the memory, the following steps are further implemented: 针对任一人脸目标图像,若该人脸目标图像的图像质量不满足所述预设质量条件,则按照视频帧从先到后的顺序,获取下一视频帧作为当前视频帧;For any face target image, if the image quality of the face target image does not meet the preset quality condition, the next video frame is obtained as the current video frame in the order of first to last video frames; 确定所述当前视频帧与上一视频帧中同一人脸目标的人脸目标图像;Determining a face target image of the same face target in the current video frame and the previous video frame; 对所述当前视频帧中的人脸目标图像进行质量分析,得到该人脸目标图像的图像质量;Performing quality analysis on the face target image in the current video frame to obtain the image quality of the face target image; 返回执行所述判断所述图像质量是否满足预设质量条件的步骤,直至当前视频帧中人脸目标图像的图像质量满足所述预设质量条件时,将该人脸目标图像作为抓拍图像上传至比对系统。Return to the step of determining whether the image quality meets the preset quality condition until the image quality of the face target image in the current video frame meets the preset quality condition, upload the face target image as a captured image to Compare systems. 根据权利要求8所述的监控相机,其特征在于,所述处理器在实现所述确定所述当前视频帧与上一视频帧中同一人脸目标的人脸目标图像的步骤时,具体实现如下步骤:The surveillance camera according to claim 8, characterized in that, when the processor implements the step of determining the face target image of the same face target in the current video frame and the previous video frame, the specific implementation is as follows step: 对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中的人脸目标框;Performing face target detection on the current video frame to determine the face target frame in the current video frame; 将所述当前视频帧中的人脸目标框分别与上一视频帧中的各人脸目标框进行匹配;Matching the face target frames in the current video frame with each face target frame in the previous video frame; 若匹配度达到预设匹配度阈值,则给所述当前视频帧中的人脸目标框分配与所述上一视频帧中匹配度最大的人脸目标框相同的目标框标识;If the matching degree reaches a preset matching degree threshold, the face target frame in the current video frame is assigned the same target frame identifier as the face target frame in the previous video frame with the highest matching degree; 确定所述当前视频帧中与所述上一视频帧具有相同目标框标识的人脸目标框中的人脸目标图像为同一人脸目标的人脸目标图像。It is determined that the face target image in the face target frame with the same target frame identifier in the current video frame and the previous video frame is the face target image of the same face target. 根据权利要求7或8所述的监控相机,其特征在于,所述处理器执行所述存储器上所存放的计算机程序时,还实现如下步骤:The surveillance camera according to claim 7 or 8, wherein when the processor executes the computer program stored on the memory, the following steps are further implemented: 针对同一人脸目标,判断所述当前视频帧中所述人脸目标的人脸目标图像的图像质量是否优于已缓存的所述人脸目标的人脸目标图像的图像质量;For the same face target, determine whether the image quality of the face target image of the face target in the current video frame is superior to the cached image quality of the face target image of the face target; 若优于,则缓存所述当前视频帧中所述人脸目标的人脸目标图像及图像质量;If it is better, cache the face target image and image quality of the face target in the current video frame; 在确定所述人脸目标的跟踪结束后,将缓存的所述人脸目标的人脸目标图像作为抓拍图像上传至比对系统。After determining that the tracking of the face target ends, the cached face target image of the face target is uploaded to the comparison system as a captured image. 根据权利要求7所述的监控相机,其特征在于,所述处理器在实现所述对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量的步骤时,具体实现如下步骤:The surveillance camera according to claim 7, characterized in that, when the processor implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, the specific implementation is as follows step: 获取所述人脸目标图像的人脸目标质量参数,所述人脸目标质量参数至少包括:人脸遮挡程度、人脸清晰度和姿态中的一种或多种;Acquiring a face target quality parameter of the face target image, the face target quality parameter includes at least one or more of a degree of face occlusion, face clarity, and posture; 根据所述人脸目标质量参数,确定所述人脸目标图像的图像质量。The image quality of the face target image is determined according to the face target quality parameter. 根据权利要求7或11所述的监控相机,其特征在于,所述图像质量包括图像质量评分值;The surveillance camera according to claim 7 or 11, wherein the image quality includes an image quality score value; 所述处理器在实现所述对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量的步骤时,具体实现如下步骤:When the processor implements the step of performing quality analysis on the face target image to obtain the image quality of the face target image, it specifically implements the following steps: 对所述人脸目标图像进行质量评分,得到所述人脸目标图像的图像质量评分值;Performing a quality score on the face target image to obtain an image quality score value of the face target image; 所述处理器在实现所述判断所述图像质量是否满足预设质量条件的步骤时,具体实现如下步骤:When the processor implements the step of judging whether the image quality satisfies the preset quality condition, it specifically implements the following steps: 判断所述图像质量评分值是否大于预设质量阈值;Determine whether the image quality score value is greater than a preset quality threshold; 若大于,则确定所述图像质量满足所述预设质量条件;If it is greater, it is determined that the image quality meets the preset quality condition; 若不大于,则确定所述图像质量不满足所述预设质量条件。If it is not greater, it is determined that the image quality does not satisfy the preset quality condition. 一种应用程序,其特征在于,用于在运行时执行:权利要求1-6任一项所述的方法。An application program, which is used to execute at runtime: the method according to any one of claims 1-6. 一种监控系统,其特征在于,包括监控相机及比对系统;A monitoring system, characterized in that it includes a monitoring camera and a comparison system; 所述监控相机,用于采集当前视频帧;对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中的人脸目标图像;对所述人脸目标图像进行质量分析,得到所述人脸目标图像的图像质量;判断所述图像质量是否满足预设质量条件;若满足,则将所述人脸目标图像作为抓拍图像上传至所述比对系统;The surveillance camera is used to collect the current video frame; perform face target detection on the current video frame to determine the face target image in the current video frame; perform quality analysis on the face target image to obtain all Describe the image quality of the face target image; determine whether the image quality meets the preset quality conditions; if satisfied, upload the face target image as a captured image to the comparison system; 所述比对系统,用于对所述抓拍图像进行比对报警。The comparison system is used for comparing and alarming the captured images.
PCT/CN2019/116202 2018-11-07 2019-11-07 Image capturing method, monitoring camera, and monitoring system Ceased WO2020094088A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811321514.1A CN111161206A (en) 2018-11-07 2018-11-07 Image capturing method, monitoring camera and monitoring system
CN201811321514.1 2018-11-07

Publications (1)

Publication Number Publication Date
WO2020094088A1 true WO2020094088A1 (en) 2020-05-14

Family

ID=70554712

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/116202 Ceased WO2020094088A1 (en) 2018-11-07 2019-11-07 Image capturing method, monitoring camera, and monitoring system

Country Status (2)

Country Link
CN (1) CN111161206A (en)
WO (1) WO2020094088A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507816A (en) * 2020-11-25 2021-03-16 杭州电子科技大学 Monitoring triggering method and system based on screen capture

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111652139A (en) * 2020-06-03 2020-09-11 浙江大华技术股份有限公司 Face snapshot method, snapshot device and storage device
CN111931712B (en) * 2020-09-18 2023-05-26 杭州海康威视数字技术股份有限公司 Face recognition method, device, snapshot machine and system
CN112532934B (en) * 2020-11-23 2022-11-15 国网山东省电力公司利津县供电公司 Multi-dimensional cooperative monitoring system
CN112597916B (en) * 2020-12-24 2021-10-26 中标慧安信息技术股份有限公司 Face image snapshot quality analysis method and system
CN113159822A (en) * 2021-02-26 2021-07-23 深圳前海微众银行股份有限公司 Method, apparatus, medium, and program product for statistics of store consumption data
CN113222638A (en) * 2021-02-26 2021-08-06 深圳前海微众银行股份有限公司 Architecture method, device, equipment, medium and program product of store visitor information
CN113038017A (en) * 2021-03-24 2021-06-25 重庆中科云从科技有限公司 Image acquisition method, image acquisition device and computer-readable storage medium
CN113329175A (en) * 2021-05-21 2021-08-31 浙江大华技术股份有限公司 Snapshot method, device, electronic device and storage medium
CN113033521B (en) * 2021-05-25 2022-05-10 南京甄视智能科技有限公司 Perimeter dynamic early warning method and system based on target analysis
CN114187325A (en) * 2021-12-07 2022-03-15 浙江宇视科技有限公司 Target object snapshot method and device, computer equipment and storage medium
CN114627319A (en) * 2022-05-16 2022-06-14 杭州闪马智擎科技有限公司 Target data reporting method and device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080267458A1 (en) * 2007-04-27 2008-10-30 University Of Ottawa Face image log creation
CN102201061A (en) * 2011-06-24 2011-09-28 常州锐驰电子科技有限公司 Intelligent safety monitoring system and method based on multilevel filtering face recognition
CN102262727A (en) * 2011-06-24 2011-11-30 常州锐驰电子科技有限公司 Method for monitoring face image quality at client acquisition terminal in real time
CN102799877A (en) * 2012-09-11 2012-11-28 上海中原电子技术工程有限公司 Method and system for screening face images
CN107633208A (en) * 2017-08-17 2018-01-26 平安科技(深圳)有限公司 The method and storage medium of electronic installation, face tracking

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4939968B2 (en) * 2007-02-15 2012-05-30 株式会社日立製作所 Surveillance image processing method, surveillance system, and surveillance image processing program
CN102930261A (en) * 2012-12-05 2013-02-13 上海市电力公司 Face snapshot recognition method
CN104239881B (en) * 2013-06-08 2020-04-24 杭州海康威视数字技术股份有限公司 Method and system for automatically discovering and registering target in monitoring video
CN104657817A (en) * 2015-01-28 2015-05-27 四川君逸易视科技有限公司 Face snapshotting, comparing, identifying, retrieving, and inquiring method for bank counter
CN105488478B (en) * 2015-12-02 2020-04-07 深圳市商汤科技有限公司 Face recognition system and method
CN105930822A (en) * 2016-05-11 2016-09-07 北京格灵深瞳信息技术有限公司 Human face snapshot method and system
CN113205020B (en) * 2017-07-10 2025-02-07 深圳市海清视讯科技有限公司 Camera and face information collection method based on camera face recognition
CN107958220B (en) * 2017-12-06 2021-03-12 杭州魔点科技有限公司 Face library compression processing method based on face recognition and intelligent device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080267458A1 (en) * 2007-04-27 2008-10-30 University Of Ottawa Face image log creation
CN102201061A (en) * 2011-06-24 2011-09-28 常州锐驰电子科技有限公司 Intelligent safety monitoring system and method based on multilevel filtering face recognition
CN102262727A (en) * 2011-06-24 2011-11-30 常州锐驰电子科技有限公司 Method for monitoring face image quality at client acquisition terminal in real time
CN102799877A (en) * 2012-09-11 2012-11-28 上海中原电子技术工程有限公司 Method and system for screening face images
CN107633208A (en) * 2017-08-17 2018-01-26 平安科技(深圳)有限公司 The method and storage medium of electronic installation, face tracking

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507816A (en) * 2020-11-25 2021-03-16 杭州电子科技大学 Monitoring triggering method and system based on screen capture

Also Published As

Publication number Publication date
CN111161206A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
WO2020094088A1 (en) Image capturing method, monitoring camera, and monitoring system
WO2020094091A1 (en) Image capturing method, monitoring camera, and monitoring system
CN109446942B (en) Target tracking method, device and system
CN104036236B (en) A kind of face gender identification method based on multiparameter exponential weighting
CN111723773B (en) Method and device for detecting carryover, electronic equipment and readable storage medium
CN107679504A (en) Face identification method, device, equipment and storage medium based on camera scene
CN109426785B (en) Human body target identity recognition method and device
WO2020252974A1 (en) Method and device for tracking multiple target objects in motion state
WO2019218824A1 (en) Method for acquiring motion track and device thereof, storage medium, and terminal
WO2020093829A1 (en) Method and device for real-time statistical analysis of pedestrian flow in open space
WO2020258978A1 (en) Object detection method and device
CN110795595A (en) Video structured storage method, device, device and medium based on edge computing
CN109905641B (en) A target monitoring method, device, equipment and system
KR102244878B1 (en) Cctv security system and method based on artificial intelligence
WO2021139049A1 (en) Detection method, detection apparatus, monitoring device, and computer readable storage medium
CN110163041A (en) Video pedestrian recognition methods, device and storage medium again
CN110706247A (en) Target tracking method, device and system
WO2020114116A1 (en) Pedestrian detection method based on dense crowds, and storage medium and processor
CN111553231B (en) Face snapshot and deduplication system, method, terminal and medium based on information fusion
CN110189355A (en) Safety evacuation channel occupancy detection method, device, electronic equipment and storage medium
CN110705469A (en) A face matching method, device and server
CN210072642U (en) Crowd abnormal behavior detection system based on video monitoring
CN109447022B (en) Lens type identification method and device
CN111046769A (en) Queuing time detection method, device and system
CN114582011A (en) A Pedestrian Tracking Method Based on Federated Learning and Edge Computing

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: 19881021

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: 19881021

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19881021

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19881021

Country of ref document: EP

Kind code of ref document: A1