CN107169042B - Method and device for sharing pictures and computer readable storage medium - Google Patents

Method and device for sharing pictures and computer readable storage medium Download PDF

Info

Publication number
CN107169042B
CN107169042B CN201710271998.2A CN201710271998A CN107169042B CN 107169042 B CN107169042 B CN 107169042B CN 201710271998 A CN201710271998 A CN 201710271998A CN 107169042 B CN107169042 B CN 107169042B
Authority
CN
China
Prior art keywords
face image
user
picture
friend
face
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710271998.2A
Other languages
Chinese (zh)
Other versions
CN107169042A (en
Inventor
陈志军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710271998.2A priority Critical patent/CN107169042B/en
Publication of CN107169042A publication Critical patent/CN107169042A/en
Application granted granted Critical
Publication of CN107169042B publication Critical patent/CN107169042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure relates to a method and a device for sharing pictures and a computer readable storage medium, and belongs to the field of internet communication. The method comprises the following steps: acquiring a shot picture; determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture; and if the user is a friend of the user, sending the picture to the friend of the user. The image sharing method and device can improve the image sharing efficiency.

Description

Method and device for sharing pictures and computer readable storage medium
Technical Field
The present disclosure relates to the field of internet communications, and in particular, to a method and an apparatus for sharing pictures, and a computer-readable storage medium.
Background
With the development of terminal technology, many terminals have a photographing function at present, and a user can use the terminal to take a picture. For example, with the development of mobile phone technology, the current mobile phones basically have a photographing function, and users often use the mobile phones to take photos.
Sometimes a user takes a picture of his friend using a terminal, and the user may want to share the picture with his friend because the picture includes an image of the friend. During sharing, the user can find the friend in the social application, open the chat interface of the friend, and send the picture to the friend through the chat interface.
Disclosure of Invention
In order to improve the efficiency of sharing pictures, the embodiments of the present disclosure provide a method and an apparatus for sharing pictures, and a computer-readable storage medium. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for sharing pictures, the method including:
acquiring a shot picture;
determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture;
and if the user is a friend of the user, sending the picture to the friend of the user.
Optionally, the determining, according to the target face image in the picture, whether the person to which the target face image belongs is a friend of the user includes:
acquiring a face photo album of a friend of the user;
acquiring a face image of a friend of the user from the face album;
carrying out face recognition comparison on the target face image and the face image;
and if the target face image and the face image belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the determining, according to the target face image in the picture, whether the person to which the target face image belongs is a friend of the user includes:
acquiring the head portrait of the friend of the user;
carrying out face recognition comparison on the target face image and the head portrait;
and if the target face image and the head portrait belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the sending the picture to the friend of the user includes:
sending first indication information to the friends of the user, wherein the first indication information is used for indicating whether the friends of the user need the shot pictures or not;
when a confirmation response corresponding to the first indication information is received, displaying second prompt information to the user, wherein the second prompt information is used for prompting whether the user allows the picture to be shared with friends of the user;
and when the confirmation command corresponding to the second prompt message is detected, sending the picture to the friend of the user.
Optionally, the method further includes:
acquiring a shared face album;
naming the unnamed face images in the shared face album according to the locally stored face album.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing pictures, the apparatus comprising:
a first acquisition module configured to acquire a photographed picture;
the determining module is configured to determine whether a person to which the target face image belongs is a friend of the user according to the target face image in the picture;
and the sending module is configured to send the picture to the friend of the user if the determining module is the friend of the user.
Optionally, the determining module is configured to obtain a face album of a friend of the user; acquiring a face image of a friend of the user from the face album; carrying out face recognition comparison on the target face image and the face image; and if the target face image and the face image belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the determining module is configured to obtain the head portrait of the friend of the user; carrying out face recognition comparison on the target face image and the head portrait; and if the target face image and the head portrait belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the sending module is configured to send first prompt information to the friend of the user, where the first prompt information is used to prompt whether the friend of the user needs the taken picture; when a confirmation response corresponding to the first indication information is received, displaying second prompt information to the user, wherein the second prompt information is used for prompting whether the user allows the picture to be shared with friends of the user; and when the confirmation command corresponding to the second prompt message is detected, sending the picture to the friend of the user.
Optionally, the apparatus further comprises:
the second acquisition module is configured to acquire the shared face album;
and the naming module is configured to name the unnamed face images in the shared face album according to the locally stored face album.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for sharing a picture, including:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a shot picture;
determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture;
and if the user is a friend of the user, sending the picture to the friend of the user.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
determining whether a person to which the target face image belongs is a friend of the user or not according to the target face image in the picture by acquiring the shot picture; and if the user is a friend of the user, sending the shot picture to the friend of the user. Therefore, when a picture is shot, whether the picture belongs to the friends of the user or not is immediately judged, and if yes, the picture is shared to the friends of the user, so that the sharing efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of sharing pictures in accordance with an exemplary embodiment;
FIG. 2-1 is a flow diagram illustrating a method of naming a face image according to another exemplary embodiment;
FIG. 2-2 is a pictorial diagram illustrating an exemplary embodiment;
FIGS. 2-3 are pictorial diagrams illustrating a method according to another exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method of naming a face image in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method of sharing pictures in accordance with an exemplary embodiment;
FIG. 5-1 is a block diagram illustrating an apparatus for sharing pictures in accordance with an exemplary embodiment;
FIG. 5-2 is a block diagram illustrating another apparatus for sharing pictures in accordance with an illustrative embodiment;
fig. 6 is a block diagram illustrating another apparatus for sharing pictures according to an example embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring to fig. 1, fig. 1 is a method for sharing pictures according to an embodiment of the present disclosure, where the method includes:
in step 101: and acquiring the shot picture.
In step 102: and determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture.
In step 103: and if the user is a friend of the user, sending the shot picture to the friend of the user.
In the embodiment, whether a person to which a target face image belongs is a friend of a user is determined according to the target face image in a shot picture; and if the user is a friend of the user, sending the shot picture to the friend of the user. Therefore, when a picture is shot, whether the picture belongs to the friends of the user or not is immediately judged, and if yes, the picture is shared to the friends of the user, so that the sharing efficiency is improved.
The embodiment of the disclosure provides a method for naming a face image, an execution main body of the method can be a terminal or a server, and the terminal can be a mobile phone, a tablet computer, a notebook computer or a desktop computer. Referring to fig. 2-1, the method includes:
in step 201, a first picture is obtained, the first picture including a first face map of a first person to be named.
Optionally, the first picture may be a picture in a face album of the first user. The face album of the first user is a new face album which is automatically classified and arranged by the first user. The face album of the first user includes pictures of the same person, and at this time, the face image in each picture included in the face album of the first user is not named.
The method comprises the following steps: the method comprises the steps that a picture to be named is selected from a face album of a first user, the selected picture is called a first picture for convenience of explanation, the first picture comprises at least one face image to be named, and the first face image of a first person is any one face image to be named in the first picture.
For example, a first picture as shown in fig. 2-2 is obtained, the first picture includes a first face image a, and the first face image a is in an unnamed state in the first picture as shown in fig. 2-2.
The execution main body of the embodiment can be a terminal or a server; when the terminal is used, the terminal executes the step when the face photo album of the first user is obtained by automatically classifying and sorting the pictures of the first user; and when the terminal is the server, the server receives the pictures of the first user sent by the terminal, automatically classifies and sorts the received pictures of the first user to obtain the face photo album of the first user, and then executes the step.
In step 202: and acquiring a face photo album.
The face album may be a face album of a friend of the first user.
The method comprises the following steps: the method comprises the steps of obtaining user identification of friends of a first user, and obtaining face albums of the friends of the first user from a server according to the user identification of the friends of the first user.
The server and the terminal store an address list of the first user, wherein the address list comprises user identifications of friends of the first user. The server may also store user identifications of other users with whom the first user has communicated. The server also stores the corresponding relation between the user identification and the face album.
When the execution subject of this embodiment is a terminal, the implementation process of this step may be:
the terminal can acquire the user identification of the friend of the first user from the address list stored by the terminal, inquire the user identification of other users who have communicated with the first user from the server, and take the user identification of the other users as the user identification of the friend of the first user; according to the user identification of each friend of the first user, acquiring the face album of each friend of the first user from the corresponding relation between the user identification stored in the server and the face album; or acquiring the face photo album of the part of friends from the corresponding relation between the user identification stored in the server and the face photo album according to the user identification of the part of friends of the first user.
When the execution subject of this embodiment is a server, the implementation process of this step may be:
the server acquires an address book of a first user and acquires user identifications of friends of the first user from the address book; acquiring the stored user identification of other users who have communicated with the first user, and taking the user identification of the other users as the user identification of friends of the first user; according to the user identification of each friend of the first user, acquiring the face album of each friend of the first user from the corresponding relation between the stored user identification and the face album; or acquiring the face photo album of the part of friends from the stored corresponding relation between the user identification and the face photo album according to the user identification of the part of friends of the first user.
In step 203: and acquiring named face images included in the face album.
The face album, that is, the face album of the friend includes at least one picture, and for each picture, the picture includes at least one face image, and the friend of the first user may name the face image in advance, so the name of the face image may be marked in the picture.
For example, referring to a picture in the face album of the friend of the first user shown in fig. 2-3, the picture includes a face image B, it is assumed that the friend of the first user previously names the name of the face image B as "Jack", and in the picture shown in fig. 2-3, the name "Jack" is marked below the face image B.
The method comprises the following steps: and searching the face image marked with the name from each picture of the face photo album of the friend, namely searching the named face image. For example, the face image B marked with the name "Jack" can be found from fig. 2-3, i.e., the face image B is a named face image.
In step 204: and carrying out face identification comparison on the first face image and the named face image, and determining the named face image as a second face image of the first person when the first face image and the named face image belong to the same person.
Specifically, for each named face image, a first face image and the named face image are subjected to face recognition comparison, and if the two face images are the face images of the same person, for convenience of description, the named face image is called a second face image of the first person.
For example, the first face image a and the named face image B are subjected to face recognition comparison, and the first face image a and the named face image B belong to the same person, so the face image B is referred to as a second face image of the first person.
In step 205: the name of the second face image is named as the first face image.
For example, the name of the first face image a is named with the name "Jack" of the second face image B, and then the name of the first face image a is marked as "Jack" in the first picture as shown in fig. 2 to 4.
In the embodiment of the disclosure, when a first user sorts out a new face album (which is the face album of the first user), for a first face image of a first person included in the face album of the first user, a second face image of the named first person is obtained from the face album of a friend of the first user, and the first face image is named by the name of the second face image, so that the first user can be automatically helped to name the face image, the naming efficiency is improved, and the user experience is increased.
Referring to fig. 3, an embodiment of the present disclosure provides a method for naming a face image, which may be applied after the method of embodiment 2, and an execution subject of the method may be a terminal or a server, including:
in step 301: and acquiring a shared face album.
When a second user shares the face album with a first user, a terminal of the second user sends a sharing request to a server, wherein the sharing request comprises the face album shared by the second user and the user identification of the first user.
When the execution subject of the embodiment is the server, the server receives the sharing request, and acquires the shared face album from the sharing request.
When the execution subject of this embodiment is a terminal, the terminal receives the sharing request forwarded by the server according to the user identifier of the first user included in the sharing request, and acquires a shared face album from the sharing request.
The shared face album includes at least one face image, some face images may be named, some face images may not be named or each face image may not be named.
In step 302: naming unnamed face images in the shared face album according to the locally stored face album.
This step can be implemented by the following flow of 3021 and 3022, including:
3021: and performing face recognition comparison on the unnamed face image included in the shared face image album and the named face image included in the locally stored face image album, and if the unnamed face image and the named face image belong to the same person, executing 3022.
The step may be to obtain a face album of the first user, where the face album of the first user is a locally stored face album, obtain named face images from the face album of the first user, perform face recognition comparison on the unnamed face images in the shared face album and each named face image, and execute 3022 if the unnamed face images and a named face image belong to the same person.
For the operation of obtaining the face album of the first user, when the execution main body of this embodiment is the server, the server may obtain the first face album of the first user from the correspondence between the user identifier stored in the server and the face album according to the user identifier of the first user included in the sharing request.
When the execution subject of this embodiment is a terminal, the terminal may query the face album of the first user from the correspondence between the user identifier stored in the server and the face album according to the user identifier of the first user.
3022: the named face images are named with their names.
Among them, it should be noted that: some pictures in the shared face album include named face images, so the shared face album further includes a configuration file, and the name of each named face image in the shared face album, the picture identifier of the picture in which the face image is located, and the position of the picture in the picture are correspondingly stored in the configuration file.
Optionally, in this embodiment, a name corresponding to the named face image in the shared face album may also be added, and the implementation process may be:
for each named face image in a shared face album, acquiring the name of the face image, the picture identification of the picture in which the face image is positioned and the position of the face image in the picture from a configuration file; and adding the name of the face image in the picture corresponding to the picture identification at the position.
In the embodiment of the disclosure, when the second user shares the face album, the unnamed face images in the face album shared by the second user can be automatically named according to the face album of the first user, so that the first user can be automatically helped to name the face images, the naming efficiency is improved, and the user experience is increased.
Referring to fig. 4, an embodiment of the present disclosure provides a method for sharing a picture, where the method is applied to sharing a picture of a friend of a first user when the first user takes the picture of the friend, and an execution subject of the method may be a terminal, and the terminal may be a mobile phone, a tablet computer, or the like. The detailed implementation process may include:
in step 401: and acquiring a shot picture, wherein the shot picture comprises a human face image.
The acquired picture may be an image taken by the first user. The first user can use the terminal to shoot other people to obtain pictures. When a camera of the terminal shoots a picture, the picture shot by the terminal is obtained, and the picture comprises face images of other people.
In step 402: and determining whether the person to which the target face image belongs is a friend of the first user, wherein the target face image is a face image in the picture.
The class identifies the face image from the picture, and extracts the identified face image as the target face image. The target face image may be one or more.
This step can be implemented in two ways, including:
the first mode is as follows: acquiring a face photo album of a friend of a first user; for any friend, acquiring a face image of the friend from a face album of the friend, and performing face recognition comparison on a target face image and the face image of the friend; and if the target face image and the face image of the friend belong to the same person through comparison, determining that the person to which the target face image belongs is the friend.
Optionally, the operation of obtaining the face album of the friend of the first user may be:
and acquiring the user identification of each friend of the first user from the local address book of the terminal, and acquiring the face album of each friend from the corresponding relation between the user identification stored in the server and the face album according to the user identification of each friend.
Each face image in the face album of the friend is usually the face image of the friend, so that when the shot target face image and the face image of the friend belong to the same person, the target face image can be determined to be the face image of the friend, that is, the person to which the target face image belongs can be determined to be the friend.
The second mode is as follows: acquiring a head portrait of a friend of a first user; for any friend, carrying out face recognition comparison on the target face image and the head portrait of the friend; and if the target face image and the head portrait of the friend belong to the same person through comparison, determining that the person to which the target face image belongs is the friend.
The address book of the first user often stores contact information of each friend of the first user, and the contact information of the friend includes user identification, name, head portrait and the like of the friend.
Optionally, the operation of obtaining the head portrait of the friend of the first user may be: and acquiring the head portrait of each friend of the first user from the address list of the first user.
The head portrait of the friend is usually a self-portrait of the friend, the self-portrait often includes a face image of the user, the target face image and the head portrait of the friend belong to the same person, the target face image can be determined to be the face image of the friend, and the person to which the target face image belongs can be determined to be the friend.
In step 403: and if the friend is a friend of the first user, acquiring the user identification of the friend.
Optionally, when the shot target face image and the face image of a friend of the user belong to the same person, obtaining a user identifier corresponding to the face album in which the face image of the friend is located, where the user identifier is the user identifier of the friend. Or when the target face image and the head portrait of the friend belong to the same person, acquiring contact person information where the head portrait of the friend is located, wherein the contact person information comprises the user identification of the friend, and acquiring the user identification of the friend from the contact person information.
In step 404: and sending the shot picture to the friend according to the user identification of the friend.
In actual implementation, first prompt information can be sent to the friend first, and the first indication information is used for prompting that a first user of the friend takes a picture of the friend and prompting whether the friend needs the picture; if the friend needs the picture, displaying second prompt information to the first user, wherein the second prompt information is used for prompting whether the first user allows the picture to be shared with the friend or not; and when the first user allows sharing to the friend, sending the shot picture to the friend.
In the embodiment, a picture shot by a first user is obtained, wherein the shot picture comprises a target face image; determining whether the person to which the target face image belongs is a friend of the first user or not according to the target face image; and if the friend is the friend of the first user, sending the shot picture to the friend of the first user. Therefore, when a picture is shot, whether the picture belongs to the friends of the first user or not is immediately judged, and if yes, the picture is shared to the friends of the first user, so that the sharing efficiency is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5-1 is an illustration of an apparatus 500 for sharing pictures, according to an example embodiment, the apparatus 500 comprising:
a first obtaining module 501 configured to obtain a taken picture;
a determining module 502 configured to determine whether a person to which the target face image belongs is a friend of the user according to the target face image in the picture;
a sending module 503, configured to send the picture to the friend of the user if the determining module 502 is the friend of the user.
There are various implementations of the determining module 502, for example, the following two implementations are provided in the present embodiment:
optionally, the determining module 502 is configured to obtain a face album of a friend of the user; acquiring a face image of a friend of a user from the face album; carrying out face recognition comparison on the target face image and the face image; and if the target face image and the face image belong to the same person through comparison, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the determining module 502 is configured to obtain the head portrait of the friend of the user; carrying out face recognition comparison on the target face image and the head portrait; and if the target face image and the head portrait belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, an implementation example of the first sending module 503 is provided in this embodiment, and the implementation example is as follows:
for example, the sending module 503 is configured to send first prompt information to the friend of the user, where the first prompt information is used to prompt the friend of the user whether to take a picture; when a confirmation response corresponding to the first indication information is received, second prompt information is displayed to the user, and the second prompt information is used for prompting the user whether to allow the picture to be shared with friends of the user; and when a confirmation command corresponding to the second prompt message is detected, sending the picture to the friend of the user.
Optionally, the apparatus 500 further comprises:
a second obtaining module 504 configured to obtain a shared face album;
and a naming module 505 configured to name the unnamed face images in the shared face album according to the locally stored face album.
In the embodiment, whether a person to which a target face image belongs is a friend of a user is determined according to the target face image in a shot picture; and if the user is a friend of the user, sending the shot picture to the friend of the user. Therefore, when a picture is shot, whether the picture belongs to the friends of the user or not is immediately judged, and if yes, the picture is shared to the friends of the user, so that the sharing efficiency is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an apparatus 600 for sharing pictures according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an apparatus 600, enable the apparatus 600 to perform a method of sharing pictures, the method comprising:
acquiring a shot picture;
determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture;
and if the user is a friend of the user, sending the picture to the friend of the user.
Optionally, the determining, according to the target face image in the picture, whether the person to which the target face image belongs is a friend of the user includes:
acquiring a face photo album of a friend of the user;
acquiring a face image of a friend of the user from the face album;
carrying out face recognition comparison on the target face image and the face image;
and if the target face image and the face image belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the determining, according to the target face image in the picture, whether the person to which the target face image belongs is a friend of the user includes:
acquiring the head portrait of the friend of the user;
carrying out face recognition comparison on the target face image and the head portrait;
and if the target face image and the head portrait belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
Optionally, the sending the picture to the friend of the user includes:
sending first indication information to the friends of the user, wherein the first indication information is used for indicating whether the friends of the user need the shot pictures or not;
when a confirmation response corresponding to the first indication information is received, displaying second prompt information to the user, wherein the second prompt information is used for prompting whether the user allows the picture to be shared with friends of the user;
and when the confirmation command corresponding to the second prompt message is detected, sending the picture to the friend of the user.
Optionally, the method further includes:
acquiring a shared face album;
naming the unnamed face images in the shared face album according to the locally stored face album.
In the embodiment, whether a person to which a target face image belongs is a friend of a user is determined according to the target face image in a shot picture; and if the user is a friend of the user, sending the shot picture to the friend of the user. Therefore, when a picture is shot, whether the picture belongs to the friends of the user or not is immediately judged, and if yes, the picture is shared to the friends of the user, so that the sharing efficiency is improved.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for sharing pictures, the method comprising:
acquiring a shot picture;
determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture;
if the user is a friend of the user, sending the picture to the friend of the user;
the method further comprises the following steps:
obtaining a shared face album, the shared face album comprising: named face images, unnamed face images and configuration files, wherein the name of each named face image, the picture identification of the picture where the named face image is located and the position of the named face image in the picture are correspondingly stored in the configuration files;
carrying out face recognition comparison on the unnamed face image contained in the shared face album and the named face image contained in the locally stored face album;
if the unnamed face image and the named face image belong to the same person, naming the unnamed face image by using the name of the named face image;
and for each named face image in the shared face album, acquiring the name of the named face image, the picture identifier of the picture where the named face image is located and the position of the named face image in the picture from a corresponding configuration file, and adding the name of the named face image at the position where the face image is located in the picture corresponding to the picture identifier.
2. The method of claim 1, wherein the determining whether the person to which the target face image belongs is a friend of the user according to the target face image in the picture comprises:
acquiring a face photo album of a friend of the user;
acquiring a face image of a friend of the user from the face album;
carrying out face recognition comparison on the target face image and the face image;
and if the target face image and the face image belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
3. The method of claim 1, wherein the determining whether the person to which the target face image belongs is a friend of the user according to the target face image in the picture comprises:
acquiring the head portrait of the friend of the user;
carrying out face recognition comparison on the target face image and the head portrait;
and if the target face image and the head portrait belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
4. The method of any of claims 1 to 3, wherein said sending the picture to the user's buddy comprises:
sending first indication information to the friends of the user, wherein the first indication information is used for indicating whether the friends of the user need the shot pictures or not;
when a confirmation response corresponding to the first indication information is received, displaying second prompt information to the user, wherein the second prompt information is used for prompting whether the user allows the picture to be shared with friends of the user;
and when a confirmation command corresponding to the second prompt message is detected, sending the picture to the friend of the user.
5. An apparatus for sharing pictures, the apparatus comprising:
a first acquisition module configured to acquire a photographed picture;
the determining module is configured to determine whether a person to which the target face image belongs is a friend of the user according to the target face image in the picture;
a sending module configured to send the picture to a friend of the user if the determining module is the friend of the user;
the device further comprises:
a second obtaining module configured to obtain a shared face album, the shared face album including: named face images, unnamed face images and configuration files, wherein the name of each named face image, the picture identification of the picture where the named face image is located and the position of the named face image in the picture are correspondingly stored in the configuration files;
the naming module is configured to perform face recognition comparison on the unnamed face images included in the shared face album and the named face images included in the locally stored face album; if the unnamed face image and the named face image belong to the same person, naming the unnamed face image by using the name of the named face image; and for each named face image in the shared face album, acquiring the name of the named face image, the picture identifier of the picture where the named face image is located and the position of the named face image in the picture from a corresponding configuration file, and adding the name of the named face image at the position where the face image is located in the picture corresponding to the picture identifier.
6. The apparatus of claim 5,
the determining module is configured to acquire a face album of a friend of the user; acquiring a face image of a friend of the user from the face album; carrying out face recognition comparison on the target face image and the face image; and if the target face image and the face image belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
7. The apparatus of claim 5,
the determining module is configured to acquire the head portrait of the friend of the user; carrying out face recognition comparison on the target face image and the head portrait; and if the target face image and the head portrait belong to the same person, determining that the person to which the target face image belongs is a friend of the user.
8. The apparatus according to any of the claims 5 to 7,
the sending module is configured to send first prompt information to the friend of the user, wherein the first prompt information is used for prompting whether the friend of the user needs the shot picture or not; when a confirmation response corresponding to the first indication information is received, displaying second prompt information to the user, wherein the second prompt information is used for prompting whether the user allows the picture to be shared with friends of the user; and when a confirmation command corresponding to the second prompt message is detected, sending the picture to the friend of the user.
9. An apparatus for sharing pictures, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a shot picture;
determining whether the person to which the target face image belongs is a friend of the user or not according to the target face image in the picture;
if the user is a friend of the user, sending the picture to the friend of the user;
obtaining a shared face album, the shared face album comprising: named face images, unnamed face images and configuration files, wherein the name of each named face image, the picture identification of the picture where the named face image is located and the position of the named face image in the picture are correspondingly stored in the configuration files;
carrying out face recognition comparison on the unnamed face image contained in the shared face album and the named face image contained in the locally stored face album;
if the unnamed face image and the named face image belong to the same person, naming the unnamed face image by using the name of the named face image;
and for each named face image in the shared face album, acquiring the name of the named face image, the picture identifier of the picture where the named face image is located and the position of the named face image in the picture from a corresponding configuration file, and adding the name of the named face image at the position where the face image is located in the picture corresponding to the picture identifier.
10. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 4.
CN201710271998.2A 2017-04-24 2017-04-24 Method and device for sharing pictures and computer readable storage medium Active CN107169042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710271998.2A CN107169042B (en) 2017-04-24 2017-04-24 Method and device for sharing pictures and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710271998.2A CN107169042B (en) 2017-04-24 2017-04-24 Method and device for sharing pictures and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107169042A CN107169042A (en) 2017-09-15
CN107169042B true CN107169042B (en) 2021-01-26

Family

ID=59813302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710271998.2A Active CN107169042B (en) 2017-04-24 2017-04-24 Method and device for sharing pictures and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107169042B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110222567B (en) * 2019-04-30 2021-01-08 维沃移动通信有限公司 Image processing method and device
CN111901896A (en) * 2020-07-14 2020-11-06 维沃移动通信有限公司 Information sharing method, information sharing device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202173A (en) * 2010-03-23 2011-09-28 三星电子(中国)研发中心 Photo automatically naming method and device thereof
CN103414814A (en) * 2013-08-16 2013-11-27 北京小米科技有限责任公司 Picture processing method and device and terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160070809A1 (en) * 2005-04-08 2016-03-10 Marshall Feature Recognition Llc System and method for accessing electronic data via an image search engine
CN105872193A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Method and device for sharing wallpaper picture, and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202173A (en) * 2010-03-23 2011-09-28 三星电子(中国)研发中心 Photo automatically naming method and device thereof
CN103414814A (en) * 2013-08-16 2013-11-27 北京小米科技有限责任公司 Picture processing method and device and terminal device

Also Published As

Publication number Publication date
CN107169042A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
US10313288B2 (en) Photo sharing method and device
US9953212B2 (en) Method and apparatus for album display, and storage medium
CN107423386B (en) Method and device for generating electronic card
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN108173744B (en) Information processing method and device
US10313537B2 (en) Method, apparatus and medium for sharing photo
EP3026876B1 (en) Method for acquiring recommending information, terminal and server
RU2645282C2 (en) Method and device for calling via cloud-cards
US20170249513A1 (en) Picture acquiring method, apparatus, and storage medium
CN107454204B (en) User information labeling method and device
CN110061904B (en) Method, device and system for acquiring social information, electronic equipment and storage medium
WO2017219497A1 (en) Message generation method and apparatus
CN106777016B (en) Method and device for information recommendation based on instant messaging
CN114009003A (en) Image acquisition method, device, equipment and storage medium
CN108011990B (en) Contact management method and device
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107493366B (en) Address book information updating method and device and storage medium
CN104850643B (en) Picture comparison method and device
CN107169042B (en) Method and device for sharing pictures and computer readable storage medium
CN108027821B (en) Method and device for processing picture
CN107222576B (en) Photo album synchronization method and device
CN107229707B (en) Method and device for searching image
CN107239490B (en) Method and device for naming face image and computer readable storage medium
CN106506808B (en) Method and device for prompting communication message
CN106447747B (en) Image processing method and device

Legal Events

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