CN112702260B - Image sending method and device and electronic equipment - Google Patents

Image sending method and device and electronic equipment Download PDF

Info

Publication number
CN112702260B
CN112702260B CN202011540049.8A CN202011540049A CN112702260B CN 112702260 B CN112702260 B CN 112702260B CN 202011540049 A CN202011540049 A CN 202011540049A CN 112702260 B CN112702260 B CN 112702260B
Authority
CN
China
Prior art keywords
target
image
association
target image
information
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
CN202011540049.8A
Other languages
Chinese (zh)
Other versions
CN112702260A (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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011540049.8A priority Critical patent/CN112702260B/en
Publication of CN112702260A publication Critical patent/CN112702260A/en
Application granted granted Critical
Publication of CN112702260B publication Critical patent/CN112702260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses an image sending method, an image sending device and electronic equipment, belongs to the technical field of communication, and aims to solve the problem that the electronic equipment mistakenly sends images in the user chatting process. The method comprises the following steps: under the condition that a chat interface of a target chat object is displayed, receiving a first input of a user, wherein the first input is used for triggering the electronic equipment to send a target image; and responding to the first input, and transmitting the target image when the target image has an association relation with the target chat object. The method and the device are applied to the scene of preventing the false publication of the emotion packages by utilizing the electronic equipment.

Description

Image sending method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an image sending method, an image sending device and electronic equipment.
Background
With the development of communication technology, the chat function of the electronic device is more and more powerful, for example, a user can send a wide variety of emoticons to other users through the electronic device to enrich chat content.
Currently, users can send different emoticons to different users depending on context or mood. For example, the user may send a funny emoticon to a friend, and may send a serious emoticon to a workgroup user. Specifically, in the process of chatting between the user and other users, the user can trigger the electronic device to directly send the emoticon to other users by clicking the emoticon.
However, in the process of finding the emoticon, the user may touch a certain emoticon by mistake, which may cause the electronic device to send an inappropriate emoticon to other users. For example, the user sends the laughter facial expression packet to the user of the workgroup by mistake, which causes unnecessary embarrassment.
Disclosure of Invention
The embodiment of the application aims to provide an image sending method, an image sending device and electronic equipment, which can solve the problem that the electronic equipment mistakenly sends images in the process of chatting of a user.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image sending method, where the method includes: under the condition that a chat interface of a target chat object is displayed, receiving a first input of a user, wherein the first input is used for triggering the electronic equipment to send a target image; and in response to the first input, transmitting the target image if the target image has an association relationship with the target chat object.
In a second aspect, an embodiment of the present application provides an image transmission apparatus, including: the device comprises a receiving module and a sending module; the system comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a first input of a user under the condition that a chat interface of a target chat object is displayed, and the first input is used for triggering the electronic equipment to send a target image; and the sending module is used for responding to the first input received by the receiving module and sending the target image under the condition that the target image and the target chat object have an association relation.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the image sending device may send the target image when the target image has an association relationship with the target chat object after receiving the first input of the user when the chat interface with the target chat object is displayed. The first input is used for triggering the electronic equipment to send the target image. With the above scheme, when the image sending device receives the first input that the user triggers the electronic equipment to send the target image when the user chats with the target chat object, the image sending device can send the target image only when the target image has an association relationship with the target chat object. Thus, the image transmitting apparatus can be prevented from erroneously transmitting an image.
Drawings
Fig. 1 is a schematic flowchart of an image sending method according to an embodiment of the present application;
fig. 2 is a schematic interface diagram of an application of an image transmission method according to an embodiment of the present application;
fig. 3 is a second schematic interface diagram of an application of an image transmission method according to an embodiment of the present application;
fig. 4 is a third schematic interface diagram of an application of an image transmission method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an image sending apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. The objects distinguished by "first", "second", and the like are usually a class, and the number of the objects is not limited, and for example, the first object may be one or a plurality of objects. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The image transmission method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of an image sending method provided in an embodiment of the present application, including step 201 and step 202:
step 201: the image transmission device receives a first input from a user when a chat interface of a target chat object is displayed.
The first input is used for triggering the electronic equipment to send the target image.
In the embodiment of the present application, there may be one or more target chat objects, and the embodiment of the present application is not limited to this.
In this embodiment of the present application, the target chat object may be a single chat user or a chat group, which is not limited in this embodiment of the present application. It is to be understood that a chat group may include at least two chat users.
It should be noted that the chat interface of the target chat object may be understood as a chat interface of the user and the target chat object.
In an embodiment of the present application, the first input may be: the click input of the user on the screen, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, and the embodiment of the present application does not limit this.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.
In an example, the first input may be specifically a click input of the user on the target image.
For example, the target image may be an image stored in a system, an image downloaded from a network, or any image that may be acquired, which is not limited in this embodiment of the application.
For example, the target image may be an expression package, a picture, a photograph, or an image frame in a video, which is not limited in this embodiment of the present application.
Step 202: in response to the first input, the image transmission device transmits the target image if the target image is associated with the target chat object.
It can be understood that the sending of the target image is directed to the electronic device corresponding to the target chat object.
For example, in the case where the user chats with the user 1 through the mobile phone, when the user wants to send the emoticon 1 to the user 1, the user may click the emoticon 1 (i.e., the first input described above). At this time, the mobile phone can determine that the emotion bag 1 and the user 1 have an association relationship, and can send the emotion bag 1 to the mobile phone used by the user 1.
It should be noted that, after the step 201, the method may further include the following steps: in response to the first input, the image transmission device does not transmit the target image if the target image is not associated with the target chat object.
Optionally, in this embodiment of the application, before the target image is sent in the step 202 when the target image has an association relationship with the target chat object, the method may further include the following step 203:
step 203: in response to the first input, the image sending device determines whether the target image and the target chat object have an association relation according to target association information.
For example, the target association information may indicate whether the target image has an association relationship with the target chat object.
For example, the above target association information may be stored in a local storage area, or may be stored in a server, or any possible storage area, which is not limited in this embodiment of the application.
In one example, the target association information may be stored in a preset database. For example, in the case where the target image is an emoticon, the image transmission apparatus may store the above-described target association information in an emoticon database.
In one example, the image transmission apparatus may acquire the target related information. For example, the image transmission apparatus may acquire the target related information and the like from the local storage area.
For example, the image sending apparatus may directly determine whether an association relationship exists between the target image and the target chat object according to the target association information, or may indirectly determine whether an association relationship exists between the target image and the target chat object according to information included in the target association information, which is not limited in this embodiment of the present application.
In an example, the target association information may further indicate a degree of association between the target image and the target chat object.
In one example, the target association information may include at least one of: information of the target image, information of the target chat object, and association degree information of the target image and the target chat object.
For example, the information of the target image may be any information that can indicate the target image. For example, the information of the target image may be a name of the target image, or may be a storage address of the target image, or may be a pixel encryption algorithm of the target image, and the like, which is not limited in this embodiment. For example, the information of the target image may be C: \ biaoqingbao, taking the storage address of the target image as C: \ biaoqingbao as an example.
For example, the information of the target chat object may be any information capable of indicating the target chat object. For example, the information of the target chat object may be a name of the target chat object, or may be a name of an application corresponding to the target chat object and a name of the target chat object, and the like, which is not limited in this embodiment of the present application. For example: the information of the target chat object may be { chat 1 application }: { group 1 }.
Illustratively, the association degree information of the target image and the target chat object is used for indicating the association degree of the target image and the target chat object. For example, the association degree information of the target image and the target chat object may be characters (e.g., characters or numbers).
For example, in the case that the association degree information between the target image and the target chat object is a number, the size of the number may be directly proportional to the association degree between the target image and the target chat object, or inversely proportional to the association degree between the target image and the target chat object, and the embodiment of the present application is not limited thereto. For example, the association degree information of the target image and the target chat object is 0, which indicates that the association degree of the target image and the target chat object is strongly correlated; the association degree information of the target image and the target chat object is 1, and the association degree of the target image and the target chat object is weakly related; the association degree information of the target image with the target chat object is 2, which indicates that the association degree of the target image with the target chat object is irrelevant.
In one example, the target associated information may be stored in a key-field-value format, where key is information of the target image, field is information of the target chat object, and value is information of the degree of association between the target image and the target chat object. For example, the storage format of the target associated information described above may be C: \ biaoqingbao- { chat 1 application }: { group 1} -1.
Specifically, whether the target image and the target chat object have an association relationship can be determined in at least two possible ways.
In the first example, when the image transmission apparatus can acquire the information of the target image and the information of the target chat object through the target association information, that is, it indicates that the target image and the target chat object have an association relationship.
It is understood that when the image transmission apparatus cannot acquire the information of the target image and the information of the target chat object through the target association information, that is, it indicates that there is no association between the target image and the target chat object.
In the second example, when the image transmission apparatus can acquire not only the information of the target image and the information of the target chat object but also the information of the degree of association between the target image and the target chat object through the target association information, the image transmission apparatus may determine that the target image and the target chat object have an association relationship according to the information of the degree of association between the target image and the target chat object.
For example, the association degree information of the target image and the target chat object is 0, which indicates that the association degree of the target image and the target chat object is strongly correlated; the association degree information of the target image and the target chat object is 1, and the association degree of the target image and the target chat object is weakly related; the association degree information of the target image with the target chat object is 2, which indicates that the association degree of the target image with the target chat object is irrelevant. When the image transmission device acquires that the association degree information is 0 or 1, the image transmission device indicates that the target image and the target chat object have an association relation. When the image transmission device acquires that the association degree information is 2, the image transmission device indicates that the target image and the target chat object do not have an association relation.
Optionally, in this embodiment of the application, the user may trigger the electronic device to start the image anti-missending function according to a requirement.
Illustratively, before the step 201, the method may further include the steps of: the image transmission apparatus may enable the image anti-misdistribution function after receiving the third input by the user.
For example, the third input may be: the click input of the user on the screen, or the click input of the user on a predetermined control, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, which is not limited in the embodiment of the present application.
For example, the predetermined control may be a newly added control or an original control, which is not limited in this embodiment of the application.
In an example, the click input of the user on the screen may be a double-click input of the user on the same area of the screen. The same area may be any area in the screen, for example, the same area may be an upper area in the screen, or a lower area in the screen, or a left area in the screen, or a right area in the screen, which is not limited in this embodiment of the application.
It can be understood that the image sending device can obtain the target related information after the image anti-false sending function is started; the image transmission device does not acquire any associated information, i.e., directly transmits the image, after the image anti-mistransmission function is turned off.
For example, as shown in fig. 2, a chat interface 31 between a user and the user 1 is displayed on a screen of the mobile phone, and when the user wants to trigger the mobile phone to enable the image anti-misdistribution function, the user can double-click an area below the screen, and at this time, the mobile phone enables the image anti-misdistribution function.
In the image sending method provided by the embodiment of the application, the image sending device can send the target image when the target image and the target chat object have an association relationship after receiving the first input of the user when the chat interface of the target chat object is displayed. The first input is used for triggering the electronic equipment to send the target image. With the above scheme, when the image sending device receives the first input that the user triggers the electronic equipment to send the target image when the user chats with the target chat object, the image sending device can send the target image only when the target image has an association relationship with the target chat object. Thus, the image transmitting apparatus can be prevented from erroneously transmitting an image.
Optionally, in this embodiment of the application, the image sending apparatus may prompt the user by controlling the electronic device to vibrate or display text, or the like, when the degree of association between the image and the chat object is not high enough.
For example, in the case that the target related information is further used to indicate the degree of association between the target image and the target chat object, the step 202 may specifically include the following step 202 a:
step 202 a: the image sending device outputs prompt information and sends the target image when the association degree of the target image and the target chat object is a first association degree; and transmitting the target image when the degree of association between the target image and the target chat object is a second degree of association.
Wherein the first degree of correlation is lower than the second degree of correlation.
Illustratively, the prompting message is used to prompt the user that the target image is low in association with the target chat object, that is, there is a risk in sending the target image.
Illustratively, the output prompt message may include at least one of: the method comprises the steps of controlling the electronic equipment to vibrate, displaying prompt information and controlling the screen of the electronic equipment to flicker, and the embodiment of the application is not limited.
In the case where the output prompt information is display prompt information, the prompt information may include at least one of the following items: words and pictures, which are not limited in this application. In the above-mentioned case that the output prompt information is control electronic device screen flashing, the control electronic device screen flashing may be fixed-frequency flashing or variable-frequency flashing, which is not limited in this embodiment of the application.
It should be noted that there is no obvious sequence in the process of outputting the prompt information and sending the target image. For example, the image transmitting apparatus may transmit the target image before outputting the prompt information, may transmit the target image after outputting the prompt information, or may transmit the target image while outputting the prompt information, which is not limited in the embodiment of the present application.
For example, the image sending device may determine the degree of association of the target image with the target chat object according to the target association information.
In one example, the image sending device may determine the degree of association of the target image with the target chat object according to the information of the degree of association of the target image with the target chat object.
For example, in the case that the user chats with the user 1 through the mobile phone, in example 1, when the user wants to send the emoticon 1 to the user 1, the user may click the emoticon 1. At this time, the mobile phone obtains that the association degree information between the emoticon 1 and the user 1 is 1, and the mobile phone may determine that the emoticon 1 is weakly associated with the user 1 (i.e., the first association degree). At this time, the mobile phone can control the mobile phone screen to flash, and send the emoticon 1. Example 2, when the user wants to send the emoticon package 1 to the user 1, the user can click the emoticon 1. At this time, the mobile phone obtains that the association degree information between the emoticon 1 and the user 1 is 0, and the mobile phone may determine that the emoticon 1 is strongly associated with the user 1 (i.e., the second association degree). At this time, the mobile phone can directly send the emoticon 1.
It should be noted that, after the mobile phone sends the emoticon 1, the association degree between the emoticon 1 and the user 1 may be automatically adjusted from weak association to strong association.
The image sending method provided by the embodiment of the application can be applied to scenes for executing different operations according to the association degree of the image and the chat object, the image sending device can remind a user in a mode of vibrating or flickering a screen and the like while sending the target image under the condition that the association degree of the target image and the target chat object is the first association degree, so that the user can timely know that the risk exists in the sent target image, and the image sending device can directly send the target image under the condition that the association degree of the target image and the target chat object is the second association degree.
Optionally, in this embodiment of the application, the user adjusts the association degree between the target image and the target chat object according to the requirement.
In one example, after outputting the prompt information in the step 202a and transmitting the target image, the method may further include the following steps a1 to A3:
step A1: the image transmission apparatus displays the associated information setting interface.
For example, at least one selection box may be displayed in the association information setting interface, and each selection box may be used to set the target association information. For example, an association degree selection box for selecting the association degree information of the target image and the target chat object may be displayed in the association information setting interface.
Step A2: the image transmission device receives a fourth input of the user on the association information setting interface.
Illustratively, the fourth input may be: the user may specifically determine the actual use requirement according to a click input on the associated information setting interface, or a voice instruction input by the user, or a specific gesture input by the user, which is not limited in the embodiment of the present application.
Step A3: in response to the fourth input, the image transmission apparatus updates the target related information to obtain first related information.
Wherein the first association information is used for indicating that the target image does not have an association relation with the target chat object.
For example, in the case that the user chats with the user 1 through a mobile phone, in conjunction with fig. 2, an icon 32 of the emoticon 1 is displayed in a lower area of the chat interface 31, and when the user wants to send the emoticon 1 to the user 1, the user can click on the icon 32. At this time, the mobile phone acquires that the association degree information between the expression package 1 and the user 1 is 1 (i.e., the target association information), and the mobile phone may determine that the expression package 1 is weakly related to the user 1 (i.e., the first association degree). At this time, the mobile phone can control the mobile phone screen to flash, and send the emoticon 1. When the user does not want the emoticon 1 to be associated with the user 1, the user can press the icon 32 for a long time. At this time, as shown in fig. 3, a related information setting interface 41 may be displayed in a superimposed manner on the chat interface 31, and 1 related degree selection box 42 may be displayed on the related information setting interface 41, and the number 1 may be displayed on the related degree selection box 42. The user may then slide up the association degree selection box with the number 2 displayed in the association degree selection box 44. Finally, the mobile phone may update the association degree information of the emoticon 1 and the user 1 from 1 to 2 to obtain new association information (i.e., the first association information).
It should be noted that, the above-mentioned association information setting interface may further display an image selection box and a chat object selection box, and a user may select an image desired to be set through the image selection box and select a chat object desired to be set through the chat object selection box.
The image sending method provided by the embodiment of the application can be applied to a scene of adjusting the association degree of the target image and the target chat object, and the user can update the target association information according to the requirement, so that the setting process of the association information is more flexible, and the image sending process is more flexible.
Optionally, in this embodiment of the application, when the image sending apparatus determines that the target image does not have an association relationship with the target chat object, it needs to determine whether to send the target image according to an input of a user.
For example, after determining whether the target image and the target chat object have an association relationship in step 203, the method may further include the following steps 204a to 204 c:
step 204 a: the image transmission device displays a target option when the target image and the target chat object do not have an association relationship.
Illustratively, the target option may include at least one option. In one example, the target options may include a first option and a second option.
Step 204 b: the image transmission apparatus receives a second input of the user.
For example, the second input may be: the click input of the user on the screen, or the voice instruction input by the user, or the specific gesture input by the user may be specifically determined according to the actual use requirement, and the embodiment of the present application does not limit this.
In an example, the user's click input on the screen may be a user's click input on the target option.
Step 204 c: in response to the second input, the image transmission apparatus performs a target operation.
Wherein the target operation includes any one of: and transmitting the target image, and not transmitting the target image.
Illustratively, different second inputs may correspond to different operations. For example, in the case where the second input is an input in which the user clicks a target option, the target operation is to transmit the target image; in the case where the second input is an input of a user double-clicking the target option, the target operation is not to transmit the above-described target image.
For example, in the case that the target option includes a first option and a second option, the step 204c may specifically include the following step 204c 1: transmitting the target image when the second input is the input of the first option by the user; and when the second input is the input of the second option by the user, the target image is not transmitted.
For example, referring to fig. 2, an icon 33 of the emoticon 2 is also displayed in the lower area of the chat interface 31, and when the user clicks the icon 33, the mobile phone acquires that the association degree information of the emoticon 2 and the user 1 is 0, and the mobile phone may determine that the emoticon 2 is not associated with the user 1. At this time, as shown in fig. 4, a window 51 may be displayed on the screen of the mobile phone, and the characters "there is a serious risk in sending the emoticon 2, and whether to continue sending" and 2 options are displayed in the window 51, which are a "yes" option 52 and a "no" option 53, respectively. If the user determines to send the emoticon 2, the user can click the "yes" option 52, and at this time, the mobile phone sends the emoticon 2 to the user 1; if the user does not want to send the emoticon 2, the user can click the no option 53, and at this time, the mobile phone does not send the emoticon 2.
The image sending method provided by the embodiment of the application can be applied to a scene that different options are displayed for a user to select whether to send the image, and the image sending device can be used for the user to quickly select to send or not send the target image in a mode of displaying the first option and the second option, so that the image sending method is more flexible.
Optionally, in this embodiment of the application, when the image sending apparatus determines that the target image does not have an association relationship with the target chat object, if the end user triggers the image sending apparatus to send the target image, the image sending apparatus may consider that the target image has an association relationship with the target chat object.
For example, the sending of the target image in the step 204c1 may specifically include the following step B1:
step B1: the image transmitting apparatus transmits the target image and updates the target related information.
Wherein the updated target association information is used for indicating that the target image has an association relationship with the target chat object.
For example, the updated target association information may further indicate a degree of association between the target image and the target chat object. For example, referring to fig. 4, after the user clicks the "yes" option 52, the mobile phone may send the emoticon 2 to the user 1, and update the association degree information of the emoticon 2 and the user 1 from 2 to 0, that is, the updated target association information indicates that the emoticon 2 is strongly related to the user 1.
The image sending method provided by the embodiment of the application can be applied to a scene of automatically updating the associated information, and the image sending device can automatically update the target associated information to obtain the associated relationship indicating the existence of the target image and the target chat object after the user triggers the image sending device to send the target image under the condition that the target image and the target chat object do not have the associated relationship.
Alternatively, in the embodiment of the present application, the image transmission apparatus may generate the above-mentioned target related information through at least two possible implementations.
In one possible implementation (active generation):
illustratively, before the step 203, the method may further include the step C1 of:
step C1: the image transmission device generates the target related information based on the history chat information corresponding to the target chat object.
Illustratively, the historical chat information includes chat information of the user and/or the target chat object.
For example, if the target image is the same as, similar to or belongs to the same series as the images in the above-mentioned historical chat information, the image generation device may determine that the target image and the target chat object have an association relationship, and generate corresponding target association information indicating that the target image and the target chat object have an association relationship. If the target image is different from the images in the history chat information, the image generation device may determine that the target image and the target chat object do not have an association relationship, and generate corresponding target association information indicating that the target image and the target chat object do not have an association relationship.
The target image is the same as the image included in the history chat information, and the target image is: the target image is wholly or partially identical to the image in the history chat information.
In one example, the similarity between the target image and the image in the historical chat information is as follows: the target image is similar to the image content of the image in the history chat information. For example, the screen content of the target image and the screen content of the image in the history chat information are both emoticons related to dogs.
For example, in the case where the target image is the same as or belongs to the same series as the images in the above-described historical chat information, the image transmission apparatus may determine that the target image is strongly correlated with the target chat object. In the case where the target image is similar to the image in the above-described history chat information, the image transmission apparatus may determine a weak correlation of the target image with the target chat object.
For example, the image sending apparatus may determine the relationship between the target image and the image in the historical chat information in at least two possible ways.
In example 1, the image transmission apparatus may determine the relationship between the target image and the image in the history chat information by image recognition or character recognition. For example, the image transmission apparatus recognizes that the characters in the emoticon 1 (i.e., the above-described target image) are identical to the characters in the image 1 in the history chat information of the user 1 through character recognition, and thus can determine that the emoticon 1 is strongly correlated with the user 1 and generate the association information indicating that the emoticon 1 is strongly correlated with the user 1. The image transmission apparatus recognizes that the characters in the emoticon 2 (i.e., the above-described target image) are the same as the character portions in the image 1 in the history chat information of the user 1 through character recognition, and thus can determine that the emoticon 2 is weakly related to the user 1 and generate the association information indicating that the emoticon 2 is weakly related to the user 1. The image transmission apparatus recognizes that the characters in the emoticon 3 (i.e., the above-described target image) do not match the images in the history chat information of the user 1 through character recognition, so that it is possible to determine that the emoticon 3 is not related to the user 1 and generate the association information indicating that the emoticon 3 is not related to the user 1.
Example 2, the image transmission apparatus may determine the relationship of the target image with the image in the above-described history chat information through a network search. For example, the image transmission apparatus may search through the network whether the target image and the image in the history chat information belong to the same series.
In another possible implementation (passive generation):
for example, the user may manually set the category of the target image and the target chat object, and the image transmission apparatus generates the target association information according to the category of the target image and the category of the target chat object.
For example, if the emoticon 1 is marked as the work category and the user 1 is also marked as the work category, the image transmission apparatus may determine that the emoticon 1 is strongly related to the user 1 and generate the association information indicating that the emoticon 1 is strongly related to the user 1.
In the image transmission method provided in the embodiment of the present application, the execution subject may be an image transmission apparatus, or a control module in the image transmission apparatus for executing the image transmission method. In the embodiments of the present application, an image transmission apparatus that executes an image transmission method is taken as an example, and the image transmission apparatus provided in the embodiments of the present application will be described.
Fig. 5 is a schematic diagram of a possible structure of an image transmission apparatus for implementing the embodiment of the present application, and as shown in fig. 5, the image transmission apparatus 600 includes: a receiving module 601 and a sending module 602, wherein: the receiving module 601 is configured to receive a first input of a user under the condition that a chat interface of a target chat object is displayed, where the first input is used to trigger the electronic device to send a target image; a sending module 602, configured to send, in response to the first input received by the receiving module 601, the target image if the target image has an association relationship with the target chat object.
Optionally, as shown in fig. 5, the image transmission apparatus 600 further includes: a determination module 603; the determining module 603 is configured to determine whether an association relationship exists between the target image and the target chat object according to the target association information.
Optionally, as shown in fig. 5, the image transmission apparatus 600 further includes: a display module 604; a display module 604, configured to display a target option in a case that the target image does not have an association relationship with the target chat object, where the target option includes a first option and a second option; a receiving module 601, configured to receive a second input of the user; a sending module 602, further configured to send, in response to a second input received by the receiving module 601, the target image if the second input is an input of the first option by a user; and when the second input is the input of the second option by the user, the target image is not transmitted.
Optionally, as shown in fig. 5, the image transmission apparatus 600 further includes: an update module 605; a sending module 602, configured to send the target image specifically; an updating module 605, configured to update the target associated information, where the updated target associated information is used to indicate that the target image and the target chat object have an association relationship.
Optionally, the target association information is further used for indicating the association degree between the target image and the target chat object; the sending module 602 is specifically configured to: outputting prompt information and sending the target image under the condition that the association degree of the target image and the target chat object is a first association degree; under the condition that the association degree of the target image and the target chat object is a second association degree, transmitting the target image; wherein the first degree of association is lower than the second degree of association.
Optionally, as shown in fig. 5, the image transmission apparatus 600 further includes: a generation module 606; a generating module 606, configured to generate the target associated information according to the historical chat information corresponding to the target chat object.
As shown in fig. 5, the modules included in the image transmission apparatus 600 are illustrated by solid line boxes, such as a reception module 601; modules that may or may not be included in the image transmission apparatus 600 are illustrated with a dashed box, such as a display module 604.
In the image sending apparatus provided in the embodiment of the present application, after receiving the first input of the user when the chat interface of the target chat object is displayed, the image sending apparatus may send the target image when the target image and the target chat object have an association relationship. The first input is used for triggering the electronic equipment to send the target image. With the above scheme, when the image sending device receives the first input that the user triggers the electronic equipment to send the target image when the user chats with the target chat object, the image sending device can send the target image only when the target image has an association relationship with the target chat object. Thus, the image transmitting apparatus can be prevented from erroneously transmitting an image.
The image transmission device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image transmission apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image sending apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned embodiment of the image sending method, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 107 is configured to receive a first input of a user in a case that a chat interface of a target chat object is displayed, where the first input is used to trigger the electronic device to send a target image; and the radio frequency unit 101 is configured to, in response to the first input received by the user input unit 107, send the target image if the target image has an association relationship with the target chat object.
Optionally, the processor 110 is configured to determine whether an association relationship exists between the target image and the target chat object according to the target association information.
Optionally, the display unit 106 is configured to display a target option in a case that the target image does not have an association relationship with the target chat object, where the target option includes a first option and a second option; a user input unit 107 for receiving a second input by the user; the radio frequency unit 101 is further configured to respond to a second input received by the user input unit 107, and send the target image if the second input is an input of the first option by the user; and when the second input is the input of the second option by the user, the target image is not transmitted.
Optionally, the radio frequency unit 101 is specifically configured to send the target image; and the processor 110 is configured to update the target association information, where the updated target association information is used to indicate that the target image has an association relationship with the target chat object.
Optionally, the target association information is further used for indicating the association degree between the target image and the target chat object; the radio frequency unit 101 is specifically configured to: outputting prompt information and sending the target image under the condition that the association degree of the target image and the target chat object is a first association degree; under the condition that the association degree of the target image and the target chat object is a second association degree, transmitting the target image; wherein the first degree of association is lower than the second degree of association.
Optionally, the processor 110 is configured to generate the target associated information according to historical chat information corresponding to the target chat object.
According to the electronic device provided by the embodiment of the application, after the electronic device receives the first input of the user under the condition that the chat interface of the target chat object is displayed, the target image can be sent under the condition that the target image and the target chat object have the association relation. The first input is used for triggering the electronic equipment to send the target image. Through the scheme, when the electronic equipment receives the first input of triggering the electronic equipment to send the target image when the user chats with the target chat object, the electronic equipment can send the target image only when the target image is in the association relation with the target chat object. Therefore, the electronic equipment can be prevented from sending images by mistake.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 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 the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the image sending method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An image transmission method, characterized in that the method comprises:
under the condition that a chat interface of a target chat object is displayed, receiving a first input of a user, wherein the first input is used for triggering the electronic equipment to send a target image;
responding to the first input, and determining whether the target image and the target chat object have an association relation according to target association information; the target associated information comprises the association degree information of the target image and the target chat object; the association degree information is used for indicating the degree of association between the target image and the target chat object;
under the condition that the association degree information indicates that the target image has an association relation with the target chat object, sending the target image; if the association degree information indicates that the association degree between the target image and the target chat object is a first association degree, after the target image is sent, the association degree information is adjusted to information indicating that the association degree between the target image and the target chat object is a second association degree; the first degree of association is lower than the second degree of association.
2. The method of claim 1, further comprising:
under the condition that the association degree information indicates that the target image has no association relation with the target chat object, displaying target options, wherein the target options comprise a first option and a second option;
receiving a second input of the user;
in response to the second input, sending the target image if the second input is a user input to the first option;
and not sending the target image when the second input is input of the second option by the user.
3. The method of claim 2, wherein the sending the target image comprises:
and sending the target image, and updating the target associated information, wherein the updated target associated information is used for indicating that the target image and the target chat object have an association relation.
4. The method as claimed in claim 1, wherein said transmitting said target image if said association degree information indicates that said target image has an association relationship with said target chat object, comprises:
outputting prompt information and sending the target image under the condition that the association degree information indicates that the association degree of the target image and the target chat object is a first association degree;
and sending the target image under the condition that the association degree of the target image and the target chat object is a second association degree.
5. The method of claim 1, wherein before determining whether the target image is associated with the target chat object according to the target association information, the method further comprises:
and generating the target associated information according to the historical chat information corresponding to the target chat object.
6. An image transmission apparatus, characterized in that the image transmission apparatus comprises: the device comprises a receiving module and a sending module;
the receiving module is used for receiving a first input of a user under the condition that a chat interface of a target chat object is displayed, wherein the first input is used for triggering the electronic equipment to send a target image;
the sending module is used for responding to the first input received by the receiving module and determining whether the target image and the target chat object have an association relation or not according to target association information; the target associated information comprises the association degree information of the target image and the target chat object; the association degree information is used for indicating the degree of association between the target image and the target chat object;
under the condition that the association degree information indicates that the target image has an association relation with the target chat object, sending the target image; if the association degree information indicates that the association degree between the target image and the target chat object is a first association degree, after the target image is sent, the association degree information is adjusted to information indicating that the association degree between the target image and the target chat object is a second association degree; the first degree of association is lower than the second degree of association.
7. The image transmission apparatus according to claim 6, characterized in that the image transmission apparatus further comprises: a display module;
the display module is used for displaying target options under the condition that the association degree information indicates that the target image does not have an association relation with the target chat object, wherein the target options comprise a first option and a second option;
the receiving module is further used for receiving a second input of the user;
the sending module is further configured to send the target image in response to the second input received by the receiving module, where the second input is an input of the first option by a user; and not sending the target image when the second input is input of the second option by the user.
8. The image transmission apparatus according to claim 7, characterized in that the image transmission apparatus further comprises: an update module;
the sending module is specifically configured to send the target image;
and the updating module is used for updating the target associated information, and the updated target associated information is used for indicating that the target image has an association relation with the target chat object.
9. The image transmission apparatus according to claim 6, wherein the transmission module is specifically configured to:
outputting prompt information and sending the target image under the condition that the association degree information indicates that the association degree of the target image and the target chat object is a first association degree;
and sending the target image under the condition that the association degree of the target image and the target chat object is a second association degree.
10. The image transmission apparatus according to claim 6, characterized in that the image transmission apparatus further comprises: a generation module;
and the generating module is used for generating the target associated information according to the historical chat information corresponding to the target chat object.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the image transmission method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the image transmission method according to any one of claims 1 to 5.
CN202011540049.8A 2020-12-23 2020-12-23 Image sending method and device and electronic equipment Active CN112702260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011540049.8A CN112702260B (en) 2020-12-23 2020-12-23 Image sending method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011540049.8A CN112702260B (en) 2020-12-23 2020-12-23 Image sending method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112702260A CN112702260A (en) 2021-04-23
CN112702260B true CN112702260B (en) 2022-08-05

Family

ID=75509318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011540049.8A Active CN112702260B (en) 2020-12-23 2020-12-23 Image sending method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112702260B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615639A (en) * 2014-11-28 2015-05-13 北京百度网讯科技有限公司 Method and equipment for providing showing information of picture
CN105956878A (en) * 2016-04-25 2016-09-21 广州出益信息科技有限公司 Network advertisement pushing method and network advertisement pushing device
CN105975563A (en) * 2016-04-29 2016-09-28 腾讯科技(深圳)有限公司 Facial expression recommendation method and apparatus
CN106447747A (en) * 2016-09-26 2017-02-22 北京小米移动软件有限公司 Image processing method and apparatus
CN109241319A (en) * 2018-09-28 2019-01-18 百度在线网络技术(北京)有限公司 A kind of picture retrieval method, device, server and storage medium
CN109885713A (en) * 2019-01-03 2019-06-14 刘伯涵 Facial expression image recommended method and device based on voice mood identification
CN109918530A (en) * 2019-03-04 2019-06-21 北京字节跳动网络技术有限公司 Method and apparatus for pushing image
CN111131006A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Information processing method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122730A1 (en) * 2001-01-02 2004-06-24 Tucciarone Joel D. Electronic messaging system and method thereof
JP5175404B1 (en) * 2012-09-20 2013-04-03 株式会社 ディー・エヌ・エー Server apparatus, method, and system
CN103294800B (en) * 2013-05-27 2016-12-28 华为技术有限公司 A kind of information-pushing method and device
CN104267877B (en) * 2014-09-30 2018-03-16 小米科技有限责任公司 The display methods and device of expression picture, electronic equipment
CN104618222B (en) * 2015-01-07 2017-12-08 腾讯科技(深圳)有限公司 A kind of method and device for matching facial expression image
CN105871695B (en) * 2016-05-19 2019-03-26 腾讯科技(深圳)有限公司 Expression sending method and device
CN110085229A (en) * 2019-04-29 2019-08-02 珠海景秀光电科技有限公司 Intelligent virtual foreign teacher information interacting method and device
CN110535754B (en) * 2019-08-29 2022-07-22 维沃移动通信有限公司 Image sharing method and device
CN110750198A (en) * 2019-09-23 2020-02-04 维沃移动通信有限公司 Expression sending method and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615639A (en) * 2014-11-28 2015-05-13 北京百度网讯科技有限公司 Method and equipment for providing showing information of picture
CN105956878A (en) * 2016-04-25 2016-09-21 广州出益信息科技有限公司 Network advertisement pushing method and network advertisement pushing device
CN105975563A (en) * 2016-04-29 2016-09-28 腾讯科技(深圳)有限公司 Facial expression recommendation method and apparatus
CN106447747A (en) * 2016-09-26 2017-02-22 北京小米移动软件有限公司 Image processing method and apparatus
CN109241319A (en) * 2018-09-28 2019-01-18 百度在线网络技术(北京)有限公司 A kind of picture retrieval method, device, server and storage medium
CN109885713A (en) * 2019-01-03 2019-06-14 刘伯涵 Facial expression image recommended method and device based on voice mood identification
CN109918530A (en) * 2019-03-04 2019-06-21 北京字节跳动网络技术有限公司 Method and apparatus for pushing image
CN111131006A (en) * 2019-12-31 2020-05-08 联想(北京)有限公司 Information processing method

Also Published As

Publication number Publication date
CN112702260A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN111984115A (en) Message sending method and device and electronic equipment
CN113141293B (en) Message display method and device and electronic equipment
CN111884908B (en) Contact person identification display method and device and electronic equipment
CN113037924B (en) Voice transmission method, device, electronic equipment and readable storage medium
CN108108079B (en) Icon display processing method and mobile terminal
CN112416200A (en) Display method, display device, electronic equipment and readable storage medium
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN113918055A (en) Message processing method and device and electronic equipment
CN112671635A (en) Sending method, sending device and electronic equipment
CN114327088A (en) Message sending method, device, electronic equipment and medium
CN112181351A (en) Voice input method and device and electronic equipment
CN112702260B (en) Image sending method and device and electronic equipment
CN113676395B (en) Information processing method, related device and readable storage medium
WO2022237877A1 (en) Information processing method and apparatus, and electronic device
WO2022253132A1 (en) Information display method and apparatus, and electronic device
CN112286611B (en) Icon display method and device and electronic equipment
CN114124874B (en) Chat information sending method and device
CN112269510B (en) Information processing method and device and electronic equipment
CN112866475A (en) Image sending method and device and electronic equipment
CN113852540A (en) Information sending method, information sending device and electronic equipment
CN113141296A (en) Message display method and device and electronic equipment
CN111857463A (en) New message reminding method and device, electronic equipment and medium
CN112035032B (en) Expression adding method and device
CN112989077B (en) Expression object management method and device
CN112764688A (en) Storage method and device

Legal Events

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