CN112019919B - Video sticker adding method and device and electronic equipment - Google Patents

Video sticker adding method and device and electronic equipment Download PDF

Info

Publication number
CN112019919B
CN112019919B CN201910472521.XA CN201910472521A CN112019919B CN 112019919 B CN112019919 B CN 112019919B CN 201910472521 A CN201910472521 A CN 201910472521A CN 112019919 B CN112019919 B CN 112019919B
Authority
CN
China
Prior art keywords
sticker
target model
identifier
terminal information
user terminal
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.)
Active
Application number
CN201910472521.XA
Other languages
Chinese (zh)
Other versions
CN112019919A (en
Inventor
姚东伟
亓子晗
梁雨霏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910472521.XA priority Critical patent/CN112019919B/en
Publication of CN112019919A publication Critical patent/CN112019919A/en
Application granted granted Critical
Publication of CN112019919B publication Critical patent/CN112019919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/44Processing 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
    • 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/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides a method and a device for adding video stickers and electronic equipment, wherein the method comprises the following steps: receiving a sticker identifier and terminal information sent by a user terminal, wherein the sticker identifier is generated by the user terminal according to the operation of a user; determining a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information; and sending the target model to the user terminal so that the user terminal renders in a preset video program according to the target model to obtain a corresponding sticker effect. According to the embodiment of the disclosure, a large amount of model data does not need to be stored in a program of the local video, so that a large amount of storage space can be saved, and the operation efficiency of the user terminal is improved.

Description

Video sticker adding method and device and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computer and network communication, in particular to a method and a device for adding video stickers and electronic equipment.
Background
With the improvement of the hardware performance of the terminal device, more and more applications are running on the terminal device. Especially, video recording or shooting playing application programs become the first choice for users to enjoy leisure and entertainment. Currently, to increase viewer interest in recorded video viewing, such applications may implement a sticker-adding effect function.
At present, in a conventional method for adding a sticker to a video, in an application program for recording a video or shooting and playing, a corresponding model file and a corresponding recognition algorithm are queried in the application program running on a terminal device according to the sticker selected by a user, and a sticker effect selected by the user is presented in the video on the terminal device according to the model file and the recognition algorithm obtained by the query.
However, the inventors found that the prior art has at least the following technical problems: because the existing model file and the identification algorithm are all packaged in the local application program, the application program occupies a large amount of storage space, and the normal use of the terminal equipment is influenced.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for adding a video sticker and electronic equipment, and aims to solve the technical problems that the application program occupies a large amount of storage space and influences the normal use of terminal equipment because the existing model file and identification algorithm are all packaged in the local application program.
In a first aspect, an embodiment of the present disclosure provides a method for adding a video sticker, including:
receiving a sticker identifier and terminal information sent by a user terminal, wherein the sticker identifier is generated by the user terminal according to the operation of a user;
determining a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
and sending the target model to the user terminal so that the user terminal renders in a preset video program according to the target model to obtain a corresponding sticker effect.
In one possible design, the receiving the sticker identifier and the terminal information sent by the user terminal includes:
and receiving a sticker identifier and terminal information sent by a user terminal, wherein the terminal information is acquired by the user terminal when the sticker identifier is determined to be generated.
In a possible design, the determining, according to the sticker identifier and the terminal information, a target model corresponding to the sticker identifier includes:
acquiring a corresponding target algorithm according to the sticker identifier, and determining a target model identifier corresponding to the target algorithm;
and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
In one possible design, the receiving the sticker identifier and the terminal information sent by the user terminal includes:
receiving a sticker identifier sent by a user terminal, and judging whether a corresponding target algorithm exists according to the sticker identifier;
if the corresponding target algorithm exists, the target algorithm is sent to the user terminal so that the user terminal can determine a target model identification corresponding to the target algorithm;
receiving a target model identification and terminal information sent by the user terminal;
correspondingly, according to the sticker identifier and the terminal information, determining the target model corresponding to the sticker identifier includes:
and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
In one possible design, the terminal information includes network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
In a second aspect, an embodiment of the present disclosure provides a method for adding a video sticker, including:
determining a sticker identifier according to the operation of a user;
sending the sticker identifier and the terminal information to a cloud server so that the cloud server can determine a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
receiving a target model sent by the cloud server;
and rendering the target model in a preset video program to obtain a corresponding sticker effect.
In one possible design, the sending the sticker identifier and the terminal information to a cloud server includes:
when the sticker identifier is determined, acquiring terminal information corresponding to the user terminal;
and sending the sticker identification and the terminal information to a cloud server.
In one possible design, the sending the sticker identifier and the terminal information to a cloud server, so that the cloud server determines a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information, includes:
sending the sticker identifier to the cloud server so that the cloud server can obtain a corresponding target algorithm according to the sticker identifier;
receiving the target algorithm sent by the cloud server, and determining a target model identification corresponding to the target algorithm;
and sending the target model identification and the terminal information to the cloud server so that the cloud server determines a target model corresponding to the target model identification according to the target model identification and the terminal information.
In one possible design, the terminal information includes network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
In a third aspect, an embodiment of the present disclosure provides an adding apparatus for video stickers, including:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a sticker identifier and terminal information sent by a user terminal, and the sticker identifier is generated by the user terminal according to the operation of a user;
the first determining module is used for determining a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
and the first sending module is used for sending the target model to the user terminal so that the user terminal can render in a preset video program according to the target model to obtain a corresponding sticker effect.
In a possible design, the first receiving module is specifically configured to receive a sticker identifier and terminal information sent by a user terminal, where the terminal information is obtained by the user terminal when the sticker identifier is determined to be generated.
In one possible design, the first determining module is specifically configured to obtain a corresponding target algorithm according to the sticker identifier, and determine a target model identifier corresponding to the target algorithm;
and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
In a possible design, the first receiving module is further specifically configured to receive a sticker identifier sent by a user terminal, and determine whether a corresponding target algorithm exists according to the sticker identifier;
if the corresponding target algorithm exists, the target algorithm is sent to the user terminal so that the user terminal can determine a target model identification corresponding to the target algorithm;
receiving a target model identification and terminal information sent by the user terminal;
the first determining module is further specifically configured to determine, according to the target model identifier and the terminal information, a target model corresponding to the target model identifier.
In a fourth aspect, an embodiment of the present disclosure provides an adding apparatus for video stickers, including:
the second determining module is used for determining the sticker identifier according to the operation of the user;
the second sending module is used for sending the sticker identifier and the terminal information to a cloud server so that the cloud server can determine a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
the second receiving module is used for receiving the target model sent by the cloud server;
and the rendering module is used for rendering the target model in a preset video program to obtain a corresponding sticker effect.
In a possible design, the second sending module is specifically configured to, when the sticker identifier is determined, obtain terminal information corresponding to the user terminal;
and sending the sticker identification and the terminal information to a cloud server.
In one possible design, the second sending module is further specifically configured to send the sticker identifier to the cloud server, so that the cloud server obtains a corresponding target algorithm according to the sticker identifier;
receiving the target algorithm sent by the cloud server, and determining a target model identification corresponding to the target algorithm;
and sending the target model identification and the terminal information to the cloud server so that the cloud server determines a target model corresponding to the target model identification according to the target model identification and the terminal information.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of adding video stickers as described above in the first aspect and in various possible designs of the first aspect.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of adding video stickers as set forth in the second aspect above and in various possible designs of the second aspect.
In a seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method for adding a video sticker is implemented as described in the first aspect and various possible designs of the first aspect.
In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method for adding a video sticker is implemented as described in the second aspect and various possible designs of the second aspect.
According to the method, the device and the electronic equipment for adding the video sticker, the sticker identification and the terminal information sent by the user terminal are received, the target model corresponding to the sticker identification is determined according to the sticker identification and the terminal information, the target model is sent to the user terminal, and the user terminal obtains the corresponding sticker effect by rendering in the preset video program according to the target model.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic diagram of an application scenario of a method for adding a video sticker according to an embodiment of the present disclosure;
fig. 2 is a first flowchart illustrating a method for adding a video sticker according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart illustrating a video sticker adding method according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart illustrating a third method for adding a video sticker according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of a method for adding a video sticker according to an embodiment of the present disclosure;
FIG. 6 is a block diagram illustrating an exemplary embodiment of a video sticker adding apparatus;
FIG. 7 is a block diagram of a video sticker adding apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a method for adding a video sticker according to an embodiment of the present disclosure. As shown in fig. 1, the system provided in this embodiment includes a user terminal 101 and a cloud server 102. The user terminal 101 may be a child story machine, a mobile phone, a tablet, a vehicle-mounted terminal, or the like. The embodiment does not particularly limit the implementation manner of the user terminal 101 as long as the user terminal 101 has a video recording or photographing function.
Among them, the terminal Device 101 may be a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Media Player (PMP), a car terminal (e.g., car navigation terminal), and the like, which a user needs to be debugged, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The cloud server 102 may be a single server or a cluster of multiple servers.
Referring to fig. 2, fig. 2 is a first flowchart illustrating a method for adding a video sticker according to an embodiment of the present disclosure. The method of the embodiment can be applied to a cloud server, and the method for adding the video sticker comprises the following steps:
s201: and receiving a sticker identifier and terminal information sent by a user terminal, wherein the sticker identifier is generated by the user terminal according to the operation of a user.
In the embodiment, the sticker identifier and the terminal information sent by the user terminal can be received simultaneously; or receiving the sticker identifier sent by the user terminal, and then receiving the terminal information sent by the terminal according to the algorithm after the algorithm corresponding to the sticker identifier is confirmed.
The sticker identifier may be in an array format, and the disclosure is not limited in any way. The user terminal may be operated with a preset video program, and the terminal information may be information related to a network environment of the user terminal, a terminal type, a version of the preset video program, and the like. The terminal information may include network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
Specifically, the user terminal may generate the sticker identifier according to a touch screen operation of the user on a screen of the user terminal, or preset according to a key operation of the user on the user terminal. For example, a video program is run on the user terminal, and a user generates a sticker identifier by touching a sticker adding touch control corresponding to the video program on the screen of the user terminal.
S202: and determining a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information.
The target model is used for rendering a model which obtains a sticker effect corresponding to the sticker identifier on the user terminal.
In this embodiment, the target algorithm corresponding to the sticker identifier may be obtained according to the sticker identifier, the target model identifier may be determined according to the target algorithm, and the corresponding target model may be determined according to the target model identifier and the terminal information. And the target algorithm is used for identifying the target model identification corresponding to the sticker identification. The target model identification may correspond to a correspondence of a plurality of terminal information and models.
S203: and sending the target model to the user terminal so that the user terminal renders in a preset video program according to the target model to obtain a corresponding sticker effect.
In this embodiment, the target model is used to render a sticker effect corresponding to the sticker identifier on the user terminal. For example, a sticker identifier corresponding to a little bear sent by a user terminal is received, and terminal information sent by the user terminal is received as an android system, then the corresponding relation between the sticker identifier and the algorithm is inquired according to the sticker identifier of the little bear, a target algorithm of the little bear corresponding to the sticker identifier of the little bear is obtained, a target model identifier is determined according to the target algorithm of the little bear, the target model identifier can correspond to a plurality of models, then a target model of the sticker of the little bear is determined from the plurality of models corresponding to the target model identifier according to the terminal information of the android system, and the user terminal renders the target model of the sticker of the little bear in a preset video program to obtain a corresponding sticker effect.
According to the above description, the sticker identification and the terminal information sent by the user terminal are received, the target model corresponding to the sticker identification is determined according to the sticker identification and the terminal information, the target model is sent to the user terminal, and the user terminal obtains the corresponding sticker effect according to the target model in the preset video program in a rendering mode.
Referring to fig. 3, fig. 3 is a schematic flow chart of a video sticker adding method according to an embodiment of the present disclosure. On the basis of the above embodiment of fig. 1, this embodiment describes in detail how to implement the process of adding the video sticker on the basis of a small amount of interaction performed by the user terminal, which is detailed as follows:
s301: and receiving a sticker identifier and terminal information sent by a user terminal, wherein the terminal information is acquired by the user terminal when the sticker identifier is determined to be generated.
In this embodiment, the user terminal may simultaneously obtain the terminal information of the user terminal when generating the sticker identifier according to the operation of the user, and encapsulate the sticker identifier and the terminal information in the same data packet for transmission.
S302: and acquiring a corresponding target algorithm according to the sticker identifier, and determining a target model identifier corresponding to the target algorithm.
S303: and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
Specifically, the corresponding relationship between the pre-stored sticker identifier and the algorithm can be queried to obtain a target algorithm corresponding to the sticker identifier; and inquiring the corresponding relation between the prestored algorithm and the model identification to obtain a target model identification corresponding to the target algorithm, and finally inquiring the corresponding relation between the terminal information in the target model identification and the model to obtain a target model corresponding to the terminal information of the user terminal in the target model identification.
The terminal information may include network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program, for example, a correspondence between a model corresponding to the target model identifier and the terminal information may be as shown in table 1 below:
TABLE 1 correspondence between models and terminal information
Figure GDA0002140334100000081
S304: and sending the target model to the user terminal so that the user terminal renders in a preset video program according to the target model to obtain a corresponding sticker effect.
The description of step S304 is consistent with the content of step S203, please refer to the related discussion of step S203, which is not repeated herein.
As can be seen from the above description, by sending the sticker identifier and the terminal information at the same time, the number of interactions between the user terminal and the cloud server can be reduced, and the data transmission time can be saved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a third method for adding a video sticker according to an embodiment of the present disclosure. On the basis of the above embodiment of fig. 1, this embodiment describes in detail how to ensure that the corresponding target model can be determined according to the added sticker identifier, which is detailed as follows:
s401: and receiving a sticker identifier sent by a user terminal, and judging whether a corresponding target algorithm exists according to the sticker identifier.
In this embodiment, the corresponding relationship between the pre-stored sticker identifier and the algorithm may be queried to obtain the target algorithm corresponding to the sticker identifier.
S402: and if the corresponding target algorithm exists, sending the target algorithm to the user terminal so that the user terminal determines a target model identifier corresponding to the target algorithm.
In this embodiment, the user terminal may query a pre-stored correspondence between the algorithm and the model identifier to obtain a target model identifier corresponding to the target algorithm. The target model identification corresponds to the corresponding relation between the plurality of models and the terminal information.
S403: and receiving the target model identification and the terminal information sent by the user terminal.
S404: and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
In this embodiment, the corresponding relationship between the terminal information and the model in the model identifier is queried to obtain the target model corresponding to the target model identifier
S405: and sending the target model to the user terminal so that the user terminal renders in a preset video program according to the target model to obtain a corresponding sticker effect.
The description of step S405 is consistent with the content of step S203, please refer to the related discussion of step S203, which is not repeated herein.
According to the description, whether the corresponding target algorithm exists or not is judged according to the sticker identifiers, the added sticker identifiers can be ensured to determine the corresponding target models, and the success rate of sticker identifier identification is improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of a method for adding a video sticker according to an embodiment of the present disclosure. The method of the embodiment can be applied to a user terminal, and the method for adding the video sticker comprises the following steps:
s501: and determining the sticker identifier according to the operation of the user.
In this embodiment, the user terminal may generate the sticker identifier according to a touch screen operation of the user on a screen of the user terminal. For example, a video program is run on the user terminal, and a sticker identifier is generated by touching a sticker adding control corresponding to the video program on the screen of the user terminal by the user.
S502: and sending the sticker identification and the terminal information to a cloud server so that the cloud server determines a target model corresponding to the sticker identification according to the sticker identification and the terminal information.
S503: and receiving the target model sent by the cloud server.
S504: and rendering the target model in a preset video program to obtain a corresponding sticker effect.
From the above description, through confirming the sticker sign according to user operation, send sticker sign and terminal information to high in the clouds server, so that the high in the clouds server basis sticker sign and terminal information are confirmed the target model that the sticker sign corresponds receives the target model that the high in the clouds server sent, and according to the target model is played up at preset video program and is obtained corresponding sticker effect, this disclosed embodiment need not save a large amount of model data at local video in the procedure, can save a large amount of storage space, improves user terminal's operating efficiency.
In an embodiment of the present disclosure, on the basis of the embodiment of fig. 5, the sending the sticker identifier and the terminal information to the cloud server in step S502 includes:
when the sticker identifier is determined, acquiring terminal information corresponding to the user terminal;
and sending the sticker identification and the terminal information to a cloud server.
As can be seen from the above description, by sending the sticker identifier and the terminal information at the same time, the number of interactions between the user terminal and the cloud server can be reduced, and the data transmission time can be saved.
In an embodiment of the present disclosure, on the basis of the embodiment of fig. 5, the sending, in step S502, the sticker identifier and the terminal information to a cloud server, so that the cloud server determines, according to the sticker identifier and the terminal information, a target model corresponding to the sticker identifier, includes:
sending the sticker identifier to the cloud server so that the cloud server can obtain a corresponding target algorithm according to the sticker identifier;
receiving the target algorithm sent by the cloud server, and determining a target model identification corresponding to the target algorithm;
and sending the target model identification and the terminal information to the cloud server so that the cloud server determines a target model corresponding to the target model identification according to the target model identification and the terminal information.
According to the description, whether the corresponding target algorithm exists or not is judged according to the sticker identifiers, the added sticker identifiers can be ensured to determine the corresponding target models, and the success rate of sticker identifier identification is improved.
Fig. 6 is a first structural block diagram of an adding apparatus for video stickers provided in the embodiment of the present disclosure, corresponding to the adding method of video stickers in the embodiments of fig. 2 to fig. 4 above. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 6, the apparatus 60 includes: a first receiving module 601, a first determining module 602 and a first transmitting module 603.
A first receiving module 601, configured to receive a sticker identifier and terminal information sent by a user terminal, where the sticker identifier is generated by the user terminal according to an operation of a user;
a first determining module 602, configured to determine, according to the sticker identifier and the terminal information, a target model corresponding to the sticker identifier;
a first sending module 603, configured to send the target model to the user terminal, so that the user terminal renders in a preset video program according to the target model to obtain a corresponding sticker effect.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
In an embodiment of the present disclosure, the first receiving module 601 is specifically configured to receive a sticker identifier and terminal information sent by a user terminal, where the terminal information is obtained by the user terminal when determining to generate the sticker identifier.
In an embodiment of the present disclosure, the first determining module 602 is specifically configured to obtain a corresponding target algorithm according to the sticker identifier, and determine a target model identifier corresponding to the target algorithm;
and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
In an embodiment of the present disclosure, the first receiving module 601 is further specifically configured to receive a sticker identifier sent by a user terminal, and determine whether a corresponding target algorithm exists according to the sticker identifier;
if the corresponding target algorithm exists, the target algorithm is sent to the user terminal so that the user terminal can determine a target model identification corresponding to the target algorithm;
receiving a target model identification and terminal information sent by the user terminal;
the first determining module 602 is further specifically configured to determine, according to the target model identifier and the terminal information, a target model corresponding to the target model identifier.
In an embodiment of the present disclosure, the terminal information includes network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
Fig. 7 is a block diagram of a structure of a video sticker adding apparatus according to an embodiment of the present disclosure, which corresponds to the video sticker adding method in the embodiment of fig. 5 above. For ease of illustration, only portions that are relevant to embodiments of the present disclosure are shown. Referring to fig. 7, the apparatus 70 includes: a second determining module 701, a second sending module 702, a second receiving module 703 and a rendering module 704.
A second determining module 701, configured to determine a sticker identifier according to an operation of a user;
a second sending module 702, configured to send the sticker identifier and the terminal information to a cloud server, so that the cloud server determines, according to the sticker identifier and the terminal information, a target model corresponding to the sticker identifier;
a second receiving module 703, configured to receive the target model sent by the cloud server;
and the rendering module 704 is configured to render the target model in a preset video program to obtain a corresponding sticker effect.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
In an embodiment of the present disclosure, the second sending module 702 is specifically configured to, when the sticker identifier is determined, obtain terminal information corresponding to the user terminal;
and sending the sticker identification and the terminal information to a cloud server.
In an embodiment of the disclosure, the second sending module 702 is further specifically configured to send the sticker identifier to the cloud server, so that the cloud server obtains a corresponding target algorithm according to the sticker identifier;
receiving the target algorithm sent by the cloud server, and determining a target model identification corresponding to the target algorithm;
and sending the target model identification and the terminal information to the cloud server so that the cloud server determines a target model corresponding to the target model identification according to the target model identification and the terminal information.
In an embodiment of the present disclosure, the terminal information includes network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
Referring to fig. 8, a schematic structural diagram of an electronic device 900 suitable for implementing the embodiment of the present disclosure is shown, where the electronic device 900 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, the electronic device 900 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 901, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage means 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic apparatus 900 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 8 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing apparatus 901.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming 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. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, 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 the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (12)

1. A method for adding video stickers is applied to a cloud server and comprises the following steps:
receiving a sticker identifier and terminal information sent by a user terminal, wherein the sticker identifier is generated by the user terminal according to the operation of a user;
determining a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
sending the target model to the user terminal so that the user terminal can obtain a corresponding sticker effect by rendering in a preset video program according to the target model;
receiving the sticker identification and the terminal information sent by the user terminal, comprising: receiving a sticker identifier and terminal information sent by a user terminal, wherein the terminal information is acquired by the user terminal when the sticker identifier is determined to be generated;
according to the sticker identification and the terminal information, determining a target model corresponding to the sticker identification comprises the following steps: acquiring a corresponding target algorithm according to the sticker identifier, and determining a target model identifier corresponding to the target algorithm; and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
2. The method according to claim 1, wherein the receiving the sticker identifier and the terminal information sent by the user terminal comprises:
receiving a sticker identifier sent by a user terminal, and judging whether a corresponding target algorithm exists according to the sticker identifier;
if the corresponding target algorithm exists, the target algorithm is sent to the user terminal so that the user terminal can determine a target model identification corresponding to the target algorithm;
receiving a target model identification and terminal information sent by the user terminal;
correspondingly, according to the sticker identifier and the terminal information, determining the target model corresponding to the sticker identifier includes:
and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
3. The method according to claim 1 or 2, wherein the terminal information includes network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
4. A method for adding video stickers is characterized by comprising the following steps:
determining a sticker identifier according to the operation of a user;
sending the sticker identifier and the terminal information to a cloud server so that the cloud server can determine a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
receiving a target model sent by the cloud server;
rendering the target model in a preset video program to obtain a corresponding sticker effect;
send sticker sign and terminal information to high in the clouds server includes: when the sticker identifier is determined, acquiring terminal information corresponding to the user terminal; sending the sticker identification and the terminal information to a cloud server;
the sticker identification and the terminal information are sent to a cloud server, so that the cloud server can determine the target model corresponding to the sticker identification according to the sticker identification and the terminal information, and the method comprises the following steps: sending the sticker identifier to the cloud server so that the cloud server can obtain a corresponding target algorithm according to the sticker identifier; receiving the target algorithm sent by the cloud server, and determining a target model identification corresponding to the target algorithm; and sending the target model identification and the terminal information to the cloud server so that the cloud server determines a target model corresponding to the target model identification according to the target model identification and the terminal information.
5. The method according to claim 4, wherein the terminal information includes network environment information to which the user terminal belongs, terminal type information, and version information of the preset video program.
6. The utility model provides a video sticker add device, its characterized in that, the device is applied to high in the clouds server, includes:
the system comprises a first receiving module, a second receiving module and a display module, wherein the first receiving module is used for receiving a sticker identifier and terminal information sent by a user terminal, and the sticker identifier is generated by the user terminal according to the operation of a user;
the first determining module is used for determining a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
the first sending module is used for sending the target model to the user terminal so that the user terminal can render in a preset video program according to the target model to obtain a corresponding sticker effect;
the first receiving module is specifically configured to receive a sticker identifier and terminal information sent by a user terminal, where the terminal information is obtained by the user terminal when the sticker identifier is determined to be generated;
the first determining module is specifically configured to obtain a corresponding target algorithm according to the sticker identifier, and determine a target model identifier corresponding to the target algorithm; and determining a target model corresponding to the target model identification according to the target model identification and the terminal information.
7. The apparatus according to claim 6, wherein the first receiving module is further specifically configured to receive a sticker identifier sent by a user terminal, and determine whether a corresponding target algorithm exists according to the sticker identifier;
if the corresponding target algorithm exists, the target algorithm is sent to the user terminal so that the user terminal can determine a target model identification corresponding to the target algorithm;
receiving a target model identification and terminal information sent by the user terminal;
the first determining module is further specifically configured to determine, according to the target model identifier and the terminal information, a target model corresponding to the target model identifier.
8. An adding device of video paster is characterized by comprising:
the second determining module is used for determining the sticker identifier according to the operation of the user;
the second sending module is used for sending the sticker identifier and the terminal information to a cloud server so that the cloud server can determine a target model corresponding to the sticker identifier according to the sticker identifier and the terminal information;
the second receiving module is used for receiving the target model sent by the cloud server;
the rendering module is used for rendering the target model in a preset video program to obtain a corresponding sticker effect;
the second sending module is specifically configured to, when the sticker identifier is determined, obtain terminal information corresponding to the user terminal; sending the sticker identification and the terminal information to a cloud server;
the second sending module is further specifically configured to send the sticker identifier to the cloud server, so that the cloud server obtains a corresponding target algorithm according to the sticker identifier; receiving the target algorithm sent by the cloud server, and determining a target model identification corresponding to the target algorithm; and sending the target model identification and the terminal information to the cloud server so that the cloud server determines a target model corresponding to the target model identification according to the target model identification and the terminal information.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the memory-stored computer-executable instructions cause the at least one processor to perform the method of adding a video sticker of any one of claims 1-3.
10. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the memory-stored computer-executable instructions cause the at least one processor to perform the method of adding a video sticker of any one of claims 4-5.
11. A computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the method of adding video stickers as claimed in any one of claims 1 to 3.
12. A computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the method of adding video stickers according to any one of claims 4 to 5.
CN201910472521.XA 2019-05-31 2019-05-31 Video sticker adding method and device and electronic equipment Active CN112019919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910472521.XA CN112019919B (en) 2019-05-31 2019-05-31 Video sticker adding method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910472521.XA CN112019919B (en) 2019-05-31 2019-05-31 Video sticker adding method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112019919A CN112019919A (en) 2020-12-01
CN112019919B true CN112019919B (en) 2022-03-15

Family

ID=73506383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910472521.XA Active CN112019919B (en) 2019-05-31 2019-05-31 Video sticker adding method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112019919B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700769A (en) * 2015-12-31 2016-06-22 宇龙计算机通信科技(深圳)有限公司 Dynamic material adding method, dynamic material adding device and electronic equipment
CN105791692A (en) * 2016-03-14 2016-07-20 腾讯科技(深圳)有限公司 Information processing method and terminal
CN106373170A (en) * 2016-08-31 2017-02-01 北京云图微动科技有限公司 Video making method and video making device
CN109033393A (en) * 2018-07-31 2018-12-18 Oppo广东移动通信有限公司 Paster processing method, device, storage medium and electronic equipment
CN109086401A (en) * 2018-07-31 2018-12-25 Oppo广东移动通信有限公司 Paster acquisition methods, device, storage medium and electronic equipment
CN109495791A (en) * 2018-11-30 2019-03-19 北京字节跳动网络技术有限公司 A kind of adding method, device, electronic equipment and the readable medium of video paster
CN109660855A (en) * 2018-12-19 2019-04-19 北京达佳互联信息技术有限公司 Paster display methods, device, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101944112B1 (en) * 2016-12-22 2019-04-17 주식회사 시어스랩 Method and apparatus for creating user-created sticker, system for sharing user-created sticker

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700769A (en) * 2015-12-31 2016-06-22 宇龙计算机通信科技(深圳)有限公司 Dynamic material adding method, dynamic material adding device and electronic equipment
CN105791692A (en) * 2016-03-14 2016-07-20 腾讯科技(深圳)有限公司 Information processing method and terminal
CN106373170A (en) * 2016-08-31 2017-02-01 北京云图微动科技有限公司 Video making method and video making device
CN109033393A (en) * 2018-07-31 2018-12-18 Oppo广东移动通信有限公司 Paster processing method, device, storage medium and electronic equipment
CN109086401A (en) * 2018-07-31 2018-12-25 Oppo广东移动通信有限公司 Paster acquisition methods, device, storage medium and electronic equipment
CN109495791A (en) * 2018-11-30 2019-03-19 北京字节跳动网络技术有限公司 A kind of adding method, device, electronic equipment and the readable medium of video paster
CN109660855A (en) * 2018-12-19 2019-04-19 北京达佳互联信息技术有限公司 Paster display methods, device, terminal and storage medium

Also Published As

Publication number Publication date
CN112019919A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
US20220053068A1 (en) Methods, apparatuses and computer storage media for applet state synchronization
US11711441B2 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN109582310B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110072151B (en) Virtual gift display method, electronic device and computer-readable storage medium
JP6906584B2 (en) Methods and equipment for waking up devices
CN110177300B (en) Program running state monitoring method and device, electronic equipment and storage medium
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
CN109618216B (en) Method, device and equipment for displaying video loading state identification and storage medium
CN109582274B (en) Volume adjusting method and device, electronic equipment and computer readable storage medium
US20220408143A1 (en) Control setting method and apparatus, electronic device and interaction system
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN113766303B (en) Multi-screen interaction method, device, equipment and storage medium
US20240007591A1 (en) Method and apparatus of interaction video connection, electronic device, and storage medium
CN111246245A (en) Method and device for pushing video aggregation page, server and terminal equipment
CN111290861B (en) Message processing method and device and electronic equipment
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN112019919B (en) Video sticker adding method and device and electronic equipment
CN110917625B (en) Game equipment display method and device, electronic equipment and storage medium
CN114038465B (en) Voice processing method and device and electronic equipment
CN112203103B (en) Message processing method, device, electronic equipment and computer readable storage medium
CN113709573B (en) Method, device, equipment and storage medium for configuring video special effects
CN111212296B (en) Live broadcast room gift list configuration method, device, medium and electronic equipment
CN114741193A (en) Scene rendering method and device, computer readable medium and electronic equipment
CN114489891A (en) Control method, system, device, readable medium and equipment of cloud application program
CN111367592B (en) Information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant