WO2023045183A1 - 图像处理 - Google Patents
图像处理 Download PDFInfo
- Publication number
- WO2023045183A1 WO2023045183A1 PCT/CN2022/070905 CN2022070905W WO2023045183A1 WO 2023045183 A1 WO2023045183 A1 WO 2023045183A1 CN 2022070905 W CN2022070905 W CN 2022070905W WO 2023045183 A1 WO2023045183 A1 WO 2023045183A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- face
- image frame
- detection
- frame
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Definitions
- Embodiments of the present disclosure relate to the technical field of image processing, and in particular, to an image processing method and device.
- the embodiments of the present disclosure provide at least one image processing method and device.
- an image processing method comprising: acquiring an image frame to be processed; acquiring a scene type of the image frame, the scene type being determined according to a preliminary face detection result of the image frame; In a detection mode that matches the scene type of the image frame, face detection is performed on the image frame; occlusion processing is performed on the detected human face according to a preset occlusion mode.
- an image processing device comprising: an image frame acquisition module, configured to acquire an image frame to be processed; a scene type acquisition module, configured to acquire the scene type of the image frame, the scene type Determine according to the result of the initial inspection of the face of the image frame; the face detection module is used to detect the face of the image frame according to the detection method matched with the scene type of the image frame; the occlusion processing module uses The method is to occlude the detected faces according to the preset occlusion mode.
- an electronic device in a third aspect, includes a memory and a processor, the memory is used to store computer instructions executable on the processor, and the processor is used to implement the present disclosure when executing the computer instructions.
- a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the image processing method described in any embodiment of the present disclosure is implemented.
- a computer program product in a fifth aspect, includes a computer program/instruction, and when the computer program/instruction is executed by a processor, the image processing method described in any embodiment of the present disclosure is implemented.
- the image processing method provided by the embodiment of the present disclosure adaptively selects a processing method that matches the scene type for image frames of different scene types, so that when performing occlusion processing on the face in the image frame, the image frames of different scenes can be A more effective processing method for the image frame is adopted, so the human face can be blocked more accurately, the efficiency of image processing is improved, and the time cost of manual operation is reduced.
- Fig. 1 is a flowchart of an image processing method shown in at least one embodiment of the present disclosure
- Fig. 2 is a flowchart of another image processing method shown in at least one embodiment of the present disclosure
- Fig. 2A is a processing logic flowchart of an image processing method shown in at least one embodiment of the present disclosure
- Fig. 3 is a block diagram of an image processing device shown in at least one embodiment of the present disclosure
- Fig. 4 is a block diagram of another image processing device shown in at least one embodiment of the present disclosure.
- Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to at least one embodiment of the present disclosure.
- first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination.”
- Figure 1 is a flowchart of an image processing method shown in at least one embodiment of the present disclosure, including the following steps:
- step 102 an image frame to be processed is acquired, and the image frame includes at least one human face.
- the image frame to be processed can be a photo, a screenshot, or a frame in a video.
- This embodiment does not limit the specific manner of acquiring image frames.
- a Vlog video input by a user may be received, and a tool library such as FFmpeg and OpenCV may be used to deframe the video to obtain a plurality of image frames including at least one human face.
- a tool library such as FFmpeg and OpenCV may be used to deframe the video to obtain a plurality of image frames including at least one human face.
- a photo taken by a camera and containing a human face may be received.
- the processing in this embodiment may be occlusion processing, and occlusion processing is an image processing that can partially or completely hide the facial features of a person in an image frame, such as mosaic processing, covering with stickers, or Gaussian blur.
- step 104 the scene type of the image frame is acquired, and the scene type is determined according to the result of the preliminary face detection in the image frame.
- image frames are divided into different scene types, so as to select different image processing methods for image frames of different scene types.
- the scene type is determined according to the preliminary detection result of the human face in the image frame, and the preliminary detection result of the human face may include a detection frame corresponding to each human face.
- the result of the initial detection of the face can be obtained by using a lightweight neural network to perform preliminary detection of the face in the image frame.
- scenario types may include single-player scenarios and multiplayer scenarios.
- the number of detection frames corresponding to the faces that is, the number of faces, it may be determined whether the scene type of the image frame is a single-person scene or a multi-person scene.
- the scene type may include a sparse scene and a dense scene.
- the scene type of the image frame may be determined to be a sparse scene or a dense scene according to the distribution of the detection frames corresponding to the faces. Exemplarily, if the detection frames in the concentrated distribution exceed the preset number, it is judged that the scene type of the image frame is a dense scene; or, if the number of detection frames in the image frame is large but the detection frames in the concentrated distribution do not exceed If the number is preset, it is determined that the scene type of the image frame is a sparse scene.
- the scene type may include distant view and close view.
- the near view is larger and the far view is smaller, the characters in the image frame of the distant view are far away from the camera, and the area occupied by a single face is relatively small.
- the area is relatively large, so in this embodiment, the distant view and the near view are divided according to the size of the detection frame of the human face.
- obtaining the scene type of the image frame may be to conduct a preliminary inspection of the face in the acquired image frame to obtain the result of the preliminary detection of the face, and analyze and process the result of the preliminary detection of the face to obtain the scene type of the image frame; It may be that when the image frame to be processed is acquired, the image frame with the label of the scene type may be acquired, and the scene type of the image frame may be directly determined according to the label.
- obtaining the scene type of the image frame may be processed as follows:
- the target size of a preset number of initial face detection frames in the at least one initial face detection frame is greater than a preset threshold, determine that the scene type of the image frame is a close view; or,
- the target size of the preset number of initial face detection frames in the at least one initial face detection frame is smaller than or equal to a preset threshold, it is determined that the scene type of the image frame is a distant view.
- the preliminary detection of faces on the image frames can be performed through a pre-trained face detection model, and the face detection model here is called the first face detection model.
- the first face detection model may be a small neural network model, that is, the number of layers of the neural network model is relatively small, so that the processing speed of the model is faster.
- the image frame is input into the first face detection model, and the initial detection result of the human face is output, and the initial detection result of the human face includes information such as the size and/or confidence score of each initial face detection frame in at least one initial face detection frame, wherein, the confidence score indicates the probability that the image in the initial face detection frame belongs to a face image, and the higher the confidence score is, the more likely the image in the initial face detection frame is a face image.
- a preset number of initial face detection frames may be selected from the initial face detection frames, and a target size of the selected preset number of initial face detection frames may be determined.
- how to select the detection frame can be set by those skilled in the art according to actual needs, so that the judgment of the scene type of the image frame is more suitable for the actual application scene.
- the initial face detection frames can be sorted according to the confidence scores from large to small, and five initial face detection frames with the highest confidence scores are selected.
- five initial face detection frames are used as an example, and other numbers can also be selected;
- the initial face detection frame can be selected according to the position of the initial face detection frame in the image frame, for example, three initial face detection frames are selected at equal intervals from the leftmost to the rightmost, or selected at a fixed point position in the image frame
- the initial face detection frame it can also be selected according to the size of the initial face detection frame, the initial face detection frame is sorted from large to small, and four initial face detection frames are randomly selected or selected according to a certain rule.
- the target size of the selected initial face detection frame is judged.
- the size of the selected initial face detection frame may be calculated first to obtain a calculation result.
- the purpose of the calculation process is to obtain the distance of the face in the image frame according to the size of the selected initial face detection frame, so as to judge whether the image frame belongs to the distant view or the near view.
- the calculation process can be methods such as taking the average, taking the median, taking the root mean square, or randomly selecting.
- the size of the five selected initial face detection frames can be calculated by taking the size of the five initial face detection frames
- the average value, the target size of the preset number of initial face detection frames can be represented by the average value. If the average value is greater than the preset threshold, it is determined that the scene type of the image frame is a close view, otherwise it is determined that it is a distant view.
- step 106 face detection is performed on the image frame according to a detection method that matches the scene type of the image frame.
- detection methods matching different scene types are preset, so that a suitable detection method can be selected more specifically when detecting a human face.
- the detection method matching the single-person scene may be: performing image segmentation on the image frame to obtain the face contour or head contour of the single person;
- the detection method for matching a multi-person scene may be: performing face detection on an image frame to obtain multiple rectangular detection frames.
- the detection method matching the sparse scene can be: perform face detection on the image frame to obtain multiple detection frames; the detection method matching the dense scene can be Yes: Face detection is performed on the image frame, and a dense area containing multiple faces is obtained.
- this step may include the following processing:
- the key point extraction of the human head is performed on the image frame to obtain the key point coordinates of the human head in the image frame, so that subsequent occlusion is performed based on the detected key point coordinates of the human head deal with.
- face detection is performed on the image frame to obtain the detection frame of the face in the image frame and the corresponding face features, so that subsequent The face features in the face database are accurately compared to confirm whether occlusion processing is required.
- the face detection technology can detect the area of the face in the image and output a series of rectangular detection frames, but it does not perform well in the scene where the face presented in the image is too small, and the calculation speed is relatively slow. Slow and inaccurate recognition.
- the head point positioning technology can detect the position of the head in the image and output a key point in the center of the head. It performs better in the scene where the head area in the image is small, such as the distant view, and the positioning is more accurate. The positioning of the scene with a large head area is not accurate enough.
- the matching detection method can be: input the image frame into the pre-trained head (face) point positioning model, and the head key point is determined by the head point positioning model Extract and output the key point coordinates of each head.
- the key point coordinates can be represented by two numbers. For example, when the center of the coordinate axis is the point in the lower left corner of the image frame, the key point coordinates can be (18, 39), and the coordinate unit can be is a pixel, where the key point may be the center point of a human head.
- the matching detection method can be: input the image frame into the pre-trained face detection model, and the face detection model here is called the second face detection model.
- the image frame is input into the second face detection model, and the face detection result is output, and the face detection result includes a detection frame of each face in the image frame and corresponding face features.
- Each detection frame is represented by detection frame coordinates to describe the coordinate position of a rectangular frame in the image frame, and it can also be a frame of other shapes.
- a rectangular frame is taken as an example for illustration, and the coordinates of the detection frame can be represented by four numbers.
- the four numbers can be the coordinates of the upper left corner and the lower right corner of the rectangular frame.
- the coordinates of the detection frame can be (23, 75), (57, 46), or written as (23, 75, 57, 46).
- the four numbers can also be the coordinates of the lower left and upper right corners of the rectangle.
- the coordinates of the detection frame may also use other representations, such as eight numbers, which is not limited in this embodiment.
- the unit of coordinates may be pixels.
- the second face detection model may be a large-scale neural network model, that is, the neural network model has a relatively large number of layers, so that the obtained face detection result is more accurate.
- the size of the second face detection model is relatively smaller than that of the first face detection model, that is, the number of neural network layers of the second face detection model is often smaller than that of the first face detection model.
- the number of network layers is large, and the calculation speed of the second face detection model is also slower than the first face detection model.
- the first face detection model takes 10ms to process an image frame
- the second face detection model takes 100ms to process an image frame with the same specification.
- the first human face detection model and the second human face detection model may not have the above-mentioned restrictions, and those skilled in the art can select the required model according to actual needs, the first human face detection model and the second human face detection model
- the model can also be the same neural network model.
- the first face detection model and the second face detection model can be the same model, and for the image frame of the close-up mode, step 106 can be omitted, and the initial face detection frame determined in step 104 is directly used to perform the step 108 processing.
- step 108 occlusion processing is performed on the detected faces according to a preset occlusion mode.
- the preset occlusion mode may be a default occlusion mode, or may be set by a user.
- a selection instruction for an occlusion mode may be received, and the selection instruction is used to determine the occlusion mode to be used from at least one candidate occlusion mode.
- the occlusion mode to be selected includes at least one of the following: perform occlusion processing on all human faces, perform occlusion processing on human faces other than preset human faces, or perform occlusion processing on preset human faces.
- the preset human face may refer to a pre-stored human face in a human face database.
- the face in the image frame is occluded according to a preset occlusion mode.
- the area to be occluded can be determined according to the key point coordinates.
- the key point coordinates of the human head can be used as the center of the circle, a circle can be determined, and the range in the circle can be occluded, for example, the area in the circle can be mosaiced.
- the radius length corresponding to the size of the image frame can be selected. For example, when the size of the image frame is 1080p, the radius length generally uses a value in the range of 20 to 30 pixels, or it can be determined by those skilled in the art according to the actual situation. Requirements setting.
- regions to be occluded in other shapes may also be determined according to the key point coordinates, for example, rectangles, hexagons or irregular shapes.
- the coordinates of the key points can be used as the center of the sticker graphic to perform sticker coverage.
- occlusion processing is performed on the human face in the image frame according to a preset occlusion mode. After the detection frame of the face is detected, the area to be occluded can be determined according to the detection frame.
- the area within the detection frame may be directly occluded, or the detection frame may be scaled to determine the area to be occluded, or other means may be used to deform the detection frame to determine the area to be occluded.
- the occlusion process is to cover the face area with a sticker
- the corresponding relationship between the covered area of the sticker graphic and the detection frame can be preset, and the sticker is covered according to the corresponding relationship.
- the area in the contour is occluded; when a dense area containing multiple faces is detected, the entire dense area is occluded.
- the image processing method provided by the embodiment of the present disclosure adaptively selects a processing method that matches the scene type for image frames of different scene types, so that when performing occlusion processing on the face in the image frame, the image frames of different scenes can be A more effective processing method for the image frame is adopted, so the human face can be blocked more accurately, the efficiency of image processing is improved, and the time cost of manual operation is reduced.
- a face bank can be pre-configured, which contains the features of a plurality of pre-collected face images, and when the scene type of the image frame is close-range, the Face detection is performed on the frame and the face features corresponding to the detection frame are obtained.
- the occlusion processing is performed on the human face in the image frame according to the preset occlusion mode, which may be the following processing:
- the response When the face feature of the face is matched with the reference face in the face library, the face in the image frame is occluded; or, when the preset occlusion mode is matched with the face in the face library.
- occlusion processing is performed on a human face other than the reference human face, in response to the fact that the facial features of the human face do not match the reference human face in the face library, the occlusion processing is performed on the human face in the image frame.
- the face image in the detection frame can be input into the pre-trained face recognition model, and the face feature in the face image can be extracted by the face recognition model, and the extracted face feature can be compared with the face feature in the face database.
- the reference feature in the library is the face image with the highest similarity to the face feature, and it is determined that the face matches the face library. Otherwise, it can be considered that there is no matching result in the face database for the facial features of the human face, and it is determined that the human face does not match the human face database.
- the preset occlusion mode is to perform occlusion processing on the face images in the face library, perform occlusion processing on the faces with matching results in the image frames.
- the preset occlusion mode may also be set to perform occlusion processing on face images outside the face library, and at this time, perform occlusion processing on faces for which there is no matching result in the image frame. For example, when there is only a reporter's face image in the face database, all other people in the image frame except the reporter need to be occluded.
- the image processing method provided by the embodiments of the present disclosure can not only adaptively select a processing method that matches the scene type for image frames of different scene types, but also automatically perform face detection on the faces in the image frames and extract face features. , match the extracted face features with the face database, so as to selectively occlude the face, which can more accurately and flexibly occlude the face, improve the efficiency of image processing, and reduce manual operations time cost.
- Fig. 2 is a flow chart of another image processing method shown in at least one embodiment of the present disclosure.
- the method can occlude the faces in the video according to the selected occlusion mode. The same steps as the process of 1 will not be described in detail.
- step 202 a selection instruction of a shading mode is received, wherein the selection instruction is used to determine a shading mode to be used from at least one shading mode to be selected.
- the occlusion mode to be selected can be set by those skilled in the art according to actual needs.
- the occlusion mode to be selected includes at least one of the following: perform occlusion processing on all faces, perform occlusion processing on faces outside the face bank, or Mask the faces in the face library.
- the occlusion mode to be selected may also be: perform occlusion processing on the faces in the face database according to attributes, and also perform occlusion processing on the faces outside the face database.
- a face library may be preconfigured, and the face library may include reference features of face images of people whose faces need to be shown.
- the selected occlusion mode may be to perform occlusion processing on faces outside the face library.
- a face library may be pre-configured, and the face library may include reference features of face images of people who are prohibited from showing their faces.
- the selected occlusion mode may be to perform occlusion processing on the faces in the face database.
- each face image can also have an attribute of whether occlusion processing is required, and this attribute can be changed according to requirements. For example, if a person’s face needs to be occluded in a video, the person’s face image can be set to require occlusion processing attributes; in another video, a person’s face does not need to be occluded, you can Sets the person's face image to not require occlusion processing properties.
- the occlusion mode can be flexibly selected and the attributes of the face images in the face database can be configured to meet various practical needs.
- a default occlusion mode may also be set.
- the same occlusion mode can be applied to different scene types, and different occlusion modes can also be applied.
- step 204 deframe processing is performed on the video to obtain at least one image frame to be processed.
- a video to be processed uploaded by a user may be received, and the video may be disassembled into multiple image frames for subsequent frame-by-frame processing.
- step 206 the scene type of the image frame is acquired.
- step 208 the face in the image frame is detected according to the detection method matching the scene type of the image frame, and the detected face is occluded according to a preset occlusion mode.
- the occlusion processing can be mosaic processing
- the occlusion mode can be: perform occlusion processing on the faces in the face database according to the attributes, and also perform occlusion processing on the faces outside the human face database.
- the key points of the human head are extracted from the image frame, and the key point coordinates of the human head in the image frame are obtained, and the occlusion processing is determined according to the key point coordinates In the region, mosaic algorithm processing is performed on the region; in response to the scene type of the image frame being close-up, face detection is performed on the face in the image frame, the detection frame of the face in the image frame is obtained, and the detection frame of the face is extracted.
- step 210 at least one image frame that has undergone occlusion processing is synthesized into a target video.
- multiple image frames after the above steps can be combined according to the time sequence in the initial video to be processed, and the synthesized target video can be output. It is also possible to manually verify multiple image frames after the processing in the above steps, reprocess individual image frames that fail to be occluded, and synthesize the video after verification.
- FIG. 2A shows the processing logic flow of the image processing method in this example.
- the image processing method provided by the embodiments of the present disclosure can automatically and adaptively select a detection method that matches the scene type for image frames of different scene types in a video, so that when detecting faces in image frames, different The image frame of the scene adopts a more effective detection method for the image frame; you can also set the occlusion mode, and perform occlusion processing or not processing according to the face database, which can more accurately occlude the face, which greatly improves the video post-production. Efficiency, reducing manpower input.
- Figure 3 is a block diagram of an image processing device shown in at least one embodiment of the present disclosure, the device includes: an image frame acquisition module 31, a scene type acquisition module 32, a face detection module 33 and occlusion processing Module 34.
- the image frame acquisition module 31 is configured to acquire image frames to be processed.
- the scene type acquiring module 32 is configured to acquire the scene type of the image frame, and the scene type is determined according to the result of the preliminary face detection in the image frame.
- the face detection module 33 is configured to perform face detection on the image frame according to a detection method that matches the scene type of the image frame.
- the occlusion processing module 34 is configured to perform occlusion processing on the detected faces according to a preset occlusion mode.
- the human face detection module 33 is specifically configured to: in response to the scene type of the image frame being a distant view, extract key points of the human head from the image frame to obtain the key points of the human head in the image frame coordinate;
- the occlusion processing module 34 is specifically configured to: perform occlusion processing on the detected human face according to a preset occlusion mode based on the key point coordinates of the human head.
- the face detection module 33 is specifically configured to: in response to the scene type of the image frame being close-up, perform face detection on the image frame to obtain the detected face in the image frame detection frame;
- the occlusion processing module 34 is specifically configured to: perform occlusion processing on the human face in the image frame according to a preset occlusion mode based on the detection frame.
- the face detection performed on the image frame obtains the detection frame of the face detected in the image frame and the face feature corresponding to the detection frame of the face, and the occlusion processing module 34.
- the preset occlusion mode based on the detection frame of the human face, it is specifically used to: combine the facial features of the human face with the preset face database for matching; when the preset occlusion mode is to perform occlusion processing on the face matched with the reference face in the human face database, responding to the facial features of the human face and the human face The reference face in the library is matched, and the face in the image frame is occluded; or when the preset occlusion mode is to perform occlusion processing on faces other than the reference face in the face library , performing occlusion processing on the face in the image frame in response to the fact that the face feature of the face does not match the reference face in the face database.
- the occlusion processing module 34 when used to match the facial features of the human face with the preset human face library, it is specifically used to: respond to determining that the detection of the human face If the size of the frame exceeds a preset value, the face feature of the face image in the face detection frame is extracted, and the face feature is matched with the preset face library.
- the scene type includes near view and distant view;
- the scene type acquisition module 32 is specifically configured to: perform a preliminary detection of a human face on the image frame to obtain a result of a preliminary detection of a human face, and the preliminary detection of a human face
- the result includes at least one initial face detection frame; when the target size of the preset number of initial face detection frames in the at least one initial face detection frame exceeds a preset threshold, determine that the scene type of the image frame is Close view; or, in the case that the target size of a preset number of initial face detection frames in the at least one initial face detection frame does not exceed a preset threshold, determine that the scene type of the image frame is a distant view.
- the image frame acquisition module 31 is specifically configured to: perform deframe processing on the video to obtain at least one image frame to be processed; the image frame acquisition module 31 is also configured to: process the occlusion At least one image frame of the synthesized target video.
- the device further includes: an occlusion mode selection module 30; the occlusion mode selection module 30 is configured to receive a selection instruction for the occlusion mode, and the selection instruction
- the occlusion mode to be used is determined from at least one occlusion mode to be selected; the occlusion mode to be selected includes at least one of the following items: performing occlusion processing on all human faces, and occluding human faces other than preset human faces Processing, and occlusion processing on the preset face.
- An embodiment of the present disclosure also provides an electronic device. As shown in FIG. The device is used to implement the image processing method described in any embodiment of the present disclosure when executing the computer instructions.
- An embodiment of the present disclosure further provides a computer program product, which includes a computer program/instruction, and when the computer program/instruction is executed by a processor, implements the image processing method described in any embodiment of the present disclosure.
- An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the image processing method described in any embodiment of the present disclosure is implemented.
- the storage medium may be a volatile or non-volatile computer-readable storage medium.
- the device embodiment since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment.
- the device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. It can be understood and implemented by those skilled in the art without creative effort.
Landscapes
- Image Processing (AREA)
- Collating Specific Patterns (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (13)
- 一种图像处理方法,其特征在于,所述方法包括:获取待处理的图像帧;获取所述图像帧的场景类型,所述场景类型根据所述图像帧的人脸初检结果确定;依据与所述图像帧的场景类型相匹配的检测方式,对所述图像帧进行人脸检测;按照预设的遮挡模式对检测到的人脸进行遮挡处理。
- 根据权利要求1所述的方法,其特征在于,依据与所述图像帧的场景类型相匹配的检测方式,对所述图像帧进行人脸检测,包括:响应于所述图像帧的场景类型为远景,对所述图像帧进行人头关键点提取,得到所述图像帧中人头的关键点坐标;按照预设的遮挡模式对检测到的人脸进行遮挡处理,包括:基于所述人头的关键点坐标,按照预设的遮挡模式对检测到的人脸进行遮挡处理。
- 根据权利要求1所述的方法,其特征在于,依据与所述图像帧的场景类型相匹配的检测方式,对所述图像帧进行人脸检测,包括:响应于所述图像帧的场景类型为近景,对所述图像帧进行人脸检测,得到所述图像帧中检测到的人脸的检测框;按照预设的遮挡模式对检测到的人脸进行遮挡处理,包括:基于所述人脸的检测框,按照预设的遮挡模式对所述图像帧中的人脸进行遮挡处理。
- 根据权利要求3所述的方法,其特征在于,响应于所述图像帧的场景类型为近景,对所述图像帧进行人脸检测,得到所述图像帧中检测到的人脸的检测框包括:响应于所述图像帧的场景类型为近景,对所述图像帧进行人脸检测,得到所述图像帧中检测到的人脸的检测框与所述人脸的检测框对应的人脸特征;基于所述人脸的检测框,按照预设的遮挡模式对所述图像帧中的人脸进行遮挡处理,包括:将所述人脸的人脸特征与预设的人脸库进行匹配;当预设的遮挡模式为对与所述人脸库中的参考人脸匹配的人脸进行遮挡处理时,响应于所述人脸的人脸特征与所述人脸库中的参考人脸匹配,对所述图像帧中的所述人脸进行遮挡处理;或当预设的遮挡模式为对所述人脸库中的参考人脸以外的人脸进行遮挡处理时,响应于所述人脸的人脸特征与所述人脸库中的参考人脸不匹配,对所述图像帧中的所述人脸进行遮挡处理。
- 根据权利要求4所述的方法,其特征在于,将所述人脸的人脸特征与预设的所述人脸库进行匹配,包括:确定所述人脸的检测框的大小是否大于预设值;响应于确定所述人脸的检测框的大小超过预设值,提取所述人脸的检测框中的人脸图像的人脸特征,并将所述人脸特征与预设的所述人脸库进行匹配。
- 根据权利要求1-5任一所述的方法,其特征在于,所述场景类型包括近景和远景;获取所述图像帧的场景类型,包括:对所述图像帧进行人脸初检,得到人脸初检结果,所述人脸初检结果包括至少一个初始人脸检测框;在所述至少一个初始人脸检测框中预设数量的初始人脸检测框的目标尺寸超过预设阈值的情况下,确定所述图像帧的场景类型为近景;或,在所述至少一个初始人脸检测框中所述预设数量的初始人脸检测框的目标尺寸不超过预设阈值的情况下,确定所述图像帧的场景类型为远景。
- 根据权利要求6所述的方法,其特征在于,所述方法还包括:将所述至少一个初始人脸检测框按照置信度分数从大到小排序;将置信度分数最高的N个初始人脸检测框确定为所述预设数量的初始人脸检测框,其中N等于所述预设数量。
- 根据权利要求1-7任一所述的方法,其特征在于,获取待处理的图像帧,包括:对视频进行解帧处理,得到至少一个待处理的图像帧;所述图像处理方法还包括:将已进行遮挡处理的至少一个图像帧合成目标视频。
- 根据权利要求1-8任一所述的方法,其特征在于,所述方法还包括:接收对遮挡模式的选择指令,所述选择指令用于从至少一种待选遮挡模式中确定所使用的遮挡模式;所述待选遮挡模式至少包括如下一项:对全部人脸进行遮挡处理、对预设的人脸之外的人脸进行遮挡处理、以及对预设的人脸进行遮挡处理。
- 一种图像处理装置,其特征在于,所述装置包括:图像帧获取模块,用于获取待处理的图像帧;场景类型获取模块,用于获取所述图像帧的场景类型,所述场景类型根据所述图像帧中的人脸初检结果确定;人脸检测模块,用于依据与所述图像帧的场景类型相匹配的检测方式,对所述图像帧进行人脸检测;遮挡处理模块,用于按照预设的遮挡模式对检测到的人脸进行遮挡处理。
- 一种电子设备,其特征在于,所述设备包括存储器、处理器,所述存储器用于存储可在处理器上运行的计算机指令,所述处理器用于在执行所述计算机指令时实现权利要求1至9任一所述的方法。
- 一种计算机程序产品,该产品包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现权利要求1至9任一所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现权利要求1至9任一所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111108402.X | 2021-09-22 | ||
| CN202111108402.XA CN113837065A (zh) | 2021-09-22 | 2021-09-22 | 一种图像处理方法和装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023045183A1 true WO2023045183A1 (zh) | 2023-03-30 |
Family
ID=78960319
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/070905 Ceased WO2023045183A1 (zh) | 2021-09-22 | 2022-01-10 | 图像处理 |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN113837065A (zh) |
| TW (1) | TW202314634A (zh) |
| WO (1) | WO2023045183A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113837065A (zh) * | 2021-09-22 | 2021-12-24 | 上海商汤智能科技有限公司 | 一种图像处理方法和装置 |
| CN114333030A (zh) * | 2021-12-31 | 2022-04-12 | 科大讯飞股份有限公司 | 图像处理方法、装置、设备及存储介质 |
| CN114445711B (zh) * | 2022-01-29 | 2023-04-07 | 北京百度网讯科技有限公司 | 图像检测方法、装置、电子设备和存储介质 |
| CN115240265B (zh) * | 2022-09-23 | 2023-01-10 | 深圳市欧瑞博科技股份有限公司 | 用户智能识别方法、电子设备及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150310274A1 (en) * | 2014-04-25 | 2015-10-29 | Xerox Corporation | Method and system for automatically locating static occlusions |
| CN110119711A (zh) * | 2019-05-14 | 2019-08-13 | 北京奇艺世纪科技有限公司 | 一种获取视频数据人物片段的方法、装置及电子设备 |
| CN111416950A (zh) * | 2020-03-26 | 2020-07-14 | 腾讯科技(深圳)有限公司 | 视频处理方法、装置、存储介质及电子设备 |
| CN112016464A (zh) * | 2020-08-28 | 2020-12-01 | 中移(杭州)信息技术有限公司 | 检测人脸遮挡的方法、装置、电子设备及存储介质 |
| CN113837065A (zh) * | 2021-09-22 | 2021-12-24 | 上海商汤智能科技有限公司 | 一种图像处理方法和装置 |
-
2021
- 2021-09-22 CN CN202111108402.XA patent/CN113837065A/zh not_active Withdrawn
-
2022
- 2022-01-10 WO PCT/CN2022/070905 patent/WO2023045183A1/zh not_active Ceased
- 2022-03-01 TW TW111107373A patent/TW202314634A/zh unknown
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150310274A1 (en) * | 2014-04-25 | 2015-10-29 | Xerox Corporation | Method and system for automatically locating static occlusions |
| CN110119711A (zh) * | 2019-05-14 | 2019-08-13 | 北京奇艺世纪科技有限公司 | 一种获取视频数据人物片段的方法、装置及电子设备 |
| CN111416950A (zh) * | 2020-03-26 | 2020-07-14 | 腾讯科技(深圳)有限公司 | 视频处理方法、装置、存储介质及电子设备 |
| CN112016464A (zh) * | 2020-08-28 | 2020-12-01 | 中移(杭州)信息技术有限公司 | 检测人脸遮挡的方法、装置、电子设备及存储介质 |
| CN113837065A (zh) * | 2021-09-22 | 2021-12-24 | 上海商汤智能科技有限公司 | 一种图像处理方法和装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113837065A (zh) | 2021-12-24 |
| TW202314634A (zh) | 2023-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11107232B2 (en) | Method and apparatus for determining object posture in image, device, and storage medium | |
| US11430265B2 (en) | Video-based human behavior recognition method, apparatus, device and storage medium | |
| CN110569756B (zh) | 人脸识别模型构建方法、识别方法、设备和存储介质 | |
| CN108829900B (zh) | 一种基于深度学习的人脸图像检索方法、装置及终端 | |
| US10255507B2 (en) | Detection of an object in a distorted image | |
| US9898686B2 (en) | Object re-identification using self-dissimilarity | |
| TW202314634A (zh) | 影像處理方法、電子設備與計算機可讀儲存媒體 | |
| WO2019218824A1 (zh) | 一种移动轨迹获取方法及其设备、存储介质、终端 | |
| US9721387B2 (en) | Systems and methods for implementing augmented reality | |
| US20220262163A1 (en) | Method of face anti-spoofing, device, and storage medium | |
| US11861806B2 (en) | End-to-end camera calibration for broadcast video | |
| CN109410026A (zh) | 基于人脸识别的身份认证方法、装置、设备和存储介质 | |
| US8649612B1 (en) | Parallelizing cascaded face detection | |
| US10922531B2 (en) | Face recognition method | |
| CN112287867B (zh) | 一种多摄像头的人体动作识别方法及装置 | |
| US20130202159A1 (en) | Apparatus for real-time face recognition | |
| CN111444817B (zh) | 一种人物图像识别方法、装置、电子设备和存储介质 | |
| CN109711384A (zh) | 一种基于深度卷积神经网络的人脸识别方法 | |
| CN110852704B (zh) | 基于密集微小人脸识别的考勤方法、系统、设备及介质 | |
| US12190641B2 (en) | System for detecting face liveliness in an image | |
| CN113221767A (zh) | 训练活体人脸识别模型、识别活体人脸的方法及相关装置 | |
| WO2022135574A1 (zh) | 肤色检测方法、装置、移动终端和存储介质 | |
| CN110348272B (zh) | 动态人脸识别的方法、装置、系统和介质 | |
| CN113228105A (zh) | 一种图像处理方法、装置和电子设备 | |
| JP5552946B2 (ja) | 顔画像サンプル採取装置、顔画像サンプル採取方法、プログラム |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22871251 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22871251 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22871251 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 24.09.2024) |