[go: up one dir, main page]

WO2020192195A1 - Image processing method and apparatus, and electronic device - Google Patents

Image processing method and apparatus, and electronic device Download PDF

Info

Publication number
WO2020192195A1
WO2020192195A1 PCT/CN2019/126755 CN2019126755W WO2020192195A1 WO 2020192195 A1 WO2020192195 A1 WO 2020192195A1 CN 2019126755 W CN2019126755 W CN 2019126755W WO 2020192195 A1 WO2020192195 A1 WO 2020192195A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
image
trajectory
image processing
target object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2019/126755
Other languages
French (fr)
Chinese (zh)
Inventor
王旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Publication of WO2020192195A1 publication Critical patent/WO2020192195A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20164Salient point detection; Corner detection

Definitions

  • the present disclosure relates to the field of image processing, and in particular to an image processing method, device and electronic equipment.
  • smart terminals can be used to listen to music, play games, chat online, and take photos.
  • the camera technology of the smart terminal the camera pixel has reached more than 10 million pixels, with higher definition and the camera effect comparable to professional cameras.
  • the camera software built-in at the factory can be used to achieve the traditional functions of the camera, but also can be downloaded from the network application (Application, referred to as: APP) to achieve the camera effect with additional functions ,
  • apps that can realize dark light detection, beauty camera, and super pixel functions.
  • the beauty function of the smart terminal usually includes skin color adjustment, skin grinding, big eyes and face thinning, etc., which can perform the same degree of beauty processing on all faces that have been identified in the image.
  • APPs that can implement simple special effects.
  • the current special effects function can only pre-set the special effects and synthesize them into the video or image. If you need to modify the special effects, you need to recreate the special effects and then synthesize them into the video or image, making the generation of special effects very inflexible.
  • An image processing method including:
  • said acquiring a video image from an image source, wherein the video image includes at least one target object including:
  • the video image includes multiple image frames, and the image frame includes at least one target object.
  • the segmenting the target object from the video image includes:
  • the contour of the target object and the image within the contour are extracted from the video image.
  • the acquiring at least one first point on the target object includes:
  • the acquiring at least one first point on the target object includes:
  • connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point includes:
  • the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory includes:
  • the trajectory of the first point is processed according to the image processing mode and the image processing resource to obtain a processed trajectory.
  • the method further includes:
  • the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory includes:
  • the trajectory of the numbered first point is processed by using the image processing mode and image processing resource corresponding to the number to obtain the processed trajectory.
  • An image processing device including:
  • An image acquisition module for acquiring a video image from an image source, wherein the video image includes at least one target object
  • a target object point acquisition module configured to acquire at least one first point on the target object
  • a trajectory calculation module configured to connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point
  • the trajectory processing module is used to obtain image processing parameters and process the trajectory of the first point to obtain the processed trajectory.
  • image acquisition module is also used for:
  • the video image includes multiple image frames, and the image frame includes at least one target object.
  • segmentation module further includes:
  • the target object recognition module is used to recognize the target object in the video image
  • a contour segmentation module for segmenting the contour of the target object
  • the target object extraction module is used to extract the contour of the target object and the image within the contour from the video image.
  • the target object point acquisition module further includes:
  • the corner point acquisition module is used to acquire at least one corner point on the target object, where the corner point is the intersection of two edges on the contour of the target object.
  • the target object point acquisition module further includes:
  • the random point acquisition module is used to randomly select at least one random point on the target object.
  • trajectory calculation module further includes:
  • a sorting module configured to sort the first points according to their numbers
  • the first point recognition module is used to recognize the first point with the same number in multiple frames of images
  • connection module is used to connect the first points of the same number to generate the track of the first point of the same number.
  • trajectory processing module further includes:
  • the processing parameter acquisition module is used to acquire the image processing mode and image processing resources from the image processing configuration file
  • the first point trajectory processing module is configured to process the trajectory of the first point according to the image processing mode and image processing resources to obtain a processed trajectory.
  • the device further includes:
  • the second target object point acquiring module is configured to acquire at least one second point on the target object after a predetermined number of image frames have passed;
  • the second connection module is configured to connect the same second point in multiple adjacent image frames to calculate the trajectory of the second point
  • the second point trajectory processing module is used to obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.
  • trajectory processing module further includes:
  • the second processing parameter acquisition module is used to acquire image processing modes and image processing resources with different numbers from the image processing configuration file;
  • the multi-track processing module is configured to process the track of the first point of the number by using the image processing mode and image processing resources corresponding to the number according to the number of the first point of the generated track to obtain the processed track .
  • An electronic device comprising: a memory for storing non-transitory computer readable instructions; and a processor for running the computer readable instructions, so that when the processor is executed, the above-mentioned image processing method A step of.
  • a computer-readable storage medium for storing non-transitory computer-readable instructions.
  • the non-transitory computer-readable instructions When executed by a computer, the computer can execute the steps in any of the above methods.
  • the present disclosure discloses an image processing method, device and electronic equipment.
  • the image processing method includes: acquiring a video image from an image source, wherein the video image includes at least one target object; segmenting the target object from the video image; acquiring at least one first object on the target object One point; connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point; acquiring image processing parameters and processing the trajectory of the first point to obtain a processed trajectory.
  • the image processing method of the embodiment of the present disclosure calculates the movement trajectory of a point on the target object, and uses a preset image processing method to process the trajectory to generate a special effect of the trajectory, thereby improving the efficiency and flexibility of generating special effects.
  • Fig. 1 is a schematic flowchart of an image processing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of corner detection of a target object according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of an image processing method according to another embodiment of the present disclosure.
  • Fig. 4 is a schematic structural diagram of an image processing device according to an embodiment of the present disclosure.
  • Fig. 5 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
  • the embodiment of the present disclosure provides an image processing method.
  • the image processing method provided in this embodiment can be executed by a computing device, the computing device can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, terminal device, etc.
  • the image processing method mainly includes the following steps S101 to S105. among them:
  • Step S101 Obtain a video image from an image source, where the video image includes at least one target object;
  • the image source is a local storage space or a network storage space.
  • the obtaining of video images from an image source includes obtaining video images from a local storage space or obtaining video images from a network storage space, no matter where it is obtained. For video images, it is first necessary to obtain the storage address of the video image, and then obtain the video image from the storage address.
  • the video image includes multiple image frames.
  • the video image can be a video or a picture with dynamic effects, as long as it is Images with multiple frames may all be video images in the present disclosure.
  • the video source may be a video capture device, such as an image sensor, and the acquisition of a video image from the image source includes acquiring a video image from the video capture device.
  • the image sensor refers to various devices that can collect images, and typical image sensors are video cameras, cameras, and cameras.
  • the image sensor may be a camera on a mobile terminal, such as a front or rear camera on a smart phone.
  • the video image collected by the camera may be directly displayed on the display screen of the phone. In this step, Obtain the video taken by the image sensor as the image to be processed.
  • At least one target object is included in the video image.
  • the multiple image frames of the video image include at least one target object. It is understandable that the video image may also include multiple target objects, which will not be repeated here.
  • Step S101 segment the target object from the video image
  • the segmenting the target object from the video image includes: identifying the target object in the video image; segmenting the contour of the target object; and dividing the contour and the contour of the target object The images inside are extracted from the video image.
  • the video image is an image frame in the video image, and the image frame is a picture with a target object.
  • the target object can be any object.
  • the target object is human body.
  • Image segmentation is generally divided into interactive image segmentation and automatic image segmentation.
  • Traditional image processing generally uses interactive image segmentation, which requires human participation in image segmentation.
  • automatic image segmentation is used.
  • the following uses human body image segmentation as an example to describe the automatic image segmentation.
  • automatic human body image segmentation methods can be divided into the following categories: (1) Model-based human body image segmentation methods. For this method, the face is first detected based on the prior knowledge of the face, and then the torso model is used to find The torso under the face, and then estimate the position of the lower body based on the segmented torso, and finally use the estimated torso and upper leg regions to provide seed points for image segmentation to complete the segmentation of the human body image; (2) based on the hierarchical tree Human body image segmentation method. For this method, the neighboring body parts are first modeled, and then the entire body pose is modeled. The different poses of the human body are modeled as the sum of nodes on different paths in the hierarchical detection tree.
  • Different layers in the hierarchical detection tree correspond to different models of adjacent human body parts, and follow different paths on the hierarchical detection tree, corresponding to different human postures.
  • When detecting follow the root node of the tree to detect downward and divide along different paths.
  • Different postures of the human body (3)
  • the segmentation of other body parts is similar, and the segmentation of the entire human body image is finally completed; (4) The human body image segmentation method based on the expectation maximization algorithm. For this method, first use the pattern structure model to estimate the human body posture in the image to obtain the probability map of the human body posture, and then use the image segmentation method on the basis of the probability map to get The final human segmentation image.
  • the outer contour of the human body is estimated or determined, and finally the image within the outer contour is extracted to obtain the segmented image of the human body.
  • Step S103 Acquire at least one first point on the target object
  • the acquiring at least one first point on the target object includes: acquiring at least one corner point on the target object, where the corner point is an intersection of two edges on the contour of the target object.
  • the target object is a human body
  • the corner points are the corner points of the clothes on the human body, as shown in Figure 2, where 201 is the corner point of the clothes on the shoulders of the human body, and 202 is the corner points of the clothes on the elbows of the human body.
  • the corner point, 203 is the corner point of the clothing at the human knee.
  • corner detection is first required.
  • corner detection can use any corner detection method, such as Harris corner detection algorithm, Moravec corner detection algorithm, FAST corner detection Algorithms and so on.
  • the present disclosure does not limit which corner detection algorithm to use, as long as it is an algorithm that can quickly detect corners, it can be applied to the technical solutions of the present disclosure.
  • the detected corner point is the intersection of two edges on the contour of the target object.
  • the corner point 203 in FIG. 2 is the intersection of the contours of the human thigh and calf.
  • the detected corner point may be one point or multiple points.
  • one or more of the detected corner points may be selected.
  • the corner point is selected, the The order of said corner points selects the first n corner points, where n ⁇ 1; the corner points obtained can also be determined according to certain criteria, such as the color of the corner point, the brightness difference with other surrounding points, etc., here No longer.
  • the acquiring at least one first point on the target object includes: randomly selecting at least one random point on the target object.
  • the target object is a human body.
  • at least one point is randomly selected on or within the contour of the human body. The selection of at least one point can be achieved by randomly scattering points within the contour of the human body.
  • a random function can be used to generate a random point.
  • the point is regarded as a random point; if the point is outside the contour of the human body, the point is discarded;
  • the image in the contour of the human body is cut into several triangles, the range of the triangle can be determined, and dots are randomly scattered within the range of the triangle; optionally, the image in the contour of the human body can be cut into multiple squares of equal size using a quad tree. Then use the center of the square as a random point.
  • the present disclosure does not limit the method of generating random points. Any method can be used to generate one or more random points in the contour of the human body, and then one or more random points are selected as the first point. When selecting the random points, the first n random points can be selected according to the order in which the random points are generated, where n ⁇ 1; or according to certain criteria, such as random points whose positions are within a predetermined range, etc. Repeat it again.
  • the acquisition of the first point is not limited to the above two methods. As long as it is a point on or within the contour of the target object, it can be used as the first point.
  • the first point in the present disclosure can be acquired by various methods. , I won’t repeat it here.
  • Step S104 Connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point
  • the connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point includes: sorting the first points according to the numbers of the first points; Identifying the first point of the same number in the multiple frames of images; connecting the first points of the same number to generate the trajectory of the first point of the number.
  • the first point has a number, and the number can be a pre-numbered number. For example, when detecting a corner point, three fixed corner points can be set for detection. As shown in FIG.
  • the streamer method can be used to calculate the position of the corner point in the first image frame in the subsequent image frame.
  • the typical streamer calculation method is LK algorithm, dense optical flow method, pyramid optical flow method, etc., use
  • the optical flow method can easily track the same point in multiple image frames.
  • the point can be a feature point such as a corner point, a random point or any other custom point.
  • the method of tracking the same point in multiple image frames is not limited to the above method, and any method that can track the same point in multiple image frames to form a motion track can be applied to the present disclosure In, not repeat them here.
  • Step S105 Obtain image processing parameters and process the trajectory of the first point to obtain a processed trajectory.
  • the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory includes: acquiring an image processing mode and image processing resources from an image processing configuration file; and processing according to the image The pattern and image processing resources process the trajectory of the first point to obtain a processed trajectory.
  • the image processing configuration file is used to save the processing types of the image processing, such as textures, deformations, filters, etc., and the addresses of resources required for the image processing, such as textures and textures required in the texture processing.
  • the image processing is to add a texture to the first point on the trajectory, the texture includes a plurality of texture frames, and the brightness of each texture frame changes cyclically from small to large.
  • the address of the texture required for texture processing is obtained in the configuration file, and the corresponding texture frame is obtained, and then the position of the first point in the image frame is obtained, and the texture frame is rendered to the first point in each The position of the texture frame to achieve the effect of the first point flashing in the multi-frame image.
  • the image processing is to add a rainbow effect texture to the trajectory.
  • the address of the texture required for texture processing is obtained from the image processing configuration file, and the texture here is a fixed size Paste the center line of the rectangular rainbow graph to the track, and then paste the rainbow graph to the entire track in turn to achieve the effect of the rainbow track.
  • the image processing here can be any processing, as long as the image processing that can process the trajectory of the first point or the point on the trajectory can be applied to the present disclosure, the specific processing type and processing type
  • the corresponding parameters can be pre-set in the image processing configuration file, so that by modifying the configuration file, the motion track can be rendered to achieve different effects, and the effect is rendered in real time to the motion track, without the need to record the video in advance and pass the post
  • the production plus the effect is more convenient and quicker than traditional methods.
  • the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory may further include: acquiring image processing modes and image processing resources with different numbers from an image processing configuration file; According to the number of the first point generating the trajectory, the trajectory of the numbered first point is processed by using the image processing mode and image processing resource corresponding to the number to obtain the processed trajectory.
  • the image processing configuration file includes multiple processing modes and resources corresponding to the processing modes, and the multiple processing modes are corresponded to the number of the first point in the image processing configuration file, so that for the first point of different numbers
  • the trajectory generated by one point can be processed in different image processing modes, such as using flicker mapping for the trajectory generated by the corner point numbered 001, and using rainbow mapping for the trajectory generated by the corner point numbered 002.
  • the trajectory can be processed in different ways.
  • it can also be pre-configured in the configuration file to realize the distinction processing of multiple target objects and multiple trajectories.
  • the specific configuration method is similar to the above, only the target object and the target need to be distinguished. The different trajectories of objects will not be repeated here.
  • FIG. 3 it is a schematic flowchart of another embodiment of the present disclosure.
  • segmentation processing is performed on the video image, that is, the video image is divided into several stages, and different processing is performed on each stage.
  • step S105 it further includes:
  • Step S301 After a predetermined number of image frames have passed, acquire at least one second point on the target object;
  • Step S302 Connect the same second point in multiple adjacent image frames to calculate the trajectory of the second point
  • Step S303 Obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.
  • a predetermined number of image frames can be preset as the number of processed frames, such as setting M frames as the number of processed frames, that is to say, each image processing is bounded by M frames, and the processing target is switched after M frames are exceeded.
  • the second point can be the same as the first point. At this time, the same method as the first point can be used to continue to obtain the second point, and the second point is the same as the first point.
  • the processing mode uses a different processing method than the previous M frames to process the trajectory generated by the same point, which presents a segmented trajectory effect.
  • the second point may be different from the first point.
  • the second point is re-acquired to form a new trajectory.
  • the effect of different trajectories with the same processing or different trajectories with different processing can be formed .
  • the specific processing configuration and processing method please refer to the description in step S105, and the configuration method here is the same as it, and will not be repeated.
  • the present disclosure discloses an image processing method, device and electronic equipment.
  • the image processing method includes: acquiring a video image from an image source, wherein the video image includes at least one target object; segmenting the target object from the video image; acquiring at least one first object on the target object One point; connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point; acquiring image processing parameters and processing the trajectory of the first point to obtain a processed trajectory.
  • the image processing method of the embodiment of the present disclosure calculates the movement trajectory of a point on the target object, and uses a preset image processing method to process the trajectory to generate a special effect of the trajectory, thereby improving the efficiency and flexibility of generating special effects.
  • the device embodiments of the present disclosure can be used to perform the steps implemented by the method embodiments of the present disclosure.
  • the embodiment of the present disclosure provides an image processing device.
  • the device can execute the steps described in the above image processing method embodiment.
  • the device 400 mainly includes: an image acquisition module 401, a segmentation module 402, a target object point acquisition module 403, a trajectory calculation module 404, and a trajectory processing module 405. among them,
  • the image acquisition module 401 is configured to acquire a video image from an image source, where the video image includes at least one target object;
  • the target object point acquiring module 403 is configured to acquire at least one first point on the target object
  • the trajectory calculation module 404 is configured to connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point;
  • the trajectory processing module 405 is configured to obtain image processing parameters and process the trajectory of the first point to obtain a processed trajectory.
  • the image acquisition module 401 is also used for:
  • the video image includes multiple image frames, and the image frame includes at least one target object.
  • segmentation module 402 further includes:
  • the target object recognition module is used to recognize the target object in the video image
  • a contour segmentation module for segmenting the contour of the target object
  • the target object extraction module is used to extract the contour of the target object and the image within the contour from the video image.
  • the target object point acquisition module 403 further includes:
  • the corner point acquisition module is used to acquire at least one corner point on the target object, where the corner point is the intersection of two edges on the contour of the target object.
  • the target object point acquisition module 403 further includes:
  • the random point acquisition module is used to randomly select at least one random point on the target object.
  • trajectory calculation module 404 further includes:
  • a sorting module configured to sort the first points according to their numbers
  • the first point recognition module is used to recognize the first point with the same number in multiple frames of images
  • connection module is used to connect the first points of the same number to generate the track of the first point of the same number.
  • trajectory processing module 405 further includes:
  • the processing parameter acquisition module is used to acquire the image processing mode and image processing resources from the image processing configuration file
  • the first point trajectory processing module is configured to process the trajectory of the first point according to the image processing mode and image processing resources to obtain a processed trajectory.
  • the device 400 further includes:
  • the second target object point acquiring module is configured to acquire at least one second point on the target object after a predetermined number of image frames have passed;
  • the second connection module is configured to connect the same second point in multiple adjacent image frames to calculate the trajectory of the second point
  • the second point trajectory processing module is used to obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.
  • trajectory processing module 405 further includes:
  • the second processing parameter acquisition module is used to acquire image processing modes and image processing resources with different numbers from the image processing configuration file;
  • the multi-track processing module is configured to process the track of the first point of the number by using the image processing mode and image processing resources corresponding to the number according to the number of the first point of the generated track to obtain the processed track .
  • the device shown in FIG. 4 can execute the methods of the embodiments shown in FIG. 1 and FIG. 3.
  • parts that are not described in detail in this embodiment please refer to the related descriptions of the embodiments shown in FIG. 1 and FIG.
  • FIG. 5 shows a schematic structural diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure.
  • Electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (for example, Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 502 or from a storage device 508.
  • the program in the memory (RAM) 503 executes various appropriate actions and processing.
  • the RAM 503 also stores various programs and data required for the operation of the electronic device 500.
  • the processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screens, touch panels, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, An output device 507 such as a vibrator; a storage device 508 such as a magnetic tape and a hard disk; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 4 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • the process described above with reference to the flowchart can be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502.
  • the processing device 501 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device obtains a video image from an image source, wherein the video image includes at least one target object Segment the target object from the video image; obtain at least one first point on the target object; connect the same first point in multiple adjacent image frames to calculate the first point The trajectory; acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

Disclosed are an image processing method and apparatus, and an electronic device. The image processing method comprises: obtaining a video image from an image source, the video image comprising at least one target object; segmenting the target object from the video image; obtaining at least one first point on the target object; connecting identical first points in adjacent multi-frame image frames to calculate the trajectory of the first points; and obtaining an image processing parameter and processing the trajectory of the first points to obtain a processed trajectory. According to the image processing method in embodiments of the present invention, the movement trajectory of points on the target object is calculated, and a preset image processing approach is used for processing the trajectory to generate the special effect thereof, which improves the efficiency and flexibility in generating the special effect.

Description

图像处理方法、装置和电子设备Image processing method, device and electronic equipment

相关申请的交叉引用Cross references to related applications

本申请要求于2019年03月26日提交的,申请号为201910230223.X、发明名称为“图像处理方法、装置和电子设备”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 26, 2019 with the application number 201910230223.X and the invention title "Image processing method, device and electronic equipment". The full text of this application is incorporated into this by reference. Applying.

技术领域Technical field

本公开涉及图像处理领域,特别是涉及一种图像处理方法、装置和电子设备。The present disclosure relates to the field of image processing, and in particular to an image processing method, device and electronic equipment.

背景技术Background technique

随着计算机技术的发展,智能终端的应用范围得到了广泛的提高,例如可以通过智能终端听音乐、玩游戏、上网聊天和拍照等。对于智能终端的拍照技术来说,其拍照像素已经达到千万像素以上,具有较高的清晰度和媲美专业相机的拍照效果。With the development of computer technology, the application range of smart terminals has been extensively improved. For example, smart terminals can be used to listen to music, play games, chat online, and take photos. For the camera technology of the smart terminal, the camera pixel has reached more than 10 million pixels, with higher definition and the camera effect comparable to professional cameras.

目前在采用智能终端进行拍照时,不仅可以使用出厂时内置的拍照软件实现传统功能的拍照效果,还可以通过从网络端下载应用程序(Application,简称为:APP)来实现具有附加功能的拍照效果,例如可以实现暗光检测、美颜相机和超级像素等功能的APP。智能终端的美颜功能通常包括肤色调整、磨皮、大眼和瘦脸等美颜处理效果,能对图像中已识别出的所有人脸进行相同程度的美颜处理。目前也有APP可以实现简单的特效。At present, when using smart terminals to take pictures, not only can the camera software built-in at the factory be used to achieve the traditional functions of the camera, but also can be downloaded from the network application (Application, referred to as: APP) to achieve the camera effect with additional functions , Such as apps that can realize dark light detection, beauty camera, and super pixel functions. The beauty function of the smart terminal usually includes skin color adjustment, skin grinding, big eyes and face thinning, etc., which can perform the same degree of beauty processing on all faces that have been identified in the image. There are also APPs that can implement simple special effects.

然而目前的特效功能,只能预先设置好特效的效果,并合成到视频或者图像中,如果需要修改特效,则需要重新制作特效后再合成到视频或者 图像中,使得特效的生成很不灵活。However, the current special effects function can only pre-set the special effects and synthesize them into the video or image. If you need to modify the special effects, you need to recreate the special effects and then synthesize them into the video or image, making the generation of special effects very inflexible.

发明内容Summary of the invention

根据本公开的一个方面,提供以下技术方案:According to one aspect of the present disclosure, the following technical solutions are provided:

一种图像处理方法,包括:An image processing method, including:

从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;Acquiring a video image from an image source, where the video image includes at least one target object;

从所述视频图像中分割出所述目标物体;Segmenting the target object from the video image;

获取所述目标物体上的至少一个第一点;Acquiring at least one first point on the target object;

将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;Connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point;

获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。Obtain image processing parameters and process the trajectory of the first point to obtain a processed trajectory.

进一步的,所述从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体,包括:Further, said acquiring a video image from an image source, wherein the video image includes at least one target object, including:

从视频采集装置中获取视频图像,所述视频图像中包括多帧图像帧,所述图像帧中包括至少一个目标物体。Obtain a video image from a video capture device, the video image includes multiple image frames, and the image frame includes at least one target object.

进一步的,所述从所述视频图像中分割出所述目标物体,包括:Further, the segmenting the target object from the video image includes:

识别所述视频图像中的目标物体;Identifying the target object in the video image;

分割出所述目标物体的轮廓;Segmenting out the contour of the target object;

将所述目标物体的轮廓以及轮廓内的图像从所述视频图像中提取出来。The contour of the target object and the image within the contour are extracted from the video image.

进一步的,所述获取所述目标物体上的至少一个第一点,包括:Further, the acquiring at least one first point on the target object includes:

获取目标物体上的至少一个角点,所述角点为目标物体的轮廓上的两条边的交点。Acquire at least one corner point on the target object, where the corner point is an intersection of two edges on the contour of the target object.

进一步的,所述获取所述目标物体上的至少一个第一点,包括:Further, the acquiring at least one first point on the target object includes:

随机选取目标物体上的至少一个随机点。Randomly select at least one random point on the target object.

进一步的,所述将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹,包括:Further, the connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point includes:

按照第一点的编号将所述第一点排序;Sort the first points according to their numbers;

在多帧图像中识别出同一编号的第一点;Identify the first point of the same number in multiple frames of images;

将所述同一编号的第一点连接起来生成该编号的第一点的轨迹。Connecting the first points of the same number to generate the trajectory of the first point of the number.

进一步的,所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹,包括:Further, the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory includes:

从图像处理配置文件中获取图像处理模式以及图像处理资源;Obtain the image processing mode and image processing resources from the image processing configuration file;

根据所述图像处理模式以及图像处理资源对所述第一点的轨迹进行处理得到处理后的轨迹。The trajectory of the first point is processed according to the image processing mode and the image processing resource to obtain a processed trajectory.

进一步的,在所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹之后,还包括:Further, after the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory, the method further includes:

在经过预定数量的图像帧之后,获取所述目标物体上的至少一个第二点;Obtaining at least one second point on the target object after a predetermined number of image frames have passed;

将多帧相邻图像帧中的同一个所述第二点连接计算所述第二点的轨迹;Connecting the same second point in multiple adjacent image frames to calculate the trajectory of the second point;

获取图像处理参数并对所述第二点的轨迹进行处理得到处理后的轨迹。Obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.

进一步的,所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹,包括:Further, the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory includes:

从图像处理配置文件中获取不同编号的图像处理模式以及图像处理资 源;Obtain image processing modes and image processing resources with different numbers from image processing configuration files;

根据所述生成所述轨迹的第一点的编号,使用该编号对应的图像处理模式以及图像处理资源对所述编号的第一点的轨迹进行处理得到处理后的轨迹。According to the number of the first point generating the trajectory, the trajectory of the numbered first point is processed by using the image processing mode and image processing resource corresponding to the number to obtain the processed trajectory.

根据本公开的另一个方面,还提供以下技术方案:According to another aspect of the present disclosure, the following technical solutions are also provided:

一种图像处理装置,包括:An image processing device including:

图像获取模块,用于从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;An image acquisition module for acquiring a video image from an image source, wherein the video image includes at least one target object;

分割模块,用于从所述视频图像中分割出所述目标物体;A segmentation module for segmenting the target object from the video image;

目标物体点获取模块,用于获取所述目标物体上的至少一个第一点;A target object point acquisition module, configured to acquire at least one first point on the target object;

轨迹计算模块,用于将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;A trajectory calculation module, configured to connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point;

轨迹处理模块,用于获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。The trajectory processing module is used to obtain image processing parameters and process the trajectory of the first point to obtain the processed trajectory.

进一步的,所述图像获取模块,还用于:Further, the image acquisition module is also used for:

从视频采集装置中获取视频图像,所述视频图像中包括多帧图像帧,所述图像帧中包括至少一个目标物体。Obtain a video image from a video capture device, the video image includes multiple image frames, and the image frame includes at least one target object.

进一步的,所述分割模块,还包括:Further, the segmentation module further includes:

目标物体识别模块,用于识别所述视频图像中的目标物体;The target object recognition module is used to recognize the target object in the video image;

轮廓分割模块,用于分割出所述目标物体的轮廓;A contour segmentation module for segmenting the contour of the target object;

目标物体提取模块,用于将所述目标物体的轮廓以及轮廓内的图像从所述视频图像中提取出来。The target object extraction module is used to extract the contour of the target object and the image within the contour from the video image.

进一步的,所述目标物体点获取模块,还包括:Further, the target object point acquisition module further includes:

角点获取模块,用于获取目标物体上的至少一个角点,所述角点为目标物体的轮廓上的两条边的交点。The corner point acquisition module is used to acquire at least one corner point on the target object, where the corner point is the intersection of two edges on the contour of the target object.

进一步的,所述目标物体点获取模块,还包括:Further, the target object point acquisition module further includes:

随机点获取模块,用于随机选取目标物体上的至少一个随机点。The random point acquisition module is used to randomly select at least one random point on the target object.

进一步的,所述轨迹计算模块,还包括:Further, the trajectory calculation module further includes:

排序模块,用于按照第一点的编号将所述第一点排序;A sorting module, configured to sort the first points according to their numbers;

第一点识别模块,用于在多帧图像中识别出同一编号的第一点;The first point recognition module is used to recognize the first point with the same number in multiple frames of images;

连接模块,用于将所述同一编号的第一点连接起来生成该编号的第一点的轨迹。The connection module is used to connect the first points of the same number to generate the track of the first point of the same number.

进一步的,所述轨迹处理模块,还包括:Further, the trajectory processing module further includes:

处理参数获取模块,用于从图像处理配置文件中获取图像处理模式以及图像处理资源;The processing parameter acquisition module is used to acquire the image processing mode and image processing resources from the image processing configuration file;

第一点轨迹处理模块,用于根据所述图像处理模式以及图像处理资源对所述第一点的轨迹进行处理得到处理后的轨迹。The first point trajectory processing module is configured to process the trajectory of the first point according to the image processing mode and image processing resources to obtain a processed trajectory.

进一步的,所述装置还包括:Further, the device further includes:

第二目标物体点获取模块,用于在经过预定数量的图像帧之后,获取所述目标物体上的至少一个第二点;The second target object point acquiring module is configured to acquire at least one second point on the target object after a predetermined number of image frames have passed;

第二连接模块,用于将多帧相邻图像帧中的同一个所述第二点连接计算所述第二点的轨迹;The second connection module is configured to connect the same second point in multiple adjacent image frames to calculate the trajectory of the second point;

第二点轨迹处理模块,用于获取图像处理参数并对所述第二点的轨迹进行处理得到处理后的轨迹。The second point trajectory processing module is used to obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.

进一步的,所述轨迹处理模块,还包括:Further, the trajectory processing module further includes:

第二处理参数获取模块,用于从图像处理配置文件中获取不同编号的 图像处理模式以及图像处理资源;The second processing parameter acquisition module is used to acquire image processing modes and image processing resources with different numbers from the image processing configuration file;

多轨迹处理模块,用于根据所述生成所述轨迹的第一点的编号,使用该编号对应的图像处理模式以及图像处理资源对所述编号的第一点的轨迹进行处理得到处理后的轨迹。The multi-track processing module is configured to process the track of the first point of the number by using the image processing mode and image processing resources corresponding to the number according to the number of the first point of the generated track to obtain the processed track .

根据本公开的又一个方面,还提供以下技术方案:According to another aspect of the present disclosure, the following technical solutions are also provided:

一种电子设备,包括:存储器,用于存储非暂时性计算机可读指令;以及处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现上述任一图像处理方法所述的步骤。An electronic device, comprising: a memory for storing non-transitory computer readable instructions; and a processor for running the computer readable instructions, so that when the processor is executed, the above-mentioned image processing method A step of.

根据本公开的又一个方面,还提供以下技术方案:According to another aspect of the present disclosure, the following technical solutions are also provided:

一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行上述任一方法中所述的步骤。A computer-readable storage medium for storing non-transitory computer-readable instructions. When the non-transitory computer-readable instructions are executed by a computer, the computer can execute the steps in any of the above methods.

本公开公开一种图像处理方法、装置和电子设备。其中,该图像处理方法包括:从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;从所述视频图像中分割出所述目标物体;获取所述目标物体上的至少一个第一点;将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。本公开实施例的图像处理方法,通过计算目标物体上的点的运动轨迹,使用预先设定的图像处理方式处理所述轨迹生成轨迹的特殊效果,提高了生成特效的效率和灵活性。The present disclosure discloses an image processing method, device and electronic equipment. Wherein, the image processing method includes: acquiring a video image from an image source, wherein the video image includes at least one target object; segmenting the target object from the video image; acquiring at least one first object on the target object One point; connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point; acquiring image processing parameters and processing the trajectory of the first point to obtain a processed trajectory. The image processing method of the embodiment of the present disclosure calculates the movement trajectory of a point on the target object, and uses a preset image processing method to process the trajectory to generate a special effect of the trajectory, thereby improving the efficiency and flexibility of generating special effects.

上述说明仅是本公开技术方案的概述,为了能更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为让本公开的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solutions of the present disclosure. In order to understand the technical means of the present disclosure more clearly, they can be implemented in accordance with the content of the specification, and to make the above and other objectives, features and advantages of the present disclosure more obvious and understandable. In the following, the preferred embodiments are cited in conjunction with the drawings, and the detailed description is as follows.

附图说明Description of the drawings

图1为根据本公开一个实施例的图像处理方法的流程示意图;Fig. 1 is a schematic flowchart of an image processing method according to an embodiment of the present disclosure;

图2为根据本公开一个实施例的目标物体角点检测示意图;2 is a schematic diagram of corner detection of a target object according to an embodiment of the present disclosure;

图3为根据本公开又一个实施例的图像处理方法的流程示意图;3 is a schematic flowchart of an image processing method according to another embodiment of the present disclosure;

图4为根据本公开一个实施例的图像处理装置的结构示意图;Fig. 4 is a schematic structural diagram of an image processing device according to an embodiment of the present disclosure;

图5为根据本公开实施例提供的电子设备的结构示意图。Fig. 5 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.

具体实施方式detailed description

以下通过特定的具体实例说明本公开的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本公开的其他优点与功效。显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。本公开还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本公开的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The following describes the implementation of the present disclosure through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and the features in the embodiments can be combined with each other if there is no conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.

需要说明的是,下文描述在所附权利要求书的范围内的实施例的各种方面。应显而易见,本文中所描述的方面可体现于广泛多种形式中,且本文中所描述的任何特定结构及/或功能仅为说明性的。基于本公开,所属领域的技术人员应了解,本文中所描述的一个方面可与任何其它方面独立地实施,且可以各种方式组合这些方面中的两者或两者以上。举例来说,可使用本文中所阐述的任何数目个方面来实施设备及/或实践方法。另外,可使用除了本文中所阐述的方面中的一或多者之外的其它结构及/或功能性实施此设备及/或实践此方法。It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be obvious that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and/or function described herein are only illustrative. Based on the present disclosure, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspects, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement devices and/or methods of practice. In addition, other structures and/or functionalities other than one or more of the aspects set forth herein may be used to implement this device and/or practice this method.

还需要说明的是,以下实施例中所提供的图示仅以示意方式说明本公开的基本构想,图式中仅显示与本公开中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例 可为一种随意的改变,且其组件布局型态也可能更为复杂。It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic idea of the present disclosure in a schematic manner. The figures only show the components related to the present disclosure rather than the number, shape, and shape of the components in actual implementation. For size drawing, the type, quantity, and ratio of each component can be changed at will during actual implementation, and the component layout type may also be more complicated.

另外,在以下描述中,提供具体细节是为了便于透彻理解实例。然而,所属领域的技术人员将理解,可在没有这些特定细节的情况下实践所述方面。In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects may be practiced without these specific details.

本公开实施例提供一种图像处理方法。本实施例提供的该图像处理方法可以由一计算装置来执行,该计算装置可以实现为软件,或者实现为软件和硬件的组合,该计算装置可以集成设置在服务器、终端设备等中。如图1所示,该图像处理方法主要包括如下步骤S101至步骤S105。其中:The embodiment of the present disclosure provides an image processing method. The image processing method provided in this embodiment can be executed by a computing device, the computing device can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, terminal device, etc. As shown in FIG. 1, the image processing method mainly includes the following steps S101 to S105. among them:

步骤S101:从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;Step S101: Obtain a video image from an image source, where the video image includes at least one target object;

在本公开中,所述图像源为本地存储空间或者网络存储空间,所述从图像源获取视频图像,包括从本地存储空间中获取视频图像或者从网络存储空间中获取视频图像,无论从哪里获取视频图像,首选需要获取视频图像的存储地址,之后从该存储地址获取视频图像,所述视频图像包括多个图像帧,所述视频图像可以是视频也可以是带有动态效果的图片,只要是带有多帧的图像均可以是本公开中的视频图像。In the present disclosure, the image source is a local storage space or a network storage space. The obtaining of video images from an image source includes obtaining video images from a local storage space or obtaining video images from a network storage space, no matter where it is obtained. For video images, it is first necessary to obtain the storage address of the video image, and then obtain the video image from the storage address. The video image includes multiple image frames. The video image can be a video or a picture with dynamic effects, as long as it is Images with multiple frames may all be video images in the present disclosure.

在本公开中,所述视频源可以是视频采集装置,如图像传感器,所述从图像源获取视频图像,包括从视频采集装置中获取视频图像。所述图像传感器指可以采集图像的各种设备,典型的图像传感器为摄像机、摄像头、相机等。在该实施例中,所述图像传感器可以是移动终端上的摄像头,比如智能手机上的前置或者后置摄像头,摄像头采集的视频图像可以直接显示在手机的显示屏上,在该步骤中,获取图像传感器所拍摄的视频,作为待处理的图像。In the present disclosure, the video source may be a video capture device, such as an image sensor, and the acquisition of a video image from the image source includes acquiring a video image from the video capture device. The image sensor refers to various devices that can collect images, and typical image sensors are video cameras, cameras, and cameras. In this embodiment, the image sensor may be a camera on a mobile terminal, such as a front or rear camera on a smart phone. The video image collected by the camera may be directly displayed on the display screen of the phone. In this step, Obtain the video taken by the image sensor as the image to be processed.

由于本公开的技术方案需要识别目标物体,因此在所述视频图像中包括至少一个目标物体。其中所述的视频图像的多帧图像帧中包括至少一个 目标物体,可以理解的,所述视频图像中也可以包括多个目标物体,在此不再赘述。Since the technical solution of the present disclosure needs to recognize the target object, at least one target object is included in the video image. The multiple image frames of the video image include at least one target object. It is understandable that the video image may also include multiple target objects, which will not be repeated here.

步骤S101:从所述视频图像中分割出所述目标物体;Step S101: segment the target object from the video image;

在本公开中,所述从所述视频图像中分割出所述目标物体,包括:识别所述视频图像中的目标物体;分割出所述目标物体的轮廓;将所述目标物体的轮廓以及轮廓内的图像从所述视频图像中提取出来。In the present disclosure, the segmenting the target object from the video image includes: identifying the target object in the video image; segmenting the contour of the target object; and dividing the contour and the contour of the target object The images inside are extracted from the video image.

在该步骤中,所述视频图像为所述视频图像中的图像帧,所述图像帧为带有目标物体的图片,所述目标物体可以是任何物体,在该实施例中所述目标物体为人体。In this step, the video image is an image frame in the video image, and the image frame is a picture with a target object. The target object can be any object. In this embodiment, the target object is human body.

图像分割一般分为交互式图像分割和自动式图像分割,传统上的图像处理一般使用交互式图像分割,需要人为参与图像的分割。本公开中使用自动式图像分割,下边以人体图像分割为例,对自动式图像分割进行说明。Image segmentation is generally divided into interactive image segmentation and automatic image segmentation. Traditional image processing generally uses interactive image segmentation, which requires human participation in image segmentation. In the present disclosure, automatic image segmentation is used. The following uses human body image segmentation as an example to describe the automatic image segmentation.

一般来说,自动式人体图像分割方法可以分为以下几种:(1)基于模型的人体图像分割方法,对于这种方法首先根据人脸的先验知识检测到人脸,之后使用躯干模型寻找人脸下边的躯干,然后根据分割好的躯干来估计下半身的位置,最后利用估计得躯干和腿部上半肢区域为图像分割提供种子点以完成人体图像的分割;(2)基于层级树的人体图像分割方法,对于这种方法,首先对邻近的身体部分进行建模,之后对整个人体姿势进行建模,将人体的不同姿势建模为层级检测树中的不同路径上节点的加和,层级检测树中不同的层对应不同的邻近人体部分的模型,沿着层级检测树上的不同的路径,对应不同的人体姿势,检测时沿着树的根节点向下检测,沿着不同路径分割出人体的不同姿势;(3)基于参考信号的独立成分分析人体图像分割方法,对于这种方法,首先根据人脸的先验知识检测到人脸,之后使用躯干模型寻找人脸下边的躯干,之后从检测到的躯干中获得参考信号,然后利用参考信号的独立成分分析方法将躯干从图像中凸显出现完 成躯干的分割,其他身体部分的分割类似,最终完成整个人体图像的分割;(4)基于期望最大化算法的人体图像分割方法,对于这种方法,首先使用图案结构模型对图像中的人体姿势进行估计,得到人体姿势的概率图,之后在概率图的基础上再使用图像分割方法得到最后的人体分割图像。上述分割方法中,无论哪种方法一般都需要先识别出人体或者人体的一部分,之后估计出或者确定出人体的外轮廓,最终将外轮廓内的图像提取出来得到人体的分割图像。Generally speaking, automatic human body image segmentation methods can be divided into the following categories: (1) Model-based human body image segmentation methods. For this method, the face is first detected based on the prior knowledge of the face, and then the torso model is used to find The torso under the face, and then estimate the position of the lower body based on the segmented torso, and finally use the estimated torso and upper leg regions to provide seed points for image segmentation to complete the segmentation of the human body image; (2) based on the hierarchical tree Human body image segmentation method. For this method, the neighboring body parts are first modeled, and then the entire body pose is modeled. The different poses of the human body are modeled as the sum of nodes on different paths in the hierarchical detection tree. Different layers in the hierarchical detection tree correspond to different models of adjacent human body parts, and follow different paths on the hierarchical detection tree, corresponding to different human postures. When detecting, follow the root node of the tree to detect downward and divide along different paths. Different postures of the human body; (3) An independent component analysis human body image segmentation method based on reference signals. For this method, the face is first detected based on the prior knowledge of the face, and then the torso model is used to find the torso under the face. Then obtain the reference signal from the detected torso, and then use the independent component analysis method of the reference signal to highlight the torso from the image to complete the segmentation of the torso. The segmentation of other body parts is similar, and the segmentation of the entire human body image is finally completed; (4) The human body image segmentation method based on the expectation maximization algorithm. For this method, first use the pattern structure model to estimate the human body posture in the image to obtain the probability map of the human body posture, and then use the image segmentation method on the basis of the probability map to get The final human segmentation image. In the above segmentation method, no matter which method generally needs to recognize the human body or a part of the human body, the outer contour of the human body is estimated or determined, and finally the image within the outer contour is extracted to obtain the segmented image of the human body.

可以理解的,还可以使用其他的人体图像分割方法,在本公开中不再赘述,任何图像分割方法均可以引入本公开中,用以从视频图像中分割出目标物体。It is understandable that other human body image segmentation methods can also be used, which will not be repeated in this disclosure. Any image segmentation method can be introduced into this disclosure to segment the target object from the video image.

步骤S103:获取所述目标物体上的至少一个第一点;Step S103: Acquire at least one first point on the target object;

在本公开中,所述获取所述目标物体上的至少一个第一点,包括:获取目标物体上的至少一个角点,所述角点为目标物体的轮廓上的两条边的交点。可选的,所述目标物体为人体,所述角点为人体上衣服的角点,参见图2中所示,其中201为人体上肩膀处衣服的角点,202为人体胳膊肘处衣服的角点,203为人体膝盖处衣服的角点。获取目标物体上的角点,首选需要进行角点检测,在本公开中,角点检测可以使用任何角点检测方法,典型的如Harris角点检测算法、Moravec角点检测算法、FAST角点检测算法等等,在本公开中并不限定使用哪种角点检测算法,只要是可以快速检测出角点的算法,均可以应用于本公开的技术方案中。一般来说,所述检测出来的角点为目标物体的轮廓上两条边的交点,如图2中的角点203为人体大腿和小腿轮廓的交点处的点。所述检测出来的角点可以是一个点或者多个点,获取所述角点时,可以从所述检测出来的角点中选择一个或多个,选择所述角点时,可以根据检测出所述的角点的顺序选择前n个角点,其中n≥1;也可以根据一定的标准,如角点的颜色、与周边其他点的亮度差异等等来确定获取的角点,在此不再赘述。In the present disclosure, the acquiring at least one first point on the target object includes: acquiring at least one corner point on the target object, where the corner point is an intersection of two edges on the contour of the target object. Optionally, the target object is a human body, and the corner points are the corner points of the clothes on the human body, as shown in Figure 2, where 201 is the corner point of the clothes on the shoulders of the human body, and 202 is the corner points of the clothes on the elbows of the human body. The corner point, 203 is the corner point of the clothing at the human knee. To obtain corner points on the target object, corner detection is first required. In this disclosure, corner detection can use any corner detection method, such as Harris corner detection algorithm, Moravec corner detection algorithm, FAST corner detection Algorithms and so on. The present disclosure does not limit which corner detection algorithm to use, as long as it is an algorithm that can quickly detect corners, it can be applied to the technical solutions of the present disclosure. Generally speaking, the detected corner point is the intersection of two edges on the contour of the target object. The corner point 203 in FIG. 2 is the intersection of the contours of the human thigh and calf. The detected corner point may be one point or multiple points. When the corner point is acquired, one or more of the detected corner points may be selected. When the corner point is selected, the The order of said corner points selects the first n corner points, where n≥1; the corner points obtained can also be determined according to certain criteria, such as the color of the corner point, the brightness difference with other surrounding points, etc., here No longer.

在本公开中,所述获取所述目标物体上的至少一个第一点,包括:随机选取目标物体上的至少一个随机点。可选的,所述目标物体为人体,在该实施例中,随机在人体的轮廓上或者轮廓内选择至少一个点。所述选择至少一个点可以使用在人体的轮廓内随机撒点的方式实现。可选的,可以使用随机函数生成一个随机点,如果该点位于人体轮廓内,则将该点作为一个随机点,如果该点位于人体轮廓外,则将该点丢弃;可选的,可以将人体的轮廓内的图像切割成若干三角形,三角形的范围可以确定,在三角形的范围内随机撒点;可选的,可以使用四叉树将人体轮廓内的图像切割成多个大小相等的正方形,之后将正方形的中心作为随机点。本公开并不限制随机点的生成方式,用任何一种方法均可以在人体轮廓内生成一个或多个随机点,之后在所述随机点中选取一个或多个作为第一点。选择所述随机点时,可以根据生成所述随机点的顺序选择前n个随机点,其中n≥1;也可以根据一定的标准,如位置在预定范围内的随机点等等,在此不再赘述。In the present disclosure, the acquiring at least one first point on the target object includes: randomly selecting at least one random point on the target object. Optionally, the target object is a human body. In this embodiment, at least one point is randomly selected on or within the contour of the human body. The selection of at least one point can be achieved by randomly scattering points within the contour of the human body. Optionally, a random function can be used to generate a random point. If the point is within the contour of the human body, the point is regarded as a random point; if the point is outside the contour of the human body, the point is discarded; The image in the contour of the human body is cut into several triangles, the range of the triangle can be determined, and dots are randomly scattered within the range of the triangle; optionally, the image in the contour of the human body can be cut into multiple squares of equal size using a quad tree. Then use the center of the square as a random point. The present disclosure does not limit the method of generating random points. Any method can be used to generate one or more random points in the contour of the human body, and then one or more random points are selected as the first point. When selecting the random points, the first n random points can be selected according to the order in which the random points are generated, where n≥1; or according to certain criteria, such as random points whose positions are within a predetermined range, etc. Repeat it again.

可以理解的,所述第一点的获取并不限定上述两种方式,只要是目标物体轮廓上或者轮廓内的点均可以作为第一点,本公开中的第一点可以使用各种方法获取,在此不再赘述。It is understandable that the acquisition of the first point is not limited to the above two methods. As long as it is a point on or within the contour of the target object, it can be used as the first point. The first point in the present disclosure can be acquired by various methods. , I won’t repeat it here.

步骤S104:将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;Step S104: Connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point;

在本公开中,所述将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹,包括:按照第一点的编号将所述第一点排序;在多帧图像中识别出同一编号的第一点;将所述同一编号的第一点连接起来生成该编号的第一点的轨迹。在该实施例中,所述第一点带有编号,所述编号可以是预先编号的编号,如在检测角点时,可以设置检测固定的3个角点,如图2所示,将这3个角点设置固定的编号,如角点201的编号设置为001,角点202的编号设置为002,角点203的编号设置为003;在多帧图像中, 识别出同一编号的角点,此处可以使用流光法计算出第一帧图像帧中出现的角点在后续的图像帧中的位置,典型的流光计算方法为L-K算法、稠密光流法、金字塔光流法等等,使用光流法可以方便的在多帧图像帧中追踪同一个点,该点可以是特征点如角点,也可以是随机点或者其他任何自定义的点。在多帧图像帧中识别出所述同一编号的点之后,将同一编号的点连接起来,生成该编号的第一点的轨迹。当图像帧采样比较密集时,该轨迹可以呈现出所述目标物体的比较平滑的运动轨迹。In the present disclosure, the connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point includes: sorting the first points according to the numbers of the first points; Identifying the first point of the same number in the multiple frames of images; connecting the first points of the same number to generate the trajectory of the first point of the number. In this embodiment, the first point has a number, and the number can be a pre-numbered number. For example, when detecting a corner point, three fixed corner points can be set for detection. As shown in FIG. Set fixed numbers for 3 corner points, for example, the number of corner point 201 is set to 001, the number of corner point 202 is set to 002, and the number of corner point 203 is set to 003; in multi-frame images, the corner points with the same number are identified Here, the streamer method can be used to calculate the position of the corner point in the first image frame in the subsequent image frame. The typical streamer calculation method is LK algorithm, dense optical flow method, pyramid optical flow method, etc., use The optical flow method can easily track the same point in multiple image frames. The point can be a feature point such as a corner point, a random point or any other custom point. After the points of the same number are identified in the multiple image frames, the points of the same number are connected to generate the trajectory of the first point of the number. When the image frame sampling is relatively dense, the trajectory can present a relatively smooth motion trajectory of the target object.

可以理解的,在该步骤中,在多帧图像帧中跟踪同一个点的方法不局限于上述方法,任何可以在多帧图像帧中追踪同一个点形成运动轨迹的方法都可以应用到本公开中,在此不再赘述。It is understandable that in this step, the method of tracking the same point in multiple image frames is not limited to the above method, and any method that can track the same point in multiple image frames to form a motion track can be applied to the present disclosure In, not repeat them here.

步骤S105:获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。Step S105: Obtain image processing parameters and process the trajectory of the first point to obtain a processed trajectory.

在本公开中,所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹,包括:从图像处理配置文件中获取图像处理模式以及图像处理资源;根据所述图像处理模式以及图像处理资源对所述第一点的轨迹进行处理得到处理后的轨迹。其中,所述图像处理配置文件用于保存所述图像处理的处理类型,如贴图、形变、滤镜等等,以及所述图像处理所需要的资源的地址,如贴图处理中所需要的贴图以及贴图的位置、形变处理中的形变类型以及形变参数、滤镜处理中的色卡以及滤镜处理范围等等;之后根据所获取的处理模式以及图像处理资源对所述第一点的轨迹进行处理得到带有一定效果的轨迹。可选的,所述图像处理为将所述轨迹上的第一点加上贴图,所述贴图包括多个贴图帧,每个贴图帧的亮度从小到大循环变化,此时从所述图像处理配置文件中获取到贴图处理所需要的贴图的地址,并获取到对应的贴图帧,之后获取到第一点的在图像帧中的位置,将所述贴图帧渲染到所述第一点在各个贴图帧的位置上,以达到第一点在多帧图像中闪烁的效果。可选的,所述图像处理为在所述轨迹上加上 彩虹效果的贴图,则此时从所述图像处理配置文件中获取到贴图处理所需要的贴图的地址,此处的贴图为固定大小的矩形彩虹图,将所述矩形彩虹图的中心线贴合到所述轨迹上,之后循环的依次将所述彩虹图贴满整个轨迹,以达到彩虹轨迹的效果。可以理解的,此处的图像处理可以是任意处理,只要是可以对所述第一点的轨迹或者轨迹上的点进行处理的图像处理均可以应用到本公开中,具体的处理类型和处理类型对应的参数可以预先设置与图像处理配置文件中,这样通过修改配置文件即可实现对运动轨迹的渲染,达到不同的效果,且该效果为实时渲染到运动轨迹上的,无需事先录制视频通过后期制作加上所述效果,相较于传统方法更加方便快捷。In the present disclosure, the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory includes: acquiring an image processing mode and image processing resources from an image processing configuration file; and processing according to the image The pattern and image processing resources process the trajectory of the first point to obtain a processed trajectory. Wherein, the image processing configuration file is used to save the processing types of the image processing, such as textures, deformations, filters, etc., and the addresses of resources required for the image processing, such as textures and textures required in the texture processing. The location of the texture, the type of deformation and the deformation parameters in the deformation processing, the color card and the filter processing range in the filter processing, etc.; then the trajectory of the first point is processed according to the acquired processing mode and image processing resources Obtain a trajectory with a certain effect. Optionally, the image processing is to add a texture to the first point on the trajectory, the texture includes a plurality of texture frames, and the brightness of each texture frame changes cyclically from small to large. In this case, from the image processing The address of the texture required for texture processing is obtained in the configuration file, and the corresponding texture frame is obtained, and then the position of the first point in the image frame is obtained, and the texture frame is rendered to the first point in each The position of the texture frame to achieve the effect of the first point flashing in the multi-frame image. Optionally, the image processing is to add a rainbow effect texture to the trajectory. At this time, the address of the texture required for texture processing is obtained from the image processing configuration file, and the texture here is a fixed size Paste the center line of the rectangular rainbow graph to the track, and then paste the rainbow graph to the entire track in turn to achieve the effect of the rainbow track. It is understandable that the image processing here can be any processing, as long as the image processing that can process the trajectory of the first point or the point on the trajectory can be applied to the present disclosure, the specific processing type and processing type The corresponding parameters can be pre-set in the image processing configuration file, so that by modifying the configuration file, the motion track can be rendered to achieve different effects, and the effect is rendered in real time to the motion track, without the need to record the video in advance and pass the post The production plus the effect is more convenient and quicker than traditional methods.

在本公开中,所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹,还可以包括:从图像处理配置文件中获取不同编号的图像处理模式以及图像处理资源;根据所述生成所述轨迹的第一点的编号,使用该编号对应的图像处理模式以及图像处理资源对所述编号的第一点的轨迹进行处理得到处理后的轨迹。其中,所述图像处理配置文件中包括多种处理模式以及处理模式对应的资源,在图像处理配置文件中将所述多种处理模式与第一点的编号对应起来,这样对于不同的编号的第一点所生成的轨迹可以用不同的图像处理模式来处理,如对编号为001的角点生成的轨迹使用闪烁贴图处理,对编号为002的角点生成的轨迹使用彩虹贴图处理,这样对不同的轨迹可以使用不同的方式去处理。另外,对于在视频图像中识别出多个目标物体的情况,也可以在配置文件中预先配置,以实现多目标物体多轨迹的区别处理,具体配置方式与上边类似,仅仅需要区分目标物体以及目标物体的不同轨迹,在此不再赘述。In the present disclosure, the acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory may further include: acquiring image processing modes and image processing resources with different numbers from an image processing configuration file; According to the number of the first point generating the trajectory, the trajectory of the numbered first point is processed by using the image processing mode and image processing resource corresponding to the number to obtain the processed trajectory. Wherein, the image processing configuration file includes multiple processing modes and resources corresponding to the processing modes, and the multiple processing modes are corresponded to the number of the first point in the image processing configuration file, so that for the first point of different numbers The trajectory generated by one point can be processed in different image processing modes, such as using flicker mapping for the trajectory generated by the corner point numbered 001, and using rainbow mapping for the trajectory generated by the corner point numbered 002. The trajectory can be processed in different ways. In addition, for the case where multiple target objects are recognized in the video image, it can also be pre-configured in the configuration file to realize the distinction processing of multiple target objects and multiple trajectories. The specific configuration method is similar to the above, only the target object and the target need to be distinguished. The different trajectories of objects will not be repeated here.

如图3所示,为本公开的另一实施例的流程示意图。在该实施例中,对视频图像做分段处理,也就是说将视频图像分为几个阶段,对每个阶段做不同的处理。具体的,在所述步骤S105之后,还包括:As shown in FIG. 3, it is a schematic flowchart of another embodiment of the present disclosure. In this embodiment, segmentation processing is performed on the video image, that is, the video image is divided into several stages, and different processing is performed on each stage. Specifically, after the step S105, it further includes:

步骤S301:在经过预定数量的图像帧之后,获取所述目标物体上的至 少一个第二点;Step S301: After a predetermined number of image frames have passed, acquire at least one second point on the target object;

步骤S302:将多帧相邻图像帧中的同一个所述第二点连接计算所述第二点的轨迹;Step S302: Connect the same second point in multiple adjacent image frames to calculate the trajectory of the second point;

步骤S303:获取图像处理参数并对所述第二点的轨迹进行处理得到处理后的轨迹。Step S303: Obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.

在该实施例中,可以预先设置预定数量的图像帧为处理帧数,如设置M帧为处理帧数,也就是说每次图像处理以M帧为界,当超过M帧之后切换处理所针对的轨迹和/或处理的模式。可选的,所述第二点可以与第一点相同,此时可以使用与获取第一点相同的方式,继续获取第二点,则第二点与第一点相同,此时仅仅是切换处理模式,使用与前M帧不同的处理方式处理同一个点生成的轨迹,此时呈现出一种分段的轨迹效果。可选的,所述第二点可以与第一点不同,此时当超过M帧之后,重新获取第二点,形成新的轨迹,此时可以形成不同轨迹相同处理或者不同轨迹不同处理的效果。具体的处理配置以及处理方式可以参见步骤S105中的描述,此处的配置方式与其相同,不再赘述。In this embodiment, a predetermined number of image frames can be preset as the number of processed frames, such as setting M frames as the number of processed frames, that is to say, each image processing is bounded by M frames, and the processing target is switched after M frames are exceeded. The trajectory and/or processing mode. Optionally, the second point can be the same as the first point. At this time, the same method as the first point can be used to continue to obtain the second point, and the second point is the same as the first point. The processing mode uses a different processing method than the previous M frames to process the trajectory generated by the same point, which presents a segmented trajectory effect. Optionally, the second point may be different from the first point. At this time, after M frames are exceeded, the second point is re-acquired to form a new trajectory. At this time, the effect of different trajectories with the same processing or different trajectories with different processing can be formed . For the specific processing configuration and processing method, please refer to the description in step S105, and the configuration method here is the same as it, and will not be repeated.

本公开公开一种图像处理方法、装置和电子设备。其中,该图像处理方法包括:从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;从所述视频图像中分割出所述目标物体;获取所述目标物体上的至少一个第一点;将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。本公开实施例的图像处理方法,通过计算目标物体上的点的运动轨迹,使用预先设定的图像处理方式处理所述轨迹生成轨迹的特殊效果,提高了生成特效的效率和灵活性。The present disclosure discloses an image processing method, device and electronic equipment. Wherein, the image processing method includes: acquiring a video image from an image source, wherein the video image includes at least one target object; segmenting the target object from the video image; acquiring at least one first object on the target object One point; connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point; acquiring image processing parameters and processing the trajectory of the first point to obtain a processed trajectory. The image processing method of the embodiment of the present disclosure calculates the movement trajectory of a point on the target object, and uses a preset image processing method to process the trajectory to generate a special effect of the trajectory, thereby improving the efficiency and flexibility of generating special effects.

在上文中,虽然按照上述的顺序描述了上述方法实施例中的各个步骤,本领域技术人员应清楚,本公开实施例中的步骤并不必然按照上述顺序执 行,其也可以倒序、并行、交叉等其他顺序执行,而且,在上述步骤的基础上,本领域技术人员也可以再加入其他步骤,这些明显变型或等同替换的方式也应包含在本公开的保护范围之内,在此不再赘述。In the above, although the steps in the above method embodiments are described in the above order, those skilled in the art should understand that the steps in the embodiments of the present disclosure are not necessarily executed in the above order, and they can also be reversed, parallel, or interleaved. Other steps are executed in other order, and on the basis of the above steps, those skilled in the art can also add other steps. These obvious modifications or equivalent substitutions should also be included in the protection scope of the present disclosure, and will not be repeated here. .

下面为本公开装置实施例,本公开装置实施例可用于执行本公开方法实施例实现的步骤,为了便于说明,仅示出了与本公开实施例相关的部分,具体技术细节未揭示的,请参照本公开方法实施例。The following are device embodiments of the present disclosure. The device embodiments of the present disclosure can be used to perform the steps implemented by the method embodiments of the present disclosure. For ease of description, only the parts related to the embodiments of the present disclosure are shown. For specific technical details that are not disclosed, please Refer to the method embodiment of the present disclosure.

本公开实施例提供一种图像处理装置。该装置可以执行上述图像处理方法实施例中所述的步骤。如图4所示,该装置400主要包括:图像获取模块401、分割模块402、目标物体点获取模块403、轨迹计算模块404和轨迹处理模块405。其中,The embodiment of the present disclosure provides an image processing device. The device can execute the steps described in the above image processing method embodiment. As shown in FIG. 4, the device 400 mainly includes: an image acquisition module 401, a segmentation module 402, a target object point acquisition module 403, a trajectory calculation module 404, and a trajectory processing module 405. among them,

图像获取模块401,用于从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;The image acquisition module 401 is configured to acquire a video image from an image source, where the video image includes at least one target object;

分割模块402,用于从所述视频图像中分割出所述目标物体;A segmentation module 402, configured to segment the target object from the video image;

目标物体点获取模块403,用于获取所述目标物体上的至少一个第一点;The target object point acquiring module 403 is configured to acquire at least one first point on the target object;

轨迹计算模块404,用于将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;The trajectory calculation module 404 is configured to connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point;

轨迹处理模块405,用于获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。The trajectory processing module 405 is configured to obtain image processing parameters and process the trajectory of the first point to obtain a processed trajectory.

进一步的,所述图像获取模块401,还用于:Further, the image acquisition module 401 is also used for:

从视频采集装置中获取视频图像,所述视频图像中包括多帧图像帧,所述图像帧中包括至少一个目标物体。Obtain a video image from a video capture device, the video image includes multiple image frames, and the image frame includes at least one target object.

进一步的,所述分割模块402,还包括:Further, the segmentation module 402 further includes:

目标物体识别模块,用于识别所述视频图像中的目标物体;The target object recognition module is used to recognize the target object in the video image;

轮廓分割模块,用于分割出所述目标物体的轮廓;A contour segmentation module for segmenting the contour of the target object;

目标物体提取模块,用于将所述目标物体的轮廓以及轮廓内的图像从所述视频图像中提取出来。The target object extraction module is used to extract the contour of the target object and the image within the contour from the video image.

进一步的,所述目标物体点获取模块403,还包括:Further, the target object point acquisition module 403 further includes:

角点获取模块,用于获取目标物体上的至少一个角点,所述角点为目标物体的轮廓上的两条边的交点。The corner point acquisition module is used to acquire at least one corner point on the target object, where the corner point is the intersection of two edges on the contour of the target object.

进一步的,所述目标物体点获取模块403,还包括:Further, the target object point acquisition module 403 further includes:

随机点获取模块,用于随机选取目标物体上的至少一个随机点。The random point acquisition module is used to randomly select at least one random point on the target object.

进一步的,所述轨迹计算模块404,还包括:Further, the trajectory calculation module 404 further includes:

排序模块,用于按照第一点的编号将所述第一点排序;A sorting module, configured to sort the first points according to their numbers;

第一点识别模块,用于在多帧图像中识别出同一编号的第一点;The first point recognition module is used to recognize the first point with the same number in multiple frames of images;

连接模块,用于将所述同一编号的第一点连接起来生成该编号的第一点的轨迹。The connection module is used to connect the first points of the same number to generate the track of the first point of the same number.

进一步的,所述轨迹处理模块405,还包括:Further, the trajectory processing module 405 further includes:

处理参数获取模块,用于从图像处理配置文件中获取图像处理模式以及图像处理资源;The processing parameter acquisition module is used to acquire the image processing mode and image processing resources from the image processing configuration file;

第一点轨迹处理模块,用于根据所述图像处理模式以及图像处理资源对所述第一点的轨迹进行处理得到处理后的轨迹。The first point trajectory processing module is configured to process the trajectory of the first point according to the image processing mode and image processing resources to obtain a processed trajectory.

进一步的,所述装置400还包括:Further, the device 400 further includes:

第二目标物体点获取模块,用于在经过预定数量的图像帧之后,获取所述目标物体上的至少一个第二点;The second target object point acquiring module is configured to acquire at least one second point on the target object after a predetermined number of image frames have passed;

第二连接模块,用于将多帧相邻图像帧中的同一个所述第二点连接计算所述第二点的轨迹;The second connection module is configured to connect the same second point in multiple adjacent image frames to calculate the trajectory of the second point;

第二点轨迹处理模块,用于获取图像处理参数并对所述第二点的轨迹进行处理得到处理后的轨迹。The second point trajectory processing module is used to obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory.

进一步的,所述轨迹处理模块405,还包括:Further, the trajectory processing module 405 further includes:

第二处理参数获取模块,用于从图像处理配置文件中获取不同编号的图像处理模式以及图像处理资源;The second processing parameter acquisition module is used to acquire image processing modes and image processing resources with different numbers from the image processing configuration file;

多轨迹处理模块,用于根据所述生成所述轨迹的第一点的编号,使用该编号对应的图像处理模式以及图像处理资源对所述编号的第一点的轨迹进行处理得到处理后的轨迹。The multi-track processing module is configured to process the track of the first point of the number by using the image processing mode and image processing resources corresponding to the number according to the number of the first point of the generated track to obtain the processed track .

图4所示装置可以执行图1和图3所示实施例的方法,本实施例未详细描述的部分,可参考对图1和图3所示实施例的相关说明。该技术方案的执行过程和技术效果参见图1和图3所示实施例中的描述,在此不再赘述。The device shown in FIG. 4 can execute the methods of the embodiments shown in FIG. 1 and FIG. 3. For parts that are not described in detail in this embodiment, please refer to the related descriptions of the embodiments shown in FIG. 1 and FIG. For the implementation process and technical effects of this technical solution, please refer to the description in the embodiment shown in FIG. 1 and FIG. 3, which will not be repeated here.

下面参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 5, it shows a schematic structural diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure. Electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (for example, Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.

如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 502 or from a storage device 508. The program in the memory (RAM) 503 executes various appropriate actions and processing. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to the bus 504.

通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、 键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screens, touch panels, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, An output device 507 such as a vibrator; a storage device 508 such as a magnetic tape and a hard disk; and a communication device 509. The communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data. Although FIG. 4 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的 组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device . The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;从所述视频图像中分割出所述目标物体;获取所述目标物体上的至少一个第一点;将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains a video image from an image source, wherein the video image includes at least one target object Segment the target object from the video image; obtain at least one first point on the target object; connect the same first point in multiple adjacent image frames to calculate the first point The trajectory; acquiring image processing parameters and processing the trajectory of the first point to obtain the processed trajectory.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof. The above-mentioned programming languages include object-oriented programming languages-such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能 的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions. It should also be noted that, in some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in this disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover the above technical features or technical solutions without departing from the above disclosed concept. Other technical solutions formed by any combination of its equivalent features. For example, the above-mentioned features and the technical features disclosed in the present disclosure (but not limited to) with similar functions are mutually replaced to form a technical solution.

Claims (12)

一种图像处理方法,包括:An image processing method, including: 从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;Acquiring a video image from an image source, where the video image includes at least one target object; 从所述视频图像中分割出所述目标物体;Segmenting the target object from the video image; 获取所述目标物体上的至少一个第一点;Acquiring at least one first point on the target object; 将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;Connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point; 获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。Obtain image processing parameters and process the trajectory of the first point to obtain a processed trajectory. 如权利要求1所述的图像处理方法,其中所述从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体,包括:8. The image processing method according to claim 1, wherein said obtaining a video image from an image source, wherein said video image includes at least one target object, including: 从视频采集装置中获取视频图像,所述视频图像中包括多帧图像帧,所述图像帧中包括至少一个目标物体。Obtain a video image from a video capture device, the video image includes multiple image frames, and the image frame includes at least one target object. 如权利要求1所述的图像处理方法,其中所述从所述视频图像中分割出所述目标物体,包括:5. The image processing method of claim 1, wherein said segmenting said target object from said video image comprises: 识别所述视频图像中的目标物体;Identifying the target object in the video image; 分割出所述目标物体的轮廓;Segmenting out the contour of the target object; 将所述目标物体的轮廓以及轮廓内的图像从所述视频图像中提取出来。The contour of the target object and the image within the contour are extracted from the video image. 如权利要求1所述的图像处理方法,其中所述获取所述目标物体上的至少一个第一点,包括:5. The image processing method of claim 1, wherein said acquiring at least one first point on said target object comprises: 获取目标物体上的至少一个角点,所述角点为目标物体的轮廓上的两条边的交点。Acquire at least one corner point on the target object, where the corner point is an intersection of two edges on the contour of the target object. 如权利要求1所述的图像处理方法,其中所述获取所述目标物体上的至少一个第一点,包括:5. The image processing method of claim 1, wherein said acquiring at least one first point on said target object comprises: 随机选取目标物体上的至少一个随机点。Randomly select at least one random point on the target object. 如权利要求1所述的图像处理方法,其中所述将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹,包括:5. The image processing method according to claim 1, wherein said connecting the same first point in multiple adjacent image frames to calculate the trajectory of the first point comprises: 按照第一点的编号将所述第一点排序;Sort the first points according to their numbers; 在多帧图像中识别出同一编号的第一点;Identify the first point of the same number in multiple frames of images; 将所述同一编号的第一点连接起来生成该编号的第一点的轨迹。Connecting the first points of the same number to generate the trajectory of the first point of the number. 如权利要求1所述的图像处理方法,其中所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹,包括:8. The image processing method according to claim 1, wherein said acquiring image processing parameters and processing the trajectory of said first point to obtain the processed trajectory comprises: 从图像处理配置文件中获取图像处理模式以及图像处理资源;Obtain the image processing mode and image processing resources from the image processing configuration file; 根据所述图像处理模式以及图像处理资源对所述第一点的轨迹进行处理得到处理后的轨迹。The trajectory of the first point is processed according to the image processing mode and the image processing resource to obtain a processed trajectory. 如权利要求1所述的图像处理方法,在所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹之后,还包括:5. The image processing method of claim 1, after said acquiring image processing parameters and processing the trajectory of the first point to obtain a processed trajectory, further comprising: 在经过预定数量的图像帧之后,获取所述目标物体上的至少一个第二点;Obtaining at least one second point on the target object after a predetermined number of image frames have passed; 将多帧相邻图像帧中的同一个所述第二点连接计算所述第二点的轨迹;Connecting the same second point in multiple adjacent image frames to calculate the trajectory of the second point; 获取图像处理参数并对所述第二点的轨迹进行处理得到处理后的轨迹。Obtain image processing parameters and process the trajectory of the second point to obtain a processed trajectory. 如权利要求6所述的图像处理方法,其中所述获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹,包括:7. The image processing method according to claim 6, wherein said acquiring image processing parameters and processing the trajectory of said first point to obtain the processed trajectory comprises: 从图像处理配置文件中获取不同编号的图像处理模式以及图像处理资源;Obtain image processing modes and image processing resources with different numbers from the image processing configuration file; 根据所述生成所述轨迹的第一点的编号,使用该编号对应的图像处理模式以及图像处理资源对所述编号的第一点的轨迹进行处理得到处理后的轨迹。According to the number of the first point generating the trajectory, the trajectory of the numbered first point is processed by using the image processing mode and image processing resource corresponding to the number to obtain the processed trajectory. 一种图像处理装置,包括:An image processing device including: 图像获取模块,用于从图像源获取视频图像,其中所述视频图像中包括至少一个目标物体;An image acquisition module for acquiring a video image from an image source, wherein the video image includes at least one target object; 分割模块,用于从所述视频图像中分割出所述目标物体;A segmentation module for segmenting the target object from the video image; 目标物体点获取模块,用于获取所述目标物体上的至少一个第一点;A target object point acquisition module, configured to acquire at least one first point on the target object; 轨迹计算模块,用于将多帧相邻图像帧中的同一个所述第一点连接计算所述第一点的轨迹;A trajectory calculation module, configured to connect the same first point in multiple adjacent image frames to calculate the trajectory of the first point; 轨迹处理模块,用于获取图像处理参数并对所述第一点的轨迹进行处理得到处理后的轨迹。The trajectory processing module is used to obtain image processing parameters and process the trajectory of the first point to obtain the processed trajectory. 一种电子设备,包括:An electronic device including: 存储器,用于存储计算机可读指令;以及Memory for storing computer readable instructions; and 处理器,用于运行所述计算机可读指令,使得所述处理器运行时实现根据权利要求1-9中任意一项所述的图像处理方法。The processor is configured to run the computer-readable instructions, so that the processor implements the image processing method according to any one of claims 1-9 when the processor is running. 一种非暂态计算机可读存储介质,用于存储计算机可读指令,当所述计算机可读指令由计算机执行时,使得所述计算机执行权利要求1-9中任意一项所述的图像处理方法。A non-transitory computer-readable storage medium for storing computer-readable instructions. When the computer-readable instructions are executed by a computer, the computer can execute the image processing according to any one of claims 1-9 method.
PCT/CN2019/126755 2019-03-26 2019-12-19 Image processing method and apparatus, and electronic device Ceased WO2020192195A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910230223.XA CN110035236A (en) 2019-03-26 2019-03-26 Image processing method, device and electronic equipment
CN201910230223.X 2019-03-26

Publications (1)

Publication Number Publication Date
WO2020192195A1 true WO2020192195A1 (en) 2020-10-01

Family

ID=67236606

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/126755 Ceased WO2020192195A1 (en) 2019-03-26 2019-12-19 Image processing method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN110035236A (en)
WO (1) WO2020192195A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492196A (en) * 2020-10-29 2021-03-12 贝壳技术有限公司 Live broadcast in-process anchor tracking method, device and system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035236A (en) * 2019-03-26 2019-07-19 北京字节跳动网络技术有限公司 Image processing method, device and electronic equipment
CN112651909B (en) * 2019-10-10 2024-03-15 北京字节跳动网络技术有限公司 Image synthesis method, device, electronic equipment and computer-readable storage medium
CN110781796B (en) * 2019-10-22 2022-03-25 杭州宇泛智能科技有限公司 Labeling method and device and electronic equipment
CN113709389A (en) * 2020-05-21 2021-11-26 北京达佳互联信息技术有限公司 Video rendering method and device, electronic equipment and storage medium
CN111954055B (en) * 2020-07-01 2022-09-02 北京达佳互联信息技术有限公司 Video special effect display method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063670A1 (en) * 2001-09-28 2003-04-03 Koichi Masukura Image data processing method and article of manufacture
CN108090916A (en) * 2017-12-21 2018-05-29 百度在线网络技术(北京)有限公司 For tracking the method and apparatus of the targeted graphical in video
CN108537867A (en) * 2018-04-12 2018-09-14 北京微播视界科技有限公司 According to the Video Rendering method and apparatus of user's limb motion
CN109068053A (en) * 2018-07-27 2018-12-21 乐蜜有限公司 Image special effect methods of exhibiting, device and electronic equipment
CN110035236A (en) * 2019-03-26 2019-07-19 北京字节跳动网络技术有限公司 Image processing method, device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106251387A (en) * 2016-07-29 2016-12-21 武汉光之谷文化科技股份有限公司 A kind of imaging system based on motion capture
CN108712661B (en) * 2018-05-28 2022-02-25 广州虎牙信息科技有限公司 Live video processing method, device, equipment and storage medium
CN109242793A (en) * 2018-08-29 2019-01-18 Oppo广东移动通信有限公司 Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN109191398B (en) * 2018-08-29 2021-08-03 Oppo广东移动通信有限公司 Image processing method, apparatus, computer-readable storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063670A1 (en) * 2001-09-28 2003-04-03 Koichi Masukura Image data processing method and article of manufacture
CN108090916A (en) * 2017-12-21 2018-05-29 百度在线网络技术(北京)有限公司 For tracking the method and apparatus of the targeted graphical in video
CN108537867A (en) * 2018-04-12 2018-09-14 北京微播视界科技有限公司 According to the Video Rendering method and apparatus of user's limb motion
CN109068053A (en) * 2018-07-27 2018-12-21 乐蜜有限公司 Image special effect methods of exhibiting, device and electronic equipment
CN110035236A (en) * 2019-03-26 2019-07-19 北京字节跳动网络技术有限公司 Image processing method, device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492196A (en) * 2020-10-29 2021-03-12 贝壳技术有限公司 Live broadcast in-process anchor tracking method, device and system
CN112492196B (en) * 2020-10-29 2022-01-07 贝壳技术有限公司 Live broadcast in-process anchor tracking method, device and system

Also Published As

Publication number Publication date
CN110035236A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
WO2020192195A1 (en) Image processing method and apparatus, and electronic device
CN110058685B (en) Virtual object display method and device, electronic equipment and computer-readable storage medium
JP7199527B2 (en) Image processing method, device, hardware device
CN113706440B (en) Image processing method, device, computer equipment and storage medium
CN111787242A (en) Method and apparatus for virtual fitting
US11776209B2 (en) Image processing method and apparatus, electronic device, and storage medium
WO2020228406A1 (en) Image stylization generation method and apparatus, and electronic device
CN112672185B (en) Augmented reality-based display method, device, equipment and storage medium
CN111833461B (en) Method and device for realizing special effect of image, electronic equipment and storage medium
CN110070551B (en) Video image rendering method and device and electronic equipment
CN115937379A (en) Special effect generation method and device, electronic equipment and storage medium
WO2020077913A1 (en) Image processing method and device, and hardware device
WO2020155984A1 (en) Facial expression image processing method and apparatus, and electronic device
CN112965780A (en) Image display method, apparatus, device and medium
CN117635799A (en) Rendering method and device of three-dimensional model, electronic equipment and storage medium
CN111199169A (en) Image processing method and device
CN110069125A (en) The control method and device of virtual objects
CN110197459B (en) Image stylization generation method and device and electronic equipment
WO2020077912A1 (en) Image processing method, device, and hardware device
CN110209861A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN110069641B (en) Image processing method and device and electronic equipment
CN110222576B (en) Boxing action recognition method and device and electronic equipment
WO2024179319A1 (en) Image processing method and apparatus, and electronic device
CN111292227A (en) Image processing method and device
CN111292247A (en) Image processing method and device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 19921612

Country of ref document: EP

Kind code of ref document: A1