Video processing method and device, medium and electronic equipment

By detecting the edges of objects to be processed in the video and adding edge lines, the problem of how to add colorful graffiti effects to the videos taken by users is solved, and the fun of the video is improved.

CN119520973APending Publication Date: 2025-02-25BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311085507.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The prior art is difficult to effectively process videos taken by users and add colorful graffiti effects to increase the fun of the video.

Method used

The target video processed by the video is achieved by obtaining the pending video, detecting the pending object, determining its edges, and adding edge lines to the edges.

Benefits of technology

It achieves simple and efficient additions to the videos taken by users to add rich graffiti effects to the videos taken by users, increasing the fun of the videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520973A_ABST
    Figure CN119520973A_ABST
Patent Text Reader

Abstract

The invention relates to a video processing method and device, a medium and electronic equipment, belongs to the technical field of computers, and aims to scrawl a video and enhance the interestingness of the video. The video processing method comprises the following steps: acquiring a to-be-processed video; detecting an object to be processed from the video to be processed; determining the edge of the to-be-processed object; and adding an edge line in the edge to process the to-be-processed video to obtain a target video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a video processing method, device, medium and electronic device. Background Art

[0002] 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. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form 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.

[0004] 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 be processed to obtain a target video.

[0005] 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.

[0006] 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.

[0007] 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.

[0008] 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 an edge line to the edge, the video to be processed is processed to obtain the target video, thereby being able to simply and efficiently add colorful graffiti effects to the videos shot by users, thereby increasing the interest of the videos.

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

[0010] The above and other features, advantages and aspects of the 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 the originals and elements are not necessarily drawn to scale. In the drawings:

[0011] Figure 1 is a flowchart of a video processing method according to an embodiment of the present disclosure.

[0012] Figure 2a and Figure 2b A schematic diagram showing the effect of the video processing method according to an embodiment of the present disclosure.

[0013] Figure 3 is a schematic block diagram of a video processing device according to an embodiment of the present disclosure.

[0014] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described in more detail below 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 being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0016] 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.

[0017] The term "including" and its variations used herein are open inclusions, 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"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0018] It should be noted that the concepts such as "first" and "second" mentioned in the present 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.

[0019] It should be noted that the modifications of "one" and "plurality" 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, it should be understood as "one or more".

[0020] 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.

[0021] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present 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.

[0022] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0023] As an optional but non-limiting implementation, in response to receiving an active request from the user, 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. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0025] 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) shall comply with the requirements of relevant laws, regulations and relevant provisions.

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

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

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

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

[0030] 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.

[0031] In addition, it should be noted that, in the present disclosure, the music card points of the video to be processed may be detected first, and then the video frame at the position of the music card point is determined as a key frame, and then the key frame is detected to see whether it 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, the significant object may also be detected in other video frames other than the music card points as the object to be processed.

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

[0033] In some embodiments, the edge in the key frame may be first obtained, and then the mask of the object to be processed may be obtained, and then the edge of the object to be processed may be determined based on the edge in the key frame and the mask. For example, the edges of all objects included in the key frame may be determined first, and then the mask of the object to be processed may be obtained, and then the edge of the object to be processed may be obtained from the edges of all objects included in the key frame based on the mask of the object to be processed.

[0034] In step S14, edge lines are added to the edge of the object to be processed to process the video to be processed and obtain the target video. For example, color strokes, straight line strokes, vintage shredded paper strokes, process strokes, etc. can be performed on the edge of the object to be processed. Process strokes can, for example, be adding edge lines to multiple edges of the object to be processed in sequence.

[0035] In some embodiments, the edge of the object to be processed may be superimposed with a texture and / or the contour attributes may be adjusted to obtain the edge line, and then the edge line may be added in a preset appearance manner at the position of the edge of the object to be processed to obtain the target video. The texture may include features such as color and grayscale. The contour attributes may include features such as the thickness and shape of the edge of the object to be processed.

[0036] 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.

[0037] 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 size can be a preset speed curve.

[0038] 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 an edge line to the edge, the video to be processed is processed to obtain the target video, thereby being able to simply and efficiently add colorful graffiti effects to the videos shot by users, thereby increasing the interest of the videos.

[0039] Figure 2a and Figure 2b FIG. 2 is a schematic diagram showing the effect of the video processing method according to an embodiment of the present disclosure. Figure 2a As shown, the cup is outlined. Figure 2b The figure shows a process stroke, that is, each edge is stroked in turn. It can be seen that Figure 2b The left side of the figure Figure 2b In the right picture, the edges are stroked one by one.

[0040] Figure 3 FIG. 1 is a schematic block diagram of a video processing device according to an embodiment of the present disclosure. Figure 3 As shown, the video processing device includes: an acquisition module 31, used to acquire a video to be processed; a detection module 32, used to detect an object to be processed from the video to be processed; a determination module 33, used to determine the edge of the object to be processed; and a processing module 34, used to add an edge line to the edge to process the video to be processed and obtain a target video.

[0041] 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 an edge line to the edge, the video to be processed is processed to obtain the target video, thereby being able to simply and efficiently add colorful graffiti effects to the videos shot by users, thereby increasing the interest of the videos.

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

[0043] Detecting music card points of the video to be processed;

[0044] Based on the music card points, obtaining key frames from the video to be processed;

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

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

[0047] Acquire key frames containing salient objects in the video to be processed;

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

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

[0050] Obtaining edges in the key frame;

[0051] Acquire a mask of the object to be processed;

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

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

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

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

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

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

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

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

[0060] 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.

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

[0062] The present disclosure also 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 method described in the present disclosure.

[0063] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is 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), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0064] like Figure 4 As shown, 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. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. 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.

[0065] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, 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 Figure 4 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0066] 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 contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a 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 executed.

[0067] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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 of the above.

[0068] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may 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 future developed network.

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

[0070] 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 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 be processed to obtain a target video.

[0071] 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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., via the Internet using an Internet service provider).

[0072] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

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

[0074] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0075] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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.

[0076] 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 be processed to obtain a target video.

[0077] 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:

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

[0079] Based on the music card points, obtaining key frames from the video to be processed;

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

[0081] 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:

[0082] Acquire key frames containing salient objects in the video to be processed;

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

[0084] 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:

[0085] Obtaining edges in the key frame;

[0086] Acquire a mask of the object to be processed;

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

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

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

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

[0091] 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:

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

[0093] 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 position of the edge includes:

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

[0095] 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.

[0096] 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 any of the methods described in Examples 1-7 when executed by a processing device.

[0097] 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.

[0098] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0099] 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 are 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.

[0100] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A video processing method, characterized in that: include: 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, characterized in that 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, characterized in that 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, characterized in that: 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 claim 1, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that: include: An acquisition module is used to acquire the video to be processed; A detection module, used to detect an object to be processed from the video to be processed; A determination module, used for determining the edge of the object to be processed; The processing module is used to add edge lines 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, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, 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

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

    CN114758037A