Image transmission method and apparatus
By automatically recognizing image content and identifying the contact person after shooting, the cumbersome image sending operation in existing technologies is solved, achieving a more efficient image sending process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2026-03-06
AI Technical Summary
In existing technologies, users need to manually select the target contact and choose the image from the album when sending images, which is cumbersome and inefficient.
After capturing an image, the electronic device automatically recognizes the image content and identifies the corresponding contact person based on the image content, then sends the image directly to that contact person, simplifying the user experience.
Users no longer need to manually select the recipient or search for images, which improves the efficiency of image sending and simplifies the operation process.
Smart Images

Figure CN115346057B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, specifically relating to an image transmission method and apparatus. Background Technology
[0002] With the development of the internet and electronic devices, people are sending pictures to their contacts more and more frequently through chat software. For example, when a user's child is playing, the user can send pictures of the child to their parents; when traveling, the user can send pictures of the scenery to their spouse; when renovating their home, the user can send pictures of the interior decoration of their home to the renovation company's employees.
[0003] However, in existing technologies, when sending images, users need to locate the target contact as the recipient and find the image they want to send to the target contact from their photo album before the sending process can be completed. This is a rather cumbersome and inefficient operation. Summary of the Invention
[0004] The purpose of this application is to provide an image transmission method and apparatus that can simplify user operations and improve the efficiency of image transmission.
[0005] In a first aspect, embodiments of this application provide an image transmission method, the method comprising:
[0006] Receive the user's first input;
[0007] In response to the first input, a first image is captured.
[0008] Identify the image content of the first image;
[0009] Based on the image content of the first image, determine the first contact person corresponding to the first image;
[0010] Send the first image to the electronic device corresponding to the first contact.
[0011] Secondly, embodiments of this application provide an image transmitting apparatus, the apparatus comprising:
[0012] The first receiving module is used to receive the user's first input;
[0013] The imaging module is used to capture a first image in response to the first input;
[0014] The recognition module is used to recognize the image content of the first image;
[0015] The first determining module is used to determine the first contact person corresponding to the first image based on the image content of the first image;
[0016] The sending module is used to send the first image to the electronic device corresponding to the first contact.
[0017] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0018] Fourthly, embodiments of this 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 described in the first aspect.
[0019] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0020] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0021] In this embodiment of the application, after the first image is captured, the first contact corresponding to the first image can be automatically determined based on the image content of the first image, and the first image can be sent to the electronic device corresponding to the first contact. This eliminates the need for the user to manually search for the recipient or to manually find the image to be sent from the album, thereby simplifying the user operation and improving the efficiency of image sending. Attached Figure Description
[0022] Figure 1 This is one of the flowcharts of an image transmission method provided in this application;
[0023] Figure 2 This application provides an image whose content is a child;
[0024] Figure 3 This application provides an image whose content is a landscape.
[0025] Figure 4 This application provides an image whose content is interior decoration;
[0026] Figure 5 This is a schematic diagram illustrating an application scenario of an image transmission method provided in this application;
[0027] Figure 6 This is one of the schematic diagrams of a pop-up window provided in this application;
[0028] Figure 7 This is the second illustration of a pop-up window provided in this application;
[0029] Figure 8 This is the second flowchart of an image transmission method provided in this application;
[0030] Figure 9 This is a structural block diagram of an image transmitting device provided in this application;
[0031] Figure 10 This is a structural block diagram of an electronic device provided in this application;
[0032] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. Detailed Implementation
[0033] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0034] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0035] As the background technology suggests, with the development of the internet and electronic devices, people are sending images to contacts more and more frequently through chat software. For example, when a user's child is playing, the user can send images of the child to their parents; when traveling, the user can send landscape images to their spouse; when renovating their home, the user can send interior decoration images of their home to employees of the renovation company.
[0036] However, in existing technologies, when sending images, users need to locate the target contact as the recipient and find the image they want to send to the target contact from their photo album before the sending process can be completed. This is a rather cumbersome and inefficient operation.
[0037] To address the problems in the prior art, this application provides an image sending method that, after capturing a first image, automatically determines the first contact corresponding to the first image based on its content and sends the first image to the electronic device corresponding to the first contact. This eliminates the need for the user to manually search for the recipient or find the desired image in their photo album, thus simplifying user operations and improving image sending efficiency.
[0038] The following is combined with Figures 1-8 The image transmission method provided in this application embodiment will be described in detail. The image transmission method provided in this application embodiment can be applied to application scenarios of image transmission. The image transmission method provided in this application embodiment can be executed by an electronic device. It should be noted that the above-mentioned execution device does not constitute a limitation on this application.
[0039] Figure 1 This is a flowchart of an image transmission method provided in this application.
[0040] like Figure 1 As shown, the image sending method may include the following steps:
[0041] Step 110: Receive the user's first input.
[0042] Here, the first input can be the input that triggers the electronic device to capture an image. For example, the first input can be the input that clicks the capture control. Of course, it can also be other inputs that trigger the electronic device to capture an image, and there is no limitation here.
[0043] For example, a user can open the phone's built-in camera and click the shooting control, and the electronic device can receive the input from clicking the shooting control, which is the first input.
[0044] Step 120: In response to the first input, the first image is captured.
[0045] Here, the first image could be taken by the user using the camera that comes with the electronic device.
[0046] For example, after receiving input from a user clicking the shooting control, the electronic device can take a picture in response to the input of clicking the shooting control and obtain a first image.
[0047] Step 130: Identify the image content of the first image.
[0048] Here, after capturing the first image, the electronic device can automatically and intelligently identify the content of the first image.
[0049] For example, the image content of the first image may be a child, a landscape, or interior decoration, etc.
[0050] Step 140: Determine the first contact person corresponding to the first image based on the image content of the first image.
[0051] Here, after recognizing the image content of the first image, the electronic device can also determine the first contact person corresponding to the image content of the first image based on big data intelligent analysis.
[0052] Specifically, the electronic device can pre-store the correspondence between image content and contacts, and determine the first contact corresponding to the image content of the first image based on the correspondence. This correspondence can be automatically determined by the electronic device based on the user's historical image sending records, or it can be manually set by the user.
[0053] For example, if the image content of the first image is a child, the first contact person corresponding to the image content of the first image can be the user's parents; if the image content of the first image is a landscape, the first contact person corresponding to the image content of the first image can be the user's wife; if the image content of the first image is interior decoration, the first contact person corresponding to the image content of the first image can be an employee of the decoration company that serves the user.
[0054] In one optional implementation, step 140 may specifically include:
[0055] Based on the image content of the first image, the image label of the first image is determined as the first image label;
[0056] Based on the correspondence between image tags and contact tags, determine the first contact tag corresponding to the first image tag;
[0057] Identify one or more contacts corresponding to the first contact tag as the first contact.
[0058] Here, the correspondence between image content and contacts can specifically be a correspondence between image tags and contact tags. Image tags can represent the image content; for example, if the image content is a child, the image tag could be "child"; if the image content is a landscape, the image tag could be "landscape"; if the image content is interior decoration, the image tag could be "interior decoration". Contact tags can represent the relationship between the contact and the user; for example, if the contact is the user's father or mother, the contact tag could be "parents"; if the contact is the user's wife, the contact tag could be "couple"; if the contact is an employee of a decoration company serving the user, the contact tag could be "employed". Users can pre-set various image tags, such as: child, landscape, and interior decoration.
[0059] Based on this, the electronic device can determine the image tag of the first image, i.e., the first image tag, according to the image content. Then, based on the correspondence between the image tag and the contact tag, it can determine the first contact tag corresponding to the first image tag. Finally, it can identify one or more contacts corresponding to the first contact tag as the first contact, i.e., the recipients of the first image. One contact tag can correspond to multiple contacts; that is, there can be multiple contacts with the same contact tag.
[0060] For example, Figure 2 The image shown is of a child. Figure 2 The image tag can be "child"; Figure 3 The image shown is a landscape. Figure 3 The image tag can be "landscape"; Figure 4 The image shown depicts interior decoration. Figure 4 The image tag can be "Interior Decoration". The image tag "Child" can correspond to the contact tag "Parents", the image tag "Landscape" can correspond to the contact tag "Couple", and the image tag "Interior Decoration" can correspond to the contact tag "Employment". After the electronic device recognizes the image content of the first image as a child through machine intelligence (AI), it can determine the image tag of the first image as "Child", that is, the first image tag. Then, based on the correspondence between the image tag and the contact tag, it can determine the first contact tag corresponding to the first image tag "Child" as "Parents", and thus determine the contacts father and mother corresponding to the first contact tag "Parents" as the first contacts, that is, the recipients of the first image.
[0061] In this way, by using the correspondence between image tags and contact tags pre-stored in electronic devices, the recipient of the first image can be determined more accurately.
[0062] In an optional implementation, before determining the first contact tag corresponding to the first image tag based on the correspondence between image tags and contact tags, the method may further include:
[0063] Retrieve the associated information corresponding to the first contact person;
[0064] Based on the associated information corresponding to the first contact, the contact tag of the first contact is determined as the first contact tag.
[0065] Here, the associated information may include at least one of the following: the first contact's notes, the chat content between the user and the first contact, and the way they address each other in the chat. In other words, the first contact's contact tag can be determined based on the first contact's notes, the chat content between the user and the first contact, or the way they address each other in the chat.
[0066] For example, if the first contact's nickname is "Dad," then this first contact can be identified as the user's father, and therefore the contact tag for this first contact can be identified as "Parents," i.e., the first contact tag. If the chat content between the user and the first contact includes "Happy Father's Day," then this first contact can also be identified as the user's father, and thus the contact tag for this first contact can be identified as "Parents." If the chat content between the user and the first contact includes "Dad, XXXX," meaning that the user refers to the first contact as "Dad" in the chat content, then this first contact can also be identified as the user's father, and therefore the contact tag for this first contact can also be identified as "Parents."
[0067] In this way, electronic devices can more accurately determine the contact tags of the first contact by obtaining the first contact's notes, the chat content between the user and the first contact, and the names in the chat content, without requiring the user to set them manually, making it more convenient and faster.
[0068] In an optional implementation, before determining the first contact tag corresponding to the first image tag based on the correspondence between image tags and contact tags, the method may further include:
[0069] Determine the target proportion of the total number of images sent by the user to the first contact within the target duration;
[0070] When the target ratio reaches the ratio threshold, a correspondence is established between the first image label and the first contact label corresponding to the first contact person.
[0071] Here, the target duration can be user-defined or a default value; no limitation is imposed here. The target image can be an image sent by the user to the first contact with the tag "first image". The ratio threshold can be user-defined or a default value; no limitation is imposed here. The first contact can be a contact with the tag "first contact".
[0072] For example, such as Figure 5 As shown, a user might send images of a child to the contact labeled "Dad". The electronic device can record and count the number of images labeled "Child" (the target images) sent by the user to the contact labeled "Parents" (the first contact) within the past week, i.e., the target period. If this number is 60, and the total number of images sent by the user to the contact labeled "Parents" is 100, then the proportion of images labeled "Child" sent to the contact labeled "Parents" relative to all images sent to the first contact can be determined; this is the target proportion, which is 60%. The proportion threshold can be 50%. Since the target proportion of 60% reaches the proportion threshold of 50%, a correspondence can be established between the image label "Child" (the first image label) and the contact label "Parents" (the first contact label).
[0073] For example, the electronic device can separately count the proportion of images labeled "child", "landscape" and "interior decoration" sent to contacts labeled "parents", "couples" and "employers" out of all images, as shown in Table 1.
[0074] Table 1 - Image Proportion Statistics Table
[0075] Contact Tags Child landscape Interior decoration parents 60% 20% 20% couple 15% 85% 0 Hire 0% 0% 100%
[0076] In this way, by statistically analyzing whether the proportion of images with the first image tag sent by a user to a contact with the first contact tag within a certain period of time reaches a threshold, it can be determined whether to establish a correspondence between the first image tag and the first contact tag. This allows for the automatic and accurate establishment of the correspondence between image tags and contact tags without requiring manual settings by the user, making it more efficient and convenient.
[0077] In one alternative implementation, the correspondence between the first image tag and the first contact tag can be set by the user.
[0078] In this way, there is no need to wait for the electronic device to perform statistics; the correspondence between the first image tag and the first contact tag can be quickly established directly based on the user settings.
[0079] In an optional implementation, before determining the target proportion of the target images sent by the user to the first contact within the target duration to the total number of images sent by the user to the first contact, the method may further include:
[0080] If the number of images corresponding to the first image tag sent to the first contact reaches the first quantity threshold, the first prompt option will be displayed;
[0081] Receive the user's second input for the first option in the first prompt options;
[0082] In response to the second input, set the first contact's contact tag to the first contact tag.
[0083] Here, the number of images corresponding to the first image tag sent to the first contact can be counted. When the number of images corresponding to the first image tag sent to the first contact reaches a first threshold, a first prompt option can be displayed. This first prompt option can be used to prompt the user to choose whether to set the first contact's contact tag as the first contact tag. The second input can be an input to the first option, for example, the second input can be the input of clicking the first option. The first option can be the option to confirm setting the first contact's contact tag as the first contact tag. Therefore, after receiving the second input, the electronic device can respond to the second input and set the first contact's contact tag as the first contact tag.
[0084] For example, when the number of images tagged "child" sent by a user to the first contact "Dad" reaches a first quantity threshold, the following can be displayed: Figure 6 The pop-up window shown includes a first prompt option 610, prompting the user to select whether to set the contact label of the first contact "Dad" to "Parents", i.e., the first contact label. If the user clicks the "OK" control 611, i.e., makes a second input to the first option, the electronic device can receive and respond to the second input, setting the contact label of the first contact to "Parents".
[0085] In this way, when the number of images corresponding to the first image tag sent by the user to the first contact reaches the first quantity threshold, the user is prompted to choose whether to set the contact tag of the first contact to the first contact tag corresponding to the first image tag. This can intelligently assist the user in setting the contact tag of the contact and fully consider the user's wishes.
[0086] In an optional implementation, before determining the first contact tag corresponding to the first image tag based on the correspondence between image tags and contact tags, the method may further include:
[0087] Receive the user's fourth input;
[0088] In response to the fourth input, a second image is captured, and multiple image labels are displayed;
[0089] Receive the user's fifth input for the first image label among multiple image labels;
[0090] In response to the fifth input, the image label of the second image is determined to be the first image label.
[0091] Here, the content of the second image can be of the same type as the content of the first image; for example, both the second and first images could contain the image of a child. After capturing the second image, the electronic device can display multiple image tags, allowing the user to select the corresponding tag for the second image and set the image tag for it. Once the user sets the image tag for a target number of images as the first image tag, the electronic device can learn the correspondence between image content and the first image tag. Therefore, when capturing another first image with the same type of content, it can automatically determine the first image tag based on the content of the first image.
[0092] In this way, electronic devices can learn the correspondence between image content and image tags by having users set image tags multiple times, without requiring users to set them every time, thus reducing the complexity of user operations.
[0093] Step 150: Send the first image to the electronic device corresponding to the first contact.
[0094] Here, the first contact can be the recipient of the first image. After determining the first contact based on the image content, the first image can be sent to the electronic device corresponding to the first contact.
[0095] In one optional implementation, step 150 may specifically include:
[0096] When the electronic device is continuously in shooting mode, and the number of images continuously sent by the user to the contact corresponding to the first contact tag exceeds the second number threshold, the contact list corresponding to the first contact tag and the second prompt option are displayed.
[0097] Receive the user's third input for the second option in the second prompt;
[0098] In response to the third input, a first image is sent to the electronic device corresponding to the first contact.
[0099] Here, the contact list can include the contact corresponding to the first contact tag, i.e., the first contact. The second prompt option can prompt the user to choose whether to send the captured image to the electronic device corresponding to the first contact in the contact list before the electronic device exits shooting mode or if the silence duration does not exceed a time threshold. The third input can be an input to the second option, for example, clicking the second option. The second option can be an option to determine whether to send the captured image to the electronic device corresponding to the first contact in the contact list before the electronic device exits shooting mode or if the silence duration does not exceed a time threshold. Therefore, after receiving this third input, the electronic device can respond by sending the captured first image to the electronic device corresponding to the first contact.
[0100] Specifically, when the electronic device remains in shooting mode, and the user takes a picture and selects to send it to a contact, if the electronic device detects multiple selections and sending operations to a contact, a second prompt option can be displayed, asking the user whether the captured image should be sent to that contact in the same way by default before the electronic device exits shooting mode or if the silence duration does not exceed a certain threshold. The second prompt option will not be displayed again before the electronic device exits shooting mode or if the silence duration does not exceed the threshold. The silence duration can be the length of time the electronic device is in shooting mode without taking a picture.
[0101] However, when a user's electronic device exits shooting mode and then re-enters shooting mode to take a picture, or takes a picture again after the silent period has not exceeded the time threshold, it is necessary to recount the number of consecutive images sent by the user to the contact corresponding to the first contact tag. If it exceeds the second number threshold, the second prompt option needs to be displayed to ask the user again.
[0102] For example, if the number of images continuously sent by the user to the contact corresponding to the first contact tag "Parents" exceeds a second threshold while the electronic device is continuously in shooting mode, the following can be displayed: Figure 7The pop-up window shown includes a contact list 710 corresponding to the first contact tag "Parents" and a second prompt option 720. The pop-up prompts the user to choose whether to send the captured image to the electronic device corresponding to the first contact in the contact list 710 before the electronic device exits shooting mode or if the silence period does not exceed one minute. Prompt option 721 asks the user whether to send the captured image to the contact tagged "Parents," and prompt option 722 asks the user whether they agree to send the captured image to the contact tagged "Parents" by default before the electronic device exits shooting mode or if the silence period does not exceed one minute, without further pop-up prompts. If the user clicks the "OK" control 7211 and checks the checkbox 7221, i.e., provides a third input for the second option, the electronic device can receive and respond to this third input, sending the captured first image to the electronic device corresponding to the first contact in the contact list 710.
[0103] In this way, the user can be asked whether to send the captured image to the electronic device corresponding to the first contact in the contact list before the electronic device exits the shooting mode or if the silent time does not exceed the time threshold. If the user agrees, the captured image can be automatically sent to the electronic device corresponding to the first contact, thus eliminating the need for the user to frequently select a contact to send the image, simplifying the user operation and improving the efficiency of image sending.
[0104] In one alternative implementation, the electronic device may record the time of each image transmission, the image tag of the transmitted image, and the contact tag of the recipient. This may include images automatically transmitted by the electronic device as well as images manually transmitted by the user. For example, the records may be as shown in Table 2.
[0105] Table 2 - Image Transmission Record Table
[0106] time Image tags Contact Tags March 1st Child parents March 2nd landscape couple March 3rd Interior decoration Hire … … …
[0107] This makes it easy to collect the image tags and contact tags of images sent by users manually controlled electronic devices, thus facilitating the establishment of a correspondence between image tags and contact tags. It also allows for the recording of images automatically sent by electronic devices, enabling users to trace image sending records.
[0108] Therefore, after capturing the first image, the system can automatically determine the first contact corresponding to the first image based on its content and send the first image to the electronic device corresponding to the first contact. This eliminates the need for the user to manually search for the recipient or find the desired image in their photo album, thus simplifying the user's operation and improving the efficiency of image transmission.
[0109] Furthermore, the image sending method provided in this application embodiment does not require the user to open chat software to send images to contacts, thus not interrupting the shooting process. Moreover, it does not require using the camera in the communication application, but rather uses the built-in camera of the electronic device, allowing for parameter adjustments and ensuring image quality. Additionally, since images can be automatically sent after the user takes a picture, a large number of images can be sent continuously without requiring manual selection by the user, preventing duplicate or missed sending.
[0110] It should be noted that the input in the embodiments of this application can be click input, voice command input, or specific gesture input, which can be determined according to actual usage needs, and this application embodiment does not limit it. Among them, the specific gesture can be any one of the following: single click gesture, swipe gesture, drag gesture, pressure recognition gesture, long press gesture, area change gesture, double press gesture, double double press gesture; click input can be single click input, double click input, or any number of clicks, and can also be long press input or short press input.
[0111] To better describe the overall solution, based on the above embodiments, a specific example is given, such as... Figure 8 As shown, the image transmission method provided in this application embodiment may include steps 801-811, which will be explained in detail below.
[0112] Step 801: Obtain the associated information corresponding to the first contact person.
[0113] Specifically, the electronic device can obtain the first contact's nickname: "Dad".
[0114] Step 802: Based on the association information corresponding to the first contact person, determine the contact tag of the first contact person as the first contact person tag.
[0115] Specifically, the electronic device can determine the first contact's contact tag as "parents" based on the first contact's note information: "Dad".
[0116] Step 803: Determine the target proportion of the target images sent by the user to the first contact relative to all images sent by the user to the first contact within the target duration.
[0117] Specifically, the target image can be an image tagged "child" sent by the user to the first contact. The electronic device can count the target proportion of images tagged "child" sent by the user to the first contact, i.e., the contact tagged "father", within a week, i.e. within the target time period, out of all images sent by the user to that first contact. For example, the target proportion can be 60%.
[0118] Step 804: When the target ratio reaches the ratio threshold, establish the correspondence between the first image label and the first contact label corresponding to the first contact person.
[0119] Specifically, if the ratio threshold is 50%, then the target ratio has reached the ratio threshold, and the electronic device can establish a correspondence between the image tag "child", which is the first image tag, and the contact tag "father", which is the first contact tag.
[0120] Step 805: Receive the user's first input.
[0121] Specifically, when a user clicks the shooting control, the electronic device can receive the user's initial input by clicking the shooting control.
[0122] Step 806: In response to the first input, a first image is captured.
[0123] Specifically, the electronic device can capture a first image in response to the user's first input of clicking the shooting control.
[0124] Step 807: Identify the image content of the first image.
[0125] Specifically, the electronic device can recognize that the image content of the first image is a child.
[0126] Step 808: Determine the image label of the first image as the first image label based on the image content of the first image.
[0127] Specifically, the electronic device can determine the image label of the first image as "child" based on the image content of the first image being a child, which is also the first image label.
[0128] Step 809: Based on the correspondence between image tags and contact tags, determine the first contact tag corresponding to the first image tag.
[0129] Specifically, the electronic device can identify the contact tag corresponding to the image tag "child" as "parent".
[0130] Step 810: Identify one or more contacts corresponding to the first contact tag as the first contact.
[0131] Specifically, the electronic device can identify the contact "Dad" corresponding to the contact tag "Parents" as the first contact.
[0132] Step 811: Send the first image to the electronic device corresponding to the first contact.
[0133] Specifically, after determining that the contact "Dad" corresponding to the contact tag "Parents" is the first contact, the electronic device can automatically send the first image to the electronic device corresponding to the first contact "Dad".
[0134] Therefore, after capturing the first image, the system can automatically determine the first contact corresponding to the first image based on its content and send the first image to the electronic device corresponding to the first contact. This eliminates the need for the user to manually search for the recipient or find the desired image in their photo album, thus simplifying the user's operation and improving the efficiency of image transmission.
[0135] The image transmission method provided in this application can be executed by an image transmission device. This application uses an image transmission device executing the image transmission method as an example to illustrate the image transmission device provided in this application.
[0136] Based on the same inventive concept, this application also provides an image transmitting device. The following is in conjunction with... Figure 9 The image transmitting apparatus provided in the embodiments of this application will be described in detail.
[0137] Figure 9 This is a structural block diagram of an image transmitting device provided in this application.
[0138] like Figure 9 As shown, the image transmitting device 900 may include:
[0139] The first receiving module 901 is used to receive the user's first input;
[0140] The imaging module 902 is used to capture a first image in response to the first input;
[0141] Recognition module 903 is used to recognize the image content of the first image;
[0142] The first determining module 904 is used to determine the first contact person corresponding to the first image based on the image content of the first image;
[0143] The sending module 905 is used to send the first image to the electronic device corresponding to the first contact.
[0144] The image transmitting device 900 described above will now be described in detail as follows:
[0145] In one embodiment, the first determining module 904 may include:
[0146] The first determining submodule is used to determine the image label of the first image as the first image label based on the image content of the first image;
[0147] The second determining submodule is used to determine the first contact tag corresponding to the first image tag based on the correspondence between the image tag and the contact tag;
[0148] The third determination submodule is used to determine one or more contacts corresponding to the first contact tag as the first contact.
[0149] In one embodiment, the image transmitting device 900 may further include:
[0150] The second determining module is used to determine, before determining the first contact tag corresponding to the first image tag based on the correspondence between the image tag and the contact tag, the target proportion of the target image sent by the user to the first contact relative to all images sent by the user to the first contact within the target duration, wherein the target image is the image sent by the user to the first contact whose image tag is the first image tag.
[0151] The relationship establishment module is used to establish a correspondence between the first image label and the first contact label corresponding to the first contact person when the target ratio reaches the ratio threshold.
[0152] In one embodiment, the image transmitting device 900 may further include:
[0153] The acquisition module is used to acquire the associated information of the first contact before determining the first contact tag corresponding to the first image tag based on the correspondence between the image tag and the contact tag. The associated information includes at least one of the following: the first contact's remarks, the chat content between the user and the first contact, and the name of the user in the chat content.
[0154] The third determining module is used to determine the contact tag of the first contact person as the first contact person tag based on the associated information corresponding to the first contact person.
[0155] In one embodiment, the image transmitting device 900 may further include:
[0156] The first display module is used to display a first prompt option when the number of images corresponding to the first image tag sent to the first contact reaches a first number threshold before determining the target proportion of the target image sent by the user to the first contact within the target duration to the total number of images sent by the user to the first contact. The first prompt option is used to prompt the user to choose whether to set the contact tag of the first contact as the first contact tag.
[0157] The second receiving module is used to receive the user's second input on the first option in the first prompt options;
[0158] The settings module is used to respond to the second input and set the contact tag of the first contact to the first contact tag.
[0159] In one embodiment, the sending module 905 may include:
[0160] The display submodule is used to display a list of contacts corresponding to the first contact tag and a second prompt option when the number of images continuously sent by the user to the contact corresponding to the first contact tag exceeds a second quantity threshold while the electronic device is continuously in shooting mode. The second prompt option is used to prompt the user to choose whether to send the captured images to the electronic device corresponding to the first contact in the contact list before the electronic device exits shooting mode or when the silent time does not exceed the time threshold.
[0161] The receiving submodule is used to receive the user's third input for the second option in the second prompt options;
[0162] The sending submodule is used to send a first image to the electronic device corresponding to the first contact in response to a third input.
[0163] Therefore, after capturing the first image, the system can automatically determine the first contact corresponding to the first image based on its content and send the first image to the electronic device corresponding to the first contact. This eliminates the need for the user to manually search for the recipient or find the desired image in their photo album, thus simplifying the user's operation and improving the efficiency of image transmission.
[0164] The image transmitting device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0165] The image transmitting device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0166] The image transmitting device provided in this application embodiment can achieve... Figures 1 to 8 The various processes implemented in the method embodiments achieve the same technical effect, and will not be described again here to avoid repetition.
[0167] Optionally, such as Figure 10 As shown, this application embodiment also provides an electronic device 1000, including a processor 1001 and a memory 1002. The memory 1002 stores a program or instructions that can run on the processor 1001. When the program or instructions are executed by the processor 1001, they implement the various steps of the above-described image transmission method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0168] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0169] Figure 11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0170] The electronic device 1100 includes, but is not limited to, components such as: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
[0171] Those skilled in the art will understand that the electronic device 1100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 11 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0172] The user input unit 1107 is used to receive the user's first input;
[0173] Processor 1110, in response to the first input, captures the first image;
[0174] Identify the image content of the first image;
[0175] Based on the image content of the first image, determine the first contact person corresponding to the first image;
[0176] Send the first image to the electronic device corresponding to the first contact.
[0177] Therefore, after capturing the first image, the system can automatically determine the first contact corresponding to the first image based on its content and send the first image to the electronic device corresponding to the first contact. This eliminates the need for the user to manually search for the recipient or find the desired image in their photo album, thus simplifying the user's operation and improving the efficiency of image transmission.
[0178] Optionally, the processor 1110 is further configured to determine the image label of the first image as the first image label based on the image content of the first image;
[0179] Based on the correspondence between image tags and contact tags, determine the first contact tag corresponding to the first image tag;
[0180] Identify one or more contacts corresponding to the first contact tag as the first contact.
[0181] In this way, by using the correspondence between image tags and contact tags pre-stored in electronic devices, the recipient of the first image can be determined more accurately.
[0182] Optionally, the processor 1110 is further configured to determine, before determining the first contact tag corresponding to the first image tag based on the correspondence between the image tag and the contact tag, the target proportion of the target image sent by the user to the first contact relative to all images sent by the user to the first contact within the target duration, wherein the target image is the image sent by the user to the first contact whose image tag is the first image tag;
[0183] When the target ratio reaches the ratio threshold, a correspondence is established between the first image label and the first contact label corresponding to the first contact person.
[0184] In this way, by statistically analyzing whether the proportion of images with the first image tag sent by a user to a contact with the first contact tag within a certain period of time reaches a threshold, it can be determined whether to establish a correspondence between the first image tag and the first contact tag. This allows for the automatic and accurate establishment of the correspondence between image tags and contact tags without requiring manual settings by the user, making it more efficient and convenient.
[0185] Optionally, the processor 1110 is further configured to obtain the association information corresponding to the first contact before determining the first contact tag corresponding to the first image tag based on the correspondence between the image tag and the contact tag. The association information includes at least one of the following: the first contact's remarks, the chat content between the user and the first contact, and the names in the chat content.
[0186] Based on the associated information corresponding to the first contact, the contact tag of the first contact is determined as the first contact tag.
[0187] In this way, electronic devices can more accurately determine the contact tags of the first contact by obtaining the first contact's notes, the chat content between the user and the first contact, and the names in the chat content, without requiring the user to set them manually, making it more convenient and faster.
[0188] Optionally, the display unit 1106 is configured to display a first prompt option when the number of images corresponding to the first image tag sent to the first contact reaches a first number threshold before determining the target proportion of the target image sent by the user to the first contact to the total number of images sent by the user to the first contact within the target duration. The first prompt option is used to prompt the user to select whether to set the contact tag of the first contact as the first contact tag.
[0189] User input unit 1107 is also used to receive a second input from the user for the first option in the first prompt options;
[0190] The processor 1110 is also configured to, in response to the second input, set the contact tag of the first contact to the first contact tag.
[0191] In this way, when the number of images corresponding to the first image tag sent by the user to the first contact reaches the first quantity threshold, the user is prompted to choose whether to set the contact tag of the first contact to the first contact tag corresponding to the first image tag. This can intelligently assist the user in setting the contact tag of the contact and fully consider the user's wishes.
[0192] Optionally, the display unit 1106 is further configured to display a contact list corresponding to the first contact tag and a second prompt option when the electronic device is continuously in shooting mode and the number of images continuously sent by the user to the contact corresponding to the first contact tag exceeds a second quantity threshold. The second prompt option is used to prompt the user to choose whether to send the captured images to the electronic device corresponding to the first contact in the contact list before the electronic device exits shooting mode or when the silent time does not exceed the time threshold.
[0193] The user input unit 1107 is also used to receive a third input from the user for the second option in the second prompt options;
[0194] The processor 1110 is also configured to send a first image to the electronic device corresponding to the first contact in response to a third input.
[0195] In this way, the user can be asked whether to send the captured image to the electronic device corresponding to the first contact in the contact list before the electronic device exits the shooting mode or if the silent time does not exceed the time threshold. If the user agrees, the captured image can be automatically sent to the electronic device corresponding to the first contact, thus eliminating the need for the user to frequently select a contact to send the image, simplifying the user operation and improving the efficiency of image sending.
[0196] It should be understood that, in this embodiment, the input unit 1104 may include a graphics processing unit (GPU) 11041 and a microphone 11042. The GPU 11041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0197] The memory 1109 can be used to store software programs and various data. The memory 1109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1109 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0198] Processor 1110 may include one or more processing units; optionally, processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1110.
[0199] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described image transmission method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0200] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory, random access memory, magnetic disk, or optical disk.
[0201] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described image transmission method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0202] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0203] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the image transmission method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0204] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0205] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0206] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An image transmission method characterized by, The method comprises: receiving a first input of a user; in response to the first input, taking a first image; identifying image content of the first image; determining a first contact corresponding to the first image according to the image content of the first image; sending the first image to an electronic device corresponding to the first contact; The determining a first contact corresponding to the first image according to the image content of the first image comprises: determining that an image tag of the first image is a first image tag according to the image content of the first image; determining a first contact tag corresponding to the first image tag based on a correspondence relationship between image tags and contact tags; determining one or more contacts corresponding to the first contact tag as the first contact; Before the determining a first contact tag corresponding to the first image tag based on a correspondence relationship between image tags and contact tags, the method further comprises: determining that a target proportion of target images sent by the user to the first contact in a target time period to all images sent by the user to the first contact is a target proportion, the target images being images sent by the user to the first contact and having a first image tag; In a case where the target proportion reaches a proportion threshold, establishing a correspondence relationship between the first image tag and a first contact tag corresponding to the first contact.
2. The method of claim 1, wherein, Before the determining a first contact tag corresponding to the first image tag based on a correspondence relationship between image tags and contact tags, the method further comprises: obtaining association information corresponding to the first contact, the association information comprising at least one of remark information of the first contact, chat content between the user and the first contact, and a salutation in the chat content; determining that a contact tag of the first contact is a first contact tag according to the association information corresponding to the first contact.
3. The method of claim 1, wherein, Before the determining that a target proportion of target images sent by the user to the first contact in a target time period to all images sent by the user to the first contact is a target proportion, the method further comprises: In a case where a number of images corresponding to the first image tag sent to the first contact reaches a first number threshold, displaying a first prompt option, the first prompt option being used to prompt the user to select whether to set a contact tag of the first contact as a first contact tag; receiving a second input of the user on a first option in the first prompt option; in response to the second input, setting the contact tag of the first contact as the first contact tag.
4. The method of claim 1, wherein, The sending the first image to an electronic device corresponding to the first contact comprises: In a case where the user continuously sends a quantity of images to the contact corresponding to the first contact tag that exceeds a second quantity threshold while the electronic device continuously remains in the photographing mode, a contact list corresponding to the first contact tag and a second prompt option are displayed, the second prompt option being used to prompt the user to select whether to send the obtained image to the electronic device corresponding to the first contact in the contact list before the electronic device exits the photographing mode or in a case where a silence duration does not exceed a duration threshold. A third input of the user to a second option in the second prompt option is received. In response to the third input, the first image is sent to the electronic device corresponding to the first contact.
5. An image transmission apparatus characterized by comprising: The apparatus includes: A first receiving module configured to receive a first input of a user. A photographing module configured to obtain a first image in response to the first input. An identifying module configured to identify image content of the first image. A first determining module configured to determine a first contact corresponding to the first image according to the image content of the first image. A sending module configured to send the first image to an electronic device corresponding to the first contact. The first determining module includes: A first determining submodule configured to determine that an image tag of the first image is a first image tag according to the image content of the first image. A second determining submodule configured to determine a first contact tag corresponding to the first image tag based on a correspondence between image tags and contact tags. A third determining submodule configured to determine one or more contacts corresponding to the first contact tag as the first contact. The apparatus further includes: A second determining module configured to determine a target proportion of target images sent by the user to the first contact to all images sent by the user to the first contact within a target duration before the first contact tag corresponding to the first image tag is determined based on the correspondence between image tags and contact tags, the target images being images sent by the user to the first contact and having the first image tag. A relationship establishing module configured to establish a correspondence between the first image tag and a first contact tag corresponding to the first contact in a case where the target proportion reaches a proportion threshold.
6. The apparatus of claim 5, wherein, The apparatus further includes: A obtaining module configured to obtain association information corresponding to the first contact before the first contact tag corresponding to the first image tag is determined based on the correspondence between image tags and contact tags, the association information including at least one of remark information of the first contact, chat content between the user and the first contact, and a salutation in the chat content. A third determining module configured to determine a contact tag of the first contact as the first contact tag according to the association information corresponding to the first contact.
Citation Information
Patent Citations
Picture transmission method and device
CN103414821A
Image sharing method and mobile terminal
CN108494947A
Image processing method and device, electronic equipment and medium
CN111954079A
Data sending method and device and electronic equipment
CN112306345A