CN107423386B - Method and device for generating electronic card - Google Patents

Method and device for generating electronic card Download PDF

Info

Publication number
CN107423386B
CN107423386B CN201710592293.0A CN201710592293A CN107423386B CN 107423386 B CN107423386 B CN 107423386B CN 201710592293 A CN201710592293 A CN 201710592293A CN 107423386 B CN107423386 B CN 107423386B
Authority
CN
China
Prior art keywords
electronic card
information
multimedia information
contact
generating
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
CN201710592293.0A
Other languages
Chinese (zh)
Other versions
CN107423386A (en
Inventor
李晓寅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710592293.0A priority Critical patent/CN107423386B/en
Publication of CN107423386A publication Critical patent/CN107423386A/en
Application granted granted Critical
Publication of CN107423386B publication Critical patent/CN107423386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/435Filtering based on additional data, e.g. user or group profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4547Network directories; Name-to-address mapping for personal communications, i.e. using a personal identifier

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a method and a device for generating an electronic card, and belongs to the field of internet. The method comprises the following steps: when a generation request of the electronic card is received, determining a contact person receiving the electronic card, acquiring target multimedia information related to the contact person, and generating the electronic card according to the target multimedia information. That is, the electronic card sent to the contact is an electronic card generated according to the target multimedia information related to the contact. At this time, when the terminal sends the electronic card to different contacts, the electronic card is generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic card sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.

Description

Method and device for generating electronic card
Technical Field
The present disclosure relates to the field of internet, and in particular, to a method and an apparatus for generating an electronic card.
Background
With the development of internet technology, electronic cards have gradually replaced paper cards and are widely used by people. For example, a person may send a birthday blessing, a holiday blessing, or a wedding invitation, etc. to a contact via an electronic card.
In the related art, different types of electronic card templates, such as a birthday card template, a new year happy card template, or a wedding invitation card template, are stored in advance in a terminal. When the terminal detects that the user selects the electronic card template of a certain type, the terminal directly sends the electronic card template selected by the user as an electronic card to a contact of the user.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method and apparatus for generating an electronic card.
According to a first aspect of embodiments of the present disclosure, there is provided a method of generating an electronic card, the method comprising:
when a generation request of an electronic card is received, determining a contact person receiving the electronic card;
acquiring target multimedia information related to the contact;
and generating the electronic card according to the target multimedia information, wherein the electronic card comprises the target multimedia information.
Optionally, the acquiring the target multimedia information related to the contact includes:
obtaining the target multimedia information from at least one of: the information stored locally, the information stored in the cloud end and the communication information between the contact persons are obtained;
wherein the target multimedia information includes at least one type of information: text information, image information, audio information, video information.
Optionally, the target multimedia information is obtained from at least one of: the information of local storage, the information of high in the clouds storage, with communication information between the contact includes:
determining a communication account of the contact person and a communication account of a user sending the electronic card;
sending a communication information query request to a server, wherein the communication information query request carries the communication account of the contact person and the communication account of the user sending the electronic card;
when communication information sent by the server is received, searching multimedia information from the communication information, wherein the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card;
determining the searched multimedia information as candidate multimedia information related to the contact;
and determining the target multimedia information according to the candidate multimedia information.
Optionally, the determining the target multimedia information according to the candidate multimedia information includes:
generating a multimedia information list according to candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information;
displaying the multimedia information list;
detecting a selection operation for the multimedia information list;
and responding to the detection of the selection operation, and acquiring target multimedia information indicated by the selection operation.
Optionally, the generating the electronic card according to the target multimedia information includes at least one of:
generating a text part in the electronic card according to the text information;
generating an image part in the electronic card according to the image information;
generating an audio part in the electronic card according to the audio information;
and generating a video part in the electronic card according to the video information.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for generating an electronic card, the apparatus comprising:
the electronic card generating device comprises a determining module, a generating module and a sending module, wherein the determining module is used for determining a contact person receiving an electronic card when a generating request of the electronic card is received;
the acquisition module is used for acquiring target multimedia information related to the contact;
and the generating module is used for generating the electronic card according to the target multimedia information, and the electronic card comprises the multimedia information.
Optionally, the obtaining module includes:
an obtaining sub-module, configured to obtain the target multimedia information from at least one of: the information stored locally, the information stored in the cloud end and the communication information between the contact persons are obtained;
wherein the target multimedia information includes at least one type of information: text information, image information, audio information, video information.
Optionally, the obtaining sub-module includes:
the first determination unit is used for determining the communication account of the contact person and the communication account of the user sending the electronic card;
the sending unit is used for sending a communication information query request to a server, wherein the communication information query request carries the communication account of the contact person and the communication account of the user sending the electronic card;
the searching unit is used for searching multimedia information from the communication information when receiving the communication information sent by the server, wherein the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card;
the second determining unit is used for determining the searched multimedia information as candidate multimedia information related to the contact;
and the third determining unit is used for determining the target multimedia information according to the candidate multimedia information.
Optionally, the third determining unit is configured to:
generating a multimedia information list according to candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information;
displaying the multimedia information list;
detecting a selection operation for the multimedia information list;
and responding to the detection of the selection operation, and acquiring target multimedia information indicated by the selection operation.
Optionally, the generating module includes at least one of the following sub-modules:
the first generation submodule is used for generating a text part in the electronic card according to the text information;
the second generation submodule is used for generating an image part in the electronic card according to the image information;
the third generation submodule is used for generating an audio part in the electronic card according to the audio information;
and the fourth generation submodule is used for generating a video part in the electronic card according to the video information.
According to a third aspect of embodiments of the present disclosure, there is provided an apparatus for generating an electronic card, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of generating an electronic card of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the method for generating an electronic card according to the first aspect.
In the embodiment of the disclosure, when a generation request of an electronic card is received, a contact person receiving the electronic card is determined, target multimedia information related to the contact person is acquired, and the electronic card is generated according to the target multimedia information. That is, the electronic card sent to the contact is the electronic card generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic cards sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a method for generating an electronic card according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of another method for generating an electronic card according to an embodiment of the disclosure.
Fig. 3 is a flowchart of another method for generating an electronic card according to an embodiment of the disclosure.
Fig. 4 is a flowchart of another method for generating an electronic card according to an embodiment of the disclosure.
Fig. 5 is a block diagram of an apparatus for generating an electronic card according to an embodiment of the disclosure.
Fig. 6 is a block diagram of another apparatus for generating an electronic card according to an embodiment of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure will be described. In the related art, when a user wants to send an electronic card to a certain contact person, the terminal directly sends the electronic card template selected by the user as the electronic card to the contact person. Because the terminal directly determines the electronic card template selected by the user as the electronic card, when the user sends the electronic card to a plurality of different contacts at the same time and the electronic card template selected by the user is the same, the contents of the electronic card received by the plurality of different contacts are basically the same, that is, the contents of the electronic card generated by the method are single, and the interaction between the user and the contacts is not facilitated.
Therefore, in the embodiment of the present disclosure, when a generation request of the electronic card is received, the electronic card is generated according to the target multimedia information related to the contact. That is, the electronic card sent to the contact is an electronic card generated according to the target multimedia information related to the contact. At this time, when the terminal sends the electronic card to different contacts, the electronic card is generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic card sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
The method for generating an electronic card according to the embodiment of the present disclosure will be further described with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for generating an electronic card according to an embodiment of the present disclosure, where the method is applied to a terminal, and the terminal may be a mobile phone, a tablet computer, or a computer. As shown in fig. 1, the method comprises the steps of:
in step 101, when a request for generating an electronic card is received, a contact for receiving the electronic card is determined.
In step 102, target multimedia information related to the contact is obtained.
In step 103, an electronic card is generated according to the target multimedia information, and the target multimedia information is included in the electronic card.
In the embodiment of the disclosure, when a generation request of an electronic card is received, a contact person receiving the electronic card is determined, target multimedia information related to the contact person is acquired, and the electronic card is generated according to the target multimedia information. That is, the electronic card sent to the contact is the electronic card generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic cards sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
Optionally, the obtaining of the target multimedia information related to the contact includes:
obtaining the target multimedia information from at least one of: the information stored locally, the information stored in the cloud and the communication information between the contact persons are stored in the cloud;
wherein the target multimedia information includes at least one type of information: text information, image information, audio information, video information.
Optionally, the target multimedia information is obtained from at least one of: the information of local storage, the information of high in the clouds storage, and the communication information between this contact include:
determining a communication account of the contact person and a communication account of a user sending the electronic card;
sending a communication information query request to a server, wherein the communication information query request carries the communication account of the contact person and the communication account of the user sending the electronic card;
when communication information sent by the server is received, searching multimedia information from the communication information, wherein the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card;
determining the searched multimedia information as candidate multimedia information related to the contact;
and determining the target multimedia information according to the candidate multimedia information.
Optionally, determining the target multimedia information according to the candidate multimedia information includes:
generating a multimedia information list according to candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information;
displaying the multimedia information list;
detecting a selection operation aiming at the multimedia information list;
and responding to the detection of the selection operation, and acquiring the target multimedia information indicated by the selection operation.
Optionally, generating the electronic card according to the target multimedia information includes at least one of:
generating a text part in the electronic card according to the text information;
generating an image part in the electronic card according to the image information;
generating an audio part in the electronic card according to the audio information;
and generating a video part in the electronic card according to the video information.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
It should be noted that there are various ways for the terminal to obtain the target multimedia information related to the contact, for example, the terminal may obtain the target multimedia information from at least one of the following items: the information stored locally, the information stored in the cloud and the communication information between the contact person and the cloud. The following embodiments of the present disclosure will be discussed.
Fig. 2 is a flowchart of another method for generating an electronic card according to an embodiment of the present disclosure, where the method is applied to a terminal, and the terminal may be a mobile phone, a tablet computer, or a computer. The embodiment of the disclosure is applied to a scenario in which a terminal acquires the target multimedia information from the communication information between the terminal and the contact, as shown in fig. 2, the method includes the following steps:
in step 201, when a request for generating an electronic card is received, a contact for receiving the electronic card is determined.
In the embodiment of the disclosure, in order to avoid the situation that the contents of the electronic cards sent to different contacts are the same, the terminal may generate the electronic card according to the related information of the contact receiving the electronic card. Therefore, when the terminal receives the generation request of the electronic card, the contact person receiving the electronic card needs to be determined first.
After the terminal determines to receive the contact of the electronic card, the terminal may acquire multimedia information related to the contact in order to generate the electronic card related to the contact. Wherein the terminal can acquire the multimedia information related to the contact through the following steps 202 to 206.
In step 202, the communication account number of the contact and the communication account number of the user who sent the electronic card are determined.
The communication account number comprises a contact account number in a telephone application and a social application account number in a social application. The social application account is an account registered in a social application by the contact and the user, and the social application is an installed social application of the terminal. Because different social application accounts correspond to different users in the social application, the social application account of the contact can be used as the identifier of the contact in the social application. For example, when the social application is WeChat, the social application account of the contact is the account registered by the contact in WeChat.
In step 203, a communication information query request is sent to the server, and the communication account of the contact and the communication account of the user sending the electronic card are carried in the communication information query request.
In one possible implementation, when there is multimedia information in the communication information between the user and the contact in the phone application or the social application, the multimedia information is most likely multimedia information related to the contact. Therefore, the terminal can acquire the multimedia information related to the contact from the communication information between the user and the contact. And the communication information between the user and the contact is usually stored in a server, wherein the server is a server corresponding to a telephone application or a social application. Therefore, the terminal needs to obtain the communication information between the user and the contact through the server, that is, the terminal needs to send a communication information query request to the server.
And when the server receives a communication information inquiry request sent by the terminal, sending the communication information between the user and the contact person to the terminal. And the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card. That is, the server determines all the communication information of the user according to the communication account of the user carried in the communication information query request. And searching the communication information between the user and the contact person from all the communication information of the user according to the communication account of the contact person, and sending the searched communication information to the terminal.
The communication information can be a chat record of the user and the contact in a telephone application, the chat record comprises audio information and short messages, and can also be a chat record of the user and the contact in a social application, and the chat record comprises text information, picture information, audio information and video information. When the communication information is the chat records of the user and the contact in the telephone application, the communication information inquiry request carries the contact account of the contact and the contact account of the user sending the electronic card. When the communication information is a chat record of the user and the contact in the social application, the communication information query request carries the social application account of the contact and the social application account of the user sending the electronic card.
In step 204, when the communication information sent by the server is received, the multimedia information is searched from the communication information.
Because the communication information between the user and the contact includes various types of information, such as text information, picture information, audio information or video information, when the terminal receives the communication information, multimedia information required to generate the electronic card needs to be searched from the communication information, that is, multimedia information needs to be searched from the communication information. Wherein the multimedia information comprises at least one of the following types of information: text information, image information, audio information, video information.
In order to further ensure that the searched multimedia information is the multimedia information related to the contact, the implementation manner of searching the image information from the communication information may be: the terminal acquires the image identification of the contact person and the image identification of the user, acquires at least one image included in the communication information, judges whether a part with the similarity higher than the preset similarity to the image identification of the contact person exists in the image or not for each image in the at least one image, and determines the image as the image information in the multimedia information if the part with the similarity higher than the preset similarity to the image identification of the contact person exists in the image.
Or, for each image in the at least one image, determining whether a part with a similarity greater than a preset similarity between the image identifier of the contact and the image identifier of the user exists in the image, and if so, determining the image as the image information in the multimedia information.
The image identifier is an image identifier registered by the contact and the user in the social application, for example, the image identifier is an image of the contact and the user in a QQ or WeChat. The preset similarity is a preset similarity, and the preset similarity may be 80%, 90%, or 95%.
In step 205, the found multimedia information is determined as candidate multimedia information related to the contact.
The searched multimedia information is searched from the communication information between the user and the contact person, so that the searched multimedia information is the multimedia information related to the contact person, that is, the terminal can directly determine the searched multimedia information as the candidate multimedia information related to the contact person.
In step 206, the target multimedia information is determined according to the candidate multimedia information.
Since the candidate multimedia information usually includes a plurality of multimedia information, and the user may only need a few of the multimedia information when sending the electronic card to the contact, the terminal determines the target multimedia information according to the candidate multimedia information.
The implementation of step 206 may be: and the terminal generates a multimedia information list according to the candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information, and the terminal displays the multimedia information list. The terminal detects the selection operation aiming at the multimedia information list, and responds to the detection of the selection operation to acquire the target multimedia information indicated by the selection operation. That is, for the candidate multimedia information, the user may select multimedia information from the candidate multimedia information, and the terminal may determine the multimedia information selected by the user as the target multimedia information.
In addition, since the multimedia information includes at least one type of information: text information, image information, audio information, video information, and therefore, the determined target multimedia information also includes at least one type of information of: text information, image information, audio information, video information.
In step 207, an electronic card is generated according to the target multimedia information, and the target multimedia information is included in the electronic card.
Since the target multimedia information also includes at least one type of information: text information, image information, audio information, video information. Thus, implementations of step 207 include at least one of the following implementations:
(1) and generating a text part in the electronic card according to the text information, namely determining the text information in the target multimedia information as the text part in the electronic card.
For example, if the text information included in the target multimedia information is a short message, the text part in the electronic card can be directly generated according to the short message.
(2) And generating an image part in the electronic card according to the image information, namely determining the image information in the target multimedia information as the image part in the electronic card.
For example, if the image information included in the target multimedia information is a group photo of the user and the contact person, the text part in the electronic card can be directly generated according to the group photo.
(3) And generating an audio part in the electronic card according to the audio information.
Wherein, the audio part in the electronic card generated according to the audio information may be: and determining the audio information in the target multimedia information as the audio part in the electronic card.
For example, the audio information included in the target multimedia information is the voice information of the user and the contact in a telephone application or the voice information mutually sent in a social application, and the audio part in the electronic card can be directly generated according to the voice information.
The step of generating the audio part in the electronic card according to the audio information may also be: extracting sound wave characteristics of the contact according to audio information included in the target multimedia information, determining text information used for generating an audio part, synthesizing audio according to the sound wave characteristics and the text information, and directly determining the synthesized audio as the audio part in the electronic card.
Or, the step of generating the audio part in the electronic card according to the audio information may also be: extracting sound wave characteristics of the user according to the audio information included in the target multimedia information, determining text information used for generating an audio part, synthesizing audio according to the sound wave characteristics and the text information, and directly determining the synthesized audio as the audio part in the electronic card.
The text information for generating the audio part may be the text information in the target multimedia information, or the text information input by the user through a preset operation.
(4) And generating a video part in the electronic card according to the video information, namely determining the video information in the target multimedia information as the video part in the electronic card.
For example, the video information included in the target multimedia information is the video information that the user and the contact send each other in the social application or the video information that the video call is performed in the social application, and then the video part in the electronic card can be directly generated according to the video information.
Further, in order to improve the interest of the electronic card sent to the contact, after the terminal generates the electronic card, the terminal can also collect the head portrait of the user sending the electronic card and the voice of the user, and integrate the voice of the user and the head portrait of the user to obtain an animation short film based on the head portrait of the user and the voice of the user. And the terminal adds the obtained short animation film to the generated electronic card and sends the electronic card added with the short animation film to the contact person.
In the embodiment of the disclosure, when a generation request of an electronic card is received, a contact person receiving the electronic card is determined, target multimedia information related to the contact person is acquired, and the electronic card is generated according to the target multimedia information. That is, the electronic card sent to the contact is the electronic card generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic cards sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
Fig. 3 is a flowchart of another method for generating an electronic card according to an embodiment of the present disclosure, where the method is applied to a terminal, and the terminal may be a mobile phone, a tablet computer, or a computer. The embodiment of the disclosure is applied to a scene in which a terminal locally acquires target multimedia information related to a contact, as shown in fig. 3, the method includes the following steps:
in step 301, when a request for generation of an electronic card is received, a contact to receive the electronic card is determined.
The implementation of step 301 is the same as that of step 201, and will not be described in detail here.
In step 302, a plurality of multimedia information stored in advance is displayed.
In the embodiment of the disclosure, the terminal locally acquires the target multimedia information related to the contact, and therefore, when the terminal receives the generation request of the electronic card and determines to receive the contact of the electronic card, a plurality of pieces of multimedia information stored in advance, such as picture information, voice information or video information stored in advance, need to be displayed first.
In step 303, when the terminal detects a selection operation for any one of the plurality of multimedia information, the multimedia information indicated by the selection operation is acquired, and the acquired multimedia information is determined as candidate multimedia information.
After the terminal displays the plurality of pre-stored multimedia information, the user can select multimedia information related to the contact from the plurality of multimedia information according to the plurality of displayed multimedia information. That is, when the terminal detects a selection operation for any multimedia information, in response to the selection operation, the multimedia information indicated by the selection operation is determined as the multimedia information related to the contact, that is, the candidate multimedia information.
In step 304, the target multimedia information is determined according to the candidate multimedia information.
The implementation of step 304 is the same as that of step 206, and will not be described in detail here.
In step 305, an electronic card is generated according to the target multimedia information, and the target multimedia information is included in the electronic card.
The implementation of step 305 is the same as that of step 207, and will not be described in detail here.
Further, after the terminal generates the electronic card according to step 305, the terminal may also send the avatar of the user of the electronic card and the voice-generated short animation of the user, and add the generated short animation to the electronic card to increase the interest of the electronic card sent to the contact.
In the embodiment of the disclosure, when a generation request of an electronic card is received, a contact person receiving the electronic card is determined, target multimedia information related to the contact person is acquired, and the electronic card is generated according to the target multimedia information. That is, the electronic card sent to the contact is the electronic card generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic cards sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
Fig. 4 is a flowchart of another method for generating an electronic card according to an embodiment of the present disclosure, where the method is applied to a terminal, and the terminal may be a mobile phone, a tablet computer, or a computer. The embodiment of the disclosure is applied to a scene in which a terminal acquires target multimedia information related to a contact from a cloud, as shown in fig. 4, the method includes the following steps:
in step 401, when a request for generation of an electronic card is received, a contact for receiving the electronic card is determined.
The implementation of step 401 is the same as that of step 201, and will not be described in detail here.
In step 402, a multimedia information query request is sent to the cloud, where the multimedia information query request carries the identifier of the contact and the identifier of the user sending the electronic card.
The contact person identification is used for uniquely identifying the contact person, and the user identification is used for uniquely identifying the user. The identification of the contact person is an account number registered by the contact person in the cloud, and the identification of the user is an account number registered by the user in the cloud.
When the cloud receives the multimedia information query request, the multimedia information of the contact stored in the cloud is obtained according to the identification of the contact, the multimedia information of the user stored in the cloud is obtained according to the identification of the user, and the multimedia information of the contact stored in the cloud and the multimedia information of the user stored in the cloud are sent to the terminal.
In step 403, when the multimedia information sent by the cloud is received, candidate multimedia information is determined.
In a possible implementation manner, when the terminal receives the multimedia information of the contact stored in the cloud and the multimedia information of the user stored in the cloud sent by the cloud, the multimedia information of the contact stored in the cloud and the multimedia information of the user stored in the cloud are displayed, and when the terminal detects a selection operation for any one of the displayed multimedia information, the multimedia information indicated by the selection operation is determined as candidate multimedia information.
In another possible implementation manner, when the terminal receives the multimedia information of the contact stored in the cloud and the multimedia information of the user stored in the cloud sent by the cloud, first multimedia information and second multimedia information are obtained, that is, the first multimedia information is the multimedia information of the contact stored in the cloud, and the second multimedia information is the multimedia information of the user stored in the cloud. The method comprises the steps of obtaining at least one image included by the first multimedia information and the second multimedia information, obtaining an image identifier of the user and an image identifier of the contact person at the same time, judging whether a part with the similarity between the image identifier of the user and the image identifier of the contact person being larger than a preset similarity exists in the image or not for each image in the at least one image, and if yes, determining the candidate multimedia information by the image.
For example, the image identifier of the contact is an image of the contact in the WeChat, the user identifier is an image of the user in the WeChat, the first multimedia information is a photo of the contact stored in the cloud, the second multimedia information is a photo of the user stored in the cloud, for each of the two sets of photos, it is determined whether a portion having a similarity greater than a preset similarity with the image of the contact in the WeChat and the image of the user in the WeChat exists in the photo, if so, the photo is determined to be a composite image of the user and the contact, that is, the photo is determined to be the candidate multimedia information.
In step 404, the target multimedia information is determined according to the candidate multimedia information.
The implementation of step 404 is the same as that of step 206, and will not be described in detail here.
In step 405, an electronic card is generated according to the target multimedia information, and the target multimedia information is included in the electronic card.
The implementation of step 405 is the same as that of step 207, and will not be described in detail here.
In the embodiment of the disclosure, when a generation request of an electronic card is received, a contact person receiving the electronic card is determined, target multimedia information related to the contact person is acquired, and the electronic card is generated according to the target multimedia information. That is, the electronic card sent to the contact is the electronic card generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic cards sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
Fig. 5 is a block diagram of an apparatus for generating an electronic card. Referring to fig. 5, the apparatus includes a determining module 501, an obtaining module 502, and a generating module 503.
A determining module 501, configured to determine, when a request for generating an electronic card is received, a contact that receives the electronic card;
an obtaining module 502, configured to obtain target multimedia information related to the contact;
the generating module 503 is configured to generate the electronic card according to the target multimedia information, where the electronic card includes the multimedia information.
Optionally, the obtaining module 502 includes:
an obtaining sub-module, configured to obtain the target multimedia information from at least one of: the information stored locally, the information stored in the cloud and the communication information between the contact persons are stored in the cloud;
wherein the target multimedia information includes at least one type of information: text information, image information, audio information, video information.
Optionally, the obtaining sub-module includes:
the first determining unit is used for determining the communication account of the contact person and the communication account of the user sending the electronic card;
the sending unit is used for sending a communication information query request to the server, wherein the communication information query request carries the communication account of the contact person and the communication account of the user sending the electronic card;
the searching unit is used for searching multimedia information from the communication information when receiving the communication information sent by the server, wherein the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card;
the second determining unit is used for determining the searched multimedia information as candidate multimedia information related to the contact;
and the third determining unit is used for determining the target multimedia information according to the candidate multimedia information.
Optionally, the third determining unit is configured to:
generating a multimedia information list according to candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information;
displaying the multimedia information list;
detecting a selection operation aiming at the multimedia information list;
and responding to the detection of the selection operation, and acquiring the target multimedia information indicated by the selection operation.
Optionally, the generating module 503 includes at least one of the following sub-modules:
the first generation submodule is used for generating a text part in the electronic card according to the text information;
the second generation submodule is used for generating an image part in the electronic card according to the image information;
the third generation submodule is used for generating an audio part in the electronic card according to the audio information;
and the fourth generation submodule is used for generating the video part in the electronic card according to the video information.
In the embodiment of the disclosure, when a generation request of an electronic card is received, a contact person receiving the electronic card is determined, target multimedia information related to the contact person is acquired, and the electronic card is generated according to the target multimedia information. That is, the electronic card sent to the contact is the electronic card generated according to the target multimedia information related to the contact, so that the situation that the contents of the electronic cards sent to different contacts are the same can be avoided. Meanwhile, the content of the electronic card can be sent to the contact person in a rich mode, the problem that the content of the electronic card is single is solved, and interaction between a user and the contact person is facilitated.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram of an apparatus 600 for generating an electronic card according to an embodiment of the disclosure. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods provided by the embodiments illustrated in fig. 1-4 and described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method provided by the embodiments of fig. 1-4 described above.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A method of generating an electronic card, the method comprising:
when a generation request of an electronic card is received, determining a contact person receiving the electronic card;
acquiring target multimedia information related to the contact from communication information between the contact and the user sending the electronic card and the contact, wherein the communication information is a chat record of the user sending the electronic card and the contact in a telephone application or a social application, and the target multimedia information comprises at least one type of information: text information, image information, audio information, video information;
generating the electronic card according to the target multimedia information, wherein the electronic card comprises the target multimedia information;
acquiring a head portrait and voice of a user who sends the electronic card, and integrating the head portrait and the voice to obtain a short animation;
and adding the animation short film into the generated electronic card, and sending the electronic card added with the animation short film to the contact.
2. The method of claim 1, wherein the obtaining target multimedia information related to the contact from the communication information with the contact comprises:
determining a communication account of the contact person and a communication account of a user sending the electronic card;
sending a communication information query request to a server, wherein the communication information query request carries the communication account of the contact person and the communication account of the user sending the electronic card;
when communication information sent by the server is received, searching multimedia information from the communication information, wherein the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card;
determining the searched multimedia information as candidate multimedia information related to the contact;
and determining the target multimedia information according to the candidate multimedia information.
3. The method of claim 2, wherein the determining the target multimedia information according to the candidate multimedia information comprises:
generating a multimedia information list according to candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information;
displaying the multimedia information list;
detecting a selection operation for the multimedia information list;
and responding to the detection of the selection operation, and acquiring target multimedia information indicated by the selection operation.
4. The method according to claim 1, wherein said generating the electronic card from the target multimedia information comprises at least one of:
generating a text part in the electronic card according to the text information;
generating an image part in the electronic card according to the image information;
generating an audio part in the electronic card according to the audio information;
and generating a video part in the electronic card according to the video information.
5. An apparatus for generating an electronic card, the apparatus comprising:
the electronic card generating device comprises a determining module, a generating module and a sending module, wherein the determining module is used for determining a contact person receiving an electronic card when a generating request of the electronic card is received;
the acquisition module comprises an acquisition sub-module, the acquisition sub-module is used for acquiring target multimedia information related to the contact person from communication information between the contact person and the acquisition sub-module, the communication information is chat records of a user sending the electronic card and the contact person in a telephone application or a social application, and the target multimedia information comprises at least one of the following types of information: text information, image information, audio information, video information;
the generating module is used for generating the electronic card according to the target multimedia information, and the electronic card comprises the multimedia information;
the device is also used for collecting the head portrait and the voice of the user sending the electronic card, and integrating the head portrait and the voice to obtain the short animation; and adding the animation short film into the generated electronic card, and sending the electronic card added with the animation short film to the contact.
6. The apparatus of claim 5, wherein the acquisition submodule comprises:
the first determination unit is used for determining the communication account of the contact person and the communication account of the user sending the electronic card;
the sending unit is used for sending a communication information query request to a server, wherein the communication information query request carries the communication account of the contact person and the communication account of the user sending the electronic card;
the searching unit is used for searching multimedia information from the communication information when receiving the communication information sent by the server, wherein the communication information is obtained by the server according to the communication account of the contact person and the communication account of the user sending the electronic card;
the second determining unit is used for determining the searched multimedia information as candidate multimedia information related to the contact;
and the third determining unit is used for determining the target multimedia information according to the candidate multimedia information.
7. The apparatus of claim 6, wherein the third determining unit is configured to:
generating a multimedia information list according to candidate multimedia information related to the contact, wherein the multimedia information list comprises the candidate multimedia information;
displaying the multimedia information list;
detecting a selection operation for the multimedia information list;
and responding to the detection of the selection operation, and acquiring target multimedia information indicated by the selection operation.
8. The apparatus of claim 5, wherein the generating module comprises at least one of the following sub-modules:
the first generation submodule is used for generating a text part in the electronic card according to the text information;
the second generation submodule is used for generating an image part in the electronic card according to the image information;
the third generation submodule is used for generating an audio part in the electronic card according to the audio information;
and the fourth generation submodule is used for generating a video part in the electronic card according to the video information.
9. An apparatus for generating an electronic card, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of claims 1-4.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-4.
CN201710592293.0A 2017-07-19 2017-07-19 Method and device for generating electronic card Active CN107423386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710592293.0A CN107423386B (en) 2017-07-19 2017-07-19 Method and device for generating electronic card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710592293.0A CN107423386B (en) 2017-07-19 2017-07-19 Method and device for generating electronic card

Publications (2)

Publication Number Publication Date
CN107423386A CN107423386A (en) 2017-12-01
CN107423386B true CN107423386B (en) 2020-07-03

Family

ID=60429906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710592293.0A Active CN107423386B (en) 2017-07-19 2017-07-19 Method and device for generating electronic card

Country Status (1)

Country Link
CN (1) CN107423386B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243280A (en) * 2017-12-25 2018-07-03 努比亚技术有限公司 A kind of e-greeting card sending method, mobile terminal and computer readable storage medium
CN109040331B (en) * 2018-06-27 2020-07-10 腾讯科技(深圳)有限公司 Electronic business card processing method and device, computing equipment and storage medium
CN109241768B (en) * 2018-08-03 2020-12-11 百度在线网络技术(北京)有限公司 Love information processing method, device, equipment and storage medium
CN111796745A (en) * 2020-06-29 2020-10-20 维沃移动通信有限公司 Information transmitting method, information receiving method, information transmitting device, information receiving device, and storage medium
CN114244798B (en) * 2021-11-23 2024-06-07 彩讯科技股份有限公司 Card message sending method, system, equipment and storage medium
CN114500423B (en) * 2022-01-27 2024-04-02 中国农业银行股份有限公司 Message processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937971A (en) * 2012-10-15 2013-02-20 郅刚锁 Automatic individual greeting card generation and transmission system
CN106611211A (en) * 2015-10-26 2017-05-03 蔡靖宇 Card for scanning two-dimensional code custom-made contents by using mobile device APP

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10373169B2 (en) * 2015-08-11 2019-08-06 Paypal, Inc. Enhancing information security via the use of a dummy credit card number

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937971A (en) * 2012-10-15 2013-02-20 郅刚锁 Automatic individual greeting card generation and transmission system
CN106611211A (en) * 2015-10-26 2017-05-03 蔡靖宇 Card for scanning two-dimensional code custom-made contents by using mobile device APP

Also Published As

Publication number Publication date
CN107423386A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN106028166B (en) Live broadcast room switching method and device in live broadcast process
CN107423386B (en) Method and device for generating electronic card
US9953212B2 (en) Method and apparatus for album display, and storage medium
US9602516B2 (en) Method, server and terminal device for establishing communication session
CN106897937B (en) Method and device for displaying social sharing information
EP3026876B1 (en) Method for acquiring recommending information, terminal and server
CN106095465B (en) Method and device for setting identity image
CN105898573B (en) Multimedia file playing method and device
CN107229403B (en) Information content selection method and device
CN106331328B (en) Information prompting method and device
CN106777016B (en) Method and device for information recommendation based on instant messaging
CN108011990B (en) Contact management method and device
CN107493366B (en) Address book information updating method and device and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN113259226A (en) Information synchronization method and device, electronic equipment and storage medium
CN104850643B (en) Picture comparison method and device
CN112434338A (en) Picture sharing method and device, electronic equipment and storage medium
CN107229707B (en) Method and device for searching image
CN110636318A (en) Message display method, message display device, client device, server and storage medium
CN107908522B (en) Information display method and device and computer readable storage medium
CN106506808B (en) Method and device for prompting communication message
CN107222576B (en) Photo album synchronization method and device
CN106447747B (en) Image processing method and device
CN108027821B (en) Method and device for processing picture
CN105260088B (en) Information classification display processing method and device

Legal Events

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