CN106293738B - Expression image updating method and device - Google Patents

Expression image updating method and device Download PDF

Info

Publication number
CN106293738B
CN106293738B CN201610648223.8A CN201610648223A CN106293738B CN 106293738 B CN106293738 B CN 106293738B CN 201610648223 A CN201610648223 A CN 201610648223A CN 106293738 B CN106293738 B CN 106293738B
Authority
CN
China
Prior art keywords
expression
stored
character code
target
interface
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
CN201610648223.8A
Other languages
Chinese (zh)
Other versions
CN106293738A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610648223.8A priority Critical patent/CN106293738B/en
Publication of CN106293738A publication Critical patent/CN106293738A/en
Application granted granted Critical
Publication of CN106293738B publication Critical patent/CN106293738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an updating method and a device of an expression image, wherein the updating method of the expression image comprises the following steps: acquiring an interface set in a preset page, wherein each interface in the interface set indicates an expression; acquiring character codes of corresponding expressions through interfaces in the interface set to obtain a character code set; determining a target expression image according to the character code set and the interface set; and updating the expression images in the stored expression sets according to the target expression image. The updating method of the expression images can obtain the latest expression images without cutting and manual screening, and is simple to operate and high in processing efficiency.

Description

Expression image updating method and device
Technical Field
The invention relates to the technical field of communication, in particular to an expression image updating method and device.
Background
emoji is an emoticon derived from the japanese word " characters" (pseudonym "えも, insert", pronunciation emoji). The emoji emoticons are widely applied to mobile phone short messages and network chat software, users can send various emoji emoticons to each other during chat, images are visual, and much fun is added to the chat.
At present, emoji expressions are arranged in a plurality of terminal devices (such as computers and mobile phones), and the emoji expressions designed among different operating system manufacturers have slight differences, so that the emoji expressions sent to the opposite side by terminal users of different operating systems often display messy codes and cannot be identified.
To avoid the messy code phenomenon, the social application service provider often needs to convert the emoji expression input by the user into an expression image and send the expression image to the other party. In order to obtain an expression picture of emoji expression newly released by a certain manufacturer, the existing operation method is as follows: firstly, copying all emoji expressions to a txt Text in batch from an official website, analyzing the txt Text into hypertext Markup Language (html), then adjusting the background colors of the html page and capturing the background colors to obtain two pictures with different background colors, extracting the same places in the two pictures through image processing software and cutting the pictures to obtain an expression picture set corresponding to all emoji expressions, and finally manually screening expression pictures corresponding to new emoji expressions. The acquisition of the new emoji expression picture needs a large amount of picture cutting and manual screening work, and is complex to operate and low in efficiency.
Disclosure of Invention
The invention aims to provide an expression image updating method and device, and aims to solve the technical problems that a large number of picture cutting and manual screening are required to be carried out for obtaining a new expression image, the operation is complicated, and the efficiency is low.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an updating method of an expression image, comprising:
acquiring an interface set in a preset page, wherein each interface in the interface set indicates an expression;
acquiring character codes of corresponding expressions through interfaces in the interface set to obtain a character code set;
determining a target expression image according to the character code set and the interface set;
and updating the expression images in the stored expression set according to the target expression image.
In order to solve the above technical problems, embodiments of the present invention further provide the following technical solutions:
an updating apparatus of an expression image, comprising:
the first obtaining module is used for obtaining an interface set in a preset page, and each interface in the interface set indicates one expression;
the second acquisition module is used for acquiring the character codes of the corresponding expressions through the interfaces in the interface set to obtain a character code set;
the determining module is used for determining a target expression image according to the character coding set and the interface set;
and the updating module is used for updating the expression images in the stored expression set according to the target expression image.
According to the method and the device for updating the expression images, each interface in the interface set indicates one expression by acquiring the interface set in the preset page, the character codes of the corresponding expressions are acquired by the interfaces in the interface set to obtain the character code set, then the target expression image is determined according to the character code set and the interface set, the expression images in the stored expression sets are updated according to the target expression image, the latest expression image can be obtained without image cutting and manual screening, the operation is simple, and the processing efficiency is high.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1a is a scene schematic diagram of an expression image updating system according to an embodiment of the present invention.
Fig. 1b is a schematic flow chart of an expression image updating method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of an expression image updating method according to an embodiment of the present invention.
Fig. 3a is a schematic structural diagram of an expression image updating apparatus according to an embodiment of the present invention.
Fig. 3b is another schematic structural diagram of an expression image updating apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment of the invention provides a method, a device and a system for updating an expression image.
Referring to fig. 1a, the expression image updating system may include any expression image updating device provided in the embodiments of the present invention, and the expression image updating device may be specifically integrated in a terminal, where the terminal may include a mobile phone, a computer, or a tablet computer. In addition, the expression image updating system may further include other devices, such as a server a and a server B, and the terminal and the server a and the server B are connected through a network.
The terminal can acquire an interface set in a preset page, each interface in the interface set indicates an expression, character codes of corresponding expressions are acquired through the interfaces in the interface set to obtain a character code set, a target expression image is determined according to the character code set and the interface set, and the expression images in the stored expression sets are updated according to the target expression image. The preset page may be determined according to the actual application requirement, for example, may be a specified web page provided by an emoticon designer. The expression may include an emoji expression, and may be embodied in a graphic form. The expression image may include a still picture or a moving picture. The character code mainly refers to a Unicode, and each emoji expression generally corresponds to a unique Unicode. Specifically, when a certain expression designer designs a new emoji expression, the terminal can log in a preset page, obtain a Unicode code set corresponding to all emoji expressions designed by the expression designer from the server a through an interface set in the preset page, determine a target expression image corresponding to the latest emoji expression according to the Unicode code set and the interface set, update the stored expression set according to the target expression image, and then upload the updated stored expression set to the server B for other terminal users to use.
The details will be described below separately. The numbers in the following examples are not intended to limit the order of priority of the examples.
First embodiment
The embodiment will be described in terms of an expression image updating device, which may be integrated in a terminal, where the terminal may include a computer, a mobile phone, or a tablet computer.
Referring to fig. 1b, fig. 1b specifically illustrates an updating method of an expression image according to a first embodiment of the present invention, which may include:
s101, acquiring an interface set in a preset page, wherein each interface in the interface set indicates one expression.
In this embodiment, the emotions may include emoji emotions or other emotions displayed by character encoding, which may be represented in a graphic form. The preset page may be determined according to the actual application requirement, for example, may be a designated web page or other page provided by an emoticon designer, and the preset page may include other interfaces, such as a profile portal or other service portal of the emoticon designer, in addition to the interface corresponding to the emoticon. Specifically, when the terminal determines that the expression image needs to be updated, the interface sets corresponding to all expressions in the preset page may be acquired. It should be noted that the terminal may determine that the representation image needs to be updated when the terminal successfully logs in the preset page, or may determine that the representation image needs to be updated when detecting that a new representation is added to the preset page.
S102, acquiring character codes of corresponding expressions through the interfaces in the interface set to obtain a character code set.
In this embodiment, the character code mainly refers to Unicode, and each emoticon usually corresponds to a Unicode. The Unicode code sets a uniform and unique binary code for each character in each language so as to meet the requirements of cross-language and cross-platform text conversion and processing. The interface can be represented as an icon, and the terminal can enter the emoticon page by clicking the icon and acquire the Unicode code of the corresponding emoticon from the emoticon page.
It should be noted that the action of the terminal acquiring the corresponding character codes from each interface may be performed simultaneously or sequentially, and may specifically be determined according to the actual application requirements. When the operations are performed sequentially, the step S102 may specifically include:
selecting an interface needing to be processed currently from the interface set to obtain a current interface;
and acquiring the character codes of corresponding expressions through the current interface, adding the acquired character codes into a character code set, and returning to execute the step of selecting the current interface to be processed from the interface set to obtain the current interface until all the interfaces in the interface set are processed.
In this embodiment, the number of the current interfaces may be one or more, and the specific number may be determined according to actual requirements, for example, the number of the current interfaces selected each time may be 3 or 4, and the like. The selection mode of the current interface may be selected according to the sequence of the arrangement positions of the interfaces, or may be selected randomly, or of course, may be other selection modes.
S103, determining a target expression image according to the character code set and the interface set.
For example, the step S103 may specifically include:
(1) and acquiring a stored code set corresponding to the stored expression set.
In this embodiment, each character code in the stored code set corresponds to each expression in the stored expression set. In practical application, the stored expression set needs to be associated with the stored code set in advance, so that the stored code set can be found through the association relationship.
(2) A target character encoding is determined based on the character encoding set and the stored encoding set.
For example, the step (2) may specifically include:
matching each character code in the character code set with the stored code set;
and if the matching fails, determining the character code with the failed matching as the target character code.
In this embodiment, by matching the character code set with the stored code set, the character codes in the character code set that are different from the stored code set can be screened out, and the different character codes are determined as the target character codes.
(3) And determining a corresponding interface from the interface set according to the target character code.
In this embodiment, an interface corresponding to the target character code may be selected from the interface set.
(4) And determining a target expression image based on the determined interface.
For example, the step (4) may specifically include:
acquiring a plurality of expression images corresponding to the target character code through the determined interface;
selecting a corresponding expression image from the plurality of expression images according to a preset strategy;
and determining the selected expression image as a target expression image.
In this embodiment, generally, one expression may correspond to a plurality of expression images, and the plurality of expression images may be designed by different expression designers or may be designed by the same expression designer. The preset policy may be determined according to actual requirements, for example, a first expression image or a last expression image in each expression sub-page may be acquired, and the like.
And S104, updating the expression images in the stored expression set according to the target expression image.
In this embodiment, the update operation may be implemented by adding the target expression image to the stored expression set. The expression images in the stored expression set may be stored at will, or may be stored according to a certain sequence, for example, the expression images may be stored according to a character coding sequence of each expression image, and at this time, the step S104 may specifically include:
determining the position of the target expression image to be stored in the stored expression set according to the target character code;
and storing the target expression image at the position to be stored so as to add the target expression image in the stored expression set.
In this embodiment, when the expression images in the stored expression set are sorted from small to large according to the character codes, the expression image corresponding to the character code located in front of the target character code may be searched, and the target expression image may be placed behind the searched expression image.
It should be noted that, after the terminal completes updating the expression images, it may upload the expression images to other places, for example, to some servers of social software, so as to be used by different users, that is, after updating the expression images in the stored expression set according to the target expression image, the method for updating the expression images may further include:
adding the target character code to the stored code set;
generating comparison information according to the added stored expression set and the added stored coding set;
and uploading the comparison information to a server.
In this embodiment, the matching information may be represented as a matching list in txt format, which mainly includes an association relationship between the stored expression set and the stored code set. The server may be a server of social software or other third party server, etc. It should be noted that, in order to adapt to different terminal display screens, the comparison list may have a plurality of images, the specific number may be determined according to the requirement, and the size of the same expression image in different comparison lists is different, for example, for a mobile phone user, the size of the expression image in the comparison list may be 24 × 24 pixels, for a computer user, the size of the expression image in the comparison list may be 48 × 48 pixels, and so on.
In addition, after the terminal uploads the comparison information to the server, the terminal users of different operating systems may receive and transmit the expression image in the stored expression set, that is, after uploading the comparison information to the server, the method for updating the expression image may further include:
acquiring a character code of an expression to be sent and a user identifier of an object to be sent;
generating an expression sending request according to the character code of the expression to be sent and the user identification;
and sending the expression sending request to a server so that the server sends a corresponding expression image to the object to be sent according to the expression sending request and the comparison information.
In this embodiment, the user identifier may include account information of the user, such as an account name of the user on the social software. Specifically, when a user and a friend interact on social software through a terminal, all emoji expressions arranged in the terminal can be sent to the friend, and at the moment, the expression images received by the friend are not the emoji expressions but expression images obtained by a server according to character codes of the emoji expressions.
As can be seen from the above, in the method for updating an expression image provided in this embodiment, each interface in the interface set indicates an expression by acquiring the interface set in the preset page, and a character code of a corresponding expression is acquired by acquiring the interface in the interface set to obtain a character code set, then a target expression image is determined according to the character code set and the interface set, and the expression image in the stored expression set is updated according to the target expression image, so that the latest expression image can be obtained without graph cutting and manual screening, and the method is simple to operate and high in processing efficiency.
Second embodiment
The method described in the first embodiment is further illustrated by way of example.
In this embodiment, a detailed description will be given by taking an example in which the updating device of the expression image is integrated in a terminal.
As shown in fig. 2, a method for updating an expression image may specifically include the following steps:
s201, the terminal A acquires an interface set in a preset page, each interface in the interface set indicates an expression, and character codes of corresponding expressions are acquired through the interfaces in the interface set to obtain a character code set.
For example, the preset page may be a web page provided by an operating system vendor, and icons of all emoji emoticons designed by the operating system vendor may be obtained from the web page. When the terminal A logs in the preset page, each icon can be clicked in sequence in a traversal mode to enter the corresponding expression sub-page, so that Unicode of all emoji expressions is obtained, and a character code set is obtained.
S202, the terminal A acquires a stored code set corresponding to the stored expression set, matches each character code in the character code set with the stored code set, and acquires the character code which fails to be matched.
For example, when the operating system manufacturer newly releases emoji expression of 9.1 version, since only the expression image before 9.1 version is stored in the terminal a, the character codes of the emoji expression (such as a dollar spitting expression, a dead book expression, etc.) newly added in 9.1 version will fail to be matched with the character codes of the emoji expression before 9.1 version in the process of matching.
S203, the terminal A determines the character code which fails to be matched as a target character code, and determines a corresponding interface from the interface set according to the target character code.
For example, the character encoding that matches the failed dollar-spit expression and the dead expression of the book may be determined as the target character encoding, and the corresponding interface may be found in the interface set.
S204, the terminal A acquires a plurality of expression images corresponding to the target character code through the determined interface, and selects a corresponding expression image from the plurality of expression images according to a preset strategy.
For example, each emoticon page may include a plurality of manufacturer-designed emoticons, and the ordering of each manufacturer-designed emoticon in the emoticon page is generally fixed, such as an emoticon located in the first emoticon page, which may be an a operating system manufacturer, an emoticon located in the second emoticon page, which may be a B operating system manufacturer, and so on. The user can select the expression image designed by the required manufacturer according to the preference of the user, for example, the first expression image in each expression sub-page can be selected, that is, the expression image designed by the manufacturer of the operating system a is selected.
S205, the terminal A determines the selected expression image as a target expression image, and determines the position of the target expression image to be stored in the stored expression set according to the target character code.
For example, when the emoticon image M with the character code of "e 400017" is stored in the stored emoticon set, if the character code of the dollar spit emoticon image is "e 400018" and the character code of the stiff book emoticon image is "e 400019", the position to be stored of the dollar spit emoticon image is the next position next to the emoticon image M, and the position to be stored of the stiff book emoticon image is the next position next to the dollar spit emoticon image.
S206, the terminal A stores the target expression image at the position to be stored, and adds the target character code in the stored code set.
For example, the dollar-spit expression image and the book-dull expression image may be added to the stored expression set with the dollar-spit expression image located behind the expression image M and the book-dull expression image located behind the dollar-spit expression image, and the character codes "e 400018" and "e 400019" corresponding to the dollar-spit expression image and the book-dull expression image may be added to the stored code set.
And S207, the terminal A generates contrast information according to the stored expression set and the stored code set, and uploads the contrast information to the server.
For example, the terminal a may create a txt document, store the stored emoticons in the txt document according to the character coding order, establish an association relationship between the stored emoticons and the character coding set thereof, and then send the txt document to the server.
S208, the terminal A acquires the character code of the expression to be sent and the user identification of the object to be sent, generates an expression sending request according to the character code of the expression to be sent and the user identification, and sends the expression sending request to the server.
For example, the emoticon to be sent may be a dollar toss emoticon, and the user identifier may be a user account name of certain social software. Terminal a may send the character encoding "e 400018" of the tolling dollar expression and the user account name to the server of the social software.
S209, the server searches a corresponding expression image according to the character code and the comparison information of the expression to be sent, and sends the searched expression image to the terminal B where the object to be sent is located according to the user identification.
For example, the server may find the dollar-tossed emoticon according to the character code "e 400018" and txt document, and send the dollar-tossed emoticon to the terminal B currently logged in the user account, where the terminal B and the terminal a may be the same device or different devices.
As can be seen from the above, in the method for updating an expression image provided in this embodiment, the terminal a obtains a character code set by obtaining an interface set in a preset page and obtaining a character code of a corresponding expression through an interface in the interface set, then obtains a stored code set corresponding to the stored expression set, matches each character code in the character code set with the stored code set, and obtains a character code that fails to be matched, then determines the character code that fails to be matched as a target character code, determines a corresponding interface from the interface set according to the target character code, obtains a plurality of expression images corresponding to the target character code through the determined interface, and selects a corresponding expression image from the plurality of expression images according to a preset policy, then determines the selected expression image as the target expression image, determining a position to be stored of the target expression image in the stored expression set according to the target character code, then storing the target expression image at the position to be stored, adding the target character code in the stored code set, then generating comparison information according to the stored expression set and the stored code set, and uploading the comparison information to a server, compared with the prior art, the latest expression image can be updated in the server and a terminal without drawing cutting and manual screening, the operation is simple, the processing efficiency is high, and then when a user interacts with a friend, the terminal A acquires the character code of the expression to be sent and the user identifier of an object to be sent, generates an expression sending request according to the character code of the expression to be sent and the user identifier, and then sends the expression sending request to the server, the server searches a corresponding expression image according to the character code and the contrast information of the expression to be sent, and sends the searched expression image to the terminal B where the object to be sent is located according to the user identification, so that the expression image and the expression image are quickly converted, the phenomenon of messy codes caused by asynchronous updating of emoji expressions among terminals of different operating systems is avoided, and the user experience is improved.
Third embodiment
On the basis of the methods described in the first and second embodiments, this embodiment will be further described from the perspective of an expression image updating apparatus, please refer to fig. 3a, where fig. 3a specifically describes an expression image updating apparatus provided by a third embodiment of the present invention, which may include: a first obtaining module 10, a second obtaining module 20, a determining module 30 and an updating module 40, wherein:
(1) first acquisition module 10
The first obtaining module 10 is configured to obtain an interface set in a preset page, where each interface in the interface set indicates an expression.
In this embodiment, the emotions may include emoji emotions or other emotions displayed by character encoding, which may be represented in a graphic form. The preset page may be determined according to the actual application requirement, for example, may be a designated web page or other page provided by an emoticon designer, and the preset page may include other interfaces, such as a profile portal or other service portal of the emoticon designer, in addition to the interface corresponding to the emoticon. Specifically, when the terminal determines that the expression image needs to be updated, the first obtaining module 10 may obtain the interface sets corresponding to all expressions in the preset page. It should be noted that the terminal may determine that the representation image needs to be updated when the terminal successfully logs in the preset page, or may determine that the representation image needs to be updated when detecting that a new representation is added to the preset page.
(2) Second acquisition module 20
The second obtaining module 20 is configured to obtain the character codes of the corresponding expressions through the interfaces in the interface set, so as to obtain a character code set.
In this embodiment, the character code mainly refers to Unicode, and each emoticon usually corresponds to a Unicode. The Unicode code sets a uniform and unique binary code for each character in each language so as to meet the requirements of cross-language and cross-platform text conversion and processing. The interface may be represented as an icon, and the second obtaining module 20 may obtain the Unicode code of the corresponding emoticon from the emoticon subpage by clicking the icon to enter the emoticon subpage.
It should be noted that the action of the second obtaining module 20 obtaining the corresponding character codes from each interface may be performed simultaneously or sequentially, and may be specifically determined according to the actual application requirement. When the actions are performed sequentially, the second obtaining module 20 may specifically be configured to:
selecting an interface needing to be processed currently from the interface set to obtain a current interface;
and acquiring the character codes of corresponding expressions through the current interface, adding the acquired character codes into a character code set, and returning to execute the step of selecting the current interface to be processed from the interface set to obtain the current interface until all the interfaces in the interface set are processed.
In this embodiment, the number of the current interfaces may be one or more, and the specific number may be determined according to actual requirements, for example, the number of the current interfaces selected each time may be 3 or 4, and the like. The selection mode of the current interface may be selected according to the sequence of the arrangement positions of the interfaces, or may be selected randomly, or of course, may be other selection modes.
(3) Determination module 30
And the determining module 30 is used for determining the target expression image according to the character code set and the interface set.
For example, the determining module 30 may specifically include an obtaining sub-module, a first determining sub-module, a second determining sub-module, and a third determining sub-module, where:
and the obtaining submodule is used for obtaining a stored code set corresponding to the stored expression set.
In this embodiment, each character code in the stored code set corresponds to each expression in the stored expression set. In practical application, the stored expression set needs to be associated with the stored code set in advance, so that the obtaining submodule can directly find the stored code set through the association relationship.
And the first determining submodule is used for determining a target character code according to the character code set and the stored code set.
For example, the first determination submodule may be specifically configured to:
matching each character code in the character code set with the stored code set;
and if the matching fails, determining the character code with the failed matching as the target character code.
In this embodiment, the first determining sub-module may screen out the character codes in the character code set that are different from the stored code set by matching the character code set with the stored code set, and determine the different character codes as the target character codes.
And the second determining submodule is used for determining a corresponding interface from the interface set according to the target character code.
In this embodiment, the second determining submodule may select an interface corresponding to the target character code from the interface set.
And the third determining sub-module is used for determining the target expression image based on the determined interface.
For example, the third determination submodule may be specifically configured to:
acquiring a plurality of expression images corresponding to the target character code through the determined interface;
selecting a corresponding expression image from the plurality of expression images according to a preset strategy;
and determining the selected expression image as a target expression image.
In this embodiment, generally, one expression may correspond to a plurality of expression images, and the plurality of expression images may be designed by different expression designers or may be designed by the same expression designer. The preset policy may be determined according to actual requirements, for example, a first expression image or a last expression image in each expression sub-page may be acquired, and the like.
(4) Update module 40
And the updating module 40 is configured to update the expression images in the stored expression sets according to the target expression image.
In this embodiment, the updating module 40 may implement the updating operation by adding the target expression image to the stored expression set. The expression images in the stored expression set may be stored at will, or may be stored in a certain order, for example, the expression images may be stored according to a character encoding order of each expression image, and at this time, the updating module 40 may be specifically configured to:
determining the position of the target expression image to be stored in the stored expression set according to the target character code;
and storing the target expression image at the position to be stored so as to add the target expression image in the stored expression set.
In this embodiment, when the expression images in the stored expression set are sorted from small to large according to the character codes, the expression image corresponding to the character code located in front of the target character code may be searched, and the target expression image may be placed behind the searched expression image.
It should be noted that, after the updating module 40 completes updating the expression images, the terminal may upload the expression images to other places, for example, to some servers of social software for different users to use, that is, referring to fig. 3b, the apparatus for updating expression images may further include an uploading module 50, configured to:
after the updating module 40 updates the expression image in the stored expression set according to the target expression image, adding the target character code in the stored code set;
generating comparison information according to the added stored expression set and the added stored coding set;
and uploading the comparison information to a server.
In this embodiment, the comparison information may be represented as a txt-format comparison list, which mainly includes an association relationship between the stored expression set and the stored code set. The server may be a server of social software or other third party server, etc. It should be noted that, in order to adapt to different terminal display screens, the comparison list may have a plurality of images, the specific number may be determined according to the requirement, and the size of the same expression image in different comparison lists is different, for example, for a mobile phone user, the size of the expression image in the comparison list may be 24 × 24 pixels, for a computer user, the size of the expression image in the comparison list may be 48 × 48 pixels, and so on.
In addition, after the upload module 50 uploads the comparison information to the server, the terminal users of different operating systems can receive and transmit the expression image in the stored expression set, that is, the apparatus for updating the expression image may further include a sending module 60 configured to:
after the uploading module 50 uploads the comparison information to the server, acquiring a character code of an expression to be sent and a user identifier of an object to be sent;
generating an expression sending request according to the character code of the expression to be sent and the user identification;
and sending the expression sending request to a server so that the server sends a corresponding expression image to the object to be sent according to the expression sending request and the comparison information.
In this embodiment, the user identifier may include account information of the user, such as an account name of the user on the social software. Specifically, when the user and the friend interact with each other on the social software through the terminal, the sending module 60 may send all emoji expressions installed in the terminal of the user and the friend, where the emoji expression is not received by the friend at this time, but an expression image obtained by the server according to the character code of the emoji expression.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the expression image updating apparatus provided in this embodiment, the first obtaining module 10 obtains the interface set in the preset page, each interface in the interface set indicates an expression, and the second obtaining module 20 obtains the character codes of the corresponding expression through the interface in the interface set to obtain the character code set, then the determining module 30 determines the target expression image according to the character code set and the interface set, and updates the expression image in the stored expression set according to the target expression image through the updating module 40, and the latest expression image can be obtained without graph cutting and manual screening, which is simple in operation and high in processing efficiency.
Fourth embodiment
Correspondingly, an embodiment of the present invention further provides an expression image updating system, including any expression image updating apparatus provided in the embodiment of the present invention, and the embodiment three may be specifically referred to as the expression image updating apparatus.
The expression image updating apparatus may be specifically integrated in a terminal, and may be, for example, as follows:
the terminal is used for acquiring an interface set in a preset page, each interface in the interface set indicates an expression, character codes of corresponding expressions are acquired through the interfaces in the interface set to obtain a character code set, a target expression image is determined according to the character code set and the interface set, and the expression images in the stored expression sets are updated according to the target expression image.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
The expression image updating system may include any expression image updating device provided in the embodiment of the present invention, so that the beneficial effects that can be achieved by any expression image updating device provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiment and will not be described herein again.
Fifth embodiment
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 4, which may include Radio Frequency (RF) circuit 701, memory 702 including one or more computer-readable storage media, an input unit 703, a display unit 704, a sensor 705, an audio circuit 706, a Wireless Fidelity (WiFi) module 707, a processor 708 including one or more processing cores, and a power supply 709. Those skilled in the art will appreciate that the terminal configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 701 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 708 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 701 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 701 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 702 may be used to store software programs and modules, and the processor 708 executes various functional applications and data processing by operating the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 702 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 702 may also include a memory controller to provide the processor 708 and the input unit 703 access to the memory 702.
The input unit 703 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 703 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 708, and can receive and execute commands sent by the processor 708. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 703 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 704 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 704 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is communicated to the processor 708 to determine the type of touch event, and the processor 708 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 706, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 706 can transmit the electrical signal converted from the received audio data to a loudspeaker, and the electrical signal is converted into a sound signal by the loudspeaker and output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 706 and converted into audio data, which is then processed by the audio data output processor 708, and then transmitted to, for example, another terminal via the RF circuit 701, or the audio data is output to the memory 702 for further processing. The audio circuitry 706 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 707, and provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 707, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 708 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 702 and calling data stored in the memory 702, thereby performing overall monitoring of the handset. Optionally, processor 708 may include one or more processing cores; preferably, the processor 708 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 708.
The terminal also includes a power source 709 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 708 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 709 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 708 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and the processor 708 runs the application programs stored in the memory 702, thereby implementing various functions:
acquiring an interface set in a preset page, wherein each interface in the interface set indicates an expression;
acquiring character codes of corresponding expressions through interfaces in the interface set to obtain a character code set;
determining a target expression image according to the character code set and the interface set;
and updating the expression images in the stored expression sets according to the target expression image.
The implementation method of the above operations may specifically refer to the above embodiments, and details are not described herein.
As can be seen from the above, in the terminal provided in this embodiment, each interface in the interface set indicates one expression by acquiring the interface set in the preset page, and the character code of the corresponding expression is acquired by acquiring the interface in the interface set to obtain the character code set, then the target expression image is determined according to the character code set and the interface set, and the expression image in the stored expression set is updated according to the target expression image, and the latest expression image can be obtained without the need of image cutting and manual screening, which is simple in operation and high in processing efficiency.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method, the device and the system for updating expression images provided by the embodiment of the invention are described in detail above, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. An updating method of expression images is applied to a terminal and comprises the following steps:
when a preset page is logged in, or a new expression is added to the preset page is detected, acquiring an interface set in the preset page, wherein each interface in the interface set indicates an expression, and the preset page is a webpage provided by an expression designer server;
acquiring character codes of corresponding expressions through interfaces in the interface set to obtain a character code set;
acquiring a stored code set corresponding to a stored expression set, and determining a target character code according to the character code set and the stored code set;
determining a corresponding interface from the interface set according to the target character code, acquiring a plurality of expression images corresponding to the target character code through the determined interface, and then selecting a corresponding expression image from the plurality of expression images as a target expression image according to a preset strategy;
and updating the expression images in the stored expression set according to the target expression image.
2. The method for updating an expression image according to claim 1, wherein the determining a target character code according to the character code set and the stored code set comprises:
matching each character code in the character code set with the stored code set;
and if the matching fails, determining the character code with the failed matching as the target character code.
3. The method for updating expression images according to any one of claims 1-2, wherein the updating expression images in the stored expression set according to the target expression image comprises:
determining the position to be stored of the target expression image in the stored expression set according to the target character code;
and storing the target expression image at the position to be stored so as to add the target expression image in the stored expression set.
4. The method for updating expression images according to claim 3, wherein after the expression images in the stored expression set are updated according to the target expression image, the method for updating expression images further comprises:
adding the target character code in the stored code set;
generating comparison information according to the added stored expression set and the added stored coding set;
and uploading the comparison information to a server.
5. The method for updating an expression image according to claim 4, wherein after uploading the comparison information to a server, the method for updating an expression image further comprises:
acquiring a character code of an expression to be sent and a user identifier of an object to be sent;
generating an expression sending request according to the character code of the expression to be sent and the user identification;
and sending the expression sending request to a server so that the server sends a corresponding expression image to the object to be sent according to the expression sending request and the comparison information.
6. An expression image updating device is applied to a terminal and comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an interface set in a preset page when the preset page is logged in or a new expression is detected to be added in the preset page, each interface in the interface set indicates an expression, and the preset page is a webpage provided by an expression designer server;
the second acquisition module is used for acquiring the character codes of the corresponding expressions through the interfaces in the interface set to obtain a character code set;
the determining module specifically comprises an obtaining submodule, which is used for obtaining a stored coding set corresponding to a stored expression set; the first determining submodule is used for determining a target character code according to the character code set and the stored code set; the second determining submodule is used for determining a corresponding interface from the interface set according to the target character code; the third determining sub-module is used for acquiring a plurality of expression images corresponding to the target character code through the determined interface, and then selecting the corresponding expression image from the plurality of expression images as a target expression image according to a preset strategy;
and the updating module is used for updating the expression images in the stored expression set according to the target expression image.
7. The apparatus for updating an expression image according to claim 6, wherein the first determining sub-module is specifically configured to:
matching each character code in the character code set with the stored code set;
and if the matching fails, determining the character code with the failed matching as the target character code.
8. The apparatus according to any one of claims 6 to 7, wherein the update module is specifically configured to:
determining the position to be stored of the target expression image in the stored expression set according to the target character code;
and storing the target expression image at the position to be stored so as to add the target expression image in the stored expression set.
9. The apparatus for updating an expression image according to claim 8, further comprising an upload module configured to:
after the updating module updates the expression images in the stored expression sets according to the target expression images, the target character codes are added in the stored code sets;
generating comparison information according to the added stored expression set and the added stored coding set;
and uploading the comparison information to a server.
10. The apparatus for updating an expression image according to claim 9, further comprising a sending module configured to:
after the uploading module uploads the comparison information to a server, acquiring a character code of an expression to be sent and a user identifier of an object to be sent;
generating an expression sending request according to the character code of the expression to be sent and the user identification;
and sending the expression sending request to a server so that the server sends a corresponding expression image to the object to be sent according to the expression sending request and the comparison information.
11. A computer-readable storage medium storing a computer program, which when run on a computer causes the computer to execute the method for updating an expression image according to claim 1.
CN201610648223.8A 2016-08-09 2016-08-09 Expression image updating method and device Active CN106293738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610648223.8A CN106293738B (en) 2016-08-09 2016-08-09 Expression image updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610648223.8A CN106293738B (en) 2016-08-09 2016-08-09 Expression image updating method and device

Publications (2)

Publication Number Publication Date
CN106293738A CN106293738A (en) 2017-01-04
CN106293738B true CN106293738B (en) 2020-03-17

Family

ID=57667329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610648223.8A Active CN106293738B (en) 2016-08-09 2016-08-09 Expression image updating method and device

Country Status (1)

Country Link
CN (1) CN106293738B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970900A (en) * 2017-03-26 2017-07-21 北京图文天地科技发展有限公司 A kind of method of compatible emoji emoticon typesetting
CN107483545B (en) * 2017-07-20 2021-10-29 努比亚技术有限公司 Expression picture updating method, mobile terminal and storage medium
CN108614805B (en) * 2018-05-02 2022-03-25 武汉斗鱼网络科技有限公司 Method and system for displaying color expression using QML, server and medium
CN109412929B (en) * 2018-09-11 2020-02-07 北京达佳互联信息技术有限公司 Method and device for adaptively adjusting conditions in instant messaging application and mobile terminal
CN109873756B (en) 2019-03-08 2020-04-03 百度在线网络技术(北京)有限公司 Method and apparatus for transmitting information
CN110198380A (en) * 2019-06-12 2019-09-03 广东佳米科技有限公司 A kind of method and system for making window client support Emoji expression

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955830A (en) * 2011-08-31 2013-03-06 腾讯科技(深圳)有限公司 Open platform for expression search, as well as method and system for expression search
CN103838501A (en) * 2012-11-20 2014-06-04 联想(北京)有限公司 Information processing method and electronic device
CN103647870A (en) * 2013-11-27 2014-03-19 宇龙计算机通信科技(深圳)有限公司 Terminal and terminal expression display method

Also Published As

Publication number Publication date
CN106293738A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106293738B (en) Expression image updating method and device
JP6511541B2 (en) Message updating method, apparatus and terminal
CN106878406B (en) Information sharing method, device and system
JP6557741B2 (en) Picture combining method, terminal, and picture combining system
CN106506321B (en) Group message processing method and terminal device
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
JP6910300B2 (en) A method for displaying chat history records and a device for displaying chat history records
CN105630846B (en) Head portrait updating method and device
CN106775194B (en) Application interface switching method and device
CN105227598B (en) Resource sharing method, device and system based on cloud storage
TW201502986A (en) Apparatus, system and method of showing notifications of web browser application
JP6915074B2 (en) Message notification method and terminal
CN112749074B (en) Test case recommending method and device
WO2015032284A1 (en) Method, terminal device, and system for instant messaging
CN107317828B (en) File downloading method and device
CN105095161B (en) Method and device for displaying rich text information
CN104133693A (en) Installation state detection method, device and terminal
CN106339402B (en) Method, device and system for pushing recommended content
CN109739409B (en) Batch processing method and device and terminal equipment
CN104954231B (en) Method and device for sending and displaying recommendation information
CN107798008B (en) Content pushing system, method and device
CN106330875B (en) Message display method and device
CN106209601B (en) State update message pushing method and device

Legal Events

Date Code Title Description
C06 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