WO2021018178A1 - 文字特效处理方法及装置 - Google Patents

文字特效处理方法及装置 Download PDF

Info

Publication number
WO2021018178A1
WO2021018178A1 PCT/CN2020/105439 CN2020105439W WO2021018178A1 WO 2021018178 A1 WO2021018178 A1 WO 2021018178A1 CN 2020105439 W CN2020105439 W CN 2020105439W WO 2021018178 A1 WO2021018178 A1 WO 2021018178A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
special effect
multimedia
terminal screen
resource
Prior art date
Application number
PCT/CN2020/105439
Other languages
English (en)
French (fr)
Inventor
沈言浩
倪光耀
杨辉
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Priority to US17/631,889 priority Critical patent/US12020347B2/en
Publication of WO2021018178A1 publication Critical patent/WO2021018178A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/02Affine transformations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234336Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation 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/4316Generation 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8126Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts
    • H04N21/8133Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts specifically related to the content, e.g. biography of the actors in a movie, detailed information about an article seen in a video program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the present disclosure relates to the field of image processing technology, and in particular to a method, device and computer-readable storage medium for processing text effects.
  • a fixed version of an application program corresponds to a fixed text special effect, that is, once the application version is determined, the type of text special effect is determined. For example, there are fixed types of text effects in the current version, and other new text effects cannot be added. Only after the version is updated, the new text effects can be added to the application with the version update, which is very inflexible.
  • the technical problem solved by the present disclosure is to provide a text special effect processing method, so as to at least partially solve the technical problem of inflexible text special effects in the prior art.
  • a text special effect processing device a text special effect processing hardware device, a computer-readable storage medium and a text special effect processing terminal are also provided.
  • a special text effect processing method including:
  • a special text effect processing method including:
  • a text special effect processing device including:
  • the request sending module is configured to send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
  • the resource receiving module is configured to receive the text special effect resource sent by the server
  • the special effect display module is configured to perform special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen and gradually disappear from the terminal screen.
  • a text special effect processing device including:
  • the request receiving module is configured to receive a request for obtaining text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
  • the resource sending module is configured to send the text special effect resource to the client, so that the client performs special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia display On the terminal screen, and gradually disappear from the terminal screen.
  • An electronic device including:
  • Memory for storing non-transitory computer readable instructions
  • the processor is configured to run the computer-readable instructions so that the processor implements any of the above-mentioned text special effects processing methods when executed.
  • a computer-readable storage medium for storing non-transitory computer-readable instructions.
  • the computer executes any of the above-mentioned text special effects processing methods .
  • a text special effect processing terminal includes any text special effect processing device described above.
  • the embodiments of the present disclosure obtain text special effect resources from a server, and perform special effect processing on the text according to the text special effect resources, so that the text follows the playback progress of the multimedia and is displayed on the terminal screen, and gradually changes from the terminal screen.
  • the text effect resources can be obtained without updating the client, making the text effect more flexible to use.
  • FIG. 1 is a schematic flowchart of a text special effect processing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for processing text effects according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a text special effects processing device according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a text special effects processing device according to an embodiment of the present disclosure.
  • Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the text special effect processing method mainly includes the following steps S11 to S13.
  • Step S11 Send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of texts associated with multimedia.
  • the execution subject of this embodiment is a client installed on the terminal, for example, it may be a short video application or music playing software.
  • the terminal may be a mobile terminal (for example, a smart phone, a tablet computer, etc.) or a fixed terminal (for example, a desktop computer).
  • the multimedia can be a video, and the corresponding text is a line; it can also be music, and the corresponding text is a lyrics.
  • the display special effect can be to enlarge or reduce the text, gradually disappear from the terminal screen, and gradually display on the terminal screen.
  • multimedia options and/or text effect resource options can be provided on the client application interface, for example, a multimedia list is provided, where the multimedia list contains multiple multimedia names, such as video names or music names; and/or text effect resource lists , Where the text special effect resource list contains special effect information, such as zoom in or zoom out.
  • a multimedia list is provided, where the multimedia list contains multiple multimedia names, such as video names or music names; and/or text effect resource lists , Where the text special effect resource list contains special effect information, such as zoom in or zoom out.
  • Step S12 Receive the text special effect resource sent by the server.
  • the server may be a third-party server, and the third-party server is mainly used to store text special effect resources. It may also be an application server corresponding to the client. The application server is used to store multimedia and text associated with the multimedia in addition to storing text special effect resources.
  • Step S13 Perform special effect processing on the text according to the text special effect resource, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually disappears from the terminal screen.
  • the text special effect resource is obtained from the server, and the text is processed according to the text special effect resource, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually disappears from the terminal screen. Disappear, without updating the client, you can get text effects resources, making text effects more flexible.
  • step S13 specifically includes:
  • Step S131 Acquire the time stamp corresponding to the playback progress of the multimedia and the text corresponding to the time stamp.
  • the time stamp is the time length of the current playing time relative to the initial playing time.
  • the corresponding relationship between the time stamp and the text can be preset, and the corresponding time stamp is further determined according to the playback progress of the multimedia, and the corresponding text can be obtained according to the time stamp.
  • Step S132 Determine the display transparency of the text corresponding to the time stamp according to the time stamp.
  • the display transparency can be a value between 0-1.
  • the display transparency changes from 0 to 1 the text is gradually displayed, and when the display transparency changes from 1 to 0, the text gradually disappears.
  • the specific value is determined in real time based on the timestamp.
  • Step S133 Perform special effect processing on the text corresponding to the timestamp according to the display transparency, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually disappears from the terminal screen.
  • the text corresponding to each timestamp in the multimedia playback process is processed with special effects according to the display transparency, so that the text can be displayed on the terminal screen following the multimedia playback progress, and gradually disappear from the terminal screen. disappear.
  • the method further includes:
  • Step S14 Generate a displacement map according to the resolution of the terminal; wherein the displacement map includes the initial displacement of each pixel;
  • a displacement map with a size of 720*1280 is generated.
  • step S133 specifically includes:
  • Step S1331 Determine the playback percentage according to the timestamp; where the playback percentage is the ratio of the current playback progress of the text to the total progress.
  • Step S1332 Determine a target displacement according to the playback percentage and the initial displacement.
  • the target displacement may be the product of the playback percentage and the initial displacement.
  • Step S1333 Perform special effect processing on the text corresponding to the timestamp according to the display transparency and the target displacement, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen, and gradually disappear from the terminal screen. disappear.
  • the display transparency is multiplied by the pixel value of each pixel in the image composed of the text, as the pixel value of the pixel corresponding to the target displacement, and the display transparency changes in real time as the playback progresses, that is, from 1
  • the gradual change is 0, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually disappears from the terminal screen.
  • step S14 specifically includes:
  • Step S141 Generate a template picture according to the resolution of the terminal; wherein, the template picture includes n feature points; where n is a positive integer;
  • Step S142 Triangulate the template picture according to the feature points to obtain m triangles; where m is a positive integer;
  • Step S143 Generate a displacement map according to the displacement of each pixel in the m triangles.
  • step S143 specifically includes:
  • Step S1431 Traverse each triangle, and use the triangle currently traversed as the current triangle;
  • Step S1432 Move the three vertices of the current triangle to obtain three target vertices
  • the three vertices of the current triangle can be respectively directed in a certain direction and slightly disturbed within a preset range to obtain three target vertices.
  • Step S1433 Obtain the affine transformation matrix of the current triangle according to the three vertices and the three target vertices;
  • Step S1434 Calculate the displacement of each pixel in the current triangle according to the affine transformation matrix
  • the displacement includes displacement in the x-axis direction and displacement in the y-axis direction.
  • Step S1435 Generate a displacement map according to the displacement of each pixel point in the m triangles.
  • step S133 specifically includes:
  • Step S1334 Typesetting the text corresponding to the timestamp according to the typesetting parameters in the text special effect resource, and generate a bitmap.
  • the text effect resources include typesetting parameters.
  • typesetting parameters include font, font size, font style, color, shadow and underline, etc.
  • the bitmap is composed of pixels that make up the text, and the pixel is the smallest information unit of the bitmap and is stored in the image grid. Each pixel has a specific position and color value. Record the information of each pixel in the text in the order from left to right and top to bottom, such as the position of the pixel on the terminal screen, the color of the pixel, etc.
  • Step S1335 Determine the pixel value of each pixel in the bitmap according to the display transparency.
  • the display transparency is multiplied by the initial pixel value of each pixel in the image composed of the text to obtain the pixel value of each pixel in the bitmap.
  • Step S1336 Display the text on the screen of the terminal, and move each pixel along the target displacement, and gradually disappear from the display following the progress of the multimedia playback.
  • the target displacement of each pixel is acquired and rendered in OpenGL (Open Graphics Library), so as to accelerate performance.
  • OpenGL Open Graphics Library
  • the method further includes:
  • Step S15 Run a local script program according to the script file in the text special effect resource
  • Step S16 Perform special effect processing on the text through the script program, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually disappears from the terminal screen.
  • a script program can be written in advance, the script program is configured in the client, and the corresponding script text is included in the text special effect resource.
  • the special effect processing of the text is realized by running the script program, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen, and gradually changes from the The terminal screen disappears.
  • the text special effect processing method mainly includes the following steps S21 to S22.
  • Step S21 Receive a request for acquiring text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia.
  • Step S22 Send the text special effect resource to the client, so that the client performs special effect processing on the text according to the text special effect resource, so that the text is displayed on the terminal screen following the playback progress of the multimedia And gradually disappear from the terminal screen.
  • the text special effect resource is sent to the client, so that the client performs special effect processing on the text according to the text special effect resource, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually changes from The terminal screen disappears, and the text special effect resource can be obtained without updating the client terminal, making the use of the text special effect more flexible.
  • the device embodiments of the present disclosure can be used to perform the steps implemented by the method embodiments of the present disclosure.
  • an embodiment of the present disclosure provides a text effects processing device.
  • the device can execute the steps in the text effect processing method embodiment described in the first embodiment.
  • the device mainly includes: a request sending module 31, a resource receiving module 32, and a special effect display module 33; among them,
  • the request sending module 31 is configured to send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
  • the resource receiving module 32 is configured to receive the text special effect resource sent by the server;
  • the special effect display module 33 is configured to perform special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen and gradually disappear from the terminal screen.
  • the special effect display module 33 includes: a text acquisition unit 331, a transparency determination unit 332, and a special effect display unit 333; wherein,
  • the text obtaining unit 331 is configured to obtain the time stamp corresponding to the playback progress of the multimedia and the text corresponding to the time stamp;
  • the transparency determining unit 332 is configured to determine the display transparency of the text corresponding to the time stamp according to the time stamp;
  • the special effect display unit 333 is configured to perform special effect processing on the text corresponding to the timestamp according to the display transparency, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen and gradually disappear from the terminal screen.
  • the special effect display module 33 further includes: a displacement map generating unit 334; wherein,
  • the displacement map generating unit 334 is configured to generate a displacement map according to the resolution of the terminal; wherein, the displacement map includes the initial displacement of each pixel;
  • the special effect display unit 333 is specifically configured to: determine the playback percentage according to the timestamp; wherein, the playback percentage is the ratio of the current playback progress of the text to the total progress; according to the playback percentage and the The initial displacement determines the target displacement; according to the display transparency and the target displacement, the text corresponding to the timestamp is processed with special effects, so that the text follows the playback progress of the multimedia and is displayed on the terminal screen, and gradually changes from the The terminal screen disappears.
  • the special effect display unit 333 is specifically configured to: typeset the text corresponding to the timestamp according to the typesetting parameters in the text special effect resource, and generate a bitmap; determine the bitmap according to the display transparency The pixel value of each pixel in the terminal; display the text on the screen of the terminal, and move each pixel along the target displacement, and follow the progress of the multimedia playback from the display to disappear gradually.
  • the displacement map generating unit 334 is specifically configured to: generate a template picture according to the resolution of the terminal; wherein the template picture contains n feature points; where n is a positive integer; according to the feature points Triangulate the template picture to obtain m triangles; where m is a positive integer; and generate a displacement map according to the displacement of each pixel in the m triangles.
  • the displacement map generation unit 334 is specifically configured to: traverse each triangle and use the triangle currently traversed as the current triangle; move three vertices of the current triangle to obtain three target vertices; The vertices and the three target vertices obtain the affine transformation matrix of the current triangle; calculate the displacement of each pixel in the current triangle according to the affine transformation matrix; according to each of the m triangles The displacement of each pixel generates a displacement map.
  • the device further includes: a script running module 34; wherein,
  • the script running module 34 is used to run a local script program according to the script file in the text special effect resource; perform special effect processing on the text through the script program, so that the text follows the playback progress of the multimedia and is displayed on the terminal screen And gradually disappear from the terminal screen.
  • an embodiment of the present disclosure provides a text effects processing device.
  • the device can execute the steps in the text effect processing method embodiment described in the second embodiment.
  • the device mainly includes: a request receiving module 41 and a resource sending module 42; among them,
  • the request receiving module 41 is configured to receive a request for obtaining text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
  • the resource sending module 42 is configured to send the text special effect resource to the client, so that the client performs special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia display On the terminal screen, and gradually disappear from the terminal screen.
  • FIG. 5 shows a schematic structural diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure.
  • the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 502 or from a storage device 506
  • the program in the memory (RAM) 503 executes various appropriate actions and processing.
  • the RAM 503 also stores various programs and data required for the operation of the electronic device 500.
  • the processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, vibration An output device 507 such as a device; a storage device 506 such as a magnetic tape and a hard disk; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or installed from the storage device 506, or installed from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the client and server can communicate with any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communication e.g., communication network
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future research and development network of.
  • LAN local area networks
  • WAN wide area networks
  • the Internet e.g., the Internet
  • end-to-end networks e.g., ad hoc end-to-end networks
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device sends a request to the server to obtain text special effect resources; wherein, the text special effect resources are used To realize the display special effects of text associated with multimedia; receive the text special effect resource sent by the server; perform special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia display On the terminal screen, and gradually disappear from the terminal screen.
  • the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Product
  • SOC System on Chip
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium, which may contain or store a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any suitable combination of the foregoing.
  • machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM portable compact disk read only memory
  • magnetic storage device or any suitable combination of the above.
  • a text special effect processing method including:
  • the performing special effect processing on the text according to the text special effect resource so that the text is displayed on the terminal screen following the playback progress of the multimedia and gradually disappears from the terminal screen including:
  • the method further includes:
  • the playback percentage is the ratio of the current playback progress of the text to the total progress
  • the text corresponding to the timestamp is processed with special effects according to the display transparency and the target displacement, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually changes from the terminal to the screen.
  • the screen disappears including:
  • the generating a displacement map according to the resolution of the terminal includes:
  • n is a positive integer
  • a displacement map is generated according to the displacement of each pixel point in the m triangles.
  • the generating a displacement map according to the displacement of each pixel point in the m triangles includes:
  • a displacement map is generated according to the displacement of each pixel point in the m triangles.
  • the method further includes:
  • a text special effect processing method including:
  • a text special effect processing device including:
  • the request sending module is configured to send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
  • the resource receiving module is configured to receive the text special effect resource sent by the server
  • the special effect display module is configured to perform special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen and gradually disappear from the terminal screen.
  • the special effect display module includes:
  • a text obtaining unit configured to obtain a time stamp corresponding to the playback progress of the multimedia and text corresponding to the time stamp
  • a transparency determining unit configured to determine the display transparency of the text corresponding to the time stamp according to the time stamp
  • the special effect display unit is configured to perform special effect processing on the text corresponding to the timestamp according to the display transparency, so that the text follows the playback progress of the multimedia to be displayed on the terminal screen and gradually disappear from the terminal screen.
  • the special effect display module further includes:
  • a displacement map generating unit configured to generate a displacement map according to the resolution of the terminal; wherein the displacement map includes the initial displacement of each pixel;
  • the special effect display unit is specifically configured to: determine the playback percentage according to the timestamp; wherein, the playback percentage is the ratio of the current playback progress of the text to the total progress; according to the playback percentage and the initial The displacement determines the target displacement; according to the display transparency and the target displacement, the text corresponding to the timestamp is processed with special effects, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually changes from the terminal The screen disappears.
  • the special effect display unit is specifically configured to: typeset the text corresponding to the time stamp according to the typesetting parameters in the text special effect resource, and generate a bitmap; and determine the bitmap according to the display transparency The pixel value of each pixel; the text is displayed on the screen of the terminal, and each pixel is displaced along the target, and gradually disappears from the display following the progress of the multimedia playback.
  • the displacement map generating unit is specifically configured to: generate a template picture according to the resolution of the terminal; wherein the template picture contains n feature points; where n is a positive integer; according to the feature point pair
  • the template image is triangulated to obtain m triangles; where m is a positive integer; and a displacement map is generated according to the displacement of each pixel in the m triangles.
  • the displacement map generating unit is specifically configured to: traverse each triangle, and use the triangle currently traversed as the current triangle; move three vertices of the current triangle to obtain three target vertices; according to the three vertices And the three target vertices to obtain the affine transformation matrix of the current triangle; calculate the displacement of each pixel in the current triangle according to the affine transformation matrix; according to each of the m triangles
  • the displacement of pixels generates a displacement map.
  • the device further includes:
  • the script running module is used to run a local script program according to the script file in the text special effect resource; perform special effect processing on the text through the script program, so that the text follows the playback progress of the multimedia and is displayed on the terminal screen And gradually disappear from the terminal screen.
  • a text special effect processing device including:
  • the request receiving module is configured to receive a request for obtaining text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
  • the resource sending module is configured to send the text special effect resource to the client, so that the client performs special effect processing on the text according to the text special effect resource, so that the text follows the playback progress of the multimedia display On the terminal screen, and gradually disappear from the terminal screen.
  • an electronic device including:
  • Memory for storing non-transitory computer readable instructions
  • the processor is configured to run the computer-readable instructions to enable the processor to implement the above-mentioned text special effect processing method when executed.
  • a computer-readable storage medium for storing non-transitory computer-readable instructions.
  • the non-transitory computer-readable instructions are executed by a computer, the The computer executes the above-mentioned text special effect processing method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Computer Graphics (AREA)
  • Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种文字特效处理方法、装置、电子设备和计算机可读存储介质。其中方法包括:向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效(S11);接收所述服务器发送的所述文字特效资源(S12);根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失(S13)。该方法通过向服务器获取文字特效资源,根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,无需对客户端进行更新,就可以获取到文字特效资源,使文字特效使用起来更加灵活。

Description

文字特效处理方法及装置
相关申请的交叉引用
本申请要求于2019年08月01日提交的,申请号为201910708527.2、发明名称为“文字特效处理方法及装置”的中国专利申请的优先权,该申请的全文通过引用结合在本申请中。
技术领域
本公开涉及图像处理技术领域,特别是涉及一种文字特效处理方法、装置和计算机可读存储介质。
背景技术
文字设计,在以往用户界面设计里经常提及的是字体范式,重在其形。文字特效很少被人提及,不过随着简约设计的流行趋势,如果能让文字“动”起来,即使是单一的图文页面也会立即“活”起来,也会是一种别样的用户视觉体验感。
现有技术中,固定版本的应用程序通过对应固定的文字特效,即一旦确定了应用程序版本,就确定了文字特效种类。例如当前版本中有固定类型的文字特效,无法再添加其他新的文字特效,只有当版本更新后,新的文字特效才可以随着版本的更新被添加到应用程序中,这样非常不灵活。
发明内容
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
本公开解决的技术问题是提供一种文字特效处理方法,以至少部分地解决现有技术中文字特效不灵活的技术问题。此外,还提供一种文字特效处理装置、文字特效处理硬件装置、计算机可读存储介质和文字特效处理终端。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种文字特效处理方法,包括:
向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
接收所述服务器发送的所述文字特效资源;
根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种文字特效处理方法,包括:
接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种文字特效处理装置,包括:
请求发送模块,用于向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
资源接收模块,用于接收所述服务器发送的所述文字特效资源;
特效显示模块,用于根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种文字特效处理装置,包括:
请求接收模块,用于接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
资源发送模块,用于向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种电子设备,包括:
存储器,用于存储非暂时性计算机可读指令;以及
处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现上述任一项所述的文字特效处理方法。
为了实现上述目的,根据本公开的一个方面,提供以下技术方案:
一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行上述任一项所述的文字特效处理方法。
为了实现上述目的,根据本公开的又一个方面,还提供以下技术方案:
一种文字特效处理终端,包括上述任一文字特效处理装置。
本公开实施例通过向服务器获取文字特效资源,根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,无需对客户端进行更新,就可以获取到文字特效资源,使文字特效使用起来更加灵活。
上述说明仅是本公开技术方案的概述,为了能更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为让本公开的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附 图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。
图1为根据本公开一个实施例的文字特效处理方法的流程示意图;
图2为根据本公开一个实施例的文字特效处理方法的流程示意图;
图3为根据本公开一个实施例的文字特效处理装置的结构示意图;
图4为根据本公开一个实施例的文字特效处理装置的结构示意图;
图5为根据本公开一个实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外 的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
实施例一
为了解决现有技术中文字特效不灵活的技术问题,本公开实施例提供一种文字特效处理方法。如图1所示,该文字特效处理方法主要包括如下步骤S11至步骤S13。
步骤S11:向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效。
本实施例的执行主体为安装在终端的客户端,例如可以是短视频应用程序或音乐播放软件等。终端可以为移动终端(例如,智能手机、平板电脑等),也可以为固定终端(例如,台式电脑)。
其中,多媒体可以为视频,相应的文字为台词;也可以为音乐,相应的文字为歌词。
其中,显示特效可以为将文字进行放大、缩小、逐渐从终端屏幕消失、逐渐显示在终端屏幕等。
具体的,可以在客户端应用界面提供多媒体选项和/或文字特效资源选项,例如,提供多媒体列表,其中多媒体列表中包含多个多媒体名称,例如视频名称或音乐名称;和/或文字特效资源列表,其中,文字特效资源列表中包含特效信息,例如放大或缩小等。通过上述多媒体选项和/或文字特效资源选项,用户可以根据需求在客户端选择多媒体和/或对应的文字特效资源,然后从本地获取对应的多媒体及与多媒体相关联的文字,或者,向服务器发送获取多媒体资源的请求, 接收服务端发送的多媒体和与多媒体相关联的文字,例如音乐及对应的歌词。
步骤S12:接收所述服务器发送的所述文字特效资源。
其中,所述服务器可以为第三方服务器,该第三方服务器主要用于存储文字特效资源。也可以为与客户端对应的应用服务器,该应用服务器除了用于存储文字特效资源之前,还用于存储多媒体及与所述多媒体相关联的文字。
步骤S13:根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
具体的,以所述多媒体为音乐和歌词为例,根据服务器发送的文字特效资源对歌词进行特效处理,在音乐播放的过程中,使歌词随着音乐的播放在终端屏幕上由显示逐渐消失。
本实施例通过向服务器获取文字特效资源,根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,无需对客户端进行更新,就可以获取到文字特效资源,使文字特效使用起来更加灵活。
在一个可选的实施例中,步骤S13具体包括:
步骤S131:获取所述多媒体的播放进度对应的时间戳和所述时间戳对应的文字。
其中,时间戳为当前播放时间相对于起始播放时间的时间长度。
具体的,可预先设置时间戳和文字之后的对应关系,进一步根据 多媒体的播放进度确定对应的时间戳,进而根据时间戳获取对应的文字。
步骤S132:根据所述时间戳确定所述时间戳对应的文字的显示透明度。
其中,显示透明度可以为0-1之间的值,当显示透明度由0变为1时,则逐渐显示所述文字,当显示透明度由1变为0时,则所述文字逐渐消失。具体值根据时间戳实时确定。
步骤S133:根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
具体的,根据显示透明度对多媒体的播放过程中的每一时间戳对应的文字进行特效处理,可以使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
在一个可选的实施例中,所述方法还包括:
步骤S14:根据所述终端的分辨率生成位移图;其中,所述位移图中包含每个像素点的初始位移;
例如,如果终端屏幕分辨率为720*1280,则生成720*1280大小的位移图。
相应的,步骤S133具体包括:
步骤S1331:根据所述时间戳确定播放百分比;其中,所述播放百分比为所述文字的当前播放进度占总进度的比例。
步骤S1332:根据所述播放百分比和所述初始位移确定目标位移。
其中,目标位移可以为播放百分比与所述初始位移的乘积。
步骤S1333:根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
具体的,采用显示透明度乘以由所述文字组成的图像中的每个像素点的像素值,作为所述目标位移对应的像素点的像素值,随着播放进度显示透明度实时改变,即由1逐渐变化为0,使得文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
在一个可选的实施例中,步骤S14具体包括:
步骤S141:根据所述终端的分辨率生成模板图片;其中,所述模板图片中包含n个特征点;其中,n为正整数;
步骤S142:根据所述征点对所述模板图片进行三角剖分,得到m个三角形;其中,m为正整数;
步骤S143:根据所述m个三角形内的每个像素点的位移生成位移图。
在一个可选的实施例中,步骤S143具体包括:
步骤S1431:遍历每个三角形,将当前遍历到的三角形作为当前三角形;
步骤S1432:移动所述当前三角形的三个顶点,得到三个目标顶点;
具体的,可将当前三角形的三个顶点分别朝着某个方向,在预设范围内小幅度扰动,得到三个目标顶点。
步骤S1433:根据所述三个顶点和所述三个目标顶点得到所述当前三角形的仿射变换矩阵;
步骤S1434:根据所述仿射变换矩阵计算得到所述当前三角形内的每个像素点的位移;
其中,位移包括x轴方向上的位移和y轴方向上的位移。
步骤S1435:根据所述m个三角形内的每个像素点的位移生成位移图。
在一个可选的实施例中,步骤S133具体包括:
步骤S1334:根据所述文字特效资源中的排版参数对所述时间戳对应的文字进行排版,并生成位图。
其中,文字特效资源中包含排版参数。
其中,排版参数包含字体、字号、字形、颜色、阴影和下划线等。
其中,位图是由组成文字的像素组成的,像素是位图最小的信息单元,存储在图像栅格中。每个像素都具有特定的位置和颜色值。按从左到右、从上到下的顺序来记录文字中每一个像素的信息,例如:像素在终端屏幕上的位置、像素的颜色等。
步骤S1335:根据所述显示透明度确定所述位图中的每个像素点的像素值。
例如,将显示透明度乘以由所述文字组成的图像中的每个像素点的初始像素值得到位图中的每个像素点的像素值。
步骤S1336:在所述终端的屏幕上显示所述文字,并将所述每个像素点沿所述目标位移移动,并跟随所述多媒体的播放进度由显示逐 渐消失。
具体的,在渲染时,获取每个像素点的所述目标位移,在OpenGL(Open Graphics Library,开放图形库)中渲染,以便加速性能。
在一个可选的实施例中,所述方法还包括:
步骤S15:根据所述文字特效资源中的脚本文件运行本地的脚本程序;
步骤S16:通过所述脚本程序对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
具体的,可以预先编写脚本程序,将该脚本程序配置在客户端中,并将对应的脚本文字包含在文字特效资源中。在接收到所述服务器发送的所述文字特效资源后,通过运行脚本程序,实现所述文字的特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
实施例二
为了解决现有技术中文字特效不灵活的技术问题,本公开实施例提供一种文字特效处理方法。如图2所示,该文字特效处理方法主要包括如下步骤S21至步骤S22。
步骤S21:接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效。
步骤S22:向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字 跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
本实施例的执行主体为服务器。关于本实施例的各个名词解释及实现具体参见上述实施例一,这里不再赘述。
本实施例通过向客户端发送文字特效资源,以使客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,无需对客户端进行更新,就可以获取到文字特效资源,使文字特效使用起来更加灵活。
本领域技术人员应能理解,在上述各个实施例的基础上,还可以进行明显变型(例如,对所列举的模式进行组合)或等同替换。
在上文中,虽然按照上述的顺序描述了文字特效处理方法实施例中的各个步骤,本领域技术人员应清楚,本公开实施例中的步骤并不必然按照上述顺序执行,其也可以倒序、并行、交叉等其他顺序执行,而且,在上述步骤的基础上,本领域技术人员也可以再加入其他步骤,这些明显变型或等同替换的方式也应包含在本公开的保护范围之内,在此不再赘述。
下面为本公开装置实施例,本公开装置实施例可用于执行本公开方法实施例实现的步骤,为了便于说明,仅示出了与本公开实施例相关的部分,具体技术细节未揭示的,请参照本公开方法实施例。
实施例三
为了解决现有技术中文字特效不灵活的技术问题,本公开实施例 提供一种文字特效处理装置。该装置可以执行上述实施例一所述的文字特效处理方法实施例中的步骤。如图3所示,该装置主要包括:请求发送模块31、资源接收模块32和特效显示模块33;其中,
请求发送模块31用于向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
资源接收模块32用于接收所述服务器发送的所述文字特效资源;
特效显示模块33用于根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述特效显示模块33包括:文字获取单元331、透明度确定单元332和特效显示单元333;其中,
文字获取单元331用于获取所述多媒体的播放进度对应的时间戳和所述时间戳对应的文字;
透明度确定单元332用于根据所述时间戳确定所述时间戳对应的文字的显示透明度;
特效显示单元333用于根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述特效显示模块33还包括:位移图生成单元334;其中,
位移图生成单元334用于根据所述终端的分辨率生成位移图;其 中,所述位移图中包含每个像素点的初始位移;
相应的,所述特效显示单元333具体用于:根据所述时间戳确定播放百分比;其中,所述播放百分比为所述文字的当前播放进度占总进度的比例;根据所述播放百分比和所述初始位移确定目标位移;根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述特效显示单元333具体用于:根据所述文字特效资源中的排版参数对所述时间戳对应的文字进行排版,并生成位图;根据所述显示透明度确定所述位图中的每个像素点的像素值;在所述终端的屏幕上显示所述文字,并将所述每个像素点沿所述目标位移移动,并跟随所述多媒体的播放进度由显示逐渐消失。
进一步的,所述位移图生成单元334具体用于:根据所述终端的分辨率生成模板图片;其中,所述模板图片中包含n个特征点;其中,n为正整数;根据所述征点对所述模板图片进行三角剖分,得到m个三角形;其中,m为正整数;根据所述m个三角形内的每个像素点的位移生成位移图。
进一步的,所述位移图生成单元334具体用于:遍历每个三角形,将当前遍历到的三角形作为当前三角形;移动所述当前三角形的三个顶点,得到三个目标顶点;根据所述三个顶点和所述三个目标顶点得到所述当前三角形的仿射变换矩阵;根据所述仿射变换矩阵计算得到所述当前三角形内的每个像素点的位移;根据所述m个三角形内的每个像素点的位移生成位移图。
进一步的,所述装置还包括:脚本运行模块34;其中,
脚本运行模块34用于根据所述文字特效资源中的脚本文件运行本地的脚本程序;通过所述脚本程序对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
有关文字特效处理装置实施例的工作原理、实现的技术效果等详细说明可以参考前述文字特效处理方法实施例中的相关说明,在此不再赘述。
实施例四
为了解决现有技术中文字特效不灵活的技术问题,本公开实施例提供一种文字特效处理装置。该装置可以执行上述实施例二所述的文字特效处理方法实施例中的步骤。如图4所示,该装置主要包括:请求接收模块41和资源发送模块42;其中,
请求接收模块41用于接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
资源发送模块42用于向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
有关文字特效处理装置实施例的工作原理、实现的技术效果等详细说明可以参考前述文字特效处理方法实施例中的相关说明,在此不再赘述。
实施例五
下面参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置506加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置506;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以 交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置506被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号 介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;接收所述服务器发送的所述文字特效资源;根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随 所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现, 或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,提供了一种文字特效处理方法,包括:
向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
接收所述服务器发送的所述文字特效资源;
根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,包括:
获取所述多媒体的播放进度对应的时间戳和所述时间戳对应的文字;
根据所述时间戳确定所述时间戳对应的文字的显示透明度;
根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述方法还包括:
根据所述终端的分辨率生成位移图;其中,所述位移图中包含每个像素点的初始位移;
相应的,根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,包括:
根据所述时间戳确定播放百分比;其中,所述播放百分比为所述文字的当前播放进度占总进度的比例;
根据所述播放百分比和所述初始位移确定目标位移;
根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,包括:
根据所述文字特效资源中的排版参数对所述时间戳对应的文字进行排版,并生成位图;
根据所述显示透明度确定所述位图中的每个像素点的像素值;
在所述终端的屏幕上显示所述文字,并将所述每个像素点沿所述目标位移移动,并跟随所述多媒体的播放进度由显示逐渐消失。
进一步的,所述根据所述终端的分辨率生成位移图,包括:
根据所述终端的分辨率生成模板图片;其中,所述模板图片中包含n个特征点;其中,n为正整数;
根据所述征点对所述模板图片进行三角剖分,得到m个三角形;其中,m为正整数;
根据所述m个三角形内的每个像素点的位移生成位移图。
进一步的,所述根据所述m个三角形内的每个像素点的位移生成位移图,包括:
遍历每个三角形,将当前遍历到的三角形作为当前三角形;
移动所述当前三角形的三个顶点,得到三个目标顶点;
根据所述三个顶点和所述三个目标顶点得到所述当前三角形的仿射变换矩阵;
根据所述仿射变换矩阵计算得到所述当前三角形内的每个像素点的位移;
根据所述m个三角形内的每个像素点的位移生成位移图。
进一步的,所述方法还包括:
根据所述文字特效资源中的脚本文件运行本地的脚本程序;
通过所述脚本程序对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
根据本公开的一个或多个实施例,提供了一种文字特效处理方法,包括:
接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
根据本公开的一个或多个实施例,提供了一种文字特效处理装置,包括:
请求发送模块,用于向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
资源接收模块,用于接收所述服务器发送的所述文字特效资源;
特效显示模块,用于根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述特效显示模块包括:
文字获取单元,用于获取所述多媒体的播放进度对应的时间戳和所述时间戳对应的文字;
透明度确定单元,用于根据所述时间戳确定所述时间戳对应的文字的显示透明度;
特效显示单元,用于根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述特效显示模块还包括:
位移图生成单元,用于根据所述终端的分辨率生成位移图;其中,所述位移图中包含每个像素点的初始位移;
相应的,所述特效显示单元具体用于:根据所述时间戳确定播放百分比;其中,所述播放百分比为所述文字的当前播放进度占总进度的比例;根据所述播放百分比和所述初始位移确定目标位移;根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
进一步的,所述特效显示单元具体用于:根据所述文字特效资源中的排版参数对所述时间戳对应的文字进行排版,并生成位图;根据所述显示透明度确定所述位图中的每个像素点的像素值;在所述终端 的屏幕上显示所述文字,并将所述每个像素点沿所述目标位移移动,并跟随所述多媒体的播放进度由显示逐渐消失。
进一步的,所述位移图生成单元具体用于:根据所述终端的分辨率生成模板图片;其中,所述模板图片中包含n个特征点;其中,n为正整数;根据所述征点对所述模板图片进行三角剖分,得到m个三角形;其中,m为正整数;根据所述m个三角形内的每个像素点的位移生成位移图。
进一步的,所述位移图生成单元具体用于:遍历每个三角形,将当前遍历到的三角形作为当前三角形;移动所述当前三角形的三个顶点,得到三个目标顶点;根据所述三个顶点和所述三个目标顶点得到所述当前三角形的仿射变换矩阵;根据所述仿射变换矩阵计算得到所述当前三角形内的每个像素点的位移;根据所述m个三角形内的每个像素点的位移生成位移图。
进一步的,所述装置还包括:
脚本运行模块,用于根据所述文字特效资源中的脚本文件运行本地的脚本程序;通过所述脚本程序对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
根据本公开的一个或多个实施例,提供了一种文字特效处理装置,包括:
请求接收模块,用于接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
资源发送模块,用于向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
根据本公开的一个或多个实施例,提供了一种电子设备,包括:
存储器,用于存储非暂时性计算机可读指令;以及
处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现上述的文字特效处理方法。
根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行上述的文字特效处理方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围 的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (12)

  1. 一种文字特效处理方法,其特征在于,包括:
    向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
    接收所述服务器发送的所述文字特效资源;
    根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,包括:
    获取所述多媒体的播放进度对应的时间戳和所述时间戳对应的文字;
    根据所述时间戳确定所述时间戳对应的文字的显示透明度;
    根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    根据所述终端的分辨率生成位移图;其中,所述位移图中包含每个像素点的初始位移;
    相应的,根据所述显示透明度对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上, 并逐渐从所述终端屏幕上消失,包括:
    根据所述时间戳确定播放百分比;其中,所述播放百分比为所述文字的当前播放进度占总进度的比例;
    根据所述播放百分比和所述初始位移确定目标位移;
    根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述显示透明度和所述目标位移对所述时间戳对应的文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失,包括:
    根据所述文字特效资源中的排版参数对所述时间戳对应的文字进行排版,并生成位图;
    根据所述显示透明度确定所述位图中的每个像素点的像素值;
    在所述终端的屏幕上显示所述文字,并将所述每个像素点沿所述目标位移移动,并跟随所述多媒体的播放进度由显示逐渐消失。
  5. 根据权利要求3所述的方法,其特征在于,所述根据所述终端的分辨率生成位移图,包括:
    根据所述终端的分辨率生成模板图片;其中,所述模板图片中包含n个特征点;其中,n为正整数;
    根据所述征点对所述模板图片进行三角剖分,得到m个三角形;其中,m为正整数;
    根据所述m个三角形内的每个像素点的位移生成位移图。
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述m个三角形内的每个像素点的位移生成位移图,包括:
    遍历每个三角形,将当前遍历到的三角形作为当前三角形;
    移动所述当前三角形的三个顶点,得到三个目标顶点;
    根据所述三个顶点和所述三个目标顶点得到所述当前三角形的仿射变换矩阵;
    根据所述仿射变换矩阵计算得到所述当前三角形内的每个像素点的位移;
    根据所述m个三角形内的每个像素点的位移生成位移图。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    根据所述文字特效资源中的脚本文件运行本地的脚本程序;
    通过所述脚本程序对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  8. 一种文字特效处理方法,其特征在于,包括:
    接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
    向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  9. 一种文字特效处理装置,其特征在于,包括:
    请求发送模块,用于向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
    资源接收模块,用于接收所述服务器发送的所述文字特效资源;
    特效显示模块,用于根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  10. 一种文字特效处理装置,其特征在于,包括:
    请求接收模块,用于接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;
    资源发送模块,用于向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对所述文字进行特效处理,使得所述文字跟随所述多媒体的播放进度显示在终端屏幕上,并逐渐从所述终端屏幕上消失。
  11. 一种电子设备,包括:
    存储器,用于存储非暂时性计算机可读指令;以及
    处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现根据权利要求1-7任一项所述的文字特效处理方法及权利要求8所述的文字特效处理方法。
  12. 一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行权利要求1-7任一项所述的文字特效处理方法及权利要求8所 述的文字特效处理方法。
PCT/CN2020/105439 2019-08-01 2020-07-29 文字特效处理方法及装置 WO2021018178A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/631,889 US12020347B2 (en) 2019-08-01 2020-07-29 Method and apparatus for text effect processing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910708527.2 2019-08-01
CN201910708527.2A CN112395826B (zh) 2019-08-01 2019-08-01 文字特效处理方法及装置

Publications (1)

Publication Number Publication Date
WO2021018178A1 true WO2021018178A1 (zh) 2021-02-04

Family

ID=74230198

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105439 WO2021018178A1 (zh) 2019-08-01 2020-07-29 文字特效处理方法及装置

Country Status (3)

Country Link
US (1) US12020347B2 (zh)
CN (1) CN112395826B (zh)
WO (1) WO2021018178A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050191035A1 (en) * 2004-02-28 2005-09-01 Samsung Electronics Co., Ltd. Storage medium recording text-based subtitle stream, reproducing apparatus and reproducing method for reproducing text-based subtitle stream recorded on the storage medium
CN101854377A (zh) * 2010-01-25 2010-10-06 杭州东信北邮信息技术有限公司 一种支持无线终端的信息平台系统及其实现方法
CN103179093A (zh) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 视频字幕的匹配系统和方法
CN107943964A (zh) * 2017-11-27 2018-04-20 腾讯音乐娱乐科技(深圳)有限公司 歌词显示方法、装置及计算机可读存储介质
CN107944397A (zh) * 2017-11-27 2018-04-20 腾讯音乐娱乐科技(深圳)有限公司 视频录制方法、装置及计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1711009A4 (en) * 2004-01-30 2010-10-27 Panasonic Corp RECORDING MEDIUM, REPRODUCING APPARATUS, PROGRAM, AND REPRODUCTION METHOD
CN102984467B (zh) * 2012-10-30 2016-04-13 广东威创视讯科技股份有限公司 字幕实时更新的方法和系统
CN109889741A (zh) * 2019-02-28 2019-06-14 努比亚技术有限公司 字幕显示方法、存储介质和移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050191035A1 (en) * 2004-02-28 2005-09-01 Samsung Electronics Co., Ltd. Storage medium recording text-based subtitle stream, reproducing apparatus and reproducing method for reproducing text-based subtitle stream recorded on the storage medium
CN101854377A (zh) * 2010-01-25 2010-10-06 杭州东信北邮信息技术有限公司 一种支持无线终端的信息平台系统及其实现方法
CN103179093A (zh) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 视频字幕的匹配系统和方法
CN107943964A (zh) * 2017-11-27 2018-04-20 腾讯音乐娱乐科技(深圳)有限公司 歌词显示方法、装置及计算机可读存储介质
CN107944397A (zh) * 2017-11-27 2018-04-20 腾讯音乐娱乐科技(深圳)有限公司 视频录制方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
CN112395826A (zh) 2021-02-23
US12020347B2 (en) 2024-06-25
CN112395826B (zh) 2024-05-28
US20220292731A1 (en) 2022-09-15

Similar Documents

Publication Publication Date Title
US20230107220A1 (en) Video processing method and apparatus, electronic device, and computer readable storage medium
WO2021135626A1 (zh) 菜单项选择方法、装置、可读介质及电子设备
WO2021114979A1 (zh) 视频页面显示方法、装置、电子设备和计算机可读介质
CN111459364B (zh) 图标更新方法、装置和电子设备
WO2021190129A1 (zh) 页面处理方法、装置、电子设备及计算机可读存储介质
JP2023515607A (ja) 画像特殊効果の処理方法及び装置
CN111259636B (zh) 文档渲染方法、装置和电子设备
US20240177374A1 (en) Video processing method, apparatus and device
WO2021227953A1 (zh) 图像特效配置方法、图像识别方法、装置及电子设备
CN113205601B (zh) 漫游路径生成方法、装置、存储介质及电子设备
WO2024061064A1 (zh) 展示效果处理方法、装置、电子设备及存储介质
WO2023098576A1 (zh) 图像处理方法、装置、设备及介质
WO2023103682A1 (zh) 图像处理方法、装置、设备及介质
WO2021018178A1 (zh) 文字特效处理方法及装置
WO2023273621A1 (zh) 脚本生成方法、装置、设备及介质
WO2022242441A1 (zh) 电子表格导入方法、装置、设备及介质
CN111338827B (zh) 表格数据的粘贴方法、装置以及电子设备
CN110619615A (zh) 用于处理图像方法和装置
WO2021233379A1 (zh) 配置视频特效方法、装置、设备及存储介质
CN116266206A (zh) 页面显示方法、装置和电子设备
WO2021018176A1 (zh) 文字特效处理方法及装置
WO2021018177A1 (zh) 文字特效处理方法及装置
WO2021004171A1 (zh) 水波纹图像实现方法及装置
CN112346630B (zh) 状态确定方法、装置、设备和计算机可读介质
CN116974684B (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: 20847333

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20847333

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20847333

Country of ref document: EP

Kind code of ref document: A1

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.09.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20847333

Country of ref document: EP

Kind code of ref document: A1