CN106649710A - Picture pushing method, device and mobile terminal - Google Patents

Picture pushing method, device and mobile terminal Download PDF

Info

Publication number
CN106649710A
CN106649710A CN201611187120.2A CN201611187120A CN106649710A CN 106649710 A CN106649710 A CN 106649710A CN 201611187120 A CN201611187120 A CN 201611187120A CN 106649710 A CN106649710 A CN 106649710A
Authority
CN
China
Prior art keywords
picture
face
gender
star
age
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.)
Pending
Application number
CN201611187120.2A
Other languages
Chinese (zh)
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 Anyun Century Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611187120.2A priority Critical patent/CN106649710A/en
Publication of CN106649710A publication Critical patent/CN106649710A/en
Pending legal-status Critical Current

Links

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/51Indexing; Data structures therefor; Storage structures
    • 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
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/178Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a picture pushing method, device and mobile terminal. The method comprises steps of acquiring feature data of a target human face according to a first picture, acquiring feature data of a celebrity face according to a second picture, comparing the feature data of the target human face and the feature data of the celebrity human to acquire similarity information of the target human face and the celebrity face, at least pushing one second picture to be a pushed picture according to the similarity information, and displaying the first picture and the pushed picture. The celebrity face in the pushed picture has the highest similarity to the target human face in the first picture. By the use of the embodiment, a celebrity face picture having the highest similarity to the target human face can be pushed, and use experience and interest can be enhanced.

Description

Picture selection method and device and mobile terminal
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a picture selecting method, a picture selecting device and a mobile terminal.
Background
With the increasing degree of intelligence of terminal devices, such as mobile phones, tablet computers, PDAs, and the like, intelligent terminals have become necessities in people's lives, and the intelligent terminals are changing people's life styles deeply through continuous innovation of software and hardware.
With the rise of various information propagation modes in modern society, more and more stars in various fields enter the visual field of people, and people enjoy cultural entertainment life brought by the stars and pay more and more attention to relevant information of the stars, for example, whether the self-growing phase is similar to the star or not is similar to which star, if the information can be automatically obtained through an intelligent terminal, the experience and interest of the intelligent terminal are undoubtedly increased. However, the existing intelligent terminal does not have the function.
Disclosure of Invention
The embodiment of the invention aims to solve the technical problem that: the picture selecting method and device and the mobile terminal are provided to increase the experience and interestingness of use.
To solve the above technical problem, according to an aspect of the embodiments of the present invention, there is provided a method for selecting a picture, including:
acquiring feature data of a target face according to the first picture;
obtaining feature data of the star face according to the second picture;
comparing the feature data of the target face with the feature data of the star face to obtain similarity information of the target face and the star face;
at least one second picture is selected as a selected picture according to the similarity information; the star face in the selected picture has the highest similarity with the target face in the first picture;
and displaying the first picture and the selected picture.
In another embodiment of the method according to the present invention, the obtaining feature data of the target face from the first picture includes:
acquiring feature data of a target face according to the first picture;
acquiring gender and/or age information of a target face in the first picture;
the obtaining of the feature data of the star face according to the second picture includes:
acquiring gender and/or age information of the star face in the second picture;
selecting the second picture according to the gender and/or age information; the gender and/or age of the star face in the selected second picture is matched with the gender and/or age of the target face in the first picture;
and obtaining the feature data of the star face according to the selected second picture.
In another embodiment of the above method according to the present invention, the selecting the second picture according to the gender and/or age information includes:
comparing the gender of the target face in the first picture with the gender of the star face in the second picture, and selecting the second picture of which the star face in the pictures and the target face have the same gender; or
Comparing the age of the target face in the first picture with the age of the star face in the second picture, and selecting the second picture with the age difference between the star face in the pictures and the target face within a preset value range; or
And comparing the gender and the age of the target face in the first picture with the gender and the age of the star face in the second picture respectively, and selecting the second picture in which the star face in the pictures and the target face have the same gender and the age difference is within a preset value range.
In another embodiment of the method according to the present invention, after the obtaining the gender and/or age information of the star face in the second picture, the method further includes:
and clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
In another embodiment based on the foregoing method of the present invention, when clustering the second pictures according to gender information of star faces in the second pictures to obtain a classification of the second pictures according to gender, the selecting the second pictures according to the gender and/or age information includes:
comparing the gender of the target face in the first picture with the gender of each classification of the second picture, and selecting the classification of the second picture with the same gender as the target face;
and acquiring the selected second picture in the classification of the second picture.
In another embodiment based on the foregoing method of the present invention, after the obtaining the second picture in the selected category of the second picture, the method further includes:
and according to the comparison between the age of the target face in the first picture and the obtained age of the star face in the second picture, further selecting the second picture of which the age difference between the star face in the picture and the target face is within a preset value range.
In another embodiment based on the foregoing method of the present invention, the clustering the second pictures according to the age information of the star face in the second pictures to obtain the classification of the second pictures according to age includes:
and clustering the second pictures according to a preset age interval according to the age information of the star face in the second pictures to obtain the classification of the second pictures according to the ages.
In another embodiment of the foregoing method according to the present invention, when the second pictures are clustered according to a predetermined age interval according to age information of a star face in the second pictures to obtain a classification of the second pictures according to age, the selecting the second pictures according to the gender and/or age information includes:
comparing the age of the target face in the first picture with the age intervals of all the classifications of the second picture, and selecting the classification of the second picture with the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
In another embodiment based on the foregoing method of the present invention, after the obtaining the second picture in the selected category of the second picture, the method further includes:
and further selecting a second picture with the same gender as the target face in the picture according to the comparison between the gender of the target face in the first picture and the gender of the acquired star face in the second picture.
In another embodiment based on the foregoing method of the present invention, the clustering the second pictures according to the gender and age information of the star face in the second pictures to obtain the classification of the second pictures according to gender and age includes:
and clustering the second pictures according to the gender and age information of the star face in the second pictures and a preset age interval to obtain the classification of the second pictures according to the gender and the age.
In another embodiment of the foregoing method according to the present invention, when the second pictures are clustered according to gender and a predetermined age interval according to gender and age information of a star face in the second pictures to obtain a classification of the second pictures according to gender and age, the selecting the second pictures according to the gender and/or age information includes:
comparing the gender and the age of the target face in the first picture with the gender and the age interval of each classification of the second picture respectively, and selecting the classification of the second picture which has the same gender as the target face and the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
In another embodiment based on the foregoing method of the present invention, the obtaining feature data of the target face according to the first picture further includes:
acquiring a first picture; the acquiring of the first picture comprises: acquiring a first picture from pictures stored in a photo album; or acquiring a first picture from the photo of the contact in the address book; or by taking a picture instantly with a camera to obtain the first picture.
In another embodiment based on the above method of the present invention, the obtaining gender and/or age information of the target face in the first picture includes:
and acquiring the gender and/or age information of the target face in the first picture according to the feature data of the target face.
In another embodiment of the method according to the present invention, when a first picture is obtained from a photo of a contact in an address book, the obtaining gender and/or age information of a target face in the first picture includes:
and acquiring the sex and/or age information of the target face in the first picture according to the information recorded in the address book.
In another embodiment of the foregoing method according to the present invention, the obtaining the feature data of the star face according to the second picture further includes:
acquiring a second picture; the acquiring of the second picture comprises: acquiring a second picture from pictures prestored in a local database; or acquiring a second picture from pictures uploaded by a user in the cloud database; or a second picture is taken from the network.
In another embodiment of the foregoing method according to the present invention, the acquiring gender and/or age information of the star face in the second picture includes:
and acquiring the gender and/or age information of the star face in the second picture according to information recorded on the network.
In another embodiment of the foregoing method according to the present invention, when obtaining a second picture from pictures pre-stored in a local database, the obtaining gender and/or age information of the star face in the second picture includes:
and acquiring the gender and/or age information of the star face in the second picture according to the information recorded in the local database.
In another embodiment of the foregoing method according to the present invention, the similarity information includes: a similarity score;
the selecting at least one second picture as the selected picture according to the similarity information includes:
according to the similarity score, sorting the second pictures according to the sequence of the similarity score from high to low;
selecting a predetermined number of the second pictures with the similarity scores ranked in front as the selected pictures.
In another embodiment of the above method according to the present invention, the displaying the first picture and the selected picture includes:
displaying a picture with the highest similarity score between the star face and the target face in the first picture and the selected picture;
detecting whether a query instruction is received;
if an inquiry instruction is received, displaying the next selected picture and the first picture according to the sequence of the similarity scores from high to low;
detecting whether the currently displayed selected picture is the last selected picture;
and if the currently displayed selected picture is the last selected picture, displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected picture.
In another embodiment based on the above method of the present invention, the displaying the first picture and the selected picture further includes:
and displaying the similarity scores of the target face and the star faces in the corresponding selected picture while displaying the first picture and the selected picture.
In another embodiment based on the above method of the present invention, the displaying the first picture and the selected picture further includes:
according to the similarity score of the target face and the star face in the corresponding selected image, a pre-stored canon sentence corresponding to the similarity score is obtained;
displaying the corresponding canycuring sentences while displaying the first picture and the selected picture.
In another embodiment based on the above method of the present invention, the displaying the first picture and the selected picture further includes:
acquiring the data of the stars in the selected picture according to the selected picture;
and displaying the star data in the corresponding selected picture while displaying the first picture and the selected picture.
In another embodiment of the foregoing method according to the present invention, the method further includes:
receiving a saving instruction;
and saving the displayed picture according to the saving instruction.
In another embodiment of the foregoing method according to the present invention, the method further includes: receiving a sharing instruction;
and sending the displayed picture to a preset address according to the sharing instruction.
According to another aspect of the embodiments of the present invention, there is provided a picture selecting apparatus, including:
the first feature data obtaining unit is used for obtaining feature data of a target face according to the first picture;
the second characteristic data obtaining unit is used for obtaining characteristic data of the star face according to the second picture;
the comparison unit is used for comparing the feature data of the target face with the feature data of the star face to obtain the similarity information of the target face and the star face;
the selecting unit is used for selecting at least one second picture as a selected picture according to the similarity information; the star face in the selected picture has the highest similarity with the target face in the first picture;
and the display unit is used for displaying the first picture and the selected picture.
In another embodiment of the above apparatus according to the present invention, the first feature data obtaining unit includes:
the first feature data acquisition module is used for acquiring feature data of a target face according to the first picture;
the first information acquisition module is used for acquiring the gender and/or age information of the target face in the first picture;
the second feature data obtaining unit includes:
the second information acquisition module is used for acquiring the gender and/or age information of the star face in the second picture;
the second picture selecting module is used for selecting the second picture according to the gender and/or age information; the gender and/or age of the star face in the selected second picture is matched with the gender and/or age of the target face in the first picture;
and the second characteristic data obtaining module is used for obtaining the characteristic data of the star face according to the selected second picture.
In another embodiment of the apparatus according to the present invention, the second picture selecting module is specifically configured to:
comparing the gender of the target face in the first picture with the gender of the star face in the second picture, and selecting the second picture of which the star face in the pictures and the target face have the same gender; or
Comparing the age of the target face in the first picture with the age of the star face in the second picture, and selecting the second picture with the age difference between the star face in the pictures and the target face within a preset value range; or
And comparing the gender and the age of the target face in the first picture with the gender and the age of the star face in the second picture respectively, and selecting the second picture in which the star face in the pictures and the target face have the same gender and the age difference is within a preset value range.
In another embodiment of the above apparatus according to the present invention, the second characteristic data obtaining unit further includes:
and the second picture clustering module is used for clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
In another embodiment based on the above apparatus of the present invention, when the second picture clustering module is specifically configured to cluster the second pictures according to gender information of a star face in the second pictures to obtain a classification of the second pictures according to gender, the second picture selecting module is specifically configured to:
comparing the gender of the target face in the first picture with the gender of each classification of the second picture, and selecting the classification of the second picture with the same gender as the target face;
and acquiring the selected second picture in the classification of the second picture.
In another embodiment of the above apparatus according to the present invention, the second picture selecting module is further specifically configured to further select a second picture in which an age difference between a star face in the picture and the target face is within a predetermined value range according to a comparison between an age of the target face in the first picture and an age of the star face in the second picture.
In another embodiment of the above apparatus according to the present invention, the second image clustering module is specifically configured to cluster the second images according to a predetermined age interval according to age information of a star face in the second images, so as to obtain a classification of the second images according to ages.
In another embodiment based on the above apparatus of the present invention, when the second picture clustering module is specifically configured to cluster the second pictures according to a predetermined age interval according to age information of a star face in the second pictures, and obtain a classification of the second pictures according to ages, the second picture selecting module is specifically configured to:
comparing the age of the target face in the first picture with the age intervals of all the classifications of the second picture, and selecting the classification of the second picture with the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
In another embodiment of the apparatus according to the present invention, the second image selecting module is further specifically configured to further select a second image in which the star face in the image and the target face have the same gender according to a comparison between the gender of the target face in the first image and the gender of the star face in the acquired second image.
In another embodiment of the above apparatus according to the present invention, the second picture clustering module is specifically configured to cluster the second pictures according to gender and a predetermined age interval according to gender and age information of a star face in the second pictures, so as to obtain a classification of the second pictures according to gender and age.
In another embodiment of the above apparatus according to the present invention, when the second picture clustering module is specifically configured to cluster the second pictures according to gender and age information of a star face in the second pictures and according to a gender and a predetermined age interval, and obtain a classification of the second pictures according to gender and age, the second picture selecting module is specifically configured to:
comparing the gender and the age of the target face in the first picture with the gender and the age interval of each classification of the second picture respectively, and selecting the classification of the second picture which has the same gender as the target face and the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
In another embodiment of the above apparatus according to the present invention, the first feature data obtaining unit further includes:
the first picture acquisition module is used for acquiring a first picture; the first picture acquisition module is specifically configured to: acquiring a first picture from pictures stored in a photo album; or acquiring a first picture from the photo of the contact in the address book; or by taking a picture instantly with a camera to obtain the first picture.
In another embodiment of the above apparatus according to the present invention, the first information obtaining module is specifically configured to obtain, according to the feature data of the target face, gender and/or age information of the target face in the first picture.
In another embodiment of the above apparatus according to the present invention, when the first image obtaining module obtains the first image from the address book, the first information obtaining module is specifically configured to obtain gender and/or age information of the target face in the first image according to information recorded in the address book.
In another embodiment of the above apparatus according to the present invention, the second characteristic data obtaining unit further includes:
the second picture acquisition module is used for acquiring a second picture; the second picture acquisition module is specifically configured to: acquiring a second picture from pictures prestored in a local database; or acquiring a second picture from pictures uploaded by a user in the cloud database; or a second picture is taken from the network.
In another embodiment of the above apparatus according to the present invention, the second information obtaining module is specifically configured to obtain gender and/or age information of the star face in the second picture according to information recorded on a network.
In another embodiment of the above apparatus according to the present invention, when the second image obtaining module obtains a second image from images pre-stored in a local database, the second information obtaining module is specifically configured to obtain gender and/or age information of a star face in the second image according to information recorded in the local database.
In another embodiment of the above apparatus according to the present invention, the similarity information includes: a similarity score;
the selecting unit comprises:
the sorting module is used for sorting the second pictures according to the similarity scores and the sequence from high to low of the similarity scores;
and the selecting module is used for selecting the second pictures with the similarity scores ranked in the front in a preset number as the selected pictures.
In another embodiment of the above apparatus according to the present invention, the display unit includes:
the first detection module is used for detecting whether a query instruction is received or not;
the second detection module is used for detecting whether the currently displayed selected picture is the last selected picture;
a display module, configured to display one of the first picture and the selected picture in which the star face and the target face have the highest similarity score; responding to a received query instruction according to a detection result of the first detection module, and displaying a next selected picture and the first picture according to the sequence of the similarity score from high to low; and according to the detection result of the second detection module, responding to the currently displayed selected picture as the last selected picture, and displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected pictures.
In another embodiment of the above apparatus according to the present invention, the display unit is further configured to display the similarity scores of the target face and the star faces in the corresponding selected picture while displaying the first picture and the selected picture.
In another embodiment of the above apparatus according to the present invention, the display unit further includes:
a Kan sentence acquisition module, configured to acquire a pre-stored Kan sentence corresponding to the similarity score according to the similarity score between the target face and the corresponding star face in the selected image;
the display module is further used for displaying the corresponding canon sentences while displaying the first picture and the selected picture.
In another embodiment of the above apparatus according to the present invention, the display unit further includes:
a star data acquisition module, configured to acquire star data in the selected picture according to the selected picture;
the display module is further used for displaying the corresponding star data in the selected picture while displaying the first picture and the selected picture.
In another embodiment of the above apparatus according to the present invention, further comprising:
a receiving unit for receiving a save instruction;
and the storage unit is used for storing the displayed picture according to the storage instruction.
In another embodiment of the above apparatus according to the present invention, the receiving unit is further configured to receive a sharing instruction;
the picture selecting device further comprises:
and the execution unit is also used for sending the displayed picture to a preset address according to the sharing instruction.
According to still another aspect of the embodiments of the present invention, there is provided a mobile terminal including: a processor and a memory; wherein,
the memory is used for storing a program of the picture selecting method of any one of the above embodiments;
the processor is used for executing the program of the picture deduction method stored in the memory.
Based on the image selecting method, the image selecting device and the mobile terminal provided by the embodiment of the invention, the similarity information between the target face and the star face is obtained by comparing the feature data of the target face in the first image with the feature data of the star face in the second image, and the image of the star face similar to the target face in the first image is selected according to the similarity information, so that the experience and the interestingness of the user can be increased, the cultural entertainment life of people is enriched, and more fun is brought to the life of people.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
The invention will be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 is a flowchart of an embodiment of a method for selecting a wafer according to the present invention.
FIG. 2 is a flowchart of another embodiment of a method for selecting a wafer according to an embodiment of the present invention.
FIG. 3 is a flowchart of another embodiment of a method for selecting a wafer according to an embodiment of the present invention.
FIG. 4 is a flowchart of another embodiment of a method for selecting a wafer according to the present invention.
Fig. 5 is a block diagram of an embodiment of the device for pushing and selecting picture pieces in the embodiment of the invention.
Fig. 6 is a block diagram of another embodiment of the device for pushing and selecting picture pieces in the embodiment of the invention.
Fig. 7 is a block diagram of another embodiment of the device for pushing and selecting picture pieces in the embodiment of the invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the device embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
FIG. 1 is a flowchart of an embodiment of a method for selecting a wafer according to the present invention. As shown in fig. 1, the method for selecting a picture according to this embodiment includes:
and S102, obtaining the feature data of the target face according to the first picture.
In a specific implementation, the feature data of the target face may be a feature vector of the face obtained by extracting features of the target face in the first picture, where the features of the face include, but are not limited to, a face shape and shapes, positions, and the like of five sense organs. The specific feature extraction method may adopt a face feature extraction method commonly used in the prior art, such as a statistical-based method, a neural network-based method, and the like.
Wherein operation S102 further includes: and acquiring a first picture. In specific implementation, the method for acquiring the first picture includes, but is not limited to, acquiring the first picture from pictures already stored in a photo album, or acquiring the first picture from pictures of contacts in an address book, or acquiring the first picture by taking pictures instantly through a camera. In practical application, a plurality of modes for acquiring the first picture can be provided by setting a corresponding operation interface for selection of a user.
And S104, obtaining the feature data of the star face according to the second picture.
In a specific implementation, the feature data of the star face may be a feature vector of a human face obtained by extracting features of the star face in the second picture, where the features of the human face include, but are not limited to, a face shape and shapes, positions, and the like of five sense organs. The specific feature extraction method may adopt a face feature extraction method commonly used in the prior art, such as a statistical-based method, a neural network-based method, and the like.
Wherein operation S104 further includes: and acquiring a second picture. In a specific implementation, the method for obtaining the second picture includes, but is not limited to, obtaining the second picture from pictures pre-stored in a local database, or obtaining the second picture from pictures uploaded by a user in a cloud database, or obtaining the second picture from a network. In practical application, a plurality of modes for acquiring the second picture can be provided by setting a corresponding operation interface for selection of a user. For the condition that the second picture is stored in the local database or the cloud database in advance, the characteristic data of the star face can be extracted in advance and stored in the local database or the cloud database, so that the time for operating the second picture when the picture is selected is saved, and the response speed is improved.
And S106, comparing the feature data of the target face with the feature data of the star face to obtain the similarity information of the target face and the star face.
In specific implementation, the similarity information between the target face and the star face includes: the similarity score, wherein the method for obtaining the similarity score may adopt a face similarity calculation method commonly used in the prior art, for example, the distance between the feature vectors of the target face and the star face may be obtained by calculating the distance between the feature vectors, and then the distance between the feature vectors is converted into the similarity score.
S108, at least one second picture is selected as a selected picture according to the similarity information; and the star face in the selected picture has the highest similarity with the target face in the first picture.
In a specific implementation, in operation S108, according to the similarity scores, the second pictures may be sorted in the order from high to low, and then a predetermined number of second pictures with similarity scores ranked in front may be selected as the selected pictures.
In practical application, different serial numbers can be marked on the second picture according to the different similarity scores of the second picture and the first picture, and the second picture with the serial number in front is selected as the selected picture. The number of the selected pictures can be determined by comprehensively considering the calculation amount, the storage space, the requirement of the user, the interestingness and the like.
And S110, displaying the first picture and the selected picture.
In one specific example, operation S110 displays the first picture and all the pushed-out pictures at the same time.
In another specific example, operation S110 displays only one of the first picture and the selected picture in which the star face has the highest similarity score with the target face, and for the other selected pictures, the other selected pictures may be sequentially displayed according to an operation instruction of the user. Specifically, operation S110 further includes: detecting whether a query instruction is received or not, and if the query instruction is received, displaying the next selected picture and the first picture according to the sequence of similarity scores from high to low; detecting whether the currently displayed selected picture is the last selected picture; if the currently displayed selected picture is the last selected picture, displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected pictures; if the currently displayed selected picture is not the last selected picture, the execution is continued from the detection of whether the query instruction is received, and the display of the first picture and all the selected pictures is realized in a circulating manner.
Based on the image selecting method provided by the embodiment of the invention, the similarity information between the target face and the star face is obtained by comparing the feature data of the target face in the first image with the feature data of the star face in the second image, and the image of the star face similar to the target face in the first image is selected according to the similarity information, so that the experience and interest of users can be increased, the cultural entertainment life of people is enriched, and more fun is brought to the life of people.
FIG. 2 is a flowchart of another embodiment of a method for selecting a wafer according to an embodiment of the present invention. As shown in fig. 2, compared with the embodiment shown in fig. 1, in the image selecting method of this embodiment, in operation 102, obtaining feature data of a target face according to a first image includes:
and S202, obtaining feature data of the target face according to the first picture.
And S204, acquiring the gender and/or age information of the target face in the first picture.
In a specific implementation, in operation S204, the gender and/or age information of the target face in the first picture is obtained according to the feature data of the target face, that is, the gender and/or age information of the target face in the first picture is obtained by recognizing the feature data of the target face obtained from the first picture, where the specific recognition method may be a gender and/or age recognition method commonly used in the prior art, for example, a method using a neural network. When the first picture is obtained from the photo of the contact in the address book, operation 204 may also be to obtain the gender and/or age information of the target face in the first picture directly according to the information recorded in the address book while obtaining the first picture from the address book.
Further, in the method for selecting a picture according to this embodiment, in operation 104, obtaining feature data of a star face according to the second picture includes:
and S206, acquiring the gender and/or age information of the star face in the second picture.
In a specific implementation, in operation S206, the gender and/or age information of the star face in the second picture may be obtained according to information recorded on the network. Specifically, when the second picture is obtained from a picture pre-stored in the local database or a picture uploaded by the user in the cloud database, operation S206 may obtain, according to information recorded in the local database or the cloud database, such as a name of a star, gender and/or age information of the star face in the second picture from the network; when the second picture is obtained from the network, operation S206 may be to obtain the gender and/or age information of the star face in the second picture from the network at the same time of obtaining the second picture from the network. When the second picture is obtained from a picture pre-stored in the local database, operation S206 may also be to obtain the gender and/or age information of the face of the star in the second picture directly according to the information recorded in the local database, for example, the gender and/or age of the star, while obtaining the second picture from the local database.
S208, selecting a second picture according to the gender and/or age information; and matching the gender and/or the age of the star face in the selected second picture with the gender and/or the age of the target face in the first picture.
In a specific implementation, the operation S208 includes three cases, that is, a first case, comparing the gender of the target face in the first picture with the gender of the star face in the second picture, and selecting the second picture in which the star face in the picture and the target face have the same gender, for example, the gender of the target face is female, and only the second picture with the female star face is selected; in the second case, according to the comparison between the age of the target face in the first picture and the age of the star face in the second picture, selecting the second picture in which the difference between the ages of the star face and the target face in the pictures is within a predetermined value range, for example, the age of the target face is 30 years, and the predetermined value of the difference between the ages is 10 years, and then only selecting the second picture in which the age of the star face in the pictures is 20 to 40 years; in the third case, according to the comparison between the gender and the age of the target face in the first picture and the gender and the age of the star face in the second picture, the second picture is selected, wherein the star face in the second picture has the same gender as the target face and the age difference is within a predetermined value range, for example, the gender of the target face is female, the age is 30 years, and the predetermined value of the age difference is 10 years, then only the second picture of the female with the age of the star face in the second picture being 20 to 40 years is selected.
And S210, obtaining the feature data of the star face according to the selected second picture.
FIG. 3 is a flowchart of another embodiment of a method for selecting a wafer according to an embodiment of the present invention. As shown in fig. 3, compared with the embodiment shown in fig. 1, in the image selecting method of this embodiment, in operation 102, obtaining feature data of a target face according to a first image includes:
and S302, obtaining feature data of the target face according to the first picture.
S304, acquiring the gender and/or age information of the target face in the first picture.
In a specific implementation, in operation S304, the gender and/or age information of the target face in the first picture is obtained according to the feature data of the target face, that is, the gender and/or age information of the target face in the first picture is obtained by recognizing the feature data of the target face obtained from the first picture, where the specific recognition method may be a gender and/or age recognition method commonly used in the prior art, for example, a method using a neural network. When the first picture is obtained from the photo of the contact in the address book, operation 304 may also be to obtain the gender and/or age information of the target face in the first picture directly according to the information recorded in the address book while obtaining the first picture from the address book.
Further, in the method for selecting a picture according to this embodiment, in operation 104, obtaining feature data of a star face according to the second picture further includes:
and S306, acquiring the gender and/or age information of the star face in the second picture.
In a specific implementation, in operation S306, the gender and/or age information of the star face in the second picture may be obtained according to information recorded on the network. Specifically, when the second picture is obtained from a picture pre-stored in the local database or a picture uploaded by the user in the cloud database, operation S306 may obtain, according to information recorded in the local database or the cloud database, such as a name of a star, gender and/or age information of the star face in the second picture from the network; when the second picture is obtained from the network, operation S306 may be obtaining the gender and/or age information of the star face in the second picture from the network at the same time of obtaining the second picture from the network. When the second picture is obtained from a picture pre-stored in the local database, operation S306 may also be to obtain the gender and/or age information of the face of the star in the second picture directly according to the information recorded in the local database, for example, the gender and/or age of the star, while obtaining the second picture from the local database.
And S308, clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
In a specific implementation, the method includes three cases, that is, a first case, clustering second pictures according to gender information of a star face in the second pictures to obtain gender classification of the second pictures, for example, clustering the second pictures into two classifications of male and female according to gender according to the gender information of the star face in the second pictures; in the second case, the second pictures are clustered according to the age information of the star face in the second picture, so as to obtain the classification of the second pictures according to the age, specifically, the second pictures are clustered according to the age information of the star face in the second picture, so as to obtain the classification of the second pictures according to the age by clustering the second pictures according to a predetermined age interval according to the age information of the star face in the second picture, for example, the second pictures are clustered according to the age information of the star face in the second picture by using 10 years as an age interval, so as to obtain 7 second pictures classified according to 1 year to 10 years, 11 years to 20 years, 21 years to 30 years, 31 years to 40 years, 41 to 50 years, 51 to 60 years and 61 to 70 years; in a third case, the second pictures are clustered according to the gender and age information of the star face in the second picture, so as to obtain classifications of the second pictures according to gender and age, specifically, the second pictures are clustered according to the gender and age information of the star face in the second picture, so as to obtain classifications of the second pictures according to gender and age according to the gender and age information of the star face in the second picture, for example, the second pictures are clustered into one age cluster interval according to gender and 10 years according to the gender and age information of the star face in the second picture, so as to obtain classifications of 14 second pictures of males and females ranging from 1 year to 10 years, from 11 years to 20 years, from 21 years to 30 years, from 31 years to 40 years, from 41 to 50 years, from 51 years to 60 years, and from 61 years to 70 years.
And S310, selecting a second picture according to the gender and/or age information.
And matching the gender and/or the age of the star face in the selected second picture with the gender and/or the age of the target face in the first picture.
In a specific implementation, when the second pictures are clustered according to the gender information of the star face in the second picture in operation S308, and the second pictures are classified according to the gender, operation S310 may compare the gender of the target face in the first picture with the gender of each classification of the second pictures, select a classification of the second pictures having the same gender as the target face, and obtain the second picture in the selected classification of the second pictures as the selected second picture. For example, when the second image is classified into two categories, namely male and female, according to the gender of the target face, the second image can be selected as the category of the female, and the second image in the category can be obtained as the selected second image. In operation S310, after the second picture in the category of the selected second picture is obtained, the second picture in which the age difference between the star face in the picture and the target face is within the predetermined value range is further selected as the finally selected second picture according to the comparison between the age of the target face in the first picture and the age of the star face in the obtained second picture. For example, after the second picture is obtained as the second picture in the category of women, the second picture of women whose age is 20 years to 40 years of the star face in the pictures may be selected as the finally selected second picture according to the age of the target face being 30 years and the predetermined value of the age difference being 10 years.
In a specific implementation, when the operation S308 is to cluster the second pictures according to the age information of the star face in the second picture and according to the predetermined age interval, and obtain the classification of the second pictures according to the age, the operation S310 may compare the age of the target face in the first picture with the age intervals of the classifications of the second pictures, select a classification of the second pictures whose minimum age difference from the target face is within a predetermined value range, and obtain the second picture in the selected classification of the second pictures as the selected second picture. For example, when the second pictures are classified into 7 groups according to an age interval of 10 years, 4 second pictures of 11 to 20 years, 21 to 30 years, 31 to 40 years, and 41 to 50 years may be selected according to the classification that the age of the target face is 30 years and the predetermined value of the age difference is 15 years, and the second pictures in the classifications are acquired as the selected second pictures. Operation S310 may also be performed after the second picture in the category of the selected second picture is acquired, and according to a comparison between the gender of the target face in the first picture and the gender of the star face in the acquired second picture, a second picture in which the star face in the pictures and the target face have the same gender is further selected as the finally selected second picture. For example, after acquiring the second pictures in the category of 4 second pictures of 11 years old to 20 years old, 21 years old to 30 years old, 31 years old to 40 years old, and 41 years old to 50 years old, the second pictures with the star face of the female may be selected as the finally selected second pictures according to the gender of the target face.
In a specific implementation, when the operation S308 is to cluster the second pictures according to the gender and the predetermined age interval according to the gender and the age information of the star face in the second picture, and obtain the classification of the second pictures according to the gender and the age, the operation S310 may compare the gender and the age of the target face in the first picture with the gender and the age interval of each classification of the second picture, and select the classification of the second picture having the same gender as the target face and the minimum age difference from the target face within a predetermined value range. For example, when the second pictures are classified into 14 groups according to male and female and 10-year-old clustering, the second pictures of 4 groups of gender-women from 11 to 20, 21 to 30, 31 to 40, and 41 to 50 may be selected as the selected second pictures according to the classification that the gender of the target face is female, the age is 30, and the predetermined value of the age difference is 15.
And S312, obtaining the feature data of the star face according to the selected second picture.
FIG. 4 is a flowchart of another embodiment of a method for selecting a wafer according to the present invention. As shown in fig. 4, compared with the embodiments shown in fig. 1, fig. 2 and fig. 3, in the method for selecting a picture according to this embodiment, operation 110 displays the first picture and the selected picture, and further includes: and displaying the similarity score of the corresponding target face and the star face while displaying the first picture and the selected picture.
Further, the operation 110 of the method for selecting a picture according to the above embodiments of the present invention displays the first picture and the selected picture, and may further include: according to the similarity score of the target face and the star face in the corresponding selected picture, a pre-stored canon sentence corresponding to the similarity score is obtained; and displaying the corresponding canon sentences while displaying the first picture and the selected picture.
In specific implementation, the canon sentences corresponding to different similarity scoring regions can be stored in advance, after the selected image is determined, the similarity scoring region where the similarity score corresponding to the selected image is located can be determined according to the similarity score corresponding to the selected image, the canon sentences corresponding to the similarity scoring region are obtained according to the determined similarity scoring region, and the obtained canon sentences are displayed. These canon sentences are, for example, goddess, potential stocks, mince meat, etc.
Further, the operation 110 of the method for selecting a picture according to the above embodiments of the present invention displays the first picture and the selected picture, and may further include: acquiring the data of the stars in the selected picture according to the selected picture; and displaying the star data in the corresponding selected picture while displaying the first picture and the selected picture.
In a specific implementation, when the second picture is obtained from a picture pre-stored in a local database or a picture uploaded by a user in a cloud database, star data corresponding to a star face in the second picture can be pre-stored in the local database or the cloud database, and after the selected picture is determined, the star data corresponding to the star face in the selected picture can be obtained from the local database or the cloud database according to the selected picture, and the obtained star data is displayed; when the star data corresponding to the star face in the second picture is not stored in the local database or the cloud database in advance, the star data corresponding to the star face in the deduced picture is acquired from the network according to information recorded in the local database or the cloud database, such as the name of the star, after the deduced picture is determined, and the acquired star data is displayed. When the second picture is obtained from the network, the address for obtaining the second picture may be recorded when the second picture is obtained from the network, and after the selected picture is determined, the star data corresponding to the star face in the selected picture is obtained from the recorded corresponding address or the associated address, and the obtained star data is displayed.
The method for selecting a picture according to the above embodiments of the present invention may further provide a function for a user to save the displayed picture including the first picture and the selected picture by setting a corresponding operation interface. Specifically, the method may include: receiving a saving instruction; and saving the displayed picture according to the saving instruction, wherein the displayed picture can be saved in a photo album.
The method for selecting a picture according to the embodiments of the present invention may further provide a function for a user to share the displayed picture including the first picture and the selected picture by setting a corresponding operation interface. Specifically, the method may include: receiving a sharing instruction; and sending the displayed picture to a preset address according to the sharing instruction, and sharing the displayed picture with the friend.
Fig. 5 is a block diagram of an embodiment of the device for pushing and selecting picture pieces in the embodiment of the invention. As shown in fig. 5, the picture selecting apparatus of this embodiment includes: the device comprises a first characteristic data obtaining unit, a second characteristic data obtaining unit, a comparing unit, a selecting unit and a display unit. Wherein,
and the first characteristic data obtaining unit is used for obtaining the characteristic data of the target face according to the first picture.
In a specific implementation, the feature data of the target face may be a feature vector of the face obtained by extracting features of the target face in the first picture, where the features of the face include, but are not limited to, a face shape and shapes, positions, and the like of five sense organs. The specific feature extraction method may adopt a face feature extraction method commonly used in the prior art, such as a statistical-based method, a neural network-based method, and the like.
Wherein the first feature data obtaining unit further includes: the first picture acquisition module is used for acquiring a first picture. In a specific implementation, the first picture obtaining module is specifically configured to: the first picture is obtained from the pictures stored in the photo album, or the first picture is obtained from the pictures of the contacts in the address book, or the first picture is obtained by instantly taking the pictures through a camera. In practical application, a plurality of modes for acquiring the first picture can be provided by setting a corresponding operation interface for selection of a user.
And the second characteristic data obtaining unit is used for obtaining the characteristic data of the star face according to the second picture.
In a specific implementation, the feature data of the star face may be a feature vector of a human face obtained by extracting features of the star face in the second picture, where the features of the human face include, but are not limited to, a face shape and shapes, positions, and the like of five sense organs. The specific feature extraction method may adopt a face feature extraction method commonly used in the prior art, such as a statistical-based method, a neural network-based method, and the like.
Wherein operating the second feature data obtaining unit further includes: and the second picture acquisition module is used for acquiring a second picture. In a specific implementation, the second picture obtaining module is specifically configured to obtain the second picture from pictures pre-stored in the local database, or obtain the second picture from pictures uploaded by a user in the cloud database, or obtain the second picture from a network. In practical application, a plurality of modes for acquiring the second picture can be provided by setting a corresponding operation interface for selection of a user. For the condition that the second picture is stored in the local database or the cloud database in advance, the characteristic data of the star face can be extracted in advance and stored in the local database or the cloud database, so that the time for operating the second picture when the picture is selected is saved, and the response speed is improved.
And the comparison unit is used for comparing the feature data of the target face with the feature data of the star face to obtain the similarity information of the target face and the star face.
In specific implementation, the similarity information between the target face and the star face includes: the similarity score, wherein the method for obtaining the similarity score may adopt a face similarity calculation method commonly used in the prior art, for example, the distance between the feature vectors of the target face and the star face may be obtained by calculating the distance between the feature vectors, and then the distance between the feature vectors is converted into the similarity score.
And the pushing unit is used for pushing at least one second picture as the pushed picture according to the similarity information.
And the star face in the selected picture has the highest similarity with the target face in the first picture.
In a specific implementation, the selecting unit includes: the sorting module is used for sorting the second pictures according to the similarity scores and the sequence from high to low of the similarity scores; and the selecting module is used for selecting a predetermined number of second pictures with the similarity scores ranked in front as the selected pictures.
In practical application, different serial numbers can be marked on the second picture according to the different similarity scores of the second picture and the first picture, and the second picture with the serial number in front is selected as the selected picture. The number of the selected pictures can be determined by comprehensively considering the calculation amount, the storage space, the requirement of the user, the interestingness and the like.
And the display unit is used for displaying the first picture and the selected picture.
In a specific example, the display unit simultaneously displays the first picture and all the selected pictures.
In another specific example, the display unit displays only one of the first picture and the selected picture in which the star face has the highest similarity score with the target face, and the other selected pictures may be sequentially displayed according to an operation instruction of the user. Specifically, the display unit further includes: the first detection module is used for detecting whether a query instruction is received or not; the second detection module is used for detecting whether the currently displayed selected picture is the last selected picture; the display module is used for displaying the first picture and one picture with the highest similarity score between the star face and the target face in the selected picture; responding to a received query instruction according to a detection result of the first detection module, and displaying a next selected picture and the first picture according to the sequence of similarity scores from high to low; and responding to the currently displayed selected picture as the last selected picture according to the detection result of the second detection module, and displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected pictures, so that the first picture and all the selected pictures are displayed in a circulating manner.
Based on the image selecting device provided by the embodiment of the invention, the similarity information between the target face and the star face is obtained by comparing the feature data of the target face in the first image with the feature data of the star face in the second image, and the image of the star face similar to the target face in the first image is selected according to the similarity information, so that the experience and interest of users can be increased, the cultural entertainment life of people is enriched, and more fun is brought to the life of people.
Fig. 6 is a block diagram of another embodiment of the device for pushing and selecting picture pieces in the embodiment of the invention. As shown in fig. 6, in the picture push-select apparatus of this embodiment, compared with the embodiment shown in fig. 5, the first feature data obtaining unit includes:
and the first characteristic data acquisition module is used for acquiring the characteristic data of the target face according to the first picture.
And the first information acquisition module is used for acquiring the gender and/or age information of the target face in the first picture.
In a specific implementation, the first information obtaining module may obtain gender and/or age information of the target face in the first picture according to the feature data of the target face, that is, the gender and/or age information of the target face in the first picture is obtained by recognizing the feature data of the target face obtained from the first picture, where the specific recognition method may be a gender and/or age recognition method commonly used in the prior art, for example, a method using a neural network. When the first picture is obtained from the photo of the contact in the address book, the first information obtaining module may also obtain the gender and/or age information of the target face in the first picture directly according to the information recorded in the address book while the first picture obtaining module obtains the first picture from the address book.
Further, in the picture sorting apparatus of this embodiment, the second feature data obtaining unit includes:
and the second information acquisition module is used for acquiring the gender and/or age information of the star face in the second picture.
In a specific implementation, the second information obtaining module may obtain gender and/or age information of the star face in the second picture according to information recorded on the network. Specifically, when the second picture is obtained from a picture pre-stored in the local database or a picture uploaded by a user in the cloud database, the second information obtaining module may obtain, according to information recorded in the local database or the cloud database, such as a name of a star, gender and/or age information of a star face in the second picture from the network; when the second picture is obtained from the network, the second information obtaining module may obtain the gender and/or age information of the star face in the second picture from the network at the same time of obtaining the second picture from the network. When the second picture is obtained from a picture pre-stored in the local database, the second information obtaining module may also obtain the gender and/or age information of the star face in the second picture directly according to the information recorded in the local database, for example, the gender and/or age of the star, while the second picture obtaining module obtains the second picture from the local database.
And the second picture selecting module is used for selecting a second picture according to the gender and/or age information.
And matching the gender and/or the age of the star face in the selected second picture with the gender and/or the age of the target face in the first picture.
In a specific implementation, the second picture selecting module selects the second picture according to the gender and/or age information, wherein the second picture specifically includes three conditions, namely a first condition, compares the gender of the target face in the first picture with the gender of the star face in the second picture, and selects the second picture in which the star face in the picture and the target face have the same gender, for example, the gender of the target face is female, and only selects the second picture with the female star face; in the second case, according to the comparison between the age of the target face in the first picture and the age of the star face in the second picture, selecting the second picture in which the difference between the ages of the star face and the target face in the pictures is within a predetermined value range, for example, the age of the target face is 30 years, and the predetermined value of the difference between the ages is 10 years, and then only selecting the second picture in which the age of the star face in the pictures is 20 to 40 years; in the third case, according to the comparison between the gender and the age of the target face in the first picture and the gender and the age of the star face in the second picture, the second picture is selected, wherein the star face in the second picture has the same gender as the target face and the age difference is within a predetermined value range, for example, the gender of the target face is female, the age is 30 years, and the predetermined value of the age difference is 10 years, then only the second picture of the female with the age of the star face in the second picture being 20 to 40 years is selected.
And the second characteristic data obtaining module is used for obtaining the characteristic data of the star face according to the selected second picture.
Fig. 7 is a block diagram of another embodiment of the device for pushing and selecting picture pieces in the embodiment of the invention. As shown in fig. 7, compared with the embodiment shown in fig. 7, in the image selecting apparatus of this embodiment, the first feature data obtaining module is configured to obtain feature data of the target face according to the first image.
And the first information acquisition module is used for acquiring the gender and/or age information of the target face in the first picture.
In a specific implementation, the first information obtaining module may obtain gender and/or age information of the target face in the first picture according to the feature data of the target face, that is, the gender and/or age information of the target face in the first picture is obtained by recognizing the feature data of the target face obtained from the first picture, where the specific recognition method may be a gender and/or age recognition method commonly used in the prior art, for example, a method using a neural network. When the first picture is obtained from the photo of the contact in the address book, the first information obtaining module may also obtain the gender and/or age information of the target face in the first picture directly according to the information recorded in the address book while the first picture obtaining module obtains the first picture from the address book.
Further, in the picture sorting apparatus of this embodiment, the second feature data obtaining unit includes:
and the second information acquisition module is used for acquiring the gender and/or age information of the star face in the second picture.
In a specific implementation, the second information obtaining module may obtain gender and/or age information of the star face in the second picture according to information recorded on the network. Specifically, when the second picture is obtained from a picture pre-stored in the local database or a picture uploaded by a user in the cloud database, the second information obtaining module may obtain, according to information recorded in the local database or the cloud database, such as a name of a star, gender and/or age information of a star face in the second picture from the network; when the second picture is obtained from the network, the second information obtaining module may obtain the gender and/or age information of the star face in the second picture from the network at the same time of obtaining the second picture from the network. When the second picture is obtained from a picture pre-stored in the local database, the second information obtaining module may also obtain the gender and/or age information of the star face in the second picture directly according to the information recorded in the local database, for example, the gender and/or age of the star, while the second picture obtaining module obtains the second picture from the local database.
And the second picture clustering module is used for clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
In a specific implementation, the second picture clustering module clusters the second picture according to the gender and/or age information of the star face in the second picture, namely the first situation, clusters the second picture according to the gender information of the star face in the second picture to obtain gender classification of the second picture, for example, clustering the second picture into male and female classifications according to the gender information of the star face in the second picture; in the second case, the second pictures are clustered according to the age information of the star face in the second picture, so as to obtain the classification of the second pictures according to the age, specifically, the second pictures are clustered according to the age information of the star face in the second picture, so as to obtain the classification of the second pictures according to the age by clustering the second pictures according to a predetermined age interval according to the age information of the star face in the second picture, for example, the second pictures are clustered according to the age information of the star face in the second picture by using 10 years as an age interval, so as to obtain 7 second pictures classified according to 1 year to 10 years, 11 years to 20 years, 21 years to 30 years, 31 years to 40 years, 41 to 50 years, 51 to 60 years and 61 to 70 years; in a third case, the second pictures are clustered according to the gender and age information of the star face in the second picture, so as to obtain classifications of the second pictures according to gender and age, specifically, the second pictures are clustered according to the gender and age information of the star face in the second picture, so as to obtain classifications of the second pictures according to gender and age according to the gender and age information of the star face in the second picture, for example, the second pictures are clustered into one age cluster interval according to gender and 10 years according to the gender and age information of the star face in the second picture, so as to obtain classifications of 14 second pictures of males and females ranging from 1 year to 10 years, from 11 years to 20 years, from 21 years to 30 years, from 31 years to 40 years, from 41 to 50 years, from 51 years to 60 years, and from 61 years to 70 years.
And the second picture selecting module is used for selecting a second picture according to the gender and/or age information.
And matching the gender and/or the age of the star face in the selected second picture with the gender and/or the age of the target face in the first picture.
In a specific implementation, when the second image clustering module clusters the second images according to the gender information of the star face in the second images to obtain the gender classification of the second images, the second image selection module may compare the gender of the target face in the first image with the gender of each classification of the second images, select the classification of the second images having the same gender as the target face, and obtain the second image in the selected classification of the second images as the selected second image. For example, when the second image is classified into two categories, namely male and female, according to the gender of the target face, the second image can be selected as the category of the female, and the second image in the category can be obtained as the selected second image. The second picture selecting module may also compare the age of the target face in the first picture with the age of the star face in the obtained second picture after the second picture in the category of the selected second picture is obtained, and further select the second picture in which the age difference between the star face in the picture and the target face is within the predetermined value range as the finally selected second picture. For example, after the second picture is obtained as the second picture in the category of women, the second picture of women whose age is 20 years to 40 years of the star face in the pictures may be selected as the finally selected second picture according to the age of the target face being 30 years and the predetermined value of the age difference being 10 years.
In the specific implementation, when the second picture clustering module clusters the second pictures according to the age information of the star face in the second pictures and according to the predetermined age intervals to obtain the classification of the second pictures according to the ages, the second picture selecting module may compare the age of the target face in the first picture with the age intervals of the classifications of the second pictures, select the classification of the second pictures with the minimum age difference with the target face within the predetermined value range, and obtain the second picture in the selected classification of the second pictures as the selected second picture. For example, when the second pictures are classified into 7 groups according to an age interval of 10 years, 4 second pictures of 11 to 20 years, 21 to 30 years, 31 to 40 years, and 41 to 50 years may be selected according to the classification that the age of the target face is 30 years and the predetermined value of the age difference is 15 years, and the second pictures in the classifications are acquired as the selected second pictures. The second picture selecting module may also compare, after acquiring the second picture in the category of the selected second picture, the gender of the target face in the first picture with the gender of the star face in the acquired second picture, and further select, as the finally selected second picture, the second picture in which the star face in the picture and the target face have the same gender. For example, after acquiring the second pictures in the category of 4 second pictures of 11 years old to 20 years old, 21 years old to 30 years old, 31 years old to 40 years old, and 41 years old to 50 years old, the second pictures with the star face of the female may be selected as the finally selected second pictures according to the gender of the target face.
In a specific implementation, when the second picture clustering module clusters the second pictures according to the gender and the age information of the star face in the second pictures and according to the gender and the predetermined age interval to obtain the classification of the second pictures according to the gender and the age, the second picture selecting module may compare the gender and the age of the target face in the first picture with the gender and the age interval of each classification of the second pictures respectively, and select the classification of the second pictures which have the same gender as the target face and have the minimum age difference with the target face within a predetermined value range. For example, when the second pictures are classified into 14 groups according to male and female and 10-year-old clustering, the second pictures of 4 groups of gender-women from 11 to 20, 21 to 30, 31 to 40, and 41 to 50 may be selected as the selected second pictures according to the classification that the gender of the target face is female, the age is 30, and the predetermined value of the age difference is 15.
And the second characteristic data obtaining module is used for obtaining the characteristic data of the star face according to the selected second picture.
The display unit of the image selecting device according to each of the above embodiments of the present invention is further configured to display the similarity score between the target face and the star face in the corresponding selected image while displaying the first image and the selected image.
Further, the display unit of the picture selecting apparatus according to the above embodiments of the present invention may further include: the Kan sentence acquisition module is used for acquiring a pre-stored Kan sentence corresponding to the similarity score according to the similarity score of the target face and the corresponding star face in the selected image; the display module is further used for displaying the corresponding canycuring sentences while displaying the first picture and the selected picture.
In specific implementation, the canon sentences corresponding to different similarity scoring regions can be stored in advance, after the selected image is determined, the similarity scoring region where the similarity score corresponding to the selected image is located can be determined according to the similarity score corresponding to the selected image, the canon sentences corresponding to the similarity scoring region are obtained according to the determined similarity scoring region, and the obtained canon sentences are displayed. These canon sentences are, for example, goddess, potential stocks, mince meat, etc.
Further, the display unit of the picture selecting apparatus according to the above embodiments of the present invention may further include: the star data acquisition module is used for acquiring star data in the selected picture according to the selected picture; the display module is further used for displaying the star data in the corresponding selected picture while displaying the first picture and the selected picture.
In a specific implementation, when the second picture is obtained from a picture pre-stored in a local database or a picture uploaded by a user in a cloud database, star data corresponding to a star face in the second picture can be pre-stored in the local database or the cloud database, and after the selected picture is determined, the star data corresponding to the star face in the selected picture can be obtained from the local database or the cloud database according to the selected picture, and the obtained star data is displayed; when the star data corresponding to the star face in the second picture is not stored in the local database or the cloud database in advance, the star data corresponding to the star face in the deduced picture is acquired from the network according to information recorded in the local database or the cloud database, such as the name of the star, after the deduced picture is determined, and the acquired star data is displayed. When the second picture is obtained from the network, the address for obtaining the second picture may be recorded when the second picture is obtained from the network, and after the selected picture is determined, the star data corresponding to the star face in the selected picture is obtained from the recorded corresponding address or the associated address, and the obtained star data is displayed.
The image selecting device according to the above embodiments of the present invention may further provide a function for a user to save the displayed image including the first image and the selected image by setting a corresponding operation interface. Specifically, the image selecting device according to each of the above embodiments of the present invention may be provided with a receiving unit, configured to receive the saving instruction; a storage unit may be further provided for saving the displayed picture according to the saving instruction, wherein the displayed picture may be saved in a photo album.
The picture selecting device according to the embodiments of the present invention may further provide a function for the user to share the displayed picture including the first picture and the selected picture by setting the corresponding operation interface. Specifically, the receiving unit provided in the image selecting device according to each of the embodiments of the present invention is further configured to receive a sharing instruction; the image selecting device according to the embodiments of the present invention may further include an execution unit, configured to send the displayed image to a predetermined address according to the sharing instruction, and share the displayed image with the friend.
In addition, an embodiment of the present invention further provides a mobile terminal, which may be, for example, a mobile phone, a notebook computer, a PDA, a tablet computer, and the like, and the mobile terminal includes a processor and a memory, where the memory is used to store the program of the picture selecting method according to any of the above embodiments of the present invention, and the processor is used to execute the program of the picture selecting method stored in the memory.
Based on the mobile terminal provided by the embodiment of the invention, the similarity information of the target face and the star face is obtained by comparing the feature data of the target face in the first picture with the feature data of the star face in the second picture, and the picture of the star face similar to the target face in the first picture is selected according to the similarity information, so that the experience and interest of users can be increased, the cultural entertainment life of people is enriched, and more fun is brought to the life of people.
The embodiment of the invention provides the following technical scheme:
1. a picture selecting method comprises the following steps:
acquiring feature data of a target face according to the first picture;
obtaining feature data of the star face according to the second picture;
comparing the feature data of the target face with the feature data of the star face to obtain similarity information of the target face and the star face;
at least one second picture is selected as a selected picture according to the similarity information; the star face in the selected picture has the highest similarity with the target face in the first picture;
and displaying the first picture and the selected picture.
2. The method of 1, wherein the obtaining feature data of a target face according to a first picture comprises:
acquiring feature data of a target face according to the first picture;
acquiring gender and/or age information of a target face in the first picture;
the obtaining of the feature data of the star face according to the second picture includes:
acquiring gender and/or age information of the star face in the second picture;
selecting the second picture according to the gender and/or age information; the gender and/or age of the star face in the selected second picture is matched with the gender and/or age of the target face in the first picture;
and obtaining the feature data of the star face according to the selected second picture.
3. The method according to 2, wherein selecting the second picture according to the gender and/or age information comprises:
comparing the gender of the target face in the first picture with the gender of the star face in the second picture, and selecting the second picture of which the star face in the pictures and the target face have the same gender; or
Comparing the age of the target face in the first picture with the age of the star face in the second picture, and selecting the second picture with the age difference between the star face in the pictures and the target face within a preset value range; or
And comparing the gender and the age of the target face in the first picture with the gender and the age of the star face in the second picture respectively, and selecting the second picture in which the star face in the pictures and the target face have the same gender and the age difference is within a preset value range.
4. According to the method in 2, after the obtaining of the gender and/or age information of the star face in the second picture, the method further includes:
and clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
5. According to the method of 4, when clustering is performed on the second pictures according to the gender information of the star faces in the second pictures to obtain the classification of the second pictures according to the gender, the selecting the second pictures according to the gender and/or age information comprises:
comparing the gender of the target face in the first picture with the gender of each classification of the second picture, and selecting the classification of the second picture with the same gender as the target face;
and acquiring the selected second picture in the classification of the second picture.
6. According to the method of 5, after the obtaining of the second picture in the selected classification of the second picture, the method further includes:
and according to the comparison between the age of the target face in the first picture and the obtained age of the star face in the second picture, further selecting the second picture of which the age difference between the star face in the picture and the target face is within a preset value range.
7. According to the method of 4, the clustering the second pictures according to the age information of the star faces in the second pictures to obtain the classification of the second pictures according to the ages includes:
and clustering the second pictures according to a preset age interval according to the age information of the star face in the second pictures to obtain the classification of the second pictures according to the ages.
8. According to the method of 7, when the second pictures are clustered according to the age information of the star faces in the second pictures and a predetermined age interval to obtain the classification of the second pictures according to the ages, the selecting the second pictures according to the gender and/or age information comprises:
comparing the age of the target face in the first picture with the age intervals of all the classifications of the second picture, and selecting the classification of the second picture with the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
9. According to the method of 8, after the obtaining of the second picture in the selected classification of the second picture, the method further includes:
and further selecting a second picture with the same gender as the target face in the picture according to the comparison between the gender of the target face in the first picture and the gender of the acquired star face in the second picture.
10. According to the method of 4, the clustering the second pictures according to the gender and age information of the star face in the second pictures to obtain the classification of the second pictures according to gender and age includes:
and clustering the second pictures according to the gender and age information of the star face in the second pictures and a preset age interval to obtain the classification of the second pictures according to the gender and the age.
11. According to the method of 10, when the second pictures are clustered according to gender and a predetermined age interval according to gender and age information of a star face in the second pictures to obtain a classification of the second pictures according to gender and age, selecting the second pictures according to the gender and/or age information includes:
comparing the gender and the age of the target face in the first picture with the gender and the age interval of each classification of the second picture respectively, and selecting the classification of the second picture which has the same gender as the target face and the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
12. The method according to any one of claims 2 to 11, wherein the obtaining of the feature data of the target face according to the first picture further comprises:
acquiring a first picture; the acquiring of the first picture comprises: acquiring a first picture from pictures stored in a photo album; or acquiring a first picture from the photo of the contact in the address book; or by taking a picture instantly with a camera to obtain the first picture.
13. The method according to 12, the obtaining gender and/or age information of the target face in the first picture includes:
and acquiring the gender and/or age information of the target face in the first picture according to the feature data of the target face.
14. According to the method of 12, when a first picture is obtained from a photo of a contact person in an address book, obtaining gender and/or age information of a target face in the first picture includes:
and acquiring the sex and/or age information of the target face in the first picture according to the information recorded in the address book.
15. The method according to any one of claims 2 to 11, wherein the obtaining of the feature data of the star face according to the second picture further includes:
acquiring a second picture; the acquiring of the second picture comprises: acquiring a second picture from pictures prestored in a local database; or acquiring a second picture from pictures uploaded by a user in the cloud database; or a second picture is taken from the network.
16. The method according to 15, wherein the acquiring gender and/or age information of the star face in the second picture comprises:
and acquiring the gender and/or age information of the star face in the second picture according to information recorded on the network.
17. According to the method of 15, when a second picture is obtained from pictures pre-stored in a local database, the obtaining of the gender and/or age information of the star face in the second picture includes:
and acquiring the gender and/or age information of the star face in the second picture according to the information recorded in the local database.
18. The method according to any one of claims 1 to 17, wherein the similarity information comprises: a similarity score;
the selecting at least one second picture as the selected picture according to the similarity information includes:
according to the similarity score, sorting the second pictures according to the sequence of the similarity score from high to low;
selecting a predetermined number of the second pictures with the similarity scores ranked in front as the selected pictures.
19. The method of 18, said displaying the first picture and the elected picture, comprising:
displaying a picture with the highest similarity score between the star face and the target face in the first picture and the selected picture;
detecting whether a query instruction is received;
if an inquiry instruction is received, displaying the next selected picture and the first picture according to the sequence of the similarity scores from high to low;
detecting whether the currently displayed selected picture is the last selected picture;
and if the currently displayed selected picture is the last selected picture, displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected picture.
20. The method of 19, said displaying the first picture and the elected picture, further comprising:
and displaying the similarity scores of the target face and the star faces in the corresponding selected picture while displaying the first picture and the selected picture.
21. The method of 20, said displaying the first picture and the elected picture, further comprising:
according to the similarity score of the target face and the star face in the corresponding selected image, a pre-stored canon sentence corresponding to the similarity score is obtained;
displaying the corresponding canycuring sentences while displaying the first picture and the selected picture.
22. The method of any one of claims 19 to 21, wherein displaying the first picture and the selected picture further comprises:
acquiring the data of the stars in the selected picture according to the selected picture;
and displaying the star data in the corresponding selected picture while displaying the first picture and the selected picture.
23. The method of any of claims 1 to 22, further comprising:
receiving a saving instruction;
and saving the displayed picture according to the saving instruction.
24. The method of any of claims 1 to 22, further comprising: receiving a sharing instruction;
and sending the displayed picture to a preset address according to the sharing instruction.
25. A picture culling apparatus, comprising:
the first feature data obtaining unit is used for obtaining feature data of a target face according to the first picture;
the second characteristic data obtaining unit is used for obtaining characteristic data of the star face according to the second picture;
the comparison unit is used for comparing the feature data of the target face with the feature data of the star face to obtain the similarity information of the target face and the star face;
the selecting unit is used for selecting at least one second picture as a selected picture according to the similarity information; the star face in the selected picture has the highest similarity with the target face in the first picture;
and the display unit is used for displaying the first picture and the selected picture.
26. The apparatus of 25, the first feature data obtaining unit comprising:
the first feature data acquisition module is used for acquiring feature data of a target face according to the first picture;
the first information acquisition module is used for acquiring the gender and/or age information of the target face in the first picture;
the second feature data obtaining unit includes:
the second information acquisition module is used for acquiring the gender and/or age information of the star face in the second picture;
the second picture selecting module is used for selecting the second picture according to the gender and/or age information; the gender and/or age of the star face in the selected second picture is matched with the gender and/or age of the target face in the first picture;
and the second characteristic data obtaining module is used for obtaining the characteristic data of the star face according to the selected second picture.
27. According to the apparatus of claim 26, the second picture selection module is specifically configured to:
comparing the gender of the target face in the first picture with the gender of the star face in the second picture, and selecting the second picture of which the star face in the pictures and the target face have the same gender; or
Comparing the age of the target face in the first picture with the age of the star face in the second picture, and selecting the second picture with the age difference between the star face in the pictures and the target face within a preset value range; or
And comparing the gender and the age of the target face in the first picture with the gender and the age of the star face in the second picture respectively, and selecting the second picture in which the star face in the pictures and the target face have the same gender and the age difference is within a preset value range.
28. The apparatus of 26, the second feature data obtaining unit further comprising:
and the second picture clustering module is used for clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
29. According to the apparatus of 28, when the second picture clustering module is specifically configured to cluster the second pictures according to gender information of the star face in the second pictures to obtain a classification of the second pictures according to gender, the second picture selecting module is specifically configured to:
comparing the gender of the target face in the first picture with the gender of each classification of the second picture, and selecting the classification of the second picture with the same gender as the target face;
and acquiring the selected second picture in the classification of the second picture.
30. According to the apparatus of claim 29, the second picture selecting module is further specifically configured to further select a second picture in which an age difference between a star face in the picture and the target face is within a predetermined value range, according to a comparison between an age of the target face in the first picture and an obtained age of the star face in the second picture.
31. According to the apparatus of claim 28, the second image clustering module is specifically configured to cluster the second images according to a predetermined age interval according to age information of a star face in the second images, so as to obtain a classification of the second images according to ages.
32. According to the apparatus of claim 31, when the second picture clustering module is specifically configured to cluster the second pictures according to the age information of the star face in the second pictures and according to a predetermined age interval, and obtain a classification of the second pictures according to ages, the second picture selecting module is specifically configured to:
comparing the age of the target face in the first picture with the age intervals of all the classifications of the second picture, and selecting the classification of the second picture with the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
33. According to the apparatus of 32, the second picture selecting module is further specifically configured to further select a second picture in which a star face in the picture and the target face have the same gender according to comparison between the gender of the target face in the first picture and the gender of the star face in the acquired second picture.
34. According to the apparatus of claim 28, the second image clustering module is specifically configured to cluster the second images according to gender and a predetermined age interval according to gender and age information of a star face in the second images, so as to obtain classifications of the second images according to gender and age.
35. According to the apparatus of 34, when the second image clustering module is specifically configured to cluster the second images according to gender and age information of the star face in the second images and according to gender and a predetermined age interval, and obtain classifications of the second images according to gender and age, the second image selecting module is specifically configured to:
comparing the gender and the age of the target face in the first picture with the gender and the age interval of each classification of the second picture respectively, and selecting the classification of the second picture which has the same gender as the target face and the minimum age difference with the target face within a preset value range;
and acquiring the selected second picture in the classification of the second picture.
36. The apparatus according to any one of claims 26 to 35, the first feature data obtaining unit further comprising:
the first picture acquisition module is used for acquiring a first picture; the first picture acquisition module is specifically configured to: acquiring a first picture from pictures stored in a photo album; or acquiring a first picture from the photo of the contact in the address book; or by taking a picture instantly with a camera to obtain the first picture.
37. According to the apparatus of 36, the first information obtaining module is specifically configured to obtain gender and/or age information of the target face in the first picture according to the feature data of the target face.
38. According to the device of 36, when the first image obtaining module obtains the first image from the address book, the first information obtaining module is specifically configured to obtain the gender and/or age information of the target face in the first image according to the information recorded in the address book.
39. The apparatus according to 26 to 35, the second feature data obtaining unit further comprising:
the second picture acquisition module is used for acquiring a second picture; the second picture acquisition module is specifically configured to: acquiring a second picture from pictures prestored in a local database; or acquiring a second picture from pictures uploaded by a user in the cloud database; or a second picture is taken from the network.
40. According to the apparatus of 39, the second information obtaining module is specifically configured to obtain gender and/or age information of the star face in the second picture according to information recorded on a network.
41. According to the device of 39, when the second image obtaining module obtains the second image from the images pre-stored in the local database, the second information obtaining module is specifically configured to obtain the gender and/or age information of the star face in the second image according to the information recorded in the local database.
42. The apparatus according to any one of claims 25 to 41, wherein the similarity information comprises: a similarity score;
the selecting unit comprises:
the sorting module is used for sorting the second pictures according to the similarity scores and the sequence from high to low of the similarity scores;
and the selecting module is used for selecting the second pictures with the similarity scores ranked in the front in a preset number as the selected pictures.
43. The apparatus of 42, the display unit comprising:
the first detection module is used for detecting whether a query instruction is received or not;
the second detection module is used for detecting whether the currently displayed selected picture is the last selected picture;
a display module, configured to display one of the first picture and the selected picture in which the star face and the target face have the highest similarity score; responding to a received query instruction according to a detection result of the first detection module, and displaying a next selected picture and the first picture according to the sequence of the similarity score from high to low; and according to the detection result of the second detection module, responding to the currently displayed selected picture as the last selected picture, and displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected pictures.
44. According to the apparatus in claim 43, the display unit is further configured to display the similarity score between the target face and a star face in the corresponding selected picture while displaying the first picture and the selected picture.
45. The apparatus of 44, the display unit further comprising:
a Kan sentence acquisition module, configured to acquire a pre-stored Kan sentence corresponding to the similarity score according to the similarity score between the target face and the corresponding star face in the selected image;
the display module is further used for displaying the corresponding canon sentences while displaying the first picture and the selected picture.
46. The apparatus of any of claims 43 to 45, the display unit further comprising:
a star data acquisition module, configured to acquire star data in the selected picture according to the selected picture;
the display module is further used for displaying the corresponding star data in the selected picture while displaying the first picture and the selected picture.
47. The apparatus of any of claims 25 to 46, further comprising:
a receiving unit for receiving a save instruction;
and the storage unit is used for storing the displayed picture according to the storage instruction.
48. The apparatus according to any one of claims 25 to 46, wherein the receiving unit is further configured to receive a sharing instruction;
the picture selecting device further comprises:
and the execution unit is also used for sending the displayed picture to a preset address according to the sharing instruction.
49. A mobile terminal, comprising: a processor and a memory; wherein,
the memory is used for storing a program of the picture selecting method from 1 to 24;
the processor is used for executing the program of the picture deduction method stored in the memory.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the device embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The method and apparatus of the present invention may be implemented in a number of ways. For example, the methods and apparatus of the present invention may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A picture selecting method is characterized by comprising the following steps:
acquiring feature data of a target face according to the first picture;
obtaining feature data of the star face according to the second picture;
comparing the feature data of the target face with the feature data of the star face to obtain similarity information of the target face and the star face;
at least one second picture is selected as a selected picture according to the similarity information; the star face in the selected picture has the highest similarity with the target face in the first picture;
and displaying the first picture and the selected picture.
2. The method according to claim 1, wherein the obtaining feature data of the target face from the first picture comprises:
acquiring feature data of a target face according to the first picture;
acquiring gender and/or age information of a target face in the first picture;
the obtaining of the feature data of the star face according to the second picture includes:
acquiring gender and/or age information of the star face in the second picture;
selecting the second picture according to the gender and/or age information; the gender and/or age of the star face in the selected second picture is matched with the gender and/or age of the target face in the first picture;
and obtaining the feature data of the star face according to the selected second picture.
3. The method according to claim 2, wherein after obtaining the gender and/or age information of the star face in the second picture, further comprising:
and clustering the second pictures according to the gender and/or age information of the star face in the second pictures to obtain the classification of the second pictures according to the gender and/or age.
4. The method according to any one of claims 1 to 3, wherein the similarity information comprises: a similarity score;
the selecting at least one second picture as the selected picture according to the similarity information includes:
according to the similarity score, sorting the second pictures according to the sequence of the similarity score from high to low;
selecting a predetermined number of the second pictures with the similarity scores ranked in front as the selected pictures.
5. The method of claim 4, wherein displaying the first picture and the selected picture comprises:
displaying a picture with the highest similarity score between the star face and the target face in the first picture and the selected picture;
detecting whether a query instruction is received;
if an inquiry instruction is received, displaying the next selected picture and the first picture according to the sequence of the similarity scores from high to low;
detecting whether the currently displayed selected picture is the last selected picture;
and if the currently displayed selected picture is the last selected picture, displaying the first picture and the picture with the highest similarity score between the star face and the target face in the selected picture.
6. The method of claim 5, wherein displaying the first picture and the selected picture further comprises:
and displaying the similarity scores of the target face and the star faces in the corresponding selected picture while displaying the first picture and the selected picture.
7. The method of claim 6, wherein displaying the first picture and the selected picture further comprises:
according to the similarity score of the target face and the star face in the corresponding selected image, a pre-stored canon sentence corresponding to the similarity score is obtained;
displaying the corresponding canycuring sentences while displaying the first picture and the selected picture.
8. The method of any of claims 5 to 7, wherein displaying the first picture and the elected picture further comprises:
acquiring the data of the stars in the selected picture according to the selected picture;
and displaying the star data in the corresponding selected picture while displaying the first picture and the selected picture.
9. A picture selecting device, comprising:
the first feature data obtaining unit is used for obtaining feature data of a target face according to the first picture;
the second characteristic data obtaining unit is used for obtaining characteristic data of the star face according to the second picture;
the comparison unit is used for comparing the feature data of the target face with the feature data of the star face to obtain the similarity information of the target face and the star face;
the selecting unit is used for selecting at least one second picture as a selected picture according to the similarity information; the star face in the selected picture has the highest similarity with the target face in the first picture;
and the display unit is used for displaying the first picture and the selected picture.
10. A mobile terminal, comprising: a processor and a memory; wherein,
the memory is used for storing a program of the picture selecting method of any one of claims 1 to 8;
the processor is used for executing the program of the picture deduction method stored in the memory.
CN201611187120.2A 2016-12-20 2016-12-20 Picture pushing method, device and mobile terminal Pending CN106649710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611187120.2A CN106649710A (en) 2016-12-20 2016-12-20 Picture pushing method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611187120.2A CN106649710A (en) 2016-12-20 2016-12-20 Picture pushing method, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN106649710A true CN106649710A (en) 2017-05-10

Family

ID=58834260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611187120.2A Pending CN106649710A (en) 2016-12-20 2016-12-20 Picture pushing method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106649710A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110533463A (en) * 2019-08-16 2019-12-03 深圳供电局有限公司 Background management system and background management method for propaganda slogan screen
CN110688973A (en) * 2019-09-30 2020-01-14 Oppo广东移动通信有限公司 Equipment control method and related product
CN112417197A (en) * 2020-12-02 2021-02-26 云从科技集团股份有限公司 Sorting method, sorting device, machine readable medium and equipment
WO2022012299A1 (en) * 2020-07-14 2022-01-20 海信视像科技股份有限公司 Display device and person recognition and presentation method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970830A (en) * 2014-03-31 2014-08-06 小米科技有限责任公司 Information recommendation method and device
CN104091164A (en) * 2014-07-28 2014-10-08 北京奇虎科技有限公司 Face picture name recognition method and system
CN104463177A (en) * 2014-12-23 2015-03-25 北京奇虎科技有限公司 Similar face image obtaining method and device
CN105005777A (en) * 2015-07-30 2015-10-28 科大讯飞股份有限公司 Face-based audio and video recommendation method and face-based audio and video recommendation system
CN105160312A (en) * 2015-08-27 2015-12-16 南京信息工程大学 Recommendation method for star face make up based on facial similarity match
CN106056083A (en) * 2016-05-31 2016-10-26 腾讯科技(深圳)有限公司 Information processing method and terminal
CN106096009A (en) * 2016-06-23 2016-11-09 北京小米移动软件有限公司 Method for generating message and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970830A (en) * 2014-03-31 2014-08-06 小米科技有限责任公司 Information recommendation method and device
CN104091164A (en) * 2014-07-28 2014-10-08 北京奇虎科技有限公司 Face picture name recognition method and system
CN104463177A (en) * 2014-12-23 2015-03-25 北京奇虎科技有限公司 Similar face image obtaining method and device
CN105005777A (en) * 2015-07-30 2015-10-28 科大讯飞股份有限公司 Face-based audio and video recommendation method and face-based audio and video recommendation system
CN105160312A (en) * 2015-08-27 2015-12-16 南京信息工程大学 Recommendation method for star face make up based on facial similarity match
CN106056083A (en) * 2016-05-31 2016-10-26 腾讯科技(深圳)有限公司 Information processing method and terminal
CN106096009A (en) * 2016-06-23 2016-11-09 北京小米移动软件有限公司 Method for generating message and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110533463A (en) * 2019-08-16 2019-12-03 深圳供电局有限公司 Background management system and background management method for propaganda slogan screen
CN110688973A (en) * 2019-09-30 2020-01-14 Oppo广东移动通信有限公司 Equipment control method and related product
CN110688973B (en) * 2019-09-30 2022-05-13 Oppo广东移动通信有限公司 Equipment control method and related product
WO2022012299A1 (en) * 2020-07-14 2022-01-20 海信视像科技股份有限公司 Display device and person recognition and presentation method
US11997341B2 (en) 2020-07-14 2024-05-28 Hisense Visual Technology Co., Ltd. Display apparatus and method for person recognition and presentation
CN112417197A (en) * 2020-12-02 2021-02-26 云从科技集团股份有限公司 Sorting method, sorting device, machine readable medium and equipment

Similar Documents

Publication Publication Date Title
US9367756B2 (en) Selection of representative images
EP3028184B1 (en) Method and system for searching images
TWI781554B (en) Method of determining item name of object, device, computer equipment and storage medium
CN104991954B (en) Shopping search system based on picture search and its implementation
CN113378061B (en) Information searching method, device, computer equipment and storage medium
CN104572717B (en) Information searching method and device
CN106649710A (en) Picture pushing method, device and mobile terminal
CN105243060A (en) Picture retrieval method and apparatus
CN108512883B (en) Information pushing method and device and readable medium
US20200050626A1 (en) Electronic device for providing information on item based on category of item
CN111639979A (en) Entertainment item recommendation method and device
CN114372160B (en) Search request processing method and device, computer equipment and storage medium
CN111723293B (en) Article content recommendation method and device, electronic equipment and storage medium
CN106791091B (en) Image generation method and device and mobile terminal
CN114691990A (en) Recommendation method, device, server, storage medium and product of query options
CN112307281A (en) Entity recommendation method and device
CN111444421B (en) Information pushing method and device, computer equipment and storage medium
JP2014229129A (en) Combination presentation system and computer program
CN113657273B (en) Method, device, electronic equipment and medium for determining commodity information
CN111198957A (en) Push method and device, electronic equipment and storage medium
CN114398514B (en) Video display method and device and electronic equipment
CN115049962A (en) Video clothing detection method, device and equipment
CN105117935A (en) Realization method of intelligent dress matching and apparatus thereof
CN113065025A (en) Video duplicate checking method, device, equipment and storage medium
CN112051951A (en) Media content display method, and media content display determination 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
TA01 Transfer of patent application right

Effective date of registration: 20170719

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication