[go: up one dir, main page]

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

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

Info

Publication number
WO2020094091A1
WO2020094091A1 PCT/CN2019/116219 CN2019116219W WO2020094091A1 WO 2020094091 A1 WO2020094091 A1 WO 2020094091A1 CN 2019116219 W CN2019116219 W CN 2019116219W WO 2020094091 A1 WO2020094091 A1 WO 2020094091A1
Authority
WO
WIPO (PCT)
Prior art keywords
face target
image
target
face
video frame
Prior art date
Application number
PCT/CN2019/116219
Other languages
French (fr)
Chinese (zh)
Inventor
王晶晶
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020094091A1 publication Critical patent/WO2020094091A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

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 Whenever the surveillance camera detects a face target, it will capture the face target. However, the face target generally appears continuously in the video, and the surveillance camera will capture the captured image in multiple consecutive video frames. All are uploaded to the comparison system, which brings huge pressure to the transmission and storage of the captured images and the data processing of the comparison system.
  • the comparison system can receive the captured image at a fixed frequency , Greatly reducing the number of captured images uploaded by the surveillance camera to the comparison system.
  • the face target may be poorly recognizable due to blurring, occlusion, and other reasons. If the recognizable face target in each captured image received by the system is If it is poor, it will affect the similarity of the comparison, causing false alarms or false negatives, resulting in lower accuracy of the comparison results.
  • 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 with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
  • the face target image with the best image quality in the preset capture interval is uploaded to the comparison system as the captured image of the specified face target
  • the method also includes:
  • the same face target in the current video frame and the previous video frame is determined.
  • the method of determining the image quality includes:
  • the image quality of the face target image is determined.
  • uploading the face target image with the best image quality within the preset snapshot interval as the captured image of the specified face target to the comparison system includes:
  • the step of uploading the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system includes:
  • the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
  • the step of uploading the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system includes:
  • 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 with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
  • the same face target in the current video frame and the previous video frame is determined.
  • the image quality of the face target image is determined.
  • the processor implements the step of uploading the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system. Implement the following steps:
  • the processor implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system
  • the specific steps are as follows:
  • the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
  • the processor implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system
  • the specific steps are as follows:
  • 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 of each face target in the current video frame; for the specified face target, the preset capture interval is met in the current video frame , The face target image with the best image quality within the preset capture interval is uploaded to the comparison system as the captured image of the specified face target;
  • 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 of each face target in the current video frame For the specified face target, when the current video frame meets the preset capture interval, the face target image with the best image quality in the preset capture interval is uploaded to the comparison system as the captured image of the specified face target.
  • FIG. 1 is a schematic flowchart of an image capture method according to an embodiment of this application
  • FIG. 2 is a schematic diagram of a snapshot effect of an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a snapshot effect of another embodiment of the present application.
  • FIG. 4 is a schematic diagram of a snapshot effect according to another embodiment of the application.
  • FIG. 5 is a schematic diagram of a snapshot effect of yet another embodiment of the present application.
  • FIG. 6 is a schematic diagram of a process of capturing and compressing a face target image according to an embodiment of the present application
  • FIG. 7 is a schematic structural diagram of a surveillance camera according to an embodiment of this application.
  • FIG. 8 is a schematic structural diagram of a monitoring system according to an embodiment of the present 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 functions.
  • 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:
  • S101 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 video data of the surveillance scene.
  • 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.
  • S102 Perform face target detection on the current video frame to determine the face target image of each face target 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.
  • S103 For the specified face target, when the current video frame meets the preset capture interval, upload the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system.
  • the specified face target can be any face target previously detected.
  • the first video frame in which the specified face target is detected can be regarded as the start frame, and every subsequent frame is collected , The frame number is superimposed once. If the number of frames in the current video frame satisfies the preset snapshot interval, it means that the condition for grouping to determine the captured image is reached.
  • the face target with the best image quality within this preset snapshot interval needs to be The image is taken as the captured image of the specified face target.
  • the face target A For example, for the face target A, the face target A is detected for the first time in the fifth frame, then the fifth frame is recorded as the start frame of the face target A, and the current video frame is the 20th frame, that is, the person is detected In the fifteenth frame after face target A, if the preset capture interval is 15 frames, the face target image with the best image quality in these 15 frames can be used as the capture image of face target A.
  • the current video frame meets the preset snapshot interval, it is equivalent to grouping the video frame sequence that detects the specified face target.
  • the video frames in a snapshot interval are divided into a group, and the preset snapshot interval is the number of video frames. For example, if the snapshot interval is set to 10 frames, as shown in FIG. 2, the shaded part indicates that the image quality of the face target image in the video frame is the best.
  • the captured image includes: the corresponding face target specified in frames 1-10
  • the face target image with the highest image quality (the face target image corresponding to the face target in frame 6), and the face image with the highest image quality corresponding to the face target in frames 11-20 (frame 19
  • the face target image corresponding to the face target in frame) the face target image with the highest image quality corresponding to the face target in frames 21-30 (the face target image corresponding to the face target in frame 23),
  • the face image with the highest image quality corresponding to the face target in frames 31-40 (the face target image corresponding to the face target in frame 40), and the face image corresponding to the face target in frames 41-50
  • the face image with the highest image quality (Face target image corresponding to the face target in frame 47).
  • the preset snapshot interval may be fixed or variable. For example, in the first three periods, the preset snapshot interval may be set to 15 frames, and in the latter period, the preset snapshot interval may be set to 25 frames, and so on.
  • the image quality analysis of the face target images of each face target in the video is required to determine the face target image with the best image quality.
  • determine the image quality The specific way can be:
  • 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, etc., 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.
  • 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 current video frame, in the face target image in the face target frame, the face target A is completely frontal, the face is occluded by 1/10, and the definition is very high, the image quality of the face target image can be determined For superiority, or, to quantify the image quality, assign an image quality score of 9.
  • the way to determine the face target image with the best image quality may be to cache the determined face target image and image quality, and after collecting the current video frame, compare the face target image in the current video frame with the cached The image quality of the face target image. If the image quality of the face target image in the current video frame is better, the face target image in the current video frame is cached, overwriting the original face target image cached.
  • the face target image with the best image quality can be directly determined as the captured image; of course, the way to determine the face target image with the best image quality can also be every time a face is detected
  • the target image caches the face target image and image quality until it stops when the current video frame meets the preset capture interval, and then compares the whole image to find the face target image with the best image quality as the captured image. There is no specific limit here.
  • the snapshot camera can select a preset number of snapshot images from the snapshot images determined in each preset snapshot interval to upload, instead of uploading all the determined snapshot images All upload, the preset number can be one or more.
  • the preset number is usually set to multiple. For the selection of multiple captured images, it can be multiple captured images with the highest image quality. It may be a plurality of captured images determined first, and no specific limitation is made here.
  • the image capturing method provided by the embodiment of the present application may further perform the following steps:
  • the same face target in the current video and the previous video frame is determined.
  • the preset target tracking algorithm can be a currently popular intelligent algorithm by targeting the face target in each video frame Frame association generates target trajectories corresponding to different face targets.
  • the same target trajectory corresponds to the same face target. In this way, the same face target in the current video frame and the previous video frame can be determined according to the target trajectory.
  • the target frame can also be realized by matching the target frame after performing face target detection on the current video frame and the previous video frame. If the face target frame can be matched, it means that the two face target frames correspond to the same face target.
  • S103 may specifically be:
  • the preset snapshot interval is 1 frame, it means that the capture of the surveillance camera is actually a full-frame snapshot, that is, for the specified face target, as long as the face target image of the specified face target is detected in the current video frame, it will be The target image of the face is taken as a captured image, and the effect picture of the captured image is shown in FIG. 3.
  • S103 may specifically be:
  • the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
  • each preset snapshot interval needs to be captured.
  • the snapshot can be captured in increasing quality to ensure that the captured image uploaded to the comparison system is the best image quality of all captured images.
  • the optimal image quality is cached. If the image quality of the currently cached face target image is better than the previously cached faces Only the image quality of the target image is taken as the captured image of the face image currently cached, otherwise it will not be captured.
  • the face image with the highest image quality corresponding to the specified face target in frames 11-10 is the face target image corresponding to the specified face target in frame 6, then the person in frame 6
  • the face target image is taken as a captured image
  • the face image with the highest image quality corresponding to the specified face target in frames 11-20 is the face target image corresponding to the specified face target in frame 19, but specified in frame 19
  • the image quality of the face target image corresponding to the face target is inferior to the face target image corresponding to the specified face target in frame 6, so no snapshot is taken;
  • the face target image is the face target image corresponding to the face target specified in frame 23, and the image quality of the face target image corresponding to the face target specified in frame 23 is higher than the face target specified in frame 6 and frame 19
  • the corresponding face target image is better, so the face target image in frame 23 is taken as the captured image; the face image with the highest image quality corresponding to the specified face target in frames 31-40 is in frame 40
  • surveillance cameras that only need to upload a face target image with the best image quality as a captured image to the comparison system, so that the image quality of all face target images can be compared and the best image quality can be selected from It is better to upload as a captured image, or to use an overlay cache method.
  • the effect picture of the snapshot is shown in FIG. 5.
  • the image quality of the face target image corresponding to the specified face target in the 40th frame is the best. You only need to determine the face target image in the 40th frame as the captured image. Compare systems.
  • S103 may specifically be:
  • the captured image can be cached in the cache area, and then the entire compression upload is performed.
  • the process is shown in FIG. 6.
  • JPEG Joint Photographic Experts Group
  • the way to determine the end of the capture of the face target may be that the matching degree of the continuous multiple frames to the face target is very low, then the end of the capture of the face target may be determined, or the target tracking algorithm may be used to determine the loss of the face target , That is, a face target cannot be tracked in multiple consecutive frames, and it can be determined that the capture of the face target ends.
  • the monitoring camera collects the current video frame and performs face target detection on the current video frame to determine the face target image of each face target in the current video frame.
  • the current video frame meets the pre-
  • the snapshot interval is set, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
  • face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively.
  • the image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
  • an embodiment of the present application provides a surveillance camera. As shown in FIG. 7, it includes a surveillance camera 701, a processor 702, and a memory 703, where,
  • Surveillance camera 701 used to collect the current video frame
  • Memory 703 used to store computer programs
  • the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
  • processor 702 executes the computer program stored on the memory, the following steps may also be implemented:
  • the same face target in the current video frame and the previous video frame is determined.
  • processor 702 executes the computer program stored on the memory, the following steps may also be implemented:
  • the image quality of the face target image is determined.
  • the processor 702 when implementing the step of uploading the face target image with the best image quality in the preset snapshot interval as the captured image of the specified face target to the comparison system, the specific steps can be achieved as follows:
  • processor 702 implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system, the following steps may be specifically implemented:
  • the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
  • processor 702 implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system, the following steps may be specifically implemented:
  • 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 701, the processor 702, and the memory 703 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.
  • 7 is only an example of data transmission between the surveillance camera 701, the processor 702, and the memory 703 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 The face target image of each face target in the current video frame, for the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality in the preset snapshot interval is used as the designated person
  • the captured image of the face target is uploaded to the comparison 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 embodiment of the present application at runtime, so it can be achieved that the surveillance camera performs face targeting on the current video frame by collecting the current video frame Detection to determine the face target image of each face target in the current video frame. For the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality within the preset snapshot interval is used as The captured image of the designated face target is uploaded to the comparison 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 surveillance camera performs face target detection on the current video frame by collecting the current video frame to determine the current video frame.
  • the face target image of each face target, for the specified face target, when the current video frame meets the preset capture interval, the face target image with the best image quality within the preset capture interval is used as the snapshot of the specified face target
  • the image is uploaded to the comparison system.
  • the monitoring system may include a monitoring camera 810 and a comparison system 820;
  • Surveillance camera 810 used to collect the current video frame; perform face target detection on the current video frame to determine the face target image of each face target in the current video frame; for the specified face target, the current video frame meets the preset snapshot At intervals, the face target image with the best image quality within the preset capture interval is uploaded to the comparison system as the captured image of the specified face target;
  • the comparison system 820 is used for comparing and alarming the captured images.
  • the monitoring camera 810 can also be used to implement all the steps provided in the above method embodiments, which will not be repeated here.
  • the comparison system 820 compares and alarms the captured image, which may include: extracting the captured image feature, 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 and performs face target detection on the current video frame to determine the face target image of each face target in the current video frame.
  • the current video frame meets the pre-
  • the snapshot interval is set, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
  • face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively.
  • the image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

Provided in the embodiments of the present application are an image capturing method, a monitoring camera, and a monitoring system. The image capturing method comprises: collecting a current video frame; performing human facial target detection on the current video frame to determine a human facial target image of each human facial target in the current video frame; and aiming at a designated human facial target, taking the human facial target image with optimal image quality within a preset capturing interval as a captured image of the designated human facial target when the current video frame satisfies the preset capturing interval, and uploading same to a comparison system. According to the present solution, it can be ensured that a comparison result of the comparison system has higher accuracy.

Description

一种图像抓拍方法、监控相机及监控系统Image capturing method, monitoring camera and monitoring system
本申请要求于2018年11月7日提交中国专利局、申请号为201811321515.6发明名称为“一种图像抓拍方法、监控相机及监控系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application filed on November 7, 2018 in the Chinese Patent Office, with the application number 201811321515.6 and the invention titled "An Image Capture Method, Surveillance Camera and Surveillance System" 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.
每当监控相机检测到人脸目标,就会对人脸目标进行抓拍,但是,人脸目标在视频中一般是连续出现的,监控相机就会将抓拍到的连续多个视频帧中的抓拍图像都上传至比对系统,给抓拍图像的传输、存储,以及比对系统的数据处理都带来了巨大的压力。Whenever the surveillance camera detects a face target, it will capture the face target. However, the face target generally appears continuously in the video, and the surveillance camera will capture the captured image in multiple consecutive video frames. All are uploaded to the comparison system, which brings huge pressure to the transmission and storage of the captured images and the data processing of the comparison system.
为了应对上述问题,相应的图像抓拍方法中,监控相机在检测到人脸目标后,每间隔一定数量的视频帧对人脸目标进行一次抓拍,则比对系统可以按照固定的频率接收到抓拍图像,大大减少了监控相机向比对系统上传的抓拍图像的数量。然而,监控相机上传的各抓拍图像中,人脸目标可能会因为模糊、被遮挡等原因,可识别性较差,如果比对系统接收到的每一个抓拍图像中人脸目标的可识别性都较差,则会影响比对的相似度,造成虚警或漏报问题,导致比对结果的准确性较低。In order to deal with the above problems, in the corresponding image capture method, after the surveillance camera detects the face target, the face target is captured every certain number of video frames, then the comparison system can receive the captured image at a fixed frequency , Greatly reducing the number of captured images uploaded by the surveillance camera to the comparison system. However, in each captured image uploaded by the surveillance camera, the face target may be poorly recognizable due to blurring, occlusion, and other reasons. If the recognizable face target in each captured image received by the system is If it is poor, it will affect the similarity of the comparison, causing false alarms or false negatives, resulting in lower accuracy of the comparison results.
发明内容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 of each face target in the current video frame;
针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。For the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
可选的,在针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤之前,该方法还包括:Optionally, when the current video frame meets the preset capture interval for the specified face target, the face target image with the best image quality in the preset capture interval is uploaded to the comparison system as the captured image of the specified face target Before the steps, the method also includes:
利用预设目标跟踪算法,对当前视频帧与上一视频帧进行目标框关联,生成不同人脸目标对应的目标轨迹;Use the preset target tracking algorithm to associate the target frame between the current video frame and the previous video frame to generate target trajectories corresponding to different facial targets;
根据各人脸目标对应的目标轨迹,确定当前视频帧与上一视频帧中的同一人脸目标。According to the target trajectory corresponding to each face target, the same face target in the current video frame and the previous video frame is determined.
可选的,图像质量的确定方式,包括:Optionally, the method of determining the image quality includes:
获取人脸目标图像的人脸目标质量参数;Obtain the face target quality parameters of the face target image;
根据人脸目标质量参数,确定人脸目标图像的图像质量。According to the face target quality parameter, the image quality of the face target image is determined.
可选的,若预设抓拍间隔为1,则将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤,包括:Optionally, if the preset snapshot interval is 1, uploading the face target image with the best image quality within the preset snapshot interval as the captured image of the specified face target to the comparison system includes:
将指定人脸目标在当前视频帧中的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。Upload the face target image of the specified face target in the current video frame to the comparison system as the captured image of the specified face target.
可选的,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤,包括:Optionally, the step of uploading the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system includes:
缓存预设抓拍间隔内,针对指定人脸目标的图像质量最优的人脸目标图像及最优的图像质量;Cache the face image with the best image quality and the best image quality for the specified face target within the preset snapshot interval;
判断当前缓存的人脸目标图像的图像质量是否优于之前缓存的各人脸目标图像的图像质量;Determine whether the image quality of the currently cached face target image is better than the image quality of each previously cached face target image;
若优于,则将当前缓存的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。If it is better, the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
可选的,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤,包括:Optionally, the step of uploading the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system includes:
将预设抓拍间隔内图像质量最优的人脸目标图像作为抓拍图像缓存至缓存区;Cache the face target image with the best image quality in the preset snapshot interval as the snapshot image to the cache area;
在确定指定人脸目标的抓拍结束后,对缓存区内的各抓拍图像进行视频压缩,得到压缩后的视频;After determining that the capture of the specified face target is completed, perform video compression on each captured image in the buffer area to obtain the compressed video;
将压缩后的视频上传至比对系统。Upload the compressed video to the comparison system.
第二方面,本申请实施例提供了一种监控相机,包括监控摄像头、处理器和存储器,其中,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 of each face target in the current video frame;
针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。For the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
可选的,在处理器执行存储器上所存放的计算机程序时,还实现如下步骤:Optionally, when the processor executes the computer program stored on the memory, the following steps are also implemented:
利用预设目标跟踪算法,对当前视频帧与上一视频帧进行目标框关联,生成不同人脸目标对应的目标轨迹;Use the preset target tracking algorithm to associate the target frame between the current video frame and the previous video frame to generate target trajectories corresponding to different facial targets;
根据各人脸目标对应的目标轨迹,确定当前视频帧与上一视频帧中的同一人脸目标。According to the target trajectory corresponding to each face target, the same face target in the current video frame and the previous video frame is determined.
可选的,在处理器执行存储器上所存放的计算机程序时,还实现如下步 骤:Optionally, when the processor executes the computer program stored on the memory, the following steps are also implemented:
获取人脸目标图像的人脸目标质量参数;Obtain the face target quality parameters of the face target image;
根据人脸目标质量参数,确定人脸目标图像的图像质量。According to the face target quality parameter, the image quality of the face target image is determined.
可选的,若预设抓拍间隔为1,则处理器在实现将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤时,具体实现如下步骤:Optionally, if the preset capture interval is 1, the processor implements the step of uploading the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system. Implement the following steps:
将指定人脸目标在当前视频帧中的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。Upload the face target image of the specified face target in the current video frame to the comparison system as the captured image of the specified face target.
可选的,处理器在实现将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤时,具体实现如下步骤:Optionally, when the processor implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system, the specific steps are as follows:
缓存预设抓拍间隔内,针对指定人脸目标的图像质量最优的人脸目标图像及最优的图像质量;Cache the face image with the best image quality and the best image quality for the specified face target within the preset snapshot interval;
判断当前缓存的人脸目标图像的图像质量是否优于之前缓存的各人脸目标图像的图像质量;Determine whether the image quality of the currently cached face target image is better than the image quality of each previously cached face target image;
若优于,则将当前缓存的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。If it is better, the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
可选的,处理器在实现将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤时,具体实现如下步骤:Optionally, when the processor implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system, the specific steps are as follows:
将预设抓拍间隔内图像质量最优的人脸目标图像作为抓拍图像缓存至缓存区;Cache the face target image with the best image quality in the preset snapshot interval as the snapshot image to the cache area;
在确定指定人脸目标的抓拍结束后,对缓存区内的各抓拍图像进行视频压缩,得到压缩后的视频;After determining that the capture of the specified face target is completed, perform video compression on each captured image in the buffer area to obtain the compressed video;
将压缩后的视频上传至比对系统。Upload the compressed video to the comparison system.
第三方面,本申请实施例提供了一种机器可读存储介质,机器可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现本申请实施例第一方面所提供的图像抓拍方法。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 of each face target in the current video frame; for the specified face target, the preset capture interval is met in the current video frame , The face target image with the best image quality within the preset capture interval is uploaded to the comparison system as the captured image of the specified face target;
比对系统,用于对抓拍图像进行比对报警。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 of each face target in the current video frame For the specified face target, when the current video frame meets the preset capture interval, the face target image with the best image quality in the preset capture interval is uploaded to the comparison system as the captured image of the specified face target. When the current video is collected, face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively. The image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
附图说明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 flowchart of an image capture method according to an embodiment of this application;
图2为本申请一实施例的抓拍效果示意图;2 is a schematic diagram of a snapshot effect of an embodiment of the present application;
图3为本申请另一实施例的抓拍效果示意图;3 is a schematic diagram of a snapshot effect of another embodiment of the present application;
图4为本申请又一实施例的抓拍效果示意图;4 is a schematic diagram of a snapshot effect according to another embodiment of the application;
图5为本申请再一实施例的抓拍效果示意图;5 is a schematic diagram of a snapshot effect of yet another embodiment of the present application;
图6为本申请实施例的人脸目标图像的抓拍、压缩流程示意图;6 is a schematic diagram of a process of capturing and compressing a face target image according to an embodiment of the present application;
图7为本申请实施例的监控相机的结构示意图;7 is a schematic structural diagram of a surveillance camera according to an embodiment of this application;
图8为本申请实施例的监控系统的结构示意图。8 is a schematic structural diagram of a monitoring system according to an embodiment of the present 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 functions.
为了保证比对系统的比对结果具有较高的准确性,本申请实施例提供了一种图像抓拍方法、监控相机、机器可读存储介质及监控系统。In order to ensure that the comparison results of the comparison system have 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.
如图1所示,本申请实施例所提供的一种图像抓拍方法,可以包括如下步骤:As shown in FIG. 1, an image capture method provided by an embodiment of the present application may include the following steps:
S101,采集当前视频帧。S101: 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 video data of the surveillance scene.
监控相机可以实时地对监控场景进行拍摄,得到监控场景的视频数据,视频数据中包括一帧一帧的视频帧以及采集到每一个视频帧的时间戳等。为了保证人脸目标图像的实时性,需要对采集到的当前视频帧进行处理。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.
S102,对当前视频帧进行人脸目标检测,确定当前视频帧中各人脸目标的人脸目标图像。S102: Perform face target detection on the current video frame to determine the face target image of each face target 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.
S103,针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。S103: For the specified face target, when the current video frame meets the preset capture interval, upload the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system.
指定人脸目标可以是之前检测到的任一个人脸目标,针对某一个指定人脸目标,可以记检测到该指定人脸目标的第一个视频帧为起始帧,之后每采集到一帧,就进行一次帧数的叠加,如果当前视频帧的帧数满足预设抓拍间 隔,则说明达到了分组确定抓拍图像的条件,需要将这一预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像。例如,针对人脸目标A,在第5帧第一次检测到该人脸目标A,则记第5帧为人脸目标A的起始帧,当前视频帧为第20帧,也就是检测到人脸目标A之后的第15帧,如果预设抓拍间隔为15帧,则可以将这15帧内图像质量最优的人脸目标图像作为人脸目标A的抓拍图像。The specified face target can be any face target previously detected. For a specified face target, the first video frame in which the specified face target is detected can be regarded as the start frame, and every subsequent frame is collected , The frame number is superimposed once. If the number of frames in the current video frame satisfies the preset snapshot interval, it means that the condition for grouping to determine the captured image is reached. The face target with the best image quality within this preset snapshot interval needs to be The image is taken as the captured image of the specified face target. For example, for the face target A, the face target A is detected for the first time in the fifth frame, then the fifth frame is recorded as the start frame of the face target A, and the current video frame is the 20th frame, that is, the person is detected In the fifteenth frame after face target A, if the preset capture interval is 15 frames, the face target image with the best image quality in these 15 frames can be used as the capture image of face target A.
在当前视频帧满足预设抓拍间隔时,相当于将检测指定人脸目标的视频帧序列进行了分组,一个抓拍间隔中的视频帧划分为一组,预设抓拍间隔即为视频帧的帧数,例如设置抓拍间隔为10帧,则如图2所示,阴影部分表示该视频帧中的人脸目标图像的图像质量最优,则抓拍图像包括:第1-10帧中指定人脸目标对应的图像质量最高的人脸目标图像(第6帧中该人脸目标对应的人脸目标图像)、第11-20帧中该人脸目标对应的图像质量最高的人脸目标图像(第19帧中该人脸目标对应的人脸目标图像)、第21-30帧中该人脸目标对应的图像质量最高的人脸目标图像(第23帧中该人脸目标对应的人脸目标图像)、第31-40帧中该人脸目标对应的图像质量最高的人脸目标图像(第40帧中该人脸目标对应的人脸目标图像),以及第41-50帧中该人脸目标对应的图像质量最高的人脸目标图像(第47帧中该人脸目标对应的人脸目标图像)。预设抓拍间隔可以是固定的,也可以是变化的,例如前三个周期,预设抓拍间隔可以设置为15帧,后一个周期,预设抓拍间隔可以设置为25帧等等。When the current video frame meets the preset snapshot interval, it is equivalent to grouping the video frame sequence that detects the specified face target. The video frames in a snapshot interval are divided into a group, and the preset snapshot interval is the number of video frames. For example, if the snapshot interval is set to 10 frames, as shown in FIG. 2, the shaded part indicates that the image quality of the face target image in the video frame is the best. Then the captured image includes: the corresponding face target specified in frames 1-10 The face target image with the highest image quality (the face target image corresponding to the face target in frame 6), and the face image with the highest image quality corresponding to the face target in frames 11-20 (frame 19 The face target image corresponding to the face target in frame), the face target image with the highest image quality corresponding to the face target in frames 21-30 (the face target image corresponding to the face target in frame 23), The face image with the highest image quality corresponding to the face target in frames 31-40 (the face target image corresponding to the face target in frame 40), and the face image corresponding to the face target in frames 41-50 The face image with the highest image quality (Face target image corresponding to the face target in frame 47). The preset snapshot interval may be fixed or variable. For example, in the first three periods, the preset snapshot interval may be set to 15 frames, and in the latter period, the preset snapshot interval may be set to 25 frames, and so on.
针对采集到的当前视频帧,需要对该视频中各人脸目标的人脸目标图像分别进行图像质量的分析,才可以确定出图像质量最优的人脸目标图像,可选的,确定图像质量的方式,具体可以为:For the current video frame collected, the image quality analysis of the face target images of each face target in the video is required to determine the face target image with the best image quality. Optionally, determine the image quality The specific way can be:
获取人脸目标图像的人脸目标质量参数;根据人脸目标质量参数,确定人脸目标图像的图像质量。Obtain the face target quality parameters of the face target image; determine the image quality of the face target image based on the face target quality parameters.
影响人脸目标图像的图像质量的因素有很多,例如人脸目标图像中人脸目标被遮挡的程度、人脸目标图像中人脸目标的成像清晰度、人脸目标图像中人脸目标的姿态等等。人脸目标在人脸目标图像中被遮挡的越少则图像质量越高、人脸目标在人脸目标图像中的成像越清晰则图像质量越高、人脸目标在人脸目标图像中正面越多则图像质量越高等等。当然,影响人脸目标图 像的图像质量的因素还有许多种,例如对比度、亮度等等,这里不再一一列举。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, etc., 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.
人脸目标质量参数是指影响人脸目标图像的图像质量的参数,主要包括人脸目标的姿态、被遮挡程度和成像清晰度等,在对人脸目标图像进行图像质量分析时,可以获取人脸目标的姿态信息、被遮挡程度和清晰度等人脸目标质量参数,基于不同人脸目标质量参数对图像质量的影响的综合考虑,得到人脸目标图像的图像质量。例如,在当前视频帧中,人脸目标框中的人脸目标图像中人脸目标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 current video frame, in the face target image in the face target frame, the face target A is completely frontal, the face is occluded by 1/10, and the definition is very high, the image quality of the face target image can be determined For superiority, or, to quantify the image quality, assign an image quality score of 9.
确定图像质量最优的人脸目标图像的方式,可以是将确定的人脸目标图像和图像质量进行缓存,在采集到当前视频帧后,比较当前视频帧中的人脸目标图像与已缓存的人脸目标图像的图像质量,如果当前视频帧中的人脸目标图像的图像质量更优,则缓存当前视频帧中的人脸目标图像,覆盖掉原来缓存的人脸目标图像,这样,在当前视频帧满足预设抓拍间隔时,可以直接确定出图像质量最优的人脸目标图像作为抓拍图像;当然,确定图像质量最优的人脸目标图像的方式,还可以是每检测到一个人脸目标图像就将该人脸目标图像和图像质量进行缓存,直至当前视频帧满足预设抓拍间隔时停止,再整体作比较,从中找出图像质量最优的人脸目标图像作为抓拍图像。这里不做具体限定。The way to determine the face target image with the best image quality may be to cache the determined face target image and image quality, and after collecting the current video frame, compare the face target image in the current video frame with the cached The image quality of the face target image. If the image quality of the face target image in the current video frame is better, the face target image in the current video frame is cached, overwriting the original face target image cached. When the video frame meets the preset capture interval, the face target image with the best image quality can be directly determined as the captured image; of course, the way to determine the face target image with the best image quality can also be every time a face is detected The target image caches the face target image and image quality until it stops when the current video frame meets the preset capture interval, and then compares the whole image to find the face target image with the best image quality as the captured image. There is no specific limit here.
可以立即将该抓拍图像上传至比对系统,保证比对系统的实时性;也可以将抓拍图像进行缓存,在人脸目标消失之后,再从缓存区中选择部分或者全部抓拍图像上传至比对系统,保证比对系统的准确性。You can immediately upload the captured image to the comparison system to ensure the real-time performance of the comparison system; you can also cache the captured image and select part or all of the captured image from the cache area to upload to the comparison after the face target disappears System to ensure the accuracy of the comparison system.
为了减少监控相机与比对系统之间的传输压力,抓拍相机可以从每个预设抓拍间隔内确定出的抓拍图像中选择预设数量个抓拍图像进行上传,而不 是将确定出的所有抓拍图像都上传,预设数量可以为1个或者多个。在实际应用中,如果仅抓拍了一张图像,而该抓拍图像的图像质量又不是特别高,可能无法支持比对系统的比对结果的高准确性,或者即便该抓拍图像的图像质量较高,也会因为人脸目标的丰富性太差,而影响比对结果,因此,通常设置预设数量为多个,对于多个抓拍图像的选择,可以是图像质量最高的多个抓拍图像、也可以是最先确定出的多个抓拍图像,这里不做具体的限定。In order to reduce the transmission pressure between the surveillance camera and the comparison system, the snapshot camera can select a preset number of snapshot images from the snapshot images determined in each preset snapshot interval to upload, instead of uploading all the determined snapshot images All upload, the preset number can be one or more. In practical applications, if only one image is captured, and the image quality of the captured image is not particularly high, it may not be able to support the high accuracy of the comparison result of the comparison system, or even if the image quality of the captured image is high Will also affect the comparison result because the richness of the face target is too poor. Therefore, the preset number is usually set to multiple. For the selection of multiple captured images, it can be multiple captured images with the highest image quality. It may be a plurality of captured images determined first, and no specific limitation is made here.
可选的,在S103之前,本申请实施例所提供的图像抓拍方法还可以执行如下步骤:Optionally, before S103, the image capturing method provided by the embodiment of the present application may further perform the following steps:
利用预设目标跟踪算法,对当前视频帧与上一视频帧进行目标框关联,生成不同人脸目标对应的目标轨迹;Use the preset target tracking algorithm to associate the target frame between the current video frame and the previous video frame to generate target trajectories corresponding to different facial targets;
根据各人脸目标对应的目标轨迹,确定当前视频与上一视频帧中的同一人脸目标。According to the target trajectory corresponding to each face target, the same face target in the current video and the previous video frame is determined.
对于不同的视频帧中同一个人脸目标的跟踪,可以是利用预设目标跟踪算法实现的,预设目标跟踪算法可以为目前较为流行的智能算法,通过对各视频帧中的人脸目标进行目标框关联,生成不同人脸目标对应的目标轨迹,同一条目标轨迹对应的就是同一个人脸目标,这样,根据目标轨迹就可以确定出当前视频帧与上一视频帧中的同一人脸目标。For the tracking of the same face target in different video frames, it can be achieved by using a preset target tracking algorithm. The preset target tracking algorithm can be a currently popular intelligent algorithm by targeting the face target in each video frame Frame association generates target trajectories corresponding to different face targets. The same target trajectory corresponds to the same face target. In this way, the same face target in the current video frame and the previous video frame can be determined according to the target trajectory.
当然,对于不同的视频帧中同一个人脸目标的跟踪,还可以是在对当前视频帧和上一视频帧进行人脸目标检测后,通过目标框匹配的方式来实现,两个视频帧中人脸目标框能够匹配上,则说明这两个人脸目标框对应的是同一个人脸目标。Of course, for tracking the same face target in different video frames, it can also be realized by matching the target frame after performing face target detection on the current video frame and the previous video frame. If the face target frame can be matched, it means that the two face target frames correspond to the same face target.
可选的,若预设抓拍间隔为1,则S103具体可以为:Optionally, if the preset snapshot interval is 1, S103 may specifically be:
将指定人脸目标在当前视频帧中的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。Upload the face target image of the specified face target in the current video frame to the comparison system as the captured image of the specified face target.
如果预设抓拍间隔为1帧,则说明监控相机的抓拍实际为全帧抓拍,也就是说,针对指定人脸目标,只要当前视频帧检测到指定人脸目标的人脸目标图像,就将该人脸目标图像作为抓拍图像,抓拍的效果图如图3所示。If the preset snapshot interval is 1 frame, it means that the capture of the surveillance camera is actually a full-frame snapshot, that is, for the specified face target, as long as the face target image of the specified face target is detected in the current video frame, it will be The target image of the face is taken as a captured image, and the effect picture of the captured image is shown in FIG. 3.
可选的,S103具体可以为:Optionally, S103 may specifically be:
缓存预设抓拍间隔内,针对指定人脸目标的图像质量最优的人脸目标图像及最优的图像质量;Cache the face image with the best image quality and the best image quality for the specified face target within the preset snapshot interval;
判断当前缓存的人脸目标图像的图像质量是否优于之前缓存的各人脸目标图像的图像质量;Determine whether the image quality of the currently cached face target image is better than the image quality of each previously cached face target image;
若优于,则将当前缓存的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。If it is better, the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
如果预设抓拍间隔大于1帧,则每个预设抓拍间隔都需要进行一次抓拍,这里可以采取质量递增的方式进行抓拍,以保证上传给比对系统的抓拍图像是所有抓拍图像中图像质量最好的若干个。针对指定人脸目标,每确定出图像质量最优的人脸目标图像,则进行缓存,并缓存最优的图像质量,如果当前缓存的人脸目标图像的图像质量优于之前缓存的各人脸目标图像的图像质量,才将当前缓存的人脸目标图像作为抓拍图像,否则就不抓拍。If the preset snapshot interval is greater than 1 frame, each preset snapshot interval needs to be captured. Here, the snapshot can be captured in increasing quality to ensure that the captured image uploaded to the comparison system is the best image quality of all captured images. Several good ones. For the specified face target, each time the face target image with the best image quality is determined, it is cached and the optimal image quality is cached. If the image quality of the currently cached face target image is better than the previously cached faces Only the image quality of the target image is taken as the captured image of the face image currently cached, otherwise it will not be captured.
如图4所示,第11-10帧中指定人脸目标对应的图像质量最高的人脸目标图像为第6帧中指定人脸目标对应的人脸目标图像,则将第6帧中的人脸目标图像作为抓拍图像;第11-20帧中指定人脸目标对应的图像质量最高的人脸目标图像为第19帧中指定人脸目标对应的人脸目标图像,但是,第19帧中指定人脸目标对应的人脸目标图像的图像质量比第6帧中指定人脸目标对应的人脸目标图像差,因此不抓拍;第21-30帧中指定人脸目标对应的图像质量最高的人脸目标图像为第23帧中指定人脸目标对应的人脸目标图像,且第23帧中指定人脸目标对应的人脸目标图像的图像质量比第6帧和第19帧中指定人脸目标对应的人脸目标图像更优,因此,将第23帧中的人脸目标图像作为抓拍图像;第31-40帧中指定人脸目标对应的图像质量最高的人脸目标图像为第40帧中指定人脸目标对应的人脸目标图像,且第40帧中指定人脸目标对应的人脸目标图像的图像质量比第6帧、第19帧和第23帧中指定人脸目标对应的人脸目标图像更优,因此,将第40帧中的人脸目标图像作为抓拍图像;第41-50帧中指定人脸目标对应的图像质量最高的人脸目标图像为第48帧中指定人脸目标对应的人脸目标图像,且第48帧中指定人脸目标对应的人脸目标图像的图像质量比第6帧、第19帧、第23帧和第40帧中指定人脸目标对应的人脸目标图像 差,因此不抓拍。As shown in FIG. 4, the face image with the highest image quality corresponding to the specified face target in frames 11-10 is the face target image corresponding to the specified face target in frame 6, then the person in frame 6 The face target image is taken as a captured image; the face image with the highest image quality corresponding to the specified face target in frames 11-20 is the face target image corresponding to the specified face target in frame 19, but specified in frame 19 The image quality of the face target image corresponding to the face target is inferior to the face target image corresponding to the specified face target in frame 6, so no snapshot is taken; the person with the highest image quality corresponding to the specified face target in frames 21-30 The face target image is the face target image corresponding to the face target specified in frame 23, and the image quality of the face target image corresponding to the face target specified in frame 23 is higher than the face target specified in frame 6 and frame 19 The corresponding face target image is better, so the face target image in frame 23 is taken as the captured image; the face image with the highest image quality corresponding to the specified face target in frames 31-40 is in frame 40 The corresponding face target Face target image, and the image quality of the face target image corresponding to the face target specified in frame 40 is better than the face target image corresponding to the face target specified in frames 6, 19, and 23; therefore, Use the face target image in frame 40 as the captured image; the face image with the highest image quality corresponding to the specified face target in frames 41-50 is the face target image corresponding to the specified face target in frame 48, And the image quality of the face target image corresponding to the specified face target in frame 48 is inferior to the face target image corresponding to the specified face target in frames 6, 19, 23, and 40, so it is not captured .
根据实际需求,还存在监控相机只需要将图像质量最优的一张人脸目标图像作为抓拍图像上传给比对系统,则可以比较所有的人脸目标图像的图像质量,从中选择出图像质量最优的作为抓拍图像上传,或者采用覆盖缓存的方式,始终缓存的是图像质量更优的一张人脸目标图像,直至人脸目标消失时,缓存的即为图像质量最优的人脸目标图像,将该人脸目标图像作为抓拍图像上传。抓拍的效果图如图5所示,第40帧中指定人脸目标对应的人脸目标图像的图像质量最优,则可以只需要将第40帧中的人脸目标图像确定为抓拍图像上传至比对系统。According to actual needs, there are also surveillance cameras that only need to upload a face target image with the best image quality as a captured image to the comparison system, so that the image quality of all face target images can be compared and the best image quality can be selected from It is better to upload as a captured image, or to use an overlay cache method. Always cache a face target image with better image quality. When the face target disappears, the cached face image is the face image with the best image quality. , Upload the face image as a captured image. The effect picture of the snapshot is shown in FIG. 5. The image quality of the face target image corresponding to the specified face target in the 40th frame is the best. You only need to determine the face target image in the 40th frame as the captured image. Compare systems.
可选的,S103具体可以为:Optionally, S103 may specifically be:
将预设抓拍间隔内图像质量最优的人脸目标图像作为抓拍图像缓存至缓存区;Cache the face target image with the best image quality in the preset snapshot interval as the snapshot image to the cache area;
在确定指定人脸目标的抓拍结束后,对缓存区内的各抓拍图像进行视频压缩,得到压缩后的视频;After determining that the capture of the specified face target is completed, perform video compression on each captured image in the buffer area to obtain the compressed video;
将压缩后的视频上传至比对系统。Upload the compressed video to the comparison system.
在确定抓拍图像之后,可以将抓拍图像缓存至缓存区,然后再进行整体的压缩上传,流程如图6所示,当确定指定人脸目标的抓拍结束后,也就是当确定指定人脸目标消失之后,对所有缓存的抓拍图像进行视频压缩,同一人脸目标虽然在不同的时刻具有不同的姿态,但是对于一段视频,背景等大部分区域相同,同一个人脸目标在不同视频帧之间具有相关性,因此通过对多张抓拍图像进行视频压缩,与传统的抓拍方法中对每张图像进行JPEG(Joint Photographic Experts Group,联合图像专家组)编码压缩相比,能够更加节约带宽,减少了传输和存储成本。After the captured image is determined, the captured image can be cached in the cache area, and then the entire compression upload is performed. The process is shown in FIG. 6. When the capture of the specified face target is completed, that is, when the specified face target is determined to disappear Afterwards, all cached captured images are compressed. Although the same face target has different postures at different moments, for a video, most areas such as the background are the same, and the same face target has correlation between different video frames. Therefore, by compressing multiple captured images with video, compared with JPEG (Joint Photographic Experts Group) encoding and compression for each image in the traditional capture method, it can save more bandwidth and reduce transmission and Storage cost.
确定人脸目标的抓拍结束的方式,可以是连续多帧对该人脸目标的匹配度都很低,则可以确定该人脸目标的抓拍结束,或者,通过目标跟踪算法,确定人脸目标丢失,即连续多帧无法跟踪到某一人脸目标,则可以确定该人脸目标的抓拍结束。The way to determine the end of the capture of the face target may be that the matching degree of the continuous multiple frames to the face target is very low, then the end of the capture of the face target may be determined, or the target tracking algorithm may be used to determine the loss of the face target , That is, a face target cannot be tracked in multiple consecutive frames, and it can be determined that the capture of the face target ends.
应用本实施例,监控相机通过采集当前视频帧,对当前视频帧进行人脸 目标检测,确定当前视频帧中各人脸目标的人脸目标图像,针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为该指定人脸目标的抓拍图像上传至比对系统。在采集到当前视频时,对当前视频帧进行人脸目标检测,并且在当前视频帧满足预设抓拍间隔时,针对指定人脸目标,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统,相当于对检测指定人脸目标的视频帧序列进行了分组,可以实现在不同的抓拍间隔内分别对指定人脸目标进行抓拍,抓拍图像的图像质量在抓拍间隔内最优,保证监控相机向比对系统上传的是多张图像质量较高的抓拍图像,并且这些抓拍图像由于在不同的时间间隔内,并不是集中在某一个时间段,具有较高的丰富性,保证了人脸目标的可识别性,进而保证了比对系统的比对结果具有较高的准确性。Applying this embodiment, the monitoring camera collects the current video frame and performs face target detection on the current video frame to determine the face target image of each face target in the current video frame. For the specified face target, the current video frame meets the pre- When the snapshot interval is set, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target. When the current video is collected, face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively. The image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
相应于上述方法实施例,本申请实施例提供了一种监控相机,如图7所示,包括监控摄像头701、处理器702和存储器703,其中,Corresponding to the above method embodiment, an embodiment of the present application provides a surveillance camera. As shown in FIG. 7, it includes a surveillance camera 701, a processor 702, and a memory 703, where,
监控摄像头701,用于采集当前视频帧; Surveillance camera 701, used to collect the current video frame;
存储器703,用于存放计算机程序; Memory 703, used to store computer programs;
处理器702,用于执行存储器703上所存放的计算机程序时,实现如下步骤:When the processor 702 is used to execute the computer program stored on the memory 703, the following steps are implemented:
对当前视频帧进行人脸目标检测,确定当前视频帧中各人脸目标的人脸目标图像;Perform face target detection on the current video frame to determine the face target image of each face target in the current video frame;
针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。For the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target.
可选的,在处理器702执行存储器上所存放的计算机程序时,还可以实现如下步骤:Optionally, when the processor 702 executes the computer program stored on the memory, the following steps may also be implemented:
利用预设目标跟踪算法,对当前视频帧与上一视频帧进行目标框关联,生成不同人脸目标对应的目标轨迹;Use the preset target tracking algorithm to associate the target frame between the current video frame and the previous video frame to generate target trajectories corresponding to different facial targets;
根据各人脸目标对应的目标轨迹,确定当前视频帧与上一视频帧中的同一人脸目标。According to the target trajectory corresponding to each face target, the same face target in the current video frame and the previous video frame is determined.
可选的,在处理器702执行存储器上所存放的计算机程序时,还可以实现如下步骤:Optionally, when the processor 702 executes the computer program stored on the memory, the following steps may also be implemented:
获取人脸目标图像的人脸目标质量参数;Obtain the face target quality parameters of the face target image;
根据人脸目标质量参数,确定人脸目标图像的图像质量。According to the face target quality parameter, the image quality of the face target image is determined.
可选的,若预设抓拍间隔为1,则处理器702在实现将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤时,具体可以实现如下步骤:Optionally, if the preset snapshot interval is 1, the processor 702, when implementing the step of uploading the face target image with the best image quality in the preset snapshot interval as the captured image of the specified face target to the comparison system, The specific steps can be achieved as follows:
将指定人脸目标在当前视频帧中的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。Upload the face target image of the specified face target in the current video frame to the comparison system as the captured image of the specified face target.
可选的,处理器702在实现将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤时,具体可以实现如下步骤:Optionally, when the processor 702 implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system, the following steps may be specifically implemented:
缓存预设抓拍间隔内,针对指定人脸目标的图像质量最优的人脸目标图像及最优的图像质量;Cache the face image with the best image quality and the best image quality for the specified face target within the preset snapshot interval;
判断当前缓存的人脸目标图像的图像质量是否优于之前缓存的各人脸目标图像的图像质量;Determine whether the image quality of the currently cached face target image is better than the image quality of each previously cached face target image;
若优于,则将当前缓存的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统。If it is better, the currently cached face target image is uploaded to the comparison system as a captured image of the specified face target.
可选的,处理器702在实现将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统的步骤时,具体可以实现如下步骤:Optionally, when the processor 702 implements the step of uploading the face target image with the best image quality within the preset capture interval as the captured image of the specified face target to the comparison system, the following steps may be specifically implemented:
将预设抓拍间隔内图像质量最优的人脸目标图像作为抓拍图像缓存至缓存区;Cache the face target image with the best image quality in the preset snapshot interval as the snapshot image to the cache area;
在确定指定人脸目标的抓拍结束后,对缓存区内的各抓拍图像进行视频 压缩,得到压缩后的视频;After determining that the capture of the specified face target is completed, perform video compression on each captured image in the buffer area to obtain the compressed video;
将压缩后的视频上传至比对系统。Upload the compressed video to the comparison system.
上述存储器可以包括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.
监控摄像头701、处理器702和存储器703之间可以通过有线连接或者无线连接的方式进行数据传输,并且监控相机可以通过有线通信接口或者无线通信接口与比对系统进行通信。图7所示的仅为监控摄像头701、处理器702与存储器703之间通过总线进行数据传输的示例,不作为具体连接方式的限定。Data can be transmitted between the surveillance camera 701, the processor 702, and the memory 703 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. 7 is only an example of data transmission between the surveillance camera 701, the processor 702, and the memory 703 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 The face target image of each face target in the current video frame, for the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality in the preset snapshot interval is used as the designated person The captured image of the face target is uploaded to the comparison system. When the current video is collected, face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively. The image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
另外,本申请实施例还提供了一种机器可读存储介质,所述机器可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现本申请实施例所提供的图像抓拍方法的所有步骤。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 embodiment of the present application at runtime, so it can be achieved that the surveillance camera performs face targeting on the current video frame by collecting the current video frame Detection to determine the face target image of each face target in the current video frame. For the specified face target, when the current video frame meets the preset snapshot interval, the face target image with the best image quality within the preset snapshot interval is used as The captured image of the designated face target is uploaded to the comparison system. When the current video is collected, face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively. The image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
本申请实施例还提供了一种应用程序,用于在运行时执行:本申请实施例所提供的图像抓拍方法的所有步骤。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 surveillance camera performs face target detection on the current video frame by collecting the current video frame to determine the current video frame. The face target image of each face target, for the specified face target, when the current video frame meets the preset capture interval, the face target image with the best image quality within the preset capture interval is used as the snapshot of the specified face target The image is uploaded to the comparison system. When the current video is collected, face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively. The image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
本申请实施例还提供了一种监控系统,如图8所示,该监控系统可以包括监控相机810及比对系统820;An embodiment of the present application also provides a monitoring system. As shown in FIG. 8, the monitoring system may include a monitoring camera 810 and a comparison system 820;
监控相机810,用于采集当前视频帧;对当前视频帧进行人脸目标检测,确定当前视频帧中各人脸目标的人脸目标图像;针对指定人脸目标,在当前视频帧满足预设抓拍间隔时,将预设抓拍间隔内图像质量最优的人脸目标图像作为指定人脸目标的抓拍图像上传至比对系统; Surveillance camera 810, used to collect the current video frame; perform face target detection on the current video frame to determine the face target image of each face target in the current video frame; for the specified face target, the current video frame meets the preset snapshot At intervals, the face target image with the best image quality within the preset capture interval is uploaded to the comparison system as the captured image of the specified face target;
比对系统820,用于对抓拍图像进行比对报警。The comparison system 820 is used for comparing and alarming the captured images.
监控相机810还可以用于实现上述方法实施例所提供的所有步骤,这里不再一一赘述。The monitoring camera 810 can also be used to implement all the steps provided in the above method embodiments, which will not be repeated here.
比对系统820对抓拍图像进行比对报警,具体可以包括:对抓拍图像进行特征提取,并将提取的人脸特征和黑名单中的人脸特征进行比对,若比对的相似度大于一定阈值,则进行报警。The comparison system 820 compares and alarms the captured image, which may include: extracting the captured image feature, 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 and performs face target detection on the current video frame to determine the face target image of each face target in the current video frame. For the specified face target, the current video frame meets the pre- When the snapshot interval is set, the face target image with the best image quality in the preset snapshot interval is uploaded to the comparison system as the captured image of the specified face target. When the current video is collected, face target detection is performed on the current video frame, and when the current video frame meets the preset capture interval, for the specified face target, the face image with the best image quality within the preset capture interval Uploading the captured image of the specified face target to the comparison system is equivalent to grouping the video frame sequence for detecting the specified face target, which can be used to capture the specified face target in different capture intervals respectively. The image quality is optimal within the capture interval, to ensure that the surveillance camera uploads multiple capture images with higher image quality to the comparison system, and these capture images are not concentrated in a certain period of time because they are in different time intervals. It has a high degree of richness, which ensures the recognizability of face targets, and thus ensures that the comparison results of the comparison system have a high accuracy.
对于监控相机、机器可读存储介质、应用程序及监控系统实施例而言,由于其所涉及的方法内容基本相似于前述的方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the embodiments of the surveillance camera, the machine-readable storage medium, the application program, and the surveillance system, since the content of the methods involved is basically similar to the foregoing method embodiments, the description is relatively simple. Partial instructions are sufficient.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。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)

  1. 一种图像抓拍方法,其特征在于,所述方法包括:An image capture method, characterized in that the method includes:
    采集当前视频帧;Collect the current video frame;
    对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中各人脸目标的人脸目标图像;Perform face target detection on the current video frame to determine the face target image of each face target in the current video frame;
    针对指定人脸目标,在所述当前视频帧满足预设抓拍间隔时,将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统。For the specified face target, when the current video frame meets the preset snapshot interval, upload the face target image with the best image quality in the preset snapshot interval as the captured image of the specified face target to the comparison system.
  2. 根据权利要求1所述的方法,其特征在于,在所述针对指定人脸目标,在所述当前视频帧满足预设抓拍间隔时,将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统之前,所述方法还包括:The method according to claim 1, wherein, for the specified face target, when the current video frame satisfies a preset snapshot interval, the face with the best image quality in the preset snapshot interval is selected Before the target image is uploaded to the comparison system as a captured image of the specified face target, the method further includes:
    利用预设目标跟踪算法,对所述当前视频帧与上一视频帧进行目标框关联,生成不同人脸目标对应的目标轨迹;Use a preset target tracking algorithm to associate the target frame with the current video frame and the previous video frame to generate target trajectories corresponding to different face targets;
    根据各人脸目标对应的目标轨迹,确定所述当前视频帧与所述上一视频帧中的同一人脸目标。The same face target in the current video frame and the previous video frame is determined according to the target trajectory corresponding to each face target.
  3. 根据权利要求1或2所述的方法,其特征在于,所述图像质量的确定方式,包括:The method according to claim 1 or 2, wherein the method for determining the image quality includes:
    获取所述人脸目标图像的人脸目标质量参数;Acquiring the face target quality parameters of the face target image;
    根据所述人脸目标质量参数,确定所述人脸目标图像的图像质量。The image quality of the face target image is determined according to the face target quality parameter.
  4. 根据权利要求1所述的方法,其特征在于,若所述预设抓拍间隔为1,则所述将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统,包括:The method according to claim 1, wherein if the preset snapshot interval is 1, the face target image with the best image quality in the preset snapshot interval is used as the specified face target The captured images are uploaded to the comparison system, including:
    将所述指定人脸目标在所述当前视频帧中的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统。Upload the face target image of the specified face target in the current video frame to the comparison system as a captured image of the specified face target.
  5. 根据权利要求1所述的方法,其特征在于,所述将所述预设抓拍间隔 内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统,包括:The method according to claim 1, wherein the uploading of the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system includes:
    缓存所述预设抓拍间隔内,针对所述指定人脸目标的图像质量最优的人脸目标图像及最优的图像质量;Cache the face image with the best image quality and the best image quality for the specified face target within the preset snapshot interval;
    判断当前缓存的人脸目标图像的图像质量是否优于之前缓存的各人脸目标图像的图像质量;Determine whether the image quality of the currently cached face target image is better than the image quality of each previously cached face target image;
    若优于,则将所述当前缓存的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统。If it is better, the current cached face target image is uploaded to the comparison system as a captured image of the specified face target.
  6. 根据权利要求1所述的方法,其特征在于,所述将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统,包括:The method according to claim 1, wherein the uploading of the face target image with the best image quality in the preset capture interval as the captured image of the specified face target to the comparison system includes:
    将所述预设抓拍间隔内图像质量最优的人脸目标图像作为抓拍图像缓存至缓存区;Cache the face target image with the best image quality in the preset capture interval as the captured image in the cache area;
    在确定所述指定人脸目标的抓拍结束后,对所述缓存区内的各抓拍图像进行视频压缩,得到压缩后的视频;After determining that the capture of the designated face target is completed, perform video compression on each captured image in the buffer area to obtain a compressed video;
    将所述压缩后的视频上传至比对系统。Upload the compressed video to the comparison system.
  7. 一种监控相机,其特征在于,包括监控摄像头、处理器和存储器,其中,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:
    对所述当前视频帧进行人脸目标检测,确定所述当前视频帧中各人脸目标的人脸目标图像;Perform face target detection on the current video frame to determine the face target image of each face target in the current video frame;
    针对指定人脸目标,在所述当前视频帧满足预设抓拍间隔时,将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图 像上传至比对系统。For the specified face target, when the current video frame meets the preset snapshot interval, upload the face target image with the best image quality in the preset snapshot interval as the captured image of the specified face target to the comparison system.
  8. 根据权利要求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:
    利用预设目标跟踪算法,对所述当前视频帧与上一视频帧进行目标框关联,生成不同人脸目标对应的目标轨迹;Use a preset target tracking algorithm to associate the target frame with the current video frame and the previous video frame to generate target trajectories corresponding to different face targets;
    根据各人脸目标对应的目标轨迹,确定所述当前视频帧与所述上一视频帧中的同一人脸目标。The same face target in the current video frame and the previous video frame is determined according to the target trajectory corresponding to each face target.
  9. 根据权利要求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:
    获取所述人脸目标图像的人脸目标质量参数;Acquiring the face target quality parameters of the face target image;
    根据所述人脸目标质量参数,确定所述人脸目标图像的图像质量。The image quality of the face target image is determined according to the face target quality parameter.
  10. 根据权利要求7所述的监控相机,其特征在于,若所述预设抓拍间隔为1,则所述处理器在实现所述将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统的步骤时,具体实现如下步骤:The surveillance camera according to claim 7, wherein, if the preset snapshot interval is 1, the processor is implementing the face target image with the best image quality in the preset snapshot interval As the step of uploading the captured image of the designated face target to the comparison system, the following steps are specifically implemented:
    将所述指定人脸目标在所述当前视频帧中的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统。Upload the face target image of the specified face target in the current video frame to the comparison system as a captured image of the specified face target.
  11. 根据权利要求7所述的监控相机,其特征在于,所述处理器在实现所述将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统的步骤时,具体实现如下步骤:The surveillance camera according to claim 7, wherein the processor is configured to upload the face target image with the best image quality in the preset capture interval as the captured image of the specified face target When comparing the steps of the system, the specific steps are as follows:
    缓存所述预设抓拍间隔内,针对所述指定人脸目标的图像质量最优的人脸目标图像及最优的图像质量;Cache the face image with the best image quality and the best image quality for the specified face target within the preset snapshot interval;
    判断当前缓存的人脸目标图像的图像质量是否优于之前缓存的各人脸目标图像的图像质量;Determine whether the image quality of the currently cached face target image is better than the image quality of each previously cached face target image;
    若优于,则将所述当前缓存的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统。If it is better, the current cached face target image is uploaded to the comparison system as a captured image of the specified face target.
  12. 根据权利要求7所述的监控相机,其特征在于,所述处理器在实现所述将所述预设抓拍间隔内图像质量最优的人脸目标图像作为所述指定人脸目标的抓拍图像上传至比对系统的步骤时,具体实现如下步骤:The surveillance camera according to claim 7, wherein the processor is configured to upload the face target image with the best image quality in the preset capture interval as the captured image of the specified face target When comparing the steps of the system, the specific steps are as follows:
    将所述预设抓拍间隔内图像质量最优的人脸目标图像作为抓拍图像缓存至缓存区;Cache the face target image with the best image quality in the preset capture interval as the captured image in the cache area;
    在确定所述指定人脸目标的抓拍结束后,对所述缓存区内的各抓拍图像进行视频压缩,得到压缩后的视频;After determining that the capture of the designated face target is completed, perform video compression on each captured image in the buffer area to obtain a compressed video;
    将所述压缩后的视频上传至比对系统。Upload the compressed video to the comparison system.
  13. 一种应用程序,其特征在于,用于在运行时执行:权利要求1-6任一项所述的方法。An application program, which is used to execute at runtime: the method according to any one of claims 1-6.
  14. 一种监控系统,其特征在于,包括监控相机及比对系统;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 of each face target in the current video frame; for the specified face target, in the When the current video frame satisfies the preset snapshot interval, upload the face target image with the best image quality in the preset snapshot interval as the captured image of the specified face target to the comparison system;
    所述比对系统,用于对所述抓拍图像进行比对报警。The comparison system is used for comparing and alarming the captured images.
PCT/CN2019/116219 2018-11-07 2019-11-07 Image capturing method, monitoring camera, and monitoring system WO2020094091A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811321515.6A CN111163259A (en) 2018-11-07 2018-11-07 Image capturing method, monitoring camera and monitoring system
CN201811321515.6 2018-11-07

Publications (1)

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

Family

ID=70554668

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN111163259A (en)
WO (1) WO2020094091A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914781A (en) * 2020-08-10 2020-11-10 杭州海康威视数字技术股份有限公司 Method and device for processing face image
CN112036346A (en) * 2020-09-04 2020-12-04 贵州东冠科技有限公司 Real person management system based on personnel classification
CN112132022A (en) * 2020-09-22 2020-12-25 平安科技(深圳)有限公司 Face snapshot framework, face snapshot method, device, equipment and storage medium
CN112135190A (en) * 2020-09-23 2020-12-25 成都市喜爱科技有限公司 Video processing method, device, system, server and storage medium
CN112215156A (en) * 2020-10-13 2021-01-12 北京中电兴发科技有限公司 Face snapshot method and system in video monitoring
CN112699843A (en) * 2021-01-13 2021-04-23 上海云思智慧信息技术有限公司 Identity recognition method and system
CN113283305A (en) * 2021-04-29 2021-08-20 百度在线网络技术(北京)有限公司 Face recognition method and device, electronic equipment and computer readable storage medium
CN113438417A (en) * 2021-06-22 2021-09-24 上海云从汇临人工智能科技有限公司 Method, system, medium and device for capturing object to be identified by video
CN113674224A (en) * 2021-07-29 2021-11-19 浙江大华技术股份有限公司 A monitoring point management method and device
CN113869302A (en) * 2021-11-16 2021-12-31 云丁网络技术(北京)有限公司 Control method and device for image processing
CN113901875A (en) * 2021-09-10 2022-01-07 浪潮云信息技术股份公司 Face capture method, system and storage medium
CN114067421A (en) * 2022-01-17 2022-02-18 广东中运信息科技有限公司 Personnel duplicate removal identification method, storage medium and computer equipment
CN116205842A (en) * 2022-09-15 2023-06-02 上海可深信息科技有限公司 A real-time stream capture system and method based on target tracking
US20230215128A1 (en) * 2022-01-05 2023-07-06 Verizon Patent And Licensing Inc. Real-time occlusion removal using synthetic pixel generation
US12288604B2 (en) 2011-12-21 2025-04-29 Deka Products Limited Partnership Peristaltic pump

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084902B (en) * 2020-08-26 2024-05-14 武汉普利商用机器有限公司 Face image acquisition method and device, electronic equipment and storage medium
CN113329175A (en) * 2021-05-21 2021-08-31 浙江大华技术股份有限公司 Snapshot method, device, electronic device and storage medium
CN113205079B (en) * 2021-06-04 2023-09-05 北京奇艺世纪科技有限公司 Face detection method and device, electronic equipment and storage medium
CN113395452B (en) * 2021-06-24 2023-02-03 上海卓易科技股份有限公司 An automatic shooting method
CN113837114A (en) * 2021-09-27 2021-12-24 浙江力石科技股份有限公司 Method and system for acquiring face video clips in scenic spot
CN114419476A (en) * 2021-12-06 2022-04-29 浙江大华技术股份有限公司 Snapshot method, snapshot device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930261A (en) * 2012-12-05 2013-02-13 上海市电力公司 Face snapshot recognition method
CN104794459A (en) * 2015-05-07 2015-07-22 北京丰华联合科技有限公司 Video personnel identification method
CN105930822A (en) * 2016-05-11 2016-09-07 北京格灵深瞳信息技术有限公司 Human face snapshot method and system
US20160266348A1 (en) * 2013-11-07 2016-09-15 Samsung Electronics Co., Ltd. Method for creating a camera capture effect from user space in a camera capture system
CN107038400A (en) * 2016-02-04 2017-08-11 索尼公司 Face identification device and method and utilize its target person tracks of device and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049460A (en) * 2011-10-17 2013-04-17 天津市亚安科技股份有限公司 Video surveillance scene information classifying and storing method and search method
CN105007421B (en) * 2015-07-14 2019-02-12 Oppo广东移动通信有限公司 A kind of picture taking method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930261A (en) * 2012-12-05 2013-02-13 上海市电力公司 Face snapshot recognition method
US20160266348A1 (en) * 2013-11-07 2016-09-15 Samsung Electronics Co., Ltd. Method for creating a camera capture effect from user space in a camera capture system
CN104794459A (en) * 2015-05-07 2015-07-22 北京丰华联合科技有限公司 Video personnel identification method
CN107038400A (en) * 2016-02-04 2017-08-11 索尼公司 Face identification device and method and utilize its target person tracks of device and method
CN105930822A (en) * 2016-05-11 2016-09-07 北京格灵深瞳信息技术有限公司 Human face snapshot method and system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12288604B2 (en) 2011-12-21 2025-04-29 Deka Products Limited Partnership Peristaltic pump
CN111914781A (en) * 2020-08-10 2020-11-10 杭州海康威视数字技术股份有限公司 Method and device for processing face image
CN111914781B (en) * 2020-08-10 2024-03-19 杭州海康威视数字技术股份有限公司 Face image processing method and device
CN112036346A (en) * 2020-09-04 2020-12-04 贵州东冠科技有限公司 Real person management system based on personnel classification
CN112132022A (en) * 2020-09-22 2020-12-25 平安科技(深圳)有限公司 Face snapshot framework, face snapshot method, device, equipment and storage medium
CN112132022B (en) * 2020-09-22 2023-09-29 平安科技(深圳)有限公司 Face snapshot architecture and face snapshot method, device, equipment and storage medium thereof
CN112135190B (en) * 2020-09-23 2022-08-16 成都市喜爱科技有限公司 Video processing method, device, system, server and storage medium
CN112135190A (en) * 2020-09-23 2020-12-25 成都市喜爱科技有限公司 Video processing method, device, system, server and storage medium
CN112215156A (en) * 2020-10-13 2021-01-12 北京中电兴发科技有限公司 Face snapshot method and system in video monitoring
CN112215156B (en) * 2020-10-13 2022-10-14 北京中电兴发科技有限公司 Face snapshot method and system in video monitoring
CN112699843A (en) * 2021-01-13 2021-04-23 上海云思智慧信息技术有限公司 Identity recognition method and system
CN113283305A (en) * 2021-04-29 2021-08-20 百度在线网络技术(北京)有限公司 Face recognition method and device, electronic equipment and computer readable storage medium
CN113283305B (en) * 2021-04-29 2024-03-26 百度在线网络技术(北京)有限公司 Face recognition method, device, electronic equipment and computer readable storage medium
CN113438417A (en) * 2021-06-22 2021-09-24 上海云从汇临人工智能科技有限公司 Method, system, medium and device for capturing object to be identified by video
CN113674224A (en) * 2021-07-29 2021-11-19 浙江大华技术股份有限公司 A monitoring point management method and device
CN113674224B (en) * 2021-07-29 2024-11-08 浙江大华技术股份有限公司 A monitoring point management method and device
CN113901875A (en) * 2021-09-10 2022-01-07 浪潮云信息技术股份公司 Face capture method, system and storage medium
CN113869302B (en) * 2021-11-16 2022-07-15 云丁网络技术(北京)有限公司 Control method and device for image processing
CN113869302A (en) * 2021-11-16 2021-12-31 云丁网络技术(北京)有限公司 Control method and device for image processing
US20230215128A1 (en) * 2022-01-05 2023-07-06 Verizon Patent And Licensing Inc. Real-time occlusion removal using synthetic pixel generation
US12315212B2 (en) * 2022-01-05 2025-05-27 Verizon Patent And Licensing Inc. Real-time occlusion removal using synthetic pixel generation
CN114067421B (en) * 2022-01-17 2022-04-19 广东中运信息科技有限公司 Personnel duplicate removal identification method, storage medium and computer equipment
CN114067421A (en) * 2022-01-17 2022-02-18 广东中运信息科技有限公司 Personnel duplicate removal identification method, storage medium and computer equipment
CN116205842A (en) * 2022-09-15 2023-06-02 上海可深信息科技有限公司 A real-time stream capture system and method based on target tracking

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2020094091A1 (en) Image capturing method, monitoring camera, and monitoring system
WO2020094088A1 (en) Image capturing method, monitoring camera, and monitoring system
WO2020057355A1 (en) Three-dimensional modeling method and device
JP5213105B2 (en) Video network system and video data management method
WO2020252974A1 (en) Method and device for tracking multiple target objects in motion state
WO2020093829A1 (en) Method and device for real-time statistical analysis of pedestrian flow in open space
CN107679504A (en) Face identification method, device, equipment and storage medium based on camera scene
CN109711318B (en) Multi-face detection and tracking method based on video stream
US9521377B2 (en) Motion detection method and device using the same
WO2018177153A1 (en) Method for tracking pedestrian and electronic device
CN107346426A (en) A kind of face information collection method based on video camera recognition of face
CN113657434B (en) Face and body association method, system and computer-readable storage medium
CN111553231B (en) Face snapshot and deduplication system, method, terminal and medium based on information fusion
CN111325051A (en) A face recognition method and device based on face image ROI selection
CN109922311B (en) Monitoring method, device, terminal and storage medium based on audio and video linkage
CN112330544A (en) Image smear processing method, device, equipment and medium
CN110633648B (en) Face recognition method and system in natural walking state
CN108288025A (en) A kind of car video monitoring method, device and equipment
CN107103299B (en) A method of counting people in surveillance video
CN112183431A (en) Real-time pedestrian number statistical method and device, camera and server
JP2019135618A (en) Information processing apparatus, system, method of controlling information processing apparatus, and program
CN104125430B (en) Video moving object detection method, device and video monitoring system
CN103455998B (en) The detection method and device of shade in video image
CN108960165A (en) A kind of stadiums population surveillance method based on intelligent video identification technology
CN118644922A (en) A smart building security control method, system, terminal and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19881962

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 04.02.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19881962

Country of ref document: EP

Kind code of ref document: A1