Method, device and computer equipment for establishing user tags based on face recognition

Using face recognition technology to collect and match information on user terminals solves the problem of inaccurate application software type labels in the existing technology and improves the accuracy of user portraits.

CN109871756BActive Publication Date: 2024-09-06PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910024228.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-10
Publication Date
2024-09-06
Estimated Expiration
2039-01-10

AI Technical Summary

Technical Problem

When establishing user portraits, the existing technology only adds tags based on application software types, resulting in inaccurate tags. Especially when a parent's mobile phone is used by a child, it cannot accurately reflect the user's preferences.

Method used

Through face recognition technology, the image of the front camera of the user terminal is collected, the face information is extracted, and matched with the pre-stored user information, and the label of the application software is set based on the matching result to ensure the accuracy of the label.

Benefits of technology

It achieves more accurate setting of user tags based on the user's actual usage, improves the accuracy of user portraits, and meets the need for accurate identification of user preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109871756B
    Figure CN109871756B
Patent Text Reader

Abstract

The present application discloses a method, device and computer equipment for establishing user tags based on face recognition, wherein the method includes: a user terminal collects an application running on its front end; determines whether the application is a preset application software; if so, controls the front camera of the user terminal to collect an image; extracts the first face information of the image; searches the user terminal for the second face information matching the first face information; if the second face information is found, sets the tag of the application software to the user tag of the user corresponding to the second face information. The present application collects the face information of the person using the software when the software is running on the front end, determines that the face information of the person using the software is the same as the face information of the user, and then adds a corresponding tag to the user according to the software tag, so that the user tag can be established more accurately according to the software tag.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, device and computer equipment for establishing user tags based on face recognition. Background Art

[0002] When users use their mobile phones, they will download and use applications according to their preferences. Correspondingly, the mobile phone can also build user portraits based on the types of applications downloaded and used by users.

[0003] At present, in families, parents’ mobile phones are often used by children, who use their parents’ mobile phones to download or use some game applications that children like, but parents basically do not play these games. In this way, when the mobile terminal creates the user portrait of the parents, it will add some tags of the games that children like, which will lead to inaccurate user portraits. Summary of the invention

[0004] The main purpose of the present application is to provide a method, apparatus and computer device for establishing user tags based on face recognition, aiming to solve the problem of inaccurate tags added when tags are added to users only based on application software.

[0005] In order to achieve the above-mentioned invention object, the present application proposes a method for establishing user tags based on face recognition, comprising:

[0006] The user terminal collects the applications running on its front end;

[0007] Determine whether the application is a preset application software; if so, control the front camera of the user terminal to capture an image;

[0008] Extracting first face information from the image;

[0009] Searching the user terminal for second facial information that matches the first facial information;

[0010] If the second facial information is found, the label of the application software is set to the user label of the user corresponding to the second facial information.

[0011] Furthermore, the second facial information includes second facial information corresponding to a plurality of users respectively, and the step of searching the user terminal for second facial information matching the first facial information includes:

[0012] Calculate similarity between the first face information and multiple second face information to obtain multiple similarity values;

[0013] Obtaining the highest value among the plurality of similarity values ​​as a target similarity value;

[0014] Determine that the facial information corresponding to the target similarity value is the second facial information.

[0015] Further, after the step of setting the tag of the application software as the user tag of the user corresponding to the second facial information, the method further includes:

[0016] Push the application software with the user tag to the user terminal.

[0017] Further, after the step of setting the tag of the application software as the user tag of the user corresponding to the second facial information, the method further includes:

[0018] Count the types and corresponding quantities of all user tags of the user;

[0019] The types of the user tags are sorted according to the quantity of each of the user tags to obtain a user tag ranking list of the user.

[0020] Furthermore, after the step of sorting the types of the user tags according to the quantity of each user tag to obtain the user tag ranking list of the user, the following steps are included:

[0021] The application software corresponding to the tag ranked at a preset position in the ranking list is pushed to the user terminal.

[0022] Further, after the step of setting the tag of the application software as the user tag of the user corresponding to the second facial information, the method further includes:

[0023] Obtaining a first usage time of each preset application software of the user terminal running in the front end;

[0024] The tags corresponding to the application software are sorted in descending order according to the first usage duration of the application software, so as to be used for sorting the tags in the user tags.

[0025] Furthermore, the step of controlling the front camera of the user terminal to capture an image includes:

[0026] After the application software is running on the front end, obtaining a second usage time of the application software;

[0027] When the second usage time exceeds a preset time threshold, the front camera of the user terminal is controlled to capture images.

[0028] The present application also provides a device for establishing a user tag based on face recognition, comprising:

[0029] A collection module, used for a user terminal to collect applications running on its front end;

[0030] A determination module, used to determine whether the application is a preset application software;

[0031] A control module, configured to control a front camera of a user terminal to capture an image if the application software is a preset application software;

[0032] An extraction module, used to extract first face information from the image;

[0033] A matching module, used to search the user terminal for second facial information matching the first facial information;

[0034] A setting module is used to set the label of the application software to the user label of the user corresponding to the second facial information if the second facial information is found.

[0035] The present application also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0036] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0037] The method, device and computer equipment for establishing user tags based on face recognition of the present application, the mobile phone collects the facial information of the person using the software through the software when the front-end is running, and after determining that the facial information of the user is the same as the facial information of the user, the corresponding tag is added to the user according to the tag of the software, so that the user's tag can be established more accurately according to the tag of the software. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flowchart of a method for establishing user tags based on face recognition according to an embodiment of the present application;

[0039] Figure 2 This is a schematic block diagram of the structure of an apparatus for establishing user tags based on face recognition according to an embodiment of the present application;

[0040] Figure 3 A schematic block diagram of the structure of a matching module of an apparatus for establishing user tags based on face recognition according to an embodiment of the present application;

[0041] Figure 4 This is a schematic block diagram of the structure of an apparatus for establishing user tags based on face recognition according to an embodiment of the present application;

[0042] Figure 5 This is a schematic block diagram of the structure of an apparatus for establishing user tags based on face recognition according to an embodiment of the present application;

[0043] Figure 6 This is a schematic block diagram of the structure of an apparatus for establishing user tags based on face recognition according to an embodiment of the present application;

[0044] Figure 7 This is a schematic block diagram of the structure of a control module of an apparatus for establishing user tags based on face recognition according to an embodiment of the present application;

[0045] Figure 8 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.

[0046] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] Reference Figure 1 The present application embodiment provides a method for establishing a user tag based on face recognition, comprising the steps of:

[0049] S1, the user terminal collects the applications running on its front end;

[0050] S2, determining whether the application is a preset application software;

[0051] S3: If yes, control the front camera of the user terminal to capture images;

[0052] S4, extracting first face information of the image;

[0053] S5. Searching the user terminal for second facial information that matches the first facial information;

[0054] S6. If the second facial information is found, setting the label of the application software to the user label of the user corresponding to the second facial information.

[0055] In this embodiment, the user terminal refers to a user's mobile phone or computer or other intelligent terminal, and the user terminal has a front camera. The user terminal scans the internal application software, reads all the application software names, and monitors all the preset application software. Specifically, it monitors whether each preset application software is in use, the usage time, the usage duration, the usage status, etc. The preset application software refers to the application software with obvious usage characteristics, which is preset by the staff of the executor of this method. The user terminal receives the name of the preset application software set by the staff, and then monitors these preset application software. Alternatively, the user terminal first obtains the application running on the front end, and then determines whether the application is the application software preset by the staff. Front-end operation means that the running interface of the application software is displayed on the display screen of the user terminal; there are two states in the software operation, one is background operation, that is, the software is not displayed on the display screen when it is running, and the other is front-end operation, that is, the running interface of the software is displayed on the display screen when it is running. For example, the user opens the music software in the mobile phone, plays music, and then opens the chat software to chat. At this time, the music software is running in the background and the chat software is running in the front end. When the user terminal obtains that the preset application software is running at the front end, the front camera of the user terminal is controlled to turn on, and whether there is a face in front of the user terminal is identified. If there is, a photo is taken to capture the face in front of the user terminal. In this application, it is assumed that the face photo taken by the user terminal is a face photo of the person using the application software on the user terminal. After the user terminal obtains the face photo with a face taken by the front camera, the facial information in the face photo is extracted to obtain the first face information. When the photo taken by the front camera of the user terminal contains multiple face pictures, the information corresponding to the face picture with the largest size is used as the first face information.

[0056] The user terminal also stores second facial information, which includes the second facial information obtained after collecting the user's facial information, and then stored in the user terminal for easy access. The user terminal matches the first facial information of the person using the software of the user terminal with the second facial information pre-stored in the user terminal. If the match is successful, it means that the person using the software of the user terminal is the user himself, so the label of the software is set to the user label of the user. The label of the application software is set by the software developer based on the nature of the application software, the main audience of the application software and other information related to the application software. For example, a certain application software is an RPG team battle game software, which is mainly played by young people. The software is a label including game, RPG, team, battle, and young. Correspondingly, the label is set to the user label of the user corresponding to the second facial information, indicating that the user is a young person and likes to play games.

[0057] In one embodiment, the second facial information includes second facial information corresponding to a plurality of users respectively, and the step S5 of searching the user terminal for the second facial information matching the first facial information includes:

[0058] S51, calculating similarity between the first face information and a plurality of second face information respectively to obtain a plurality of similarity values;

[0059] S52, obtaining the highest value among the plurality of similarity values ​​as a target similarity value;

[0060] S53: Determine that the facial information corresponding to the target similarity value is the second facial information.

[0061] In this embodiment, the processor of the user terminal calls multiple second face information corresponding to multiple users stored in the memory of the user terminal, respectively, and calculates similarity with the first face information collected by the front camera of the user terminal, respectively, and obtains multiple similarity values, and obtains a similarity value after each matching of the first face information with a second face information, and finally obtains similarity values ​​with the same number of second face information, compares the sizes of the multiple similarity values, obtains the maximum similarity value, and determines it as the target similarity value, and determines that the second face information corresponding to the target similarity value is the second face information of the above user. It is determined that the person using the software is one of the target users. Then, the label corresponding to the software is set as the user label of the user. In this embodiment, the user terminal refers to a mobile phone or a tablet computer, and the user, in a narrow sense, is the owner of the mobile phone, but in a broad sense, the user refers to a person who often uses the mobile phone. In life, it is often the case that a mobile phone is often used by multiple people, such as a user's mobile phone is often used by his spouse or children to play games, take pictures, etc. Therefore, in this embodiment, the second facial information of multiple users is stored on a user terminal so that the server can identify the users more accurately and add the users and corresponding user tags to the corresponding users more accurately.

[0062] In one embodiment, after the step S6 of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the method further includes:

[0063] S7: Push the application software with the user tag to the user terminal.

[0064] In this embodiment, each user tag includes at least one tag. When the server determines that the user is using an application software, all application software are called in the server, and the software tags corresponding to all application software are obtained, and then the application software corresponding to the software tag containing any tag in the user tag is pushed to the user terminal, so that the user can use the application software he likes and give the user a better service experience. The application software with the most download times is pushed first.

[0065] In one embodiment, after the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the method further includes:

[0066] S8. Counting the types and corresponding quantities of all user tags of the user;

[0067] S9. Sort the types of the user tags according to the quantity of each user tag to obtain a user tag ranking list of the user.

[0068] In this embodiment, each time the user terminal collects an application software and uses it, it sets the label of the application software as the user label. Different application software may have the same user label. Therefore, after the user uses multiple application software, the same user label may appear multiple times in the user labels of the above user. The user terminal will count the number of user labels of each type of the user, and then sort the user labels in descending order according to the number to generate a user label ranking list.

[0069] In one embodiment, after the step of sorting the types of the user tags according to the number of each user tag to obtain the user tag ranking list of the user, the following steps are included:

[0070] S10: Pushing the application software corresponding to the tag ranked at a preset position in the ranking list to the user terminal.

[0071] In this embodiment, each user tag contains at least one tag, which is not in a parallel position in the user tags, but is ranked according to the user's preference. According to the user's manual selection or the user's behavior, there is a ranking list for all the user's tags, and the ranking list is stored in the user terminal. The server accesses the memory of the user terminal, obtains the ranking list of the user's user tags, and then reads out the tags with the first preset ranking in the ranking list. The server then searches for application software containing the above-mentioned tags ranked in the preset ranking on its internal platform, that is, searches out the user's favorite application software, and then pushes these application software to the user terminal.

[0072] In one implementation, after the step S6 of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the method includes:

[0073] S611, obtaining a first usage duration of each preset application software of the user terminal running in the front end;

[0074] S612: Sort the tags corresponding to the application software in descending order according to the first usage duration of the application software, so as to sort the tags in the user tags.

[0075] In this embodiment, each application software will generate a usage log when used and record it in the memory of the user terminal. The server obtains the usage log of all application software of the user terminal and reads the first usage time of all application software running on the front end. The preferred solution is to read the first usage time of all application software in the past month or week, and then sort all application software according to the time to obtain the first usage time table of application software, and then load the software tag of each application software to the corresponding application software in the first usage time table, that is, to obtain the user tag after sorting each tag, that is, to sort the user's various tags, more accurately understand the user's preferences, and help recommend corresponding application software according to the user's preference level for each tag.

[0076] In another preferred solution, when reading the first usage time of all application software, the usage time of the application software in the past month is divided by the installation time of the application software in the user terminal in the past month to obtain the usage rate of the application software, and the user's tags are sorted according to the usage rate of each application software. This can avoid the situation where the tag corresponding to the favorite application software downloaded by the user is ranked low in the user's tags, and the user's tags cannot be accurately sorted.

[0077] In one embodiment, the step S3 of controlling the front camera of the user terminal to capture an image includes:

[0078] S31, after the application software is running on the front end, obtaining a second usage duration of the application software;

[0079] S32: When the second usage time exceeds a preset time threshold, control the front camera of the user terminal to capture images.

[0080] In this embodiment, the control terminal monitors the usage status of the application software. When the application software is started, the timing starts and the second usage time of the application software is recorded. The startup time of the application software is subtracted from the current time to obtain the second usage time of the application software. When the second usage time exceeds the preset time threshold, it means that the user is interested in the application software and the label of the application software is suitable as the user's label. Then, the front camera of the user terminal is controlled to capture images to determine whether the person using the mobile phone is the user himself.

[0081] To sum up, the method of establishing user tags based on face recognition in the present application collects the facial information of the person using the software when the software is running on the front end, and after determining that the facial information of the person using the software is the same as the facial information of the user, the corresponding tag is added to the user based on the software tag, so that the user's tag can be established more accurately based on the software tag.

[0082] Reference Figure 2 In an embodiment of the present application, a device for establishing a user tag based on face recognition is also provided, comprising:

[0083] Collection module 1, used for user terminal to collect application programs running on its front end;

[0084] Determination module 2, used to determine whether the application is a preset application software;

[0085] A control module 3, configured to control a front camera of a user terminal to capture an image if the application software is a preset application software;

[0086] Extraction module 4, used to extract first face information from the image;

[0087] A matching module 5, configured to search the user terminal for second facial information matching the first facial information;

[0088] The setting module 6 is used to set the label of the application software to the user label of the user corresponding to the second facial information if the second facial information is found.

[0089] In this embodiment, the user terminal refers to a user's mobile phone or computer or other intelligent terminal, and the user terminal has a front camera. The user terminal scans the internal application software, reads all the application software names, and monitors all the preset application software. Specifically, it monitors whether each preset application software is in use, the usage time, the usage duration, the usage status, etc. The preset application software refers to the application software with obvious usage characteristics, which is preset by the staff of the executor of this method. The acquisition module 1 receives the name of the preset application software set by the staff, and then monitors these preset application software. Alternatively, the acquisition module 1 first obtains the application running on the front end, and then the judgment module 2 determines whether the application is the application software preset by the staff. Front-end operation refers to the display screen of the application software on the user terminal; there are two states in the software operation, one is background operation, that is, the software is not displayed on the display screen when it is running, and the other is front-end operation, that is, the running interface of the software is displayed on the display screen when it is running. For example, the user opens the music software in the mobile phone, plays music, and then opens the chat software to chat. At this time, the music software is running in the background and the chat software is running in the front end. When the judgment module 2 determines that the preset application software is running at the front end, the control module 3 controls the front camera of the user terminal to turn on and identify whether there is a face in front of the user terminal. If there is, take a photo and take a photo of the face in front of the user terminal. In this application, it is assumed that the face photo taken by the user terminal is a face photo of a person using the application software on the user terminal. After the user terminal obtains the face photo with a face taken by the front camera, the extraction module 4 extracts the facial information in the face photo to obtain the first facial information. When the photo taken by the front camera of the user terminal contains multiple facial pictures, the information corresponding to the facial picture with the largest size is used as the first facial information.

[0090] The user terminal also stores second facial information, which includes the second facial information obtained after collecting the user's facial information, and then stored in the user terminal for easy call. The matching module 5 matches the first facial information of the person using the software of the user terminal with the second facial information pre-stored in the user terminal. If the match is successful, it means that the person using the software of the user terminal is the user himself. Therefore, the setting module 6 sets the label of the software to the user label of the user. The label of the application software is set by the software developer according to the nature of the application software, the main audience of the application software and other information related to the application software. For example, a certain application software is an RPG team battle game software, which is mainly played by young people. The software is a label including game, RPG, team, battle, and young. The label is correspondingly set to the user label of the user corresponding to the second facial information, indicating that the user is a young person and likes to play games.

[0091] Reference Figure 3 In one embodiment, the second face information includes second face information corresponding to a plurality of users respectively, and the matching module 5 includes:

[0092] A calculation unit 51 is used to calculate similarity between the first face information and a plurality of second face information to obtain a plurality of similarity values;

[0093] A first acquisition unit 52 is used to acquire the highest value among the plurality of similarity values ​​as a target similarity value;

[0094] The determination unit 53 is used to determine that the facial information corresponding to the target similarity value is the second facial information.

[0095] In this embodiment, the processor of the user terminal calls multiple second face information corresponding to multiple users stored in the memory of the user terminal, and the calculation unit 51 respectively performs similarity calculation with the first face information collected by the front camera of the user terminal to obtain multiple similarity values. After each matching of the first face information with a second face information, a similarity value is obtained, and finally the same number of similarity values ​​as the second face information is obtained. The first acquisition unit 52 compares the size of the multiple similarity values, obtains the maximum similarity value, and determines it as the target similarity value. The determination unit 53 determines that the second face information corresponding to the target similarity value is the second face information of the above user. It is determined that the person using the software is one of the target users. Then, the label corresponding to the software is set as the user label of the user. In this embodiment, the user terminal refers to a mobile phone or a tablet computer. The user, in a narrow sense, is the owner of the mobile phone, but in a broad sense, the user refers to a person who often uses the mobile phone. In life, it is often the case that a mobile phone is often used by multiple people, such as a user's mobile phone is often used by his spouse or children to play games, take pictures, etc. Therefore, in this embodiment, the second facial information of multiple users is stored on a user terminal so that the server can identify the users more accurately and add the users and corresponding user tags to the corresponding users more accurately.

[0096] Reference Figure 4 In one embodiment, the apparatus for establishing user tags based on face recognition further includes:

[0097] The first push module 7 is used to push the application software with the user tag to the user terminal.

[0098] In this embodiment, each user tag includes at least one tag. When the server determines that the user is using an application software, all application software are called in the server, and the software tags corresponding to all application software are obtained, and then the first push module 7 pushes the application software corresponding to the software tag containing any tag in the user tag to the user terminal, so that the user can use the application software he likes and give the user a better service experience. The application software with the most download times is pushed first.

[0099] Reference Figure 5 In one embodiment, the apparatus for establishing user tags based on face recognition further includes:

[0100] A counting module 8 is used to count the types and corresponding quantities of all user tags of the user;

[0101] The first sorting module 9 is used to sort the types of the user tags according to the quantity of each user tag to obtain a user tag ranking list of the user.

[0102] In this embodiment, each time a user terminal collects an application software and uses it, the application software label is set as the user label. Different application software may have the same user label. Therefore, after the user uses multiple application software, the same user label may appear multiple times in the user labels of the above user. The counting module 8 counts the number of user labels of each type of the user, and then the first sorting module 9 sorts the user labels in descending order according to the size of the number to generate a user label ranking list.

[0103] In one embodiment, the apparatus for establishing a user tag based on face recognition further includes:

[0104] The second push module 10 pushes the application software corresponding to the tag ranked at a preset position in the ranking list to the user terminal.

[0105] In this embodiment, each user tag contains at least one tag, which is not in a parallel position in the user tags, but is ranked according to the user's preference. According to the user's manual selection or according to the user's behavior, there is a ranking list for all the user's tags, and the ranking list is stored in the user terminal. The server accesses the memory of the user terminal to obtain the ranking list of the user's user tags, and then the second push module 10 reads out the tags with the first preset ranking in the ranking list, and then the server searches for the application software containing the above-mentioned tags ranked in the preset ranking on its internal platform, that is, searches out the user's favorite application software, and then the second push module 10 pushes these application software to the user terminal.

[0106] Reference Figure 6 In one embodiment, the apparatus for establishing user tags based on face recognition further includes:

[0107] The first acquisition module 611 is used to acquire the first usage time of each preset application software of the user terminal running on the front end;

[0108] The second sorting module 612 is used to sort the tags corresponding to the application software in descending order according to the first usage time of the application software, so as to sort the tags in the user tags.

[0109] In this embodiment, each application software will generate a usage log when in use and record it in the memory of the user terminal. The first acquisition module 611 acquires the usage log of all application software of the user terminal and reads out the first usage time of all application software running on the front end. The preferred solution is to read out the first usage time of all application software in the last month or week, and then the second sorting module 612 sorts all application software according to the time to obtain a first usage time table of the application software, and then loads the software tag of each application software to the corresponding application software in the first usage time table, that is, obtains the user tag after sorting each tag, that is, sorting each user's tags, which is more accurate for user preferences and is conducive to recommending corresponding application software according to the degree of preference of each user's tag.

[0110] In another preferred solution, when reading the first usage time of all application software, the usage time of the application software in the past month is divided by the installation time of the application software in the user terminal in the past month to obtain the usage rate of the application software, and the user's tags are sorted according to the usage rate of each application software. This can avoid the situation where the tag corresponding to the favorite application software downloaded by the user is ranked low in the user's tags, and the user's tags cannot be accurately sorted.

[0111] Reference Figure 7 In one embodiment, the control module 3 includes:

[0112] The second acquisition unit 31 is used to acquire the second usage time of the application software after the application software is running on the front end;

[0113] The control unit 32 is configured to control the front camera of the user terminal to capture images when the second usage time exceeds a preset time threshold.

[0114] In this embodiment, the control terminal monitors the usage status of the application software. When the application software is started, the timing starts, and the second acquisition unit 31 records the second usage time of the application software. The second acquisition unit 31 obtains the second usage time of the application software by subtracting the startup time of the application software from the current time. When the second usage time exceeds the preset time threshold, it means that the user is interested in the application software, and the label of the application software is suitable as the user's label. Then the control unit 32 controls the front camera of the user terminal to capture images to determine whether the person using the mobile phone is the user himself or another user of the mobile phone.

[0115] To sum up, the device for establishing user tags based on face recognition of the present application collects the facial information of the person using the software when the software is running on the front end, and after determining that the facial information of the person using the software is the same as the facial information of the user, adds a corresponding tag to the user based on the software tag, so that the user's tag can be established more accurately based on the software tag.

[0116] Reference Figure 8 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as images, first facial information, second facial information, etc. collected by the user terminal. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for establishing a user tag based on face recognition is implemented.

[0117] The above-mentioned processor executes the steps of the above-mentioned method for establishing user tags based on face recognition: the user terminal collects the application running on its front end; determines whether the application is a preset application software; if so, controls the front camera of the user terminal to collect an image; extracts the first face information of the image; searches for the second face information matching the first face information in the user terminal; if the second face information is found, sets the tag of the application software to the user tag of the user corresponding to the second face information.

[0118] In one embodiment, the second facial information includes second facial information corresponding to multiple users respectively, and the above-mentioned processor executes the step of searching the user terminal for second facial information matching the first facial information, including: calculating the similarity between the first facial information and multiple second facial information respectively to obtain multiple similarity values; obtaining the highest value among the multiple similarity values ​​as the target similarity value; and determining that the facial information corresponding to the target similarity value is the second facial information.

[0119] In one embodiment, after the processor executes the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the process further includes: pushing the application software with the user tag to the user terminal.

[0120] In one embodiment, after the processor executes the step of setting the label of the application software to the user label of the user corresponding to the second facial information, it includes: counting the types and corresponding quantities of all user labels of the user; sorting the types of user labels according to the quantity of each user label to obtain a user label ranking list of the user.

[0121] In one embodiment, after the processor executes the step of sorting the types of user tags according to the number of each user tag to obtain a user tag ranking list of the user, it includes: pushing the application software corresponding to the tag ranked in a preset position in the ranking list to the user terminal.

[0122] In one embodiment, after the processor executes the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, it includes: obtaining the first usage time of each preset application software of the user terminal running on the front end; sorting the tags corresponding to the application software in descending order according to the first usage time of the application software, so as to sort the tags in the user tags.

[0123] In one embodiment, the processor executes the step of controlling the front camera of the user terminal to capture images, including: when the application software is running on the front end, obtaining a second usage time of the application software; when the second usage time exceeds a preset time threshold, controlling the front camera of the user terminal to capture images.

[0124] To sum up, the computer device of the present application collects the facial information of the person using the software when the software is running at the front end. After determining that the facial information of the person using the software is the same as the facial information of the user, the corresponding label is added to the user according to the label of the software, so that the user's label can be established more accurately according to the label of the software.

[0125] Those skilled in the art will understand that Figure 8 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0126] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method for establishing a user tag based on face recognition is implemented, specifically: a user terminal collects an application running on its front end; determines whether the application is a preset application software, and if so, controls the front camera of the user terminal to collect an image; extracts first face information from the image; searches the user terminal for second face information matching the first face information; if the second face information is found, sets the tag of the application software to the user tag of the user corresponding to the second face information.

[0127] In one embodiment, the second facial information includes second facial information corresponding to multiple users respectively, and the above-mentioned processor executes the step of searching the user terminal for second facial information matching the first facial information, including: calculating the similarity between the first facial information and multiple second facial information respectively to obtain multiple similarity values; obtaining the highest value among the multiple similarity values ​​as the target similarity value; and determining that the facial information corresponding to the target similarity value is the second facial information.

[0128] In one embodiment, after the processor executes the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the process further includes: pushing the application software with the user tag to the user terminal.

[0129] In one embodiment, after the processor executes the step of setting the label of the application software to the user label of the user corresponding to the second facial information, it includes: counting the types and corresponding quantities of all user labels of the user; sorting the types of user labels according to the quantity of each user label to obtain a user label ranking list of the user.

[0130] In one embodiment, after the processor executes the step of sorting the types of user tags according to the number of each user tag to obtain a user tag ranking list of the user, it includes: pushing the application software corresponding to the tag ranked in a preset position in the ranking list to the user terminal.

[0131] In one embodiment, after the processor executes the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, it includes: obtaining the first usage time of each preset application software of the user terminal running on the front end; sorting the tags corresponding to the application software in descending order according to the first usage time of the application software, so as to sort the tags in the user tags.

[0132] In one embodiment, the processor executes the step of controlling the front camera of the user terminal to capture images, including: when the application software is running on the front end, obtaining a second usage time of the application software; when the second usage time exceeds a preset time threshold, controlling the front camera of the user terminal to capture images.

[0133] To sum up, the computer device of the present application collects the facial information of the person using the software when the software is running at the front end. After determining that the facial information of the person using the software is the same as the facial information of the user, the corresponding label is added to the user according to the label of the software, so that the user's label can be established more accurately according to the label of the software.

[0134] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0135] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.

[0136] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for establishing user tags based on face recognition, It is characterized in that include: The user terminal collects the applications running on its front end; Determining whether the application is a preset application software; If yes, control the front camera of the user terminal to capture images; Extracting first face information from the image; Searching the user terminal for second facial information that matches the first facial information; If the second facial information is found, the label of the application software is set to the user label of the user corresponding to the second facial information.

2. The method for establishing user tags based on face recognition as claimed in claim 1, It is characterized in that The second facial information includes second facial information corresponding to a plurality of users respectively, and the step of searching the user terminal for second facial information matching the first facial information includes: Calculate similarity between the first face information and multiple second face information to obtain multiple similarity values; Obtaining the highest value among the plurality of similarity values ​​as a target similarity value; Determine that the facial information corresponding to the target similarity value is the second facial information.

3. The method for establishing user tags based on face recognition as claimed in claim 1, It is characterized in that After the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the following steps are included: Push the application software with the user tag to the user terminal.

4. The method for establishing user tags based on face recognition as claimed in claim 1, It is characterized in that After the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the step includes: Count the types and corresponding quantities of all user tags of the user; The types of the user tags are sorted according to the quantity of each of the user tags to obtain a user tag ranking list of the user.

5. The method for establishing user tags based on face recognition as claimed in claim 4, It is characterized in that After the step of sorting the types of the user tags according to the quantity of each user tag to obtain the user tag ranking list of the user, the method further comprises: The application software corresponding to the tag ranked at a preset position in the ranking list is pushed to the user terminal.

6. The method for establishing user tags based on face recognition as claimed in claim 1, It is characterized in that After the step of setting the tag of the application software to the user tag of the user corresponding to the second facial information, the following steps are included: Obtaining a first usage time of each preset application software of the user terminal running in the front end; The tags corresponding to the application software are sorted in descending order according to the first usage duration of the application software, so as to be used for sorting the tags in the user tags.

7. The method for establishing user tags based on face recognition as claimed in claim 1, It is characterized in that The step of controlling the front camera of the user terminal to capture an image comprises: After the application software is running on the front end, obtaining a second usage time of the application software; When the second usage time exceeds a preset time threshold, the front camera of the user terminal is controlled to capture images.

8. A device for establishing user tags based on face recognition, It is characterized in that include: A collection module, used for a user terminal to collect applications running on its front end; A determination module, used to determine whether the application is a preset application software; A control module, configured to control a front camera of a user terminal to capture an image if the application software is a preset application software; An extraction module, used to extract first face information from the image; A matching module, used to search the user terminal for second facial information matching the first facial information; A setting module is used to set the label of the application software to the user label of the user corresponding to the second facial information if the second facial information is found.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.