WO2021026848A1 - Image processing method and device, and photographing apparatus, movable platform and storage medium - Google Patents

Image processing method and device, and photographing apparatus, movable platform and storage medium Download PDF

Info

Publication number
WO2021026848A1
WO2021026848A1 PCT/CN2019/100673 CN2019100673W WO2021026848A1 WO 2021026848 A1 WO2021026848 A1 WO 2021026848A1 CN 2019100673 W CN2019100673 W CN 2019100673W WO 2021026848 A1 WO2021026848 A1 WO 2021026848A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
processed
subject
target area
target
Prior art date
Application number
PCT/CN2019/100673
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 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/100673 priority Critical patent/WO2021026848A1/en
Priority to CN201980033697.3A priority patent/CN112204945A/en
Publication of WO2021026848A1 publication Critical patent/WO2021026848A1/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
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M3/00Portable or wheeled frames or beds, e.g. for emergency power-supply aggregates, compressor sets
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M7/00Details of attaching or adjusting engine beds, frames, or supporting-legs on foundation or base; Attaching non-moving engine parts, e.g. cylinder blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/04
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/07Target detection

Definitions

  • This application relates to the field of image processing technology, and in particular to an image processing method, equipment, photographing device, movable platform and storage medium.
  • the camera module is the core module for digital camera products and pan/tilt camera products, and it is also a standard configuration module for mobile devices such as mobile phones.
  • the present application provides an image processing method, image processing equipment, photographing device, movable platform and storage medium, aiming to solve the technical problem that irrelevant surrounding people cannot be excluded when taking pictures or shooting.
  • this application provides an image processing method, including:
  • Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  • the present application provides an image processing device, the image processing device includes: a memory and a processor;
  • the memory is used to store computer programs
  • the processor is used to execute the computer program and when executing the computer program, implement the following steps:
  • Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  • the present application provides a photographing device, the photographing device includes: a memory and a processor;
  • the memory is used to store computer programs
  • the processor is used to execute the computer program and when executing the computer program, implement the following steps:
  • Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  • the present application provides a movable platform, the movable platform includes a photographing device, and the photographing device includes a memory and a processor;
  • the memory is used to store computer programs
  • the processor is configured to execute the computer program and, when executing the computer program, implement the image processing method described in any one of the above.
  • the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor realizes any of the above Image processing method.
  • the embodiments of the application provide an image processing method, image processing equipment, photographing device, movable platform and storage medium, to obtain the target area of the subject in the image to be processed, and identify non-target areas other than the target area according to preset requirements
  • the non-subject object in the non-subject object is blurred to obtain the target image including the subject object and the non-subject object after the blur process. Since the non-subject object in the target image has been blurred, in this way, Exclude non-subject objects from the target image; on the one hand, it can prevent non-subject objects from being overwhelming and affecting the main object in the target image; on the other hand, it can avoid possible violations of non-subject objects and avoid unnecessary dispute.
  • FIG. 1 is a schematic flowchart of an embodiment of an image processing method according to the present application
  • FIG. 2 is an effect diagram after blurring and transition processing of the image to be processed using the image processing method of this application;
  • FIG. 3 is a schematic flowchart of another embodiment of the image processing method according to the present application.
  • FIG. 5 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 6 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 7 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 8 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 9 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 10 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 11 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 12 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 13 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • FIG. 14 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • 15 is a schematic flowchart of another embodiment of the image processing method of the present application.
  • Fig. 16 is a schematic structural diagram of an embodiment of an image processing device of the present application.
  • the embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process .
  • the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided Possible violations caused by the object, avoid unnecessary disputes.
  • the method can be adjusted according to the user's shooting needs, and by blurring the undesired objects in the image to be processed, the processing effect of beautiful composition and prominent main body is achieved.
  • This application can be applied to image processing scenes, and can also be applied to shooting scenes.
  • the present application can be applied to image processing equipment, shooting devices (for example, digital cameras, mobile equipment equipped with camera modules, etc.), image processing scenes and/or shooting scenes of a movable platform.
  • Movable platforms refer to various platforms that can move automatically or under controlled conditions, such as: PTZ (for example: PTZ camera, etc.), unmanned aerial vehicles, vehicles, unmanned vehicles, ground robots, and so on.
  • Fig. 1 is a schematic flowchart of an embodiment of an image processing method according to the present application. The method includes:
  • Step S101 Acquire an image to be processed, and acquire a target area corresponding to a subject object in the image to be processed.
  • the image to be processed refers to an image that has not been processed by the image processing method of the embodiment of the present application.
  • the number of images to be processed is not limited, and may be one frame, such as a single frame image obtained in a photographing scene, or multiple frames, such as multiple frames of video images obtained in a photographing scene.
  • the image to be processed may be an image that has been taken, or an image obtained in a preview state that has not yet been taken, or an image obtained during the shooting process, and so on. That is, this embodiment does not limit the manner of acquiring the image to be processed. In this manner, the application scope and application scenarios of the method of the embodiment of the present application can be expanded.
  • the main object refers to the main object in the image to be processed, which can be a person or other objects besides the person, such as vehicles, buildings, plants, animals, etc.
  • the main object can be more than one, for example: the main object is a single character, or the main object is a character and a vehicle next to the character, or the main object is a character, a vehicle and a puppy next to the character, or the main object is a vehicle and The puppy next to it, wait.
  • the main object usually includes characters.
  • the size, contour, and acquisition method of the target area are not limited, and can be determined according to specific practical applications. In this way, the application range can be further expanded.
  • the target area refers to the area corresponding to the main object in the image to be processed. It should be noted that the target area can completely include the entire subject object, for example: the subject object is a person, the target area includes the entire person; the target area can also include only a part of the subject object, for example: the subject object is a person, the target area Include only the character's head, or only the character's head and shoulders, etc.
  • the contour of the target area can match the contour of the main object, which just coincides with the contour of the main object; or it can not match the contour of the main object, just include the corresponding main object.
  • the target area can be generated automatically or adjusted manually; the target area can also be manually selected and generated, or adjusted manually.
  • Step S102 Identify the non-subject object in the non-target area according to the preset requirements, and the non-target area is the area outside the target area in the image to be processed.
  • the non-target area is relative to the target area and refers to the area outside the target area in the image to be processed.
  • the size and/or contour of the non-target area changes with the change of the size and/or contour of the target area.
  • Non-subject objects are relative to subject objects, and refer to objects that need to be blurred in non-target areas.
  • the scope and number of non-subject objects are not limited, and can be determined according to specific practical applications. In this way, the scope of application can be further expanded.
  • Non-subject objects can be people, or other objects besides people, such as vehicles, buildings, plants, animals, and so on.
  • the non-subject object can be more than one, for example: the non-subject object is a single character, or the non-subject object is a character and the vehicle next to the character, or the non-subject object is a character, the vehicle next to the character, or the non-subject object is Vehicles, etc.
  • non-subject objects since it is easy to infringe the portrait rights of others or expose private information such as the license plate numbers of other people's vehicles, non-subject objects usually include persons and/or vehicles and other objects that contain other people's private information.
  • the preset requirements refer to the preset requirements for identifying non-subject objects. For example: specify non-subject objects, how to identify non-subject objects? The characteristics of non-subject objects used for identification, the unique characteristics of non-subject objects, how to distinguish between non-subject objects and subject objects, etc.
  • the preset requirements are not limited here, and the corresponding requirements can be preset according to specific practical applications. In this way, the scope of application can be further expanded.
  • Step S103 Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  • Blurring non-subject objects refers to blurring the area occupied by non-subject objects, so that the non-subject objects become blurred.
  • the subject object is retained in the target image obtained in this way, and the non-subject object becomes blurred.
  • the blur processing includes, but is not limited to, one or more blur processing including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage.
  • Horizontal blur is an effect processing method that blurs from the horizontal direction; horizontal blur processing can highlight the performance effects of image phantom and dynamic.
  • Vertical blur is a method of processing blur from the vertical direction; vertical blur processing can highlight the dynamic, gloss, texture and other performance effects of the image.
  • Radial blur is a gradual blur effect processing method that radiates from the center to the outside; radial blur processing can highlight the shock of the image or highlight the performance effects of fast moving speed.
  • Oblique blur is a method of blurring from the oblique direction; oblique blur processing can highlight the coolness of the image, tilt rotation, shock, and the depth of field of the lens.
  • Mosaic is an effect that degrades the gradation details in a specific area of an image and causes color blocks to be disrupted.
  • Area filling is an effect processing method that completely fills a certain color or pattern in a closed area of an image.
  • Background overlay is an effect processing method that covers a specific area of an image with another background; the other background can be the background in the image or other backgrounds outside the image.
  • fuzzy processing methods can be selected for fuzzy processing according to actual conditions and processing effects to be achieved.
  • the embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
  • the specific instructions are as follows:
  • step S103 before obtaining the target image including the subject object and the blurred non-subject object, it may further include: performing transition processing on the edge of the target area; at this time, obtaining the target image including the subject object and the blurred object
  • the target image of the non-subject object may specifically include: obtaining the target image including the subject object after the transition processing is performed on the edge of the target area and the non-subject object after the blur processing is performed.
  • performing transition processing on the edge of the target area may include: performing one or more processing of feathering, sharpening, liquefying, and enhancing contrast on the edge of the target area.
  • Feathering processing is to blur the image, making the edges of the image more hazy, softer, and blurred, creating a sense of beauty. Sharpening is to improve the contrast and brightness of image pixels, make the image brighter, and make the edges look more prominent and sharp. Liquefaction is to make the image smooth and smooth, especially to create a perfect and beautiful portrait effect. Enhancing the contrast means to strengthen the contrast between the light and dark of the image, so that the bright part of the image will be brighter and the dark part will be darker; after the contrast is strengthened, the contrast between the original two objects will expand. In specific practical applications, different transition processing methods can be selected for transition processing according to actual conditions and processing effects to be achieved. Refer to FIG.
  • the image to be processed may be one frame, such as a photographing scene, or multiple frames, such as a photographing scene. If the image to be processed is of multiple frames, in step S101, obtaining the target area corresponding to the subject object in the image to be processed may include: obtaining the target area corresponding to the subject object in the multiple frames of image to be processed. Specifically, the target area corresponding to the subject object in each frame of the image to be processed can be obtained separately.
  • steps S101 may specifically include:
  • Sub-step S101a1 Obtain the target area corresponding to the main object in one frame of the image to be processed.
  • Sub-step S101a2 Use the area corresponding to the target area in one frame of the to-be-processed image as the target area corresponding to the subject object in the other multiple frames of the to-be-processed image.
  • the target area corresponding to the subject object in one frame of the to-be-processed image is acquired, the target area corresponds to the area corresponding to the subject object in the other multiple frames of the to-be-processed image, and the target area is in one of the frames to be processed.
  • the corresponding area in the image is used as the target area corresponding to the main object in the other multi-frame images to be processed. In this way, the process can be simplified and the processing speed can be accelerated. In addition to image processing, it is especially suitable for camera application scenarios.
  • the non-subject object is blurred, which specifically includes: selecting one or more frames of the image to be processed, and comparing one or more frames of the image to be processed Blur processing.
  • the target area can be automatically generated or adjusted manually; the target area can also be manually selected and generated or adjusted manually.
  • the contour of the target area can match or not match the contour of the main object.
  • the system automatically recognizes the main object and generates the original object frame.
  • the original object frame can be manually adjusted, or one of multiple original object frames can be selected as the target object frame, or the size of the object frame can be adjusted, or the object can be adjusted.
  • the outline of the frame matches the outline of the main object, or according to the actual situation, multiple adjustment processing procedures are combined to achieve the ultimate goal of obtaining the target area corresponding to the main object in the image to be processed.
  • step S101 obtaining the target area corresponding to the subject object in the image to be processed may include: sub-step S101b1, sub-step S101b2, sub-step S101b3, and sub-steps S101b4.
  • Sub-step S101b1 Identify the main object in the image to be processed according to the object recognition algorithm.
  • Sub-step S101b2 generate and display the original object frame according to the main object.
  • Sub-step S101b3 if the number of the original object frame is one, the original object frame is taken as the target object frame.
  • Sub-step S101b4 Use the area corresponding to the target object frame in the image to be processed as the target area.
  • Object recognition includes two tasks: classification and detection. Classification is used to determine whether an image contains a certain type of object, and detection requires marking the location and size of these objects.
  • Object recognition algorithms refer to algorithms for object recognition on images. Object recognition algorithms include but are not limited to: Convolutional Neural Networks (CNN), Regional Convolutional Neural Networks (Region CNN, RCNN), Faster-RCNN, Single Point Multi-Box Detector (Single Shot MultiBox Detector, SSD), etc.
  • the object recognition algorithm includes a face recognition algorithm.
  • the face recognition algorithm means that after detecting the face and locating the key feature points of the face, the main face area can be cropped out, and after preprocessing, it is fed into the back-end recognition algorithm; the recognition algorithm must complete the facial features Extract and compare with known faces in inventory to complete the final classification.
  • the system can automatically recognize the subject object according to the object recognition algorithm, and then generate and display the original object frame corresponding to the subject object.
  • the number of the original object frame is one. If the user has an opinion on the size and/or outline of the original object frame Without other requirements, the original object frame can be used as the target object frame, and the area corresponding to the target object frame in the image to be processed can be used as the target area. In this way, the user's selection process can be simplified and the processing speed can be accelerated. Using face recognition algorithms, in practical applications, its versatility and pertinence are stronger.
  • the user modifies the size of the target object frame in the image to be processed, before the sub-step S101b4, it may further include:
  • Sub-step S101b5 Obtain the size modification operation performed by the user on the target object frame in the image to be processed.
  • the function of the size modification operation is to modify the size of the target object frame.
  • Sub-step S101b6 Generate and display the modified object frame according to the size modification operation.
  • Sub-step S101b7 re-use the modified object frame as the target object frame.
  • the user can modify the size of the target object frame, which can meet user needs and improve user experience.
  • the contour of the target area matches the contour of the main object. 6 and 7, in order to match the contour of the target area with the contour of the main object, the user needs to modify the contour of the target object frame in the image to be processed. Then, before sub-step S101b4 in Fig. 4 (as shown in Fig. 6 ), or after the sub-step S101b7 in FIG. 5 (as shown in FIG. 7, that is, after the user adjusts the size of the target object frame, the user also wishes to continue to adjust its outline), it may also include:
  • Sub-step S101b8 Obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed.
  • the function of the contour modification operation is to modify the contour of the target object frame.
  • Sub-step S101b9 Generate and display the modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object.
  • Sub-step S101b10 Re-use the modified object frame as the target object frame.
  • the user can modify the contour of the target object frame so that the contour of the modified object frame matches the contour of the main object, which can focus on the main object, meet user needs, and improve user experience.
  • sub-step S101b2 it may further include:
  • Sub-step S101c1 If the number of original object frames is more than two, obtain a selection operation performed by the user on one of the original object frames in the image to be processed.
  • the function of the selection operation is to select one of the original object frames from more than two original object frames.
  • Sub-step S101c2 Generate and display a target object frame according to the selection operation.
  • Sub-step S101c3 Use the area corresponding to the target object frame in the image to be processed as the target area.
  • the system can automatically recognize the main object according to the object recognition algorithm, and then generate and display the original object frame corresponding to the main object.
  • the number of original object frames is more than two, and the user can select one of the original object frames as the target object frame. In this way, the selection process of some users can be simplified, and the processing speed can be partially accelerated.
  • the user modifies the size of the target object frame in the image to be processed, before the sub-step S101c3, it may further include:
  • Sub-step S101c4 Obtain the size modification operation performed by the user on the target object frame in the image to be processed.
  • Sub-step S101c5 generate and display the modified object frame according to the size modification operation.
  • Sub-step S101c6 Re-use the modified object frame as the target object frame.
  • the user can modify the size of the target object frame, which can meet user needs and improve user experience.
  • the contour of the target area matches the contour of the main object.
  • the user needs to modify the contour of the target object frame in the image to be processed. Then, before the substep S101c3 of Fig. 8 (such as Fig. 10), or after sub-step S101c6 of Fig. 9 (as shown in Fig. 11, that is, after the user adjusts the size of the target object frame, he also wishes to continue to adjust its outline), it may also include:
  • Sub-step S101c7 Obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed.
  • Sub-step S101c8 Generate and display the modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object.
  • Sub-step S101c9 Re-use the modified object frame as the target object frame.
  • the user can modify the contour of the target object frame so that the contour of the modified object frame matches the contour of the main object, which can focus on the main object, meet user needs, and improve user experience.
  • the target area can also be manually selected and generated, or manually adjusted.
  • the specific instructions are as follows:
  • step S101 obtaining a target area corresponding to a subject object in the image to be processed may include:
  • Sub-step S101d1 Acquire the user's frame selection operation on the subject object in the image to be processed.
  • the function of the frame selection operation is to use the frame to select the main object and determine the size of the frame.
  • Sub-step S101d2 Generate and display a target object frame according to the frame selection operation.
  • Sub-step S101d3 Use the area corresponding to the target object frame in the image to be processed as the target area.
  • the user directly selects the subject object in the image to be processed (on the one hand, the subject object can be selected, on the other hand, the size of the frame can be adjusted) to determine the target object frame. If there are no other requirements for the contour, the area corresponding to the target object frame in the image to be processed can be used as the target area. In this way, the participation enthusiasm of users can be fully utilized, user needs can be met, and user experience can be improved.
  • the contour of the target area matches the contour of the main object.
  • the user needs to modify the contour of the target object frame in the image to be processed. Then, before the sub-step S101d3, it may further include:
  • Sub-step S101d4 Obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed.
  • Sub-step S101d5 Generate and display the modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object.
  • Sub-step S101d6 re-use the modified object frame as the target object frame.
  • the user can modify the contour of the target object frame so that the contour of the modified object frame matches the contour of the main object, which can focus on the main object, meet user needs, and improve user experience.
  • the preset requirements include using ethnic characteristics to distinguish people from objects other than people, and/or using other object characteristics to distinguish between other objects and people.
  • Ethnic characteristics refer to the common genetic physical characteristics of races, such as torso ratio, height, limb length, facial contour, head shape, eye shape, nose shape, lip shape, and so on. Ethnic characteristics can distinguish people from other objects.
  • Other objects include but are not limited to other animate objects and other inanimate objects.
  • Other living objects include, but are not limited to, various pets.
  • Other inanimate objects include but are not limited to vehicles, buildings, etc.
  • Other object features can distinguish other objects and people, for example, the feature of a dog can distinguish a dog from a person, the feature of a vehicle can distinguish a vehicle from a person, and so on.
  • ethnic characteristics can be used to distinguish people from objects other than people, other object characteristics can also be used to distinguish other objects from people, or both ethnic characteristics and other object characteristics can be used to distinguish between people and other objects. Other objects outside.
  • recognizing the non-subject object in the non-target area according to the preset requirements may include: recognizing the non-subject object in the non-target area according to the preset ethnic characteristics and/or the preset features of other objects. This feature and/or preset other object features matching objects, and mark them as non-subject objects.
  • the recognition range is a non-target area
  • a non-subject object is an object in the non-target area that matches a preset ethnic feature and/or preset features of other objects.
  • a non-subject object is a person in a non-target area (preset ethnic characteristics)
  • a non-subject object is a vehicle in a non-target area (preset vehicle feature)
  • a non-subject object is a person and a vehicle in the non-target area (Preset race characteristics and preset vehicle characteristics).
  • the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different objects.
  • Race-specific features refer to the features that can distinguish different people in the image to be processed, and can include unique features that a person has different from other people, such as facial features, iris features, etc.; also Including the non-unique, short-term stable characteristics attached to the human body, such as: human body posture characteristics, clothing characteristics, jewelry characteristics, etc.
  • object-specific features refer to features that can distinguish different other objects in the image to be processed. For example: license plate number, vehicle color, car model, etc.
  • the specific characteristics of race can be used to distinguish different people, the specific characteristics of other objects can be used to distinguish different other objects, or the specific characteristics of race can be used to distinguish different people and the specific characteristics of other objects can be used to distinguish different other objects.
  • race-specific features and/or other object-specific features in this embodiment can be applied independently or in combination with the aforementioned race features and/or other object features.
  • the specific instructions are as follows:
  • identifying non-subjects in the non-target area according to preset requirements may include: sub-steps S102a1 and sub-step S102a2.
  • Sub-step S102a1 According to the preset ethnic characteristics and/or preset other object characteristics, identify all human objects and/or all other objects in the image to be processed that match the preset ethnic characteristics and/or preset other object characteristics Object.
  • Sub-step S102a2 Obtain the specific features of the subject object, identify all people and/or all other objects that do not match the specific features of the subject object, and mark them as non-subject objects, where the specific features of the subject object include Race-specific characteristics and/or other object-specific characteristics.
  • the recognition range is the entire image to be processed.
  • main characters such as grandfather, grandma, father, mother, children, close friends, etc.
  • main characters can be stored in advance, and one or more of them can be selected as the main body in specific application scenarios. character.
  • identifying non-subject objects in the non-target area may include: acquiring the specific features of the subject object, and identifying the non-subject objects in the non-target area Objects that do not match the specific characteristics of the subject object are marked as non-subject objects, where the specific characteristics of the subject object include race-specific characteristics and/or other object-specific characteristics.
  • the recognition range is a non-target area
  • a non-subject object is an object in the non-target area that does not match the specific feature of the subject object.
  • the racial specific features that are commonly used in general include one or more of the face, the posture of the human body, and the clothing.
  • the posture of the human body is formed by a long-term habit and is generally stable and not easy to change; clothing is also related to a person's personality, taste and other factors, and is generally stable and not easy to change.
  • identifying non-subject objects in the non-target area according to preset requirements may include:
  • Sub-step S102b1 Extract multiple frames of images to be processed including the subject object according to the preset duration.
  • Sub-step S102b2 judging the moving object from multiple frames of images to be processed, and marking the moving object as a non-subject object.
  • the subject object is static
  • the non-subject object is a moving object
  • the moving object is moving and moving. Its position in each frame of image is changing, which is in each frame of image.
  • the background of is also changing.
  • the moving object can be determined through multiple frames of images to be processed. Specifically, for example, using frame difference, optical flow, background subtraction, etc., it can be determined through multiple frames of images to be processed Out the moving object.
  • non-subject objects that are usually used more often include one or two of moving people and cars.
  • the flow of people involves the issue of portrait rights
  • the flow of cars involves the issue of personal privacy, which is a non-subject object that is usually concerned in image processing.
  • the method further includes:
  • the brightness of the current environment is detected, and the exposure mode is determined according to the brightness. Different brightness corresponds to different exposure modes. Specifically, when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode. In this way, when the ambient brightness is insufficient, the advantages of the long exposure mode can be fully utilized to obtain better image quality.
  • step S101 before obtaining the target area corresponding to the main object in the image to be processed, it may further include: a time period for prompting the user to stand still.
  • step S102 the identification of non-subject objects in the non-target area according to the preset requirements is completed within the time period when the user is quietly standing, that is, during the time when the user is quietly standing, the non-subject objects are identified according to the preset requirements.
  • Non-subject objects in the target area are identified according to the preset requirements.
  • the user is prompted for the time period when the user needs to stand still. This is a normal operation.
  • the user has developed the corresponding shooting habit.
  • This embodiment uses the shooting habit to complete the identification of non-subjects during the time period when the user is still standing. The flow of the object. In this way, the user can obtain the target image including the subject object and the non-subject object after the blur processing after issuing the shooting instruction, so that the user does not have time to wait for image processing, thereby improving the user experience.
  • FIG 16 is a schematic structural diagram of an embodiment of an image processing device of the present application. It should be noted that the image processing device of this embodiment can execute the steps in the above-mentioned image processing method. For a detailed description of related content, please refer to The part of the image processing method mentioned above will not be repeated here.
  • the image processing device 10 includes: a memory 11 and a processor 12; the memory 11 and the processor 12 are connected through a bus 13.
  • the processor 12 may be a micro control unit, a central processing unit, or a digital signal processor, and so on.
  • the memory 11 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk or a mobile hard disk, etc.
  • the memory 11 is used to store computer programs; the memory 11 can also store pre-entered racial characteristic data, other object characteristic data, racial specific characteristic data (such as face data, etc.), and other object specific characteristic data according to actual needs. , Etc., and provide the processor 12 for matching identification.
  • the processor 12 is used to execute a computer program and, when executing the computer program, implement the following steps:
  • the object is subjected to blur processing to obtain a target image including the subject object and the non-subject object after the blur processing.
  • the embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
  • the processor executes the computer program, the following steps are implemented: acquiring the target area corresponding to the subject object in the multiple frames of images to be processed.
  • the processor executes the computer program, it implements the following steps: obtain the target area corresponding to the subject object in one frame of the to-be-processed image; use the corresponding area of the target area in one of the to-be-processed images as the other multiple frames of the to-be-processed image The target area corresponding to the main object in the middle.
  • the processor executes the computer program, it implements the following steps: recognize the subject object in the image to be processed according to the object recognition algorithm; generate and display the original object frame according to the subject object; if the number of the original object frame is one, the original object The frame is used as the target object frame, and the corresponding area of the target object frame in the image to be processed is taken as the target area.
  • the processor executes the computer program, the following steps are implemented: if the number of original object frames is more than two, obtain the user's selection operation on one of the original object frames in the image to be processed; generate and display according to the selection operation Target object frame; the area corresponding to the target object frame in the image to be processed is taken as the target area.
  • object recognition algorithms include face recognition algorithms.
  • the processor executes the computer program, it implements the following steps: obtain the size modification operation performed by the user on the target object frame in the image to be processed; generate and display the modified object frame according to the size modification operation; change the modified object frame As the target object frame again.
  • the processor executes the computer program, it implements the following steps: obtain the user's frame selection operation on the subject object in the image to be processed; generate and display the target object frame according to the frame selection operation; correspond the target object frame in the image to be processed As the target area.
  • the processor executes the computer program, it implements the following steps: obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed; generate and display the modified object frame according to the contour modification operation to make the modified object frame
  • the outline of the object frame matches the outline of the main object; the modified object frame is used as the target object frame again.
  • the contour of the target area matches the contour of the main object.
  • the preset requirements include using ethnic characteristics to distinguish people from objects other than people, and/or using other object characteristics to distinguish other objects from people.
  • the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the non-target area matches the preset ethnic characteristics and/or the preset other object characteristics Object and mark it as a non-subject object.
  • the preset other object features include vehicle features.
  • the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
  • the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the image to be processed matches the preset ethnic characteristics and/or the preset other object characteristics
  • the owner object and/or all other objects obtain the specific characteristics of the subject object, identify all objects and/or all other objects that do not match the specific characteristics of the subject object, and mark them as non-subject objects, Among them, the specific characteristics of the subject object include the specific characteristics of race and/or the specific characteristics of other objects.
  • the processor when the processor executes the computer program, it implements the following steps: obtain the specific features of the subject object, identify the objects in the non-target area that do not match the specific features of the subject object, and mark them as non-subject objects, where the Specific characteristics include race-specific characteristics and/or other object-specific characteristics.
  • the ethnic specific characteristics include one or more of the face, the posture of the human body, and the clothing.
  • the main object is static, and the non-main object is moving.
  • the processor executes the computer program, it implements the following steps: extracts multiple frames of to-be-processed images including the subject object according to the preset duration; judges the moving object through the multiple-frames of to-be-processed image, and marks the moving object as non Subject object.
  • non-subject objects include one or two of moving people and cars.
  • the processor executes the computer program, the following steps are implemented: detecting the brightness of the current environment, and determining the exposure mode according to the brightness, and different brightnesses correspond to different exposure modes.
  • the ambient light when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode.
  • transition processing on the edge of the target area when the processor executes the computer program, the following steps are implemented: transition processing on the edge of the target area; obtaining a target image including a subject object after the transition processing on the edge of the target area and a non-subject object after blur processing.
  • the processor when the processor executes the computer program, it implements the following steps: performing one or more processing of feathering, sharpening, liquefying, and enhancing contrast on the edge of the target area.
  • the processor executes the computer program, the following steps are implemented: selecting one or more frames of images to be processed, and performing blur processing on one or more frames of images to be processed.
  • the blur processing includes one or more blur processing including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage.
  • the processor executes the computer program, it implements the following steps: prompting the user for a period of time when the user needs to stand still.
  • the processor executes the computer program, the following steps are implemented: during the time period when the user is quietly standing, the non-subject objects in the non-target area are identified according to preset requirements.
  • the present application also provides a photographing device that can execute the steps in the above-mentioned image processing method.
  • the photographing device in the embodiment of the present application includes, but is not limited to, a digital camera, a mobile device equipped with a camera module, and so on.
  • the photographing device includes: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and when the computer program is executed, the following steps are implemented:
  • the object is subjected to blur processing to obtain a target image including the subject object and the non-subject object after the blur processing.
  • the embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
  • the processor executes the computer program, the following steps are implemented: acquiring the target area corresponding to the subject object in the multiple frames of images to be processed.
  • the processor executes the computer program, it implements the following steps: obtain the target area corresponding to the subject object in one frame of the to-be-processed image; use the corresponding area of the target area in one of the to-be-processed images as the other multiple frames of the to-be-processed image The target area corresponding to the main object in the middle.
  • the processor executes the computer program, it implements the following steps: recognize the subject object in the image to be processed according to the object recognition algorithm; generate and display the original object frame according to the subject object; if the number of the original object frame is one, the original object The frame is used as the target object frame, and the corresponding area of the target object frame in the image to be processed is taken as the target area.
  • the processor executes the computer program, the following steps are implemented: if the number of original object frames is more than two, obtain the user's selection operation on one of the original object frames in the image to be processed; generate and display according to the selection operation Target object frame; the area corresponding to the target object frame in the image to be processed is taken as the target area.
  • object recognition algorithms include face recognition algorithms.
  • the processor executes the computer program, it implements the following steps: obtain the size modification operation performed by the user on the target object frame in the image to be processed; generate and display the modified object frame according to the size modification operation; change the modified object frame As the target object frame again.
  • the processor executes the computer program, it implements the following steps: obtain the user's frame selection operation on the subject object in the image to be processed; generate and display the target object frame according to the frame selection operation; correspond the target object frame in the image to be processed As the target area.
  • the processor executes the computer program, it implements the following steps: obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed; generate and display the modified object frame according to the contour modification operation to make the modified object frame
  • the outline of the object frame matches the outline of the main object; the modified object frame is used as the target object frame again.
  • the contour of the target area matches the contour of the main object.
  • the preset requirements include using ethnic characteristics to distinguish people from objects other than people, and/or using other object characteristics to distinguish other objects from people.
  • the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the non-target area matches the preset ethnic characteristics and/or the preset other object characteristics Object and mark it as a non-subject object.
  • the preset other object features include vehicle features.
  • the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
  • the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the image to be processed matches the preset ethnic characteristics and/or the preset other object characteristics
  • the owner object and/or all other objects obtain the specific characteristics of the subject object, identify all objects and/or all other objects that do not match the specific characteristics of the subject object, and mark them as non-subject objects, Among them, the specific characteristics of the subject object include the specific characteristics of race and/or the specific characteristics of other objects.
  • the processor when the processor executes the computer program, it implements the following steps: obtain the specific features of the subject object, identify the objects in the non-target area that do not match the specific features of the subject object, and mark them as non-subject objects, where the Specific characteristics include race-specific characteristics and/or other object-specific characteristics.
  • the ethnic specific characteristics include one or more of the face, the posture of the human body, and the clothing.
  • the main object is static, and the non-main object is moving.
  • the processor executes the computer program, it implements the following steps: extracts multiple frames of to-be-processed images including the subject object according to the preset duration; judges the moving object through the multiple-frames of to-be-processed image, and marks the moving object as non Subject object.
  • non-subject objects include one or two of moving people and cars.
  • the processor executes the computer program, the following steps are implemented: detecting the brightness of the current environment, and determining the exposure mode according to the brightness, and different brightnesses correspond to different exposure modes.
  • the ambient light when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode.
  • transition processing on the edge of the target area when the processor executes the computer program, the following steps are implemented: transition processing on the edge of the target area; obtaining a target image including a subject object after the transition processing on the edge of the target area and a non-subject object after blur processing.
  • the processor when the processor executes the computer program, it implements the following steps: performing one or more processing of feathering, sharpening, liquefying, and enhancing contrast on the edge of the target area.
  • the processor executes the computer program, the following steps are implemented: selecting one or more frames of images to be processed, and performing blur processing on one or more frames of images to be processed.
  • the blur processing includes one or more blur processing including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage.
  • the processor executes the computer program, it implements the following steps: prompting the user for a period of time for a quiet station.
  • the processor executes the computer program, the following steps are implemented: during the time period when the user is quietly standing, the non-subject objects in the non-target area are identified according to preset requirements.
  • the present application also provides a movable platform.
  • the movable platform includes a photographing device.
  • the photographing device in this embodiment can be any one of the above-mentioned photographing devices.
  • the photographing device includes: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when the computer program is executed, realize the image processing method as described above.
  • the movable platform refers to various platforms that can move automatically or under controlled conditions, including but not limited to one or more of pan/tilt, unmanned aerial vehicle or unmanned vehicle.
  • the embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
  • This application also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor implements the image processing method as described above.
  • the processor implements the image processing method as described above.
  • the computer-readable storage medium may be an internal storage unit of any of the foregoing image processing devices, such as a hard disk or memory of the image processing device.
  • the computer-readable storage medium may also be an external storage device of the image processing device, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the image processing device.
  • the embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.

Abstract

An image processing method, an image processing device, a photographing apparatus, a movable platform and a storage medium. The image processing method comprises: obtaining an image to be processed, and obtaining a target region corresponding to a main object (S101); identifying a non-main object in a non-target region according to a preset requirement (S102); and performing fuzzy processing on the non-main object to obtain a target image comprising the main object and the non-main object subjected to the fuzzy processing (S103).

Description

图像处理方法、设备、拍摄装置、可移动平台及存储介质Image processing method, equipment, photographing device, movable platform and storage medium 技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种图像处理方法、设备、拍摄装置、可移动平台及存储介质。This application relates to the field of image processing technology, and in particular to an image processing method, equipment, photographing device, movable platform and storage medium.
背景技术Background technique
相机模块对于数码相机产品、云台相机产品是核心模块,对于手机等移动设备也是标准配置的模块。The camera module is the core module for digital camera products and pan/tilt camera products, and it is also a standard configuration module for mobile devices such as mobile phones.
在人流密集的地方或者有车流等物体的地方,用户对主体对象进行拍照或摄像时,周边还有其它人物或者车辆等物体在场,通常容易将周边无关人物或车辆等物体拍摄入图像中。现有的相机模块在拍照或摄像中均无法将周边人物或车辆等物体排除在外。一方面,将周边无关人物拍入图像中,容易侵犯周边人物肖像权,可能容易引起不必要的纠纷。将车辆等物体拍入图像中,有可能出现刚好将车辆的车牌号拍入图像中,可能涉及车主隐私,也容易引起不必要的纠纷。另一方面,周边无关人物或车辆等物体容易影响拍摄的主体对象的突出。In crowded places or places with traffic and other objects, when the user takes pictures or video of the main object, there are other people or vehicles and other objects nearby. It is usually easy to take pictures of irrelevant people or vehicles and other objects into the image. Existing camera modules cannot exclude surrounding people or vehicles and other objects in taking photos or videos. On the one hand, taking pictures of irrelevant people in the surroundings can easily infringe on the portrait rights of surrounding people and may easily cause unnecessary disputes. Shooting objects such as vehicles into the image may appear to have just captured the license plate number of the vehicle into the image, which may involve the privacy of the owner and may also easily cause unnecessary disputes. On the other hand, objects such as unrelated people or vehicles around are likely to affect the protruding of the main subject.
发明内容Summary of the invention
基于此,本申请提供一种图像处理方法、图像处理设备、拍摄装置、可移动平台及存储介质,旨在为解决现有拍照或摄像时无法将周边无关人物排除在外的技术问题。Based on this, the present application provides an image processing method, image processing equipment, photographing device, movable platform and storage medium, aiming to solve the technical problem that irrelevant surrounding people cannot be excluded when taking pictures or shooting.
第一方面,本申请提供了一种图像处理方法,包括:In the first aspect, this application provides an image processing method, including:
获取待处理图像,并获取所述待处理图像中主体对象对应的目标区域;Acquiring the image to be processed, and acquiring the target area corresponding to the subject object in the image to be processed;
根据预设要求识别出非目标区域中的非主体对象,所述非目标区域为所述待处理图像中目标区域以外的区域;Identifying a non-subject object in a non-target area according to preset requirements, where the non-target area is an area outside the target area in the image to be processed;
对所述非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
第二方面,本申请提供了一种图像处理设备,所述图像处理设备包括:存储器和处理器;In a second aspect, the present application provides an image processing device, the image processing device includes: a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
获取待处理图像,并获取所述待处理图像中主体对象对应的目标区域;Acquiring the image to be processed, and acquiring the target area corresponding to the subject object in the image to be processed;
根据预设要求识别出非目标区域中的非主体对象,所述非目标区域为所述待处理图像中目标区域以外的区域;Identifying a non-subject object in a non-target area according to preset requirements, where the non-target area is an area outside the target area in the image to be processed;
对所述非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
第三方面,本申请提供了一种拍摄装置,所述拍摄装置包括:存储器和处理器;In a third aspect, the present application provides a photographing device, the photographing device includes: a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
获取待处理图像,并获取所述待处理图像中主体对象对应的目标区域;Acquiring the image to be processed, and acquiring the target area corresponding to the subject object in the image to be processed;
根据预设要求识别出非目标区域中的非主体对象,所述非目标区域为所述待处理图像中目标区域以外的区域;Identifying a non-subject object in a non-target area according to preset requirements, where the non-target area is an area outside the target area in the image to be processed;
对所述非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
第四方面,本申请提供了一种可移动平台,所述可移动平台包括拍摄装置,所述拍摄装置包括:存储器和处理器;In a fourth aspect, the present application provides a movable platform, the movable platform includes a photographing device, and the photographing device includes a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如上任一项所述的图像处理方法。The processor is configured to execute the computer program and, when executing the computer program, implement the image processing method described in any one of the above.
第五方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如 上任一项所述的图像处理方法。In a fifth aspect, the present application provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor realizes any of the above Image processing method.
本申请实施例提供了一种图像处理方法、图像处理设备、拍摄装置、可移动平台及存储介质,获取待处理图像中主体对象的目标区域,根据预设要求识别出目标区域以外的非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像,由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;一方面能够避免非主体对象喧宾夺主,影响目标图像中主体对象的重点显现;另一方面,能够避免对非主体对象可能造成的侵犯,避免引起不必要的纠纷。The embodiments of the application provide an image processing method, image processing equipment, photographing device, movable platform and storage medium, to obtain the target area of the subject in the image to be processed, and identify non-target areas other than the target area according to preset requirements The non-subject object in the non-subject object is blurred to obtain the target image including the subject object and the non-subject object after the blur process. Since the non-subject object in the target image has been blurred, in this way, Exclude non-subject objects from the target image; on the one hand, it can prevent non-subject objects from being overwhelming and affecting the main object in the target image; on the other hand, it can avoid possible violations of non-subject objects and avoid unnecessary dispute.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the application.
附图说明Description of the drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. Ordinary technicians can obtain other drawings based on these drawings without creative work.
图1是本申请图像处理方法一实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of an image processing method according to the present application;
图2是利用本申请图像处理方法对待处理图像进行模糊处理和过渡处理后的效果图;FIG. 2 is an effect diagram after blurring and transition processing of the image to be processed using the image processing method of this application;
图3是本申请图像处理方法另一实施例的流程示意图;3 is a schematic flowchart of another embodiment of the image processing method according to the present application;
图4是本申请图像处理方法又一实施例的流程示意图;4 is a schematic flowchart of another embodiment of the image processing method of the present application;
图5是本申请图像处理方法又一实施例的流程示意图;FIG. 5 is a schematic flowchart of another embodiment of the image processing method of the present application;
图6是本申请图像处理方法又一实施例的流程示意图;FIG. 6 is a schematic flowchart of another embodiment of the image processing method of the present application;
图7是本申请图像处理方法又一实施例的流程示意图;FIG. 7 is a schematic flowchart of another embodiment of the image processing method of the present application;
图8是本申请图像处理方法又一实施例的流程示意图;FIG. 8 is a schematic flowchart of another embodiment of the image processing method of the present application;
图9是本申请图像处理方法又一实施例的流程示意图;FIG. 9 is a schematic flowchart of another embodiment of the image processing method of the present application;
图10是本申请图像处理方法又一实施例的流程示意图;FIG. 10 is a schematic flowchart of another embodiment of the image processing method of the present application;
图11是本申请图像处理方法又一实施例的流程示意图;FIG. 11 is a schematic flowchart of another embodiment of the image processing method of the present application;
图12是本申请图像处理方法又一实施例的流程示意图;FIG. 12 is a schematic flowchart of another embodiment of the image processing method of the present application;
图13是本申请图像处理方法又一实施例的流程示意图;FIG. 13 is a schematic flowchart of another embodiment of the image processing method of the present application;
图14是本申请图像处理方法又一实施例的流程示意图;FIG. 14 is a schematic flowchart of another embodiment of the image processing method of the present application;
图15是本申请图像处理方法又一实施例的流程示意图;15 is a schematic flowchart of another embodiment of the image processing method of the present application;
图16是本申请图像处理设备一实施例的结构示意图。Fig. 16 is a schematic structural diagram of an embodiment of an image processing device of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowchart shown in the drawings is merely an illustration, and does not necessarily include all contents and operations/steps, nor does it have to be executed in the described order. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to actual conditions.
对主体对象进行拍摄时,将周边无关的人物或者物体等非主体对象拍摄入图像中,一方面非主体对象影响主体对象的重点显现;另一方面,对非主体对象可能造成侵犯,避免引起不必要的纠纷。本申请实施例获取待处理图像中主体对象的目标区域,识别出非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;能够避免非主体对象影响目标图像中主体对象的重点显现;能够避免对非主体对象可能造成的侵犯,避免引起不必要的纠纷。同时,该方法可以应用户的拍摄需求进行调整,通过将待处理图像中非期望的对象进行模糊,达到构图美观,主体突出的处理效果。When shooting the main subject, take non-subject objects such as unrelated people or objects into the image. On the one hand, the non-subject object affects the key appearance of the subject object; on the other hand, it may cause infringement on the non-subject object to avoid causing disturbance. Necessary disputes. The embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided Possible violations caused by the object, avoid unnecessary disputes. At the same time, the method can be adjusted according to the user's shooting needs, and by blurring the undesired objects in the image to be processed, the processing effect of beautiful composition and prominent main body is achieved.
本申请可以应用于图像处理场景中,也可以应用于拍摄场景中。具体地,本申请可以应用于图像处理设备、拍摄装置(例如:数码相机、配备有摄像模块的移动设备,等等)、可移动平台的图像处理场景和/或拍摄场景中。可移动平台是指可以自动移动或者在受控条件下移动的各种平台,例如:云台(例如:云台相机,等等)、无人飞行器、车辆、无人车辆、地面机器人等等。This application can be applied to image processing scenes, and can also be applied to shooting scenes. Specifically, the present application can be applied to image processing equipment, shooting devices (for example, digital cameras, mobile equipment equipped with camera modules, etc.), image processing scenes and/or shooting scenes of a movable platform. Movable platforms refer to various platforms that can move automatically or under controlled conditions, such as: PTZ (for example: PTZ camera, etc.), unmanned aerial vehicles, vehicles, unmanned vehicles, ground robots, and so on.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
参见图1,图1是本申请图像处理方法一实施例的流程示意图,该方法包括:Referring to Fig. 1, Fig. 1 is a schematic flowchart of an embodiment of an image processing method according to the present application. The method includes:
步骤S101:获取待处理图像,并获取待处理图像中主体对象对应的目标区域。Step S101: Acquire an image to be processed, and acquire a target area corresponding to a subject object in the image to be processed.
待处理图像是指未经过本申请实施例图像处理方法处理的图像。待处理图像的数目不做限定,可以是一帧,例如拍照场景下获得的单一帧图像,也可以是多帧,例如摄像场景下获得的多帧视频图像。待处理图像可以是已拍摄好的图像,或者是还未开始拍摄、在预览状态下得到的图像,或者在拍摄过程中得到的图像,等等。即,本实施例对获取待处理图像的方式不做限定,通过这种方式,能够扩大本申请实施例的方法的应用范围和应用场景。The image to be processed refers to an image that has not been processed by the image processing method of the embodiment of the present application. The number of images to be processed is not limited, and may be one frame, such as a single frame image obtained in a photographing scene, or multiple frames, such as multiple frames of video images obtained in a photographing scene. The image to be processed may be an image that has been taken, or an image obtained in a preview state that has not yet been taken, or an image obtained during the shooting process, and so on. That is, this embodiment does not limit the manner of acquiring the image to be processed. In this manner, the application scope and application scenarios of the method of the embodiment of the present application can be expanded.
主体对象的范围和数目不做限定,可以根据具体的实际应用确定,通过这种方式,能够进一步扩大应用范围。主体对象是指待处理图像中的主要对象,可以是人物,也可以是除人物之外的其它物体,例如车辆、建筑、植物、动物,等等。主体对象可以是一个以上,例如:主体对象是单一人物,或者主体对象是一个人物和该人物旁边的车辆,或者主体对象是一个人物、该人物旁边的车辆和小狗,或者主体对象是车辆和旁边的小狗,等等。在较多的应用场景下,主体对象通常包括人物。The scope and number of subject objects are not limited, and can be determined according to specific practical applications. In this way, the scope of application can be further expanded. The main object refers to the main object in the image to be processed, which can be a person or other objects besides the person, such as vehicles, buildings, plants, animals, etc. The main object can be more than one, for example: the main object is a single character, or the main object is a character and a vehicle next to the character, or the main object is a character, a vehicle and a puppy next to the character, or the main object is a vehicle and The puppy next to it, wait. In more application scenarios, the main object usually includes characters.
目标区域的大小、轮廓、及其获取方式不做限定,可以根据具体的实际应用确定,通过这种方式,能够进一步扩大应用范围。目标区域是指待处理图像中与主体对象对应的区域。需要说明的是,目标区域可以将整个主体对象完全包括在内,例如:主体对象是人物,目标区域包括整个人物;目标区域也可以只包括主体对象的一部分,例如:主体对象是人,目标区域只包括人物头部,或者只包括人物头部和肩部,等等。目标区域的轮廓可以与主体对象的轮廓匹配,刚刚和主体对象的轮廓吻合;也可以与主体对象的轮廓不匹配,将对应的主体对象包括即可。目标区域可以是自动生成的,人工也可以调整;目标区域也可以人工选择生成,人工也可以调整。The size, contour, and acquisition method of the target area are not limited, and can be determined according to specific practical applications. In this way, the application range can be further expanded. The target area refers to the area corresponding to the main object in the image to be processed. It should be noted that the target area can completely include the entire subject object, for example: the subject object is a person, the target area includes the entire person; the target area can also include only a part of the subject object, for example: the subject object is a person, the target area Include only the character's head, or only the character's head and shoulders, etc. The contour of the target area can match the contour of the main object, which just coincides with the contour of the main object; or it can not match the contour of the main object, just include the corresponding main object. The target area can be generated automatically or adjusted manually; the target area can also be manually selected and generated, or adjusted manually.
步骤S102:根据预设要求识别出非目标区域中的非主体对象,非目标区 域为待处理图像中目标区域以外的区域。Step S102: Identify the non-subject object in the non-target area according to the preset requirements, and the non-target area is the area outside the target area in the image to be processed.
非目标区域是相对目标区域来说的,是指待处理图像中目标区域以外的区域。非目标区域的大小和/或轮廓随目标区域的大小和/或轮廓的改变而改变。The non-target area is relative to the target area and refers to the area outside the target area in the image to be processed. The size and/or contour of the non-target area changes with the change of the size and/or contour of the target area.
非主体对象是相对主体对象来说的,是指非目标区域中需要模糊处理的对象。同样,非主体对象的范围和数目不做限定,可以根据具体的实际应用确定,通过这种方式,能够进一步扩大应用范围。非主体对象可以是人物,也可以是除人物之外的其它物体,例如车辆、建筑、植物、动物,等等。非主体对象可以是一个以上,例如:非主体对象是单一人物,或者非主体对象是一个人物和该人物旁边的车辆,或者非主体对象是一个人物、该人物旁边的车辆,或者非主体对象是车辆,等等。在较多的应用场景下,由于容易侵犯他人肖像权或者暴露他人车辆的车牌号等隐私信息,非主体对象通常包括人物和/或车辆等包含他人隐私信息的物体。Non-subject objects are relative to subject objects, and refer to objects that need to be blurred in non-target areas. Similarly, the scope and number of non-subject objects are not limited, and can be determined according to specific practical applications. In this way, the scope of application can be further expanded. Non-subject objects can be people, or other objects besides people, such as vehicles, buildings, plants, animals, and so on. The non-subject object can be more than one, for example: the non-subject object is a single character, or the non-subject object is a character and the vehicle next to the character, or the non-subject object is a character, the vehicle next to the character, or the non-subject object is Vehicles, etc. In many application scenarios, since it is easy to infringe the portrait rights of others or expose private information such as the license plate numbers of other people's vehicles, non-subject objects usually include persons and/or vehicles and other objects that contain other people's private information.
预设要求是指预先设置的、用于识别非主体对象的要求。例如:指定非主体对象,如何识别非主体对象?用于识别的非主体对象的特征,非主体对象的的唯一特征,如何区分非主体对象和主体对象,等等。在此对预设要求不做限定,可以根据具体的实际应用来预先设置对应的要求。通过这种方式,能够进一步扩大应用范围。The preset requirements refer to the preset requirements for identifying non-subject objects. For example: specify non-subject objects, how to identify non-subject objects? The characteristics of non-subject objects used for identification, the unique characteristics of non-subject objects, how to distinguish between non-subject objects and subject objects, etc. The preset requirements are not limited here, and the corresponding requirements can be preset according to specific practical applications. In this way, the scope of application can be further expanded.
步骤S103:对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Step S103: Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
对非主体对象进行模糊处理是指将非主体对象所占据的区域变得模糊,以使非主体对象变得模糊。这样得到的目标图像中保留主体对象,而非主体对象变得模糊。Blurring non-subject objects refers to blurring the area occupied by non-subject objects, so that the non-subject objects become blurred. The subject object is retained in the target image obtained in this way, and the non-subject object becomes blurred.
模糊处理包括但不限于横向模糊、竖向模糊、径向模糊、斜向模糊、马赛克、区域填充、背景覆盖在内的一种或多种模糊处理。The blur processing includes, but is not limited to, one or more blur processing including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage.
横向模糊是一种从水平方向模糊的效果处理方法;横向模糊处理能够突出图像画面虚影、动感等表现效果。竖向模糊是一种从竖直方向模糊的效果处理方法;竖向模糊处理能够突出图像画面动态、光泽、质感等表现效果。径向模糊是一种从中心向外呈幅射状的逐渐模糊的效果处理方法;径向模糊处理能够突出图像画面震撼或者突出移动速度快等表现效果。斜向模糊是一种从倾斜方 向模糊的效果处理方法;斜向模糊处理能够突出图像画面炫酷、倾斜旋转、震撼、镜头的景深等表现效果。马赛克是一种将图像特定区域的色阶细节劣化并造成色块打乱的效果,这种模糊效果看上去由一个个的小格子组成,其目的通常是使之无法辨认。区域填充是一种在图像的闭合区域内完整地填充某种颜色或图案的效果处理方法。背景覆盖是一种将图像特定区域用另一种背景进行覆盖的效果处理方法;其中,另一种背景可以是该图像中的背景,也可以是该图像以外的其它背景。Horizontal blur is an effect processing method that blurs from the horizontal direction; horizontal blur processing can highlight the performance effects of image phantom and dynamic. Vertical blur is a method of processing blur from the vertical direction; vertical blur processing can highlight the dynamic, gloss, texture and other performance effects of the image. Radial blur is a gradual blur effect processing method that radiates from the center to the outside; radial blur processing can highlight the shock of the image or highlight the performance effects of fast moving speed. Oblique blur is a method of blurring from the oblique direction; oblique blur processing can highlight the coolness of the image, tilt rotation, shock, and the depth of field of the lens. Mosaic is an effect that degrades the gradation details in a specific area of an image and causes color blocks to be disrupted. This blurring effect appears to be composed of small grids, and its purpose is usually to make it unrecognizable. Area filling is an effect processing method that completely fills a certain color or pattern in a closed area of an image. Background overlay is an effect processing method that covers a specific area of an image with another background; the other background can be the background in the image or other backgrounds outside the image.
在具体的实际应用中,可以根据实际条件、所要达到的处理效果等选择不同的模糊处理方法进行模糊处理。In specific practical applications, different fuzzy processing methods can be selected for fuzzy processing according to actual conditions and processing effects to be achieved.
通过对非主体对象模糊处理,针对性强,一方面能够避免将不愿意展示的非主体对象展示在图像上,避免带来可能的侵犯或隐私信息泄露;另一方面,还能够突出显现主体对象。By blurring non-subject objects, it has strong pertinence. On the one hand, it can avoid displaying non-subject objects that are unwilling to display on the image, avoiding possible infringement or leakage of privacy information; on the other hand, it can also highlight the main object .
本申请实施例获取待处理图像中主体对象的目标区域,识别出非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;能够避免非主体对象影响目标图像中主体对象的重点显现;能够避免对非主体对象可能造成侵犯,避免引起不必要的纠纷。The embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
在一实际应用中,为了进一步重点凸显主体对象,也为了使目标区域与模糊处理后的非目标区域之间的衔接在目标图像中尽量自然、美观,没有明确的边界,还可以对目标区域的边缘进行过渡处理,具体说明如下:In a practical application, in order to further highlight the main object, and to make the connection between the target area and the blurred non-target area in the target image as natural and beautiful as possible, there is no clear boundary, and the target area Transition processing on the edge, the specific instructions are as follows:
其中,步骤S103中,得到包括主体对象和经过模糊处理后的非主体对象的目标图像之前,还可以包括:对目标区域的边缘进行过渡处理;此时,得到包括主体对象和经过模糊处理后的非主体对象的目标图像,具体可以包括:得到包括目标区域的边缘经过过渡处理后的主体对象和经过模糊处理后的非主体对象的目标图像。Wherein, in step S103, before obtaining the target image including the subject object and the blurred non-subject object, it may further include: performing transition processing on the edge of the target area; at this time, obtaining the target image including the subject object and the blurred object The target image of the non-subject object may specifically include: obtaining the target image including the subject object after the transition processing is performed on the edge of the target area and the non-subject object after the blur processing is performed.
进一步,对目标区域的边缘进行过渡处理,可以包括:对目标区域的边缘进行羽化、锐化、液化、加强对比度中的一种或多种处理。Further, performing transition processing on the edge of the target area may include: performing one or more processing of feathering, sharpening, liquefying, and enhancing contrast on the edge of the target area.
羽化处理是对图像进行虚化,使图像边缘更为朦胧、柔和、模糊,产生美 感。锐化处理是提高图像像素的对比度、亮度,使图像变亮,使边缘看起来更加突出锐利。液化处理是使图像发生光滑、平滑的形变,特别是能够打造完美、漂亮的人像效果。加强对比度是指使图像画面的明暗反差加强,使图像画面中亮的地方会更亮,暗的地方会更暗;加强对比度之后,原来的两个物体反差扩大。在具体的实际应用中,可以根据实际条件、所要达到的处理效果等选择不同的过渡处理方法进行过渡处理。参见图2,图2是利用本申请图像处理方法对待处理图像进行模糊处理和过渡处理后的效果图。图中主体人物左右两边为人流模糊效果,过渡处理采用的是羽化处理,主体人物边缘自然、柔和,具有美感,主体人物形象重点突出。Feathering processing is to blur the image, making the edges of the image more hazy, softer, and blurred, creating a sense of beauty. Sharpening is to improve the contrast and brightness of image pixels, make the image brighter, and make the edges look more prominent and sharp. Liquefaction is to make the image smooth and smooth, especially to create a perfect and beautiful portrait effect. Enhancing the contrast means to strengthen the contrast between the light and dark of the image, so that the bright part of the image will be brighter and the dark part will be darker; after the contrast is strengthened, the contrast between the original two objects will expand. In specific practical applications, different transition processing methods can be selected for transition processing according to actual conditions and processing effects to be achieved. Refer to FIG. 2, which is an effect diagram after blurring and transition processing of the image to be processed using the image processing method of this application. The left and right sides of the main character in the picture are blurred by the flow of people, and the transition processing adopts the feathering process. The edge of the main character is natural, soft and aesthetic, and the main character image is prominent.
其中,待处理图像可以是一帧,例如拍照场景,也可以是多帧,例如摄像场景。如果待处理图像是多帧,步骤S101中,获取待处理图像中主体对象对应的目标区域,可以包括:获取多帧待处理图像中主体对象对应的目标区域。具体地,可以分别地获取每一帧待处理图像中主体对象对应的目标区域。The image to be processed may be one frame, such as a photographing scene, or multiple frames, such as a photographing scene. If the image to be processed is of multiple frames, in step S101, obtaining the target area corresponding to the subject object in the image to be processed may include: obtaining the target area corresponding to the subject object in the multiple frames of image to be processed. Specifically, the target area corresponding to the subject object in each frame of the image to be processed can be obtained separately.
参见图3,在一实施例中,如果主体对象保持不变,主体对象在待处理图像中的位置变化不大,非主体对象保持不变,等等情况,为了简化流程、加快处理速度,步骤S101具体可以包括:Referring to FIG. 3, in one embodiment, if the subject object remains unchanged, the position of the subject object in the image to be processed does not change much, and the non-subject object remains unchanged, etc., in order to simplify the process and speed up the processing, steps S101 may specifically include:
子步骤S101a1:获取其中一帧待处理图像中主体对象对应的目标区域。Sub-step S101a1: Obtain the target area corresponding to the main object in one frame of the image to be processed.
子步骤S101a2:将目标区域在其中一帧待处理图像中对应的区域作为其它多帧待处理图像中主体对象对应的目标区域。Sub-step S101a2: Use the area corresponding to the target area in one frame of the to-be-processed image as the target area corresponding to the subject object in the other multiple frames of the to-be-processed image.
在本实施例中,获取其中一帧待处理图像中主体对象对应的目标区域,将该目标区域对应至其它多帧待处理图像中主体对象对应的区域,将该目标区域在其中一帧待处理图像中对应的区域作为其它多帧待处理图像中主体对象对应的目标区域,通过这种方式,能够简化流程、加快处理速度,除了可以用于图片处理外,特别适用于摄像应用场景。In this embodiment, the target area corresponding to the subject object in one frame of the to-be-processed image is acquired, the target area corresponds to the area corresponding to the subject object in the other multiple frames of the to-be-processed image, and the target area is in one of the frames to be processed. The corresponding area in the image is used as the target area corresponding to the main object in the other multi-frame images to be processed. In this way, the process can be simplified and the processing speed can be accelerated. In addition to image processing, it is especially suitable for camera application scenarios.
对应地,当待处理图像是一帧或多帧的时候,步骤S103中,对非主体对象进行模糊处理,具体包括:选用一帧或多帧待处理图像,对一帧或多帧待处理图像进行模糊处理。Correspondingly, when the image to be processed is one or more frames, in step S103, the non-subject object is blurred, which specifically includes: selecting one or more frames of the image to be processed, and comparing one or more frames of the image to be processed Blur processing.
如上所述,目标区域可以是自动生成的,人工也可以调整;目标区域也可以人工选择生成,也可以人工调整。目标区域的轮廓可以与主体对象的轮廓匹 配,也可以与主体对象的轮廓不匹配。下面以待处理图像是一帧为例,具体说明获取待处理图像中主体对象对应的目标区域的可能方式。As mentioned above, the target area can be automatically generated or adjusted manually; the target area can also be manually selected and generated or adjusted manually. The contour of the target area can match or not match the contour of the main object. Hereinafter, taking the image to be processed is a frame as an example, a possible way of obtaining the target area corresponding to the subject object in the image to be processed is specifically described.
在一实施例中,系统自动识别主体对象后生成原始对象框,人工可以调整原始对象框,或者从多个原始对象框中选择一个作为目标对象框,或者调整对象框的尺寸大小,或者调整对象框的轮廓以匹配主体对象的轮廓,或者根据实际情况,多个调整处理流程相结合,以达到最终需要达到的获取待处理图像中主体对象对应的目标区域的目标。In one embodiment, the system automatically recognizes the main object and generates the original object frame. The original object frame can be manually adjusted, or one of multiple original object frames can be selected as the target object frame, or the size of the object frame can be adjusted, or the object can be adjusted The outline of the frame matches the outline of the main object, or according to the actual situation, multiple adjustment processing procedures are combined to achieve the ultimate goal of obtaining the target area corresponding to the main object in the image to be processed.
具体地,如果原始对象框的数目是一个,请参见图4,步骤S101中,获取待处理图像中主体对象对应的目标区域,可以包括:子步骤S101b1、子步骤S101b2、子步骤S101b3以及子步骤S101b4。Specifically, if the number of original object frames is one, please refer to FIG. 4. In step S101, obtaining the target area corresponding to the subject object in the image to be processed may include: sub-step S101b1, sub-step S101b2, sub-step S101b3, and sub-steps S101b4.
子步骤S101b1:根据对象识别算法识别待处理图像中的主体对象。Sub-step S101b1: Identify the main object in the image to be processed according to the object recognition algorithm.
子步骤S101b2:根据主体对象生成并显示原始对象框。Sub-step S101b2: generate and display the original object frame according to the main object.
子步骤S101b3:若原始对象框的数目是一个,则将原始对象框作为目标对象框。Sub-step S101b3: if the number of the original object frame is one, the original object frame is taken as the target object frame.
子步骤S101b4:将目标对象框在待处理图像中对应的区域作为目标区域。Sub-step S101b4: Use the area corresponding to the target object frame in the image to be processed as the target area.
对象识别包括分类和检测两项任务,分类用于判断一幅图像是否包含某类对象,检测则要求标出这些对象的位置和大小。对象识别算法是指对图像进行对象识别的算法,对象识别算法包括但不限于:卷积神经网络(Convolutional Neural Networks,CNN)、区域卷积神经网络(Region CNN,RCNN)、Faster-RCNN、单点多盒探测器(Single Shot MultiBox Detector,SSD),等等。Object recognition includes two tasks: classification and detection. Classification is used to determine whether an image contains a certain type of object, and detection requires marking the location and size of these objects. Object recognition algorithms refer to algorithms for object recognition on images. Object recognition algorithms include but are not limited to: Convolutional Neural Networks (CNN), Regional Convolutional Neural Networks (Region CNN, RCNN), Faster-RCNN, Single Point Multi-Box Detector (Single Shot MultiBox Detector, SSD), etc.
在一实施例中,对象识别算法包括人脸识别算法。人脸识别算法是指在检测到人脸并定位面部关键特征点之后,主要的人脸区域就可以被裁剪出来,经过预处理之后,馈入后端的识别算法;识别算法要完成人脸特征的提取,并与库存的已知人脸进行比对,完成最终的分类。In an embodiment, the object recognition algorithm includes a face recognition algorithm. The face recognition algorithm means that after detecting the face and locating the key feature points of the face, the main face area can be cropped out, and after preprocessing, it is fed into the back-end recognition algorithm; the recognition algorithm must complete the facial features Extract and compare with known faces in inventory to complete the final classification.
在本实施例中,系统能够根据对象识别算法自动识别主体对象,进而生成并显示对应主体对象的原始对象框,原始对象框的数目是一个,如果用户对原始对象框的尺寸大小和/或轮廓没有其它要求,则可以将该原始对象框作为目标对象框,将该目标对象框在待处理图像中对应的区域作为目标区域。通过这种方式,能够简化用户选择的流程,并加快处理速度。采用人脸识别算法,在 实际应用中,其通用性和针对性更强。In this embodiment, the system can automatically recognize the subject object according to the object recognition algorithm, and then generate and display the original object frame corresponding to the subject object. The number of the original object frame is one. If the user has an opinion on the size and/or outline of the original object frame Without other requirements, the original object frame can be used as the target object frame, and the area corresponding to the target object frame in the image to be processed can be used as the target area. In this way, the user's selection process can be simplified and the processing speed can be accelerated. Using face recognition algorithms, in practical applications, its versatility and pertinence are stronger.
参见图5,如果用户在待处理图像中对该目标对象框进行尺寸的修改,则在子步骤S101b4之前,还可以包括:Referring to Fig. 5, if the user modifies the size of the target object frame in the image to be processed, before the sub-step S101b4, it may further include:
子步骤S101b5:获取用户在待处理图像中对目标对象框进行的尺寸修改操作。尺寸修改操作的作用是对目标对象框的尺寸进行修改。Sub-step S101b5: Obtain the size modification operation performed by the user on the target object frame in the image to be processed. The function of the size modification operation is to modify the size of the target object frame.
子步骤S101b6:根据尺寸修改操作生成并显示修改后的对象框。Sub-step S101b6: Generate and display the modified object frame according to the size modification operation.
子步骤S101b7:将修改后的对象框重新作为目标对象框。Sub-step S101b7: re-use the modified object frame as the target object frame.
在本实施例中,用户能够对目标对象框的尺寸进行修改,能够满足用户需求,提升用户体验。In this embodiment, the user can modify the size of the target object frame, which can meet user needs and improve user experience.
在一实施例中,目标区域的轮廓与主体对象的轮廓匹配。参见图6和图7,为了使目标区域的轮廓与主体对象的轮廓匹配,用户需要在待处理图像中对该目标对象框进行轮廓的修改,则在图4的子步骤S101b4之前(如图6),或者在图5的子步骤S101b7之后(如图7,即用户调整目标对象框的尺寸后,还希望继续调整其轮廓),还可以包括:In one embodiment, the contour of the target area matches the contour of the main object. 6 and 7, in order to match the contour of the target area with the contour of the main object, the user needs to modify the contour of the target object frame in the image to be processed. Then, before sub-step S101b4 in Fig. 4 (as shown in Fig. 6 ), or after the sub-step S101b7 in FIG. 5 (as shown in FIG. 7, that is, after the user adjusts the size of the target object frame, the user also wishes to continue to adjust its outline), it may also include:
子步骤S101b8:获取用户在待处理图像中对目标对象框的轮廓进行的轮廓修改操作。轮廓修改操作的作用是目标对象框的轮廓进行修改。Sub-step S101b8: Obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed. The function of the contour modification operation is to modify the contour of the target object frame.
子步骤S101b9:根据轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与主体对象的轮廓匹配。Sub-step S101b9: Generate and display the modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object.
子步骤S101b10:将修改后的对象框重新作为目标对象框。Sub-step S101b10: Re-use the modified object frame as the target object frame.
在本实施例中,用户能够对目标对象框的轮廓进行修改,以使修改后的对象框的轮廓与主体对象的轮廓匹配,能够重点突出主体对象,满足用户需求,提升用户体验。In this embodiment, the user can modify the contour of the target object frame so that the contour of the modified object frame matches the contour of the main object, which can focus on the main object, meet user needs, and improve user experience.
如果原始对象框的数目是两个以上,请参见图8,子步骤S101b2之后,还可以包括:If the number of original object frames is more than two, please refer to Fig. 8. After sub-step S101b2, it may further include:
子步骤S101c1:若原始对象框的数目是两个以上,则获取用户在待处理图像中对其中一个原始对象框进行的选择操作。选择操作的作用是在两个以上的原始对象框中选择其中一个原始对象框。Sub-step S101c1: If the number of original object frames is more than two, obtain a selection operation performed by the user on one of the original object frames in the image to be processed. The function of the selection operation is to select one of the original object frames from more than two original object frames.
子步骤S101c2:根据选择操作生成并显示目标对象框。Sub-step S101c2: Generate and display a target object frame according to the selection operation.
子步骤S101c3:将目标对象框在待处理图像中对应的区域作为目标区域。Sub-step S101c3: Use the area corresponding to the target object frame in the image to be processed as the target area.
在本实施例中,系统能够根据对象识别算法自动识别主体对象,进而生成并显示对应主体对象的原始对象框,原始对象框的数目是两个以上,用户可以选择其中一个原始对象框作为目标对象框。通过这种方式,能够简化部分用户选择的流程,并部分加快处理速度。In this embodiment, the system can automatically recognize the main object according to the object recognition algorithm, and then generate and display the original object frame corresponding to the main object. The number of original object frames is more than two, and the user can select one of the original object frames as the target object frame. In this way, the selection process of some users can be simplified, and the processing speed can be partially accelerated.
同样,参见图9,如果用户在待处理图像中对该目标对象框进行尺寸的修改,则在子步骤S101c3之前,还可以包括:Similarly, referring to Fig. 9, if the user modifies the size of the target object frame in the image to be processed, before the sub-step S101c3, it may further include:
子步骤S101c4:获取用户在待处理图像中对目标对象框进行的尺寸修改操作。Sub-step S101c4: Obtain the size modification operation performed by the user on the target object frame in the image to be processed.
子步骤S101c5:根据尺寸修改操作生成并显示修改后的对象框。Sub-step S101c5: generate and display the modified object frame according to the size modification operation.
子步骤S101c6:将修改后的对象框重新作为目标对象框。Sub-step S101c6: Re-use the modified object frame as the target object frame.
在本实施例中,用户能够对目标对象框的尺寸进行修改,能够满足用户需求,提升用户体验。In this embodiment, the user can modify the size of the target object frame, which can meet user needs and improve user experience.
在一实施例中,目标区域的轮廓与主体对象的轮廓匹配。同样,参见图10和图11,为了使目标区域的轮廓与主体对象的轮廓匹配,用户需要在待处理图像中对该目标对象框进行轮廓的修改,则在图8的子步骤S101c3之前(如图10),或者在图9的子步骤S101c6之后(如图11,即用户调整目标对象框的尺寸后,还希望继续调整其轮廓),还可以包括:In an embodiment, the contour of the target area matches the contour of the main object. Similarly, referring to Figures 10 and 11, in order to match the contour of the target area with the contour of the main object, the user needs to modify the contour of the target object frame in the image to be processed. Then, before the substep S101c3 of Fig. 8 (such as Fig. 10), or after sub-step S101c6 of Fig. 9 (as shown in Fig. 11, that is, after the user adjusts the size of the target object frame, he also wishes to continue to adjust its outline), it may also include:
子步骤S101c7:获取用户在待处理图像中对目标对象框的轮廓进行的轮廓修改操作。Sub-step S101c7: Obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed.
子步骤S101c8:根据轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与主体对象的轮廓匹配。Sub-step S101c8: Generate and display the modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object.
子步骤S101c9:将修改后的对象框重新作为目标对象框。Sub-step S101c9: Re-use the modified object frame as the target object frame.
在本实施例中,用户能够对目标对象框的轮廓进行修改,以使修改后的对象框的轮廓与主体对象的轮廓匹配,能够重点突出主体对象,满足用户需求,提升用户体验。In this embodiment, the user can modify the contour of the target object frame so that the contour of the modified object frame matches the contour of the main object, which can focus on the main object, meet user needs, and improve user experience.
当然,目标区域也可以人工选择生成,也可以人工调整。具体说明如下:Of course, the target area can also be manually selected and generated, or manually adjusted. The specific instructions are as follows:
参见图12,在一实施例中,步骤S101中,获取待处理图像中主体对象对应的目标区域,可以包括:Referring to FIG. 12, in one embodiment, in step S101, obtaining a target area corresponding to a subject object in the image to be processed may include:
子步骤S101d1:获取用户在待处理图像中对主体对象的框选操作。框选 操作的作用是用框选择主体对象并确定框的尺寸。Sub-step S101d1: Acquire the user's frame selection operation on the subject object in the image to be processed. The function of the frame selection operation is to use the frame to select the main object and determine the size of the frame.
子步骤S101d2:根据框选操作生成并显示目标对象框。Sub-step S101d2: Generate and display a target object frame according to the frame selection operation.
子步骤S101d3:将目标对象框在待处理图像中对应的区域作为目标区域。Sub-step S101d3: Use the area corresponding to the target object frame in the image to be processed as the target area.
在本实施例中,用户直接在待处理图像中对主体对象进行框选(一方面可以选择主体对象,另一方面可以调整框的尺寸大小),确定目标对象框,如果用户对目标对象框的轮廓没有其它要求,则可以将目标对象框在待处理图像中对应的区域作为目标区域。通过这种方式,能够充分发挥用户的参与积极性,满足用户需求,提升用户体验。In this embodiment, the user directly selects the subject object in the image to be processed (on the one hand, the subject object can be selected, on the other hand, the size of the frame can be adjusted) to determine the target object frame. If there are no other requirements for the contour, the area corresponding to the target object frame in the image to be processed can be used as the target area. In this way, the participation enthusiasm of users can be fully utilized, user needs can be met, and user experience can be improved.
在一实施例中,目标区域的轮廓与主体对象的轮廓匹配。同样,参见图13,为了使目标区域的轮廓与主体对象的轮廓匹配,用户需要在待处理图像中对该目标对象框进行轮廓的修改,则在子步骤S101d3之前,还可以包括:In one embodiment, the contour of the target area matches the contour of the main object. Similarly, referring to Fig. 13, in order to match the contour of the target area with the contour of the main object, the user needs to modify the contour of the target object frame in the image to be processed. Then, before the sub-step S101d3, it may further include:
子步骤S101d4:获取用户在待处理图像中对目标对象框的轮廓进行的轮廓修改操作。Sub-step S101d4: Obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed.
子步骤S101d5:根据轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与主体对象的轮廓匹配。Sub-step S101d5: Generate and display the modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object.
子步骤S101d6:将修改后的对象框重新作为目标对象框。Sub-step S101d6: re-use the modified object frame as the target object frame.
在本实施例中,用户能够对目标对象框的轮廓进行修改,以使修改后的对象框的轮廓与主体对象的轮廓匹配,能够重点突出主体对象,满足用户需求,提升用户体验。In this embodiment, the user can modify the contour of the target object frame so that the contour of the modified object frame matches the contour of the main object, which can focus on the main object, meet user needs, and improve user experience.
下面具体说明在实际应用中较为常见的预设要求及根据预设要求识别出非目标区域中的非主体对象的可能方式。The following specifically describes the more common preset requirements in practical applications and possible ways to identify non-subject objects in the non-target area based on the preset requirements.
在一实际应用中,预设要求包括利用人种特征区分人和除人之外的其它物体,和/或,利用其它物体特征区分其它物体和人。In an actual application, the preset requirements include using ethnic characteristics to distinguish people from objects other than people, and/or using other object characteristics to distinguish between other objects and people.
地球上所有的人属于同一个物种,即人种。人种特征是指人种具有的共同遗传体质特征,例如躯干比例、身高、肢长、面部轮廓、头形、眼形、鼻形、唇形,等等。人种特征能够将人与其它物体区分开来。All people on the earth belong to the same species, the race. Ethnic characteristics refer to the common genetic physical characteristics of races, such as torso ratio, height, limb length, facial contour, head shape, eye shape, nose shape, lip shape, and so on. Ethnic characteristics can distinguish people from other objects.
其它物体包括但不限于有生命的其它物体和无生命的其它物体。有生命的其它物体包括但不限于各种各样的宠物等。无生命的其它物体包括但不限于车辆、建筑,等等。其它物体特征能够区分其它物体和人,例如狗的特征能够区 分狗和人,车辆的特征能够区分车辆和人,等等。Other objects include but are not limited to other animate objects and other inanimate objects. Other living objects include, but are not limited to, various pets. Other inanimate objects include but are not limited to vehicles, buildings, etc. Other object features can distinguish other objects and people, for example, the feature of a dog can distinguish a dog from a person, the feature of a vehicle can distinguish a vehicle from a person, and so on.
在本实施例中,可以利用人种特征区分人和除人之外的其它物体,也可以利用其它物体特征区分其它物体和人,或者同时利用人种特征和其它物体特征区分人和除人之外的其它物体。In this embodiment, ethnic characteristics can be used to distinguish people from objects other than people, other object characteristics can also be used to distinguish other objects from people, or both ethnic characteristics and other object characteristics can be used to distinguish between people and other objects. Other objects outside.
此时,步骤S102中,根据预设要求识别出非目标区域中的非主体对象,可以包括:根据预设人种特征和/或预设其它物体特征,识别出非目标区域中与预设人种特征和/或预设其它物体特征匹配的对象,并标记为非主体对象。At this time, in step S102, recognizing the non-subject object in the non-target area according to the preset requirements may include: recognizing the non-subject object in the non-target area according to the preset ethnic characteristics and/or the preset features of other objects. This feature and/or preset other object features matching objects, and mark them as non-subject objects.
在本实施例中,识别范围是非目标区域,非主体对象是非目标区域中与预设人种特征和/或预设其它物体特征匹配的对象。例如:非主体对象是非目标区域中的人(预设人种特征),或者,非主体对象是非目标区域中的车辆(预设车辆特征),或者,非主体对象是非目标区域中的人和车辆(预设人种特征和预设车辆特征)。In this embodiment, the recognition range is a non-target area, and a non-subject object is an object in the non-target area that matches a preset ethnic feature and/or preset features of other objects. For example: a non-subject object is a person in a non-target area (preset ethnic characteristics), or a non-subject object is a vehicle in a non-target area (preset vehicle feature), or a non-subject object is a person and a vehicle in the non-target area (Preset race characteristics and preset vehicle characteristics).
例如:直接利用人种特征在非目标区域中识别出人;直接利用车辆特征在非目标区域中识别出车辆;或者,直接利用人种特征和车辆特征在非目标区域中识别出人和车辆。For example: directly use ethnic characteristics to identify people in non-target areas; directly use vehicle characteristics to identify vehicles in non-target areas; or directly use ethnic characteristics and vehicle characteristics to identify people and vehicles in non-target areas.
具体地,由于车辆的车牌号通常涉及个人隐私问题,在本实施例中,预设其它物体特征包括车辆特征。Specifically, since the license plate number of a vehicle usually involves personal privacy issues, in this embodiment, it is preset that other object features include vehicle features.
在另一实际应用中,预设要求包括利用人种特定特征区分不同人,和/或,利用其它物体特定特征区分不同其它物体。In another practical application, the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different objects.
人种特定特征是指能够在待处理图像中将不同人区分开来的特征,可以包括一个人具备的不同于其他人的唯一特定特征,例如:人脸特征、虹膜特征,等等;也可以包括附带在人身上的非唯一的、短期稳定的特征,例如:人体姿态特征、衣着特征、饰品特征,等等。Race-specific features refer to the features that can distinguish different people in the image to be processed, and can include unique features that a person has different from other people, such as facial features, iris features, etc.; also Including the non-unique, short-term stable characteristics attached to the human body, such as: human body posture characteristics, clothing characteristics, jewelry characteristics, etc.
其它物体特定特征是指能够在待处理图像中将不同其它物体区分开来的特征。例如:车牌号、车辆的颜色、车型,等等。Other object-specific features refer to features that can distinguish different other objects in the image to be processed. For example: license plate number, vehicle color, car model, etc.
在本实施例中,可以利用人种特定特征区分不同人,也可以利用其它物体特定特征区分不同其它物体,或者同时利用人种特定特征区分不同人和利用其它物体特定特征区分不同其它物体。In this embodiment, the specific characteristics of race can be used to distinguish different people, the specific characteristics of other objects can be used to distinguish different other objects, or the specific characteristics of race can be used to distinguish different people and the specific characteristics of other objects can be used to distinguish different other objects.
本实施例中的人种特定特征和/或其它物体特定特征可以独立应用,也可 以结合上述的人种特征和/或其它物体特征来一起应用。具体说明如下:The race-specific features and/or other object-specific features in this embodiment can be applied independently or in combination with the aforementioned race features and/or other object features. The specific instructions are as follows:
人种特定特征和人种特征、其它物体特定特征和其它物体特征结合起来应用时,参见图14,步骤S102中,根据预设要求识别出非目标区域中的非主体对象,可以包括:子步骤S102a1和子步骤S102a2。When a combination of race-specific features and race-specific features, other object-specific features and other object features are used in combination, refer to Figure 14. In step S102, identifying non-subjects in the non-target area according to preset requirements may include: sub-steps S102a1 and sub-step S102a2.
子步骤S102a1:根据预设人种特征和/或预设其它物体特征,识别出待处理图像中与预设人种特征和/或预设其它物体特征匹配的所有人对象和/或所有其它物体对象。Sub-step S102a1: According to the preset ethnic characteristics and/or preset other object characteristics, identify all human objects and/or all other objects in the image to be processed that match the preset ethnic characteristics and/or preset other object characteristics Object.
子步骤S102a2:获取主体对象的特定特征,识别出所有人对象和/或所有其它物体对象中与主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Sub-step S102a2: Obtain the specific features of the subject object, identify all people and/or all other objects that do not match the specific features of the subject object, and mark them as non-subject objects, where the specific features of the subject object include Race-specific characteristics and/or other object-specific characteristics.
在本实施例中,识别范围是整个待处理图像,先利用预设人种特征和/或预设其它物体特征识别出匹配的所有人对象和/或所有其它物体对象;然后获取主体对象的特定特征,从所有人对象和/或所有其它物体对象中识别出与主体对象的特定特征不匹配的对象,即为非主体对象。In this embodiment, the recognition range is the entire image to be processed. First, use the preset ethnic characteristics and/or preset other object characteristics to identify the matching human object and/or all other objects; then, obtain the specific object of the subject. Features: Identify objects that do not match the specific features of the subject from all human objects and/or all other objects, which are non-subject objects.
例如:先利用预设人种特征在整个待处理图像识别出所有4个人(包括主体对象),然后从这4个人中识别出与主体人物的特定特征不匹配的另外3个人,这3个人即为非主体对象。For example: first use the preset ethnic characteristics to identify all 4 people (including the subject object) in the entire image to be processed, and then identify the other 3 people that do not match the specific characteristics of the main person from these 4 people. These 3 people are It is a non-subject object.
需要说明的是,可以预先存储多个主体人物(例如一家人中,爷爷、奶奶、爸爸、妈妈、孩子、知心朋友,等等),在具体应用场景的时候,从中选择一个或者多个作为主体人物。It should be noted that multiple main characters (such as grandfather, grandma, father, mother, children, close friends, etc.) can be stored in advance, and one or more of them can be selected as the main body in specific application scenarios. character.
人种特定特征和/或其它物体特定特征单独应用时,步骤S102中,根据预设要求识别出非目标区域中的非主体对象,可以包括:获取主体对象的特定特征,识别出非目标区域中与主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,主体对象的特定特征包括人种特定特征和/或其它物体特定特征。When the race-specific features and/or other object-specific features are used separately, in step S102, identifying non-subject objects in the non-target area according to preset requirements may include: acquiring the specific features of the subject object, and identifying the non-subject objects in the non-target area Objects that do not match the specific characteristics of the subject object are marked as non-subject objects, where the specific characteristics of the subject object include race-specific characteristics and/or other object-specific characteristics.
在本实施例中,识别范围是非目标区域,非主体对象是非目标区域中与主体对象的特定特征不匹配的对象。直接利用主体对象的特定特征在非目标区域识别出不匹配的对象,即为非主体对象。In this embodiment, the recognition range is a non-target area, and a non-subject object is an object in the non-target area that does not match the specific feature of the subject object. Directly use the specific characteristics of the subject object to identify the unmatched object in the non-target area, that is, the non-subject object.
例如:直接利用主体人物的人脸特征在非目标区域中识别出不匹配的另外 2个人;直接利用红色车辆在非目标区域中识别出不匹配的白色车辆。For example: directly use the facial features of the main character to identify the other two people who do not match in the non-target area; directly use the red vehicle to identify the unmatched white vehicle in the non-target area.
其中,通常情况下应用较多的人种特定特征包括人脸、人体姿态、衣着中的一种或多种。每个人的人脸基本不一样;人体姿态是长期累月的习惯形成的,一般比较稳定,不容易改变;衣着也是跟人的性格特点、品味等因素相关的,一般比较稳定,不容易改变。Among them, the racial specific features that are commonly used in general include one or more of the face, the posture of the human body, and the clothing. Everyone's face is basically different; the posture of the human body is formed by a long-term habit and is generally stable and not easy to change; clothing is also related to a person's personality, taste and other factors, and is generally stable and not easy to change.
在又一实际应用中,如果主体对象是静止的,非主体对象是移动的,还可以采用另外的识别非主体对象的方式,说明如下:In another practical application, if the subject object is stationary and the non-subject object is moving, another method of identifying non-subject objects can also be used, as described below:
参见图15,步骤S102中,根据预设要求识别出非目标区域中的非主体对象,可以包括:Referring to FIG. 15, in step S102, identifying non-subject objects in the non-target area according to preset requirements may include:
子步骤S102b1:根据预设时长,抽取包括主体对象的多帧待处理图像。Sub-step S102b1: Extract multiple frames of images to be processed including the subject object according to the preset duration.
子步骤S102b2:通过多帧待处理图像判断出移动的对象,并将移动的对象标记为非主体对象。Sub-step S102b2: judging the moving object from multiple frames of images to be processed, and marking the moving object as a non-subject object.
在本实施例中,主体对象是静止的,非主体对象是移动的对象,移动的对象是移动的、运动的,其在每一帧图像中的位置是变化的,其在每一帧图像中的背景也是变化的,据此通过多帧待处理图像能够判断出移动的对象,具体地,例如利用帧差法、光流法、背景减除法,等等即可通过多帧待处理图像能够判断出移动的对象。In this embodiment, the subject object is static, the non-subject object is a moving object, and the moving object is moving and moving. Its position in each frame of image is changing, which is in each frame of image. The background of is also changing. Based on this, the moving object can be determined through multiple frames of images to be processed. Specifically, for example, using frame difference, optical flow, background subtraction, etc., it can be determined through multiple frames of images to be processed Out the moving object.
其中,通常情况下应用较多的非主体对象包括移动的人流、车流中的一种或两种。人流涉及肖像权的问题,车流涉及个人隐私问题,这是图像处理中通常比较关注的非主体对象。Among them, non-subject objects that are usually used more often include one or two of moving people and cars. The flow of people involves the issue of portrait rights, and the flow of cars involves the issue of personal privacy, which is a non-subject object that is usually concerned in image processing.
在一实际应用中,由于环境亮度不足时,获取的待处理图像质量较差,为了获得较好的图像质量,在步骤S101获取待处理图像之前,还包括:In an actual application, when the ambient brightness is insufficient, the quality of the acquired image to be processed is poor. In order to obtain better image quality, before acquiring the image to be processed in step S101, the method further includes:
检测当前环境的亮度,根据亮度确定曝光模式,不同的亮度对应不同曝光模式。具体地,当环境光不足时,对应长曝光模式;当环境光充足时,对应自动曝光模式。通过这种方式,能够在环境亮度不足的时候,充分发挥长曝光模式的优势,获得较好的图像质量。The brightness of the current environment is detected, and the exposure mode is determined according to the brightness. Different brightness corresponds to different exposure modes. Specifically, when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode. In this way, when the ambient brightness is insufficient, the advantages of the long exposure mode can be fully utilized to obtain better image quality.
在一应用场景中,例如拍摄,步骤S101中,获取待处理图像中主体对象对应的目标区域之前,还可以包括:提示用户需要静站的时间段。In an application scenario, such as shooting, in step S101, before obtaining the target area corresponding to the main object in the image to be processed, it may further include: a time period for prompting the user to stand still.
此时,步骤S102中,根据预设要求识别出非目标区域中的非主体对象, 是在用户静站的时间段内完成的,即在用户静站的时间段,根据预设要求识别出非目标区域中的非主体对象。At this time, in step S102, the identification of non-subject objects in the non-target area according to the preset requirements is completed within the time period when the user is quietly standing, that is, during the time when the user is quietly standing, the non-subject objects are identified according to the preset requirements. Non-subject objects in the target area.
在现有的拍摄场景,提示用户需要静站的时间段,这是常规操作,用户已经养成对应的拍摄习惯,本实施例沿用该拍摄习惯,在用户静站的时间段,完成识别非主体对象的流程。通过这种方式,能够使用户在发出拍摄指令后,即可得到包括主体对象和经过模糊处理后的非主体对象的目标图像,使用户产生没有另外专门等待图像处理的时间,从而提升用户体验。In the existing shooting scene, the user is prompted for the time period when the user needs to stand still. This is a normal operation. The user has developed the corresponding shooting habit. This embodiment uses the shooting habit to complete the identification of non-subjects during the time period when the user is still standing. The flow of the object. In this way, the user can obtain the target image including the subject object and the non-subject object after the blur processing after issuing the shooting instruction, so that the user does not have time to wait for image processing, thereby improving the user experience.
参见图16,图16是本申请图像处理设备一实施例的结构示意图,需要说明的是,本实施例的图像处理设备能够执行上述的图像处理方法中的步骤,相关内容的详细说明,请参见上述图像处理方法部分,在此不再赘叙。Refer to Figure 16, which is a schematic structural diagram of an embodiment of an image processing device of the present application. It should be noted that the image processing device of this embodiment can execute the steps in the above-mentioned image processing method. For a detailed description of related content, please refer to The part of the image processing method mentioned above will not be repeated here.
该图像处理设备10包括:存储器11和处理器12;存储器11和处理器12通过总线13连接。The image processing device 10 includes: a memory 11 and a processor 12; the memory 11 and the processor 12 are connected through a bus 13.
其中,处理器12可以是微控制单元、中央处理单元或数字信号处理器,等等。Among them, the processor 12 may be a micro control unit, a central processing unit, or a digital signal processor, and so on.
其中,存储器11可以是Flash芯片、只读存储器、磁盘、光盘、U盘或者移动硬盘等等。Among them, the memory 11 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a U disk or a mobile hard disk, etc.
存储器11用于存储计算机程序;该存储器11还可以根据实际需要存储预先录入的人种特征数据、其它物体特征数据、人种特定特征数据(例如人脸数据,等等),其它物体特定特征数据,等等,并提供给处理器12进行匹配识别。The memory 11 is used to store computer programs; the memory 11 can also store pre-entered racial characteristic data, other object characteristic data, racial specific characteristic data (such as face data, etc.), and other object specific characteristic data according to actual needs. , Etc., and provide the processor 12 for matching identification.
处理器12用于执行计算机程序并在执行计算机程序时,实现如下步骤:The processor 12 is used to execute a computer program and, when executing the computer program, implement the following steps:
获取待处理图像,并获取待处理图像中主体对象对应的目标区域;根据预设要求识别出非目标区域中的非主体对象,非目标区域为待处理图像中目标区域以外的区域;对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Obtain the image to be processed, and obtain the target area corresponding to the subject object in the image to be processed; identify the non-subject object in the non-target area according to preset requirements, and the non-target area is the area outside the target area in the image to be processed; for non-subjects The object is subjected to blur processing to obtain a target image including the subject object and the non-subject object after the blur processing.
本申请实施例获取待处理图像中主体对象的目标区域,识别出非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;能够避免非主 体对象影响目标图像中主体对象的重点显现;能够避免对非主体对象可能造成侵犯,避免引起不必要的纠纷。The embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
其中,处理器在执行计算机程序时,实现如下步骤:获取多帧待处理图像中主体对象对应的目标区域。Wherein, when the processor executes the computer program, the following steps are implemented: acquiring the target area corresponding to the subject object in the multiple frames of images to be processed.
其中,处理器在执行计算机程序时,实现如下步骤:获取其中一帧待处理图像中主体对象对应的目标区域;将目标区域在其中一帧待处理图像中对应的区域作为其它多帧待处理图像中主体对象对应的目标区域。Among them, when the processor executes the computer program, it implements the following steps: obtain the target area corresponding to the subject object in one frame of the to-be-processed image; use the corresponding area of the target area in one of the to-be-processed images as the other multiple frames of the to-be-processed image The target area corresponding to the main object in the middle.
其中,处理器在执行计算机程序时,实现如下步骤:根据对象识别算法识别待处理图像中的主体对象;根据主体对象生成并显示原始对象框;若原始对象框的数目是一个,则将原始对象框作为目标对象框,并将目标对象框在待处理图像中对应的区域作为目标区域。Among them, when the processor executes the computer program, it implements the following steps: recognize the subject object in the image to be processed according to the object recognition algorithm; generate and display the original object frame according to the subject object; if the number of the original object frame is one, the original object The frame is used as the target object frame, and the corresponding area of the target object frame in the image to be processed is taken as the target area.
其中,处理器在执行计算机程序时,实现如下步骤:若原始对象框的数目是两个以上,则获取用户在待处理图像中对其中一个原始对象框进行的选择操作;根据选择操作生成并显示目标对象框;将目标对象框在待处理图像中对应的区域作为目标区域。Among them, when the processor executes the computer program, the following steps are implemented: if the number of original object frames is more than two, obtain the user's selection operation on one of the original object frames in the image to be processed; generate and display according to the selection operation Target object frame; the area corresponding to the target object frame in the image to be processed is taken as the target area.
其中,对象识别算法包括人脸识别算法。Among them, object recognition algorithms include face recognition algorithms.
其中,处理器在执行计算机程序时,实现如下步骤:获取用户在待处理图像中对目标对象框进行的尺寸修改操作;根据尺寸修改操作生成并显示修改后的对象框;将修改后的对象框重新作为目标对象框。Among them, when the processor executes the computer program, it implements the following steps: obtain the size modification operation performed by the user on the target object frame in the image to be processed; generate and display the modified object frame according to the size modification operation; change the modified object frame As the target object frame again.
其中,处理器在执行计算机程序时,实现如下步骤:获取用户在待处理图像中对主体对象的框选操作;根据框选操作生成并显示目标对象框;将目标对象框在待处理图像中对应的区域作为目标区域。Among them, when the processor executes the computer program, it implements the following steps: obtain the user's frame selection operation on the subject object in the image to be processed; generate and display the target object frame according to the frame selection operation; correspond the target object frame in the image to be processed As the target area.
其中,处理器在执行计算机程序时,实现如下步骤:获取用户在待处理图像中对目标对象框的轮廓进行的轮廓修改操作;根据轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与主体对象的轮廓匹配;将修改后的对象框重新作为目标对象框。Among them, when the processor executes the computer program, it implements the following steps: obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed; generate and display the modified object frame according to the contour modification operation to make the modified object frame The outline of the object frame matches the outline of the main object; the modified object frame is used as the target object frame again.
其中,目标区域的轮廓与主体对象的轮廓匹配。Among them, the contour of the target area matches the contour of the main object.
其中,预设要求包括利用人种特征区分人和除人之外的其它物体,和/或,利用其它物体特征区分其它物体和人。Among them, the preset requirements include using ethnic characteristics to distinguish people from objects other than people, and/or using other object characteristics to distinguish other objects from people.
其中,处理器在执行计算机程序时,实现如下步骤:根据预设人种特征和/或预设其它物体特征,识别出非目标区域中与预设人种特征和/或预设其它物体特征匹配的对象,并标记为非主体对象。Wherein, when the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the non-target area matches the preset ethnic characteristics and/or the preset other object characteristics Object and mark it as a non-subject object.
其中,预设其它物体特征包括车辆特征。Among them, the preset other object features include vehicle features.
其中,预设要求包括利用人种特定特征区分不同人,和/或,利用其它物体特定特征区分不同其它物体。Among them, the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
其中,处理器在执行计算机程序时,实现如下步骤:根据预设人种特征和/或预设其它物体特征,识别出待处理图像中与预设人种特征和/或预设其它物体特征匹配的所有人对象和/或所有其它物体对象;获取主体对象的特定特征,识别出所有人对象和/或所有其它物体对象中与主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Wherein, when the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the image to be processed matches the preset ethnic characteristics and/or the preset other object characteristics The owner object and/or all other objects; obtain the specific characteristics of the subject object, identify all objects and/or all other objects that do not match the specific characteristics of the subject object, and mark them as non-subject objects, Among them, the specific characteristics of the subject object include the specific characteristics of race and/or the specific characteristics of other objects.
其中,处理器在执行计算机程序时,实现如下步骤:获取主体对象的特定特征,识别出非目标区域中与主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Among them, when the processor executes the computer program, it implements the following steps: obtain the specific features of the subject object, identify the objects in the non-target area that do not match the specific features of the subject object, and mark them as non-subject objects, where the Specific characteristics include race-specific characteristics and/or other object-specific characteristics.
其中,人种特定特征包括人脸、人体姿态、衣着中的一种或多种。Among them, the ethnic specific characteristics include one or more of the face, the posture of the human body, and the clothing.
其中,主体对象是静止的,非主体对象是移动的。Among them, the main object is static, and the non-main object is moving.
其中,处理器在执行计算机程序时,实现如下步骤:根据预设时长,抽取包括主体对象的多帧待处理图像;通过多帧待处理图像判断出移动的对象,并将移动的对象标记为非主体对象。Among them, when the processor executes the computer program, it implements the following steps: extracts multiple frames of to-be-processed images including the subject object according to the preset duration; judges the moving object through the multiple-frames of to-be-processed image, and marks the moving object as non Subject object.
其中,非主体对象包括移动的人流、车流中的一种或两种。Among them, non-subject objects include one or two of moving people and cars.
其中,处理器在执行计算机程序时,实现如下步骤:检测当前环境的亮度,根据亮度确定曝光模式,不同的亮度对应不同曝光模式。Wherein, when the processor executes the computer program, the following steps are implemented: detecting the brightness of the current environment, and determining the exposure mode according to the brightness, and different brightnesses correspond to different exposure modes.
其中,当环境光不足时,对应长曝光模式;当环境光充足时,对应自动曝光模式。Among them, when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode.
其中,处理器在执行计算机程序时,实现如下步骤:对目标区域的边缘进行过渡处理;得到包括目标区域的边缘经过过渡处理后的主体对象和经过模糊处理后的非主体对象的目标图像。Wherein, when the processor executes the computer program, the following steps are implemented: transition processing on the edge of the target area; obtaining a target image including a subject object after the transition processing on the edge of the target area and a non-subject object after blur processing.
其中,处理器在执行计算机程序时,实现如下步骤:对目标区域的边缘进行羽化、锐化、液化、加强对比度中的一种或多种处理。Wherein, when the processor executes the computer program, it implements the following steps: performing one or more processing of feathering, sharpening, liquefying, and enhancing contrast on the edge of the target area.
其中,处理器在执行计算机程序时,实现如下步骤:选用一帧或多帧待处理图像,对一帧或多帧待处理图像进行模糊处理。Wherein, when the processor executes the computer program, the following steps are implemented: selecting one or more frames of images to be processed, and performing blur processing on one or more frames of images to be processed.
其中,模糊处理包括横向模糊、竖向模糊、径向模糊、斜向模糊、马赛克、区域填充、背景覆盖在内的一种或多种模糊处理。Among them, the blur processing includes one or more blur processing including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage.
其中,处理器在执行计算机程序时,实现如下步骤:提示用户需要静站的时间段。Among them, when the processor executes the computer program, it implements the following steps: prompting the user for a period of time when the user needs to stand still.
其中,处理器在执行计算机程序时,实现如下步骤:在用户静站的时间段,根据预设要求识别出非目标区域中的非主体对象。Wherein, when the processor executes the computer program, the following steps are implemented: during the time period when the user is quietly standing, the non-subject objects in the non-target area are identified according to preset requirements.
本申请还提供一种拍摄装置,该拍摄装置能够执行上述图像处理方法中的步骤,相关内容的详细说明,请参见上述图像处理方法部分,在此不再赘叙。本申请实施例的拍摄装置包括但不限于:数码相机、配备有摄像模块的移动设备,等等。该拍摄装置包括:存储器和处理器;存储器用于存储计算机程序;处理器用于执行计算机程序并在执行计算机程序时,实现如下步骤:The present application also provides a photographing device that can execute the steps in the above-mentioned image processing method. For detailed descriptions of related content, please refer to the above-mentioned image processing method part, which will not be repeated here. The photographing device in the embodiment of the present application includes, but is not limited to, a digital camera, a mobile device equipped with a camera module, and so on. The photographing device includes: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and when the computer program is executed, the following steps are implemented:
获取待处理图像,并获取待处理图像中主体对象对应的目标区域;根据预设要求识别出非目标区域中的非主体对象,非目标区域为待处理图像中目标区域以外的区域;对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Obtain the image to be processed, and obtain the target area corresponding to the subject object in the image to be processed; identify the non-subject object in the non-target area according to preset requirements, and the non-target area is the area outside the target area in the image to be processed; for non-subjects The object is subjected to blur processing to obtain a target image including the subject object and the non-subject object after the blur processing.
本申请实施例获取待处理图像中主体对象的目标区域,识别出非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;能够避免非主体对象影响目标图像中主体对象的重点显现;能够避免对非主体对象可能造成侵犯,避免引起不必要的纠纷。The embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
其中,处理器在执行计算机程序时,实现如下步骤:获取多帧待处理图像中主体对象对应的目标区域。Wherein, when the processor executes the computer program, the following steps are implemented: acquiring the target area corresponding to the subject object in the multiple frames of images to be processed.
其中,处理器在执行计算机程序时,实现如下步骤:获取其中一帧待处理图像中主体对象对应的目标区域;将目标区域在其中一帧待处理图像中对应的 区域作为其它多帧待处理图像中主体对象对应的目标区域。Among them, when the processor executes the computer program, it implements the following steps: obtain the target area corresponding to the subject object in one frame of the to-be-processed image; use the corresponding area of the target area in one of the to-be-processed images as the other multiple frames of the to-be-processed image The target area corresponding to the main object in the middle.
其中,处理器在执行计算机程序时,实现如下步骤:根据对象识别算法识别待处理图像中的主体对象;根据主体对象生成并显示原始对象框;若原始对象框的数目是一个,则将原始对象框作为目标对象框,并将目标对象框在待处理图像中对应的区域作为目标区域。Among them, when the processor executes the computer program, it implements the following steps: recognize the subject object in the image to be processed according to the object recognition algorithm; generate and display the original object frame according to the subject object; if the number of the original object frame is one, the original object The frame is used as the target object frame, and the corresponding area of the target object frame in the image to be processed is taken as the target area.
其中,处理器在执行计算机程序时,实现如下步骤:若原始对象框的数目是两个以上,则获取用户在待处理图像中对其中一个原始对象框进行的选择操作;根据选择操作生成并显示目标对象框;将目标对象框在待处理图像中对应的区域作为目标区域。Among them, when the processor executes the computer program, the following steps are implemented: if the number of original object frames is more than two, obtain the user's selection operation on one of the original object frames in the image to be processed; generate and display according to the selection operation Target object frame; the area corresponding to the target object frame in the image to be processed is taken as the target area.
其中,对象识别算法包括人脸识别算法。Among them, object recognition algorithms include face recognition algorithms.
其中,处理器在执行计算机程序时,实现如下步骤:获取用户在待处理图像中对目标对象框进行的尺寸修改操作;根据尺寸修改操作生成并显示修改后的对象框;将修改后的对象框重新作为目标对象框。Among them, when the processor executes the computer program, it implements the following steps: obtain the size modification operation performed by the user on the target object frame in the image to be processed; generate and display the modified object frame according to the size modification operation; change the modified object frame As the target object frame again.
其中,处理器在执行计算机程序时,实现如下步骤:获取用户在待处理图像中对主体对象的框选操作;根据框选操作生成并显示目标对象框;将目标对象框在待处理图像中对应的区域作为目标区域。Among them, when the processor executes the computer program, it implements the following steps: obtain the user's frame selection operation on the subject object in the image to be processed; generate and display the target object frame according to the frame selection operation; correspond the target object frame in the image to be processed As the target area.
其中,处理器在执行计算机程序时,实现如下步骤:获取用户在待处理图像中对目标对象框的轮廓进行的轮廓修改操作;根据轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与主体对象的轮廓匹配;将修改后的对象框重新作为目标对象框。Among them, when the processor executes the computer program, it implements the following steps: obtain the contour modification operation performed by the user on the contour of the target object frame in the image to be processed; generate and display the modified object frame according to the contour modification operation to make the modified object frame The outline of the object frame matches the outline of the main object; the modified object frame is used as the target object frame again.
其中,目标区域的轮廓与主体对象的轮廓匹配。Among them, the contour of the target area matches the contour of the main object.
其中,预设要求包括利用人种特征区分人和除人之外的其它物体,和/或,利用其它物体特征区分其它物体和人。Among them, the preset requirements include using ethnic characteristics to distinguish people from objects other than people, and/or using other object characteristics to distinguish other objects from people.
其中,处理器在执行计算机程序时,实现如下步骤:根据预设人种特征和/或预设其它物体特征,识别出非目标区域中与预设人种特征和/或预设其它物体特征匹配的对象,并标记为非主体对象。Wherein, when the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the non-target area matches the preset ethnic characteristics and/or the preset other object characteristics Object and mark it as a non-subject object.
其中,预设其它物体特征包括车辆特征。Among them, the preset other object features include vehicle features.
其中,预设要求包括利用人种特定特征区分不同人,和/或,利用其它物体特定特征区分不同其它物体。Among them, the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
其中,处理器在执行计算机程序时,实现如下步骤:根据预设人种特征和/或预设其它物体特征,识别出待处理图像中与预设人种特征和/或预设其它物体特征匹配的所有人对象和/或所有其它物体对象;获取主体对象的特定特征,识别出所有人对象和/或所有其它物体对象中与主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Wherein, when the processor executes the computer program, the following steps are implemented: according to the preset ethnic characteristics and/or the preset other object characteristics, it is recognized that the image to be processed matches the preset ethnic characteristics and/or the preset other object characteristics The owner object and/or all other objects; obtain the specific characteristics of the subject object, identify all objects and/or all other objects that do not match the specific characteristics of the subject object, and mark them as non-subject objects, Among them, the specific characteristics of the subject object include the specific characteristics of race and/or the specific characteristics of other objects.
其中,处理器在执行计算机程序时,实现如下步骤:获取主体对象的特定特征,识别出非目标区域中与主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Among them, when the processor executes the computer program, it implements the following steps: obtain the specific features of the subject object, identify the objects in the non-target area that do not match the specific features of the subject object, and mark them as non-subject objects, where the Specific characteristics include race-specific characteristics and/or other object-specific characteristics.
其中,人种特定特征包括人脸、人体姿态、衣着中的一种或多种。Among them, the ethnic specific characteristics include one or more of the face, the posture of the human body, and the clothing.
其中,主体对象是静止的,非主体对象是移动的。Among them, the main object is static, and the non-main object is moving.
其中,处理器在执行计算机程序时,实现如下步骤:根据预设时长,抽取包括主体对象的多帧待处理图像;通过多帧待处理图像判断出移动的对象,并将移动的对象标记为非主体对象。Among them, when the processor executes the computer program, it implements the following steps: extracts multiple frames of to-be-processed images including the subject object according to the preset duration; judges the moving object through the multiple-frames of to-be-processed image, and marks the moving object as non Subject object.
其中,非主体对象包括移动的人流、车流中的一种或两种。Among them, non-subject objects include one or two of moving people and cars.
其中,处理器在执行计算机程序时,实现如下步骤:检测当前环境的亮度,根据亮度确定曝光模式,不同的亮度对应不同曝光模式。Wherein, when the processor executes the computer program, the following steps are implemented: detecting the brightness of the current environment, and determining the exposure mode according to the brightness, and different brightnesses correspond to different exposure modes.
其中,当环境光不足时,对应长曝光模式;当环境光充足时,对应自动曝光模式。Among them, when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode.
其中,处理器在执行计算机程序时,实现如下步骤:对目标区域的边缘进行过渡处理;得到包括目标区域的边缘经过过渡处理后的主体对象和经过模糊处理后的非主体对象的目标图像。Wherein, when the processor executes the computer program, the following steps are implemented: transition processing on the edge of the target area; obtaining a target image including a subject object after the transition processing on the edge of the target area and a non-subject object after blur processing.
其中,处理器在执行计算机程序时,实现如下步骤:对目标区域的边缘进行羽化、锐化、液化、加强对比度中的一种或多种处理。Wherein, when the processor executes the computer program, it implements the following steps: performing one or more processing of feathering, sharpening, liquefying, and enhancing contrast on the edge of the target area.
其中,处理器在执行计算机程序时,实现如下步骤:选用一帧或多帧待处理图像,对一帧或多帧待处理图像进行模糊处理。Wherein, when the processor executes the computer program, the following steps are implemented: selecting one or more frames of images to be processed, and performing blur processing on one or more frames of images to be processed.
其中,模糊处理包括横向模糊、竖向模糊、径向模糊、斜向模糊、马赛克、区域填充、背景覆盖在内的一种或多种模糊处理。The blur processing includes one or more blur processing including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage.
其中,处理器在执行计算机程序时,实现如下步骤:提示用户需要静站的时间段。Among them, when the processor executes the computer program, it implements the following steps: prompting the user for a period of time for a quiet station.
其中,处理器在执行计算机程序时,实现如下步骤:在用户静站的时间段,根据预设要求识别出非目标区域中的非主体对象。Wherein, when the processor executes the computer program, the following steps are implemented: during the time period when the user is quietly standing, the non-subject objects in the non-target area are identified according to preset requirements.
本申请还提供一种可移动平台,可移动平台包括拍摄装置,本实施例的拍摄装置可以是上述任一项拍摄装置,相关内容的详细说明请参见上述拍摄装置部分,在此不再赘叙。该拍摄装置包括:存储器和处理器;存储器用于存储计算机程序;处理器用于执行计算机程序并在执行计算机程序时,实现如上任一项的图像处理方法。The present application also provides a movable platform. The movable platform includes a photographing device. The photographing device in this embodiment can be any one of the above-mentioned photographing devices. For detailed descriptions of related content, please refer to the above-mentioned photographing device section, which will not be repeated here. . The photographing device includes: a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when the computer program is executed, realize the image processing method as described above.
其中,可移动平台是指可以自动移动或者在受控条件下移动的各种平台,包括但不限于云台、无人飞行器或无人车辆中的一种或多种。Among them, the movable platform refers to various platforms that can move automatically or under controlled conditions, including but not limited to one or more of pan/tilt, unmanned aerial vehicle or unmanned vehicle.
本申请实施例获取待处理图像中主体对象的目标区域,识别出非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;能够避免非主体对象影响目标图像中主体对象的重点显现;能够避免对非主体对象可能造成侵犯,避免引起不必要的纠纷。The embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时使处理器实现如上任一项的图像处理方法。相关内容的详细说明请参见上述图像处理方法部分,在此不再赘叙。This application also provides a computer-readable storage medium that stores a computer program, and when the computer program is executed by a processor, the processor implements the image processing method as described above. For a detailed description of the relevant content, please refer to the above image processing method section, which is not repeated here.
其中,该计算机可读存储介质可以是上述任一图像处理设备的内部存储单元,例如图像处理设备的硬盘或内存。该计算机可读存储介质也可以是图像处理设备的外部存储设备,例如图像处理设备上配备的插接式硬盘、智能存储卡、安全数字卡、闪存卡,等等。Wherein, the computer-readable storage medium may be an internal storage unit of any of the foregoing image processing devices, such as a hard disk or memory of the image processing device. The computer-readable storage medium may also be an external storage device of the image processing device, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc., equipped on the image processing device.
本申请实施例获取待处理图像中主体对象的目标区域,识别出非目标区域中的非主体对象,对非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。由于目标图像中的非主体对象已经经过模糊处理,通过这种方式,能够将非主体对象排除在目标图像之外;能够避免非主体对象影响目标图像中主体对象的重点显现;能够避免对非主体对象可能造成 侵犯,避免引起不必要的纠纷。The embodiment of the application obtains the target area of the subject object in the image to be processed, recognizes the non-subject object in the non-target area, and blurs the non-subject object to obtain a target image including the subject object and the non-subject object after the blur process . Since the non-subject objects in the target image have been blurred, in this way, the non-subject objects can be excluded from the target image; the non-subject objects can be prevented from affecting the key appearance of the subject objects in the target image; the non-subject objects can be avoided The subject may cause infringement to avoid unnecessary disputes.
应当理解,在本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。It should be understood that the terms used in the description of this application are only for the purpose of describing specific embodiments and are not intended to limit the application.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the specification and appended claims of this application refers to any combination of one or more of the items listed in the associated and all possible combinations, and includes these combinations.
以上所述,仅为本申请的具体实施例,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in this application. Modifications or replacements, these modifications or replacements shall be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (87)

  1. 一种图像处理方法,其特征在于,包括:An image processing method, characterized by comprising:
    获取待处理图像,并获取所述待处理图像中主体对象对应的目标区域;Acquiring the image to be processed, and acquiring the target area corresponding to the subject object in the image to be processed;
    根据预设要求识别出非目标区域中的非主体对象,所述非目标区域为所述待处理图像中所述目标区域以外的区域;Identifying a non-subject object in a non-target area according to preset requirements, where the non-target area is an area outside the target area in the image to be processed;
    对所述非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  2. 根据权利要求1所述的图像处理方法,其特征在于,所述获取所述待处理图像中主体对象对应的目标区域,包括:The image processing method according to claim 1, wherein said obtaining the target area corresponding to the subject object in the image to be processed comprises:
    获取多帧所述待处理图像中主体对象对应的目标区域。Acquire the target area corresponding to the subject object in the multiple frames of the image to be processed.
  3. 根据权利要求2所述的图像处理方法,其特征在于,所述获取多帧所述待处理图像中主体对象对应的目标区域,包括:The image processing method according to claim 2, wherein said acquiring a target area corresponding to a subject object in the image to be processed in multiple frames comprises:
    获取其中一帧所述待处理图像中主体对象对应的目标区域;Acquiring a target area corresponding to the subject object in one of the frames of the image to be processed;
    将所述目标区域在其中一帧所述待处理图像中对应的区域作为其它多帧所述待处理图像中主体对象对应的目标区域。The area corresponding to the target area in one frame of the image to be processed is used as the target area corresponding to the subject object in the other frames of the image to be processed.
  4. 根据权利要求1所述的图像处理方法,其特征在于,所述获取所述待处理图像中主体对象对应的目标区域,包括:The image processing method according to claim 1, wherein said obtaining the target area corresponding to the subject object in the image to be processed comprises:
    根据对象识别算法识别所述待处理图像中的主体对象;Identifying the subject object in the image to be processed according to an object recognition algorithm;
    根据所述主体对象生成并显示原始对象框;Generating and displaying an original object frame according to the main object;
    若所述原始对象框的数目是一个,则将所述原始对象框作为目标对象框,并将所述目标对象框在所述待处理图像中对应的区域作为目标区域。If the number of the original object frame is one, the original object frame is taken as the target object frame, and the area corresponding to the target object frame in the image to be processed is taken as the target area.
  5. 根据权利要求4所述的图像处理方法,其特征在于,所述方法还包括:The image processing method according to claim 4, wherein the method further comprises:
    若所述原始对象框的数目是两个以上,则获取用户在所述待处理图像中对其中一个原始对象框进行的选择操作;If the number of the original object frames is more than two, acquiring a selection operation performed by the user on one of the original object frames in the image to be processed;
    根据所述选择操作生成并显示目标对象框;Generating and displaying a target object frame according to the selection operation;
    将所述目标对象框在所述待处理图像中对应的区域作为目标区域。The area corresponding to the target object frame in the image to be processed is taken as the target area.
  6. 根据权利要求4所述的图像处理方法,其特征在于,所述对象识别算法包括人脸识别算法。The image processing method according to claim 4, wherein the object recognition algorithm comprises a face recognition algorithm.
  7. 根据权利要求4-5任一项所述的图像处理方法,其特征在于,所述将所述目标对象框在所述待处理图像中对应的区域作为目标区域之前,包括:The image processing method according to any one of claims 4-5, wherein the step of using the target object frame in the image to be processed in the corresponding region as the target region comprises:
    获取用户在所述待处理图像中对所述目标对象框进行的尺寸修改操作;Acquiring the size modification operation performed by the user on the target object frame in the image to be processed;
    根据所述尺寸修改操作生成并显示修改后的对象框;Generate and display the modified object frame according to the size modification operation;
    将修改后的对象框重新作为目标对象框。Re-use the modified object frame as the target object frame.
  8. 根据权利要求1所述的图像处理方法,其特征在于,所述获取所述待处理图像中主体对象对应的目标区域,包括:The image processing method according to claim 1, wherein said obtaining the target area corresponding to the subject object in the image to be processed comprises:
    获取用户在所述待处理图像中对所述主体对象的框选操作;Acquiring a user's frame selection operation on the subject object in the to-be-processed image;
    根据所述框选操作生成并显示目标对象框;Generating and displaying a target object frame according to the frame selection operation;
    将所述目标对象框在所述待处理图像中对应的区域作为目标区域。The area corresponding to the target object frame in the image to be processed is taken as the target area.
  9. 根据权利要求4-8任一项所述的图像处理方法,其特征在于,所述将所述目标对象框在所述待处理图像中对应的区域作为目标区域之前,包括:8. The image processing method according to any one of claims 4-8, wherein before using the target object frame in the image to be processed in the corresponding area as the target area, the method comprises:
    获取用户在所述待处理图像中对所述目标对象框的轮廓进行的轮廓修改操作;Acquiring the contour modification operation performed by the user on the contour of the target object frame in the image to be processed;
    根据所述轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与所述主体对象的轮廓匹配;Generating and displaying a modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object;
    将修改后的对象框重新作为目标对象框。Re-use the modified object frame as the target object frame.
  10. 根据权利要求1所述的图像处理方法,其特征在于,所述目标区域的轮廓与所述主体对象的轮廓匹配。The image processing method according to claim 1, wherein the contour of the target area matches the contour of the main object.
  11. 根据权利要求1所述的图像处理方法,其特征在于,所述预设要求包括利用人种特征区分人和除人之外的其它物体,和/或,利用其它物体特征区分其它物体和人。The image processing method according to claim 1, wherein the preset requirements include distinguishing people from objects other than people by racial characteristics, and/or distinguishing other objects and people by characteristics of other objects.
  12. 根据权利要求11所述的图像处理方法,其特征在于,所述根据预设要求识别出非目标区域中的非主体对象,包括:The image processing method according to claim 11, wherein the identifying the non-subject object in the non-target area according to a preset requirement comprises:
    根据预设人种特征和/或预设其它物体特征,识别出所述非目标区域中与所述预设人种特征和/或预设其它物体特征匹配的对象,并标记为非主体对象。According to the preset ethnic characteristics and/or the preset other object characteristics, objects in the non-target area that match the preset ethnic characteristics and/or the preset other object characteristics are identified and marked as non-subject objects.
  13. 根据权利要求12所述的图像处理方法,其特征在于,所述预设其它物体特征包括车辆特征。The image processing method according to claim 12, wherein the preset other object characteristics include vehicle characteristics.
  14. 根据权利要求1或11所述的图像处理方法,其特征在于,所述预设 要求包括利用人种特定特征区分不同人,和/或,利用其它物体特定特征区分不同其它物体。The image processing method according to claim 1 or 11, wherein the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
  15. 根据权利要求14所述的图像处理方法,其特征在于,所述根据预设要求识别出非目标区域中的非主体对象,包括:The image processing method according to claim 14, wherein the identifying the non-subject object in the non-target area according to a preset requirement comprises:
    根据预设人种特征和/或预设其它物体特征,识别出所述待处理图像中与所述预设人种特征和/或预设其它物体特征匹配的所有人对象和/或所有其它物体对象;According to preset ethnic characteristics and/or preset other object characteristics, identify all human objects and/or all other objects in the image to be processed that match the preset ethnic characteristics and/or preset other object characteristics Object
    获取所述主体对象的特定特征,识别出所述所有人对象和/或所有其它物体对象中与所述主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,所述主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Obtain the specific feature of the subject object, identify the object that does not match the specific feature of the subject object among the human object and/or all other objects, and mark it as a non-subject object, wherein the subject object The specific characteristics of includes race-specific characteristics and/or other object-specific characteristics.
  16. 根据权利要求14所述的图像处理方法,其特征在于,所述根据预设要求识别出非目标区域中的非主体对象,包括:The image processing method according to claim 14, wherein the identifying the non-subject object in the non-target area according to a preset requirement comprises:
    获取所述主体对象的特定特征,识别出所述非目标区域中与所述主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,所述主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Acquire the specific feature of the subject object, identify the object in the non-target area that does not match the specific feature of the subject object, and mark it as a non-subject object, wherein the specific feature of the subject object includes race-specific Features and/or other object specific features.
  17. 根据权利要求14所述的图像处理方法,其特征在于,所述人种特定特征包括人脸、人体姿态、衣着中的一种或多种。The image processing method according to claim 14, wherein the ethnic specific characteristics include one or more of a human face, a human body posture, and clothing.
  18. 根据权利要求2所述的图像处理方法,其特征在于,所述主体对象是静止的,所述非主体对象是移动的。The image processing method according to claim 2, wherein the subject object is static and the non-subject object is moving.
  19. 根据权利要求18所述的图像处理方法,其特征在于,所述根据预设要求识别出非目标区域中的非主体对象,包括:The image processing method according to claim 18, wherein the identifying a non-subject object in a non-target area according to a preset requirement comprises:
    根据预设时长,抽取包括所述主体对象的多帧待处理图像;Extracting multiple frames of to-be-processed images including the subject object according to a preset time length;
    通过所述多帧待处理图像判断出移动的对象,并将所述移动的对象标记为非主体对象。The moving object is determined from the multiple frames of images to be processed, and the moving object is marked as a non-subject object.
  20. 根据权利要求18所述的图像处理方法,其特征在于,所述非主体对象包括移动的人流、车流中的一种或两种。The image processing method according to claim 18, wherein the non-subject object includes one or two of moving people and traffic.
  21. 根据权利要求1所述的图像处理方法,其特征在于,所述获取待处理图像之前,还包括:The image processing method according to claim 1, wherein before the acquiring the image to be processed, the method further comprises:
    检测当前环境的亮度,根据所述亮度确定曝光模式,不同的亮度对应不同 曝光模式。The brightness of the current environment is detected, and the exposure mode is determined according to the brightness, and different brightnesses correspond to different exposure modes.
  22. 根据权利要求21所述的图像处理方法,其特征在于,当环境光不足时,对应长曝光模式;当环境光充足时,对应自动曝光模式。22. The image processing method of claim 21, wherein when the ambient light is insufficient, the long exposure mode is corresponding; when the ambient light is sufficient, the automatic exposure mode is corresponding.
  23. 根据权利要求1所述的图像处理方法,其特征在于,所述得到包括主体对象和经过模糊处理后的非主体对象的目标图像之前,还包括:The image processing method according to claim 1, wherein before obtaining the target image including the subject object and the non-subject object after blur processing, the method further comprises:
    对所述目标区域的边缘进行过渡处理;Performing transition processing on the edge of the target area;
    所述得到包括主体对象和经过模糊处理后的非主体对象的目标图像,包括:The obtaining the target image including the subject object and the non-subject object after the blur processing includes:
    得到包括目标区域的边缘经过过渡处理后的主体对象和经过模糊处理后的非主体对象的目标图像。Obtain the target image including the subject object after the transition processing on the edge of the target area and the non-subject object after the blur processing.
  24. 根据权利要求23所述的图像处理方法,其特征在于,所述对所述目标区域的边缘进行过渡处理,包括:22. The image processing method according to claim 23, wherein the performing transition processing on the edge of the target area comprises:
    对所述目标区域的边缘进行羽化、锐化、液化、加强对比度中的一种或多种处理。One or more of feathering, sharpening, liquefaction, and contrast enhancement are performed on the edge of the target area.
  25. 根据权利要求1所述的图像处理方法,其特征在于,所述对所述非主体对象进行模糊处理,包括:The image processing method according to claim 1, wherein said blurring said non-subject object comprises:
    选用一帧或多帧待处理图像,对所述一帧或多帧待处理图像进行模糊处理。One or more frames of images to be processed are selected, and blur processing is performed on the one or more frames of images to be processed.
  26. 根据权利要求1所述的图像处理方法,其特征在于,所述模糊处理包括横向模糊、竖向模糊、径向模糊、斜向模糊、马赛克、区域填充、背景覆盖在内的一种或多种模糊处理。The image processing method according to claim 1, wherein the blur processing includes one or more of horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage. Blur processing.
  27. 根据权利要求1所述的图像处理方法,其特征在于,所述获取所述待处理图像中主体对象对应的目标区域之前,还包括:The image processing method according to claim 1, wherein before said acquiring the target area corresponding to the subject object in the image to be processed, the method further comprises:
    提示用户需要静站的时间段。Prompt the user to stop the time period.
  28. 根据权利要求27所述的图像处理方法,其特征在于,所述根据预设要求识别出非目标区域中的非主体对象,包括:The image processing method according to claim 27, wherein the identifying the non-subject object in the non-target area according to a preset requirement comprises:
    在用户静站的时间段,根据预设要求识别出非目标区域中的非主体对象。During the time when the user is standing still, the non-subject objects in the non-target area are identified according to preset requirements.
  29. 一种图像处理设备,其特征在于,所述图像处理设备包括:存储器和处理器;An image processing device, characterized in that the image processing device includes: a memory and a processor;
    所述存储器用于存储计算机程序;The memory is used to store computer programs;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The processor is used to execute the computer program and when executing the computer program, implement the following steps:
    获取待处理图像,并获取所述待处理图像中主体对象对应的目标区域;Acquiring the image to be processed, and acquiring the target area corresponding to the subject object in the image to be processed;
    根据预设要求识别出非目标区域中的非主体对象,所述非目标区域为所述待处理图像中目标区域以外的区域;Identifying a non-subject object in a non-target area according to preset requirements, where the non-target area is an area outside the target area in the image to be processed;
    对所述非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  30. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    获取多帧所述待处理图像中主体对象对应的目标区域。Acquire the target area corresponding to the subject object in the multiple frames of the image to be processed.
  31. 根据权利要求30所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 30, wherein the processor implements the following steps when executing the computer program:
    获取其中一帧所述待处理图像中主体对象对应的目标区域;Acquiring a target area corresponding to the subject object in one of the frames of the image to be processed;
    将所述目标区域在其中一帧所述待处理图像中对应的区域作为其它多帧所述待处理图像中主体对象对应的目标区域。The area corresponding to the target area in one frame of the image to be processed is used as the target area corresponding to the subject object in the other frames of the image to be processed.
  32. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    根据对象识别算法识别所述待处理图像中的主体对象;Identifying the subject object in the image to be processed according to an object recognition algorithm;
    根据所述主体对象生成并显示原始对象框;Generating and displaying an original object frame according to the main object;
    若所述原始对象框的数目是一个,则将所述原始对象框作为目标对象框,并将所述目标对象框在所述待处理图像中对应的区域作为目标区域。If the number of the original object frame is one, the original object frame is taken as the target object frame, and the area corresponding to the target object frame in the image to be processed is taken as the target area.
  33. 根据权利要求32所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 32, wherein the processor implements the following steps when executing the computer program:
    若所述原始对象框的数目是两个以上,则获取用户在所述待处理图像中对其中一个原始对象框进行的选择操作;If the number of the original object frames is more than two, acquiring a selection operation performed by the user on one of the original object frames in the image to be processed;
    根据所述选择操作生成并显示目标对象框;Generating and displaying a target object frame according to the selection operation;
    将所述目标对象框在所述待处理图像中对应的区域作为目标区域。The area corresponding to the target object frame in the image to be processed is taken as the target area.
  34. 根据权利要求32所述的图像处理设备,其特征在于,所述对象识别 算法包括人脸识别算法。The image processing device according to claim 32, wherein the object recognition algorithm comprises a face recognition algorithm.
  35. 根据权利要求32-33任一项所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to any one of claims 32-33, wherein the processor implements the following steps when executing the computer program:
    获取用户在所述待处理图像中对所述目标对象框进行的尺寸修改操作;Acquiring the size modification operation performed by the user on the target object frame in the image to be processed;
    根据所述尺寸修改操作生成并显示修改后的对象框;Generate and display the modified object frame according to the size modification operation;
    将修改后的对象框重新作为目标对象框。Use the modified object frame as the target object frame again.
  36. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    获取用户在所述待处理图像中对所述主体对象的框选操作;Acquiring a user's frame selection operation on the subject object in the to-be-processed image;
    根据所述框选操作生成并显示目标对象框;Generating and displaying a target object frame according to the frame selection operation;
    将所述目标对象框在所述待处理图像中对应的区域作为目标区域。The area corresponding to the target object frame in the image to be processed is taken as the target area.
  37. 根据权利要求32-36任一项所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to any one of claims 32-36, wherein the processor implements the following steps when executing the computer program:
    获取用户在所述待处理图像中对所述目标对象框的轮廓进行的轮廓修改操作;Acquiring the contour modification operation performed by the user on the contour of the target object frame in the image to be processed;
    根据所述轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与所述主体对象的轮廓匹配;Generating and displaying a modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object;
    将修改后的对象框重新作为目标对象框。Re-use the modified object frame as the target object frame.
  38. 根据权利要求29所述的图像处理设备,其特征在于,所述目标区域的轮廓与所述主体对象的轮廓匹配。The image processing device according to claim 29, wherein the contour of the target area matches the contour of the main object.
  39. 根据权利要求29所述的图像处理设备,其特征在于,所述预设要求包括利用人种特征区分人和除人之外的其它物体,和/或,利用其它物体特征区分其它物体和人。28. The image processing device according to claim 29, wherein the preset requirements include distinguishing people from objects other than people by racial characteristics, and/or distinguishing other objects from people by characteristics of other objects.
  40. 根据权利要求39所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 39, wherein said processor implements the following steps when executing said computer program:
    根据预设人种特征和/或预设其它物体特征,识别出所述非目标区域中与所述预设人种特征和/或预设其它物体特征匹配的对象,并标记为非主体对象。According to the preset ethnic characteristics and/or the preset other object characteristics, objects in the non-target area that match the preset ethnic characteristics and/or the preset other object characteristics are identified and marked as non-subject objects.
  41. 根据权利要求40所述的图像处理设备,其特征在于,所述预设其它物体特征包括车辆特征。The image processing device according to claim 40, wherein the preset other object characteristics include vehicle characteristics.
  42. 根据权利要求29或39所述的图像处理设备,其特征在于,所述预设要求包括利用人种特定特征区分不同人,和/或,利用其它物体特定特征区分不同其它物体。The image processing device according to claim 29 or 39, wherein the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
  43. 根据权利要求42所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 42, wherein the processor implements the following steps when executing the computer program:
    根据预设人种特征和/或预设其它物体特征,识别出所述待处理图像中与所述预设人种特征和/或预设其它物体特征匹配的所有人对象和/或所有其它物体对象;According to preset ethnic characteristics and/or preset other object characteristics, identify all human objects and/or all other objects in the image to be processed that match the preset ethnic characteristics and/or preset other object characteristics Object
    获取所述主体对象的特定特征,识别出所述所有人对象和/或所有其它物体对象中与所述主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,所述主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Obtain the specific feature of the subject object, identify the object that does not match the specific feature of the subject object among the human object and/or all other objects, and mark it as a non-subject object, wherein the subject object The specific characteristics of includes race-specific characteristics and/or other object-specific characteristics.
  44. 根据权利要求42所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 42, wherein the processor implements the following steps when executing the computer program:
    获取所述主体对象的特定特征,识别出所述非目标区域中与所述主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,所述主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Acquire the specific feature of the subject object, identify the object in the non-target area that does not match the specific feature of the subject object, and mark it as a non-subject object, wherein the specific feature of the subject object includes race-specific Features and/or other object specific features.
  45. 根据权利要求42所述的图像处理设备,其特征在于,所述人种特定特征包括人脸、人体姿态、衣着中的一种或多种。The image processing device according to claim 42, wherein the ethnic specific characteristics include one or more of a human face, a human posture, and clothing.
  46. 根据权利要求30所述的图像处理设备,其特征在于,所述主体对象是静止的,所述非主体对象是移动的。The image processing device according to claim 30, wherein the subject object is static and the non-subject object is moving.
  47. 根据权利要求46所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 46, wherein the processor implements the following steps when executing the computer program:
    根据预设时长,抽取包括所述主体对象的多帧待处理图像;Extracting multiple frames of to-be-processed images including the subject object according to a preset time length;
    通过所述多帧待处理图像判断出移动的对象,并将所述移动的对象标记为非主体对象。The moving object is determined from the multiple frames of images to be processed, and the moving object is marked as a non-subject object.
  48. 根据权利要求46所述的图像处理设备,其特征在于,所述非主体对象包括移动的人流、车流中的一种或两种。The image processing device according to claim 46, wherein the non-subject object includes one or two of moving people and cars.
  49. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    检测当前环境的亮度,根据所述亮度确定曝光模式,不同的亮度对应不同曝光模式。The brightness of the current environment is detected, and the exposure mode is determined according to the brightness, and different brightnesses correspond to different exposure modes.
  50. 根据权利要求49所述的图像处理设备,其特征在于,当环境光不足时,对应长曝光模式;当环境光充足时,对应自动曝光模式。The image processing device according to claim 49, wherein when the ambient light is insufficient, it corresponds to the long exposure mode; when the ambient light is sufficient, it corresponds to the automatic exposure mode.
  51. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    对所述目标区域的边缘进行过渡处理;Performing transition processing on the edge of the target area;
    得到包括目标区域的边缘经过过渡处理后的主体对象和经过模糊处理后的非主体对象的目标图像。Obtain the target image including the subject object after the transition processing on the edge of the target area and the non-subject object after the blur processing.
  52. 根据权利要求51所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 51, wherein the processor implements the following steps when executing the computer program:
    对所述目标区域的边缘进行羽化、锐化、液化、加强对比度中的一种或多种处理。One or more of feathering, sharpening, liquefaction, and contrast enhancement are performed on the edge of the target area.
  53. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    选用一帧或多帧待处理图像,对所述一帧或多帧待处理图像进行模糊处理。One or more frames of images to be processed are selected, and blur processing is performed on the one or more frames of images to be processed.
  54. 根据权利要求29所述的图像处理设备,其特征在于,所述模糊处理包括横向模糊、竖向模糊、径向模糊、斜向模糊、马赛克、区域填充、背景覆盖在内的一种或多种模糊处理。The image processing device according to claim 29, wherein the blur processing includes one or more of horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage. Blur processing.
  55. 根据权利要求29所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 29, wherein the processor implements the following steps when executing the computer program:
    提示用户需要静站的时间段。Prompt the user to stop the time period.
  56. 根据权利要求55所述的图像处理设备,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The image processing device according to claim 55, wherein the processor implements the following steps when executing the computer program:
    在用户静站的时间段,根据预设要求识别出非目标区域中的非主体对象。During the time when the user is standing still, the non-subject objects in the non-target area are identified according to preset requirements.
  57. 一种拍摄装置,其特征在于,所述拍摄装置包括:存储器和处理器;A photographing device, characterized in that the photographing device comprises: a memory and a processor;
    所述存储器用于存储计算机程序;The memory is used to store computer programs;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如 下步骤:The processor is used to execute the computer program, and when executing the computer program, implement the following steps:
    获取待处理图像,并获取所述待处理图像中主体对象对应的目标区域;Acquiring the image to be processed, and acquiring the target area corresponding to the subject object in the image to be processed;
    根据预设要求识别出非目标区域中的非主体对象,所述非目标区域为所述待处理图像中目标区域以外的区域;Identifying a non-subject object in a non-target area according to preset requirements, where the non-target area is an area outside the target area in the image to be processed;
    对所述非主体对象进行模糊处理,得到包括主体对象和经过模糊处理后的非主体对象的目标图像。Blur processing is performed on the non-subject object to obtain a target image including the subject object and the non-subject object after the blur processing.
  58. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    获取多帧所述待处理图像中主体对象对应的目标区域。Acquire the target area corresponding to the subject object in the multiple frames of the image to be processed.
  59. 根据权利要求58所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 58, wherein the processor implements the following steps when executing the computer program:
    获取其中一帧所述待处理图像中主体对象对应的目标区域;Acquiring a target area corresponding to the subject object in one of the frames of the image to be processed;
    将所述目标区域在其中一帧所述待处理图像中对应的区域作为其它多帧所述待处理图像中主体对象对应的目标区域。The area corresponding to the target area in one frame of the image to be processed is used as the target area corresponding to the subject object in the other frames of the image to be processed.
  60. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    根据对象识别算法识别所述待处理图像中的主体对象;Identifying the subject object in the image to be processed according to an object recognition algorithm;
    根据所述主体对象生成并显示原始对象框;Generating and displaying an original object frame according to the main object;
    若所述原始对象框的数目是一个,则将所述原始对象框作为目标对象框,并将所述目标对象框在所述待处理图像中对应的区域作为目标区域。If the number of the original object frame is one, the original object frame is taken as the target object frame, and the area corresponding to the target object frame in the image to be processed is taken as the target area.
  61. 根据权利要求60所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 60, wherein the processor implements the following steps when executing the computer program:
    若所述原始对象框的数目是两个以上,则获取用户在所述待处理图像中对其中一个原始对象框进行的选择操作;If the number of the original object frames is more than two, acquiring a selection operation performed by the user on one of the original object frames in the image to be processed;
    根据所述选择操作生成并显示目标对象框;Generating and displaying a target object frame according to the selection operation;
    将所述目标对象框在所述待处理图像中对应的区域作为目标区域。The area corresponding to the target object frame in the image to be processed is taken as the target area.
  62. 根据权利要求60所述的拍摄装置,其特征在于,所述对象识别算法包括人脸识别算法。The photographing device according to claim 60, wherein the object recognition algorithm comprises a face recognition algorithm.
  63. 根据权利要求60-61任一项所述的拍摄装置,其特征在于,所述处理 器在执行所述计算机程序时,实现如下步骤:The photographing device according to any one of claims 60-61, wherein the processor implements the following steps when executing the computer program:
    获取用户在所述待处理图像中对所述目标对象框进行的尺寸修改操作;Acquiring the size modification operation performed by the user on the target object frame in the image to be processed;
    根据所述尺寸修改操作生成并显示修改后的对象框;Generate and display the modified object frame according to the size modification operation;
    将修改后的对象框重新作为目标对象框。Re-use the modified object frame as the target object frame.
  64. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    获取用户在所述待处理图像中对所述主体对象的框选操作;Acquiring a user's frame selection operation on the subject object in the to-be-processed image;
    根据所述框选操作生成并显示目标对象框;Generating and displaying a target object frame according to the frame selection operation;
    将所述目标对象框在所述待处理图像中对应的区域作为目标区域。The area corresponding to the target object frame in the image to be processed is taken as the target area.
  65. 根据权利要求60-64任一项所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to any one of claims 60-64, wherein the processor implements the following steps when executing the computer program:
    获取用户在所述待处理图像中对所述目标对象框的轮廓进行的轮廓修改操作;Acquiring the contour modification operation performed by the user on the contour of the target object frame in the image to be processed;
    根据所述轮廓修改操作生成并显示修改后的对象框,以使修改后的对象框的轮廓与所述主体对象的轮廓匹配;Generating and displaying a modified object frame according to the contour modification operation, so that the contour of the modified object frame matches the contour of the main object;
    将修改后的对象框重新作为目标对象框。Re-use the modified object frame as the target object frame.
  66. 根据权利要求57所述的拍摄装置,其特征在于,所述目标区域的轮廓与所述主体对象的轮廓匹配。The photographing device according to claim 57, wherein the contour of the target area matches the contour of the main object.
  67. 根据权利要求57所述的拍摄装置,其特征在于,所述预设要求包括利用人种特征区分人和除人之外的其它物体,和/或,利用其它物体特征区分其它物体和人。The photographing device according to claim 57, wherein the preset requirements include distinguishing people from other objects other than people by racial characteristics, and/or distinguishing other objects from people by other object characteristics.
  68. 根据权利要求67所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 67, wherein the processor implements the following steps when executing the computer program:
    根据预设人种特征和/或预设其它物体特征,识别出所述非目标区域中与所述预设人种特征和/或预设其它物体特征匹配的对象,并标记为非主体对象。According to the preset ethnic characteristics and/or the preset other object characteristics, objects in the non-target area that match the preset ethnic characteristics and/or the preset other object characteristics are identified and marked as non-subject objects.
  69. 根据权利要求68所述的拍摄装置,其特征在于,所述预设其它物体特征包括车辆特征。The photographing device according to claim 68, wherein the preset other object characteristics include vehicle characteristics.
  70. 根据权利要求57或67所述的拍摄装置,其特征在于,所述预设要求包括利用人种特定特征区分不同人,和/或,利用其它物体特定特征区分不同 其它物体。The photographing device according to claim 57 or 67, wherein the preset requirements include using specific characteristics of race to distinguish different people, and/or using specific characteristics of other objects to distinguish different other objects.
  71. 根据权利要求70所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 70, wherein the processor implements the following steps when executing the computer program:
    根据预设人种特征和/或预设其它物体特征,识别出所述待处理图像中与所述预设人种特征和/或预设其它物体特征匹配的所有人对象和/或所有其它物体对象;According to preset ethnic characteristics and/or preset other object characteristics, identify all human objects and/or all other objects in the image to be processed that match the preset ethnic characteristics and/or preset other object characteristics Object
    获取所述主体对象的特定特征,识别出所述所有人对象和/或所有其它物体对象中与所述主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,所述主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Obtain the specific feature of the subject object, identify the object that does not match the specific feature of the subject object among the human object and/or all other objects, and mark it as a non-subject object, wherein the subject object The specific characteristics of includes race-specific characteristics and/or other object-specific characteristics.
  72. 根据权利要求70所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 70, wherein the processor implements the following steps when executing the computer program:
    获取所述主体对象的特定特征,识别出所述非目标区域中与所述主体对象的特定特征不匹配的对象,并标记为非主体对象,其中,所述主体对象的特定特征包括人种特定特征和/或其它物体特定特征。Acquire the specific feature of the subject object, identify the object in the non-target area that does not match the specific feature of the subject object, and mark it as a non-subject object, wherein the specific feature of the subject object includes race-specific Features and/or other object specific features.
  73. 根据权利要求70所述的拍摄装置,其特征在于,所述人种特定特征包括人脸、人体姿态、衣着中的一种或多种。The photographing device according to claim 70, wherein the ethnic specific characteristics include one or more of a human face, a human posture, and clothing.
  74. 根据权利要求58所述的拍摄装置,其特征在于,所述主体对象是静止的,所述非主体对象是移动的。The photographing device according to claim 58, wherein the main object is stationary and the non-main object is moving.
  75. 根据权利要求74所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 74, wherein the processor implements the following steps when executing the computer program:
    根据预设时长,抽取包括所述主体对象的多帧待处理图像;Extracting multiple frames of to-be-processed images including the subject object according to a preset time length;
    通过所述多帧待处理图像判断出移动的对象,并将所述移动的对象标记为非主体对象。The moving object is determined from the multiple frames of images to be processed, and the moving object is marked as a non-subject object.
  76. 根据权利要求74所述的拍摄装置,其特征在于,所述非主体对象包括移动的人流、车流中的一种或两种。The photographing device according to claim 74, wherein the non-subject object comprises one or two of moving people and traffic.
  77. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    检测当前环境的亮度,根据所述亮度确定曝光模式,不同的亮度对应不同曝光模式。The brightness of the current environment is detected, and the exposure mode is determined according to the brightness, and different brightnesses correspond to different exposure modes.
  78. 根据权利要求77所述的拍摄装置,其特征在于,当环境光不足时,对应长曝光模式;当环境光充足时,对应自动曝光模式。The photographing device according to claim 77, wherein when the ambient light is insufficient, the long exposure mode corresponds; when the ambient light is sufficient, the automatic exposure mode corresponds.
  79. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    对所述目标区域的边缘进行过渡处理;Performing transition processing on the edge of the target area;
    得到包括目标区域的边缘经过过渡处理后的主体对象和经过模糊处理后的非主体对象的目标图像。Obtain the target image including the subject object after the transition processing on the edge of the target area and the non-subject object after the blur processing.
  80. 根据权利要求79所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 79, wherein the processor implements the following steps when executing the computer program:
    对所述目标区域的边缘进行羽化、锐化、液化、加强对比度中的一种或多种处理。One or more of feathering, sharpening, liquefaction, and contrast enhancement are performed on the edge of the target area.
  81. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    选用一帧或多帧待处理图像,对所述一帧或多帧待处理图像进行模糊处理。One or more frames of images to be processed are selected, and blur processing is performed on the one or more frames of images to be processed.
  82. 根据权利要求57所述的拍摄装置,其特征在于,所述模糊处理包括横向模糊、竖向模糊、径向模糊、斜向模糊、马赛克、区域填充、背景覆盖在内的一种或多种模糊处理。The photographing device according to claim 57, wherein the blur processing includes one or more blurs including horizontal blur, vertical blur, radial blur, oblique blur, mosaic, area filling, and background coverage. deal with.
  83. 根据权利要求57所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 57, wherein the processor implements the following steps when executing the computer program:
    提示用户需要静站的时间段。Prompt the user to stop the time period.
  84. 根据权利要求83所述的拍摄装置,其特征在于,所述处理器在执行所述计算机程序时,实现如下步骤:The photographing device according to claim 83, wherein the processor implements the following steps when executing the computer program:
    在用户静站的时间段,根据预设要求识别出非目标区域中的非主体对象。During the time when the user is standing still, the non-subject objects in the non-target area are identified according to preset requirements.
  85. 一种可移动平台,其特征在于,所述可移动平台包括拍摄装置,所述拍摄装置包括:存储器和处理器;A movable platform, characterized in that the movable platform includes a photographing device, and the photographing device includes a memory and a processor;
    所述存储器用于存储计算机程序;The memory is used to store computer programs;
    所述处理器用于执行所述计算机程序并在执行所述计算机程序时,实现如权利要求1至28任一项所述的图像处理方法。The processor is used to execute the computer program and, when executing the computer program, implement the image processing method according to any one of claims 1 to 28.
  86. 根据权利要求85所述的可移动平台,其特征在于,所述可移动平台包括云台、无人飞行器或无人车辆中的一种或多种。The movable platform of claim 85, wherein the movable platform comprises one or more of a pan-tilt, an unmanned aerial vehicle, or an unmanned vehicle.
  87. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1至28任一项所述的图像处理方法。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor realizes any one of claims 1 to 28 Image processing method.
PCT/CN2019/100673 2019-08-14 2019-08-14 Image processing method and device, and photographing apparatus, movable platform and storage medium WO2021026848A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/100673 WO2021026848A1 (en) 2019-08-14 2019-08-14 Image processing method and device, and photographing apparatus, movable platform and storage medium
CN201980033697.3A CN112204945A (en) 2019-08-14 2019-08-14 Image processing method, image processing apparatus, image capturing device, movable platform, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/100673 WO2021026848A1 (en) 2019-08-14 2019-08-14 Image processing method and device, and photographing apparatus, movable platform and storage medium

Publications (1)

Publication Number Publication Date
WO2021026848A1 true WO2021026848A1 (en) 2021-02-18

Family

ID=74004585

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/100673 WO2021026848A1 (en) 2019-08-14 2019-08-14 Image processing method and device, and photographing apparatus, movable platform and storage medium

Country Status (2)

Country Link
CN (1) CN112204945A (en)
WO (1) WO2021026848A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612932A (en) * 2021-08-09 2021-11-05 荣耀终端有限公司 Method, apparatus and storage medium for adjusting exposure parameters

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014139416A1 (en) * 2013-03-11 2014-09-18 成都百威讯科技有限责任公司 Emergent abnormal event intelligent identification alarm device and system
CN104794462A (en) * 2015-05-11 2015-07-22 北京锤子数码科技有限公司 Figure image processing method and device
CN105787062A (en) * 2016-02-29 2016-07-20 北京时代云英科技有限公司 Method and equipment for searching for target object based on video platform
CN108256497A (en) * 2018-02-01 2018-07-06 北京中税网控股股份有限公司 A kind of method of video image processing and device
CN109671101A (en) * 2018-11-30 2019-04-23 江苏文化投资管理集团有限公司 Action trail acquisition device and intelligent terminal
CN109872297A (en) * 2019-03-15 2019-06-11 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8928772B2 (en) * 2012-09-21 2015-01-06 Eastman Kodak Company Controlling the sharpness of a digital image
CN103152521B (en) * 2013-01-30 2016-08-17 广东欧珀移动通信有限公司 A kind of mobile terminal realizes method and the mobile terminal of Deep Canvas
CN103500337B (en) * 2013-09-30 2018-10-09 上海合合信息科技发展有限公司 The method and device of identification quadrangle frame for intelligent wireless communication terminal
CN104363377B (en) * 2014-11-28 2017-08-29 广东欧珀移动通信有限公司 Display methods, device and the terminal of focus frame
CN105513104A (en) * 2015-12-01 2016-04-20 小米科技有限责任公司 Picture taking method, device and system
CN108230252B (en) * 2017-01-24 2022-02-01 深圳市商汤科技有限公司 Image processing method and device and electronic equipment
CN107358593B (en) * 2017-06-16 2020-06-26 Oppo广东移动通信有限公司 Image forming method and apparatus
CN109218597A (en) * 2017-06-30 2019-01-15 珠海格力电器股份有限公司 A kind of method and device of intelligent terminal shooting image
CN107623817B (en) * 2017-09-11 2019-08-20 Oppo广东移动通信有限公司 Video background processing method, device and mobile terminal
CN108876791B (en) * 2017-10-23 2021-04-09 北京旷视科技有限公司 Image processing method, device and system and storage medium
CN110009556A (en) * 2018-01-05 2019-07-12 广东欧珀移动通信有限公司 Image background weakening method, device, storage medium and electronic equipment
CN109040594B (en) * 2018-08-24 2020-12-18 创新先进技术有限公司 Photographing method and device
CN109379571A (en) * 2018-12-13 2019-02-22 移康智能科技(上海)股份有限公司 A kind of implementation method and intelligent peephole of intelligent peephole

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014139416A1 (en) * 2013-03-11 2014-09-18 成都百威讯科技有限责任公司 Emergent abnormal event intelligent identification alarm device and system
CN104794462A (en) * 2015-05-11 2015-07-22 北京锤子数码科技有限公司 Figure image processing method and device
CN105787062A (en) * 2016-02-29 2016-07-20 北京时代云英科技有限公司 Method and equipment for searching for target object based on video platform
CN108256497A (en) * 2018-02-01 2018-07-06 北京中税网控股股份有限公司 A kind of method of video image processing and device
CN109671101A (en) * 2018-11-30 2019-04-23 江苏文化投资管理集团有限公司 Action trail acquisition device and intelligent terminal
CN109872297A (en) * 2019-03-15 2019-06-11 北京市商汤科技开发有限公司 Image processing method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612932A (en) * 2021-08-09 2021-11-05 荣耀终端有限公司 Method, apparatus and storage medium for adjusting exposure parameters

Also Published As

Publication number Publication date
CN112204945A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
EP3338217B1 (en) Feature detection and masking in images based on color distributions
US9692964B2 (en) Modification of post-viewing parameters for digital images using image region or feature information
CN103945121B (en) A kind of information processing method and electronic equipment
EP3520390B1 (en) Recolorization of infrared image streams
US9129381B2 (en) Modification of post-viewing parameters for digital images using image region or feature information
CN107665482B (en) Video data real-time processing method and device for realizing double exposure and computing equipment
CN107730445A (en) Image processing method, device, storage medium and electronic equipment
WO2016176989A1 (en) Image exposure method and image exposure system of mobile terminals based on eyeprint recognition
US9152873B2 (en) Device and method for determining an optimum image
US11070717B2 (en) Context-aware image filtering
US20160092726A1 (en) Using gestures to train hand detection in ego-centric video
WO2007142621A1 (en) Modification of post-viewing parameters for digital images using image region or feature information
CN106326823B (en) Method and system for obtaining head portrait in picture
KR20190004073A (en) Authentication method and authentication apparatus using infrared ray(ir) image
CN112702521B (en) Image shooting method and device, electronic equipment and computer readable storage medium
TW202203085A (en) Automatic camera guidance and settings adjustment
CN106210699B (en) Information processing unit, the control method of information processing unit and image processing system
CN107705279B (en) Image data real-time processing method and device for realizing double exposure and computing equipment
CN103997593A (en) Image creating device, image creating method and recording medium storing program
CN103369238A (en) Image creating device and image creating method
CN105744179A (en) Image Capture Apparatus Capable of Processing Photographed Images
KR101827998B1 (en) Virtual experience system based on facial feature and method therefore
WO2021026848A1 (en) Image processing method and device, and photographing apparatus, movable platform and storage medium
US9323981B2 (en) Face component extraction apparatus, face component extraction method and recording medium in which program for face component extraction method is stored
CN108965859B (en) Projection mode identification method, video playing method and device and electronic equipment

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

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

Country of ref document: EP

Kind code of ref document: A1