CN109698914A - A kind of lightning special efficacy rendering method, device, equipment and storage medium - Google Patents

A kind of lightning special efficacy rendering method, device, equipment and storage medium Download PDF

Info

Publication number
CN109698914A
CN109698914A CN201811474658.0A CN201811474658A CN109698914A CN 109698914 A CN109698914 A CN 109698914A CN 201811474658 A CN201811474658 A CN 201811474658A CN 109698914 A CN109698914 A CN 109698914A
Authority
CN
China
Prior art keywords
point
video frame
special efficacy
lightning
position point
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.)
Granted
Application number
CN201811474658.0A
Other languages
Chinese (zh)
Other versions
CN109698914B (en
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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201811474658.0A priority Critical patent/CN109698914B/en
Publication of CN109698914A publication Critical patent/CN109698914A/en
Application granted granted Critical
Publication of CN109698914B publication Critical patent/CN109698914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

It includes: that after detecting lightning special efficacy triggering command, video frame to be processed is obtained from target video frame that the application, which provides a kind of lightning special efficacy rendering method, device, equipment and computer readable storage medium, method,;At least three location points are obtained in the coordinate range of the video frame, wherein the location point is not on the same line;Based on the position point-rendering lightning special efficacy image;Based on the lightning special efficacy image and the video frame to be processed, the video frame with lightning special efficacy is generated.The application solves the problems, such as that same class special video effect can not be applied to multiple video systems, enables to be applied in various video editing system or video capture system, has stronger compatibility and wide applicability.

Description

A kind of lightning special efficacy rendering method, device, equipment and storage medium
Technical field
This application involves field of image processing more particularly to a kind of lightning special efficacy rendering method, device, equipment and computers Readable storage medium storing program for executing.
Background technique
With the development of video technique now, video capture (such as small video production, net cast) is for a user It is a kind of operation being easily achieved, and simple video capture has been unable to satisfy the demand of people, it is therefore necessary in video Some improvement are carried out in shooting, have been achieved with add certain special efficacy in video capture or video production process to increase now The ornamental value of video.
But inventor has found: video capture system or video editing system are more and more now, and usually technology is opened Hair personnel just for the video frame in one of video capture system or video editing system format or content into The development and application of row special video effect, so that special video effect now can not be compatible with various video system, if user wants in a view It, can only be for video used in this video system using the special video effect on another video capture system on frequency camera system The format or content of frame carry out remaking and applying for such special video effect, this is not suitable for ordinary user not only, but also Same special video effect needs to be directed to multiple and different systems and carries out repeatedly exploitation and production, take a substantial amount of time cost and Energy cost also results in the waste and redundancy of special efficacy resource.
Summary of the invention
In view of this, the application provides a kind of lightning special efficacy rendering method, device, equipment and computer-readable storage medium Matter solves the problems, such as that same class special video effect can not be applied to multiple video systems.
Firstly, the first aspect of the application provides a kind of lightning special efficacy rendering method, the method is specifically included:
After detecting lightning special efficacy triggering command, video frame to be processed is obtained from target video frame;
At least three location points are obtained in the coordinate range of the video frame, wherein the location point is not the same as always On line;
Based on the position point-rendering lightning special efficacy image;
Based on the lightning special efficacy image and the video frame to be processed, the video frame with lightning special efficacy is generated.
It is optionally, described that at least three location points are obtained in the coordinate range of the video frame, comprising:
According to twice touch location of the user on the corresponding display window of the video frame to be processed, first is obtained It sets a little and second position point;Alternatively, target object of the identification in the video frame to be processed, and according to target object Default characteristic portion, obtains first position point and second position point;
According to the first position point and second position point, at least one the third place point is obtained.
Optionally, described according to the first position point and second position point, at least one the third place point is obtained, is wrapped It includes:
Judge whether first position point and the second position point of currently pending video frame are to be processed with upper one respectively Video frame first position point and second position point it is identical;
If it is not, according to the first position of currently pending video frame point and second position point, generate at least one Three location points;
If so, obtained in the range of except the third place point position of upper one video frame to be processed currently to The third place point of the video frame of processing.
Optionally, the first position point and second position point according to currently pending video frame generates at least One the third place point, comprising:
Divide the first position point of currently pending video frame and the line section of second position point, to obtain at least one Cut-point;
Offset distance is obtained in default bias distance range;
Based on the mobile cut-point of the offset distance, at least one the third place point is obtained.
It is optionally, described based on the mobile cut-point of the offset distance, comprising:
In the vertical direction of the cut-point, based on the mobile cut-point of the offset distance.
Optionally, it is described except the third place point position of upper one video frame to be processed in the range of obtain work as The third place point of preceding video frame to be processed, comprising:
Transformed distances are obtained within the scope of default transformed distances;
On preset direction, based on the third place point of the mobile upper video frame to be processed of the transformed distances, to obtain Take the third place point of currently pending video frame.
Optionally, described to include: based on the position point-rendering lightning special efficacy image
Other two location points are obtained in addition to the location point of the last one connection according to the preset location point order of connection Two away from itself pre-determined distance vertex on preset direction;
Based on the preset location point order of connection, corresponding two vertex of the location point and the next position point are connected It connects, to generate at least two gores;
The gore is rendered, lightning special efficacy image is generated.
Optionally, described based on the lightning special efficacy image and the video frame to be processed, generate band lightning special efficacy Video frame, comprising:
The lightning special efficacy image is superimposed upon in the video frame to be processed, to obtain the video with lightning special efficacy Frame.
According to the second aspect of the embodiment of the present application, a kind of lightning special efficacy rendering device is provided, described device includes:
First acquisition module obtains to be processed after detecting lightning special efficacy triggering command from target video frame Video frame;
Second obtains module, for obtaining at least three location points in the coordinate range of the video frame, wherein described Location point is not on the same line;
Lightning special efficacy image drafting module, for being based on the position point-rendering lightning special efficacy image;
Special efficacy video frame generation module, for based on the lightning special efficacy image and the video frame to be processed, life At the video frame with lightning special efficacy.
According to the third aspect of the embodiment of the present application, a kind of rendering apparatus is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
After detecting lightning special efficacy triggering command, video frame to be processed is obtained from target video frame;
At least three location points are obtained in the coordinate range of the video frame, wherein the location point is not the same as always On line;
Based on the position point-rendering lightning special efficacy image;
Based on the lightning special efficacy image and the video frame to be processed, the video frame with lightning special efficacy is generated.
According to the fourth aspect of the embodiment of the present application, a kind of computer readable storage medium is additionally provided, is stored thereon with Computer instruction, when which is executed by processor in realization first aspect the step of any the method.
The technical solution that embodiments herein provides can include the following benefits:
The application obtains video frame to be processed, so after detecting lightning special efficacy triggering command from target video frame Obtain at least three location points in the coordinate range of the video frame afterwards, the location point not on the same line, then is based on The position point-rendering lightning special efficacy image, it is raw finally based on the lightning special efficacy image and the video frame to be processed At the video frame with lightning special efficacy, format or content of the process independently of original video frame of lightning special efficacy image are generated, for Perhaps content does not have any change to enable to be applied to various video editing system or video capture to the format of original video frame In system, there is stronger compatibility and wide applicability, avoid same class special efficacy possible towards different camera systems The problem of needing overlapping development is conducive to the comprehensive utilization of special efficacy resource to save development cost, and is the view of shooting Frequency addition lightning effect can increase the ornamental value and interest of video, promote the viewing experience of user.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
Fig. 1 is a kind of the application embodiment process of lightning special efficacy rendering method shown according to an exemplary embodiment Figure;
Fig. 2 a is the application schematic diagram shown according to an exemplary embodiment for obtaining cut-point;
Fig. 2 b is the application another schematic diagram shown according to an exemplary embodiment for obtaining cut-point;
Fig. 3 is the application schematic diagram shown according to an exemplary embodiment for obtaining the third place point;
Fig. 4 is the application schematic diagram shown according to an exemplary embodiment for obtaining gore;
Fig. 5 a is the schematic diagram of the application video frame shown according to an exemplary embodiment with lightning special efficacy;
Fig. 5 b is another schematic diagram of the application video frame shown according to an exemplary embodiment with lightning special efficacy;
Fig. 6 is a kind of the application signal of the embodiment of lightning special efficacy rendering device shown according to an exemplary embodiment Figure;
Fig. 7 provides a kind of schematic diagram of rendering apparatus according to an exemplary embodiment for the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Video capture system or video editing system are more and more now, and usually technological development personnel are just in it In a video capture system or the format or content of the video frame in video editing system carry out the exploitation of special video effect And application, so that special video effect now can not be applied to various video system, and same special video effect need to be directed to video System carries out duplicate exploitation and production, also results in the waste of special efficacy resource, therefore, this application provides a kind of lightning special efficacys Rendering method, the flow chart of this method is as shown in Figure 1, specifically include:
S101 obtains video frame to be processed after detecting lightning special efficacy triggering command from target video frame.
S102 obtains at least three location points in the coordinate range of the video frame, wherein the location point is not same On one straight line.
S103 is based on the position point-rendering lightning special efficacy image.
S104 generates the video with lightning special efficacy based on the lightning special efficacy image and the video frame to be processed Frame.
Method of Lightning Rendering provided herein can integrate in rendering apparatus, be executed by the rendering apparatus, The rendering apparatus can be mobile phone, computer, Intelligent flat, PDA (Personal Digital Assistant, individual digital Assistant) etc. have the calculating equipment of video capture function or video editing function.
In step s101, the rendering apparatus is after detecting lightning special efficacy triggering command, from the target video Video frame to be processed is obtained in frame, wherein the lightning special efficacy triggering command can be according to user at video editing interface On the click action of lightning special efficacy key is generated, the target video frame is the video frame of the application lightning special efficacy, example Such as in small video editor's scene, user adds lightning in some play time selection of the small video on small video Special efficacy, the rendering apparatus obtain the target of the application lightning special efficacy after detecting the lightning special efficacy click action of user Video frame;Or in a net cast scene, main broadcaster clicks lightning special efficacy key, the rendering apparatus during live streaming After detecting the lightning special efficacy triggering command of main broadcaster, the target video frame that will apply the lightning special efficacy is obtained in real time.
In step s 102, the rendering apparatus is in the indication range of the video frame namely the coordinate of the video frame At least three location points are obtained in range, due to the display format of lightning, so that the location point obtained is not in same straight line On, wherein the acquisition for two of them location point, that is, correspond to lightning special efficacy beginning and end, including but not limited to Lower three kinds of implementations:
In the first implementation, the rendering apparatus detection user is in the corresponding display of the video frame to be processed Touch action twice on window, then according to this corresponding touch location of touch action twice, obtain first position point and Second position point, such as first position point can be determined according to the corresponding touch location of first time touch action, according to second The corresponding touch location of touch action determines second position point;Or it can also be according to the corresponding touch position of first time touch action Set determining second position point, first position point determined according to the corresponding touch location of second of touch action, the present invention to this not Do any restrictions.User is capable of the point of addition of oneself selection lightning special efficacy, to meet the individual demand of user.
In the second implementation, the rendering apparatus identifies the target object in the video frame to be processed, Then first position point and second position point are obtained according to the default characteristic portion of target object, such as in net cast scene In, target object in the video frame to be processed can be main broadcaster itself, the default characteristic portion can be head, shoulder, elbow, Hand, waist, leg or foot etc., the rendering apparatus identify main broadcaster, and further identify the default characteristic portion of main broadcaster, example Such as both hands, first position point and second position point are then determined according to the position of the both hands recognized.This implementation can be certainly Dynamic identification target object and the position that lightning special efficacy is determined according to target object, realization target object interact knot with lightning special efficacy It closes, increases the ornamental value of video.
In the third implementation, the rendering apparatus can be previously defined in the aobvious of the video frame according to program Interior acquisition first position point and second position point are enclosed in demonstration, such as the indication range of video frame can be divided into two portions in left and right Point, it is previously set and obtains first position point at random in the indication range of the left-hand component of the video frame, in the video frame Right-hand component indication range in obtain second position point at random, specific facilities are set according to actual use situation Fixed, the present invention does not do any restrictions to this.This implementation by pre-define first position point and second position point position, Realize the quick display of lightning special efficacy.
After obtaining the first position point and second position point, the rendering apparatus is according to described first It sets a little and second position point, obtains at least one the third place point.
In one embodiment, due to the first position point of different video frame and second position point, the i.e. starting point of lightning special efficacy It may be identical with terminal, it is also possible to it is different, such as in small video editor's scene, user determines institute by click action twice The first position point and second position point of video frame to be handled, then the first position point and second of all video frames at this time Location point is identical, or in live scene, with the variation that main broadcaster acts, the default feature that the rendering apparatus recognizes The position at position is also changed, and the first position point between adjacent video frames and second position point be not identical at this time, because After obtaining the first position point and second position point, the rendering apparatus judges currently pending video for this The first position point and second position point of frame whether respectively with the first position point of upper one video frame to be processed and second Location point is identical, if it is not, generating at least one according to the first position of currently pending video frame point and second position point The third place point is worked as if so, obtaining in the range of except the third place point position of upper one video frame to be processed The third place point of preceding video frame to be processed.Pass through the first position point of currently pending video frame and upper one video to be processed And the position judgement of second position point, the position for avoiding the occurrence of the location point of the acquisition between adjacent video frames is identical, guarantees The verisimilitude of the lightning special efficacy ultimately produced.
In one embodiment, when the first position point and upper one video frame to be processed for judging currently pending video frame The not identical or currently pending video frame of first position point second position point and upper one video frame to be processed the The first position point and second position point of the not identical or currently pending video frame of two location points with it is upper one to be processed When the first position point and second position point of video frame are all different, the rendering apparatus divides currently pending video frame First position point and second position point line section, to obtain at least one cut-point, such as please refer to Fig. 2 a, can be by institute The line section for stating first position point and second position point is divided into N equal part, with acquisition (N-1) cut-point, N >=2;It can also be according to The line section of the point of first position described in a certain regular partition and second position point, such as b referring to figure 2., can take described first The a quarter of the line section of location point and second position point obtains the cut-point at a quarter line segment, then four/ / 5th of the line section of the first position point and second position point are taken after one cut-point, obtain corresponding five/ Cut-point at one line segment, then the line of the first position point and second position point is taken after 1/5th cut-point / 6th of section obtain the cut-point at corresponding 1/6th line segment, and so on, until having obtained all segmentations Point;Then the rendering apparatus obtains offset distance in default bias distance range, such as default bias distance range is [0cm, 5cm], the offset distance obtained at random are 2cm;The last rendering apparatus is based on mobile described point of the offset distance Cutpoint obtains at least one the third place point, can be mobile described inclined by the cut-point on the pre-set direction of user Distance is moved, such as referring to Fig. 3, can be in the vertical direction of the cut-point, based on described point of offset distance movement Cutpoint, acquired position is the position of the third place point after mobile, or can also be in the horizontal direction of the cut-point On, by the mobile offset distance of the cut-point, obtain the third place point.The random life of the present embodiment realization the third place point At, guarantee the diversity of lightning special efficacy pattern ultimately generated, meet the individual demand of user, improve user use body It tests.
In another embodiment, when the first position point and upper one video to be processed for judging currently pending video frame The second position point of the not identical or currently pending video frame of the first position point of frame and upper one video frame to be processed The first position point and second position point of the not identical or currently pending video frame of second position point and upper one to be processed Video frame first position point and second position point when being all different, the rendering apparatus according to the first position point and Second position point be a rectangle diagonal line construct rectangle, in the coordinate range of the rectangle, and the first position point with It is random to obtain the third place point and outside the cornerwise range of rectangle of the second position point building, such as in first position point Coordinate be (1,1), the coordinate of second position point is to choose in the coordinate range of the rectangle in the rectangle of (3,3) building Coordinate (1.5,2) is used as the third place point, or chooses coordinate (1,2) as the third place point etc..The present embodiment realizes third The random generation of location point guarantees the diversity of lightning special efficacy pattern ultimately generated, meets the individual demand of user, improves The usage experience of user.
In one embodiment, when the first position point and second position point for judging currently pending video frame respectively with When the first position point and identical second position point of upper one video frame to be processed, the rendering apparatus is in default transformed distances Transformed distances are obtained in range, such as default bias distance range is [0cm, 2cm], the offset distance obtained at random is 1.1cm; Then on preset direction, the third place of the rendering apparatus based on the mobile upper video frame to be processed of the transformed distances Point, to obtain the third place point of currently pending video frame, such as in inclined 45 ° of direction by upper one video frame to be processed The mobile 1.1cm of the third place point, obtain the third place point of currently pending video frame, it should be noted that the present embodiment Aforesaid operations do not change the position of the fixed the third place point in upper one video frame to be processed, but based on upper one to The position of fixed the third place point obtains the third place point of currently pending video frame in the video frame of processing.This reality Example is applied while guaranteeing the diversity of location point of adjacent video frames, by having determined that in a mobile upper video frame to be processed The position of the third place point obtain the process of the third place point of currently pending video frame, simplify operating procedure, keep away Exempt from the duplicate process for obtaining cut-point, is conducive to improve program operational efficiency.
In step 103, the rendering apparatus is based on the location point, and the position according to the location point is sequentially connected, To draw lightning special efficacy image, specifically, the rendering apparatus is according to the preset location point order of connection, except the last one connection Location point outside, obtain two away from itself pre-determined distance vertex of the other positions point on preset direction, such as from first It sets and a little starts, apart from nearest the third place point, the third place point reconnects distance recently for the first position point connection The next position point, the next position point may be the third place point, or is second position point, that is, be sequentially connected distance Nearest location point, to the last a third place point connects the second position point, is connected based on such location point suitable Sequence obtains two away from itself pre-determined distance vertex of first position point and the third place point on preset direction, such as can To be to obtain the location point in the perpendicular direction apart from two vertical line vertex of itself 1.5cm, can also make described in acquisition Location point is on its 45 ° of directions apart from two vertex etc. of itself 1cm;Then the rendering apparatus is based on the preset position The order of connection is set, corresponding two vertex of the location point are connect with the next position point, to generate at least two triangles Face, such as referring to Fig. 4, based on the location point order of connection mentioned in above-mentioned example, corresponding two vertex of first position point Connection apart from nearest the third place point, then the third place point corresponding two vertex connection distance it is nearest next the Three location points, and so on, to the last corresponding two vertex of a third place point connect second position point, to generate At least two gores of connection;The last rendering apparatus renders the gore, to generate lightning special efficacy Image.Independently generating for lightning special efficacy image is realized, independent of the original format and content of the video frame to be processed, The lightning special efficacy image generated is enabled to be suitable for multiple video systems.
In one embodiment, the rendering apparatus receives user and the color of lightning special efficacy is arranged, the then rendering Equipment is based on color setting and renders to the gore, to generate lightning special efficacy image, increases the more of lightning special efficacy Sample improves the usage experience of user.
At step 104, Fig. 5 a and 5b are please referred to, the rendering apparatus is according to the lightning special efficacy image and described Video frame to be processed generates the video frame with lightning special efficacy, for example, it may be the rendering apparatus is by the lightning special effect graph As being superimposed upon in the video frame to be processed, to obtain the video frame with lightning special efficacy, " superposition " mode acts on figure As causing image contrast to increase or reduce, being to determine mixed effect by primary colours, by the light and shade of primary colours between pixel and surrounding pixel Determine the process of secondary colour;It is also possible to the rendering apparatus for the lightning special efficacy image and the video to be processed Frame is merged, and to generate the video frame with lightning special efficacy, image co-registration (Image Fusion), which refers to, is adopted multi-source channel The image data collected extracts the advantageous information in each self-channel by image procossing and computer technology etc. to greatest extent, Finally integrate the image at high quality.
The application obtains video frame to be processed, so after detecting lightning special efficacy triggering command from target video frame Obtain at least three location points in the coordinate range of the video frame afterwards, the location point not on the same line, then is based on The position point-rendering lightning special efficacy image, it is raw finally based on the lightning special efficacy image and the video frame to be processed At the video frame with lightning special efficacy, format or content of the process independently of original video frame of lightning special efficacy image are generated, for Perhaps content does not have any change to enable to be applied to various video editing system or video capture to the format of original video frame In system, there is stronger compatibility and wide applicability, avoid same class special efficacy possible towards different camera systems The problem of needing overlapping development is conducive to the comprehensive utilization of special efficacy resource to save development cost, and is the view of shooting Frequency addition lightning effect can increase the ornamental value and interest of video, promote the viewing experience of user.
In another embodiment, as shown in fig. 6, the application also provides a kind of lightning special efficacy rendering device, device includes:
First acquisition module 21 obtains to be processed after detecting lightning special efficacy triggering command from target video frame Video frame.
Second obtains module 22, for obtaining at least three location points in the coordinate range of the video frame, wherein institute State location point not on the same line.
Lightning special efficacy image drafting module 23, for being based on the position point-rendering lightning special efficacy image.
Special efficacy video frame generation module 24, for based on the lightning special efficacy image and the video frame to be processed, Generate the video frame with lightning special efficacy.
Optionally, described second module 22 is obtained, comprising:
First and second location point acquisition submodule, for according to user in the corresponding display of the video frame to be processed Touch location twice on window obtains first position point and second position point;Alternatively, identification is in the video to be processed Target object in frame, and according to the default characteristic portion of target object, obtain first position point and second position point.
The third place point acquisition submodule, for obtaining at least one according to the first position point and second position point A the third place point.
Optionally, the third place point acquisition submodule, comprising:
Whether judging unit, first position point and second position point for judging currently pending video frame are distinguished It is identical as the first position point and second position point of upper one video frame to be processed.
The third place point generation unit, for if it is not, according to the first position of currently pending video frame point and Two location points generate at least one the third place point.
The third place point acquiring unit, for if so, the third place point institute in upper one video frame to be processed is in place The third place point of currently pending video frame is obtained in the range of except setting.
Optionally, the third place point generation unit includes:
Cut-point obtains subelement, for dividing the first position point and second position point of currently pending video frame Line section, to obtain at least one cut-point.
Offset distance obtains subelement, for obtaining offset distance in default bias distance range.
The third place point obtains subelement, for obtaining at least one based on the mobile cut-point of the offset distance The third place point.
Optionally, the third place point acquisition subelement includes:
In the vertical direction of the cut-point, based on the mobile cut-point of the offset distance.
Optionally, the third place point acquiring unit includes:
Transformed distances obtain subelement, for obtaining transformed distances within the scope of default transformed distances.
The third place point obtains subelement, for it is to be processed to be based on the transformed distances mobile upper one in preset direction Video frame the third place point, to obtain the third place point of currently pending video frame.
Optionally, the lightning special efficacy image drafting module 23 includes:
Vertex acquisition submodule is used for according to the preset location point order of connection, in addition to the location point of the last one connection, Obtain two away from itself pre-determined distance vertex of other two location points on preset direction.
Gore generates submodule, for being based on the preset location point order of connection, the location point is corresponding Two vertex connect with the next position point, to generate at least two gores.
Lightning special efficacy image generates submodule, for rendering to the gore, generates lightning special efficacy image.
Optionally, the special efficacy video frame generation module 24 includes:
The lightning special efficacy image is superimposed upon in the video frame to be processed, to obtain the video with lightning special efficacy Frame.
Correspondingly, the present invention also provides a kind of rendering apparatus 30 as shown in Figure 7, it include processor 31;It can for storing The memory 32 executed instruction, the memory 32 include computer program 33;Wherein, processor 31 is configured as:
After detecting lightning special efficacy triggering command, video frame to be processed is obtained from target video frame.
At least three location points are obtained in the coordinate range of the video frame, wherein the location point is not the same as always On line.
Based on the position point-rendering lightning special efficacy image.
Based on the lightning special efficacy image and the video frame to be processed, the video frame with lightning special efficacy is generated.
The processor 31 executes the computer program 33 for including in the memory 32, during the processor 31 can be Central Processing Unit (Central Processing Unit, CPU), can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor is also possible to any conventional processor etc..
The memory 32 stores the computer program of the lightning effect method, and the memory 32 may include at least A type of storage medium, storage medium include flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX storage Device etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And And equipment can cooperate with the network storage device for the store function for executing memory by network connection.Memory 32 can be with It is the internal storage unit of equipment 30, such as the hard disk or memory of equipment 30.It deposits the outside that memory 32 is also possible to equipment 30 The plug-in type hard disk being equipped in storage equipment, such as equipment 30, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 32 can also both include equipment 30 internal storage unit also includes External memory equipment.Memory 32 is for storing needed for computer program 33 and equipment Other programs and data.Memory 32 can be also used for temporarily storing the data that has exported or will export.
The computer of such as computer software, hardware or any combination thereof can be used in various embodiments described herein Readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented.For software implementation, the embodiment of such as process or function can with allow to hold The individual software modules of at least one functions or operations of row is implemented.Software code can be by with any programming language appropriate The software application (or program) write is implemented, and software code can store in memory and be executed by controller.
Rendering apparatus 30 can be desktop PC, notebook, palm PC and mobile phone etc. and calculate equipment.Equipment can wrap It includes, but is not limited only to, processor 31, memory 32.It will be understood by those skilled in the art that Fig. 7 is only rendering apparatus 30 Example does not constitute the restriction to rendering apparatus 30, may include than illustrating more or fewer components, or the certain portions of combination Part or different components, such as equipment can also include input-output equipment, network access equipment, bus etc..
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above equipment Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein being used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying wound In the case that the property made is worked, it can understand and implement.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory of instruction, above-metioned instruction can be executed by the processor of device to complete the above method.For example, non-transitory meter Calculation machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage and set It is standby etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is executed by the processor of terminal When, it enables the terminal to execute the above method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (11)

1. a kind of lightning special efficacy rendering method, which is characterized in that the described method includes:
After detecting lightning special efficacy triggering command, video frame to be processed is obtained from target video frame;
At least three location points are obtained in the coordinate range of the video frame, wherein the location point is not on the same line;
Based on the position point-rendering lightning special efficacy image;
Based on the lightning special efficacy image and the video frame to be processed, the video frame with lightning special efficacy is generated.
2. lightning special efficacy rendering method according to claim 1, which is characterized in that the coordinate model in the video frame Enclose at least three location points of interior acquisition, comprising:
According to twice touch location of the user on the corresponding display window of the video frame to be processed, first position point is obtained And second position point;Alternatively, target object of the identification in the video frame to be processed, and according to the default of target object Characteristic portion obtains first position point and second position point;
According to the first position point and second position point, at least one the third place point is obtained.
3. lightning special efficacy rendering method according to claim 2, which is characterized in that it is described according to the first position point with And second position point, obtain at least one the third place point, comprising:
Judge currently pending video frame first position point and second position point whether respectively with upper one view to be processed The first position point and second position point of frequency frame are identical;
If it is not, generating at least one third position according to the first position of currently pending video frame point and second position point It sets a little;
If so, being obtained in the range of except the third place point position of upper one video frame to be processed currently pending Video frame the third place point.
4. lightning special efficacy rendering method according to claim 3, which is characterized in that described according to currently pending video The first position point and second position point of frame, generate at least one the third place point, comprising:
Divide the first position point of currently pending video frame and the line section of second position point, to obtain at least one segmentation Point;
Offset distance is obtained in default bias distance range;
Based on the mobile cut-point of the offset distance, at least one the third place point is obtained.
5. lightning special efficacy rendering method according to claim 4, which is characterized in that described mobile based on the offset distance The cut-point, comprising:
In the vertical direction of the cut-point, based on the mobile cut-point of the offset distance.
6. lightning special efficacy rendering method according to claim 3, which is characterized in that described in upper one video frame to be processed The third place point position except in the range of obtain the third place point of currently pending video frame, comprising:
Transformed distances are obtained within the scope of default transformed distances;
On preset direction, based on the third place point of the mobile upper video frame to be processed of the transformed distances, worked as with obtaining The third place point of preceding video frame to be processed.
7. lightning special efficacy rendering method according to claim 1, which is characterized in that described to be dodged based on the position point-rendering Electric special efficacy image includes:
Other two location points are obtained pre- in addition to the location point of the last one connection according to the preset location point order of connection Two away from itself pre-determined distance vertex on set direction;
Based on the preset location point order of connection, corresponding two vertex of the location point are connect with the next position point, To generate at least two gores;
The gore is rendered, lightning special efficacy image is generated.
8. lightning special efficacy rendering method according to claim 1, which is characterized in that described to be based on the lightning special efficacy image And the video frame to be processed, generate the video frame with lightning special efficacy, comprising:
The lightning special efficacy image is superimposed upon in the video frame to be processed, to obtain the video frame with lightning special efficacy.
9. a kind of lightning special efficacy rendering device characterized by comprising
First acquisition module obtains video to be processed after detecting lightning special efficacy triggering command from target video frame Frame;
Second obtains module, for obtaining at least three location points in the coordinate range of the video frame, wherein the position It puts not on the same line;
Lightning special efficacy image drafting module, for being based on the position point-rendering lightning special efficacy image;
Special efficacy video frame generation module, for generating band based on the lightning special efficacy image and the video frame to be processed The video frame of lightning special efficacy.
10. a kind of rendering apparatus characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
After detecting lightning special efficacy triggering command, video frame to be processed is obtained from target video frame;
At least three location points are obtained in the coordinate range of the video frame, wherein the location point is not on the same line;
Based on the position point-rendering lightning special efficacy image;
Based on the lightning special efficacy image and the video frame to be processed, the video frame with lightning special efficacy is generated.
11. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of claim 1 to 8 any the method is realized when execution.
CN201811474658.0A 2018-12-04 2018-12-04 Lightning special effect rendering method, device, equipment and storage medium Active CN109698914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811474658.0A CN109698914B (en) 2018-12-04 2018-12-04 Lightning special effect rendering method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811474658.0A CN109698914B (en) 2018-12-04 2018-12-04 Lightning special effect rendering method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109698914A true CN109698914A (en) 2019-04-30
CN109698914B CN109698914B (en) 2022-03-01

Family

ID=66230330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811474658.0A Active CN109698914B (en) 2018-12-04 2018-12-04 Lightning special effect rendering method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109698914B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706149A (en) * 2019-10-21 2020-01-17 网易(杭州)网络有限公司 Lightning particle rendering method and device
CN111127599A (en) * 2019-12-13 2020-05-08 北京像素软件科技股份有限公司 Game special effect drawing method and device
CN111784804A (en) * 2020-06-01 2020-10-16 北京像素软件科技股份有限公司 Lightning simulation method and device in virtual scene, terminal and readable storage medium
CN112738624A (en) * 2020-12-23 2021-04-30 北京达佳互联信息技术有限公司 Method and device for special effect rendering of video
CN113961156A (en) * 2020-07-20 2022-01-21 北京字节跳动网络技术有限公司 Multi-screen display method, device and system, electronic equipment and computer medium
WO2022166872A1 (en) * 2021-02-04 2022-08-11 北京字跳网络技术有限公司 Special-effect display method and apparatus, and device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090051773A1 (en) * 2007-08-20 2009-02-26 Yu-Wei Lin Video capture device with attention attractive feature
CN106385591A (en) * 2016-10-17 2017-02-08 腾讯科技(上海)有限公司 Video processing method and video processing device
CN107613161A (en) * 2017-10-12 2018-01-19 北京奇虎科技有限公司 Video data handling procedure and device, computing device based on virtual world
CN108882025A (en) * 2018-08-07 2018-11-23 北京字节跳动网络技术有限公司 Video frame treating method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090051773A1 (en) * 2007-08-20 2009-02-26 Yu-Wei Lin Video capture device with attention attractive feature
CN106385591A (en) * 2016-10-17 2017-02-08 腾讯科技(上海)有限公司 Video processing method and video processing device
CN107613161A (en) * 2017-10-12 2018-01-19 北京奇虎科技有限公司 Video data handling procedure and device, computing device based on virtual world
CN108882025A (en) * 2018-08-07 2018-11-23 北京字节跳动网络技术有限公司 Video frame treating method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
寇勇等: "《基于多重细分的闪电仿真方法》", 《计算机工程与设计》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706149A (en) * 2019-10-21 2020-01-17 网易(杭州)网络有限公司 Lightning particle rendering method and device
CN111127599A (en) * 2019-12-13 2020-05-08 北京像素软件科技股份有限公司 Game special effect drawing method and device
CN111127599B (en) * 2019-12-13 2024-02-23 北京像素软件科技股份有限公司 Drawing method and device for game special effects
CN111784804A (en) * 2020-06-01 2020-10-16 北京像素软件科技股份有限公司 Lightning simulation method and device in virtual scene, terminal and readable storage medium
CN113961156A (en) * 2020-07-20 2022-01-21 北京字节跳动网络技术有限公司 Multi-screen display method, device and system, electronic equipment and computer medium
CN112738624A (en) * 2020-12-23 2021-04-30 北京达佳互联信息技术有限公司 Method and device for special effect rendering of video
CN112738624B (en) * 2020-12-23 2022-10-25 北京达佳互联信息技术有限公司 Method and device for special effect rendering of video
WO2022166872A1 (en) * 2021-02-04 2022-08-11 北京字跳网络技术有限公司 Special-effect display method and apparatus, and device and medium
US20240022681A1 (en) * 2021-02-04 2024-01-18 Beijing Zitiao Network Technology Co., Ltd. Special-effect display method and apparatus, and device and medium

Also Published As

Publication number Publication date
CN109698914B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN109698914A (en) A kind of lightning special efficacy rendering method, device, equipment and storage medium
CN109688346A (en) A kind of hangover special efficacy rendering method, device, equipment and storage medium
CN108010112B (en) Animation processing method, device and storage medium
US11017580B2 (en) Face image processing based on key point detection
US20210312695A1 (en) Hair rendering method, device, electronic apparatus, and storage medium
US9600869B2 (en) Image editing method and system
US20190116323A1 (en) Method and system for providing camera effect
CN108984395A (en) A kind of application program launching time-consuming test method, device and storage medium
JP7212067B2 (en) Image synthesizing method and apparatus
US20190287306A1 (en) Multi-endpoint mixed-reality meetings
WO2021213067A1 (en) Object display method and apparatus, device and storage medium
CN106575160A (en) Method and apparatus for providing interface recognizing movement in accordance with user's view
CN107426272A (en) A kind of small routine method for pushing, device and computer-readable storage medium
WO2020019664A1 (en) Deformed image generation method and apparatus based on human face
EP3917131A1 (en) Image deformation control method and device and hardware device
CN109102560A (en) Threedimensional model rendering method and device
JP2018536952A (en) Method and apparatus for controlling a smart device and computer storage medium
CN109672909B (en) Data processing method, device, electronic equipment and readable storage medium
CN109656363A (en) It is a kind of for be arranged enhancing interaction content method and apparatus
CN108829595B (en) Test method, test device, storage medium and electronic equipment
CN114359471A (en) Face image processing method, device and system
JP7372945B2 (en) Scenario control method, device and electronic device
CN111462269B (en) Image processing method and device, storage medium and electronic equipment
KR102176805B1 (en) System and method for providing virtual reality contents indicated view direction
JP2019512141A (en) Face model editing method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210112

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511442 24 floors, B-1 Building, Wanda Commercial Square North District, Wanbo Business District, 79 Wanbo Second Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190430

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000054

Denomination of invention: Lightning special effect rendering method, device, equipment and storage medium

License type: Common License

Record date: 20210208

GR01 Patent grant
GR01 Patent grant