Video processing method and apparatus, and medium and electronic device

By detecting and processing the edges of objects to be processed in the video and adding edge lines, the problem of how to add graffiti effects to the videos captured by users is solved, achieving simplicity, efficiency and fun in video processing.

WO2025044930A1PCT designated stage expired Publication Date: 2025-03-06BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/114226
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-25
Filing Date
2024-08-23
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

How to process the videos taken by users, achieve some video graffiti effects, and increase the fun of the video.

Method used

By obtaining the pending video, detecting the pending object, determining the edge of the pending object, and adding edge lines to the edge, the video is processed to obtain the target video.

Benefits of technology

It realizes simple and efficient processing of the video, adds colorful graffiti effects, and increases the fun of the video.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024114226_06032025_PF_FP_ABST
    Figure CN2024114226_06032025_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure belongs to the technical field of computers, and relates to a video processing method and apparatus, a medium and and an electronic device, which enable a video to be doodled on, thereby enhancing the interestingness of the video. The video processing method comprises: acquiring a video to be processed; detecting from said video an object to be processed; determining an edge of said object; and adding an edge line to the edge to process said video, so as to obtain a target video.
Need to check novelty before this filing date? Find Prior Art

Description

Video processing method, device, medium and electronic equipment

[0001] This disclosure claims priority to Chinese Patent Application No. 202311085507.7 filed on August 25, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as part of this disclosure. Technical Field

[0002] The present disclosure relates to a video processing method, device, medium and electronic device. Background Art

[0003] After the user shoots a video, how to process the video to achieve some video graffiti effects is a problem that needs to be solved.

[0004] Summary of the Invention

[0005] This summary is provided to briefly introduce concepts that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0006] In a first aspect, the present disclosure provides a video processing method, comprising: obtaining a video to be processed; detecting an object to be processed from the video to be processed; determining the edge of the object to be processed; and adding an edge line to the edge to process the video to obtain a target video.

[0007] In a second aspect, the present disclosure provides a video processing device, comprising: an acquisition module for acquiring a video to be processed; a detection module for detecting an object to be processed from the video to be processed; a determination module for determining the edge of the object to be processed; and a processing module for adding an edge line to the edge to process the video to be processed and obtain a target video.

[0008] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any one of the methods described in the first aspect.

[0009] In a fourth aspect, the present disclosure provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any one of the methods described in the first aspect.

[0010] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale. In the drawings:

[0012] FIG1 is a flowchart of a video processing method according to an embodiment of the present disclosure.

[0013] 2a and 2b are schematic diagrams showing the effects of the video processing method according to an embodiment of the present disclosure.

[0014] FIG3 is a schematic block diagram of a video processing apparatus according to an embodiment of the present disclosure.

[0015] FIG4 shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0017] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0018] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0019] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0020] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0022] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0023] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0024] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0025] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0026] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0027] Figure 1 is a flow chart of a video processing method according to an embodiment of the present disclosure. As shown in Figure 1 , the video processing method includes the following steps S11 to S14.

[0028] In step S11, a video to be processed is obtained.

[0029] In step S12, an object to be processed is detected from the video to be processed.

[0030] In some embodiments, a music card in the video to be processed may be detected first; then, based on the music card, a key frame may be obtained from the video to be processed; and then, the object to be processed may be detected on the key frame. For example, the video frame at the music card position may be determined as a key frame, and the object to be processed may be detected from the key frame.

[0031] In some embodiments, a key frame containing a salient object in the video to be processed may be first obtained, and then the salient object may be obtained from the key frame as the object to be processed.

[0032] In addition, it should be noted that in the present disclosure, it is also possible to first detect the music card points of the video to be processed, then determine the video frame at the position of the music card point as a key frame, and then detect whether the key frame contains a significant object. If the key frame contains a significant object, the significant object is obtained from the key frame as the object to be processed. While obtaining the object to be processed based on the music card points, it is also possible to detect significant objects in other video frames other than the music card points as the object to be processed.

[0033] In step S13, the edge of the object to be processed is determined.

[0034] In some embodiments, the edges in the keyframe may be first obtained, and then the mask of the object to be processed may be obtained. Then, based on the edges in the keyframe and the mask, the edges of the object to be processed may be determined. For example, the edges of all objects in the keyframe may be first determined, and then the mask of the object to be processed may be obtained. Then, based on the mask of the object to be processed, the edges of the object to be processed may be obtained from the edges of all objects in the keyframe.

[0035] In step S14, edge lines are added to the edges of the object to be processed to process the video to obtain a target video. For example, the edges of the object to be processed can be stroked with color, straight, vintage, or process strokes. Process strokes can be performed by sequentially adding edge lines to multiple edges of the object to be processed.

[0036] In some embodiments, the edge of the object to be processed can be overlaid with texture and / or its contour attributes can be adjusted to obtain the edge line. The edge line can then be added to the edge of the object to be processed in a predetermined manner to obtain the target video. Texture can include characteristics such as color and grayscale. Contour attributes can include characteristics such as the thickness and shape of the edge of the object to be processed.

[0037] The preset appearance mode may include at least one of the following: (1) making the edge lines appear in sequence from top to bottom; (2) making the edge lines appear in sequence from left to right; (3) making the edge lines appear in an enlarged manner; (4) making the edge lines appear in a reduced manner; (5) every N frames, controlling the edge lines to be deformed at the position of the edge of the object to be processed to add edge lines, for example, the deformation can be performed at a preset speed curve.

[0038] For example, for the edge lines of retro shredded paper strokes, the outer contour edge of the object to be processed can be detected once every N frames, and the edge lines of the retro shredded paper strokes can be deformed to different degrees in frames other than the first frame of these N frames, such as expanding outward, and the expansion step can be a preset speed curve.

[0039] By adopting the above technical solution, since it is possible to detect the object to be processed from the video to be processed, determine the edge of the object to be processed, and add edge lines to the edge, the video to be processed can be processed to obtain the target video, thereby being able to simply and efficiently add colorful graffiti effects to the video shot by the user, thereby increasing the interest of the video.

[0040] Figures 2a and 2b illustrate the effects of a video processing method according to an embodiment of the present disclosure. As shown in Figure 2a, a cup is stroked. Figure 2b illustrates a process of stroke, where each edge is stroked sequentially. As can be seen, the edges are stroked sequentially from the left side of Figure 2b to the right side.

[0041] Figure 3 is a schematic block diagram of a video processing device according to an embodiment of the present disclosure. As shown in Figure 3, the video processing device includes: an acquisition module 31 for acquiring a video to be processed; a detection module 32 for detecting an object to be processed from the video to be processed; a determination module 33 for determining the edges of the object to be processed; and a processing module 34 for adding edge lines to the edges to process the video to obtain a target video.

[0042] By adopting the above technical solution, since it is possible to detect the object to be processed from the video to be processed, determine the edge of the object to be processed, and add edge lines to the edge, the video to be processed can be processed to obtain the target video, thereby being able to simply and efficiently add colorful graffiti effects to the video shot by the user, thereby increasing the interest of the video.

[0043] Optionally, the detection module 32 detects the object to be processed from the video to be processed, including:

[0044] Detecting music card points in the video to be processed;

[0045] Based on the music card points, key frames are obtained from the video to be processed;

[0046] The object to be processed is detected on the key frame.

[0047] Optionally, the detection module 32 detects the object to be processed from the video to be processed, including:

[0048] Obtaining key frames containing salient objects in the video to be processed;

[0049] The salient object is obtained from the key frame as the object to be processed.

[0050] Optionally, the determining module 33 determines the edge of the object to be processed, including:

[0051] Obtaining edges in the keyframe;

[0052] Obtaining a mask of the object to be processed;

[0053] Based on the edge in the key frame and the mask, the edge of the object to be processed is determined.

[0054] Optionally, the processing module 34 adds an edge line to the edge to process the video to be processed, including:

[0055] Superimposing texture on the edge and / or adjusting contour attributes to obtain the edge line;

[0056] Based on the position of the edge, the edge line is added in a preset manner to obtain the target video.

[0057] Optionally, the processing module 34 adds the edge line in a preset appearance manner, including:

[0058] Every N frames, the edge line is controlled to be deformed at the position of the edge to add the edge line.

[0059] Optionally, the processing module 34 controls the edge line to deform at the edge position, including:

[0060] The edge line is controlled to deform at a preset speed curve at the position of the edge.

[0061] The specific implementation of the operations performed by each module in the video processing device according to the embodiment of the present disclosure has been described in detail in the relevant method and will not be repeated here.

[0062] The present disclosure also provides a computer-readable medium having a computer program stored thereon, which performs the steps of any method described in the present disclosure when the program is executed by a processing device.

[0063] The present disclosure further provides an electronic device, comprising: a storage device storing a computer program; and a processing device configured to execute the computer program in the storage device to implement the steps of any one of the methods described in the present disclosure.

[0064] Reference is now made to FIG4 , which illustrates a schematic diagram of the structure of an electronic device 600 suitable for implementing embodiments of the present disclosure. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG4 is merely an example and should not limit the functionality or scope of use of embodiments of the present disclosure.

[0065] As shown in Figure 4, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0066] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG4 shows the electronic device 600 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0067] 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, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0068] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a 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 that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0069] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0070] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0071] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a video to be processed; detects an object to be processed from the video to be processed; determines the edge of the object to be processed; and adds an edge line to the edge to process the video to obtain a target video.

[0072] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0073] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0074] The modules described in the embodiments of the present disclosure may be implemented in software or hardware. In some cases, the name of a module does not necessarily limit the module itself. For example, an acquisition module may also be described as a "module for acquiring a video to be processed."

[0075] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0076] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0077] According to one or more embodiments of the present disclosure, Example 1 provides a video processing method, including: obtaining a video to be processed; detecting an object to be processed from the video to be processed; determining the edge of the object to be processed; and adding an edge line to the edge to process the video to obtain a target video.

[0078] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein detecting the object to be processed from the video to be processed includes:

[0079] Detecting music card points in the video to be processed;

[0080] Based on the music card points, key frames are obtained from the video to be processed;

[0081] The object to be processed is detected on the key frame.

[0082] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein detecting the object to be processed from the video to be processed includes:

[0083] Obtaining key frames containing salient objects in the video to be processed;

[0084] The salient object is obtained from the key frame as the object to be processed.

[0085] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 2 or 3, wherein determining the edge of the object to be processed includes:

[0086] Obtaining edges in the keyframe;

[0087] Obtaining a mask of the object to be processed;

[0088] Based on the edge in the key frame and the mask, the edge of the object to be processed is determined.

[0089] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 1, wherein the adding edge lines to the edges to process the video to be processed includes:

[0090] Superimposing texture on the edge and / or adjusting contour attributes to obtain the edge line;

[0091] Based on the position of the edge, the edge line is added in a preset appearance manner to obtain the target video.

[0092] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 5, wherein adding the edge line in a preset appearance manner includes:

[0093] Every N frames, the edge line is controlled to be deformed at the position of the edge to add the edge line.

[0094] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 6, wherein controlling the edge line to deform at the edge position includes:

[0095] The edge line is controlled to deform at a preset speed curve at the position of the edge.

[0096] According to one or more embodiments of the present disclosure, Example 8 provides a video processing device, including: an acquisition module for acquiring a video to be processed; a detection module for detecting an object to be processed from the video to be processed; a determination module for determining the edge of the object to be processed; and a processing module for adding an edge line to the edge to process the video to be processed and obtain a target video.

[0097] According to one or more embodiments of the present disclosure, Example 9 provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in any one of Examples 1-7 when executed by a processing device.

[0098] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any one of the methods described in Examples 1-7.

[0099] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0100] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0101] Although the subject matter has been described using language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims. Regarding the apparatus in the above-described embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method and will not be elaborated upon here.

Claims

1. A video processing method, comprising: Get the video to be processed; Detecting an object to be processed from the video to be processed; Determining the edge of the object to be processed; An edge line is added to the edge to process the video to be processed and obtain a target video.

2. The method according to claim 1, wherein: The detecting the object to be processed from the video to be processed comprises: Detecting music card points of the video to be processed; Based on the music card points, obtaining key frames from the video to be processed; The object to be processed is detected on the key frame.

3. The method according to claim 1 or 2, wherein: The detecting the object to be processed from the video to be processed comprises: Acquire key frames containing salient objects in the video to be processed; The salient object is obtained from the key frame as the object to be processed.

4. The method according to claim 2 or 3, wherein: Determining the edge of the object to be processed includes: Obtaining edges in the key frame; Acquire a mask of the object to be processed; Based on the edge in the key frame and the mask, the edge of the object to be processed is determined.

5. The method according to any one of claims 1 to 4, wherein: The adding edge lines to the edges to process the video to be processed includes: Superimposing texture on the edge and / or adjusting contour attributes to obtain the edge line; Based on the position of the edge, the edge line is added in a preset appearance manner to obtain the target video.

6. The method according to claim 5, wherein: The adding of the edge line in a preset appearance manner includes: Every N frames, the edge line is controlled to be deformed at the position of the edge to add the edge line.

7. The method according to claim 6, wherein: The step of controlling the edge line to deform at the edge position includes: The edge line is controlled to deform at a preset speed curve at the position of the edge.

8. A video processing device, comprising: An acquisition module, configured to acquire a video to be processed; A detection module, configured to detect an object to be processed from the video to be processed; A determination module, configured to determine the edge of the object to be processed; The processing module is configured to add an edge line to the edge to process the video to be processed to obtain a target video.

9. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processing device, the steps of the method according to any one of claims 1 to 7 are implemented.

10. An electronic device comprising: a storage device having a computer program stored thereon; A processing device is configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image processing method and device and hardware device

    CN110070896A

  • Image processing method and device, readable medium and electronic equipment

    CN111210485A

  • Video special effect processing method and device

    CN113055738A

  • Sticking point video generation method and device, electronic equipment and storage medium

    CN113099297A

  • Image generation method and device, terminal equipment and storage medium

    CN114758037A