WO2023071920A1 - 文字特效展示方法、装置、电子设备及存储介质 - Google Patents
文字特效展示方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2023071920A1 WO2023071920A1 PCT/CN2022/126579 CN2022126579W WO2023071920A1 WO 2023071920 A1 WO2023071920 A1 WO 2023071920A1 CN 2022126579 W CN2022126579 W CN 2022126579W WO 2023071920 A1 WO2023071920 A1 WO 2023071920A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- text
- key
- displayed
- video image
- points
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/475—End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Definitions
- Embodiments of the present disclosure relate to the field of computer technology, for example, to a text special effect display method, device, electronic equipment, and storage medium.
- the user can enter text in the interactive information input field of the viewing interface to interact with the host, or conduct comments and analysis on the watched video.
- the interactive text entered by the user will appear on the video viewing interface in the form of a barrage. As more interactive text is displayed, the text content entered earlier will be removed from the current viewing interface and will not be displayed or displayed in a loop. Users cannot personalize the display effect of text special effects, which lacks interest.
- Embodiments of the present disclosure provide a text special effect display method, device, electronic equipment, and storage medium, which can provide an editable text special effect display method, so that users can control the text special effect display effect when sending text interactive information.
- Personalized settings increase the fun of text special effects display.
- the embodiment of the present disclosure provides a text special effect display method, including:
- the text information to be displayed is dynamically displayed according to the display path.
- the embodiment of the present disclosure also provides a text special effect display device, including:
- the text special effect display data acquisition module is configured to obtain a video image displaying the text information to be displayed in response to determining that the text information to be displayed and the text display parameters have been obtained;
- the text special effect display path determination module is configured to identify the key position points of the target object in the video image, and confirm the display path of the text to be displayed based on the key position points;
- the text special effect display module is configured to dynamically display the text information to be displayed according to the display path according to the text display parameters.
- an embodiment of the present disclosure further provides an electronic device, and the electronic device includes:
- processors one or more processors
- storage means configured to store one or more programs
- the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method for displaying special text effects as described in any one of the embodiments of the present disclosure.
- the embodiments of the present disclosure also provide a storage medium containing computer-executable instructions, which are configured to execute the text special effects described in any one of the embodiments of the present disclosure when executed by a computer processor. Show method.
- FIG. 1 is a schematic flowchart of a text special effect display method provided by an embodiment of the present disclosure
- FIG. 2 is a schematic diagram of a target object and multiple location points provided by an embodiment of the present disclosure
- FIG. 3 is a schematic flowchart of a text special effect display method provided by another embodiment of the present disclosure.
- FIG. 4 is a schematic flowchart of a text special effect display method provided by another embodiment of the present disclosure.
- FIG. 5 is a schematic flowchart of a text special effect display method provided by another embodiment of the present disclosure.
- Fig. 6 is a schematic diagram of the overall necessary key positions of a standard portrait model provided by an embodiment of the present disclosure
- Fig. 7 is a schematic diagram of necessary key positions of the upper body of a human body image provided by an embodiment of the present disclosure
- Fig. 8 is a schematic diagram of key points of contour expansion provided by an embodiment of the present disclosure.
- Fig. 9 is a schematic diagram of key points of contour expansion after supplementation provided by an embodiment of the present disclosure.
- FIG. 10 is a schematic diagram of a fitting curve of a display path provided by an embodiment of the present disclosure.
- FIG. 11 is a schematic flow chart of calculating a feature position using a Newton iterative algorithm provided by an embodiment of the present disclosure
- Fig. 12 is a schematic structural diagram of a text special effect display device provided by an embodiment of the present disclosure.
- FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
- the term “comprise” and its variations are open-ended, ie “including but not limited to”.
- the term “based on” is “based at least in part on”.
- the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one further embodiment”; the term “some embodiments” means “at least some embodiments.” Relevant definitions of other terms will be given in the description below.
- FIG. 1 is a schematic flowchart of a method for displaying special text effects provided by an embodiment of the present disclosure.
- the embodiment of the present disclosure is applicable to displaying special text effects in video images.
- the method can be executed by a text special effect display device, which can be implemented in the form of software and/or hardware, and which can be configured in electronic equipment, such as a mobile terminal or server equipment.
- the text special effect display method provided in this embodiment includes:
- the live viewers or the anchor himself want to interact with the live broadcast through some text, they can enter the text information to be displayed and the parameters of the text display in the text interaction window of the live broadcast client. Or when the user wishes to interact with the plot content when watching short videos, long videos and other variety shows or film and television series, he can also input the text information to be displayed and the text display parameters in the text interaction window of the video client interface.
- the text information to be displayed is a text object to be rendered with special effects.
- the parameters of the text display are the personalized settings of the rules for special effect rendering of the text to be displayed, for example, the number of words, font, font size, color, interval between multiple texts, text life cycle (special effect display time), etc. parameter.
- the text life cycle refers to the time from appearance to disappearance of a word in text effects, which determines the speed of text movement.
- the live broadcast or video application client When the live broadcast or video application client receives the text information to be displayed and the text display parameters, it indicates that the client needs to perform text rendering, and the client will obtain the video image displaying the text information to be displayed, including the live broadcast screen that is being broadcast Or the video image screen that is being played.
- the video images are consecutive frames of video images within the duration corresponding to the life cycle of the text to be displayed.
- image processing will be performed frame by frame to determine the position information of the text to be displayed in each frame of video image.
- the target object may be a person, an animal or other objects in the video image.
- the key position points of the target object are the key position points on the target object and corresponding to the morphological features of the target object and the feature points of the target object. For example, the connection points of different joints or parts of the target object.
- the feature points may be the facial features of the person or animal.
- information comparison or artificial intelligence image recognition methods can be used to identify target objects in video images.
- a certain type of object can be preset as the target object, and the determined target object can be selected from the multiple identified target objects. For example, in the live broadcast scene, the default setting of people is target.
- the user specifies a target object when inputting text information to be displayed, and then only recognizes the target object specified by the user in the video image when performing video image recognition, and continues to perform image processing operations if recognized; If the target object specified by the user is not recognized in the , the text special effect rendering operation process will be stopped. After the target object is recognized, the key position point of the target object will be identified, so as to obtain the key position point information, that is, the coordinate information of the key position point on the display screen of the client.
- the display path of the text to be displayed is determined according to some key position points.
- curve fitting is required.
- the number of key position points at least including all necessary key point.
- the necessary key position points are the key position points that have a great influence on the fitting results when performing curve fitting.
- the contour expansion key points corresponding to the key position points can be determined according to the position information of the key position points and the preset contour expansion parameters; thereby performing contour curve fitting based on the contour expansion key points , and use the fitted target contour expansion curve as the final text display path.
- the contour key point corresponding to the key position point according to the position information of the key position point and the preset contour expansion parameters
- the contour key point corresponding to the key position point on the contour line of the target object can be determined first; then, On the basis of the position information of the contour key points, the contour expansion distance determined based on the preset contour expansion parameters is superimposed to obtain the position information of the contour expansion key points.
- the outline expansion key points match the appropriate curve type for fitting, and obtain the target outline expansion curve, which is used as the display path of the text to be displayed when the text special effect is displayed.
- FIG. 2 is a target object recognized in a video image, and the target object is a table.
- the solid line rectangle represents the table top, and the two ovals represent the table legs.
- the black dots marked from 1001-1011 in the solid line area represent all necessary key position points of the target object, and the dots filled with small black dots on the solid line are key position points on the contour line of the target object (necessary key position points ) corresponding to the contour key points, and the dots filled with black dots on the dotted line are the contour expansion key points, and the dotted line is the fitting curve obtained by curve fitting according to the contour expansion key points.
- the contour key point is based on the positional relationship of the key position points, and the contour key point of the target object is determined according to the aspect ratio of the preset table model and the distance ratio between the key position point and the edge of the table contour. Then, on the position of the contour key point, the contour expansion length in the specified direction is superimposed, and the contour expansion key point can be determined.
- the contour expansion length in the specified direction can be multiplied by the vector cross product result between the preset contour expansion length and the contour tangent direction vector and the vertical screen-facing vector to obtain the target result.
- the preset contour expansion length indicates the distance between the expanded contour lines and the contour lines. For example, it is also possible to establish a mapping relationship between the key position points and expansion parameters of the target object and the target object model, and directly generate the corresponding contour expansion key points.
- the text to be displayed is displayed according to parameters such as font, font size, color, interval between multiple texts, text lifetime (special effect display duration) and other parameters required by text display parameters.
- the effect of the text special effect display is to move along the display path until the end of the text life cycle.
- the moving speed of the text can also be determined according to the length of the display path and the duration of the text life cycle.
- the technical solution of the embodiment of the present disclosure can obtain the text information to be displayed and the text display parameters when a user issues a text special effect display command, and then obtain the video image displaying the text information to be displayed; and identify the target in the video image
- the technical solution of the embodiment of the present disclosure avoids the situation that the text special effect in the video screen cannot be personalized, and realizes an editable text special effect display mode, so that the user can display the text special effect when sending text interactive information Make personalized settings to increase the fun of text special effect display.
- Embodiments of the present disclosure may be combined with multiple exemplary solutions in the text special effect display method provided in the above embodiments.
- the text special effect display method provided in this embodiment describes the process of supplementing key position points.
- FIG. 3 is a schematic flowchart of a text special effect display method provided by another embodiment of the present disclosure. As shown in Figure 3, the text special effect display method provided in this embodiment includes:
- the live viewers or the anchor himself want to interact with the live broadcast through some text, they can enter the text information to be displayed and the parameters of the text display in the text interaction window of the live broadcast client. Or when the user wishes to interact with the plot content when watching short videos, long videos and other variety shows or film and television series, he can also input the text information to be displayed and the text display parameters in the text interaction window of the video client interface.
- the text information to be displayed is a text object to be rendered with special effects.
- the parameters of the text display are the personalized settings of the rules for special effect rendering of the text to be displayed, for example, the number of words, font, font size, color, interval between multiple texts, text life cycle (special effect display time), etc. parameter.
- the text life cycle refers to the time from appearance to disappearance of a word in text effects, which determines the speed of text movement.
- the live broadcast or video application client When the live broadcast or video application client receives the text information to be displayed and the text display parameters, it indicates that the client needs to perform text rendering, and the client will obtain the video image displaying the text information to be displayed, including the live broadcast screen that is being broadcast Or the video image screen that is being played.
- the video images are consecutive frames of video images within the duration corresponding to the life cycle of the text to be displayed.
- image processing will be performed frame by frame to determine the position information of the text to be displayed in each frame of video image.
- the integrity of the key position points will be checked to check whether the identified key position points contain all the necessary key position points.
- the necessary key position points are the key position points that have a great influence on the fitting results when performing curve fitting.
- the key point for determining whether the unrecognized necessary key position points can be supplemented is whether all the preset reference key position points are included in the identified key position points.
- the preset datum key position point is a part of the necessary key position point, and it is the key point that the non-datum key position point can refer to for setting.
- anti-shake processing is performed on the identified key points before determining the contour expansion key points corresponding to the key points.
- the anti-shake operation can be performed by means of median filtering or mean filtering. Taking the median filter as an example, the median value of the position information of the key position points in the continuous number (such as three frames) of video images can be respectively taken as the position information of the key position points in the current video image to filter out noise and jitter.
- the key position points include all preset reference key position points, according to the position information of the preset reference key position points in the key position points and the size ratio of the standard reference model of the target object, supplement Necessary key position points not included in the key position points.
- the contour line of the target object can be determined first according to the preset model ratio of the target object.
- Contour key points corresponding to the key position points are superimposed to obtain the position information of the contour expansion key points.
- the outline expansion key points match the appropriate curve type for fitting, and obtain the target outline expansion curve, which is used as the display path of the text to be displayed when the text special effect is displayed.
- the fitting curve is smooth at the first contour expansion key point at the start and the last contour expansion key point at the end point.
- This requires a certain linear relationship between the added contour expansion key point and its adjacent two contour expansion key points, that is, keep the added contour expansion key point and its adjacent two contour expansion key points on the same straight line.
- the correlation coefficient of the linear relationship can be set according to the characteristics of the fitting curve, or set in a random number manner. Then, contour curve fitting is performed based on the supplemented contour expansion key points, and the target contour expansion curve is obtained as a display path.
- the display path of the text to be displayed is confirmed based on the key position points after completion; finally, according to the text display parameters, the text information to be displayed is dynamically displayed according to the display path, forming a dynamic display of the text to be displayed around the outline of the target object text effects.
- the technical solution of the embodiment of the present disclosure avoids the situation that the special effects of text in the video screen cannot be personalized, and the problem that the necessary key points are missing during the processing of special effects of text, and realizes an editable display method of special effects of text, so that When users send text interactive information, they can personalize the display effect of text special effects to increase the interest of text special effect display. Even under the condition of incomplete identification of key positions, text special effects can still be processed.
- Embodiments of the present disclosure may be combined with multiple exemplary solutions in the text special effect display method provided in the above embodiments.
- the method for displaying text with special effects provided in this embodiment describes the process of displaying text according to a display path.
- FIG. 4 is a schematic flowchart of a text special effect display method provided by another embodiment of the present disclosure. As shown in Figure 4, the text special effect display method provided in this embodiment includes:
- the target object may move in different frames of video images, for example, in consecutive video image frames, the target object is getting closer to the lens, then the target object will become larger, and the curve showing the path will also become longer . Therefore, the moving process of the text to be displayed on the display path is uneven.
- the text feature position information can be transmitted in two adjacent frames of video images. Since the target object in the video is constantly changing, the position of the text in the human eye is generally set with reference to a certain feature point, and the position of the feature point in the current video image can be kept visually consistent with the position in the previous frame of video image. position invariance. Therefore, a concept of feature location is introduced here.
- the feature position represents the position of each text on the curve segment between two silhouette expansion keys that lie on the display path.
- the path position represents the length of the curved path that each character moves on the display path.
- the characteristic position of the text on the screen can be represented by CN(n, t), which means that the position of the Nth character is located on the curve segment of the contour expansion key point P(n) and the contour expansion key point P(n+1), t
- the value range of t is 0-1, indicating the degree to which the position of the nth character is close to the outline expansion key point P(n) or the outline expansion key point P(n+1).
- the path position indicates the length of the curved path that the Nth character travels from the starting point P1 in the outline expansion key point, which can be represented by LN.
- the path position is introduced to ensure the visual speed invariance of text movement.
- LN(n, t) can be used to represent the curve length corresponding to the movement of the Nth word from the feature position CN(n, 0) to CN(n, t);
- L(n, m) can represent the curve length of Pn-m , that is, the length of the curve between the key point n of contour expansion and the key point m of contour expansion;
- L(n) represents L(n, n+1), which is the curve between the key point n of contour expansion and the key point n+1 of contour expansion length.
- the moving speed of the text to be displayed is determined according to the text life cycle in the text display parameters and the curve length of the display path.
- the curve length is the length from the first contour expansion key point to the last contour expansion key point. Divide the length of the curve by the text lifetime to determine the speed of the text.
- the feature position of the first character in the text to be displayed in the previous frame of video image when the previous frame is not empty, directly obtain the feature position; if the current video image is the first frame of video image, then the previous frame If the frame is empty, the feature position of the first character in the text to be displayed in the previous frame of the video image is recorded as CN(1, 0), indicating that the first character is at the position of the key point of the first outline expansion , which is equivalent to the starting point of the dynamic display of text effects. Then, the path position of the first character in the current video image can be calculated according to the characteristic position of the first character among the characters to be displayed in the previous frame of video image.
- the preset curve integration method can be used first to perform integral calculation on the fitting curve of the display path based on the characteristic position of the first character in the previous frame of video image, and determine the corresponding position of the first character in the current video image.
- the integral method using the preset curve can be the Gauss-Legend integral algorithm. This method is a numerical algorithm commonly used in computers to solve integrals. Point calculation result.
- the text display interval between each text in the text to be displayed and the first text can be superimposed on the basis of the path position of the first text in the current video image, and the distance between each text in the text to be displayed is determined in the current video image. path location.
- S340 Calculate the characteristic position of each character in the current video image according to the path position of each character in the to-be-displayed characters in the current video image.
- the characteristic position is equivalent to a point on the display path curve, so the path position of each character in the current video image can be determined by solving the solution of the curve.
- a Newton iteration algorithm may be used to calculate the feature position of each character. Newton's iterative method is a common method for finding approximate roots of equations. Compared with finding exact roots, Newton's iterative method has the advantages of reasonable calculation amount and satisfactory solution accuracy.
- the number of Newton iterations is usually set to 3. Firstly, according to the path position of each character in the current video image, it is determined which two contour expansion key points on the display path curve the path position is in. Then, bring the curve parameters of the display path into the Newton iteration function, and iteratively solve according to the preset number of Newton iterations, and finally obtain the characteristic position of each character in the current video image.
- S350 Determine the screen position of each character according to the characteristic position of each character in the current video image.
- contour expansion curve fitting is carried out according to the screen position of each contour expansion key point, then the output of the fitting curve is the screen position.
- the position information of t, the contour expansion key point P(n) and one or more adjacent contour expansion key points into the display path curve to obtain The screen position of the Nth text.
- the position information of the contour expansion key point P(n) and one or more adjacent contour expansion key points input to the display path curve is consistent with the conditions when the display path curve is fitted.
- the position information input into the display path curve is P(n-1), The position information of four contour expansion key points P(n), P(n+1) and P(n+2).
- the text to be displayed can be rendered at the screen position of each text according to the text font and font size in the text display parameters; then, the rendering effect of each text is superimposed on the corresponding video image for display.
- the video image is rendered before the text is rendered.
- the technical solution of the embodiment of the present disclosure introduces the characteristic position and path position of the characters in the video image, and when determining the movement process of the characters to be displayed, according to the position of each character in the previous frame of the video image
- the feature position determines its path position in the current video image, and then converts the path position into a feature position in the current video image, and then determines the screen position of each character. It can avoid the uneven change of the text rendering dynamic effect caused by the change of the target object in different frames of video images, and optimize the rendering effect of the text to be displayed.
- a dynamic display text effect is formed in which the text to be displayed moves at a constant speed around the outline of the target object.
- the technical solution of the embodiment of the present disclosure avoids the situation that the text special effect in the video screen cannot be personalized, and the problem that the target object changes in different video frames, and realizes an editable text special effect display mode, which enables the user to send text When interacting with information, it is possible to personalize the display effect of text special effects to increase the interest of text special effect display.
- Embodiments of the present disclosure may be combined with multiple exemplary solutions in the text special effect display method provided in the above embodiments.
- the method for displaying text with special effects provided in this embodiment describes the process of displaying text according to the contour curve path of the portrait when the target object is a portrait.
- FIG. 5 is a schematic flowchart of a text special effect display method provided by another embodiment of the present disclosure. As shown in Figure 5, the text special effect display method provided in this embodiment includes:
- the target object is a person image
- the process of dynamically displaying the text to be displayed above the outline of the human body can be realized. It can be applied to user interaction in live broadcast scenarios, or other video interaction scenarios.
- FIG. 6 shows a two-dimensional human skeleton key point model, including 0-17 key points in the model.
- a three-dimensional human skeleton key point model can also be used.
- the reason for using a two-dimensional human skeleton key point model rather than a three-dimensional human skeleton key point model is because the accuracy of the three-dimensional human skeleton key point model and The stability is not as good as the two-dimensional human skeleton key point model, and the two-dimensional human skeleton key point model already meets the requirements of special effects.
- the process of determining all necessary key position points of the person image is described.
- the set of necessary key position points is: [0, 1, 2, 5, 14, 15, 16, 17]. Because some of the characters in the video image are sometimes outside the video image, the necessary key points identified by the image algorithm are incomplete. Therefore, it is necessary to check whether the acquired necessary key points are missing. If they are missing, you need to follow the preset strategy. make up. For example, some preset reference key position points near the faces are selected, and the default positions of other necessary key position points are calculated based on the ratio of the standard portrait.
- the preset reference key position point in this embodiment is [0, 1, 14, 15], point 0 is taken as the coordinate origin, the direction from point 0-1 is the direction of the vertical axis, and the direction from point 14-15 is the direction of the horizontal axis
- the specific calculation formula of the a-th key point is as follows (the value range of a is the serial number of the necessary key position point in the set of necessary key position points):
- B(a) represents the screen position of the key point of the ath person, that is, the position information obtained when the key point is identified
- x(a) and y(a) are respectively the abscissa of point a in the reference coordinate system axis and ordinate coordinates.
- x(a) and y(a) can be pre-calculated based on the position information of the known key position points and the proportion of the key point model of the human skeleton.
- the coordinate calculation results of the necessary key position points in the reference coordinate system are as follows:
- bringing the coordinate values in the above table into the key point screen position calculation formula can determine the supplementary screen position information of the necessary key position points.
- a simple median filter can be used to take the median of the key point position components of three consecutive frames as the position component of the current frame to filter out noise and jitter.
- other filtering methods may also be used.
- the contour expansion key points generally select several key position points corresponding to the necessary key position points, usually the position points reflecting the overall contour and characteristics of the person image.
- the selection of key points for contour expansion of the task image can refer to key points P1-P9 of contour expansion shown in FIG. 8 .
- the position calculation of dilated keypoints in each round relies on the contour keypoints on the contour line of the human body image.
- P(n) is the position information of the nth contour expansion key point, that is, the screen coordinate position
- O(a) is the position information of each necessary key position point on the contour line of the human body, which can be calculated according to the position information of the necessary key position point
- the distance between the location information and the necessary key location points, and the ratio of the standard portrait to determine the specific value, or the calculation rules can be pre-set based on the characteristics of the portrait.
- the calculation rules only need to meet the visual effect that fits the outline of the human body, and the preferred choice is simple.
- length is the length of the contour expansion, which indicates the distance between the contour expansion curve and the human body
- cross() is the vector cross product function
- T(n) is the tangential direction of the contour line
- forward is the vector facing inwards vertically on the screen, here is (0, 0, 1).
- the values of O(a) and T(n) determine the shape of the contour expansion curve, and the length determines the contour size.
- the numerical calculation of O(a) corresponding to each contour key point follows the calculation rules in the following table:
- distance() represents the distance function between two points.
- P0 and P10 must conform to a certain linear relationship with the key points of the original contour, so that the fitting curve can be smoothed at the initial P1 and the end point P9, that is, keep P2-3-0 and P8-9-10 on the same straight line superior.
- the specific calculation relationship between P0 and P10 can be calculated as follows:
- the above calculation relationship can be determined by setting multiple sets of linear relationship parameters in advance, respectively obtaining multiple sets of linear fitting results, and determining the final calculation relationship according to the effect of curve fitting. For example, in this embodiment, after determining the final key point of contour expansion after supplementation, CatmullRom spline curve is used for linear fitting.
- the calculation code is as follows, where p0, p1, p2 and p3 are respectively Corresponding to 4 input points, t ranges from 0-1, a, b and c are known curve fitting parameters, so the return value is the screen position.
- the finally obtained fitting curve is shown by the dotted line in FIG. 10 , wherein the curve segment P1-P9 is a dynamic display path of the text to be displayed.
- the target object may move in different frames of video images, for example, in consecutive video image frames, the target object is getting closer to the lens, then the target object will become larger, and the curve showing the path will also become longer . Therefore, the moving process of the text to be displayed on the display path is uneven.
- the text feature position information can be transmitted in two adjacent frames of video images. Since the target object in the video is constantly changing, the position of the text in the human eye is generally set with reference to a certain feature point, and the position of the feature point in the current video image can be kept visually consistent with the position in the previous frame of video image. position invariance. Therefore, a concept of feature location is introduced here.
- the feature position represents the position of each text on the curve segment between two silhouette expansion keys that lie on the display path.
- the path position represents the length of the curved path that each character moves on the display path.
- the characteristic position of the text on the screen can be represented by CN(n, t), which means that the position of the Nth character is located on the curve segment of the contour expansion key point P(n) and the contour expansion key point P(n+1), t
- the value range of t is 0-1, indicating the degree to which the position of the nth character is close to the outline expansion key point P(n) or the outline expansion key point P(n+1).
- the path position indicates the length of the curved path that the Nth character travels from the starting point P1 in the outline expansion key point, which can be represented by LN.
- the path position is introduced to ensure the visual speed invariance of text movement.
- LN(n, t) can be used to represent the curve length corresponding to the movement of the Nth word from the feature position CN(n, 0) to CN(n, t);
- L(n, m) can represent the curve length of Pn-m , that is, the length of the curve between the key point n of contour expansion and the key point m of contour expansion;
- L(n) represents L(n, n+1), which is the curve between the key point n of contour expansion and the key point n+1 of contour expansion length.
- the moving speed of the text to be displayed is determined according to the text life cycle in the text display parameters and the curve length of the display path.
- the curve length is the length from the first contour expansion key point to the last contour expansion key point. Divide the length of the curve by the text lifetime to determine the speed of the text.
- the characteristic position of the first character in the text to be displayed in the previous frame of video image obtains the characteristic position.
- the previous frame is not empty, directly obtain the characteristic position. If the current video image is the first frame of video image, then If the frame is empty, the feature position of the first character in the text to be displayed in the previous frame of the video image is recorded as CN(1, 0), indicating that the first character is at the position of the key point of the first outline expansion , which is equivalent to the starting point of the dynamic display of text effects. Then, the path position of the first character in the current video image can be calculated according to the characteristic position of the first character among the characters to be displayed in the previous frame of video image.
- the preset curve integration method can be used first to perform integral calculation on the fitting curve of the display path based on the characteristic position of the first character in the previous frame of video image, and determine the corresponding position of the first character in the current video image.
- the initial path location for .
- the character feature position points can be expressed as
- the parameters corresponding to ⁇ i and xi Gaussler handicap integrals can be selected according to the following table.
- the path location can be expressed as
- the moving distance of the first character is determined according to the time interval between the current video image and the previous frame of video image and the moving speed of the text to be displayed; The moving distance is superimposed on the basis of the initial path position in the video image to obtain the path position of the first character in the text to be displayed in the current video image.
- the text display interval between each text in the text to be displayed and the first text can be superimposed on the basis of the path position of the first text in the current video image, and the distance between each text in the text to be displayed is determined in the current video image. path location.
- the feature position is equivalent to a point on the display path curve
- the feature position point corresponding to the path position of each character in the current video image in the current video image can be determined by solving the solution of the curve.
- a Newton iteration algorithm may be used to calculate the feature position of each character. Newton's iterative method is a common method for finding approximate roots of equations. Compared with finding exact roots, Newton's iterative method has the advantages of reasonable calculation amount and satisfactory solution accuracy.
- the number of Newton iterations is usually set to 3. Firstly, according to the path position of each character in the current video image, it is determined which two contour expansion key points on the display path curve the path position is in. Then, bring the curve parameters of the display path into the Newton iteration function, and iteratively solve according to the preset number of Newton iterations, and finally obtain the characteristic position of each character in the current video image.
- the process of calculating the feature position may refer to the flow chart shown in FIG. 11 . Assign the path position of the Nth word to len, and then start from P1 to determine which two contour expansion key points the Nth word falls in.
- the curve fitting is carried out according to the screen position of the contour expansion key point, then the output of the fitting curve is the screen position.
- the feature position CN(n, t) of the Nth character input the position information of t, the contour expansion key point P(n) and one or more adjacent contour expansion key points into the display path curve to obtain The screen position of the Nth text.
- SN (x, y) is the screen position of the Nth word.
- the text to be displayed can be rendered at the screen position of each text according to the text font and font size in the text display parameters; then, the rendering effect of each text is superimposed on the corresponding video image for display.
- the video image is rendered before the text is rendered.
- the text special effect display method is applied to the scene where the target object is a human body image, firstly identify the necessary key points in the video image, and supplement the unrecognized necessary points. Key position points, and then gradually fit the text display path curve, and then according to the curve fitting results, introduce the characteristic position and path position of the text in the video image, when determining the movement process of the text to be displayed, according to the position of each text.
- the characteristic position of the previous frame video image determines its path position in the current video image, and then converts the path position into the characteristic position in the current video image, and then determines the screen position of each character.
- a dynamic display text effect is formed in which the text to be displayed moves at a constant speed around the outline of the portrait.
- the technical solution of the embodiment of the present disclosure avoids the situation that the text special effect in the video screen cannot be personalized, and the problem that the target object changes in different video frames, and realizes an editable text special effect display mode, which enables the user to send text When interacting with information, it is possible to personalize the display effect of text special effects to increase the interest of text special effect display.
- Fig. 12 is a schematic structural diagram of a text special effect display device provided by an embodiment of the present disclosure.
- the text special effect display device provided in this embodiment is suitable for displaying text special effects in video images.
- the text special effect display device includes: a text special effect display data acquisition module 510 , a text special effect display path determination module 520 and a text special effect display module 530 .
- the text special effect display data acquisition module 510 is configured to obtain and display the video image of the text information to be displayed when the text information to be displayed and text display parameters are obtained;
- the text special effect display path determination module 520 is configured to identify the text information to be displayed.
- the text special effect display module 530 is set to display the text information according to the text display parameter The display path is dynamically displayed.
- the technical solution of the embodiment of the present disclosure avoids the situation that the text special effect in the video screen cannot be personalized, and realizes an editable text special effect display mode, so that the user can display the text special effect when sending text interactive information Make personalized settings to increase the fun of text special effect display.
- the character special effect display path determination module 520 includes a contour expansion key point determination submodule and a path curve fitting submodule; wherein,
- the contour expansion key point determination submodule is configured to determine the contour expansion corresponding to the key position point according to the position information of the key position point and the preset contour expansion parameters when the key position point includes all necessary key position points key points; a path curve fitting submodule, configured to perform contour curve fitting based on the contour expansion key points, and use the fitted target contour expansion curve as the display path.
- the text special effect display path determination module 520 also includes a key position point supplement submodule, which is set to:
- the key position points include all the preset benchmark key position points, according to the position information of the preset benchmark key position points in the key position points and the size ratio of the standard reference model of the target object, supplement the Necessary key position points not included in key position points;
- contour expansion key point determination submodule is set to:
- the position information of the key points of contour expansion is obtained by superimposing the contour expansion distance determined based on the preset contour expansion parameters on the basis of the position information of the contour key points.
- the path curve fitting submodule is set to:
- Contour curve fitting is performed based on the supplemented contour dilation keypoints.
- the text special effect display device also includes a key position point information correction module, which is configured to obtain the position information of the key position point in consecutive multiple frames of video images before determining the contour expansion key point corresponding to the key position point The median value in is used as the position information of the key position point.
- a key position point information correction module configured to obtain the position information of the key position point in consecutive multiple frames of video images before determining the contour expansion key point corresponding to the key position point The median value in is used as the position information of the key position point.
- the text special effect display module 530 includes: a text path position determination submodule, a text feature position determination submodule, a text screen position determination submodule and a text rendering display submodule; wherein, the text path position determination submodule is set to The text display parameters, the curve of the display path and the characteristic position of the first text in the text to be displayed in the previous frame video image, determine the path position of each text in the current video image in the displayed text, wherein, the feature position represents the position of each character on the curve segment between two outline expansion key points on the display path, and the path position represents the distance of each character moving on the display path.
- the character position determination submodule is set to calculate the feature position of each character in the current video image according to the path position of each character in the text to be displayed in the current video image;
- the character screen position determination submodule It is set to determine the screen position of each character according to the characteristic position of each character in the current video image;
- the character rendering display submodule is set to place the character to be displayed in the video image based on the screen position of each character Perform a rendering display.
- literal path location determination submodule is set to:
- literal path location determination submodule is set to:
- the moving distance is superimposed on the basis of the initial path position to determine the path position of the first character in the current video image.
- the text rendering display submodule is set to:
- the rendering effect of each character is superimposed on the video image for display.
- the target object includes a person image in a video image.
- the text special effect display device provided in the embodiments of the present disclosure can execute the text special effect display method provided in any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method.
- FIG. 13 it shows a schematic structural diagram of an electronic device (such as a terminal device or a server in FIG. 13 ) 600 suitable for implementing an embodiment of the present disclosure.
- the terminal equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like.
- the electronic device shown in FIG. 13 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
- the electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 606 is loaded into the program in the random access memory (Random Access Memory, RAM) 603 to execute various appropriate actions and processes.
- a processing device such as a central processing unit, a graphics processing unit, etc.
- RAM Random Access Memory
- various programs and data necessary for the operation of the electronic device 600 are also stored.
- the processing device 601, ROM 602, and RAM 603 are connected to each other through a bus 604.
- An input/output (I/O) interface 605 is also connected to the bus 604 .
- the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 607 such as a computer; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609.
- the communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While FIG. 13 shows electronic device 600 having various means, it is to be understood that implementing or possessing all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
- embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from a network via communication means 609 , or from storage means 606 , or from ROM 602 .
- the processing device 601 the above-mentioned functions defined in the text special effect display method of the embodiment of the present disclosure are executed.
- the electronic device provided by the embodiment of the present disclosure belongs to the same disclosed concept as the text special effect display method provided by the above embodiment.
- the above embodiment please refer to the above embodiment, and this embodiment has the same features as the above embodiment. beneficial effect.
- An embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored.
- the program is executed by a processor, the method for displaying text with special effects provided in the above embodiments is implemented.
- the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
- a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.
- Computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM) or flash memory (FLASH), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
- Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
- the client and the server can communicate using any currently known or future-developed network protocols such as HTTP (Hyper Text Transfer Protocol, Hypertext Transfer Protocol), and can communicate with any form or medium of digital Data communication (eg, communication network) interconnections.
- HTTP Hyper Text Transfer Protocol
- Examples of communication networks include local area networks ("LANs”), wide area networks ("WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:
- the text information to be displayed is dynamically displayed according to the display path.
- Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages.
- the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
- the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
- LAN local area network
- WAN wide area network
- Internet service provider such as AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
- each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the names of the units and modules do not constitute limitations on the units and modules themselves under certain circumstances, for example, the data generating module may also be described as a "video data generating module".
- exemplary types of hardware logic components include: Field Programmable Gate Arrays (Field Programmable Gate Arrays, FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (Application Specific Standard Parts, ASSP), System on Chip (System on Chip, SOC), Complex Programmable Logic Device (CPLD), etc.
- 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, apparatus, or device.
- 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
- machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory erasable programmable read only memory
- CD-ROM compact disk read only memory
- magnetic storage or any suitable combination of the foregoing.
- Example 1 provides a text special effect display method, the method includes:
- the text information to be displayed is dynamically displayed according to the display path.
- Example 2 provides a text special effect display method, which also includes:
- confirming the display path of the text to be displayed based on the key position point includes:
- the contour expansion key points corresponding to the key position points according to the position information of the key position points and preset contour expansion parameters
- Contour curve fitting is performed based on the contour expansion key points, and the fitted target contour expansion curve is used as the display path.
- Example 3 provides a text special effect display method, which also includes:
- the method further includes:
- the key position points include all the preset benchmark key position points, according to the position information of the preset benchmark key position points in the key position points and the size ratio of the standard reference model of the target object, supplement the Necessary key position points not included in key position points;
- Example 4 provides a text special effect display method, which also includes:
- determining the contour expansion key point corresponding to the key position point according to the position information of the key position point and the preset contour expansion parameters includes:
- the position information of the key points of contour expansion is obtained by superimposing the contour expansion distance determined based on the preset contour expansion parameters on the basis of the position information of the contour key points.
- Example 5 provides a text special effect display method, which also includes:
- the contour curve fitting based on the contour expansion key points includes:
- Contour curve fitting is performed based on the supplemented contour dilation keypoints.
- Example 6 provides a text special effect display method, which also includes:
- the method before determining the contour expansion key point corresponding to the key position point, the method further includes:
- Example 7 provides a text special effect display method, which also includes:
- the text information to be displayed is dynamically displayed according to the display path, and the method further includes:
- the curve of the display path and the characteristic position of the first text in the text to be displayed in the previous frame video image determine the path of each text in the displayed text in the current video image position, wherein the feature position represents the position of each character on the curve segment between two outline expansion key points on the display path, and the path position represents the position of each character on the display path the length of the moved curve path;
- the text to be displayed is rendered and displayed in the video image based on the screen position of each text.
- Example 8 provides a text special effect display method, which also includes:
- each character in the displayed characters is at the current The path location of the video image, including:
- Example 9 provides a text special effect display method, which also includes:
- determining the path position of the first text in the current video image includes:
- the moving distance is superimposed on the basis of the initial path position to determine the path position of the first character in the current video image.
- Example 10 provides a text special effect display method, which also includes:
- rendering and displaying the text to be displayed in a video image based on the screen position of each text includes:
- the rendering effect of each character is superimposed on the video image for display.
- Example 11 provides a text special effect display method, which also includes:
- the target object includes a person image in a video image.
- Example 12 provides a text special effect display device, including:
- the text special effect display data acquisition module is configured to obtain and display the video image of the text information to be displayed when the text information to be displayed and the text display parameters are obtained;
- the text special effect display path determination module is configured to identify the key position points of the target object in the video image, and confirm the display path of the text to be displayed based on the key position points;
- the text special effect display module is configured to dynamically display the text information to be displayed according to the display path according to the text display parameters.
- Example 13 provides a text special effect display device, further comprising:
- the text special effect display path determination module specifically includes a contour expansion key point determination sub-module and a path curve fitting sub-module; wherein,
- the contour expansion key point determination submodule is configured to determine the contour expansion corresponding to the key position point according to the position information of the key position point and the preset contour expansion parameters when the key position point includes all necessary key position points key points; a path curve fitting submodule, configured to perform contour curve fitting based on the contour expansion key points, and use the fitted target contour expansion curve as the display path.
- Example Fourteen provides a text special effect display device, further comprising:
- the text special effect display path determination module also includes a key position point supplementary sub-module, which is set as:
- the key position points include all the preset benchmark key position points, according to the position information of the preset benchmark key position points in the key position points and the size ratio of the standard reference model of the target object, supplement the Necessary key position points not included in key position points;
- Example 15 provides a text special effect display device, further comprising:
- contour expansion key point determination submodule is set to:
- the position information of the key points of contour expansion is obtained by superimposing the contour expansion distance determined based on the preset contour expansion parameters on the basis of the position information of the contour key points.
- Example 16 provides a text special effect display device, further comprising:
- the path curve fitting submodule is set to:
- Contour curve fitting is performed based on the supplemented contour dilation keypoints.
- Example 17 provides a text special effect display device, further comprising:
- the text special effect display device also includes a key position point information correction module, which is configured to obtain the position information of the key position point in consecutive multiple frames of video images before determining the contour expansion key point corresponding to the key position point The median value in is used as the position information of the key position point.
- a key position point information correction module configured to obtain the position information of the key position point in consecutive multiple frames of video images before determining the contour expansion key point corresponding to the key position point The median value in is used as the position information of the key position point.
- Example Eighteen provides a text special effect display device, further comprising:
- the text special effect display module includes: a text path position determination submodule, a text feature position determination submodule, a text screen position determination submodule and a text rendering display submodule; wherein, the text path position determination submodule is set to Display parameters, the curve of the display path and the characteristic position of the first character in the text to be displayed in the previous frame video image, determine the path position of each character in the current video image in the displayed text, wherein, The feature position represents the position of each character on the curve segment between the two outline expansion key points on the display path, and the path position represents the curved path that each character moves on the display path Length; character feature position determination submodule is set to calculate the feature position of each character in the current video image according to the path position of each character in the current video image in the text to be displayed; the character screen position determination submodule is set to Determine the screen position of each character according to the characteristic position of each character in the current video image; the character rendering and display submodule is configured to render the character to be displayed in the video image
- Example 19 provides a text special effect display device, further comprising:
- literal path location determination submodule is set to:
- Example 20 provides a text special effect display device, further comprising:
- literal path location determination submodule is set to:
- the moving distance is superimposed on the basis of the initial path position to determine the path position of the first character in the current video image.
- Example 21 provides a text special effect display device, further comprising:
- the text rendering display submodule is set to:
- the rendering effect of each character is superimposed on the video image for display.
- Example 22 provides a text special effect display device, further comprising:
- the target object includes a person image in a video image.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
| a | x(a) | y(a) |
| 2 | -2.0 | 1.5 |
| 5 | 2.0 | 1.5 |
| 16 | -0.9 | -0.3 |
| 17 | 0.9 | -0.3 |
Claims (14)
- 一种文字特效展示方法,包括:响应于确定获取到待显示文字信息和文字显示参数,获取显示所述待显示文字信息的视频图像;识别所述视频图像中目标对象的关键位置点,并基于所述关键位置点确认所述待显示文字的显示路径;根据所述文字显示参数,将所述待显示文字信息按照所述显示路径进行动态展示。
- 根据权利要求1所述的方法,其中,所述基于所述关键位置点确认所述待显示文字的显示路径,包括:响应于确定所述关键位置点包括全部必要关键位置点,根据所述关键位置点的位置信息和预设轮廓扩张参数确定与所述关键位置点对应的轮廓扩张关键点;基于所述轮廓扩张关键点进行轮廓曲线拟合,并将拟合得到的目标轮廓扩张曲线作为所述显示路径。
- 根据权利要求2所述的方法,其中,响应于确定所述关键位置点中未包含全部所述必要关键位置点,所述方法还包括:确定所述关键位置点中是否包含全部预设基准关键位置点;响应于确定所述关键位置点中包含全部预设基准关键位置点,根据所述关键位置点中的预设基准关键位置点的位置信息和所述目标对象的标准参考模型的尺寸比例,补充所述关键位置点中未包含的必要关键位置点;响应于确定所述关键位置点中未包含全部预设基准关键位置点,停止当前文字特效展示处理过程。
- 根据权利要求2所述的方法,其中,所述根据所述关键位置点的位置信息和预设轮廓扩张参数确定与所述关键位置点对应的轮廓扩张关键点,包括:确定所述目标对象的轮廓线上与所述关键位置点对应的轮廓关键点;在所述轮廓关键点的位置信息基础上叠加基于所述预设轮廓扩张参数确定的轮廓扩张距离,得到所述轮廓扩张关键点的位置信息。
- 根据权利要求4所述的方法,其中,所述基于所述轮廓扩张关键点进行轮廓曲线拟合,包括:根据预设轮廓扩张关键点位置关系补充轮廓扩张关键点;基于补充后的轮廓扩张关键点进行轮廓曲线拟合。
- 根据权利要求2所述的方法,在所述确定与所述关键位置点对应的轮廓扩张关键点之前,所述方法还包括:取所述关键位置点在连续多帧的视频图像中的位置信息中的中值,作为所述关键位置点的位置信息。
- 根据权利要求2所述的方法,其中,所述待显示文字包括多个文字,所述根据所述文字显示参数,将所述待显示文字信息按照所述显示路径进行动态展示,包括:根据所述文字显示参数、所述显示路径的曲线和所述待显示文字中的第一个文字在前一帧视频图像的特征位置,确定所述显示文字中每个文字在当前视频图像的路径位置,其中,所述特征位置表示所述每个文字在所述显示路径上所处的两个轮廓扩张关键点之间的曲线段上的位置,所述路径位置表示所述每个文字在所述显示路径上移动的曲线路径长度;根据所述待显示文字中所述每个文字在当前视频图像的路径位置计算出所述每个文字在当前视频图像的特征位置;根据所述每个文字在当前视频图像的特征位置确定所述每个文字的屏幕位置;基于所述每个文字的屏幕位置将所述待显示文字在视频图像中进行渲染展示。
- 根据权利要求7所述的方法,其中,所述根据所述文字显示参数、所述显示路径的曲线和所述待显示文字中的第一个文字在前一帧视频图像的特征位置,确定所述显示文字中每个文字在当前视频图像的路径位置,包括:根据所述文字显示参数中的文字生存周期和所述显示路径的曲线长度,确定所述待显示文字的移动速度;基于所述显示文字的移动速度和所述待显示文字中的第一个文字在前一帧视频图像的特征位置,确定所述第一个文字在当前视频图像的路径位置;根据所述第一个文字在当前视频图像的路径位置和所述根据所述文字显示参数中文字显示间隔,确定所述待显示文字中每个文字在当前视频图像的路径位置。
- 根据权利要求8所述的方法,其中,所述基于所述显示文字的移动速度和所述待显示文字中的第一个文字在前一帧视频图像的特征位置,确定所述第一个文字在当前视频图像的路径位置,包括:采用预设曲线积分算法对所述第一个文字在前一帧视频图像的特征位置进行积分,确定所述第一个文字在前一帧视频图像中的特征位置在当前视频图像中对应的初始路径位置;根据所述当前视频图像和所述前一帧视频图像之间的时间间隔和所述待显示文字的移动速度确定所述第一个文字的移动距离;在所述初始路径位置的基础上叠加所述移动距离,确定所述第一个文字在当前视频图像的路径位置。
- 根据权利要求7所述的方法,其中,所述基于所述每个文字的屏幕位置将所述待显示文字在视频图像中进行渲染展示,包括:按照所述文字显示参数中的文字字体和字号在所述每个文字的屏幕位置对待显示文字进行渲染;将所述每个文字的渲染效果叠加在所述视频图像中进行展示。
- 根据权利要求1-10中任一所述的方法,其中,所述目标对象包括所述视频图像中的人物图像。
- 一种文字特效展示装置,包括:文字特效展示数据获取模块,设置为响应于确定获取到待显示文字信息和文字显示参数,获取显示所述待显示文字信息的视频图像;文字特效展示路径确定模块,设置为识别所述视频图像中目标对象的关键位置点,并基于所述关键位置点确认所述待显示文字的显示路径;文字特效展示模块,设置为根据所述文字显示参数,将所述待显示文字信息按照所述显示路径进行动态展示。
- 一种电子设备,包括:一个或多个处理器;存储装置,设置为存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-11中任一所述的文字特效展示方法。
- 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时设置为执行如权利要求1-11中任一所述的文字特效展示方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/291,753 US20240357210A1 (en) | 2021-10-26 | 2022-10-21 | Method, apparatus, electronic device and storage medium for displaying a text effect |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111250376.4A CN116033201B (zh) | 2021-10-26 | 2021-10-26 | 一种文字特效展示方法、装置、电子设备及存储介质 |
| CN202111250376.4 | 2021-10-26 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023071920A1 true WO2023071920A1 (zh) | 2023-05-04 |
Family
ID=86080193
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/126579 Ceased WO2023071920A1 (zh) | 2021-10-26 | 2022-10-21 | 文字特效展示方法、装置、电子设备及存储介质 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20240357210A1 (zh) |
| CN (1) | CN116033201B (zh) |
| WO (1) | WO2023071920A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117412100A (zh) * | 2023-10-17 | 2024-01-16 | 北京字跳网络技术有限公司 | 视频处理方法及相关设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100927A (zh) * | 2015-08-07 | 2015-11-25 | 广州酷狗计算机科技有限公司 | 弹幕显示方法及装置 |
| CN106101804A (zh) * | 2016-06-16 | 2016-11-09 | 乐视控股(北京)有限公司 | 弹幕设定方法及装置 |
| CN108495166A (zh) * | 2018-01-29 | 2018-09-04 | 上海哔哩哔哩科技有限公司 | 弹幕播放控制方法、终端及弹幕播放控制系统 |
| US20180332265A1 (en) * | 2017-05-15 | 2018-11-15 | Lg Electronics Inc. | Method of transmitting 360-degree video, method of receiving 360-degree video, device for transmitting 360-degree video, and device for receiving 360-degree video |
| CN112328091A (zh) * | 2020-11-27 | 2021-02-05 | 腾讯科技(深圳)有限公司 | 弹幕显示方法、装置、终端及存储介质 |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8085982B1 (en) * | 2008-06-20 | 2011-12-27 | Google Inc. | Object tracking in video with visual constraints |
| JP2013161205A (ja) * | 2012-02-03 | 2013-08-19 | Sony Corp | 情報処理装置、情報処理方法、及びプログラム |
| US9240061B2 (en) * | 2012-10-02 | 2016-01-19 | International Business Machines Corporation | Pattern representation images for business intelligence dashboard objects |
| CN105430471B (zh) * | 2015-11-26 | 2018-07-24 | 无锡天脉聚源传媒科技有限公司 | 一种视频中弹幕的显示方法及装置 |
| CN107147941A (zh) * | 2017-05-27 | 2017-09-08 | 努比亚技术有限公司 | 视频播放的弹幕显示方法、装置及计算机可读存储介质 |
| CN109391792B (zh) * | 2017-08-03 | 2021-10-29 | 腾讯科技(深圳)有限公司 | 视频通信的方法、装置、终端及计算机可读存储介质 |
| US10489918B1 (en) * | 2018-05-09 | 2019-11-26 | Figure Eight Technologies, Inc. | Video object tracking |
| US11004249B2 (en) * | 2019-03-18 | 2021-05-11 | Apple Inc. | Hand drawn animation motion paths |
| CN112347395B (zh) * | 2019-08-07 | 2024-06-14 | 阿里巴巴集团控股有限公司 | 特效展示方法、装置、电子设备及计算机存储介质 |
| US11887629B2 (en) * | 2020-09-10 | 2024-01-30 | Adobe Inc. | Interacting with semantic video segments through interactive tiles |
| CN115733993A (zh) * | 2021-08-27 | 2023-03-03 | 北京字节跳动网络技术有限公司 | 网络直播方法、装置、存储介质和电子设备 |
| CN113891119A (zh) * | 2021-09-28 | 2022-01-04 | 北京字跳网络技术有限公司 | 信息显示方法、装置、电子设备和存储介质 |
| US20230401852A1 (en) * | 2022-05-31 | 2023-12-14 | Synamedia Limited | Video Scene Change Detection |
-
2021
- 2021-10-26 CN CN202111250376.4A patent/CN116033201B/zh active Active
-
2022
- 2022-10-21 US US18/291,753 patent/US20240357210A1/en active Pending
- 2022-10-21 WO PCT/CN2022/126579 patent/WO2023071920A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100927A (zh) * | 2015-08-07 | 2015-11-25 | 广州酷狗计算机科技有限公司 | 弹幕显示方法及装置 |
| CN106101804A (zh) * | 2016-06-16 | 2016-11-09 | 乐视控股(北京)有限公司 | 弹幕设定方法及装置 |
| US20180332265A1 (en) * | 2017-05-15 | 2018-11-15 | Lg Electronics Inc. | Method of transmitting 360-degree video, method of receiving 360-degree video, device for transmitting 360-degree video, and device for receiving 360-degree video |
| CN108495166A (zh) * | 2018-01-29 | 2018-09-04 | 上海哔哩哔哩科技有限公司 | 弹幕播放控制方法、终端及弹幕播放控制系统 |
| CN112328091A (zh) * | 2020-11-27 | 2021-02-05 | 腾讯科技(深圳)有限公司 | 弹幕显示方法、装置、终端及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116033201B (zh) | 2025-04-01 |
| CN116033201A (zh) | 2023-04-28 |
| US20240357210A1 (en) | 2024-10-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111242881B (zh) | 显示特效的方法、装置、存储介质及电子设备 | |
| CN111399729A (zh) | 图像的绘制方法、装置、可读介质和电子设备 | |
| CN111669502B (zh) | 目标对象显示方法、装置及电子设备 | |
| US11314965B2 (en) | Method and apparatus for positioning face feature points | |
| CN109816769A (zh) | 基于深度相机的场景地图生成方法、装置及设备 | |
| CN112423021B (zh) | 视频的处理方法、装置、可读介质和电子设备 | |
| WO2020220809A1 (zh) | 目标对象的动作识别方法、装置和电子设备 | |
| US20220301184A1 (en) | Accurate optical flow interpolation optimizing bi-directional consistency and temporal smoothness | |
| CN110796664B (zh) | 图像处理方法、装置、电子设备及计算机可读存储介质 | |
| CN112199016B (zh) | 图像处理方法、装置、电子设备及计算机可读存储介质 | |
| US20250292444A1 (en) | Video synthesis method, apparatus, device, medium and product | |
| CN111833459A (zh) | 一种图像处理方法、装置、电子设备及存储介质 | |
| WO2023138441A1 (zh) | 视频生成方法、装置、设备及存储介质 | |
| CN114630057A (zh) | 确定特效视频的方法、装置、电子设备及存储介质 | |
| KR20220110493A (ko) | 비디오의 객체 표시 방법 및 장치, 전자 장치 및 컴퓨터 판독 가능 저장 매체 | |
| WO2023071920A1 (zh) | 文字特效展示方法、装置、电子设备及存储介质 | |
| US12041374B2 (en) | Segmentation-based video capturing method, apparatus, device and storage medium | |
| CN112651909B (zh) | 图像合成方法、装置、电子设备及计算机可读存储介质 | |
| US11810336B2 (en) | Object display method and apparatus, electronic device, and computer readable storage medium | |
| WO2023025181A1 (zh) | 图像识别方法、装置和电子设备 | |
| CN117152385A (zh) | 图像处理方法、装置、电子设备及存储介质 | |
| CN112085733A (zh) | 图像处理方法、装置、电子设备和计算机可读介质 | |
| CN110288552A (zh) | 视频美化方法、装置及电子设备 | |
| WO2023071631A1 (zh) | 一种视频处理方法、装置及设备 | |
| CN113703704A (zh) | 界面显示方法、头戴式显示设备和计算机可读介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22885797 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18291753 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06/08/2024) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22885797 Country of ref document: EP Kind code of ref document: A1 |


