CN108418890B - Face special effect resource generation method, device and system and readable storage medium - Google Patents

Face special effect resource generation method, device and system and readable storage medium Download PDF

Info

Publication number
CN108418890B
CN108418890B CN201810215426.7A CN201810215426A CN108418890B CN 108418890 B CN108418890 B CN 108418890B CN 201810215426 A CN201810215426 A CN 201810215426A CN 108418890 B CN108418890 B CN 108418890B
Authority
CN
China
Prior art keywords
resource
special effect
face special
server
activity item
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
CN201810215426.7A
Other languages
Chinese (zh)
Other versions
CN108418890A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810215426.7A priority Critical patent/CN108418890B/en
Publication of CN108418890A publication Critical patent/CN108418890A/en
Application granted granted Critical
Publication of CN108418890B publication Critical patent/CN108418890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method, a device and a system for generating face special effect resources and a readable storage medium. The method comprises the following steps: the user terminal responds to the establishment instruction of the resource type and establishes the resource type of the face special effect resource; responding to a setup instruction for triggering downloading of the activity item, and setting up a triggered downloading activity item corresponding to the resource type; responding to an uploading instruction of the face special effect resources, and uploading the corresponding face special effect resources to a corresponding folder in a server; the server returns a corresponding URL field to the user terminal according to the uploaded face special effect resource; and the user terminal generates a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sends the static resource file to the server. Therefore, the access of the flow can be effectively controlled in the peak period of the flow, the face special effect resource is provided in a staticized mode, the access flow of the server can be reduced, and the face special effect resource used by the mobile terminal can be effectively provided.

Description

Face special effect resource generation method, device and system and readable storage medium
Technical Field
The invention relates to the field of live broadcast interaction, in particular to a method, a device and a system for generating face special effect resources and a readable storage medium.
Background
Currently, gift appreciation systems of internet live broadcast platforms are commonly used, appreciation systems of Web end live broadcast websites generally use special effects of a bullet screen area gift, but special effect display of some special properties, such as face matching special effect display commonly used in video technology, is no longer satisfied by using special effect resources of a Web end, and the special effect of a bullet screen area is displayed in a video, so that the special effect form of the bullet screen area is no longer suitable for face special effect technology. The face special effect is used as a part of special effects in the gift system, is only used by a mobile terminal due to the particularity of the face special effect, and realizes a method for displaying the face special effect. Currently, special effect resources adopted at a mobile terminal are provided in a dynamic mode, so that when the flow of the mobile terminal is in a peak period, the access flow of a server is increased, and huge pressure of the server is caused.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, an object of the present invention is to provide a method, an apparatus, a system, and a readable storage medium for generating a face special effect resource, which can effectively control access to traffic during a peak period of traffic, provide the face special effect resource in a static manner, reduce access traffic of a server, and effectively provide the face special effect resource used by a mobile terminal.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
with reference to the first aspect, an embodiment of the present invention provides a method for generating a face special effect resource, where the method is applied to a user terminal and a server that are in communication connection with each other, and the method includes:
the user terminal responds to a resource type establishing instruction and establishes a resource type of the face special effect resource, wherein the resource type is used for identifying the face special effect resource;
responding to an establishment instruction of a trigger downloading activity item, establishing a trigger downloading activity item corresponding to the resource type, wherein the trigger downloading activity item is used for identifying the file name of the downloaded face special effect resource;
responding to an uploading instruction of the face special effect resources, and uploading the corresponding face special effect resources to a corresponding folder in a server;
the server returns a corresponding URL field to the user terminal according to the uploaded face special effect resource, wherein the URL field is a field for downloading the face special effect resource;
and the user terminal generates a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sends the static resource file to the server.
In this embodiment of the present invention, the server is further communicatively connected to a mobile terminal, and after the step of the user terminal generating a static resource file based on the URL field, the resource type, and a trigger download activity item, and sending the static resource file to the server, the method further includes:
the server sends the static resource file to the mobile terminal;
the mobile terminal responds to user operation, analyzes the URL field, the resource type and the trigger downloading activity item in the static resource file, and sends a corresponding face special effect resource downloading request to the server based on the URL field, the resource type and the trigger downloading activity item;
and the server responds to the face special effect resource downloading request and sends the corresponding face special effect resource to the mobile terminal.
In this embodiment of the present invention, after the step of sending the corresponding face special effect resource to the mobile terminal by the server in response to the download request of the face special effect resource, the method further includes:
and the mobile terminal responds to the user operation and generates a face special effect corresponding to the face special effect resource on the face area in the current display picture.
In this embodiment of the present invention, after the step of establishing the resource type of the face special effect resource by the user terminal responding to the establishment instruction of the resource type, the method further includes:
the user terminal judges whether the resource type of the face special effect resource is established successfully or not;
if not, prompting the user that the new resource type is failed.
In this embodiment of the present invention, after the step of responding to the establishment instruction for triggering downloading of the active item and establishing the download-triggering active item corresponding to the resource type, the method further includes:
the user terminal judges whether the trigger downloading activity item is established successfully or not;
if not, prompting the user that the new trigger download activity item fails.
With reference to the second aspect, an embodiment of the present invention further provides a method for generating a face special effect resource, where the method is applied to a user terminal in communication connection with a server, and the method includes:
responding to a resource type establishing instruction, and establishing a resource type of the face special effect resource, wherein the resource type is used for identifying the face special effect resource;
responding to an establishment instruction of a trigger downloading activity item, establishing a trigger downloading activity item corresponding to the resource type, wherein the trigger downloading activity item is used for identifying the file name of the downloaded face special effect resource;
responding to an uploading instruction of the face special effect resource, uploading the corresponding face special effect resource to a corresponding folder in a server, so that the server returns a corresponding URL field according to the uploaded face special effect resource, wherein the URL field is a field for downloading the face special effect resource;
and generating a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sending the static resource file to the server.
With reference to the third aspect, an embodiment of the present invention further provides a face special effect resource generating device, which is applied to a user terminal communicatively connected to a server, where the device includes:
the first establishing module is used for responding to an establishing instruction of a resource type and establishing the resource type of the face special effect resource, wherein the resource type is used for identifying the face special effect resource;
the second establishing module is used for responding to an establishing instruction for triggering downloading of the activity item, and establishing a triggering downloading activity item corresponding to the resource type, wherein the triggering downloading activity item is used for identifying the file name of the downloaded face special effect resource;
the uploading module is used for responding to an uploading instruction of the face special effect resource and uploading the corresponding face special effect resource to a corresponding folder in a server so that the server returns a corresponding URL field according to the uploaded face special effect resource, wherein the URL field is a field for downloading the face special effect resource;
and the generating module is used for generating a static resource file based on the URL field, the resource type and the trigger downloading activity item and sending the static resource file to the server.
With reference to the fourth aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored, and when the computer program is executed, the method for generating face special effect resources is implemented.
With reference to the fifth aspect, an embodiment of the present invention further provides a face special effect resource generating system, where the face special effect resource generating system includes a user terminal and a server that are communicatively connected to each other.
The user terminal is used for responding to a resource type establishing instruction and establishing a resource type of the face special effect resource, and the resource type is used for identifying the face special effect resource;
responding to an establishment instruction of a trigger downloading activity item, establishing a trigger downloading activity item corresponding to the resource type, wherein the trigger downloading activity item is used for identifying the file name of the downloaded face special effect resource;
responding to an uploading instruction of the face special effect resources, and uploading the corresponding face special effect resources to a corresponding folder in a server;
the server is used for returning a corresponding URL field to the user terminal according to the uploaded face special effect resource, and the URL field is a field for downloading the face special effect resource;
and the user terminal is further used for generating a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sending the static resource file to the server.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a method, a device and a system for generating face special effect resources and a readable storage medium. Therefore, the access of the flow can be effectively controlled in the peak period of the flow, the face special effect resource is provided in a staticized mode, the access flow of the server can be reduced, and the face special effect resource used by the mobile terminal can be effectively provided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic view of an application scenario of a face special effect resource generation system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for generating face special effect resources according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a method for generating face special effect resources according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a structure of a user terminal for implementing the method for generating face special effect resources according to an embodiment of the present invention.
Icon: 100-a server; 200-a user terminal; 210-a memory; 220-a processor; 230-face special effect resource generating means; 231-a first setup module; 232-a second establishing module; 233-upload module; 234-a generation module; 300-mobile terminal.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a schematic view of an application scenario of the system for generating face special effect resources according to the embodiment of the present invention. In this embodiment, the face special effect resource generating system may include a user terminal 200, a server 100 in communication connection with the user terminal 200, and a mobile terminal 300 in communication connection with the server 100.
In this embodiment of the present invention, the user terminal 200 may be, but is not limited to, an electronic device with data processing capability, such as a personal computer, a notebook computer, and the like, and may be used to establish a resource type of a facial special effect resource and trigger downloading of an activity item, and the like.
In the embodiment of the present invention, the mobile terminal 300 may be configured to display a special face effect in a current live frame. According to some embodiments of the present invention, the mobile terminal 300 may include: a processing device including an application processing section and a radio frequency/digital signal processor; a display screen; a keypad that may include physical keys, touch keys overlaid on a display, or a combination thereof; a subscriber identity module card; memory devices that may include ROM, RAM, flash memory, or any combination thereof; a Wi-Fi and/or Bluetooth interface; a wireless telephone interface; a power management circuit with an associated battery; a USB interface and a connector; an audio management system with associated microphone, speaker and headphone jack; and various optional accessory components such as cameras, global positioning systems, accelerators, etc.
In the present embodiment, the server 100 should be understood as a service point providing processes, databases, and communication facilities. By way of example, server 100 may refer to a single physical processor with associated communication and data storage and library facilities, or it may refer to a networked or clustered collection of processors, associated networks, and storage devices, and operating on software and one or more library systems and application software that support the services provided by server 100. The servers 100 may vary widely in configuration or performance, but the servers 100 may generally include one or more central processing units and memory units. Server 100 may also include one or more large storage devices, one or more power supplies, one or more wired or wireless network components, one or more input/output components, or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD.
In this embodiment of the present invention, the user terminal 200 is configured to respond to an establishment instruction of a resource type, and establish a resource type of a face special effect resource, where the resource type is used to identify the face special effect resource.
In this embodiment of the present invention, the user terminal 200 is further configured to respond to an establishment instruction for triggering downloading of an activity item, and establish a download-triggering activity item corresponding to the resource type, where the download-triggering activity item is used to identify a file name of a downloaded face special effect resource.
In the embodiment of the present invention, the user terminal 200 is further configured to respond to an uploading instruction of the face special effect resource, and upload the corresponding face special effect resource to a corresponding folder in the server 100;
in this embodiment of the present invention, the server 100 is configured to return a corresponding URL field to the user terminal 200 according to the uploaded face special effect resource, where the URL field is a field for downloading the face special effect resource.
In this embodiment of the present invention, the user terminal 200 is further configured to generate a static resource file based on the URL field, the resource type, and the trigger download activity item, and send the static resource file to the server 100.
Optionally, the server 100 is further configured to send the static resource file to the mobile terminal 300.
The mobile terminal 300 is further configured to respond to a user operation, parse the URL field, the resource type, and the trigger download activity item in the static resource file, and send a corresponding face special effect resource download request to the server 100 based on the URL field, the resource type, and the trigger download activity item.
The server 100 is further configured to respond to the face special effect resource downloading request and send a corresponding face special effect resource to the mobile terminal 300.
Referring to fig. 2, a flow chart of a method for generating face special effect resources according to an embodiment of the present invention is shown, where the method is executed by the face special effect resource generating system shown in fig. 1. It should be noted that the method for generating face special effect resources provided by the embodiment of the present invention is not limited by the specific sequence shown in fig. 2 and described below. The method comprises the following specific steps:
in step S110, the user terminal 200 responds to the establishment instruction of the resource type to establish the resource type of the face special effect resource.
In an embodiment, first, for the face special effect resource, an addtype (data) method may be adopted, and the resource type of the newly created face special effect resource is face _ total, and the face special effect resource is identified by the face _ total.
In order to ensure the reliability of establishing the resource types, optionally, this embodiment may further adopt an isSuccess () method to determine whether the resource types of the face special effect resources are successfully established, if not, the user is prompted to fail to establish the resource types, and if so, the process continues.
Step S120, responding to the establishment instruction of the trigger download activity item, and establishing the trigger download activity item corresponding to the resource type.
In an embodiment, according to the resource Type newly created in step S110, an addActive (data, Type) method may be used to create a triggered downloading activity item of the facial special effect resource, where the triggered downloading activity item is used to identify a file name for downloading the facial special effect resource, for example, start _ live may be added as the triggered downloading activity item, and if the triggered downloading activity item is start _ live, the downloaded facial special effect resource file is start _ live.
Similarly, in order to ensure the reliability of the establishment of the trigger download activity item, optionally, in this embodiment, an issucess () method may also be used to determine whether the new establishment of the trigger download activity item of the facial special effect resource is successful, if not, the user is prompted to fail to establish the new trigger download activity item, and if so, the process continues.
After the resource type of the face special effect resource and the trigger downloading activity item are created, the resource type and the trigger downloading activity item are stored by adopting MySQL. MySQL is a relational database management system, and the relational database stores data in different tables instead of putting all data in a large warehouse, so that the speed is increased and the flexibility is improved.
Step S130, responding to the uploading instruction of the face special effect resource, and uploading the corresponding face special effect resource to a corresponding folder in the server 100.
In the embodiment, the face special effect uploading inlet is newly added to upload the face special effect resource through the face special effect uploading inlet, and all the gifts with the face special effects are stored by using Redis because the face special effects still belong to one part of live gifts. Redis (remotedDictionaryServer) provides a number of rich data structures, including lists, cuts, ordereddets, and hashes, and of course strings like Memcached. Redis has a high performance as a high-efficiency network data caching function, and can support the read-write frequency of more than 100K per second.
In step S140, the server 100 returns a corresponding URL field to the user terminal 200 according to the uploaded face special effect resource.
The compressed package may be uploaded to a specific folder of the server 100 by using an uploadresource (file) method, and the URL field returned by the method is a field for downloading the facial special effect resource.
In step S150, the user terminal 200 generates a static resource file based on the URL field, the resource type, and the trigger download activity item, and sends the static resource file to the server 100.
In this embodiment, after the uploading of the face special effect resource is completed, the user terminal 200 may use the newly created resource type and the trigger download activity item, for example, the trigger download activity item start _ live may be used as a file name, the data type in the file is json character string data, and the resource type is a primary key (i.e., face _ total is a primary key), where the resource type includes a url field to identify an uploaded resource access path, an md5 field, and an md5 value of the resource file name, so as to complete static resource file (. json) generation.
Based on the above design, the method for generating the face special effect resource provided by this embodiment can effectively control the access of the traffic during the peak period of the traffic, and provide the face special effect resource in a static manner, so that the access traffic of the server 100 can be reduced, and the face special effect resource used by the mobile terminal 300 can be effectively provided.
Optionally, the server 100 may send the static resource file to the mobile terminal 300, by responding to a user operation, parses a URL field, a resource type, and a trigger download activity item in the static resource file, and sends a corresponding face special effect resource download request to the server 100 based on the URL field, the resource type, and the trigger download activity item, and the server 100 responds to the face special effect resource download request and sends a corresponding face special effect resource to the mobile terminal 300. For example, the mobile terminal 300 may access a start _ live. json static voluntary file when starting up, locate a static resource access URL in file data, and download a face special effect resource from the server 100, thereby completing static management of the whole face special effect resource.
Optionally, after downloading the face special effect resource, the mobile terminal 300 may further generate a face special effect corresponding to the face special effect resource on the face region in the current display screen by responding to a user operation, so that the face special effect gift presentation of the mobile terminal is completed.
Further, referring to fig. 3, an embodiment of the present invention further provides a method for generating a face special effect resource, which is different from the above embodiment, and is executed by the user terminal 200, it can be understood that steps involved in the method for generating a face special effect resource to be described next have been described in the above embodiment, specific details of each step may be described with reference to the above embodiment, and only the steps executed by the user terminal 200 are briefly described below.
Step S210, responding to the establishment instruction of the resource type, establishing the resource type of the face special effect resource, where the resource type is used to identify the face special effect resource.
Step S220, responding to the establishment instruction of the trigger download activity item, establishing the trigger download activity item corresponding to the resource type, wherein the trigger download activity item is used for identifying the file name of the downloaded face special effect resource.
Step S230, responding to the uploading instruction of the face special effect resource, uploading the corresponding face special effect resource to a corresponding folder in the server 100, so that the server 100 returns a corresponding URL field according to the uploaded face special effect resource, where the URL field is a field for downloading the face special effect resource.
Step S240, generating a static resource file based on the URL field, the resource type, and the trigger download activity item, and sending the static resource file to the server 100.
Further, please refer to fig. 4, which is a schematic diagram of a user terminal 200 for implementing the method for generating face special effect resources according to an embodiment of the present invention. In this embodiment, the user terminal 200 includes a face special effect resource generating device 230, a memory 210, and a processor 220. In a preferred embodiment of the present invention, the face special effects resource generating device 230 includes at least one software functional module which can be stored in the memory 210 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the user terminal 200. The processor 220 is configured to execute executable software modules stored in the memory 210, such as software functional modules and computer programs included in the face special effects resource generating device 230. In this embodiment, the face special effect resource generating device 230 may also be integrated into the operating system as a part of the operating system. Specifically, the face special effects resource generating device 230 may include:
the first establishing module 231 is configured to respond to an establishing instruction of a resource type, and establish the resource type of the face special effect resource, where the resource type is used to identify the face special effect resource.
The second establishing module 232 is configured to respond to an establishing instruction for triggering downloading of an activity item, and establish a triggered downloading activity item corresponding to the resource type, where the triggered downloading activity item is used to identify a file name of a downloaded facial special effect resource.
The uploading module 233 is configured to respond to an uploading instruction of the face special effect resource, and upload the corresponding face special effect resource to a corresponding folder in the server 100, so that the server 100 returns a corresponding URL field according to the uploaded face special effect resource, where the URL field is a field for downloading the face special effect resource.
A generating module 234, configured to generate a static resource file based on the URL field, the resource type, and the trigger download activity item, and send the static resource file to the server 100.
It can be understood that, for the specific operation method of each functional module in this embodiment, reference may be made to the detailed description of the corresponding step in the foregoing method embodiment, and no repeated description is provided herein.
Further, a readable storage medium is provided in a preferred embodiment of the present invention, and a computer program is stored in the readable storage medium, and when the computer program runs, the method for generating face special effect resources is implemented.
In summary, embodiments of the present invention provide a method, an apparatus, a system, and a readable storage medium for generating a face special effect resource, where a user terminal responds to an instruction for establishing a resource type, establishes a resource type of the face special effect resource, responds to an instruction for establishing a triggered download activity item, establishes a triggered download activity item corresponding to the resource type, responds to an instruction for uploading the face special effect resource, uploads the corresponding face special effect resource to a corresponding folder in a server, then the server returns a corresponding URL field to the user terminal according to the uploaded face special effect resource, and finally the user terminal generates a static resource file based on the URL field, the resource type, and the triggered download activity item, and sends the static resource file to the server. Therefore, the access of the flow can be effectively controlled in the peak period of the flow, the face special effect resource is provided in a staticized mode, the access flow of the server can be reduced, and the face special effect resource used by the mobile terminal can be effectively provided.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts 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 invention. 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.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A method for generating face special effect resources is applied to a user terminal and a server which are in communication connection with each other, and comprises the following steps:
the user terminal responds to a resource type establishing instruction and establishes a resource type of the face special effect resource, wherein the resource type is used for identifying the face special effect resource;
responding to an establishment instruction of a trigger downloading activity item, establishing a trigger downloading activity item corresponding to the resource type, wherein the trigger downloading activity item is used for identifying the file name of the downloaded face special effect resource;
responding to an uploading instruction of the face special effect resources, and uploading the corresponding face special effect resources to a corresponding folder in a server;
the server returns a corresponding URL field to the user terminal according to the uploaded face special effect resource, wherein the URL field is a field for downloading the face special effect resource;
and the user terminal generates a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sends the static resource file to the server.
2. The method of claim 1, wherein the server is further communicatively connected to a mobile terminal, and after the step of the user terminal generating a static resource file based on the URL field, the resource type, and a trigger download activity item, and sending the static resource file to the server, the method further comprises:
the server sends the static resource file to the mobile terminal;
the mobile terminal responds to user operation, analyzes the URL field, the resource type and the trigger downloading activity item in the static resource file, and sends a corresponding face special effect resource downloading request to the server based on the URL field, the resource type and the trigger downloading activity item;
and the server responds to the face special effect resource downloading request and sends the corresponding face special effect resource to the mobile terminal.
3. The method for generating face special effects resource according to claim 2, wherein after the step of the server sending the corresponding face special effects resource to the mobile terminal in response to the download request of the face special effects resource, the method further comprises:
and the mobile terminal responds to the user operation and generates a face special effect corresponding to the face special effect resource on the face area in the current display picture.
4. The method of claim 2, wherein after the step of establishing the resource type of the face special effect resource by the user terminal in response to the establishment instruction of the resource type, the method further comprises:
the user terminal judges whether the resource type of the face special effect resource is established successfully or not;
if not, prompting the user that the new resource type is failed.
5. The method for generating facial special effect resources according to claim 1, wherein after the step of establishing the download-triggering activity item corresponding to the resource type in response to the instruction for establishing the download-triggering activity item, the method further comprises:
the user terminal judges whether the trigger downloading activity item is established successfully or not;
if not, prompting the user that the new trigger download activity item fails.
6. A face special effect resource generation method is applied to a user terminal in communication connection with a server, and comprises the following steps:
responding to a resource type establishing instruction, and establishing a resource type of the face special effect resource, wherein the resource type is used for identifying the face special effect resource;
responding to an establishment instruction of a trigger downloading activity item, establishing a trigger downloading activity item corresponding to the resource type, wherein the trigger downloading activity item is used for identifying the file name of the downloaded face special effect resource;
responding to an uploading instruction of the face special effect resource, uploading the corresponding face special effect resource to a corresponding folder in a server, so that the server returns a corresponding URL field according to the uploaded face special effect resource, wherein the URL field is a field for downloading the face special effect resource;
and generating a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sending the static resource file to the server.
7. A face special effect resource generation device is applied to a user terminal which is in communication connection with a server, and the device comprises:
the first establishing module is used for responding to an establishing instruction of a resource type and establishing the resource type of the face special effect resource, wherein the resource type is used for identifying the face special effect resource;
the second establishing module is used for responding to an establishing instruction for triggering downloading of the activity item, and establishing a triggering downloading activity item corresponding to the resource type, wherein the triggering downloading activity item is used for identifying the file name of the downloaded face special effect resource;
the uploading module is used for responding to an uploading instruction of the face special effect resource and uploading the corresponding face special effect resource to a corresponding folder in a server so that the server returns a corresponding URL field according to the uploaded face special effect resource, wherein the URL field is a field for downloading the face special effect resource;
and the generating module is used for generating a static resource file based on the URL field, the resource type and the trigger downloading activity item and sending the static resource file to the server.
8. A readable storage medium, characterized in that a computer program is stored therein, which when executed implements the face special effects resource generation method of claim 6.
9. The face special effect resource generation system is characterized by comprising a user terminal and a server which are in communication connection with each other;
the user terminal is used for responding to a resource type establishing instruction and establishing a resource type of the face special effect resource, and the resource type is used for identifying the face special effect resource;
responding to an establishment instruction of a trigger downloading activity item, establishing a trigger downloading activity item corresponding to the resource type, wherein the trigger downloading activity item is used for identifying the file name of the downloaded face special effect resource;
responding to an uploading instruction of the face special effect resources, and uploading the corresponding face special effect resources to a corresponding folder in a server;
the server is used for returning a corresponding URL field to the user terminal according to the uploaded face special effect resource, and the URL field is a field for downloading the face special effect resource;
and the user terminal is further used for generating a static resource file based on the URL field, the resource type and the trigger downloading activity item, and sending the static resource file to the server.
10. The face special effects resource generation system of claim 9, further comprising a mobile terminal in communicative connection with the server;
the server is also used for sending the static resource file to the mobile terminal;
the mobile terminal is also used for responding to user operation, analyzing the URL field, the resource type and the trigger downloading activity item in the static resource file, and sending a corresponding face special effect resource downloading request to the server based on the URL field, the resource type and the trigger downloading activity item;
and the server is also used for responding to the face special effect resource downloading request and sending the corresponding face special effect resource to the mobile terminal.
CN201810215426.7A 2018-03-15 2018-03-15 Face special effect resource generation method, device and system and readable storage medium Active CN108418890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810215426.7A CN108418890B (en) 2018-03-15 2018-03-15 Face special effect resource generation method, device and system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810215426.7A CN108418890B (en) 2018-03-15 2018-03-15 Face special effect resource generation method, device and system and readable storage medium

Publications (2)

Publication Number Publication Date
CN108418890A CN108418890A (en) 2018-08-17
CN108418890B true CN108418890B (en) 2020-09-04

Family

ID=63131892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810215426.7A Active CN108418890B (en) 2018-03-15 2018-03-15 Face special effect resource generation method, device and system and readable storage medium

Country Status (1)

Country Link
CN (1) CN108418890B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10999608B2 (en) * 2019-03-29 2021-05-04 Danxiao Information Technology Ltd. Interactive online entertainment system and method for adding face effects to live video
CN110599396B (en) * 2019-09-19 2024-02-02 网易(杭州)网络有限公司 Information processing method and device
CN111222041A (en) * 2019-12-30 2020-06-02 北京达佳互联信息技术有限公司 Shooting resource data acquisition method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984244A (en) * 2012-11-21 2013-03-20 用友软件股份有限公司 Uploading system and uploading method of bill data
CN104836820A (en) * 2014-02-10 2015-08-12 阿里巴巴集团控股有限公司 Method and system for client interaction, and client terminals
CN106231415A (en) * 2016-08-18 2016-12-14 北京奇虎科技有限公司 A kind of interactive method and device adding face's specially good effect in net cast
CN106846040A (en) * 2016-12-22 2017-06-13 武汉斗鱼网络科技有限公司 Virtual present display methods and system in a kind of direct broadcasting room
CN107071580A (en) * 2017-03-20 2017-08-18 北京潘达互娱科技有限公司 Data processing method and device
CN107770602A (en) * 2016-08-19 2018-03-06 北京市商汤科技开发有限公司 Method of video image processing and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10025875B2 (en) * 2013-10-25 2018-07-17 Turner Broadcasting System, Inc. Concepts for providing an enhanced media presentation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984244A (en) * 2012-11-21 2013-03-20 用友软件股份有限公司 Uploading system and uploading method of bill data
CN104836820A (en) * 2014-02-10 2015-08-12 阿里巴巴集团控股有限公司 Method and system for client interaction, and client terminals
CN106231415A (en) * 2016-08-18 2016-12-14 北京奇虎科技有限公司 A kind of interactive method and device adding face's specially good effect in net cast
CN107770602A (en) * 2016-08-19 2018-03-06 北京市商汤科技开发有限公司 Method of video image processing and device
CN106846040A (en) * 2016-12-22 2017-06-13 武汉斗鱼网络科技有限公司 Virtual present display methods and system in a kind of direct broadcasting room
CN107071580A (en) * 2017-03-20 2017-08-18 北京潘达互娱科技有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN108418890A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN106095458B (en) The management method and device of plug-in unit in a kind of application program
CN108418890B (en) Face special effect resource generation method, device and system and readable storage medium
JP2014519632A (en) Customized launch of application
CN111580879A (en) Applet running method and device, electronic equipment and computer storage medium
CN112867988A (en) Implementing compliance settings by a mobile device to follow a configuration scenario
CN106293738B (en) Expression image updating method and device
CN111625381B (en) Method, device, equipment and storage medium for reproducing running scene of application program
CN111836067A (en) Method, device and equipment for processing live component information and storage medium
CN107644075B (en) Method and device for collecting page information
WO2019205555A1 (en) Method and apparatus for pushing message
US20170163787A1 (en) Method and electronic device for upgrading or downgrading system
US20160234244A1 (en) Physical device detection for a mobile application
CN103607431B (en) Mobile terminal resource processing method, device and equipment
US20170155712A1 (en) Method and device for updating cache data
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN103167014A (en) Method and device of sharing resources with browsers
CN105376636A (en) A verification code filling-in method, a verification code filling-in assisting method, an intelligent television set and an intelligent mobile terminal
CN104639973B (en) Information pushing method and device
WO2015003570A1 (en) Data downloading method,device and system thereof
CN108809815B (en) Method for updating unread number of session, session processing method, device and system
CN107819761B (en) Data processing method and device and readable storage medium
CN107168648B (en) File storage method and device and terminal
CN107343042B (en) Browser traffic hijacking method and device and mobile terminal
CN113873450B (en) Short message configuration method, device, computer equipment and storage medium
CN115563134A (en) Interaction method, interaction device, electronic equipment and computer readable medium

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