Image sharing method, device, equipment, storage medium and program product
By identifying the images of the same characters in multiple images, these images are automatically shared to the corresponding contacts corresponding to the same character, solving the tedious problem of image sharing operations, and improving sharing efficiency.
Patent Information
- Application Number
- CN202111069149.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-13
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2041-09-13
AI Technical Summary
When sharing multiple images, users need to manually determine each contact, which is cumbersome and inefficient.
By identifying the images of the same characters in multiple images, these images are automatically shared to the corresponding contacts corresponding to the same character, simplifying the operation process.
The operation of the image sharing is simplified and the efficiency is improved. Users do not need to find manually and determine each contact person.
Smart Images

Figure CN113852675B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Internet technology, and specifically relates to an image sharing method, device, equipment, storage medium and program product. Background Art
[0002] With the development of science and technology, smart terminals are widely used. Smart terminals have many functions, especially the camera function, which is loved by many users. Especially in scenes such as friends’ gatherings, users like to take photos and share the images they take with each other.
[0003] Generally, users share the images they take through various social applications. If the multiple images shared are group photos of multiple different users, the user needs to manually determine the contacts to whom the images need to be sent during the sharing process, which is a cumbersome operation. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an image sharing method, device, equipment, storage medium and program product, which can solve the problem of cumbersome operations when sharing images.
[0005] In a first aspect, an embodiment of the present application provides an image sharing method, the method comprising:
[0006] receiving a first input from a user;
[0007] In response to the first input, at least two target images are shared with a first contact corresponding to a first character image; the first character image is a character image corresponding to the same character in the at least two target images.
[0008] In a second aspect, an embodiment of the present application provides an image sharing device, including:
[0009] A receiving module, used for receiving a first input from a user;
[0010] The processing module is used to share at least two target images to a first contact corresponding to a first character image in response to the first input; the first character image is a character image corresponding to the same character in the at least two target images.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the image sharing method described in the first aspect.
[0015] In an embodiment of the present application, a first input from a user is received; in response to the first input, at least two target images are shared with a first contact corresponding to the first character image, that is, the first contact is used as a common contact, and multiple target images are shared with the common contact. The operation is simple and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flowchart of an image sharing method provided in an embodiment of the present application;
[0017] Figure 2 This is one of the image preview interface schematic diagrams provided in the embodiment of the present application;
[0018] Figure 3 It is one of the schematic diagrams of images to be shared provided in the embodiments of the present application;
[0019] Figure 4 This is the second schematic diagram of the image to be shared provided in the embodiment of the present application;
[0020] Figure 5 This is one of the schematic diagrams of the address book interface of the target application provided in the embodiment of the present application;
[0021] Figure 6 This is the third schematic diagram of the image to be shared provided in the embodiment of the present application;
[0022] Figure 7 This is the second schematic diagram of the image preview interface provided in the embodiment of the present application;
[0023] Figure 8 This is the second schematic diagram of the address book interface of the target application provided in the embodiment of the present application;
[0024] Fig. 9 This is the third schematic diagram of the image preview interface provided in the embodiment of the present application;
[0025] Fig.10 This is the fourth schematic diagram of the image preview interface provided in the embodiment of the present application;
[0026] Fig.11is a schematic diagram of the structure of an image sharing device provided in an embodiment of the present application;
[0027] Fig.12 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0028] Fig.13 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0031] The image sharing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0032] First, the application scenarios involved in the embodiments of the present application are introduced.
[0033] The method of the embodiment of the present application can be applied to an electronic device. In one embodiment, the electronic device includes: a mobile phone, a tablet computer, a smart watch or a camera. Optionally, the electronic device has a display screen.
[0034] In the image sharing method of the embodiment of the present application, for multiple images to be shared, if the contacts corresponding to the characters in each image are searched one by one and the images are shared to the contacts, the operation is rather cumbersome. Therefore, by identifying the same person in multiple images, the multiple images can be shared to the same contact corresponding to the same person, which is simple to operate and highly efficient.
[0035] In one embodiment, the method may be applied to a social application (Application, APP), and the following embodiments only take a social APP as an example.
[0036] Figure 1 is a flow chart of the image sharing method provided in the embodiment of the present application. Figure 1 As shown, the image sharing method provided in this embodiment includes:
[0037] Step 101: Receive a first input from a user.
[0038] Among them, the first input can be achieved through an input device connected to the device (such as a mouse, keyboard, microphone, etc.), or a user's operation on the display screen of the electronic device, etc., and the embodiment of the present application example is not limited to this.
[0039] In one embodiment, the first input is implemented by, for example, a user operating a display screen of a device, for example, Figure 2 As shown, thumbnails of multiple images are displayed in the image preview interface. When the user drags the image to overlap the thumbnails of two images, the sharing operation is triggered. In other embodiments, for example, it can also be achieved through click operations, gesture operations, etc., which is not limited to the embodiments of the present application.
[0040] For example, a sharing control is displayed on the image preview interface, and a first input of the user to the sharing control is received, such as clicking the sharing control or long pressing the sharing control.
[0041] Step 102: In response to the first input, share at least two target images with a first contact corresponding to a first character image; the first character image is a character image corresponding to the same character in the at least two target images.
[0042] Specifically, at least two target images are first acquired, that is, the user needs to share the at least two target images. In response to the first input, the character images corresponding to the same character in the at least two target images can be determined, for example, Figure 3 , Figure 4 As shown, the target image 1 contains a character image of person 1 and a character image of person 2, and the target image 2 contains a character image of person 1 and a character image 3 of person 3, then the first character image is the character image of person 1.
[0043] Share at least two target images with a first contact corresponding to the first person image, for example, establish a communication connection between the current user's electronic device and the first contact's electronic device, and share at least two target images with the first contact's electronic device through the established communication connection, the communication connection includes: Bluetooth, Wireless Fidelity (Wireless-Fidelity, WIFI) and other wireless connections, or are under the same operator network.
[0044] Exemplarily, after taking multiple photos of person 1 and multiple other persons, multiple images are generated, and after taking multiple photos of person 2 and multiple other persons, multiple images are generated. It is necessary to share images containing person 1 with person 1, and to share images containing person 2 with person 2. To facilitate sharing and improve sharing efficiency, character images corresponding to the same person in multiple images are identified, such as the character image of person 1, and multiple images containing the character image of person 1 are shared to the contact. Similarly, for the character image of person 2, multiple images containing the character image of person 2 are shared to the contact corresponding to person 2.
[0045] The method of this embodiment receives a first input from a user; in response to the first input, at least two target images are shared to a first contact corresponding to the first character image, that is, the first contact corresponding to the first character image is used as a common contact, and the first character image is a character image corresponding to the same character in at least two target images. The operation is simple and the efficiency is high.
[0046] In one embodiment, at least two target images may be shared with a first contact corresponding to the first character image in the target application.
[0047] Specifically, the target application is, for example, a social application, and the social application has one or more contacts.
[0048] The first contact corresponding to the first character image is determined in the target application, for example, by matching the first character image with the avatar of the first contact, that is, searching for contacts of character images corresponding to the same character in multiple target images in the target application, and sharing multiple images to the common contact.
[0049] Optionally, the first character images of the same person in multiple target images may not be exactly the same. For example, if the similarity of the multiple first character images of the same person is high, when determining the first contact corresponding to the first character image in the target application, for example, the first character image extracted from any target image can be used, or the character image obtained after processing the first character images in multiple target images can be used, for example, image fusion processing can be performed on the multiple first character images.
[0050] Exemplarily, after taking multiple photos of person 1 and multiple other persons, multiple images are generated, and after taking multiple photos of person 2 and multiple other persons, multiple images are generated. It is necessary to share the image containing person 1 to the person 1 in the social application, and to share the image containing person 2 to the person 2 in the social application. In order to facilitate sharing and improve sharing efficiency, the person images corresponding to the same person in the multiple images are identified, such as the person image of person 1, and the contact corresponding to the person image 1 is found in the social application, and multiple images containing the person image of person 1 are shared to the contact. Similarly, for the person image of person 2, the contact corresponding to the person image 2 is found in the social application, and multiple images containing the person image of person 2 are shared to the contact.
[0051] The method of this embodiment receives a first input from a user; in response to the first input, obtains a first character image corresponding to the same character in at least two target images, uses a first contact corresponding to the first character image as a common contact, and shares multiple target images with the common contact. The operation is simple and the efficiency is high.
[0052] In one embodiment, step 103 may be implemented by the following steps:
[0053] Find a contact avatar matching the first person image in the target application;
[0054] Get the first contact corresponding to the contact avatar;
[0055] Share at least two target images to the first contact.
[0056] Specifically, the first contact corresponding to the first character image in the target application, that is, the avatar of the first contact matches the first character image, for example, the similarity between the avatar and the first character image is relatively high, such as higher than a similarity threshold.
[0057] For example, Figure 5 As shown, Figure 5 , an address book in a social application is shown. Assuming that the first character image matches the contact avatar 2, at least two target images are shared with the contact 2.
[0058] Optionally, after confirming the contact, a prompt message may be sent to the user to confirm whether to share, and after confirmation, the message is shared with the corresponding contact.
[0059] Optionally, the step of “sharing at least two target images to a first contact corresponding to the first person image” may be implemented in the following manner:
[0060] Eliminate other person images except the first person image from each target image, obtain a processed image corresponding to each target image, and share each processed image with the first contact.
[0061] Specifically, at least two target images can be directly shared with the first contact, or the first contact may be only interested in the image portion of himself in the target image, in which case each target image is processed and then shared with the first contact, for example, other character images except the first character image in the target image are removed, and the removed images are shared with the first contact.
[0062] Optionally, the same background or scenery can be retained during the culling process.
[0063] For example, Figure 3 The images of adults are eliminated and the eliminated images are shared with the first contact.
[0064] In the above implementation, when sharing an image, only the part that the contact is interested in can be shared, thereby avoiding sending useless information to the contact and also avoiding leaking the privacy of other users.
[0065] In one embodiment, step 102 may be implemented in the following ways:
[0066] One way to implement it:
[0067] extracting a person image in each of at least two target images;
[0068] Based on the similarities between the extracted multiple character images, a first character image is determined.
[0069] Specifically, a person image is extracted from each target image of the multiple target images, and the similarity between the person images extracted from different target images is determined, such as calculating the similarity between the person images in any two target images, and determining the first person image based on the similarity.
[0070] For example, target image 1 contains person image 1, target image 2 contains person image 2, target image 3 contains person image 3 and person image 4, and the similarity of person image 1, person image 2 and person image 4 is relatively high, for example, greater than a similarity threshold, then person image 1, person image 2 and person image 4 are taken as the first person image. Person image 1, person image 2 and person image 4 are all images of person 1.
[0071] Based on the character image 1, the character image 2 and the character image 4, the corresponding first contact is searched in the target application, and multiple target images are shared to the first contact. For example, based on any one of the character images 1, the character image 2 and the character image 4, the corresponding first contact is searched in the target application, or based on the image obtained after processing the character image 1, the character image 2 and the character image 4, the corresponding first contact is searched in the target application.
[0072] Another way to implement it:
[0073] Acquire an image of a first area in each of at least two target images respectively;
[0074] In the case that the images in the first area of each target image are images corresponding to the same person, the first person image is determined based on the images in the first area.
[0075] The first area may be an area in the target image that includes a person image. The positions of the first areas in each target image correspond to each other.
[0076] Specifically, Figure 6 As shown, the first area L in the target image 1 includes the person image 1, and the first area L in the target image 2 includes the person image 2. The person image 1 and the person image 2 are both person images of the same person 1. When multiple images are taken, the person 1 may be in the same or similar position. Therefore, based on the person image 1 and / or the person image 2, the first person image is determined, for example, the person image 1 or the person image 2 is used as the first person image, or the image after the person image 1 and the person image 2 are fused is used as the first person image.
[0077] In the above implementation, the first person image corresponding to the same person in multiple target images is determined by the similarity of the person images or the position of the person images, and the implementation process is simple and the accuracy is high.
[0078] In one embodiment, in order to facilitate sharing of images with other contacts, the image sharing method further includes:
[0079] For each target image, obtaining a second person image in the target image whose distance from the first person image is less than a distance threshold;
[0080] A second contact corresponding to the second character image is determined in the target application, and the target image is shared with the second contact.
[0081] Specifically, for each target image, assuming that there are multiple character images in the target image, and a first character image already exists in the target image, if there is a second character image that is closer to the first character image, for example, a second character image that is adjacent to the first character image, or a second character image that is located above, below, left, or right of the first character image and is closer to the first character image.
[0082] The person corresponding to the first character image and the person corresponding to the second character image may have a close relationship, so the target image is shared with the second contact corresponding to the second character image, for example, by matching the avatars of multiple contacts with the second character image to find the second contact corresponding to the second character image.
[0083] In the above implementation, the contacts corresponding to other person images in the target image that are closer to the current first person image are also used as objects of image sharing, thereby avoiding the tedious operation of the user to search for contacts, and the implementation process is simple and efficient.
[0084] In one embodiment, if there are multiple identical persons in multiple target images, step 103 can be implemented in the following manner:
[0085] When the number of the first character images is at least two, determining a sending order according to positions of the at least two first character images;
[0086] Based on the sending order, the target image is shared to the first contact corresponding to the first person image.
[0087] Specifically, if there are multiple first person images in multiple target images, such as first person image 1 and first person image 2, the sending order of the target images, that is, the priority of sending the images, is determined according to the positional relationship between the first person image 1 and the second person image 2 in the target image. The images are sent to contacts with higher priorities first. For example, if the first person image 1 is located on the left or above the second person image 2, the sending order is the first contact corresponding to the first person image 1 and the first contact corresponding to the second person image 2.
[0088] In the above implementation, if there are multiple first person images in multiple target images, the sending order can be determined according to the positions of the person images when sending, so that certain contacts can receive the shared target images first.
[0089] In one embodiment, the image sharing method further includes:
[0090] In the case where a third person image exists in the target image, receiving a second input from the user; wherein the third person image is a person image of a contact person whose corresponding contact is not recognized in the target application;
[0091] In response to the second input, obtaining a third contact corresponding to the third person image in the target application;
[0092] Share the target image to a third contact.
[0093] Among them, the second input can be achieved through an input device connected to the device (such as a mouse, keyboard, microphone, etc.), or a user's operation on the display screen of the electronic device, etc., and the embodiment of the present application example is not limited to this.
[0094] Specifically, if there are multiple character images in the target image and sharing is done with these multiple character images, if the electronic device does not recognize the contact person corresponding to a certain character image in the target application, that is, the corresponding contact person cannot be found through the character image, you can manually search and create a corresponding relationship between the character image and the contact person to facilitate subsequent sharing and use.
[0095] In one embodiment, the second input is achieved by, for example, the user operating the display screen of the device. For example, after finding the contact corresponding to the third character image in the address book interface of the social application, the user instructs the device to share the target image to the contact by clicking. In other embodiments, for example, it can also be achieved by long pressing, sliding, etc., which is not limited to the embodiments of the present application.
[0096] The second input may be used to indicate the contact person corresponding to the fourth character image.
[0097] Alternatively, if Figure 7 As shown, if a contact person corresponding to a person image in the target image is identified, the person image can be marked, for example, by displaying marking information on the person image. Figure 7 There is a mark in the lower right corner of the character image 1 and the character image 2.
[0098] Optionally, if the contact person corresponding to the person image in the target image is not identified, the person image is marked, for example, marking information is displayed on the third person image.
[0099] Optionally, a prompt message may be output to prompt the user that a contact corresponding to a certain person image is not recognized.
[0100] For character images whose corresponding contacts are not recognized, the user can search for the corresponding contacts in the target application. After finding the corresponding contacts, the user can instruct the device to establish a corresponding relationship between the character image and the contact and share the target image with the contact.
[0101] For example, as shown in Figure 8, the user finds Figure 7 The device can jump to the image preview interface, such as Fig. 9 As shown, the character image 3 is marked in the image preview interface, for example, the contact avatar 1 of the contact 1 is displayed in the lower right corner of the character image 3.
[0102] In the above embodiment, if there is a third person image whose corresponding contact is not recognized in the target image, based on the user's second input, the third contact corresponding to the third person image in the target application is obtained, and the target image is shared with the third contact, thereby realizing the sharing of the unrecognized contact.
[0103] In one embodiment, the image sharing method further includes:
[0104] For any target image, if there is a fourth person image in addition to the first person image in the target image, determining a fourth contact person corresponding to the fourth person image in the target application;
[0105] Share the target image to a fourth contact.
[0106] Specifically, if there are multiple character images in the target image, that is, there are a first character image and a fourth character image, the target image is shared with the first contact corresponding to the first character image and the fourth contact corresponding to the fourth character image. The method for searching the fourth contact is similar to that in the previous embodiment and will not be repeated here.
[0107] like Figure 3 As shown, Figure 3 The image of the adult on the left side is the fourth person image. The fourth contact corresponding to the fourth person image is searched in the target application, and the target image is shared to the fourth contact.
[0108] In the above embodiment, if there are multiple character images in the target image, that is, there are a first character image and a fourth character image, the target image is shared to the first contact corresponding to the first character image and the fourth contact corresponding to the fourth character image, respectively. It can be quickly shared with multiple contacts, simplifying the tedious operation of users to search for contacts to share in turn.
[0109] In one embodiment, sharing the target image to the fourth contact includes:
[0110] Add the first contact and the fourth contact to the group chat;
[0111] Share the target image to the group chat group.
[0112] Specifically, if there are multiple character images in the target image, a group chat group can be generated, and the contacts corresponding to the multiple character images can be added to the group chat group. The target image is shared to the group chat group, so the target image only needs to be shared once, which is more efficient.
[0113] like Fig.10 As shown, in the image preview interface of the target image, click the share control, establish a group chat group, add contacts corresponding to multiple character images to the group chat group, and directly share the target image to the group chat group, or send a prompt message before sharing to indicate whether the user confirms the sharing, such as text and / or voice prompt message.
[0114] The sharing control may be a control for sharing to a certain social application, or may be a control for sharing to multiple social applications. For example, after the user clicks the sharing control, pop-up windows of multiple social applications may be displayed for the user to select.
[0115] Optionally, adding the first contact and the fourth contact to the group chat group may be implemented in the following manner:
[0116] Determining the order of joining the group chat group based on the positions of the first character image and the fourth character image;
[0117] Based on the order of joining the group chat group, the first contact and the fourth contact are added to the group chat group.
[0118] Specifically, the order of joining the group chat group can be from left to right, or from top to bottom, for example, if the first character image 1 is located on the left or top of the fourth character image 2, then the order of joining the group chat is the first contact corresponding to the first character image 1, and the fourth contact corresponding to the fourth character image 2.
[0119] In the above implementation, if there are multiple character images in the target image, the contacts corresponding to the multiple character images can be added to the group chat group, and the target image can be directly shared to the group chat group, which can be quickly shared with multiple contacts with high efficiency.
[0120] Optionally, for the method of joining a group chat group, if a contact corresponding to a certain character image in the target image has not been added to the group chat group, the above method can be used to find the contact corresponding to the character image in the target application and add the contact to the group chat group.
[0121] It should be noted that the image sharing method provided in the embodiment of the present application can be executed by an image sharing device or a control module in the image sharing device for executing the image sharing method. In the embodiment of the present application, the image sharing device provided in the embodiment of the present application is described by taking the image sharing device executing the image sharing method as an example.
[0122] Fig.11 : is a schematic diagram of the structure of the image sharing device provided by the present application. The image sharing device provided by this embodiment includes:
[0123] The receiving module 210 is used to receive a first input from a user;
[0124] The processing module 220 is used to share at least two target images to a first contact corresponding to a first character image in response to the first input; the first character image is a character image corresponding to the same character in the at least two target images.
[0125] Optionally, the processing module 220 is specifically configured to:
[0126] Extracting a person image from each of the at least two target images;
[0127] Determine the first person image based on the similarity between the extracted multiple person images; or respectively obtain an image of the first area in each of the at least two target images;
[0128] In the case where the images in the first area of each of the target images are images corresponding to the same person, the first person image is determined based on the images in the first area.
[0129] Optionally, the processing module 220 is further configured to:
[0130] For each of the target images, obtaining a second person image in the target image whose distance from the first person image is less than a distance threshold;
[0131] A second contact corresponding to the second character image is determined in the target application, and the target image is shared with the second contact.
[0132] Optionally, the processing module 220 is specifically configured to:
[0133] When the number of the first character images is at least two, determining a sending order according to positions of the at least two first character images;
[0134] Based on the sending order, the target image is shared with a first contact corresponding to the first character image.
[0135] Optionally, the processing module 220 is specifically configured to:
[0136] Searching for a contact avatar matching the first person image in the target application;
[0137] Obtaining a first contact corresponding to the contact avatar;
[0138] The at least two target images are shared with the first contact.
[0139] Optionally, the processing module 220 is specifically configured to:
[0140] Eliminate other person images except the first person image from at least two of the target images, obtain a processed image corresponding to each of the target images, and share each of the processed images with the first contact.
[0141] Optionally, the processing module 220 is further configured to:
[0142] For each of the target images, if there is a fourth person image in addition to the first person image in the target image, determining a fourth contact person corresponding to the fourth person image in the target application;
[0143] The target image is shared with the fourth contact.
[0144] Optionally, the processing module 220 is specifically configured to:
[0145] Adding the first contact and the fourth contact to a group chat group;
[0146] The target image is shared to the group chat group.
[0147] Optionally, the processing module 220 is specifically configured to:
[0148] Determining the order of joining the group chat group based on the positions of the first character image and the fourth character image;
[0149] Based on the order of joining the group chat group, the first contact and the fourth contact are added to the group chat group.
[0150] Optionally, the receiving module 210 is further configured to:
[0151] In the case where a third person image exists in the target image, receiving a second input from the user; wherein the third person image is a person image of a contact person whose corresponding contact is not recognized in the target application;
[0152] The processing module 220 is further configured to:
[0153] In response to the second input, obtaining a third contact corresponding to the third character image in the target application;
[0154] The target image is shared with the third contact.
[0155] In the image sharing device of this embodiment, the receiving module receives the first input of the user; the processing module responds to the first input, obtains the first person image corresponding to the same person in at least two target images, takes the first contact corresponding to the first person image as a common contact, and shares multiple target images to the common contact, which is simple to operate and highly efficient.
[0156] The image sharing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0157] The image sharing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0158] The image sharing device provided in the embodiment of the present application can achieve Figures 1 to 10 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0159] Alternatively, if Fig.12 As shown, an embodiment of the present application also provides an electronic device 1200, including a processor 1201, a memory 1202, and a program or instruction stored in the memory 1202 and executable on the processor 1201. When the program or instruction is executed by the processor 1201, each process of the above-mentioned image sharing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0160] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0161] Fig.13 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0162] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.
[0163] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0164] The user input unit 1007 is used to receive a first input from a user;
[0165] The processor 1010 is configured to share at least two target images with a first contact corresponding to a first character image in response to the first input; the first character image is a character image corresponding to the same character in the at least two target images.
[0166] In the electronic device of this embodiment, the user input unit receives a first input from a user; the processor responds to the first input, obtains a first character image corresponding to the same character in at least two target images in response to the first input, takes the first contact corresponding to the first character image as a common contact, and shares multiple target images to the common contact, which is simple to operate and highly efficient.
[0167] Optionally, the processor 1010 is specifically configured to:
[0168] Extracting a person image from each of the at least two target images;
[0169] Determine the first person image based on the similarity between the extracted multiple person images; or respectively obtain an image of the first area in each of the at least two target images;
[0170] In the case where the images in the first area of each of the target images are images corresponding to the same person, the first person image is determined based on the images in the first area.
[0171] In the above implementation, the first person image corresponding to the same person in multiple target images is determined by the similarity of the person images or the position of the person images, and the implementation process is simple and the accuracy is high.
[0172] Optionally, the processor 1010 is further configured to:
[0173] For each of the target images, obtaining a second person image in the target image whose distance from the first person image is less than a distance threshold;
[0174] A second contact corresponding to the second character image is determined in the target application, and the target image is shared with the second contact.
[0175] In the above implementation, the contacts corresponding to other person images in the target image that are closer to the current first person image are also used as objects of image sharing, thereby avoiding the tedious operation of the user to search for contacts, and the implementation process is simple and efficient.
[0176] Optionally, the processor 1010 is specifically configured to:
[0177] When the number of the first character images is at least two, determining a sending order according to positions of the at least two first character images;
[0178] Based on the sending order, the target image is shared with a first contact corresponding to the first character image.
[0179] In the above implementation, if there are multiple first person images in multiple target images, the sending order can be determined according to the positions of the person images when sending, so that certain contacts can receive the shared target images first.
[0180] Optionally, the processor 1010 is specifically configured to:
[0181] Searching for a contact avatar matching the first character image in the target application;
[0182] Obtaining a first contact corresponding to the contact avatar;
[0183] The at least two target images are shared with the first contact.
[0184] Optionally, the processor 1010 is specifically configured to:
[0185] Eliminate other person images except the first person image from at least two of the target images, obtain a processed image corresponding to each of the target images, and share each of the processed images with the first contact.
[0186] In the above implementation, when sharing an image, only the part that the contact is interested in can be shared, thereby avoiding sending useless information to the contact and also avoiding leaking the privacy of other users.
[0187] Optionally, the processor 1010 is further configured to:
[0188] For each of the target images, if there is a fourth person image in addition to the first person image in the target image, determining a fourth contact person corresponding to the fourth person image in the target application;
[0189] The target image is shared with the fourth contact.
[0190] In the above embodiment, if there are multiple character images in the target image, that is, there are a first character image and a fourth character image, the target image is shared to the first contact corresponding to the first character image and the fourth contact corresponding to the fourth character image, respectively. It can be quickly shared with multiple contacts, avoiding the tedious operation of users searching for contacts to share one by one.
[0191] Optionally, the processor 1010 is specifically configured to:
[0192] Adding the first contact and the fourth contact to a group chat group;
[0193] The target image is shared to the group chat group.
[0194] In the above implementation, if there are multiple character images in the target image, the contacts corresponding to the multiple character images can be added to the group chat group, and the target image can be directly shared to the group chat group, which can be quickly shared with multiple contacts with high efficiency.
[0195] Optionally, the processor 1010 is specifically configured to:
[0196] Determining the order of joining the group chat group based on the positions of the first character image and the fourth character image;
[0197] Based on the order of joining the group chat group, the first contact and the fourth contact are added to the group chat group.
[0198] Optionally, the input unit 1004 is further used for:
[0199] In the case where a third person image exists in the target image, receiving a second input from the user; wherein the third person image is a person image of a contact person whose corresponding contact is not recognized in the target application;
[0200] The processor 1010 is further configured to:
[0201] In response to the second input, obtaining a third contact corresponding to the third character image in the target application;
[0202] The target image is shared with the third contact.
[0203] In the above embodiment, if there is a third person image whose corresponding contact is not recognized in the target image, based on the user's second input, the third contact corresponding to the third person image in the target application is obtained, and the target image is shared with the third contact, thereby realizing the sharing of the unrecognized contact.
[0204] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.
[0205] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned image sharing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0206] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0207] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image sharing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0208] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0209] The embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the various processes of the above-mentioned image sharing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0210] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0211] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0212] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An image sharing method, characterized in that: include: receiving a first input from a user; In response to the first input, sharing at least two target images to a first contact corresponding to the first person image; The first person image is a person image corresponding to the same person determined in the at least two target images based on the position of the person image; The method further comprises: For each of the target images, a second person image in the target image whose distance from the first person image is less than a distance threshold is obtained; the distance between the first person image and the second person image in the target image is negatively correlated with the intimacy between the person corresponding to the first person image and the person corresponding to the second person image; Determine, in the target application, a second contact corresponding to the second character image, and share the target image with the second contact; Before sharing the at least two target images to the first contact corresponding to the first person image, the method further includes: Respectively acquiring an image of a first area in each of the at least two target images, wherein the first area includes an area in the target image including an image of a person, and positions of the first area in each of the target images correspond to each other; In a case where the images in the first area of each of the target images are images corresponding to the same person, determining the first person image based on the images in the first area; The step of sharing at least two target images to a first contact corresponding to the first person image includes: When the number of the first character images is at least two, determining a sending order according to positions of at least two of the first character images; Based on the sending order, the target image is shared in sequence to the first contact corresponding to the first character image.
2. The image sharing method according to claim 1, characterized in that: The step of sharing at least two target images to a first contact corresponding to the first person image includes: Eliminate other person images except the first person image from at least two of the target images, obtain a processed image corresponding to each of the target images, and share each of the processed images with the first contact.
3. The image sharing method according to claim 1, characterized in that: The method further comprises: In the case where a third person image exists in the target image, receiving a second input from the user; wherein the third person image is a person image of a contact person whose corresponding contact is not recognized in the target application; In response to the second input, obtaining a third contact corresponding to the third character image in the target application; The target image is shared with the third contact.
4. An image sharing device, characterized in that: include: A receiving module, used for receiving a first input from a user; A processing module, configured to share at least two target images to a first contact corresponding to a first character image in response to the first input; the first character image is a character image corresponding to the same character determined in the at least two target images based on the position of the character image; The processing module is also used to: For each of the target images, a second person image in the target image whose distance from the first person image is less than a distance threshold is obtained; the distance between the first person image and the second person image in the target image is negatively correlated with the intimacy between the person corresponding to the first person image and the person corresponding to the second person image; Determine, in the target application, a second contact corresponding to the second character image, and share the target image with the second contact; The processing module is specifically used for: Respectively acquiring an image of a first area in each of the at least two target images, wherein the first area includes an area in the target image including an image of a person, and positions of the first area in each of the target images correspond to each other; In a case where the images in the first area of each of the target images are images corresponding to the same person, determining the first person image based on the images in the first area; When the number of the first character images is at least two, determining a sending order according to positions of at least two of the first character images; Based on the sending order, the target image is shared in sequence to the first contact corresponding to the first character image.
5. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method according to any one of claims 1 to 3.
6. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Picture sharing method and apparatus
CN105095873A
Picture managing method and device
CN105260487A
Picture sharing method and device, intelligent terminal and storage medium
CN112613360A