Expression generation method, device, server and storage medium

By receiving expression search requests on the server and generating image file addresses, asynchronously synthesizing and returning expression images, the problem of low expression generation efficiency in the existing technology is solved, and user experience and system performance are improved.

CN116170397BActive Publication Date: 2024-10-22BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310187486.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-10-22
Estimated Expiration
2043-02-21

AI Technical Summary

Technical Problem

The existing emoticon picture generation process requires all original emoticon pictures to be synthesized and then returned to the client, resulting in low efficiency and poor user experience.

Method used

By receiving the client's expression search request and image file address on the server, the image file address is generated based on the search statement and image identification information, and a preset number of target expression images are asynchronously synthesized on the file server and returned to the client for split search and the synthesis process to different services to achieve real-time search and asynchronous synthesis.

Benefits of technology

It improves expression generation efficiency, enhances user experience, reduces unnecessary synthesis and transmission processes, and improves system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170397B_ABST
    Figure CN116170397B_ABST
Patent Text Reader

Abstract

The expression generation method, device, server and storage medium provided by the embodiment of the present invention include searching for the picture identification information of the matching expression picture based on the search statement carried by the expression search request sent by the client; generating the picture file address corresponding to the expression picture based on the search statement and the picture identification information, and returning the picture file address to the client; triggering the file server to receive the file address request sent by the client carrying the picture file address and the expression quantity parameter, synthesizing the expression picture and the search statement into a target expression picture based on the picture file address and the expression quantity parameter, and returning the target expression picture to the client; wherein the expression quantity parameter is used to represent the maximum number of target expression pictures displayed on the current interface of the client. The present invention effectively splits the search and expression synthesis into different services, performs real-time search and asynchronous synthesis of a preset number of target expression pictures, thereby improving the expression generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an expression generation method, device, server and storage medium. Background Art

[0002] In chat and comment scenarios, users often use emoticons to help express information content. The current process of generating emoticons is that the server obtains the emoticon search statement sent by the client, searches for the emoticon identifier corresponding to the emoticon based on the emoticon search statement, and then downloads the original emoticon image corresponding to the emoticon identifier from the emoticon storage service client through the emoticon identifier. The original emoticon image and the emoticon search statement are then synthesized into an emoticon image, and the synthesized emoticon image is uploaded to the emoticon storage service client. Finally, the client accesses the emoticon storage service client, and the emoticon storage service client returns the emoticon image to the client for display so that the user can select and send the emoticon image.

[0003] Based on the above description, the emoticon image generation process needs to synthesize all the original emoticon images searched for into an emoticon image before returning it to the client, which reduces the efficiency of emoticon generation and further reduces the user experience. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide an expression generation method, device, server and storage medium, which can effectively improve the expression generation efficiency and greatly improve the user experience.

[0005] In a first aspect, an embodiment of the present invention provides an expression generation method, wherein the method is applied to a server, and the method includes:

[0006] Receive an emoticon search request sent by a client, where the emoticon search request carries a search statement;

[0007] Searching for image identification information of matching emoticon images based on the search statement;

[0008] Generate the image file address corresponding to the emoticon image based on the search statement and the image identification information, and return the image file address to the client;

[0009] The trigger file server receives a file address request sent by the client that carries the image file address and the expression quantity parameter, synthesizes the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and returns the target expression image to the client; among which, the expression quantity parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0010] In a possible implementation, searching for the image identification information of the matching emoticon image based on the search statement includes:

[0011] Perform sentence processing on the search sentence to obtain a search phrase; wherein the sentence processing includes word segmentation processing and synonym conversion processing, and the search phrase includes one or more of the following: a search sentence, a word segmentation, and a synonym;

[0012] Based on the search phrase, the image identification information of the matching emoticon image is searched from the index documents.

[0013] In a possible implementation, the index document includes specific picture identification information corresponding to each specific expression picture, and a specific search phrase corresponding to each specific picture identification information;

[0014] Search the index documents for matching emoticon images based on the search phrase, including:

[0015] searching for a target search phrase similar to the search phrase from a plurality of specific search phrases included in the indexed documents;

[0016] The specific picture identification information corresponding to the target search phrase is determined as the picture identification information of the matching emoticon picture.

[0017] In one possible implementation, the method further includes:

[0018] Randomly select a character configuration from a character configuration library; wherein the character configuration library includes a plurality of different character configurations, the character configuration is used to represent the added information added to the emoticon image by the search statement, and the added information includes at least one of the following: the font, font size and font position of the search statement;

[0019] Match the added word configuration with the image file address and store it in the database.

[0020] In one possible implementation, the method further includes:

[0021] The trigger file server queries whether the target expression image exists based on the image file address;

[0022] If the target expression picture is not found, the step of synthesizing the expression picture and the search statement into the target expression picture based on the picture file address and the expression quantity parameter is performed;

[0023] When the target expression picture is found, the target expression picture is returned to the client.

[0024] In a possible implementation, synthesizing the emoticon image and the search statement into a target emoticon image based on the image file address and the emoticon quantity parameter includes:

[0025] Determine, from a plurality of image file addresses, target image file addresses of the same number as the expression number parameter;

[0026] Search the target word configuration corresponding to the target image file address from the database;

[0027] Querying the target image address corresponding to the target image identification information included in the target image file address from the index document; wherein the index document includes the image address of each specific expression image and the image identification information corresponding to each image address;

[0028] Download the expression picture stored in the target picture address;

[0029] According to the target word addition configuration, the search statement is added to the expression picture corresponding to the target picture file address to synthesize the target expression picture.

[0030] In one possible implementation, the method further includes:

[0031] The trigger file server stores the target expression picture.

[0032] In a second aspect, an embodiment of the present invention provides an expression generation device, wherein the device is applied to a server, and the device includes:

[0033] A receiving module, used for receiving an expression search request sent by a client, wherein the expression search request carries a search statement;

[0034] A search module, used to search for image identification information of matching emoticon images based on a search statement;

[0035] A generation module, used to generate a picture file address corresponding to the emoticon picture based on the search sentence and the picture identification information, and return the picture file address to the client;

[0036] The synthesis module is used to trigger the file server to receive a file address request sent by the client that carries the image file address and the expression number parameter, synthesize the expression image and the search statement into a target expression image based on the image file address and the expression number parameter, and return the target expression image to the client; among which, the expression number parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0037] In a third aspect, an embodiment of the present invention provides a server, which includes: a processor and a memory, the processor is used to execute an expression generation program stored in the memory to implement the above-mentioned expression generation method.

[0038] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned expression generation method.

[0039] The expression generation method, device, server and storage medium provided by the embodiment of the present invention include receiving an expression search request sent by a client, the expression search request carries a search statement; searching for the picture identification information of the matching expression picture based on the search statement; generating the picture file address corresponding to the expression picture based on the search statement and the picture identification information, and returning the picture file address to the client; triggering the file server to receive the file address request sent by the client carrying the picture file address and the expression quantity parameter, synthesizing the expression picture and the search statement into a target expression picture based on the picture file address and the expression quantity parameter, and returning the target expression picture to the client; wherein the expression quantity parameter is used to characterize the maximum number of target expression pictures displayed on the current interface of the client. The present invention can synthesize a preset number of expression pictures and the search statement into a target expression picture based on the generated picture file address and expression data parameter, and then return it to the client, without synthesizing all the searched expression pictures into the target expression picture and then returning it to the client, effectively splitting the search and expression synthesis into different services, performing real-time search, and asynchronously synthesizing a preset number of target expression pictures, thereby improving the expression generation efficiency, and thus greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flowchart of an embodiment of a method for generating an expression provided by an embodiment of the present invention;

[0041] Figure 2 A flowchart of another embodiment of a method for generating an expression provided by an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of a target expression picture provided by an embodiment of the present invention;

[0043] Figure 4 A block diagram of an embodiment of an expression generating device provided by an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of the structure of a server provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0047] The embodiment of the present invention provides a method for generating an expression, wherein the method is applied to a server, see Figure 1 , is a flow chart of an embodiment of an expression generation method provided by an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:

[0048] Step 101, receiving an expression search request sent by a client, wherein the expression search request carries a search statement;

[0049] The search sentence is a sentence in text or voice form input by the user in the input control of the client. The search sentence can be a complete sentence or an expression search term, which is not limited here.

[0050] Step 102, searching for picture identification information of matching emoticon pictures based on the search statement;

[0051] The search statement can be used to search for the image identification information of the emoticon image that meets the search statement scenario. The image identification information can be understood as information that uniquely identifies the emoticon image and can be represented by numbers, letters, and symbols. In this embodiment, the ID (identity document identification number) number is preferably used as the image identification information.

[0052] Step 103, generating a picture file address corresponding to the emoticon picture based on the search statement and the picture identification information, and returning the picture file address to the client;

[0053] The search statement and the image identification information corresponding to each searched emoticon image are combined into a path address on the file system, or the server requests and the return value is the image file address of the binary file stream. There is no limitation here. The image file address is a virtual address, not the actual path address for storing emoticon images.

[0054] The server returns the image file addresses corresponding to all the searched emoticon images to the client, so that the client can synthesize a preset number of target emoticon images from the file server based on the image file addresses for the user to select and use.

[0055] Step 104, triggers the file server to receive a file address request sent by the client that carries an image file address and an expression quantity parameter, synthesizes the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and returns the target expression image to the client; wherein the expression quantity parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0056] In this embodiment, the above-mentioned file server is a CDN (Content Delivery Network) server. Since the CDN server provides CDN services, the file address request sent by the client can be sent to the CDN server closest to the client, so as to shorten the communication time between the client and the CDN server and improve the expression generation rate to a certain extent.

[0057] Usually, after the file server receives the file address request sent by the client, it is necessary to first query whether the target emoticon image exists based on the image file address; if the target emoticon image is not found, it means that other clients have not entered the same search statement to synthesize the target emoticon image, and therefore, it is necessary to execute the step of synthesizing the emoticon image and the search statement into the target emoticon image based on the image file address and the emoticon quantity parameters; if the target emoticon image is found, it means that other clients have entered the same search statement and synthesized the target emoticon image with the searched emoticon image, that is, the file server already has the target emoticon image corresponding to the image file address, and therefore, there is no need to perform the step of synthesizing the search statement and the emoticon image, and the target emoticon image can be directly returned to the client.

[0058] Usually, a lot of emoticon images matching the search statement are searched, far exceeding the number of images that can be displayed on the current interface of the client (usually 6-8), and the user will not view all the emoticon images after each input, and 60%-70% of the emoticon images will not be displayed on the client. Therefore, these emoticon images do not need to be synthesized with the search statement, and it is only necessary to synthesize the target emoticon images with the same number as the emoticon quantity parameter. When the user flips to the next interface of the interface where the target emoticon image is located, the target emoticon images with the same number as the emoticon quantity parameter in the interface are synthesized in real time. Therefore, compared with the existing method of synthesizing all emoticon images and search statements at one time and then returning them to the client for use, the present invention can effectively split the search and emoticon synthesis into different services, perform real-time search, and asynchronously synthesize a preset number of target emoticon images, thereby improving the efficiency of emoticon generation.

[0059] The expression generation method provided by the embodiment of the present invention includes receiving an expression search request sent by a client, wherein the expression search request carries a search statement; searching for the image identification information of the matching expression picture based on the search statement; generating the image file address corresponding to the expression picture based on the search statement and the image identification information, and returning the image file address to the client; triggering the file server to receive the file address request sent by the client carrying the image file address and the expression quantity parameter, synthesizing the expression picture and the search statement into a target expression picture based on the image file address and the expression quantity parameter, and returning the target expression picture to the client; wherein the expression quantity parameter is used to characterize the maximum number of target expression pictures displayed on the current interface of the client. The present invention can synthesize a preset number of expression pictures and the search statement into a target expression picture based on the generated image file address and expression data parameter, and then return it to the client, without synthesizing all the searched expression pictures into the target expression picture and then returning it to the client, effectively splitting the search and expression synthesis into different services, performing real-time search, and asynchronously synthesizing a preset number of target expression pictures, thereby improving the expression generation efficiency, and thus greatly improving the user experience.

[0060] See also Figure 2 , is a flow chart of another embodiment of a method for generating an expression provided by an embodiment of the present invention. Figure 2 The process shown in the above Figure 1 The process shown is implemented based on Figure 2 As shown, the process may include the following steps:

[0061] Step 201, receiving an expression search request sent by a client, wherein the expression search request carries a search statement;

[0062] Step 202, searching for picture identification information of matching emoticon pictures based on the search statement;

[0063] In order to find the image identification information of the emoticon image that matches the search sentence as much as possible, it is necessary to first process the search sentence to obtain the search phrase; then search the image identification information of the matching emoticon image from the index document based on the search phrase.

[0064] If the search sentence is input in the client in voice form, the server needs to convert the voice search sentence into text search sentence after receiving the search sentence, and then perform the above sentence processing, wherein the sentence processing includes word segmentation processing and synonym conversion processing, and the search phrase includes one or more of the following: search sentence, word segmentation and synonym;

[0065] Word segmentation processing can be understood as extracting keywords from search sentences, and synonym conversion processing can be understood as converting keywords in search sentences into words with similar contexts. For example, if the search sentence is "It's sunny today", the segmentation obtained after word segmentation processing is "It's sunny today", and the synonyms obtained after synonym conversion processing are "sunny" and "good weather".

[0066] The above-mentioned index document includes specific image identification information corresponding to each specific emoticon image, and a specific search phrase corresponding to each specific image identification information. The specific emoticon image can be obtained from any image website. In order to ensure the richness of the specific emoticon images, the specific emoticon images in the index document can be updated regularly. For example, the regular time can be a day or a month, which is not limited here.

[0067] The process of searching for the image identification information of the matching emoticon picture from the index document based on the information included in the index file and specifically based on the search phrase is: searching for a target search phrase similar to the search phrase from multiple specific search phrases included in the index document; and determining the specific image identification information corresponding to the target search phrase as the image identification information of the matching emoticon picture.

[0068] Since the search phrase and the specific search phrase are both text words, in order to determine which specific search phrases are similar to the search phrase, in this embodiment, based on an approximate nearest neighbor search algorithm such as the Annoy (Approximate Nearest Neighbors Oh Yeah) algorithm, the ScaNN (Scalable Nearest Neighbors) algorithm, the Faiss (Billion-scale similarity search with GPUs) algorithm, and the Hnswlib (fast approximate nearest neighbor search) algorithm, each specific search phrase can be matched with the search phrase for similarity to determine a target search phrase that is similar to the search phrase.

[0069] Step 203, based on the search statement and the picture identification information, generate the picture file address corresponding to the emoticon picture, randomly select the added word configuration from the added word configuration library, correspond the added word configuration to the picture file address, store it in the database, and return the picture file address to the client;

[0070] The added character configuration library includes a plurality of different added character configurations, and the added character configuration is used to represent the added information added to the emoticon image by the search statement, and the added information includes at least one of the following: the font, font size and font position of the search statement;

[0071] The image file address corresponding to the image identification information matching the search statement and the randomly selected added character configuration are stored in a database on the server in a one-to-one correspondence to facilitate subsequent use in synthesizing the target expression image.

[0072] If the above added information includes the font, font size and font position of the search sentence, then the specific adding position of the search sentence in the emoticon image, the font size of the search sentence, and the specific font type of the search sentence can be clearly specified through the added character configuration. For example, the font of the search sentence is Songti, the font size is size 4, the font position is the bottom center, and the search sentence is hello. According to the above description, the style of the synthesized target emoticon image can be seen in Figure 3 .

[0073] In actual use, the added information may also include the font color and font language type of the search statement. For example, "Hello" may be expressed in Chinese, English, or Japanese. There is no limitation on the added information here.

[0074] Step 204 triggers the file server to receive a file address request sent by the client that carries an image file address and an expression quantity parameter, synthesizes the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and returns the target expression image to the client; wherein the expression quantity parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0075] The specific process of synthesizing the emoticon image and the search sentence into the target emoticon image based on the image file address and the emoticon quantity parameters can be achieved by the following steps:

[0076] Step A1, determining target image file addresses having the same number as the expression number parameter from a plurality of image file addresses;

[0077] The target image file addresses having the same number as the expression quantity parameter can be randomly selected from multiple image file addresses, or the image file addresses can be sorted according to the popularity of the searched expression images, and the first few target image file addresses having the same number as the expression quantity parameter can be selected. The method of determining a certain number of target image file addresses from the image file addresses is not limited herein.

[0078] Step A2, searching the database for the target word configuration corresponding to the target image file address;

[0079] Since the image file addresses corresponding to the image identification information of all emoticon images matching the search statement and the added character configurations corresponding to the image file addresses are stored in the database in step 203, the unique target added character configuration corresponding to the target image file address can be found in the database based on the target image file address.

[0080] Step A3, searching the index document for a target image address corresponding to the target image identification information included in the target image file address;

[0081] The index document includes the image address of each emoticon image and the image identification information corresponding to each image address; the image address can be understood as the file path address where the specific emoticon image is actually stored.

[0082] Step A4, downloading the expression picture stored at the target picture address;

[0083] The specific expression picture stored at the target picture address is downloaded according to the target picture address, and the downloaded specific expression picture is the expression picture corresponding to the target picture identification information matching the search statement.

[0084] Step A5, adding the search statement to the expression picture corresponding to the target picture file address according to the target word addition configuration, and synthesizing the target expression picture.

[0085] The search sentence is added to the expression picture downloaded in step A4 according to the target plus word configuration to synthesize the target expression picture including the search sentence and the expression picture.

[0086] In actual use, in order to facilitate the file server to directly return the target expression picture corresponding to the target picture file address to the client later, the synthesized target expression picture can be stored in the file server.

[0087] See also Figure 4 , is a block diagram of an embodiment of an expression generation device provided by an embodiment of the present invention. The device is applied to a server, such as Figure 4 As shown, the device comprises:

[0088] The receiving module 401 is used to receive an expression search request sent by a client, wherein the expression search request carries a search statement;

[0089] Search module 402, used to search for picture identification information of matching emoticon pictures based on the search statement;

[0090] A generation module 403 is used to generate a picture file address corresponding to the emoticon picture based on the search statement and the picture identification information, and return the picture file address to the client;

[0091] The synthesis module 404 is used to trigger the file server to receive a file address request sent by the client that carries the image file address and the expression quantity parameter, synthesize the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and return the target expression image to the client; wherein the expression quantity parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0092] The expression generation device provided by the embodiment of the present invention includes receiving an expression search request sent by a client, wherein the expression search request carries a search statement; searching for the image identification information of the matching expression picture based on the search statement; generating the image file address corresponding to the expression picture based on the search statement and the image identification information, and returning the image file address to the client; triggering the file server to receive the file address request sent by the client carrying the image file address and the expression quantity parameter, synthesizing the expression picture and the search statement into a target expression picture based on the image file address and the expression quantity parameter, and returning the target expression picture to the client; wherein the expression quantity parameter is used to characterize the maximum number of target expression pictures displayed on the current interface of the client. The present invention can synthesize a preset number of expression pictures and the search statement into a target expression picture based on the generated image file address and expression data parameter, and then return it to the client, without synthesizing all the searched expression pictures into the target expression picture and then returning it to the client, effectively splitting the search and expression synthesis into different services, performing real-time search, and asynchronously synthesizing a preset number of target expression pictures, thereby improving the expression generation efficiency, and thus greatly improving the user experience.

[0093] Figure 5 A schematic diagram of the structure of a server provided by an embodiment of the present invention, Figure 5 The server 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the server 500 are coupled together through a bus system 505. It can be understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .

[0094] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0095] It can be understood that the memory 502 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0096] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .

[0097] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 5022.

[0098] In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:

[0099] Receive an emoticon search request sent by a client, where the emoticon search request carries a search statement;

[0100] Searching for image identification information of matching emoticon images based on the search statement;

[0101] Generate the image file address corresponding to the emoticon image based on the search statement and the image identification information, and return the image file address to the client;

[0102] The trigger file server receives a file address request sent by the client that carries the image file address and the expression quantity parameter, synthesizes the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and returns the target expression image to the client; among which, the expression quantity parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0103] In a possible implementation, searching for the image identification information of the matching emoticon image based on the search statement includes:

[0104] Perform sentence processing on the search sentence to obtain a search phrase; wherein the sentence processing includes word segmentation processing and synonym conversion processing, and the search phrase includes one or more of the following: a search sentence, a word segmentation, and a synonym;

[0105] Based on the search phrase, the image identification information of the matching emoticon image is searched from the index documents.

[0106] In a possible implementation, the index document includes specific picture identification information corresponding to each specific expression picture, and a specific search phrase corresponding to each specific picture identification information;

[0107] Search the index documents for matching emoticon images based on the search phrase, including:

[0108] searching for a target search phrase similar to the search phrase from a plurality of specific search phrases included in the indexed documents;

[0109] The specific picture identification information corresponding to the target search phrase is determined as the picture identification information of the matching emoticon picture.

[0110] In one possible implementation, the method further includes:

[0111] Randomly select a character configuration from a character configuration library; wherein the character configuration library includes a plurality of different character configurations, the character configuration is used to represent the added information added to the emoticon image by the search statement, and the added information includes at least one of the following: the font, font size and font position of the search statement;

[0112] Match the added word configuration with the image file address and store it in the database.

[0113] In one possible implementation, the method further includes:

[0114] The trigger file server queries whether the target expression image exists based on the image file address;

[0115] If the target expression picture is not found, the step of synthesizing the expression picture and the search statement into the target expression picture based on the picture file address and the expression quantity parameter is performed;

[0116] When the target expression picture is found, the target expression picture is returned to the client.

[0117] In a possible implementation, synthesizing the emoticon image and the search statement into a target emoticon image based on the image file address and the emoticon quantity parameter includes:

[0118] Determine, from a plurality of image file addresses, target image file addresses of the same number as the expression number parameter;

[0119] Search the target word configuration corresponding to the target image file address from the database;

[0120] Querying the target image address corresponding to the target image identification information included in the target image file address from the index document; wherein the index document includes the image address of each specific expression image and the image identification information corresponding to each image address;

[0121] Download the expression picture stored in the target picture address;

[0122] According to the target word addition configuration, the search statement is added to the expression picture corresponding to the target picture file address to synthesize the target expression picture.

[0123] In one possible implementation, the method further includes:

[0124] The trigger file server stores the target expression picture.

[0125] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 501 or the instruction in the form of software. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.

[0126] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0127] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0128] The server provided in this embodiment may be as follows Figure 5 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-2 All the steps of the expression generation method in Figure 1-2 For details, please refer to the technical effect of the expression generation method shown in Figure 1-2 For the sake of brevity, the relevant description is not repeated here.

[0129] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0130] When one or more programs in the storage medium can be executed by one or more processors, the above expression generation method can be implemented.

[0131] The processor is used to execute the expression generation program stored in the memory to implement the steps of the expression generation method:

[0132] Receive an emoticon search request sent by a client, where the emoticon search request carries a search statement;

[0133] Searching for image identification information of matching emoticon images based on the search statement;

[0134] Generate the image file address corresponding to the emoticon image based on the search statement and the image identification information, and return the image file address to the client;

[0135] The trigger file server receives a file address request sent by the client that carries the image file address and the expression quantity parameter, synthesizes the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and returns the target expression image to the client; among which, the expression quantity parameter is used to represent the maximum number of target expression images displayed on the current interface of the client.

[0136] In a possible implementation, searching for the image identification information of the matching emoticon image based on the search statement includes:

[0137] Perform sentence processing on the search sentence to obtain a search phrase; wherein the sentence processing includes word segmentation processing and synonym conversion processing, and the search phrase includes one or more of the following: a search sentence, a word segmentation, and a synonym;

[0138] Based on the search phrase, the image identification information of the matching emoticon image is searched from the index documents.

[0139] In a possible implementation, the index document includes specific picture identification information corresponding to each specific expression picture, and a specific search phrase corresponding to each specific picture identification information;

[0140] Search the index documents for matching emoticon images based on the search phrase, including:

[0141] searching for a target search phrase similar to the search phrase from a plurality of specific search phrases included in the indexed documents;

[0142] The specific picture identification information corresponding to the target search phrase is determined as the picture identification information of the matching emoticon picture.

[0143] In one possible implementation, the method further includes:

[0144] Randomly select a character configuration from a character configuration library; wherein the character configuration library includes a plurality of different character configurations, the character configuration is used to represent the added information added to the emoticon image by the search statement, and the added information includes at least one of the following: the font, font size and font position of the search statement;

[0145] Match the added word configuration with the image file address and store it in the database.

[0146] In one possible implementation, the method further includes:

[0147] The trigger file server queries whether the target expression image exists based on the image file address;

[0148] If the target expression picture is not found, the step of synthesizing the expression picture and the search statement into the target expression picture based on the picture file address and the expression quantity parameter is performed;

[0149] When the target expression picture is found, the target expression picture is returned to the client.

[0150] In a possible implementation, synthesizing the emoticon image and the search statement into a target emoticon image based on the image file address and the emoticon quantity parameter includes:

[0151] Determine, from a plurality of image file addresses, target image file addresses of the same number as the expression number parameter;

[0152] Search the target word configuration corresponding to the target image file address from the database;

[0153] Querying the target image address corresponding to the target image identification information included in the target image file address from the index document; wherein the index document includes the image address of each specific expression image and the image identification information corresponding to each image address;

[0154] Download the expression picture stored in the target picture address;

[0155] According to the target word addition configuration, the search statement is added to the expression picture corresponding to the target picture file address to synthesize the target expression picture.

[0156] In one possible implementation, the method further includes:

[0157] The trigger file server stores the target expression picture. Professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0158] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0159] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for generating facial expressions, It is characterized in that The method is applied to the server, and the method includes: Receiving an expression search request sent by a client, wherein the expression search request carries a search statement; Searching for picture identification information of matching emoticon pictures based on the search statement; Generate a picture file address corresponding to the emoticon picture based on the search statement and the picture identification information, and return the picture file address to the client; The trigger file server receives the file address request sent by the client and carries the image file address and the expression quantity parameter, synthesizes the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and returns the target expression image to the client; wherein the expression quantity parameter is used to represent the maximum number of the target expression images displayed on the current interface of the client; The image file address is a virtual address, not the actual path address where the expression image is stored; The step of synthesizing the expression picture and the search statement into a target expression picture based on the picture file address and the expression quantity parameter includes: Determine, from a plurality of image file addresses, target image file addresses of the same number as the expression number parameter; Searching for a target word-adding configuration corresponding to the target picture file address from a database storing a correspondence between word-adding configurations and picture file addresses; Querying the target image address corresponding to the target image identification information included in the target image file address from the index document; wherein the index document includes the image address of each specific expression image and the image identification information corresponding to each of the image addresses; Download the expression picture stored at the target picture address; The search statement is added to the expression picture corresponding to the target picture file address according to the target word addition configuration to synthesize the target expression picture.

2. The method according to claim 1, It is characterized in that The step of searching for the picture identification information of the matching emoticon picture based on the search statement includes: Performing sentence processing on the search sentence to obtain a search phrase; wherein the sentence processing includes word segmentation processing and synonym conversion processing, and the search phrase includes one or more of the following: the search sentence, word segmentation and synonym; Based on the search phrase, the image identification information of the matching emoticon image is searched from the index document.

3. The method according to claim 2, It is characterized in that The index document includes specific picture identification information corresponding to each specific expression picture, and a specific search phrase corresponding to each specific picture identification information; The step of searching for matching picture identification information of emoticon pictures from index documents based on the search phrase includes: searching for a target search phrase similar to the search phrase from the plurality of specific search phrases included in the index document; The specific picture identification information corresponding to the target search phrase is determined as the picture identification information of the matching emoticon picture.

4. The method according to claim 1, It is characterized in that The method further comprises: Randomly select a character configuration from a character configuration library; wherein the character configuration library includes a plurality of different character configurations, the character configuration is used to represent the added information added to the emoticon image by the search statement, and the added information includes at least one of the following: the font, font size and font position of the search statement; The added word configuration is matched with the image file address and stored in a database.

5. The method according to claim 1, It is characterized in that The method further comprises: Trigger the file server to query whether the target expression picture exists based on the picture file address; In the case that the target expression picture is not found, performing the step of synthesizing the expression picture and the search statement into a target expression picture based on the picture file address and the expression quantity parameter; When the target expression picture is found, the target expression picture is returned to the client.

6. The method according to claim 1, It is characterized in that The method further comprises: The file server is triggered to store the target expression picture.

7. An expression generating device, It is characterized in that The device is applied to a server, and includes: A receiving module, used for receiving an expression search request sent by a client, wherein the expression search request carries a search statement; A search module, used to search for picture identification information of matching emoticon pictures based on the search statement; A generating module, configured to generate a picture file address corresponding to the emoticon picture based on the search statement and the picture identification information, and return the picture file address to the client; A synthesis module is used to trigger the file server to receive a file address request sent by the client that carries the image file address and the expression quantity parameter, synthesize the expression image and the search statement into a target expression image based on the image file address and the expression quantity parameter, and return the target expression image to the client; wherein the expression quantity parameter is used to represent the maximum number of the target expression images displayed on the current interface of the client; The image file address is a virtual address, not the actual path address where the expression image is stored; The step of synthesizing the expression picture and the search statement into a target expression picture based on the picture file address and the expression quantity parameter includes: Determine, from a plurality of image file addresses, target image file addresses of the same number as the expression number parameter; Searching for a target word-adding configuration corresponding to the target picture file address from a database storing a correspondence between word-adding configurations and picture file addresses; Querying the target image address corresponding to the target image identification information included in the target image file address from the index document; wherein the index document includes the image address of each specific expression image and the image identification information corresponding to each of the image addresses; Download the expression picture stored at the target picture address; The search statement is added to the expression picture corresponding to the target picture file address according to the target word addition configuration to synthesize the target expression picture.

8. A server, It is characterized in that include: A processor and a memory, wherein the processor is used to execute an expression generation program stored in the memory to implement the expression generation method according to any one of claims 1 to 6.

9. A storage medium, It is characterized in that The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the expression generation method according to any one of claims 1 to 6.