Information push method, device, terminal equipment and storage medium
By collecting scene images on smart terminals, performing face recognition and relationship matching, and determining scene types, the problem of inaccurate information push on smart terminals is solved and more accurate information push is achieved.
Patent Information
- Application Number
- CN202110851172.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-07-27
AI Technical Summary
Existing smart terminals lack accuracy when pushing information and fail to fully consider the relationships between characters in the scene, resulting in inaccurate information push.
Collect scene images through the camera, perform face recognition, match the character relationship library, determine the relationship between characters, and then determine the scene type and generate push information.
It improves the accuracy of information push, makes the pushed information more in line with the current scenario, meets user needs, and solves the problem of inaccurate information push.
Smart Images

Figure CN113612830B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image recognition technology, and in particular to an information push method, apparatus, terminal device and storage medium. Background Art
[0002] With the rapid development of science and technology, today's society has entered the information age. More and more information has entered people's field of vision, making people dizzy. Therefore, information screening is particularly important in this information age.
[0003] Currently, smart terminals can filter out the information users need and push it by collecting their personal information. However, in the face of people's growing demand for the intelligence of smart terminals, current smart terminals have the problem of inaccurate information pushed to users. Summary of the invention
[0004] The embodiment of the present application discloses an information push method, which can comprehensively consider the association relationship between multiple characters and target users in the current scene, so as to determine the scene type of the current scene, so that the generated push information conforms to the scene type, thereby improving the accuracy of the push information.
[0005] The embodiment of the present application discloses an information push method, comprising: collecting scene images through a camera; performing face recognition on the scene images to obtain a number of face area images; matching the several face area images with a character relationship library of a target user to determine the relationship attributes corresponding to each face area image, wherein the relationship attributes are used to describe the association relationship between the character objects corresponding to each face area image and the target user; determining a scene type based on the relationship attributes corresponding to each face area image; and generating push information based on the scene type.
[0006] The embodiment of the present application discloses an information push device, including: an image acquisition module, used to acquire scene images through a camera; a face recognition module, used to perform face recognition on the scene images to obtain a plurality of face area images; a relationship confirmation module, used to match the plurality of face area images with a character relationship library of a target user, and determine the relationship attributes corresponding to each face area image, wherein the relationship attributes are used to describe the association relationship between each face area image and the target user; a scene type determination module, used to determine the scene type based on the relationship attributes corresponding to each face area image; and a push information generation module, used to generate push information based on the scene type.
[0007] An embodiment of the present application discloses a terminal device, including: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any method disclosed in the embodiment of the present application.
[0008] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any method disclosed in the embodiment of the present application when executed by a processor.
[0009] The embodiment of the present application also discloses a computer program product. When the computer program product is run on a terminal device, the terminal device implements any method disclosed in the embodiment of the present application when executing the computer program product.
[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0011] The scene image is captured by a camera, and the association relationship between each character object and the target user in the scene image is identified, and the scene type is determined according to the association relationship. The scene type can more specifically describe the current scene where each character object is located, and push information is generated based on the scene type. In the embodiment of the present application, the determination of the push information is based on the association relationship between the target user and / or other character objects in the current scene, and the information that conforms to the current scene can be pushed out more accurately, thereby improving the accuracy of the push information, meeting the needs of users, and solving the problem of inaccurate push information in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 This is a schematic diagram of an application scenario of an information push method provided by an embodiment of the present application;
[0014] Figure 2 is a system structure diagram of a terminal device provided in an embodiment of the present application;
[0015] Figure 3 This is a flowchart of an implementation of an information push method provided by an embodiment of the present application;
[0016] Figure 4 This is a flowchart for determining the relationship attributes corresponding to each face region image provided by an embodiment of the present application;
[0017] Figure 5 is a flowchart of an implementation of an information push method provided by another embodiment of the present application;
[0018] Figure 6This is a schematic diagram of a user terminal interface provided by an embodiment of the present application;
[0019] Figure 7 is a flowchart for implementing the determination of scene types based on the relationship attributes corresponding to the facial region images provided by an embodiment of the present application;
[0020] Figure 8 is a flowchart for implementing the generation of push information based on the scenario type provided by an embodiment of the present application;
[0021] Fig. 9 It is a structural diagram of an information push device provided by an embodiment of the present application;
[0022] Fig.10 It is a structural diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0025] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0026] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0028] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0029] In the embodiment of the present application, the execution subject of the process is a terminal device. The terminal device may include but is not limited to a smart phone, a smart wearable device, a tablet computer, a laptop computer, a vehicle terminal, a PC (Personal Computer), etc. Optionally, the terminal device can perform image acquisition through a camera set on the terminal device or a camera connected to the terminal device.
[0030] Figure 1 A schematic diagram showing an application scenario of the information push method provided by an embodiment of the present application is shown. Figure 1 The camera 12 can be installed in the entrance 10 to obtain the scene image of the door 11 to identify the person entering the house.
[0031] In one application scenario, the camera 12 captures an image of a person passing by the door 11, so that the face recognition module can recognize that the owner 13 has returned home, and based on the owner 13 returning home, a voice message welcoming the owner home or music preset by the owner 13 can be played. However, this technology only pushes information related to the owner 13, and does not fully consider other people who return home with the owner 13 (e.g. Figure 1 As shown in the companion 14), the information push is not accurate enough and cannot meet the information push needs of various scene types.
[0032] The embodiments of the present application disclose an information push method, apparatus, terminal device and storage medium, which collects scene images of the current scene through a camera, identifies all persons in the current scene and the relationships between each person, determines the scene type of the current scene, and generates corresponding push information. Figure 1, the scene image of the current entrance 10 is obtained through the camera 12, and the two people passing through the door 11 are identified through image recognition as the owner 13 and his partner 14, and the scene type is determined to be a date at home for two people, and romantic music can be played to set the atmosphere. The information push method disclosed in the embodiment of the present application can push out information that meets the current scene more accurately, meet user needs, and avoid the disadvantage of only pushing information related to the current user without considering other people in the current scene, and the push information is not accurate enough.
[0033] See also Figure 2 , Figure 2 The system structure diagram of the terminal device provided by an embodiment of the present application is shown. The terminal device 20 is equipped with a camera module 21 for collecting scene images; the processor 22 performs image recognition on the scene image, identifies the identity information of all persons in the scene image based on the historical images stored in the memory 23, generates push information based on the identity information of all persons, and sends the push information to the application layer, so that the music application 24 of the application layer feeds back the music data corresponding to the push information to the audio playback module 25, and the audio playback module 25 outputs the music data. Figure 1 To give an example, the camera 12 acquires the scene image at the current entrance 10, and the processor 22 recognizes that the two people passing through the door 11 are the owner 13 and his partner 14, and determines that the scene type is a home date for the two people, generates push information of the scene type, and sends the push information to the music application 24. The music application 24 feeds back the romantic music corresponding to the push information to the audio playback module 25, and the audio playback module 25 plays the romantic music.
[0034] It should be understood that the information push method disclosed in the embodiment of the present application can also be used in other application scenarios. Exemplarily, the terminal device is a vehicle-mounted terminal, and the camera can be installed in the car to capture scene images in the car to identify the relationship between all people in the car and the target user (such as the car owner), determine the scene type of the current scene in the car, and generate corresponding push information. For example, it is identified that the two people in the car are the car owner and the car owner's girlfriend, and the current scene in the car is determined to be a driving dating scene, and push information corresponding to the driving dating scene is generated, such as information about the dating location; exemplarily, the push information can be sent to a navigation application to enable the navigation application to generate route information to the dating location.
[0035] It should be understood that the process of the information push method disclosed in the embodiment of the present application can also be executed on different terminal devices. For example, the above-mentioned process of collecting scene images through a camera can be executed on a camera device, and the above-mentioned image recognition of the scene image and / or matching based on the identity information of two people with the character relationship library of the target user corresponding to the target account currently logged in to the local terminal can be performed on the server; the above-mentioned determination of the scene type corresponding to the current scene based on the relationship attributes corresponding to the respective face area images and / or generation of push information based on the scene type can be performed on the local terminal; there is data interaction between the above-mentioned camera device and the server and the local terminal, the camera device sends the collected scene image to the local terminal, the local terminal sends the scene image to the server, the server performs image recognition on the scene image, and feeds back the identified identity information to the local terminal; or the server matches the identified identity information of each character object with the character relationship library of the target user, obtains the association relationship between each object and the target user, and feeds back to the local device. It should be understood that the above-mentioned camera equipment, server and local terminal in this application can be any other terminal, and the other terminal can complete the corresponding process and perform data interaction, and this application does not limit this.
[0036] Figure 3 The implementation flow chart of the method disclosed in the first embodiment of the present application is shown in FIG. Figure 3 , as detailed below:
[0037] In S301, a scene image is captured by a camera.
[0038] In this embodiment, the camera is used to capture a scene image, which is a scene image captured by the camera, wherein one or more human objects contained in the current scene are included, that is, the scene image can be used to determine the human objects in the current scene. Exemplarily, the above-mentioned scene image capture through the camera can be specifically: when a user's start operation is received, the step of performing image capture through the camera is executed, and the start operation is used to identify that the camera starts to capture the image, that is, when the start operation is received, it means that the user commands the camera to capture the image; in other embodiments, the step of performing image capture of the current scene through the camera can also be performed in real time or based on a preset time interval.
[0039] Exemplarily, the above-mentioned capturing of scene images by a camera may specifically include: capturing temporary images in real time and monitoring them; when a human object is detected in the temporary image, identifying the temporary image with the human object as a scene image; or: sensing by a sensor whether a human object enters the shooting range of the camera; if the sensor senses that a human object enters the shooting range of the camera, the camera captures the image to obtain the scene image.
[0040] It should be understood that the scene image obtained above can be multiple continuous scene images, that is, the scene image is collected by the camera above, and specifically can be: recording by the camera within a preset time period to obtain a scene video of the preset time period, and the scene video contains multiple continuous scene images.
[0041] In S302, face recognition is performed on the scene image to obtain a plurality of face region images.
[0042] In this embodiment, the face region image refers to an image region in the scene image that is identified as a face region.
[0043] In one possible implementation, the above-mentioned performing face recognition on the scene image to obtain a number of face area images may include: importing the scene image into a face recognition model, performing face recognition on the scene image through the face recognition model to obtain a number of face area images.
[0044] As a specific implementation, the face recognition model may include a trained RCNN (Regions with Convolutional Neural Networks features, classification convolutional neural network) model, which can simultaneously output the category (mask) and border (box) image of the target object; exemplarily, the scene image is imported into the RCNN model, and the RCNN model outputs a border image of the scene image that is classified as a face.
[0045] As another specific implementation, the face recognition model can be a classification model for identifying facial key points. The face recognition model can identify all image areas containing faces in the scene image to obtain a number of face area images. Exemplarily, the face recognition model can identify face edge key points in the scene image, and divide the image area containing faces by all face edge key points, and extract the image area containing faces in the scene image to obtain a number of face area images.
[0046] In S303, the plurality of face region images are matched with the character relationship library of the target user to determine the relationship attribute corresponding to each face region image.
[0047] In this embodiment, the relationship attributes corresponding to each face region image are used to describe the association relationship between the person object corresponding to each face region image and the target user. The target user refers to the main person object corresponding to the account currently associated with the terminal device, and can be, for example, the user corresponding to the account currently logged in by the terminal device, or the user corresponding to the primary account preset by the terminal device.
[0048] In one possible implementation, before matching the several face area images with the character relationship library of the target user, the process includes: determining the target user and the target account of the target user; as a specific implementation, identifying the account currently logged in by the terminal device as the target account, and identifying the main character object corresponding to the target account as the target user; as another specific implementation, selecting the corresponding target user from the character objects corresponding to the several face area images and determining the target account based on the target user, and further, based on the preset character object priority, selecting the character object with the highest priority as the target user; or, the priority of each position in the current scene can be preset, and based on the position of each character object in the current scene, selecting the character object at the position with the highest priority (such as the main driving seat in the car scene) as the target user. It should be understood that the historical face images in the above-mentioned historical face image library can be associated with each character object so as to determine the account corresponding to each character object.
[0049] In one possible implementation, the character relationship library of the target user may specifically be a correspondence table of identity identifiers and relationship attributes. The above-mentioned matching of the several facial area images with the character relationship library of the target user may specifically be as follows: using the identity identifier corresponding to each facial area image as an index, traversing the correspondence table of identity identifiers and relationship attributes, and querying to obtain the relationship attributes corresponding to the identity identifiers corresponding to each facial area image.
[0050] In one embodiment of the present application, the above-mentioned plurality of face region images are matched with the character relationship library of the target user to determine the relationship attributes corresponding to each face region image. For details, see Figure 4 , Figure 4 The following is a flowchart of determining the relationship attributes corresponding to each face region image provided by an embodiment of the present application. The implementation process S303 includes S3031 to S3032, which are described in detail as follows:
[0051] In S3031, for each face region image, the face region image is matched with a plurality of sample face images in the person relationship library to determine a target sample face image that matches each face region image.
[0052] In this embodiment, the character relationship library includes multiple sample facial images and relationship attributes corresponding to each sample facial image. The above multiple sample facial images may refer to facial images pre-stored in the character relationship library for representing specific character objects.
[0053] In some embodiments, all the face region images in the scene image obtained in S302 are matched one by one with multiple sample face images in the character relationship library of the target user. If the image similarity of the two images to be matched is greater than or equal to the preset similarity, it indicates that the two images to be matched are successfully matched; further, for each face region image, a target sample face image matching the face region image is determined from the multiple sample face images in the character relationship library.
[0054] In S3032, the relationship attribute corresponding to the target sample face image matching the face region image is determined as the relationship attribute of the face region image.
[0055] In some embodiments, multiple sample facial images in the target user's character relationship library are all provided with relationship attributes related to the target user, which are used to describe the association relationship between the character objects in the sample facial images and the target user, such as the target user himself (i.e., the target user himself), friends, colleagues, partners or children, etc.
[0056] In the above S3031, the target sample face images that are matched by each face area image are determined. Taking a face area image as an example, the relationship attributes of the target sample face images that are matched by the face area image are identified as the relationship attributes of the face area image, and then the association relationship between the face area image and the target user is determined.
[0057] In this embodiment, each face area image is identified through a sample face image to determine the relationship attributes corresponding to each face area image. That is, face recognition is performed on the scene image based on the sample data. The association relationship between the person objects corresponding to each face area image in the scene image and the target user can be more accurately identified, and the relationship between each person object in the scene image can be further determined, so as to subsequently determine the scene type.
[0058] It should be understood that the character objects corresponding to the above-mentioned facial area images may include the above-mentioned target user to directly determine the relationship between the target user and other character objects in the scene image, and the other character objects refer to character objects other than the target user; or may not include the target user to indirectly determine the relationship between other character objects in the scene image, and this application does not limit this.
[0059] In S304, the scene type is determined based on the relationship attributes corresponding to the facial region images.
[0060] In this embodiment, the scene type is used to describe the current scene, and the current scene contains the person objects corresponding to the above-mentioned face region images.
[0061] In this embodiment, the character objects existing in the current scene can be determined by the relationship attributes corresponding to the above-mentioned various face area images, and the scene type of the current scene can be determined according to the character objects in the current scene. For example, the scene type may include many scene types such as family scene (a family of three or more), parent-child scene (one adult plus a child of the adult), alert scene (excluding the owner, only including the wife and children), dating scene (owner and partner) and work scene (owner and colleagues). The above scene types can be selected from preset candidate scene types. Exemplarily, a corresponding table of relationship attributes and candidate scene types in the current scene is preset. The corresponding table can query the corresponding target scene type from multiple candidate scene types based on the relationship attributes corresponding to each face area image; Exemplarily, a classification model of scene types is preset, and the association relationship corresponding to each face area image is input into the classification model to obtain the corresponding scene type. The parameters of the classification model can be user-defined settings. It should be understood that the above-mentioned owner is the above-mentioned target user.
[0062] As an example and not limitation, the above-mentioned determination of the scene type based on the relationship attributes corresponding to the various facial area images may include the following situations: if the relationship attributes corresponding to the various facial area images include the individual, his wife and his son, the scene type may be determined to be a family scene; if the relationship attributes corresponding to the various facial area images include the individual and his son, the scene type may be determined to be a parent-child scene; if the relationship attributes corresponding to the various facial area images include only the partner and the son, the scene type may be determined to be a warning scene; if the relationship attributes corresponding to the various facial area images include the individual and his girlfriend, the scene type may be determined to be a dating scene.
[0063] In S305, push information is generated based on the scenario type.
[0064] In this embodiment, in order to more accurately push the push information required in the current scene, it is necessary to generate push information based on the scene type of the current scene. The push information is determined based on the relationship between the target user and / or other character objects in the current scene. The push information specifically refers to the information that may need to be pushed in the current scene. For example, if the scene type is a two-person dating scene, the push information may include dating recommendations (recommended movies or restaurants, etc.); if the scene type is a parent-child scene, the push information may include a question-and-answer game to enhance parent-child relationships.
[0065] In some embodiments, after the push information is generated based on the scenario type, it may include: outputting the push information. As a specific implementation, the output of the push information may be output in different ways in combination with the various applications of the terminal device, that is, the output of the push information includes: sending the push information to the target application, so that the target application outputs the push information based on its corresponding application type. Exemplarily, the push information may include appointment recommendations (recommended movies or restaurants), combined with a navigation application, the navigation application outputs navigation route information of the cinema or restaurant that recommends showing the movie, and combined with an online review application, outputs selected reviews of the movie or the restaurant; the push information may include appointment background music, combined with a music application, the music application outputs the appointment background music.
[0066] In one embodiment of the present application, the push information includes multimedia information; the multimedia information may be multimedia information such as voice information, picture information or lighting setting information. It should be understood that after the push information is generated based on the scene type, it may also include: outputting multimedia information corresponding to the scene type through a multimedia device, specifically: outputting ambient music or voice corresponding to the scene type through an audio device; outputting a picture corresponding to the scene type through a display device; outputting ambient lighting corresponding to the scene type through a lighting device. Exemplarily, if the scene type is a date scene for two people, the push information may include romantic music or romantic atmosphere lighting, and the romantic music may be output through an audio device or the romantic atmosphere lighting may be output through a lighting device.
[0067] In this embodiment, a scene image is captured by a camera, and the association relationship between each character object and the target user in the scene image is identified, and the scene type is determined according to the association relationship. The scene type can more specifically describe the current scene where each character object is located, and push information is generated based on the scene type. In the embodiment of the present application, the determination of the push information is based on the association relationship between the target user and / or other character objects in the current scene, and information that conforms to the current scene can be pushed out more accurately, thereby improving the accuracy of the push information, meeting user needs, and solving the problem of inaccurate push information in the prior art.
[0068] Figure 5 A flowchart of an information push method according to another embodiment of the present invention is shown. Figure 5 , as detailed below:
[0069] In S501, a scene image is captured by a camera.
[0070] In this embodiment, the relevant description of S501 may refer to the description of S301 above, which will not be repeated here.
[0071] In a possible implementation, the above S501 may specifically be to obtain a scene video of the current scene in a preset time period through a camera, and the scene video includes a plurality of scene images.
[0072] In S502, face recognition is performed on the scene image to obtain a plurality of face region images.
[0073] In a possible implementation, the above S502 may specifically be to perform face recognition on multiple scene images to obtain several face region images. Specifically, face recognition is performed on multiple scene images based on historical face images in the historical face image library, and several human objects that have appeared in the multiple scene images are determined. Taking a human object as an example, the human object is associated with a corresponding identity identifier and a corresponding historical face image, and several face region images of the above several human objects in the multiple scene images are intercepted, and the identity identifiers corresponding to each face region image are determined. Exemplarily, the above multiple scene images include three scene images, and human object A and human object B are identified in the first scene image and the second scene image, and human object B and human object C are identified in the third scene image. Then, the human region images of human object A and human object B in the first scene image and the human region image of human object C in the third scene image are intercepted, and the above several face region images are obtained as a group, and each face region image is associated with the identity identifier of the human object, which are A, B and C respectively.
[0074] In S503, the plurality of face region images are matched with a character relationship library of the target user.
[0075] In this embodiment, the above-mentioned matching of the plurality of face region images with the character relationship library of the target user can be specifically referred to the relevant description of S303, which will not be repeated here. It should be noted that if the first face region image fails to match the character relationship library, step S504 is executed.
[0076] In S504, the first face region image is sent to a user terminal corresponding to the target user, so that the user terminal determines a target relationship corresponding to the first face region image based on the first face region image.
[0077] In this embodiment, the first face region image is any face region image among the plurality of face region images.
[0078] In the present embodiment, the above-mentioned matching of the several face area images with the character relationship library of the target user can be specifically referred to the relevant description of S3031 to S3032 above, and the details will not be repeated here. It should be noted that the first face area image is any face area image among the several face area images. In particular, if the first face area image fails to match the character relationship library, it means that the first face area image does not have a matching target historical face image in the character relationship library of the target user, that is, the first face area image is a stranger's face image for the target user, and then the step of sending the first face area image to the user terminal corresponding to the target user is executed, so that the user terminal determines the target relationship corresponding to the first face area image based on the first face area image. The target relationship is used as the relationship attribute of the first face area image later, that is, the target relationship refers to the association relationship between the character object corresponding to the first face area image and the target user.
[0079] In the first embodiment of the present embodiment, the user terminal determines the target relationship corresponding to the first face region image based on the first face region image. For details, see Figure 6 , Figure 6 A schematic diagram of a user terminal interface provided by an embodiment of the present application is shown. When the user terminal receives the first facial area image sent by the above-mentioned terminal device, the first facial area image is displayed on the interface of the user terminal, and an input bar 62 is displayed at the same time, so that a target relationship of the first facial area image can be subsequently input in the input bar 62 based on a user operation, and the target relationship is fed back to the above-mentioned terminal device, so that the terminal device can update the relationship attributes of the first facial area image based on the target relationship.
[0080] In some embodiments, the above-mentioned sending of the first facial area image to the user terminal corresponding to the target user may specifically include: sending the first facial area image and the character attribute information corresponding to the first facial area image to the user terminal corresponding to the target user, so that the user terminal generates multiple candidate relationships based on the character attribute information, and determines the target relationship from the multiple candidate relationships.
[0081] For example, the character attribute information may include gender and / or age. Figure 6 , Figure 6 The user terminal 60 interface diagram provided by an embodiment of the present application is shown. The user terminal 60 interface includes the first face region image 61, an input field 62, and a drop-down key 63 next to the input field 62. When the user presses the drop-down key 63, a drop-down option list 64 is displayed. Figure 6A drop-down button 63 is preset in the input bar 62, and the drop-down button 63 corresponds to a drop-down option list 64, and a plurality of candidate relationships are displayed on the drop-down option list 64. It should be understood that the above-mentioned generation of multiple candidate relationships based on the character attribute information can specifically be to generate multiple candidate relationships based on the character attribute information and the personal information of the target user, that is, the generation of multiple candidate relationships needs to consider the personal information of the target user. As an example, the character attribute information includes gender information of female, and the gender of the target user is male, then the multiple candidate relationships may include: female associations such as daughter, girlfriend, wife or mother; further, the character attribute information also includes age information of 25, and the age of the target user is 26, then the multiple candidate relationships may include: girlfriend, wife, female colleague and other close female associations. It should be understood that Figure 6 In the input field 62 shown, in addition to being able to select multiple candidate relationships from the drop-down option list 64, a user-defined target relationship can also be selected. Sending the character attribute information so that the user terminal generates multiple candidate relationships based on the character attribute information for the user to select when redefining the relationship with the stranger can improve the efficiency of the user in redefining the relationship with the stranger.
[0082] It should be understood that the above-mentioned user terminal determines the target relationship corresponding to the first face area image based on the first face area image, and specifically can also be: matching the first face area image with the private character relationship library in the user terminal. The relevant description can refer to the description of S303 above, which will not be repeated here. It should be noted that by setting the private character relationship library of the user terminal, the user's privacy can be improved.
[0083] In another embodiment of the present application, after the above-mentioned first facial area image fails to match the character relationship library, it may also include: traversing the character relationship library of the target user's associated users, querying the associated sample images that match the first facial area image, and if the associated sample image that matches the first facial area image is queried, updating the relationship attributes of the first facial area image based on the relationship attributes of the queried associated sample images.
[0084] In some embodiments, the above-mentioned associated user is a user corresponding to a sample face image contained in a character relationship library of the target user, that is, a character object corresponding to the above-mentioned sample face image. The above-mentioned target user is associated with one or more associated users, and each associated user is configured with a corresponding relationship attribute relative to the target user. If the above-mentioned first face area image fails to match the character relationship library, the associated sample image matching the first face area can be queried in the character relationship library of all associated users of the target user, and the reference range for determining the relationship attribute corresponding to the first face area image is further expanded. If there is an associated sample image matching the first face area image in the character relationship library of an associated user, then based on the relationship attribute of the associated sample image (relative to the associated user) and the relationship attribute of the associated user relative to the target user, the relationship attribute corresponding to the first face area image (relative to the target user) is determined. Exemplarily, the relationship attribute of the associated sample image is daughter (relative to the associated user), and the relationship attribute of the associated user relative to the target user is neighbor, then the relationship attribute corresponding to the first face area image (relative to the target user) is determined to be the neighbor's daughter.
[0085] It should be understood that there is another possible implementation method, the above-mentioned matching of the several face area images with the character relationship library of the target user can be specifically as follows: based on a preset overall character relationship library and a determined target user, a character relationship library of the target user is generated; the overall character relationship library includes a method for describing the association relationship between each character object and the target user, and the character relationship library of the target user is used to configure corresponding relationship attributes for each character object based on the above-mentioned overall character relationship library, taking the character object corresponding to the target user as "the person himself". In this method, after the above-mentioned first face area image fails to match the character relationship library, the above-mentioned operation of traversing the character relationship library of the associated users of the target user and querying the associated sample image matching the first face area image will not occur, because the overall character relationship library can describe the character relationship library of all users.
[0086] In S505, the target relationship fed back by the user terminal is received, the relationship attribute corresponding to the first face area image is updated to the target relationship, and the first face area image and the updated relationship attribute are associated and stored in the character relationship library of the target user.
[0087] In this embodiment, the target relationship is the feedback from the user terminal based on the first face area image. The association relationship corresponding to the first face area image is updated to the target relationship to complete the target user's recognition of the person object corresponding to the first face area image; the first face area image and the updated relationship attribute are associated and stored in the target user's character relationship library, specifically, the first face area image is identified as a sample face image, and the updated relationship attribute is identified as the relationship attribute of the sample face image, and the two are associated and stored in the target's character relationship library to retain this recognition, so that when the first face area image is subsequently identified, it can be confirmed that the relationship attribute corresponding to the first face area image is the updated relationship attribute.
[0088] In S506, based on the relationship attribute corresponding to the first face region image and the relationship attributes corresponding to other face region images, the scene type is determined, and push information is generated based on the scene type.
[0089] In the present embodiment, the other face area images refer to face area images other than the first face area image. The specific description of S506 above can refer to the relevant description of S304 and S305 above, which will not be repeated here. It should be noted that, in particular, the relationship attribute corresponding to the first face area image is the first appearance in the scene image. Therefore, when determining the scene type, it is necessary to associate the scene label of "first time". Exemplarily, the relationship attribute corresponding to the first face area image and the relationship attribute corresponding to the other face area images are girlfriend and myself, respectively. Then, the scene type corresponding to the current scene is determined to be "first time" and "dating scene", and the corresponding push information is generated based on the scene type. For example, the push information may include memorable romantic scenic spot information.
[0090] In this embodiment, by updating the relationship attributes of the first facial area image, the scene type can be adjusted in a timely manner to generate push information that better meets user needs; in particular, based on the update, the scene type containing the "first time" scene label can be determined to generate push information that meets the scene label.
[0091] In this embodiment, in the case where the first face region image fails to match the character relationship library, the first face region image is sent to the user terminal so that the target user redefines the relationship attributes of the character object corresponding to the first face region image, and further determines the influence of the relationship attributes corresponding to the first face region image on the scene type to improve the accuracy of the scene type. It should be understood that after the first face region image fails to match the character relationship library, a warning message about the match failure can be generated. Specifically, the warning message can be used to warn the user that a stranger of the target user has appeared.
[0092] It should be understood that a specific relationship attribute can be preset as a stranger. When the first facial area image fails to match the character relationship library, the relationship attribute of the first facial area image is determined to be a stranger. Taking into account this relatively special relationship attribute of the stranger, the possible associations between the facial area images can be enriched.
[0093] Figure 7 FIG. 1 shows a flowchart of an implementation of determining a scene type based on the association relationship corresponding to each face region image provided by an embodiment of the present application. Figure 3 In the embodiment described above, the information push method S304 provided in this embodiment further includes S701, which is described in detail as follows:
[0094] In S701, the scene type is determined according to the relationship attributes corresponding to the facial region images and the environmental information.
[0095] In this embodiment, the environmental information may be pre-set by the terminal device. For example, when the terminal device is a vehicle-mounted terminal, the environmental information is the car; when the terminal device is a home smart terminal, the environmental information is the home. Compared with the relevant description of S304 above, step S701 of this embodiment adds the corresponding environmental information as one of the determining factors when determining the scene type. As an example and not a limitation, in S304 above, if the relationship attributes corresponding to the above-mentioned facial area images include the person himself and his girlfriend, the scene type can be determined to be a two-person dating scene; and in S701, if the relationship attributes corresponding to the above-mentioned facial area images include the person himself and his girlfriend, the scene type can be determined to be a two-person home dating scene; the scene types of the two are inconsistent, so the push information generated subsequently is also inconsistent.
[0096] It should be understood that the above-mentioned environmental information can be associated with the scene type in the form of a scene label. For example, compared with S304, in S701, if the association relationship corresponding to the above-mentioned facial area images includes the person himself and his girlfriend, it can be determined that the scene type is a double dating scene. The scene type is additionally associated with the scene label of "environment: home", and the push information generated subsequently will also be adjusted based on the scene label of "environment: home".
[0097] In this embodiment, when determining the scene type, currently common environmental information is taken into consideration, which can improve the accuracy of the scene type, so as to generate more accurate push information for the current scene.
[0098] Figure 8 The flowchart of the implementation of generating push information based on the scenario type provided by an embodiment of the present application is shown. Figure 3In the embodiment described above, the information push method S305 provided in this embodiment further includes S801, which is described in detail as follows:
[0099] In S801, the current time is determined, and event information matching the current time is determined according to a preset event schedule.
[0100] In this embodiment, the current time refers to the moment when the current scene is in progress; the above determination of the current time may be specifically referred to the description in the relevant technology, which will not be repeated here.
[0101] In this embodiment, the event schedule is determined in advance based on the target user and the relationship attributes; specifically, the target user and the relationship attributes corresponding to the face area images are used to determine the person objects in the current scene, and the event schedule is determined based on the person objects corresponding to the face area images. The event schedule may include one or more event information and the event time corresponding to each event information.
[0102] Taking an event information as an example, the event information that matches the current time is determined to be the first event information, and the first event information can be any event information in the event timetable. Specifically, the current time and the event time corresponding to each event information in the event timetable can be matched one by one, and the current time matches the event time corresponding to the first event information, and then the event information that matches the current time is determined to be the first event information. The event information is used to describe special events that may exist in the current scenario. For example, in the event timetable, there is an event time that matches the current time, and the special event described by the event information corresponding to the event time is specifically "daughter's birthday", then the event information can specifically be "celebrating daughter's birthday".
[0103] It should be understood that the event information in the above event timetable can be associated with one or more character objects, that is, associated with one or more relationship attributes corresponding to the target user. For example, the special event refers to a wedding anniversary, and the first special event is associated with the target user and his wife; the first special event refers to a birthday, and the first special event can be associated with the target user's daughter. The above event time can refer to a period of time (such as a daughter's birthday) or a moment (such as the time when the daughter is out of school); the above event information can be preset by the target user, or recorded according to the scene type with the "first time" scene label in the above S506, or determined based on historical data stored in the target account of the target user.
[0104] In S802, the push information is determined according to the event information and the scene type.
[0105] In this embodiment, if there is event information matching the current time, it means that there is a special event described by the event information in the current scene. The above-mentioned determination of the push information based on the event information and the scene type can specifically be to generate push information about the event information and the scene type. For example, if the event information is "Celebrating the birthday of my daughter" and the scene type is a family gathering scene (determined based on the target user, his wife and his daughter), the push information generated subsequently must be related to both the event information and the scene type. The push information can be a happy birthday song, birthday atmosphere lighting control information or a blessing voice. For example, the blessing voice can specifically be "Happy birthday to our baby daughter", where "our family" is related to the scene type, and "Happy birthday to my baby daughter" is related to the event information.
[0106] In this embodiment, the current time is determined, event information matching the current time is determined according to a preset event schedule, and push information is determined based on the event information and the above-mentioned scene type. Compared with the push information generated by S305 above, the push information of S801 of this embodiment takes the current time into consideration to meet more possible scene types; the step S801 of this embodiment can enrich the content of the push information.
[0107] Corresponding to the method described in the above embodiment, Fig. 9 A schematic diagram of the structure of an information push device disclosed in an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0108] Reference Fig. 9 The information push device includes: an image acquisition module 91, which is used to acquire scene images through a camera; a face recognition module 92, which is used to perform face recognition on the scene image to obtain a plurality of face area images; a relationship confirmation module 93, which is used to match the plurality of face area images with the character relationship library of the target user, and determine the relationship attributes corresponding to each face area image, and the relationship attributes are used to describe the association relationship between the character object corresponding to each face area image and the target user; a scene type determination module 94, which is used to determine the scene type based on the relationship attributes corresponding to each face area image; and a push information generation module 95, which is used to generate push information based on the scene type.
[0109] Optionally, the above-mentioned relationship confirmation module 93 also includes: a character relationship library matching module, which is used to match the face area image with the multiple sample face images in the character relationship library for each face area image, and determine the target sample face image that matches the face area image; the relationship confirmation module 93 is also used to determine the relationship attributes corresponding to the target sample face image that matches the face area image as the relationship attributes of the face area image.
[0110] Optionally, the above-mentioned relationship confirmation module 93 also includes: a communication module, which is used to send the first face area image to the user terminal corresponding to the target user if the first face area image fails to match the character relationship library, so that the user terminal determines the target relationship corresponding to the first face area image based on the first face area image; the first face area image is any face area image among the several face area images; a relationship attribute updating module, which is used to receive the target relationship feedback from the user terminal, and update the relationship attribute corresponding to the first face area image to the target relationship; and a character relationship library updating module, which is used to associate the first face area image with the updated relationship attribute and store it in the character relationship library of the target user.
[0111] Optionally, the above-mentioned communication module is also used to send the first facial area image and the character attribute information corresponding to the first facial area image to the user terminal corresponding to the target user, so that the user terminal generates multiple candidate relationships based on the character attribute information and determines the target relationship from the multiple candidate relationships.
[0112] Optionally, the above-mentioned relationship attribute updating module is also used to traverse the character relationship library of the target user's associated users and query the associated sample image matching the first face area image if the first face area image fails to match the character relationship library. The associated user is the user corresponding to the sample face image contained in the character relationship library of the target user. If the associated sample image matching the first face area image is queried, the relationship attributes of the first face area image are updated based on the relationship attributes corresponding to the queried associated sample image.
[0113] Optionally, the scene type determination module 94 is further configured to determine the scene type according to the relationship attributes corresponding to the facial region images and the environmental information.
[0114] Optionally, the push information generation module 95 further includes: a current time determination module, used to determine the current time; an event information matching module, used to determine event information matching the current time according to a preset event schedule; the push information generation module 95 is also used to determine the push information according to the event information and the scene type.
[0115] It should be noted that the information interaction, execution process and other contents between the above-mentioned devices are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0116] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0117] Fig.10 FIG. 1 shows a schematic diagram of the structure of a terminal device disclosed in an embodiment of the present application. Fig.10 As shown, the terminal device 100 of this embodiment includes: at least one processor 1010 ( Fig.10 Only one processor is shown in the figure), a memory 1020, and a computer program 1030 stored in the memory 1020 and executable on the at least one processor 1010, wherein the processor 1010 implements the steps of any of the above-mentioned method embodiments when executing the computer program 1030.
[0118] The terminal device 100 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 1010 and a memory 1020. Those skilled in the art will appreciate that Fig.10 It is only an example of the terminal device 100 and does not constitute a limitation on the terminal device 100 , and may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.
[0119] The processor 1010 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0120] In some embodiments, the memory 1020 may be an internal storage unit of the terminal device 100, such as a hard disk or memory of the terminal device 100. In other embodiments, the memory 1020 may also be an external storage device of the terminal device 100, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 100. Further, the memory 1020 may also include both an internal storage unit of the terminal device 100 and an external storage device. The memory 1020 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 1020 may also be used to temporarily store data that has been output or is to be output.
[0121] The embodiment of the present application further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0122] An embodiment of the present application discloses a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0123] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0124] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0125] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0126] In the embodiments disclosed in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An information push method, characterized in that: include: Collect scene images through a camera; Performing face recognition on the scene image to obtain a number of face area images; Matching the plurality of face region images with a character relationship library of a target user, determining a relationship attribute corresponding to each face region image, wherein the relationship attribute is used to describe an association relationship between a character object corresponding to each face region image and the target user; the character relationship library comprises a plurality of sample face images and a relationship attribute between a character object corresponding to each sample face image and the target user; Determining the scene type based on the relationship attributes corresponding to the facial region images; Generate push information based on the scenario type; The matching of the plurality of face region images with the character relationship library of the target user to determine the relationship attributes of the face region images includes: For each face region image, matching the face region image with a plurality of sample face images in the person relationship library to determine a target sample face image that matches the face region image; The relationship attribute corresponding to the target sample face image matching the face region image is determined as the relationship attribute of the face region image.
2. The method according to claim 1, characterized in that The matching of the plurality of face region images with the character relationship library of the target user to determine the relationship attribute corresponding to each face region image includes: If the first face area image fails to match the character relationship library, the first face area image is sent to a user terminal corresponding to the target user, so that the user terminal determines the target relationship corresponding to the first face area image based on the first face area image; the first face area image is any face area image among the plurality of face area images; Receive the target relationship fed back by the user terminal, update the relationship attribute corresponding to the first face area image to the target relationship, and associate the first face area image with the updated relationship attribute and store them in a character relationship library of the target user.
3. The method according to claim 2, characterized in that The sending the first face region image to a user terminal corresponding to the target user includes: The first face area image and the character attribute information corresponding to the first face area image are sent to a user terminal corresponding to the target user, so that the user terminal generates multiple candidate relationships based on the character attribute information and determines a target relationship from the multiple candidate relationships.
4. The method according to claim 2, characterized in that: The matching of the plurality of face region images with the character relationship library of the target user to determine the relationship attribute corresponding to each face region image includes: If the first face region image fails to match the character relationship library, traverse the character relationship library of the target user's associated users to query the associated sample image that matches the first face region image, where the associated user is the user corresponding to the sample face image contained in the character relationship library of the target user; If an associated sample image matching the first facial region image is found, the relationship attributes of the first facial region image are updated based on the relationship attributes corresponding to the found associated sample image.
5. The method according to any one of claims 1 to 4, characterized in that: The determining the scene type based on the relationship attributes corresponding to the facial region images includes: The scene type is determined according to the relationship attributes corresponding to the facial region images and the environmental information.
6. The method according to any one of claims 1 to 4, characterized in that: The generating the push information based on the scenario type includes: Determine the current time, and determine event information matching the current time according to a preset event schedule; the event schedule includes one or more event information and an event time corresponding to each event information; the event schedule is determined in advance based on the target user and the relationship attribute; The push information is determined according to the event information and the scene type.
7. The method according to any one of claims 1 to 4, characterized in that: The push information includes multimedia information.
8. An information push device, characterized in that: include: An image acquisition module, used for acquiring scene images through a camera; A face recognition module, used to perform face recognition on the scene image to obtain a plurality of face area images; A relationship confirmation module is used to match the plurality of face region images with a character relationship library of a target user, and determine the relationship attributes corresponding to each face region image, wherein the relationship attributes are used to describe the association relationship between each face region image and the target user; the character relationship library includes a plurality of sample face images and the relationship attributes between the character object corresponding to each sample face image and the target user; A scene type determination module, used to determine the scene type based on the relationship attributes corresponding to the respective face region images; A push information generation module, used to generate push information based on the scenario type; The relationship confirmation module includes a character relationship library matching module, which is used to match each face region image with a plurality of sample face images in the character relationship library, and determine a target sample face image that matches the face region image; The relationship confirmation module is further used to determine the relationship attribute corresponding to the target sample face image matching the face area image as the relationship attribute of the face area image.
9. A terminal device, characterized in that: include: A memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
