CN110572489A - Method and device for creating new contact - Google Patents

Method and device for creating new contact Download PDF

Info

Publication number
CN110572489A
CN110572489A CN201910868169.1A CN201910868169A CN110572489A CN 110572489 A CN110572489 A CN 110572489A CN 201910868169 A CN201910868169 A CN 201910868169A CN 110572489 A CN110572489 A CN 110572489A
Authority
CN
China
Prior art keywords
contact
role
head portrait
head
relationship
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.)
Withdrawn
Application number
CN201910868169.1A
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 Anyun Century 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 Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201910868169.1A priority Critical patent/CN110572489A/en
Publication of CN110572489A publication Critical patent/CN110572489A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4594Address books, i.e. directories containing contact information about correspondents

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of information processing, in particular to a method and a device for creating a new contact, wherein the method is applied to an electronic device and comprises the following steps: acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons; acquiring the face feature information of the contact corresponding to each head portrait; analyzing the face feature information of each contact and the relative position relationship of the plurality of head portraits to obtain the role of the contact corresponding to each head portrait; and adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait, and providing a target picture to analyze and obtain the role of the contact person corresponding to each head portrait in the target picture so as to add the contact way for the head portraits of different roles, so that the contact person with the head portrait can be quickly created, the time consumption for adding contact person information is reduced, and the adding efficiency is improved.

Description

method and device for creating new contact
Technical Field
the invention relates to the technical field of information processing, in particular to a method for creating a new contact and an intelligent sound box.
background
With the development of science and technology, smart homes gradually come into the lives of people. At present, intelligent devices with screens are widely applied in home scenes. The intelligent device with the screen can support the addition of the related information of the contact person, most of the existing information adding methods are that the related information of the contact person is led into the intelligent device with the screen one by one through external equipment, and then the led related information of the contact person is set one by one through the intelligent device with the screen, so that the existing method for adding the contact person information is long in time consumption and low in adding efficiency.
disclosure of Invention
In view of the above, the present invention has been developed to provide a method and apparatus for creating new contacts that overcome, or at least partially address, the above-discussed problems.
In a first aspect, an embodiment of the present invention provides a method for creating a new contact, which is applied to an electronic device, and includes:
Acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
Acquiring the face feature information of the contact corresponding to each head portrait;
analyzing the face feature information of each contact and the relative position relationship of the plurality of head portraits to obtain the role of the contact corresponding to each head portrait;
And adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
Further, the acquiring the target picture specifically includes:
Acquiring the target picture through a camera of the electronic equipment; or
and acquiring the target picture from the local of the electronic equipment.
Further, the plurality of contacts in the target picture are specifically family members of a family.
further, the analyzing the face feature information of each contact and the relative position relationship between the plurality of head portraits to obtain the role of the contact corresponding to each head portrait specifically includes:
Obtaining basic information of the contact corresponding to each head portrait based on the face feature information of each contact;
Obtaining the crowd to which each contact person belongs based on the basic information of each contact person;
determining the character relationship between two contacts corresponding to two adjacent head portraits based on the relative position relationship of the head portraits and the basic information of each contact;
And acquiring the role of the contact corresponding to each head portrait based on the character relationship between two contacts corresponding to two adjacent head portraits, the crowd to which each contact belongs and the face characteristic information of each contact.
further, the basic information of the contact specifically includes: gender, age of the contact.
further, the group of people specifically includes: elderly people, young and middle-aged people, and teenagers.
further, the determining the person relationship between two contacts corresponding to two adjacent avatars based on the relative position relationship of the multiple avatars and the basic information of each contact specifically includes:
And determining the character relationship between two contacts corresponding to two adjacent head portraits based on the distance relationship between each head portrait and the adjacent head portrait on the target picture and the basic information of each contact.
further, the obtaining of the role of the contact corresponding to each avatar based on the human relationship between two contacts corresponding to two adjacent avatars, the crowd to which each contact belongs, and the facial feature information of each contact specifically includes:
Respectively comparing the face feature information of the contact persons determined as the young and the young people with the face feature information of the contact persons determined as the old people to obtain a first comparison result;
Respectively comparing the face characteristic information of the contact persons determined as the juvenile groups with the face characteristic information of the contact persons determined as the teenage groups to obtain a second comparison result;
Determining a first role relationship between the contacts of the young and old people and the contacts of the old people based on the first comparison result and the second comparison result, determining a second role relationship between the contacts of the young and old people and the contacts of the old people, and determining a third role relationship between the contacts of the young people and the contacts of the old people;
and obtaining the role of the contact person corresponding to each head portrait based on the first role relationship, the second role relationship, the third role relationship and the character relationship between two contact persons corresponding to the two adjacent head portraits.
further, after analyzing the face feature information of each contact and the relative position relationship between the plurality of head portraits and obtaining the role of the contact corresponding to each head portrait, the method further includes:
and allocating corresponding names to the contacts corresponding to the head portraits based on the roles of the contacts corresponding to the head portraits.
further, the assigning a corresponding name to the contact person corresponding to each avatar based on the role of the contact person corresponding to each avatar specifically includes:
Determining a target user from a plurality of contacts based on operations performed on the head portraits of the plurality of contacts on the target picture;
And based on the target user, allocating a name corresponding to the target user to the contact person corresponding to each head portrait.
Further, the adding a contact way to the contact person corresponding to the avatar of each role based on the role of the contact person corresponding to each avatar specifically includes:
Adding an existing contact way for the contact person corresponding to the head portrait of each role according to the existing address book based on the role of the contact person corresponding to each head portrait; or
and adding a newly-established contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
in a second aspect, the present invention further provides an apparatus for creating a new contact, including:
The first acquisition module is used for acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
The second acquisition module is used for acquiring the face feature information of the contact corresponding to each head portrait;
The second obtaining module is used for analyzing the face feature information of each contact person and the relative position relationship of the plurality of head portraits to obtain the role of the contact person corresponding to each head portrait;
And the new building module is used for adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
Further, the first obtaining module specifically includes:
The first acquisition unit is used for acquiring the target picture through a camera of the electronic equipment; or
And the second acquisition unit is used for acquiring the target picture from the local of the electronic equipment.
Further, the plurality of contacts in the target picture are specifically family members of a family.
Further, the first obtaining module specifically includes:
the first obtaining unit is used for obtaining the basic information of the contact corresponding to each head portrait based on the face feature information of each contact;
the second obtaining unit is used for obtaining the crowd to which the contact person corresponding to each head portrait belongs based on the basic information of each contact person;
A first determining unit, configured to determine, based on a relative positional relationship between the multiple avatars and the basic information of each of the contacts, a person relationship between two contacts corresponding to two adjacent avatars;
and a third obtaining unit, configured to obtain a role of the contact corresponding to each avatar based on a person relationship between two contacts corresponding to two adjacent avatars, a group to which each contact belongs, and face feature information of each contact.
Further, the basic information of the contact specifically includes: gender, age of the contact.
Further, the group of people specifically includes: elderly people, young and middle-aged people, and teenagers.
further, the first determining unit is specifically configured to:
and determining the character relationship between two contacts corresponding to two adjacent head portraits based on the distance relationship between each head portrait and the adjacent head portrait on the target picture and the basic information of each contact.
Further, the third obtaining unit specifically includes:
The fourth obtaining unit is used for comparing the face feature information of the contact person determined as the young and the old people with the face feature information of the contact person determined as the old people respectively to obtain a first comparison result;
the fifth obtaining unit is used for comparing the face feature information of the contact person determined as the juvenile group with the face feature information of the contact person determined as the young and the young group respectively to obtain a second comparison result;
a second determining unit, configured to determine, based on the first comparison result and the second comparison result, a first role relationship between the contact of the teenage group and the contact of the old people group, determine a second role relationship between the contact of the teenage group and the contact of the teenage group, and determine a third role relationship between the contact of the teenage group and the contact of the old people group;
and a third determining unit, configured to determine, based on the first role relationship, the second role relationship, the third role relationship, and a person relationship between two contacts corresponding to the two adjacent avatars, a role of the contact corresponding to each avatar.
Further, still include:
and the name determining module is used for allocating corresponding names to the contacts corresponding to the head portraits based on the roles of the contacts corresponding to the head portraits.
further, the call determining module specifically includes:
a target user determination unit, configured to determine a target user from the multiple contacts based on an operation performed on the avatars of the multiple contacts on the target picture;
and the name determining unit is used for allocating names corresponding to the target users to the contact persons corresponding to the head portraits based on the target users.
further, the newly-built module specifically includes:
The first adding unit is used for adding an existing contact way for the contact person corresponding to the head portrait of each role according to an existing address list based on the role of the contact person corresponding to each head portrait; or
And the second adding unit is used for adding a newly-established contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
In a third aspect, the present invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above-mentioned method steps when executing the program.
In a fourth aspect, the invention also provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:
The invention provides a method for newly building a contact person, which comprises the steps of obtaining a target picture, wherein the target picture comprises head portraits of a plurality of contact persons, obtaining face characteristic information of the contact person corresponding to each head portrait, analyzing the face characteristic information of each contact person and the relative position relation of the head portraits to obtain the role of the contact person corresponding to each head portrait, adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait, and analyzing and obtaining the role of the contact person corresponding to each head portrait in the target picture by only providing one target picture so as to add the contact ways for the head portraits of different roles, thereby quickly building the contact person with the head portraits, reducing the time consumption of adding the contact person information and improving the adding efficiency.
drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating steps of a method for creating a contact according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating numbering of each avatar in the photograph of an avatar containing multiple contacts according to a first embodiment of the present invention;
Fig. 3 is a schematic diagram illustrating an operation of adding a contact address to a contact corresponding to an avatar of each role in the first embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for creating a new contact according to a second embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an electronic device in a third embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
the embodiment of the invention provides a method for creating a new contact, which is applied to an electronic device, wherein the electronic device can be a smart television, a tablet computer or a smart sound box with a screen, and a telephone card can be inserted into the electronic device to realize a function of making a call.
As shown in fig. 1, the method includes: s101, acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
S102, acquiring the face feature information of the contact corresponding to each head portrait;
s103, analyzing the face feature information of each contact and the relative position relation of the plurality of head portraits to obtain the role of the contact corresponding to each head portrait;
And S104, adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
In S101, acquiring a target picture specifically includes: acquiring a target picture through a camera of electronic equipment; or reading the target picture from the body storage of the electronic equipment.
The target picture is obtained through a camera of the electronic device, specifically, a picture containing all contacts is taken through the camera of the electronic device, for example, a family good photo is taken through the electronic device. Or scan the picture of the entity through a camera of the electronic device, for example, scan an existing picture of the family happiness through the electronic device, thereby obtaining the target picture.
The method includes obtaining a target picture from a local of the electronic device, specifically, directly reading an existing picture from the local of the electronic device, where the picture may specifically be a picture downloaded in a wired or wireless manner, for example, the electronic device may directly access a cloud disk, download the target picture from the cloud disk, or connect the electronic device to another electronic device, or obtain the target picture from the another electronic device in a wireless or wired connection manner, and store the target picture locally in the electronic device, and when in use, directly read the target picture locally stored.
the target picture may be a full family photo, and the multiple contacts in the target picture may be family members of a family, for example, a family with three persons including the head portraits of dad, mom and kids, or a family with five persons including the head portraits of grandpa, mom and kids, or the head portraits of other types of family members, which is not described in detail herein.
Then, S102 is executed to acquire the facial feature information of the contact corresponding to each avatar.
in this step, the head portraits of all the contacts in the photo are firstly segmented by a face recognition technology to obtain the head portraits of the respective contacts, and then each head portrait is analyzed to obtain the face feature information of the contact of each head portrait, where the face feature information specifically includes: feature information of five sense organs (including feature information of glasses, eyebrows, nose, ears, mouth), hair style feature information, facial skin feature information, and the like.
Then, S103 is executed to analyze the face feature information of the contact corresponding to each avatar and the relative position relationship between the plurality of avatars, and obtain the role of the contact corresponding to each avatar.
In a specific implementation manner, based on the facial feature information of each contact, obtaining basic information of the contact corresponding to each avatar, where the basic information specifically includes the gender and age of the contact. For example, according to the characteristics of wrinkles at the eye corners of eyes, facial skin looseness and the like on the face of a contact person, the age of the contact person corresponding to the head portrait is determined to be over 50 years old, and meanwhile, according to the makeup and hair style characteristics of the face, the contact person corresponding to the head portrait is determined to be a female. According to the fact that eyes on the face of another contact are bright, the face skin is smooth and mellow, the head portrait is small in size, the age of the contact corresponding to the head portrait is determined to be under 10 years old, and the contact corresponding to the head portrait is determined to be a male according to the characteristics of a hair style and the like.
After the basic information of each contact is determined, the group to which the contact corresponding to each head portrait belongs is obtained based on the basic information of the contact corresponding to each head portrait, and the group to which the contact corresponding to each head portrait belongs specifically comprises the aged group, the young and old group and the juvenile group.
Specifically, based on that the contact person corresponding to the head portrait is a female and the age is over 50 years old, determining that the contact person corresponding to the head portrait belongs to the old people;
and determining that the contact corresponding to the head portrait belongs to the juvenile group based on that the contact corresponding to the head portrait is a male and is under the age of 10.
Therefore, after the crowd to which the contact corresponding to each head portrait belongs is determined, the relative position relations of the head portraits are obtained, and the person relation between the two contacts corresponding to the two adjacent head portraits is determined based on the relative position relations of the head portraits and the basic information of each contact.
specifically, the person relationship between two contacts corresponding to two adjacent avatars is determined based on the distance relationship between each avatar and its adjacent avatar on the target picture and the basic information of each contact.
in a specific embodiment, the plurality of head portraits on the target picture are respectively numbered, for example, as shown in fig. 2, 5 head portraits are provided on the target picture, and 1, 2, 3, 4 and 5 are sequentially numbered from left to right from top to bottom, and it can be known that the distance relationship between each head portrait and the adjacent head portraits on the picture is judged, the head portraits numbered 1 and 2 are closer, the head portraits numbered 3 and 4 are closer, and the person relationship between the two contacts corresponding to the two adjacent head portraits is determined by combining the basic information of the contact corresponding to each head portrait determined above, for example, the two head portraits closer are male and female, for example, the contact corresponding to the head portraits numbered 1 and 2 is determined to be a couple relationship, and the contact corresponding to the head portraits numbered 3 and 4 is determined to be a couple relationship.
After the person relationship between two contacts corresponding to two adjacent avatars is determined, the role of the contact corresponding to each avatar is determined based on the person relationship between the two contacts corresponding to the two adjacent avatars, the crowd to which each contact belongs, and the facial feature information of each contact.
Specifically, the face feature information of the contact person determined as the young and the old people is respectively compared with the face feature information of the contact person determined as the old people to obtain a first comparison result;
respectively comparing the face characteristic information of the contact persons determined as the juvenile groups with the face characteristic information of the contact persons determined as the teenage groups to obtain a second comparison result;
Determining a first role relationship between the contacts of the young and old people and the contacts of the old people based on the first comparison result and the second comparison result, determining a second role relationship between the contacts of the young and old people and determining a third role relationship between the contacts of the young people and the contacts of the old people;
And determining the role of the contact corresponding to each head portrait based on the first role relationship, the second role relationship, the third role relationship and the character relationship between two contact corresponding to two adjacent head portraits.
in the process of obtaining the first comparison result and the second comparison result, the face feature information of the contact person determined to be the young people is compared with the face feature information of the contact person determined to be the old people respectively, and the facial feature information is compared through comparing the features of the five sense organs, comparing the hair style feature information, comparing the facial skin feature information and the like. The similarity degree between the face feature information of the contacts of the young and old people and the face feature information of the contacts of the old people can be determined, specifically, the face feature information of a male contact and the face feature information of a female contact in the contacts of the young and old people need to be respectively compared with the face feature information of the contacts of the old people, so that two similarity degree values, namely a first comparison result, and similarly, a second comparison result is obtained through a similar method.
The two comparison processes specifically aim to judge the relationship between the young and old people in the target picture, the first comparison result specifically refers to the similarity degree between the male contact in the young and old people and the similarity degree between the female contact in the young and old people and the contact in the old people, the first role relationship between the contact in the old people and the contact in the male young and old people can be determined according to the first comparison result, the first role relationship between the contact in the old people and the contact in the female young and old people can be determined, and the second comparison result specifically refers to the similarity degree between the contact in the young people and the contact in the young and old people.
If the first comparison result shows that the similarity degree of the male contact in the young and old people and the similarity degree of the female contact in the young and old people and the old people are different, and the difference is relatively large, the relationship between the contact of the male young and old people and the contact of the old people is determined to be an orthotopic relationship, and the relationship between the contact of the male young and old people and the contact of the female young and old people is determined to be a wife relationship, so that the relationship between the contact of the female young and old people and the contact of the old people is determined to be a wife relationship and a kosher relationship and a public daughter-in-law relationship.
If the first comparison result shows that the similarity degree of the male contact in the young and middle-aged population and the similarity degree of the female contact in the young and middle-aged population and the similarity degree of the contact in the old population are approximately the same, and the similarity degrees are higher, determining that the male contact in the young and middle-aged population and the female contact in the young and middle-aged population are both in direct relation with the contact in the old population, wherein the male contact in the young and middle-aged population and the female contact in the young and middle-aged population are in sibling or sister relationship; certainly, the number of the contacts of the male young and old people may be two, the face feature information of the contacts of the two young and old people is respectively compared with the face feature information of the contacts of the old people, and when the similarity degrees are determined to be approximately the same as the comparison result, the direct relationship between the contacts of the two young and old people and the contacts of the old people is determined, and meanwhile, the contacts of the two male young and old people are the sibling relationship.
If the second comparison result shows that the face feature information of the contacts of the teenager group has similarity of about 50% to the face feature information of the male contacts and the face feature information of the female contacts of the teenager group, the relationship between the contacts of the teenager group and the contacts of the teenager group is determined to be a direct relationship, namely, a second role relationship.
Therefore, the relation between the contact persons of the teenager group and the contact persons of the old age group can be determined to be the direct relationship, namely the third color relationship.
and finally, acquiring the role of the contact corresponding to each head portrait based on the first role relationship, the second role relationship, the third role relationship and the character relationship between the two contacts corresponding to the two adjacent head portraits.
Specifically, the contact persons of two adjacent young and old people are a couple relationship, meanwhile, the contact persons of two adjacent old people are a couple relationship, the contact persons of the male young and old people in the two young and old people are an immediate relationship with the contact persons of the two old people, and therefore, the male old people in the two old people are grandpa, the female old people are milk, the male young and old people are father and women young and old are mom, and the only one young person is the male young and old and female young and old children.
After the role of the contact corresponding to each head portrait is determined, the method further comprises the following steps: and allocating corresponding names to the contacts corresponding to the head portraits based on the role information of the contacts corresponding to the head portraits.
specifically, a target user is determined from a plurality of contacts based on operations performed on the head portraits of the contacts on the target picture, wherein the target user is a main user of the electronic equipment, and the operations can be specifically operations determined by clicking and the like;
And based on the target user, allocating the corresponding names of the target user to the contact persons corresponding to each head portrait.
In a specific embodiment, if a child is determined as a target user, the titles of two old people are grandpa and grandpa, and the titles of two young people are dad and mom; if male adolescence is determined as a target user, the two old people are named as dad and mom, the female adolescence is named as wife, and the teenager is a son or a daughter. If the family member is a member of more families, there are more other names, and detailed description is omitted here.
after the role of the contact corresponding to each avatar is obtained, S104 is executed to add a contact address to the contact corresponding to the avatar corresponding to each role based on the role of the contact corresponding to each avatar.
s104 specifically comprises the following steps:
adding an existing contact method for the contact person corresponding to the head portrait of each role according to the existing address list based on the role of the contact person corresponding to each head portrait; or
and adding a newly-established contact method for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
specifically, in one mode, the contact way may be an existing contact way, that is, the contact way of each role is recorded in the address list, but there is no avatar of each role, at this time, the avatar with the role name is associated with the contact way of the role name in the existing address list, so that the contact way is added to the contact person corresponding to the avatar corresponding to each role. In a specific embodiment, as shown in fig. 3, the left list is a contact address in the address list, the right list is each determined avatar and a corresponding role name, and the role name with the avatar on the right is dragged to the front end of the contact address on the left side in a dragging manner, so as to achieve the purpose of adding a contact address to a contact corresponding to the avatar of each role.
In another mode, the address list is empty, after the role of the contact corresponding to each avatar is determined according to the avatars of the plurality of contacts included in the target picture, a new contact way is added to the contact corresponding to the avatar of each role, and therefore a new contact is quickly created, and the avatar can be added to the contact in the process of creating the new contact.
Specifically, the contact information may include not only a telephone number, but also other communication information, such as a chat account number and the like
one or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:
The invention provides a method for creating a new contact, which comprises the steps of obtaining a target picture, wherein the target picture comprises head portraits of a plurality of contacts, obtaining face characteristic information of the contact corresponding to each head portrait, analyzing the face characteristic information of each contact and the relative position relation of the plurality of head portraits, obtaining the role of the contact corresponding to each head portrait, adding a contact way for the contact corresponding to the head portrait of each role based on the role of the contact corresponding to each head portrait, and analyzing and obtaining the role of the contact corresponding to each head portrait in the target picture by only providing the target picture, so that the contact ways are added for the head portraits of different roles, thereby quickly creating the contact with the head portraits, reducing the time consumption of adding the contact information and improving the adding efficiency.
Example two
Based on the same inventive concept, a second embodiment of the present invention provides an apparatus for creating a new contact, as shown in fig. 4, including:
A first obtaining module 401, configured to obtain a target picture, where the target picture includes head portraits of multiple contacts;
A second obtaining module 402, configured to obtain face feature information of a contact corresponding to each of the head portraits;
A first obtaining module 403, configured to analyze face feature information of each contact and a relative position relationship between the multiple head portraits, and obtain a role of the contact corresponding to each head portraits;
And a new creating module 404, configured to add a contact way to the contact person corresponding to the avatar of each role based on the role of the contact person corresponding to each avatar.
in a preferred embodiment, the first obtaining module 401 specifically includes:
the first acquisition unit is used for acquiring the target picture through a camera of the electronic equipment; or
and the second acquisition unit is used for acquiring the target picture from the local of the electronic equipment.
in a preferred embodiment, the plurality of contacts in the target picture are family members of a family.
In a preferred embodiment, the first obtaining module 403 specifically includes:
The first obtaining unit is used for obtaining the basic information of the contact corresponding to each head portrait based on the face feature information of each contact;
The second obtaining unit is used for obtaining the crowd to which the contact person corresponding to each head portrait belongs based on the basic information of each contact person;
a first determining unit, configured to determine, based on the relative position relationship between the multiple avatars and the basic information of each contact, a person relationship between two contacts corresponding to two adjacent avatars;
and the third obtaining unit is used for obtaining the role of the contact corresponding to each head portrait based on the character relationship between two contacts corresponding to two adjacent head portraits, the crowd to which each contact belongs and the face feature information of each contact.
In a preferred embodiment, the basic information of the contact specifically includes: gender, age of the contact.
in a preferred embodiment, the group of persons specifically includes: elderly people, young and middle-aged people, and teenagers.
In a preferred embodiment, the first determining unit is specifically configured to:
And determining the character relationship between two contacts corresponding to two adjacent head portraits based on the distance relationship between each head portrait and the adjacent head portrait on the target picture and the basic information of each contact.
In a preferred embodiment, the third obtaining unit specifically includes:
the fourth obtaining unit is used for comparing the face feature information of the contact person determined as the young and the old people with the face feature information of the contact person determined as the old people respectively to obtain a first comparison result;
the fifth obtaining unit is used for comparing the face feature information of the contact person determined as the juvenile group with the face feature information of the contact person determined as the young and the young group respectively to obtain a second comparison result;
A second determining unit, configured to determine, based on the first comparison result and the second comparison result, a first role relationship between the contact of the teenage group and the contact of the old people group, determine a second role relationship between the contact of the teenage group and the contact of the teenage group, and determine a third role relationship between the contact of the teenage group and the contact of the old people group;
and a third determining unit, configured to obtain a role of the contact corresponding to each avatar based on the first role relationship, the second role relationship, the third role relationship, and a person relationship between two contacts corresponding to the two adjacent avatars.
In a preferred embodiment, the method further comprises:
And the name determining module is used for allocating corresponding names to the contacts corresponding to the head portraits based on the roles of the contacts corresponding to the head portraits.
In a preferred embodiment, the name determining module specifically includes:
A target user determination unit, configured to determine a target user from the multiple contacts based on an operation performed on the avatars of the multiple contacts on the target picture;
And the name determining unit is used for allocating names corresponding to the target users to the contact persons corresponding to the head portraits based on the target users.
In a preferred embodiment, the newly-built module 404 specifically includes:
the first adding unit is used for adding an existing contact way for the contact person corresponding to the head portrait of each role according to an existing address list based on the role of the contact person corresponding to each head portrait; or
And the second adding unit is used for adding a newly-established contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
EXAMPLE III
based on the same inventive concept, a third embodiment of the present invention provides an electronic device, as shown in fig. 5, which includes a memory 504, a processor 502 and a computer program stored on the memory 504 and executable on the processor 502, and when the processor 502 executes the computer program, the method steps of creating a new contact are implemented.
where in fig. 5 a bus architecture (represented by bus 500) is shown, bus 500 may include any number of interconnected buses and bridges, and bus 500 links together various circuits including one or more processors, represented by processor 502, and memory, represented by memory 504. The bus 500 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 506 provides an interface between the bus 500 and the receiver 501 and transmitter 503. The receiver 501 and the transmitter 503 may be the same element, i.e. a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 502 is responsible for managing the bus 500 and general processing, and the memory 504 may be used for storing data used by the processor 502 in performing operations.
example four
Based on the same inventive concept, a fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the above-mentioned method steps of creating a contact.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
in the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
the various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of an apparatus, server, etc. for intelligent scheduling according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses A1 and a method for creating a new contact, which is applied to an electronic device and is characterized by comprising the following steps:
acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
Acquiring the face feature information of the contact corresponding to each head portrait;
analyzing the face feature information of each contact and the relative position relation of the plurality of head portraits to obtain the role of the contact corresponding to each head portrait;
And adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
a2, the method as in a1, wherein the acquiring the target picture specifically includes:
Acquiring the target picture through a camera of the electronic equipment; or
And acquiring the target picture from the local of the electronic equipment.
A3, the method according to a1 or a2, wherein the contacts in the target picture are family members of a family.
a4, the method as recited in a1, wherein the analyzing the face feature information of each contact and the relative position relationship between the multiple avatars is performed to obtain the role of the contact corresponding to each avatar, specifically includes:
Obtaining basic information of the contact person corresponding to each head portrait based on the face feature information of the contact person corresponding to each head portrait;
obtaining the crowd to which the contact corresponding to each head portrait belongs based on the basic information of each contact;
Determining the character relationship between two contacts corresponding to two adjacent head portraits based on the relative position relationship of the head portraits and the basic information of each contact;
And acquiring the role of the contact corresponding to each head portrait based on the character relationship between two contacts corresponding to two adjacent head portraits, the crowd to which each contact belongs and the face characteristic information of each contact.
a5, the method as recited in a4, wherein the basic information of the contact specifically includes: gender, age of the contact.
a6, the method according to A4, wherein the group of persons comprises: elderly people, young and middle-aged people, and teenagers.
a7, the method according to a4, wherein the determining the person relationship between two contacts corresponding to two adjacent avatars based on the relative position relationship of the avatars and the basic information of each contact comprises:
and determining the character relationship between two contacts corresponding to two adjacent head portraits based on the distance relationship between each head portrait and the adjacent head portrait on the target picture and the basic information of each contact.
A8, the method according to a6, wherein the obtaining the role of the contact corresponding to each avatar based on the human relationship between two contacts corresponding to two adjacent avatars, the crowd to which each contact belongs, and the facial feature information of each contact specifically includes:
respectively comparing the face feature information of the contact persons determined as the young and the young people with the face feature information of the contact persons determined as the old people to obtain a first comparison result;
respectively comparing the face characteristic information of the contact persons determined as the juvenile groups with the face characteristic information of the contact persons determined as the teenage groups to obtain a second comparison result;
Determining a first role relationship between the contacts of the young and old people and the contacts of the old people based on the first comparison result and the second comparison result, determining a second role relationship between the contacts of the young and old people and the contacts of the old people, and determining a third role relationship between the contacts of the young people and the contacts of the old people;
and obtaining the role of the contact person corresponding to each head portrait based on the first role relationship, the second role relationship, the third role relationship and the character relationship between two contact persons corresponding to the two adjacent head portraits.
a9, the method as recited in A1, wherein after analyzing the facial feature information of each contact and the relative position relationship of a plurality of head portraits, and obtaining the role of the contact corresponding to each head portrait, the method further comprises:
and allocating corresponding names to the contacts corresponding to the head portraits based on the roles of the contacts corresponding to the head portraits.
a10, the method according to a9, wherein the assigning a corresponding name to each contact corresponding to the avatar based on the role of the contact corresponding to the avatar comprises:
determining a target user from a plurality of contacts based on operations performed on the head portraits of the plurality of contacts on the target picture;
and based on the target user, allocating a name corresponding to the target user to the contact person corresponding to each head portrait.
A11, the method as recited in a1, wherein the adding a contact address to the contact person corresponding to the avatar of each character based on the role of the contact person corresponding to each avatar specifically includes:
adding an existing contact way for the contact person corresponding to the head portrait of each role according to the existing address book based on the role of the contact person corresponding to each head portrait; or
And adding a newly-established contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
b12, an apparatus for creating a new contact, comprising:
The first acquisition module is used for acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
the second acquisition module is used for acquiring the face feature information of the contact corresponding to each head portrait;
the first obtaining module is used for analyzing the face feature information of each contact person and the relative position relationship of the plurality of head portraits and obtaining the role of the contact person corresponding to each head portrait;
And the new building module is used for adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
B13, the apparatus as in B12, wherein the first obtaining module specifically includes:
the first acquisition unit is used for acquiring the target picture through a camera of the electronic equipment; or
and the second acquisition unit is used for acquiring the target picture from the local of the electronic equipment.
b14, the device according to B12 or B13, wherein the contacts in the target picture are family members of a family.
b15, the apparatus as defined in B12, wherein the first obtaining module specifically comprises:
the first obtaining unit is used for obtaining the basic information of the contact corresponding to each head portrait based on the face feature information of each contact;
the second obtaining unit is used for obtaining the crowd to which the contact person corresponding to each head portrait belongs based on the basic information of each contact person;
a first determining unit, configured to determine, based on a relative positional relationship between the multiple avatars and the basic information of each of the contacts, a person relationship between two contacts corresponding to two adjacent avatars;
and the third obtaining unit is used for obtaining the role of the contact person corresponding to each head portrait based on the character relationship between two contact persons corresponding to two adjacent head portraits, the crowd to which each contact person belongs and the face feature information of each contact person.
B16, the apparatus as claimed in B15, wherein the basic information of the contact specifically includes: gender, age of the contact.
b17, the device of B15, wherein the said people include: elderly people, young and middle-aged people, and teenagers.
B18, the apparatus according to B15, wherein the first determining unit is specifically configured to:
And determining the character relationship between two contacts corresponding to two adjacent head portraits based on the distance relationship between each head portrait and the adjacent head portrait on the target picture and the basic information of each contact.
b19, the apparatus as defined in B17, wherein the third obtaining unit specifically comprises:
The fourth obtaining unit is used for comparing the face feature information of the contact person determined as the young and the old people with the face feature information of the contact person determined as the old people respectively to obtain a first comparison result;
the fifth obtaining unit is used for comparing the face feature information of the contact person determined as the juvenile group with the face feature information of the contact person determined as the young and the young group respectively to obtain a second comparison result;
A second determining unit, configured to determine, based on the first comparison result and the second comparison result, a first role relationship between the contact of the teenage group and the contact of the old people group, determine a second role relationship between the contact of the teenage group and the contact of the teenage group, and determine a third role relationship between the contact of the teenage group and the contact of the old people group;
and a third determining unit, configured to obtain a role of the contact corresponding to each avatar based on the first role relationship, the second role relationship, the third role relationship, and a person relationship between two contacts corresponding to the two adjacent avatars.
B20, the device of B12, further comprising:
And the name determining module is used for allocating corresponding names to the contacts corresponding to the head portraits based on the roles of the contacts corresponding to the head portraits.
B21, the apparatus according to B20, wherein the title determination module specifically comprises:
a target user determination unit, configured to determine a target user from the multiple contacts based on an operation performed on the avatars of the multiple contacts on the target picture;
and the name determining unit is used for allocating names corresponding to the target users to the contact persons corresponding to the head portraits based on the target users.
B22, the apparatus as in B12, wherein the newly created module specifically comprises:
The first adding unit is used for adding an existing contact way for the contact person corresponding to the head portrait of each role according to an existing address list based on the role of the contact person corresponding to each head portrait; or
And the second adding unit is used for adding a newly-established contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
C23, an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor realizes the method steps as described in any of a1-a11 when executing the program.
D24, a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of a1-a 11.

Claims (10)

1. a method for creating a contact is applied to an electronic device, and is characterized by comprising the following steps:
Acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
Acquiring the face feature information of the contact corresponding to each head portrait;
analyzing the face feature information of each contact and the relative position relationship of the plurality of head portraits to obtain the role of the contact corresponding to each head portrait;
And adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
2. The method of claim 1, wherein the obtaining the target picture specifically comprises:
acquiring the target picture through a camera of the electronic equipment; or
And acquiring the target picture from the local of the electronic equipment.
3. the method of claim 1 or 2, wherein the plurality of contacts in the target picture are family members of a family.
4. the method according to claim 1, wherein the analyzing the face feature information of each contact and the relative position relationship between the plurality of head portraits to obtain the role of the contact corresponding to each head portrait specifically includes:
obtaining basic information of the contact corresponding to each head portrait based on the face feature information of each contact;
obtaining the crowd to which the contact corresponding to each head portrait belongs based on the basic information of each contact;
determining the character relationship between two contacts corresponding to two adjacent head portraits based on the relative position relationship of the head portraits and the basic information of each contact;
And acquiring the role of the contact corresponding to each head portrait based on the character relationship between two contacts corresponding to two adjacent head portraits, the crowd to which each contact belongs and the face characteristic information of each contact.
5. the method of claim 4, wherein the basic information of the contact specifically comprises: gender, age of the contact.
6. The method of claim 4, wherein the group of people specifically comprises: elderly people, young and middle-aged people, and teenagers.
7. the method of claim 4, wherein the determining the person relationship between two contacts corresponding to two adjacent avatars based on the relative position relationship of the avatars and the basic information of each contact comprises:
And determining the character relationship between two contacts corresponding to two adjacent head portraits based on the distance relationship between each head portrait and the adjacent head portrait on the target picture and the basic information of each contact.
8. An apparatus for creating a new contact, comprising:
the first acquisition module is used for acquiring a target picture, wherein the target picture comprises head portraits of a plurality of contact persons;
The second acquisition module is used for acquiring the face feature information of the contact corresponding to each head portrait;
The first obtaining module is used for analyzing the face feature information of each contact person and the relative position relationship of the plurality of head portraits and obtaining the role of the contact person corresponding to each head portrait;
and the new building module is used for adding a contact way for the contact person corresponding to the head portrait of each role based on the role of the contact person corresponding to each head portrait.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method steps of any of claims 1-7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN201910868169.1A 2019-09-09 2019-09-09 Method and device for creating new contact Withdrawn CN110572489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910868169.1A CN110572489A (en) 2019-09-09 2019-09-09 Method and device for creating new contact

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910868169.1A CN110572489A (en) 2019-09-09 2019-09-09 Method and device for creating new contact

Publications (1)

Publication Number Publication Date
CN110572489A true CN110572489A (en) 2019-12-13

Family

ID=68779959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910868169.1A Withdrawn CN110572489A (en) 2019-09-09 2019-09-09 Method and device for creating new contact

Country Status (1)

Country Link
CN (1) CN110572489A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285814A (en) * 2021-12-27 2022-04-05 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669824A (en) * 2009-09-22 2010-03-17 浙江工业大学 Biometrics-based device for detecting indentity of people and identification
CN102075727A (en) * 2010-12-30 2011-05-25 中兴通讯股份有限公司 Method and device for processing images in videophone
CN102368269A (en) * 2011-10-25 2012-03-07 华为终端有限公司 Association relationship establishment method and device
CN104182458A (en) * 2014-07-17 2014-12-03 百度在线网络技术(北京)有限公司 Associative storage method and device as well as query method and device for pictures
EP3173969A1 (en) * 2015-11-26 2017-05-31 Xiaomi Inc. Method, apparatus and terminal device for playing music based on a target face photo album
CN107087066A (en) * 2017-04-07 2017-08-22 北京安云世纪科技有限公司 The display methods and mobile communication terminal of a kind of notification message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669824A (en) * 2009-09-22 2010-03-17 浙江工业大学 Biometrics-based device for detecting indentity of people and identification
CN102075727A (en) * 2010-12-30 2011-05-25 中兴通讯股份有限公司 Method and device for processing images in videophone
CN102368269A (en) * 2011-10-25 2012-03-07 华为终端有限公司 Association relationship establishment method and device
CN104182458A (en) * 2014-07-17 2014-12-03 百度在线网络技术(北京)有限公司 Associative storage method and device as well as query method and device for pictures
EP3173969A1 (en) * 2015-11-26 2017-05-31 Xiaomi Inc. Method, apparatus and terminal device for playing music based on a target face photo album
CN107087066A (en) * 2017-04-07 2017-08-22 北京安云世纪科技有限公司 The display methods and mobile communication terminal of a kind of notification message

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285814A (en) * 2021-12-27 2022-04-05 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium
CN114285814B (en) * 2021-12-27 2024-05-31 维沃移动通信有限公司 Chat parameter setting method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021196389A1 (en) Facial action unit recognition method and apparatus, electronic device, and storage medium
CN108986016B (en) Image beautifying method and device and electronic equipment
KR20210088600A (en) Exhibition area state recognition method, apparatus, electronic device and recording medium
US10719695B2 (en) Method for pushing picture, mobile terminal, and storage medium
CN106165386A (en) For photo upload and the automatic technology of selection
CN111008935B (en) Face image enhancement method, device, system and storage medium
WO2015167975A1 (en) Rating photos for tasks based on content and adjacent signals
CN112257328B (en) Furniture layout method and electronic equipment
US20190206117A1 (en) Image processing method, intelligent terminal, and storage device
CN112132208B (en) Image conversion model generation method and device, electronic equipment and storage medium
CN102917159A (en) Mode removal for improved multi-modal background subtraction
WO2021093595A1 (en) Method for verifying user identity and electronic device
JP2022518276A (en) Image processing method and equipment for animal face
CN107968890A (en) theme setting method, device, terminal device and storage medium
US20230090253A1 (en) Systems and methods for authoring and managing extended reality (xr) avatars
CN111507889A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113689324A (en) Automatic adding and deleting method and device for portrait object based on two classification labels
CN112199530A (en) Multi-dimensional face library picture automatic updating method, system, equipment and medium
CN115661912A (en) Image processing method, model training method, electronic device and readable storage medium
CN110572489A (en) Method and device for creating new contact
US20190304152A1 (en) Method and device for processing image
CN110197459B (en) Image stylization generation method and device and electronic equipment
CN114143521A (en) Game projection method, projector and storage medium
CN114222995A (en) Image processing method and device and electronic equipment
CN109697746A (en) Self-timer video cartoon head portrait stacking method and Related product

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20191213

WW01 Invention patent application withdrawn after publication