WO2022257306A1 - Identity identification method and apparatus, electronic device, and storage medium - Google Patents

Identity identification method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022257306A1
WO2022257306A1 PCT/CN2021/122138 CN2021122138W WO2022257306A1 WO 2022257306 A1 WO2022257306 A1 WO 2022257306A1 CN 2021122138 W CN2021122138 W CN 2021122138W WO 2022257306 A1 WO2022257306 A1 WO 2022257306A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
historical
spatio
temporal
distribution
Prior art date
Application number
PCT/CN2021/122138
Other languages
French (fr)
Chinese (zh)
Inventor
郑莞蓉
蒋小可
Original Assignee
成都商汤科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 成都商汤科技有限公司 filed Critical 成都商汤科技有限公司
Publication of WO2022257306A1 publication Critical patent/WO2022257306A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to an identification method and device, electronic equipment and a storage medium.
  • face recognition technology has developed rapidly in various industries. For example, in the field of rail transit, face recognition technology can be used as a way to sell tickets. By adding face recognition-based ticketing or ticket checking equipment in rail transit, ticket sales or ticket checking can be realized by collecting facial images of passengers. This method can increase the speed of ticket sales or ticket inspection and reduce unnecessary congestion during peak hours.
  • the present disclosure proposes an identification technical solution.
  • an identification method including: acquiring a first user's captured image and spatio-temporal information, wherein the spatio-temporal information is used to indicate the time and location of the captured image; according to the The collected images of the first user, determine at least one second user in the user database; respectively determine the historical spatio-temporal distribution of the at least one second user, wherein the historical spatio-temporal distribution is used to indicate that the second user is at least Probability of a time period occurring at one or more locations; identifying the first user among the at least one second user based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user .
  • the identifying the first user among the at least one second user based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user comprising: based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, determining the spatio-temporal similarities between the first user and the at least one second user; identifying the first user among the at least one second user based on the spatio-temporal similarity between the user and the at least one second user; or, based on the first user's relationship with the at least one second user
  • the visual similarity and the spatio-temporal similarity are used to identify the first user among the at least one second user.
  • determining the relationship between the first user and the at least one second user includes: for at least one second user, in the historical spatio-temporal distribution of the second user, determining the probability that the second user is located at the collection location at the collection time; according to the A probability determines a spatio-temporal similarity of the first user to the second user.
  • the historical spatiotemporal distribution includes an inbound distribution and an outbound distribution
  • the historical spatiotemporal distribution of the second user it is determined that the second user is The probability of being located at the collection location includes: when the collection location is an outbound station, in the outbound distribution of the second user, determining the time period corresponding to the collection time of the second user The probability of being located at the outbound site; or, in the case where the collection site is an inbound site, in the inbound distribution of the second user, determine the time corresponding to the collection time of the second user The probability that a segment is located at the inbound site.
  • the first user includes: for at least one second user, weighting the visual similarity and spatio-temporal similarity between the first user and the second user to obtain the first user and the second user Fusion similarity of users: identifying the first user among the at least one second user based on the fusion similarities between the first user and the at least one second user respectively.
  • the identifying the first user among the at least one second user based on the fusion similarities between the first user and the at least one second user respectively includes : Determining, among the at least one second user, a second user whose fusion similarity with the first user is the largest, as the second user matching the first user.
  • the determining at least one second user in the user database according to the captured image of the first user includes: combining the captured image of the first user with the user database Match the user images of historical users in the database to determine the visual similarity between the first user and the historical user; if the visual similarity is greater than a preset threshold, determine the historical user as the second user.
  • the method further includes: acquiring historical user records of multiple historical users, wherein the multiple historical users include the at least one second user; based on the historical user records , counting the historical number of times that the historical user appeared in one or more places in at least one time period, and counting the total number of times that one or more historical users appeared in the place in the time period; according to the historical times and The total number of times generates the historical spatiotemporal distribution of the historical users.
  • the method further includes: smoothing the historical spatio-temporal distribution to obtain the historical spatio-temporal distribution of the historical users after the smoothing processing.
  • after identifying the first user among the at least one second user further includes: saving the captured image and spatio-temporal information of the first user in the second user A historical user record of a user, wherein the historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, time of inbound or outbound.
  • an identification device including:
  • An acquisition module configured to acquire the collected image and spatio-temporal information of the first user, wherein the spatio-temporal information is used to indicate the collection time and location of the collected image;
  • a first determining module configured to determine at least one second user in the user database according to the captured image of the first user
  • a second determining module configured to respectively determine the historical spatiotemporal distribution of the at least one second user, wherein the historical spatiotemporal distribution is used to represent the probability that the second user appears in one or more places in at least one time period ;
  • An identifying module configured to identify the first user among the at least one second user based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user.
  • the identification module is configured to determine, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, the a spatio-temporal similarity of at least one second user; identifying the first user among the at least one second users based on the spatio-temporal similarities between the first user and the at least one second user, respectively; or, Identifying the first user among the at least one second users based on the visual similarity and the spatio-temporal similarity between the first user and the at least one second user respectively.
  • the identification module is configured to, for at least one of the second users, determine that the second user is in the collection time The probability of being located at the collection location; determining the spatio-temporal similarity between the first user and the second user according to the probability.
  • the identification module is configured to determine, in the outbound distribution of the second user, that the second user is The probability that the time period corresponding to the collection time is located at the outbound site; or, in the case that the collection site is an inbound site, in the inbound distribution of the second user, determine the second user The probability of being at the inbound site during the time period corresponding to the collection time.
  • the recognition module is configured to, for the at least one second user, weight the visual similarity and spatiotemporal similarity between the first user and the second user, Obtain the fusion similarity between the first user and the second user; identify the first user among the at least one second user based on the fusion similarity between the first user and the at least one second user respectively a user.
  • the identification module is configured to determine, among the at least one second user, the second user whose fusion similarity with the first user is the largest as the first user Matched second user.
  • the identification module is configured to match the captured image of the first user with user images of historical users in the user database, and determine whether the first user is related to the The visual similarity of the historical user; if the visual similarity is greater than a preset threshold, the historical user is determined as the second user.
  • the device further includes: a generating module, configured to acquire historical user records of multiple historical users, where the multiple historical users include the at least one second user; based on The historical user record counts the historical number of times that the historical user appears in one or more places in at least one time period, and counts the total number of times that one or more historical users appear in the place in the time period; according to The historical times and the total times generate the historical spatio-temporal distribution of the historical users.
  • a generating module configured to acquire historical user records of multiple historical users, where the multiple historical users include the at least one second user; based on The historical user record counts the historical number of times that the historical user appears in one or more places in at least one time period, and counts the total number of times that one or more historical users appear in the place in the time period; according to The historical times and the total times generate the historical spatio-temporal distribution of the historical users.
  • the generation module is further configured to perform smoothing processing on the historical spatio-temporal distribution, to obtain the historical spatio-temporal distribution of the historical users after smoothing processing.
  • the device further includes: a recording module, configured to save the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the The historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, inbound or outbound time.
  • a recording module configured to save the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the The historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, inbound or outbound time.
  • an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned method.
  • a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented.
  • a computer program product including computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in an electronic device
  • the processor in the electronic device is used to implement the above method.
  • the captured image and spatio-temporal information of the first user can be obtained, and at least one second user can be determined in the user database based on the captured image of the first user, and then the historical spatio-temporal information of at least one second user can be respectively determined.
  • the historical spatio-temporal distribution can represent the probability that the second user appears in one or more places in at least one time period, so that based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of at least one second user, in at least one second The first user is identified among the users.
  • the user image of the first user can be combined with spatio-temporal information as the basis for identification, which improves the accuracy of identification and reduces the risk of identification due to the use of facial images alone. resulting in misjudgment.
  • Fig. 1 shows a flowchart of an identification method according to an embodiment of the present disclosure.
  • FIG. 2 shows a distribution diagram of historical spatiotemporal distribution according to an embodiment of the disclosure.
  • FIG. 3 shows a distribution diagram of an unsmoothed historical spatiotemporal distribution provided by an embodiment of the present disclosure.
  • Fig. 4 shows a flowchart of an example of an identification method according to an embodiment of the present disclosure.
  • Fig. 5 shows a block diagram of an identity recognition device according to an embodiment of the present disclosure.
  • Fig. 6 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • Fig. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
  • the identification scheme provided by the embodiments of the present disclosure can be applied to indoor and outdoor scenes such as rail transit, urban subway, scenic spots, and tourist exhibition halls.
  • the identification scheme provided by the embodiment of the present disclosure can be used to verify the identity of passengers entering and leaving the station.
  • the identification scheme provided by the embodiments of the present disclosure can verify the identity of tourists entering and leaving the scenic spot, and the spatiotemporal information of tourists entering and leaving the scenic spot can assist in identifying the identity of tourists.
  • the phenomenon of misjudgment caused by simply using face images for identity recognition due to the increase in user traffic can be reduced to a large extent, thereby improving the accuracy of identity recognition.
  • the identification method may be performed by electronic devices such as terminal equipment or servers, and the terminal equipment may be user equipment (User Equipment, UE), mobile equipment, user terminal, cellular phone, cordless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device, wearable device, etc.
  • the method can be implemented by calling the computer-readable instructions stored in the memory by the processor.
  • the method may be performed by a server.
  • the identity recognition method in the embodiment of the present disclosure will be described below by taking an electronic device as an execution subject as an example.
  • Fig. 1 shows a flowchart of an identification method according to an embodiment of the present disclosure. As shown in Fig. 1, the identification method includes:
  • Step S11 acquiring the collected image and spatio-temporal information of the first user.
  • the first user may be a user entering or leaving the target area
  • the collected image may be an image captured for the first user.
  • Spatio-temporal information can be used to indicate the collection time and collection location of the collected images.
  • the instant-spatial information can include the collection time and collection location.
  • the collection time and collection location of the collected images can be considered as the corresponding time and time when the first user enters or leaves the target area. Place.
  • the target area may include multiple locations.
  • the target area may be an underground station, a rail transit station, a scenic spot, etc., and the locations included in the target area may be exits or entrances set in the target area.
  • the first user can enter or leave the target area at any location. For example, when the target area is a subway station, the first user can enter or exit at any station of the subway station.
  • the electronic device may have a photographing function, and may photograph the target area in real time to obtain the captured image and spatio-temporal information of the first user entering the target area.
  • a camera device may be installed in the target area, and the target area may be photographed in real time, and the electronic device may acquire images and spatio-temporal information of the first user of the camera device in a wired or wireless manner.
  • Step S12 determining at least one second user in the user database according to the captured image of the first user.
  • the captured image of the first user may be matched with user images of multiple historical users in the user database, and at least one second user matching the first user may be determined in the user database.
  • the second user may be a historical user who visually matches the first user.
  • User images of multiple historical users may be stored in the user database, each historical user may correspond to one or more user images, and the user images may include face images and/or body images.
  • the captured image of the first user can be matched with the user images of the historical users in the user database to determine the visual similarity between the first user and the historical users, for example, the person of the first user in the captured image can be extracted Face features, then calculate the distance (such as Euclidean distance) between the face features of the first user and the face features of at least one user image in the user database, and obtain the visual similarity between the collected images and the user images of multiple historical users in the database Spend.
  • the visual similarity can be regarded as the visual similarity between the first user and the historical users.
  • the visual similarity between the captured image and at least one user image may be compared with a preset threshold, and if the visual similarity is greater than the preset threshold, the historical user corresponding to the corresponding user image may be determined as the second user. In this way, at least one second user matching the first user can be preliminarily determined among multiple historical users.
  • the human body features of the first user in the captured image may also be extracted, and then the human body features of the first user may be combined with the multiple data in the user database.
  • the human body features of each user image are matched to determine the visual similarity between the first user and multiple historical users.
  • user images of multiple historical users in the user database may be classified and stored according to visual similarity, and the visual similarity between user images corresponding to the same category is relatively high.
  • the facial features or human body features of the captured image of the first user can be compared with the central features of one or more classes Yes, determine the class that matches the first user, and then match the captured image of the first user with user images of one or more historical users in the class, and determine at least one second user that matches the first user.
  • the central feature of a class may be an average or median value of face features or human body features of at least one user image in the class.
  • the visual similarity between the first user and multiple historical users in the database when at least one second user is determined in the user database, can also be The plurality of historical users are sorted in descending order, and then a preset number of historical users sorted first are determined as the second users. For example, the top 5 sorted historical users are determined as the second users.
  • Step S13 respectively determining the historical spatio-temporal distribution of the at least one second user.
  • the historical spatio-temporal distribution is used to represent the probability that the second user appears in one or more places in at least one time period. Different historical users may correspond to different historical spatiotemporal distributions.
  • the probability of one or more historical users appearing in one or more places can be determined through the historical spatio-temporal distribution. For example, according to the historical spatio-temporal distribution of the second user, the time of the second user at 9:00-10:00 am can be determined The probability that a segment appears at location A is 70%.
  • Historical spatio-temporal distribution can be generated based on historical user records. Historical user records can record the time and place when historical users entered or left the target area. Historical user records can provide guidance for current user spatio-temporal distribution, that is, a user in If there are more times of appearance at location B from 9:00 to 10:00, it is very likely that the current user appears at location B from 9:00 to 10:00.
  • Step S14 identifying the first user among the at least one second user based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user.
  • the spatiotemporal similarity between the first user and at least one second user can be determined, for example, according to the spatiotemporal Information, in the historical spatio-temporal distribution of at least one second user, query the value corresponding to the spatio-temporal information of the first user, and determine the spatio-temporal similarity between the first user and the at least one second user according to the value.
  • the spatio-temporal similarity can be understood as the degree of matching between the first user and the second user in time and place, that is, the possibility that the second user appears in the spatio-temporal information of the first user.
  • the historical spatio-temporal distribution can be expressed in the form of statistical tables, statistical matrices or statistical curves.
  • the first user after determining the spatio-temporal similarities between the first user and at least one second user, it is further possible to identify among at least one second user based on the spatio-temporal similarities between the first user and at least one second user.
  • the first user may determine the second user having the greatest spatio-temporal similarity with the first user among at least one second user as the first user, and may further acquire identity information of the first user.
  • the second user who is visually similar to the first user can be screened out first based on the collected images of the first user, and then based on the spatiotemporal similarity between the first user and at least one second user, at least one second user
  • the user's identity can be verified through the user's historical spatiotemporal distribution, and the accuracy of identity recognition can be improved.
  • the captured images and spatio-temporal information of the first user may also be saved in the historical user records of the first user, so that the collected images of the first user Images and spatio-temporal information can be used as historical user records for subsequent historical spatio-temporal distribution updates to facilitate subsequent information quantification statistics and calculations. For example, in the scene of subway entry and exit, the newly added entry and exit information can be saved in the passenger's ride record .
  • the first user's entry information and exit information can be used to identify the first user.
  • the consumption information of the target user is generated through station information, so that the deduction of fees can be automatically realized according to the consumption information of the first user, the efficiency of ticket sales or ticket inspection can be improved, and the safety and accuracy of automatic ticket sales or ticket inspection can be improved.
  • the embodiments of the present disclosure can consider the user's historical spatiotemporal distribution in the user's identity recognition, provide reference for the current identity recognition through the historical space-time distribution, and reduce the occurrence of misjudgment due to purely using face images for identity recognition.
  • face recognition technology In scenarios such as rail transit and scenic spots with a large passenger flow and a large number of face images, it is not a small challenge to simply use face recognition technology to find the most similar face among millions of face images.
  • the user's identity can be verified by assisting a single face recognition task through the user's historical spatiotemporal distribution, improving Accuracy of identification.
  • the first user may be identified among the at least one second user based on the visual similarity and the spatio-temporal similarity between the first user and the at least one second user.
  • the visual similarity and spatio-temporal similarity between the first user and at least one second user can be added to generate a score. The higher the score, the higher the possibility that the second user is the first user. Scores of a user and at least one second user are sorted from large to small, and then the second user with the highest score in the sorted sequence is determined as the target user. In this way, the visual similarity and spatio-temporal similarity between the first user and the second user can be combined to further improve the accuracy of identification.
  • the at least one second user when identifying the first user among at least one second user based on the visual similarity and spatiotemporal similarity between the first user and at least one second user, may also be , weighting the visual similarity and spatio-temporal similarity between the first user and at least one second user to obtain the fused similarity between the first user and at least one second user. Then, based on the fused similarities between the first user and the at least one second user, the first user is identified among the at least one second user.
  • the second user whose fusion similarity is greater than a certain similarity threshold can be determined as the first user, or the fusion similarities between multiple second users and the first user can be sorted from large to small, and then the Among the at least one second user, the second user whose fusion similarity with the first user is the largest is determined as the second user matching the first user.
  • the target user can be identified through the fused similarity obtained by fusing the spatio-temporal similarity and the visual similarity, and the first user can be identified among multiple second users.
  • the weight coefficients corresponding to the spatio-temporal similarity and the visual similarity can be preset, and then the spatio-temporal similarity and the visual similarity can be weighted and summed according to the preset weight coefficients to obtain the first user and at least one second user. Fusion Similarity.
  • the weight of the spatiotemporal similarity and the weight coefficient of the visual similarity can be set according to actual needs.
  • the weight coefficient of the spatiotemporal similarity can be smaller than the weight coefficient of the visual similarity, so that the historical spatiotemporal distribution can be used as an auxiliary judgment for identification Information, using the historical spatiotemporal distribution to correct the misidentification caused by a single face image to judge the user's identity, and improve the accuracy of user identity recognition.
  • the second user in the historical spatiotemporal distribution of the second user, it may be determined that the second user is located at the location corresponding to the first user at the collection time corresponding to the first user.
  • the probability of the collection location, according to the determined probability, the spatio-temporal similarity between the first user and the second user can be determined.
  • the known information of the first user may be the spatio-temporal information of the first user, and the spatio-temporal information may include collection time and collection location.
  • the historical spatiotemporal distribution of the second user may be determined according to the user identifier of the at least one second user.
  • the historical spatio-temporal distribution may be represented by a distribution diagram or a table, and the present disclosure does not limit the specific representation. Then, in the historical spatio-temporal distribution of at least one second user, a value corresponding to the collection time and the collection location corresponding to the first user can be found, and the value can be the probability that the second user appears at the collection location at the collection time.
  • the probability may be determined as the spatio-temporal similarity between the first user and the second user.
  • the spatiotemporal similarity corresponding to the probability can be determined according to the corresponding relationship between the probability and the spatiotemporal similarity.
  • the probability and the spatiotemporal similarity can have a linear relationship, and the spatiotemporal similarity can be obtained by multiplying the probability by a preset coefficient.
  • the possibility of the second user matching the spatio-temporal information of the first user can be inferred by looking up the historical spatio-temporal distribution of the second user, that is, the spatio-temporal similarity between the first user and at least one second user can be determined, providing a user identification valid basis.
  • the time period in which the collection time corresponding to the first user is located may be determined, and further in the second user From the historical spatio-temporal distribution of , determine the probability that the second user appears at the collection location during the time period. In this way, even if there are some errors in the collection time, by determining the time period where the collection time is located, the probability of the second user appearing at the collection location during this time period can be accurately determined, reducing the influence of possible errors in the collection time on the determined probability. influences.
  • FIG. 2 shows a distribution diagram of a historical spatio-temporal distribution according to an embodiment of the present disclosure.
  • the historical spatio-temporal distribution may be a historical spatio-temporal distribution of a second user entering or leaving a target area at a location.
  • the abscissa of the distribution graph can represent time, and the ordinate can represent probability. The ordinate can be between 0 and 1.
  • the duration can be quantified with a fixed time unit, for example, 30 minutes is used as the quantization unit of the time scale, that is, it can be understood as multiplying the time scale marked on the abscissa by 30 minutes
  • the obtained time length may be equal to the actual time length.
  • the user's ride time can be subtracted from the start time of the subway operation by the closing time of the subway operation, and then every 30 minutes can be regarded as a time period to obtain the abscissa of the distribution map.
  • the subway is closed
  • the time is 18:00
  • the start time of the subway is 8:00
  • the operation time of the subway is 10 hours in total.
  • the operation time of the subway can be divided into 0-20 time periods.
  • the abscissa in the figure is 0.0 It can represent the start time of 8:00, 2.5 can represent 9:15, and 20.0 can represent 18:00.
  • the historical spatio-temporal distribution may include an inbound distribution and an outbound distribution.
  • one or more historical users may correspond to an inbound distribution and an outbound distribution.
  • the inbound distribution is different from the outbound distribution.
  • the second user is located in the inbound site during the time period corresponding to the collection time in the inbound distribution of the second user The probability.
  • the known quantity is whether the first user entered or exited the station, the current station and the collection time, according to the historical spatiotemporal distribution obtained from the historical user records , among multiple second users visually most similar to the first user, determine at least one second The probability that the user is the first user. If the historical spatio-temporal distribution shows that a second user has a higher probability of taking a bus at the current station and the time period where the collection time is located, then for this ride behavior, the second user is the same as the first user who is currently entering or leaving the station People are very likely, therefore, the basis for user identification can be provided through historical spatio-temporal distribution.
  • the spatio-temporal similarity between the first user and the at least one second user may be determined according to the historical spatio-temporal distribution of the at least one second user, thereby providing effective reference information for user identification.
  • the historical spatio-temporal distribution can be generated based on the historical user records of historical users entering or leaving the target area.
  • the historical user records can provide a reference for identifying the identity of the current first user.
  • the historical spatio-temporal distribution is obtained through one or more implementation methods below process is described.
  • the historical user records of multiple historical users can be obtained, that is, the records of multiple historical users entering or leaving the target area can be obtained.
  • the plurality of historical users may include at least one second user. Based on the historical user records of one or more historical users, it is possible to count the historical times of one or more historical users appearing in one or more places in at least one time period, and to count the historical times in which one or more historical users appeared in the time period Total counts for this location. Further, the historical spatiotemporal distribution of the historical users can be generated according to at least one time period, historical times and total times of one or more locations.
  • historical user records may represent the entry and exit records of historical users entering or leaving the target area.
  • a recent period not less than the preset duration
  • multiple historical user records of historical users for example, obtain the historical user records of one or more historical users in the last two weeks.
  • the historical user record may include information such as the location where the historical user entered or left the target area, the time when the historical user entered or left the target area, and user identification.
  • unique numbers can be assigned to different locations for identification.
  • the time may be quantified in a certain time unit, for example, the time is quantified by taking thirty minutes as a time unit to obtain multiple time periods.
  • the historical times of one or more historical users appearing in one or more locations and at least one time period can be counted, so as to obtain a statistical model based on historical users, locations and time periods (such as statistical table, statistical matrix, etc.), the size of the statistical model can be: the number of historical users ⁇ the number of locations ⁇ the number of time periods.
  • An element in the statistical model may represent the historical number of times the historical user entered or left the target area during the current time period at the current location.
  • each historical times corresponding to the historical users are divided by the total times corresponding to all historical users, and the probability of the historical users appearing at the place in the time period can be obtained.
  • a statistical model of one or more historical users appearing in one or more places in at least one time period can be generated by means of data modeling, and one or more historical users can be obtained in one or more location and at least one period of time entering or leaving the target area, that is, the current user's behavior of entering or leaving the target area can be predicted through historical user records.
  • the historical user records at least one of the following information: user ID, entering or exiting identification, station identification, time of entering or exiting the station.
  • the aforementioned statistical models may include inbound models and outbound models.
  • the historical spatio-temporal distribution may be smoothed to obtain the historical spatio-temporal distribution of the historical users after the smoothing process.
  • Gaussian smoothing can be performed on the historical spatio-temporal distribution to obtain the smoothed historical spatio-temporal distribution. Since the probability values of adjacent time periods are continuous, for example, if a user frequently rides in a certain time period, there is also a certain probability of riding in an adjacent time period, so that Gaussian smoothing can be performed in the time dimension, making the historical space-time The distribution curve is also continuous in time.
  • the probability can be normalized, and the probability can be normalized between 0 and 1 to obtain the final historical spatiotemporal distribution of one or more historical users.
  • Each value on the probability distribution curve of the historical space-time distribution may correspond to the probability that the historical user appears at the current location in the current time period.
  • FIG. 3 shows a distribution diagram of an unsmoothed historical spatio-temporal distribution provided by an embodiment of the present disclosure
  • the foregoing FIG. 2 may be a distribution diagram of a smoothed historical spatio-temporal distribution. It can be seen that the probability curve corresponding to the smoothed historical space-time distribution has continuity, which can better meet the needs of actual scenarios.
  • Fig. 4 shows a flow chart of an example of an identification method according to an embodiment of the present disclosure.
  • the target area may be an underground station
  • the first user may enter a subway station to take a passenger
  • the captured image may be an entry into the station.
  • the collection location can be the station of the station
  • the collection time can be the time of the station.
  • the identification process provided by this example may include the following steps:
  • step S201 the first user's inbound image, inbound time and inbound site are obtained.
  • Step S202 matching the inbound image of the first user with the user images of the historical users in the user database, and determining the visual similarity between the first user and the historical users.
  • Step S203 determining at least one second user whose visual similarity with the first user is greater than a preset threshold.
  • Step S204 acquiring the historical spatio-temporal distribution of at least one second user respectively.
  • Step S205 according to the entry time and entry site of the first user, respectively search the historical spatiotemporal distribution of at least one second user, and determine the spatiotemporal similarity between the first user and at least one second user;
  • Step S206 performing weighted fusion of the visual similarity and spatio-temporal similarity between the first user and at least one second user to obtain the fused similarity between the first user and at least one second user;
  • Step S207 sorting the fusion similarity between the first user and at least one second user from large to small, obtain the second user with the highest fusion similarity, and determine the second user with the maximum fusion similarity as the first user.
  • the identification scheme provided by the present disclosure integrates the spatio-temporal information of the user entering or leaving the target area during the process of user identification, so that the identification of the user's identity is more accurate.
  • the present disclosure is more suitable for rail transit scenarios with large-scale data, and can effectively reduce the false alarm of similar users caused by the increase in the order of magnitude of collected images.
  • the accuracy of identification provided by the present disclosure can be iteratively enhanced gradually.
  • the robustness of identity recognition can also be improved by combining the historical spatiotemporal distribution of historical users.
  • this disclosure also provides identification devices, electronic equipment, computer-readable storage media, and program products, all of which can be used to implement any of the identification methods provided by this disclosure, and refer to the corresponding technical solutions and descriptions in the method section. record, no more details.
  • Fig. 5 shows a block diagram of an identity recognition device according to an embodiment of the present disclosure. As shown in Fig. 5, the device includes:
  • An acquisition module 31 configured to acquire the collected images and spatio-temporal information of the first user, wherein the spatio-temporal information is used to indicate the collection time and collection location of the collected images;
  • the first determining module 32 is configured to determine at least one second user in the user database according to the captured image of the first user;
  • the second determining module 33 is configured to respectively determine the historical spatio-temporal distribution of the at least one second user, wherein the historical spatio-temporal distribution is used to indicate that the second user appears in one or more places in at least one time period probability;
  • An identifying module 34 configured to identify the first user among the at least one second user based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user.
  • the identification module 34 is configured to determine, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, the The spatiotemporal similarity of the at least one second user; based on the spatiotemporal similarity between the first user and the at least one second user, identifying the first user among the at least one second user; or , identifying the first user among the at least one second user based on the visual similarity between the first user and the at least one second user and the spatio-temporal similarity respectively.
  • the identification module 34 is configured to, for at least one second user, determine that the second user is in the collected The probability that time is located at the collection location; determine the spatio-temporal similarity between the first user and the second user according to the probability.
  • the identification module 34 is configured to determine the second user in the outbound distribution of the second user when the collection location is an outbound site The probability that the time period corresponding to the collection time is located at the outbound site; or, in the case that the collection site is an inbound site, in the inbound distribution of the second user, determine the second The probability that the user is located at the inbound site during the time period corresponding to the collection time.
  • the recognition module 34 is configured to, for at least one second user, weight the visual similarity and spatiotemporal similarity between the first user and the second user , to obtain the fusion similarity between the first user and the second user; based on the fusion similarity between the first user and the at least one second user, identify the first user.
  • the identification module 34 is configured to determine, among the at least one second user, the second user whose fusion similarity with the first user is the largest as the first user The second user that the user matches.
  • the identification module is configured to match the captured image of the first user with user images of historical users in the user database, and determine whether the first user is related to the The visual similarity of the historical user; if the visual similarity is greater than a preset threshold, the historical user is determined as the second user.
  • the device further includes: a generating module, configured to acquire historical user records of multiple historical users, where the multiple historical users include the at least one second user; based on The historical user record counts the historical number of times that the historical user appears in one or more places in at least one time period, and counts the total number of times that one or more historical users appear in the place in the time period; according to The historical times and the total times generate the historical spatio-temporal distribution of the historical users.
  • a generating module configured to acquire historical user records of multiple historical users, where the multiple historical users include the at least one second user; based on The historical user record counts the historical number of times that the historical user appears in one or more places in at least one time period, and counts the total number of times that one or more historical users appear in the place in the time period; according to The historical times and the total times generate the historical spatio-temporal distribution of the historical users.
  • the generation module is further configured to perform smoothing processing on the historical spatio-temporal distribution, to obtain the historical spatio-temporal distribution of the historical users after smoothing processing.
  • the device further includes: a recording module, configured to save the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the The historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, inbound or outbound time.
  • a recording module configured to save the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the The historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, inbound or outbound time.
  • the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.
  • Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor.
  • Computer readable storage media may be volatile or nonvolatile computer readable storage media.
  • An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
  • An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
  • Electronic devices may be provided as terminals, servers, or other forms of devices.
  • FIG. 6 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure.
  • the electronic device 800 may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant.
  • electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
  • the memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • the power supply component 806 provides power to various components of the electronic device 800 .
  • Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
  • the multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 .
  • the audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
  • Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 .
  • the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, the sensor component 814 can also detect the electronic device 800 or a Changes in position of components, presence or absence of user contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications.
  • CMOS complementary metal-oxide-semiconductor
  • CCD charge-coupled device
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wide Band
  • Bluetooth Bluetooth
  • electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A programmable gate array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
  • a non-volatile computer-readable storage medium such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.
  • FIG. 7 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
  • electronic device 1900 may be provided as a server.
  • electronic device 1900 includes processing component 1922 , which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922 , such as application programs.
  • the application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above method.
  • Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input-output (I/O) interface 1958 .
  • the electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft server operating system (Windows Server TM ), the graphical user interface-based operating system (Mac OS X TM ) introduced by Apple Inc., and the multi-user and multi-process computer operating system (Unix TM ), a free and open source Unix-like operating system (Linux TM ), an open source Unix-like operating system (FreeBSD TM ), or the like.
  • Microsoft server operating system Windows Server TM
  • Mac OS X TM graphical user interface-based operating system
  • Unix TM multi-user and multi-process computer operating system
  • Linux TM free and open source Unix-like operating system
  • FreeBSD TM open source Unix-like operating system
  • a non-transitory computer-readable storage medium such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to implement the above method.
  • the present disclosure can be a system, method and/or computer program product.
  • a computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.
  • a computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device.
  • a computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above.
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory static random access memory
  • SRAM static random access memory
  • CD-ROM compact disc read only memory
  • DVD digital versatile disc
  • memory stick floppy disk
  • mechanically encoded device such as a printer with instructions stored thereon
  • a hole card or a raised structure in a groove and any suitable combination of the above.
  • computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
  • Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages - such as Smalltalk, C++, etc., and conventional procedural programming languages - such as the "C" language or similar programming languages.
  • Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA)
  • FPGA field programmable gate array
  • PDA programmable logic array
  • These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
  • These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
  • each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically realized by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. Wait.
  • a software development kit Software Development Kit, SDK

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to an identity identification method and apparatus, an electronic device, and a storage medium. The method comprises: obtaining a collected image and temporal-spatial information of a first user, wherein the temporal-spatial information is used for indicating collection time and a collection location of the collected image; determining at least one second user in a user database according to the collected image of the first user; respectively determining historical temporal-spatial distribution of the at least one second user, wherein the historical temporal-spatial distribution is used for representing a probability that the second user appears at one or more locations in at least one time period; and identifying the first user in the at least one second user on the basis of the temporal-spatial information of the first user and the historical temporal-spatial distribution of the at least one second user. Embodiments of the present invention can improve the accuracy rate of identity identification.

Description

身份识别方法及装置、电子设备和存储介质Identification method and device, electronic device and storage medium
本申请要求2021年06月11日提交、申请号为202110654499.8,发明名称为“身份识别方法及装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 11, 2021, with the application number 202110654499.8, and the title of the invention is "identification method and device, electronic equipment and storage medium", the entire content of which is incorporated in this application by reference .
技术领域technical field
本公开涉及计算机技术领域,尤其涉及一种身份识别方法及装置、电子设备和存储介质。The present disclosure relates to the field of computer technology, and in particular to an identification method and device, electronic equipment and a storage medium.
背景技术Background technique
近年来,人脸识别技术在各行各业中发展迅猛,例如,在轨道交通领域中,可以运用人脸识别技术作为售票检票方式。通过在轨道交通中增设基于人脸识别的售票或检票设备,可以通过采集乘客的人脸图像实现售票或检票。这种方式可以提升售票或检票的速度,减少高峰时段不必要的拥堵。In recent years, face recognition technology has developed rapidly in various industries. For example, in the field of rail transit, face recognition technology can be used as a way to sell tickets. By adding face recognition-based ticketing or ticket checking equipment in rail transit, ticket sales or ticket checking can be realized by collecting facial images of passengers. This method can increase the speed of ticket sales or ticket inspection and reduce unnecessary congestion during peak hours.
发明内容Contents of the invention
本公开提出了一种身份识别技术方案。The present disclosure proposes an identification technical solution.
根据本公开的一方面,提供了一种身份识别方法,包括:获取第一用户的采集图像和时空信息,其中,所述时空信息用于指示所述采集图像的采集时间和采集地点;根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户;分别确定所述至少一个第二用户的历史时空分布,其中,所述历史时空分布用于表示所述第二用户在至少一个时间段出现在一个或多个地点的概率;基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户。According to an aspect of the present disclosure, there is provided an identification method, including: acquiring a first user's captured image and spatio-temporal information, wherein the spatio-temporal information is used to indicate the time and location of the captured image; according to the The collected images of the first user, determine at least one second user in the user database; respectively determine the historical spatio-temporal distribution of the at least one second user, wherein the historical spatio-temporal distribution is used to indicate that the second user is at least Probability of a time period occurring at one or more locations; identifying the first user among the at least one second user based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user .
在一个或多个可能的实现方式中,所述基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户,包括:基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,确定所述第一用户分别与所述至少一个第二用户的时空相似度;基于所述第一用户分别与所述至少一个第二用户的所述时空相似度,在所述至少一个第二用户中识别所述第一用户;或者,基于所述第一用户分别与所述至少一个第二用户的视觉相似度和所述时空相似度,在所述至少一个第二用户中识别所述第一用户。In one or more possible implementations, the identifying the first user among the at least one second user based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user , comprising: based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, determining the spatio-temporal similarities between the first user and the at least one second user; identifying the first user among the at least one second user based on the spatio-temporal similarity between the user and the at least one second user; or, based on the first user's relationship with the at least one second user The visual similarity and the spatio-temporal similarity are used to identify the first user among the at least one second user.
在一个或多个可能的实现方式中,所述基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,确定所述第一用户分别与所述至少一个第二用户的时空相似度,包括:针对至少一个所述第二用户,在所述第二用户的历史时空分布中,确定所述第二用户在所述采集时间位于所述采集地点的概率;根据所述概率确定所述第一用户与所述第二用户的时空相似度。In one or more possible implementations, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, determining the relationship between the first user and the at least one second user The spatio-temporal similarity includes: for at least one second user, in the historical spatio-temporal distribution of the second user, determining the probability that the second user is located at the collection location at the collection time; according to the A probability determines a spatio-temporal similarity of the first user to the second user.
在一个或多个可能的实现方式中,所述历史时空分布包括进站分布和出站分布,所述在所述第二用户的历史时空分布中,确定所述第二用户在所述采集时间位于所述采集地点的概率,包括:在所述采集地点为出站站点的情况下,在所述第二用户的出站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述出站站点的概率;或者,在所述采集地点为进站站点的情况下,在所述第二用户的进站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述进站站点的概率。In one or more possible implementations, the historical spatiotemporal distribution includes an inbound distribution and an outbound distribution, and in the historical spatiotemporal distribution of the second user, it is determined that the second user is The probability of being located at the collection location includes: when the collection location is an outbound station, in the outbound distribution of the second user, determining the time period corresponding to the collection time of the second user The probability of being located at the outbound site; or, in the case where the collection site is an inbound site, in the inbound distribution of the second user, determine the time corresponding to the collection time of the second user The probability that a segment is located at the inbound site.
在一个或多个可能的实现方式中,所述基于所述第一用户分别与所述至少一个第二用户的视觉相似度和所述时空相似度,在所述至少一个第二用户中识别所述第一用户,包括:针对至少一个所述第 二用户,对所述第一用户与所述第二用户的视觉相似度和时空相似度进行加权,得到所述第一用户与所述第二用户的融合相似度;基于所述第一用户分别与所述至少一个第二用户的融合相似度,在所述至少一个第二用户中识别所述第一用户。In one or more possible implementation manners, the identifying the at least one second user among the at least one second user based on the visual similarity and the spatiotemporal similarity between the first user and the at least one second user respectively The first user includes: for at least one second user, weighting the visual similarity and spatio-temporal similarity between the first user and the second user to obtain the first user and the second user Fusion similarity of users: identifying the first user among the at least one second user based on the fusion similarities between the first user and the at least one second user respectively.
在一个或多个可能的实现方式中,所述基于所述第一用户分别与所述至少一个第二用户的融合相似度,在所述至少一个第二用户中识别所述第一用户,包括:将所述至少一个第二用户中与所述第一用户的融合相似度最大的第二用户,确定为所述第一用户匹配的第二用户。In one or more possible implementation manners, the identifying the first user among the at least one second user based on the fusion similarities between the first user and the at least one second user respectively includes : Determining, among the at least one second user, a second user whose fusion similarity with the first user is the largest, as the second user matching the first user.
在一个或多个可能的实现方式中,所述根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户,包括:将所述第一用户的采集图像与所述用户数据库中历史用户的用户图像进行匹配,确定所述第一用户与所述历史用户的视觉相似度;在所述视觉相似度大于预设阈值的情况下,将所述历史用户确定为所述第二用户。In one or more possible implementation manners, the determining at least one second user in the user database according to the captured image of the first user includes: combining the captured image of the first user with the user database Match the user images of historical users in the database to determine the visual similarity between the first user and the historical user; if the visual similarity is greater than a preset threshold, determine the historical user as the second user.
在一个或多个可能的实现方式中,所述方法还包括:获取多个历史用户的历史用户记录,其中,所述多个历史用户包括所述至少一个第二用户;基于所述历史用户记录,统计所述历史用户在至少一个时间段出现在一个或多个地点的历史次数,以及统计一个或多个历史用户在所述时间段出现在所述地点的总次数;根据所述历史次数以及所述总次数,生成所述历史用户的历史时空分布。In one or more possible implementations, the method further includes: acquiring historical user records of multiple historical users, wherein the multiple historical users include the at least one second user; based on the historical user records , counting the historical number of times that the historical user appeared in one or more places in at least one time period, and counting the total number of times that one or more historical users appeared in the place in the time period; according to the historical times and The total number of times generates the historical spatiotemporal distribution of the historical users.
在一个或多个可能的实现方式中,所述方法还包括:对所述历史时空分布进行平滑处理,得到平滑处理后所述历史用户的历史时空分布。In one or more possible implementation manners, the method further includes: smoothing the historical spatio-temporal distribution to obtain the historical spatio-temporal distribution of the historical users after the smoothing processing.
在一个或多个可能的实现方式中,所述在所述至少一个第二用户中识别所述第一用户之后,还包括:将所述第一用户的采集图像和时空信息保存在所述第一用户的历史用户记录中,其中,所述历史用户记录包括以下至少一项信息:用户标识、进站标识或出站标识、站点标识、进站或出站的时间。In one or more possible implementation manners, after identifying the first user among the at least one second user, further includes: saving the captured image and spatio-temporal information of the first user in the second user A historical user record of a user, wherein the historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, time of inbound or outbound.
根据本公开的一方面,提供了一种身份识别装置,包括:According to an aspect of the present disclosure, an identification device is provided, including:
获取模块,用于获取第一用户的采集图像和时空信息,其中,所述时空信息用于指示所述采集图像的采集时间和采集地点;An acquisition module, configured to acquire the collected image and spatio-temporal information of the first user, wherein the spatio-temporal information is used to indicate the collection time and location of the collected image;
第一确定模块,用于根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户;A first determining module, configured to determine at least one second user in the user database according to the captured image of the first user;
第二确定模块,用于分别确定所述至少一个第二用户的历史时空分布,其中,所述历史时空分布用于表示所述第二用户在至少一个时间段出现在一个或多个地点的概率;A second determining module, configured to respectively determine the historical spatiotemporal distribution of the at least one second user, wherein the historical spatiotemporal distribution is used to represent the probability that the second user appears in one or more places in at least one time period ;
识别模块,用于基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户。An identifying module, configured to identify the first user among the at least one second user based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user.
在一个或多个可能的实现方式中,所述识别模块,用于基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,确定所述第一用户分别与所述至少一个第二用户的时空相似度;基于所述第一用户分别与所述至少一个第二用户的所述时空相似度,在所述至少一个第二用户中识别所述第一用户;或者,基于所述第一用户分别与所述至少一个第二用户的视觉相似度和所述时空相似度,在所述至少一个第二用户中识别所述第一用户。In one or more possible implementation manners, the identification module is configured to determine, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, the a spatio-temporal similarity of at least one second user; identifying the first user among the at least one second users based on the spatio-temporal similarities between the first user and the at least one second user, respectively; or, Identifying the first user among the at least one second users based on the visual similarity and the spatio-temporal similarity between the first user and the at least one second user respectively.
在一个或多个可能的实现方式中,所述识别模块,用于针对至少一个所述第二用户,在所述第二用户的历史时空分布中,确定所述第二用户在所述采集时间位于所述采集地点的概率;根据所述概率确定所述第一用户与所述第二用户的时空相似度。In one or more possible implementations, the identification module is configured to, for at least one of the second users, determine that the second user is in the collection time The probability of being located at the collection location; determining the spatio-temporal similarity between the first user and the second user according to the probability.
在一个或多个可能的实现方式中,所述识别模块,用于在所述采集地点为出站站点的情况下,在 所述第二用户的出站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述出站站点的概率;或者,在所述采集地点为进站站点的情况下,在所述第二用户的进站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述进站站点的概率。In one or more possible implementations, the identification module is configured to determine, in the outbound distribution of the second user, that the second user is The probability that the time period corresponding to the collection time is located at the outbound site; or, in the case that the collection site is an inbound site, in the inbound distribution of the second user, determine the second user The probability of being at the inbound site during the time period corresponding to the collection time.
在一个或多个可能的实现方式中,所述识别模块,用于针对所述至少一个第二用户,对所述第一用户与所述第二用户的视觉相似度和时空相似度进行加权,得到所述第一用户与所述第二用户的融合相似度;基于所述第一用户分别与所述至少一个第二用户的融合相似度,在所述至少一个第二用户中识别所述第一用户。In one or more possible implementation manners, the recognition module is configured to, for the at least one second user, weight the visual similarity and spatiotemporal similarity between the first user and the second user, Obtain the fusion similarity between the first user and the second user; identify the first user among the at least one second user based on the fusion similarity between the first user and the at least one second user respectively a user.
在一个或多个可能的实现方式中,所述识别模块,用于将所述至少一个第二用户中与所述第一用户的融合相似度最大的第二用户,确定为所述第一用户匹配的第二用户。In one or more possible implementation manners, the identification module is configured to determine, among the at least one second user, the second user whose fusion similarity with the first user is the largest as the first user Matched second user.
在一个或多个可能的实现方式中,所述识别模块,用于将所述第一用户的采集图像与所述用户数据库中历史用户的用户图像进行匹配,确定所述第一用户与所述历史用户的视觉相似度;在所述视觉相似度大于预设阈值的情况下,将所述历史用户确定为所述第二用户。In one or more possible implementations, the identification module is configured to match the captured image of the first user with user images of historical users in the user database, and determine whether the first user is related to the The visual similarity of the historical user; if the visual similarity is greater than a preset threshold, the historical user is determined as the second user.
在一个或多个可能的实现方式中,所述装置还包括:生成模块,用于获取多个历史用户的历史用户记录,其中,所述多个历史用户包括所述至少一个第二用户;基于所述历史用户记录,统计所述历史用户在至少一个时间段出现在一个或多个地点的历史次数,以及统计一个或多个历史用户在所述时间段出现在所述地点的总次数;根据所述历史次数以及所述总次数,生成所述历史用户的历史时空分布。In one or more possible implementations, the device further includes: a generating module, configured to acquire historical user records of multiple historical users, where the multiple historical users include the at least one second user; based on The historical user record counts the historical number of times that the historical user appears in one or more places in at least one time period, and counts the total number of times that one or more historical users appear in the place in the time period; according to The historical times and the total times generate the historical spatio-temporal distribution of the historical users.
在一个或多个可能的实现方式中,所述生成模块,还用于对所述历史时空分布进行平滑处理,得到平滑处理后所述历史用户的历史时空分布。In one or more possible implementation manners, the generation module is further configured to perform smoothing processing on the historical spatio-temporal distribution, to obtain the historical spatio-temporal distribution of the historical users after smoothing processing.
在一个或多个可能的实现方式中,所述装置还包括:记录模块,用于将所述第一用户的采集图像和时空信息保存在所述第一用户的历史用户记录中,其中,所述历史用户记录包括以下至少一项信息:用户标识、进站标识或出站标识、站点标识、进站或出站的时间。In one or more possible implementations, the device further includes: a recording module, configured to save the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the The historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, inbound or outbound time.
根据本公开的一方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to an aspect of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above-mentioned method.
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to one aspect of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented.
根据本公开的一方面,提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行用于实现上述方法。According to an aspect of the present disclosure, there is provided a computer program product, including computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in an electronic device When running in the processor, the processor in the electronic device is used to implement the above method.
在本公开实施例中,可以获取第一用户的采集图像和时空信息,进一步根据第一用户的采集图像,在用户数据库中确定至少一个第二用户,再分别确定至少一个第二用户的历史时空分布,历史时空分布可以表示第二用户在至少一个时间段出现在一个或多个地点的概率,从而可以基于第一用户的时空信息和至少一个第二用户的历史时空分布,在至少一个第二用户中识别所述第一用户。这样,在确认第一用户的用户身份时,可以将第一用户的用户图像和时空信息相结合,共同作为身份识别的依据,提高身份识别的准确率,减少由于单纯使用人脸图像进行身份识别而导致的误判情况。In the embodiment of the present disclosure, the captured image and spatio-temporal information of the first user can be obtained, and at least one second user can be determined in the user database based on the captured image of the first user, and then the historical spatio-temporal information of at least one second user can be respectively determined. distribution, the historical spatio-temporal distribution can represent the probability that the second user appears in one or more places in at least one time period, so that based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of at least one second user, in at least one second The first user is identified among the users. In this way, when confirming the user identity of the first user, the user image of the first user can be combined with spatio-temporal information as the basis for identification, which improves the accuracy of identification and reduces the risk of identification due to the use of facial images alone. resulting in misjudgment.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根 据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings here are incorporated into the description and constitute a part of the present description. These drawings show embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure.
图1示出根据本公开实施例的身份识别方法的流程图。Fig. 1 shows a flowchart of an identification method according to an embodiment of the present disclosure.
图2示出根据本公开实施例的历史时空分布的分布图。FIG. 2 shows a distribution diagram of historical spatiotemporal distribution according to an embodiment of the disclosure.
图3示出本公开实施例提供的未经平滑处理的历史时空分布的分布图。FIG. 3 shows a distribution diagram of an unsmoothed historical spatiotemporal distribution provided by an embodiment of the present disclosure.
图4示出根据本公开实施例的身份识别方法一示例的流程图。Fig. 4 shows a flowchart of an example of an identification method according to an embodiment of the present disclosure.
图5示出根据本公开实施例的身份识别装置的框图。Fig. 5 shows a block diagram of an identity recognition device according to an embodiment of the present disclosure.
图6示出根据本公开实施例的一种电子设备的框图。Fig. 6 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
图7示出根据本公开实施例的一种电子设备的框图。Fig. 7 shows a block diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that the present disclosure may be practiced without some of the specific details. In some instances, methods, means, components and circuits that are well known to those skilled in the art have not been described in detail so as to obscure the gist of the present disclosure.
对于城市轨道交通场景来说,基于人脸识别的售票检票方式对当前乘客进行身份识别的情况下,在视觉特征上可能存在与当前乘客的人脸图像极为相似的多张用户图像,从而难以判断当前乘客的用户身份。For urban rail transit scenarios, when face recognition-based ticket sales and inspection methods are used to identify current passengers, there may be multiple user images that are very similar to the face images of current passengers in terms of visual features, making it difficult to judge The user identity of the current passenger.
本公开实施例提供的身份识别方案,可以应用于轨道交通、城市地铁、景区、游览展馆等室内外场景。例如,在客流量较大的大中型城市轨道交通中,可以通过本公开实施例提供的身份识别方案,对于进出站的乘客进行身份核验,除了利用传统的人脸识别技术对用户进行身份验证之外,还可以将乘客进出站点的时空信息结合到人脸识别的流程中,通过时空信息辅助识别乘客。再例如,在具有多个景点的景区中,通过本公开实施例提供的身份识别方案,可以对进出景区的游客进行身份核验,通过游客进出景区的时空信息可以辅助识别游客的身份。这样,可以在很大程度上减少由于用户流量增大而导致单纯使用人脸图像进行身份识别的误判现象,从而提高身份识别准确率。The identification scheme provided by the embodiments of the present disclosure can be applied to indoor and outdoor scenes such as rail transit, urban subway, scenic spots, and tourist exhibition halls. For example, in a large and medium-sized urban rail transit with a large passenger flow, the identification scheme provided by the embodiment of the present disclosure can be used to verify the identity of passengers entering and leaving the station. In addition to using traditional face recognition technology to authenticate users In addition, it is also possible to combine the spatio-temporal information of passengers entering and exiting the station into the process of face recognition, and assist in identifying passengers through spatio-temporal information. For another example, in a scenic spot with multiple scenic spots, the identification scheme provided by the embodiments of the present disclosure can verify the identity of tourists entering and leaving the scenic spot, and the spatiotemporal information of tourists entering and leaving the scenic spot can assist in identifying the identity of tourists. In this way, the phenomenon of misjudgment caused by simply using face images for identity recognition due to the increase in user traffic can be reduced to a large extent, thereby improving the accuracy of identity recognition.
本公开实施例中,所述身份识别方法可以由终端设备或服务器等电子设备执行,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等,所述方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。或者,可通过服务器执行所述方法。下面以电子设备作为执行主体为例对本公开实施例的身份识别方法进行说明。In the embodiment of the present disclosure, the identification method may be performed by electronic devices such as terminal equipment or servers, and the terminal equipment may be user equipment (User Equipment, UE), mobile equipment, user terminal, cellular phone, cordless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device, wearable device, etc., the method can be implemented by calling the computer-readable instructions stored in the memory by the processor. Alternatively, the method may be performed by a server. The identity recognition method in the embodiment of the present disclosure will be described below by taking an electronic device as an execution subject as an example.
图1示出根据本公开实施例的身份识别方法的流程图,如图1所示,所述身份识别方法包括:Fig. 1 shows a flowchart of an identification method according to an embodiment of the present disclosure. As shown in Fig. 1, the identification method includes:
步骤S11,获取第一用户的采集图像和时空信息。Step S11, acquiring the collected image and spatio-temporal information of the first user.
在本公开实施例中,第一用户可以是进入或离开目标区域内的用户,采集图像可以是针对第一用户拍摄得到的图像。时空信息可以用于指示采集图像的采集时间和采集地点,即时空信息可以包括采集时间和采集地点,采集图像的采集时间和采集地点可以认为是第一用户进入或离开目标区域内对应的时间和地点。目标区域内可以包括多个地点,例如,目标区域可以为地跌站、轨道交通站、景区等区域,目标区域包括的地点可以是目标区域内设置的出口或入口。第一用户可以在任意一个地点进入或离开目标区域,例如,在目标区域是地铁站的情况下,第一用户可以在地铁站的任意一个站点进站,或在任意一个站点出站。In this embodiment of the present disclosure, the first user may be a user entering or leaving the target area, and the collected image may be an image captured for the first user. Spatio-temporal information can be used to indicate the collection time and collection location of the collected images. The instant-spatial information can include the collection time and collection location. The collection time and collection location of the collected images can be considered as the corresponding time and time when the first user enters or leaves the target area. Place. The target area may include multiple locations. For example, the target area may be an underground station, a rail transit station, a scenic spot, etc., and the locations included in the target area may be exits or entrances set in the target area. The first user can enter or leave the target area at any location. For example, when the target area is a subway station, the first user can enter or exit at any station of the subway station.
在一些实现方式中,电子设备可以具有拍摄功能,可以实时对目标区域进行拍摄,得到进入目标区域内的第一用户的采集图像以及时空信息。一些实现方式中,目标区域内可以设置有摄像设备,可以实时对目标区域进行拍摄,电子设备可以通过有线或无线方式获取摄像设备第一用户的采集图像和时空信息。In some implementation manners, the electronic device may have a photographing function, and may photograph the target area in real time to obtain the captured image and spatio-temporal information of the first user entering the target area. In some implementation manners, a camera device may be installed in the target area, and the target area may be photographed in real time, and the electronic device may acquire images and spatio-temporal information of the first user of the camera device in a wired or wireless manner.
步骤S12,根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户。Step S12, determining at least one second user in the user database according to the captured image of the first user.
在本公开实施例中,可以将第一用户的采集图像与用户数据库中多个历史用户的用户图像进行匹配,在用户数据库中确定与第一用户相匹配的至少一个第二用户。第二用户可以是与第一用户在视觉上相匹配的历史用户。用户数据库中可以存储有多个历史用户的用户图像,每个历史用户可以对应一个或多个用户图像,用户图像可以包括人脸图像和/或人体图像。In an embodiment of the present disclosure, the captured image of the first user may be matched with user images of multiple historical users in the user database, and at least one second user matching the first user may be determined in the user database. The second user may be a historical user who visually matches the first user. User images of multiple historical users may be stored in the user database, each historical user may correspond to one or more user images, and the user images may include face images and/or body images.
在一些实现方式中,可以将第一用户的采集图像与用户数据库中历史用户的用户图像进行匹配,确定第一用户与历史用户的视觉相似度,例如,可以提取采集图像中第一用户的人脸特征,然后计算第一用户的人脸特征分别与用户数据库中至少一个用户图像的人脸特征的距离(例如欧式距离),得到采集图像分别与数据库中多个历史用户的用户图像的视觉相似度。该视觉相似度可以认为是第一用户与历史用户的视觉相似度。进一步可以将采集图像与至少一个用户图像的视觉相似度与预设阈值进行比较,在视觉相似度大于预设阈值的情况下,可以将相应用户图像对应的历史用户确定为第二用户。通过这种方式,可以在多个历史用户中初步确定与第一用户匹配的至少一个第二用户。In some implementations, the captured image of the first user can be matched with the user images of the historical users in the user database to determine the visual similarity between the first user and the historical users, for example, the person of the first user in the captured image can be extracted Face features, then calculate the distance (such as Euclidean distance) between the face features of the first user and the face features of at least one user image in the user database, and obtain the visual similarity between the collected images and the user images of multiple historical users in the database Spend. The visual similarity can be regarded as the visual similarity between the first user and the historical users. Further, the visual similarity between the captured image and at least one user image may be compared with a preset threshold, and if the visual similarity is greater than the preset threshold, the historical user corresponding to the corresponding user image may be determined as the second user. In this way, at least one second user matching the first user can be preliminarily determined among multiple historical users.
在一些实现方式中,对于第一用户的人脸存在遮挡或人脸难以识别的情况下,还可以提取采集图像中第一用户的人体特征,然后将第一用户的人体特征与用户数据库中多个用户图像的人体特征进行匹配,确定第一用户分别与多个历史用户的视觉相似度。In some implementations, when the face of the first user is occluded or difficult to recognize, the human body features of the first user in the captured image may also be extracted, and then the human body features of the first user may be combined with the multiple data in the user database. The human body features of each user image are matched to determine the visual similarity between the first user and multiple historical users.
在一些实现方式中,为了减少图像匹配的计算量,用户数据库中多个历史用户的用户图像可以是按照视觉相似度进行分类存储的,相同类对应的用户图像之间的视觉相似度较高。在将第一用户的采集图像与用户数据库中多个历史用户的用户图像进行匹配时,可以先将第一用户的采集图像的人脸特 征或人体特征与一个或多个类的中心特征进行比对,确定与第一用户匹配的类,再将第一用户的采集图像与该类中一个或多个历史用户的用户图像进行匹配,确定与第一用户匹配的至少一个第二用户。其中,一个类的中心特征可以是该类中至少一个用户图像的人脸特征或人体特征的平均值或者中值。In some implementations, in order to reduce the amount of calculation for image matching, user images of multiple historical users in the user database may be classified and stored according to visual similarity, and the visual similarity between user images corresponding to the same category is relatively high. When matching the captured image of the first user with the user images of multiple historical users in the user database, the facial features or human body features of the captured image of the first user can be compared with the central features of one or more classes Yes, determine the class that matches the first user, and then match the captured image of the first user with user images of one or more historical users in the class, and determine at least one second user that matches the first user. Wherein, the central feature of a class may be an average or median value of face features or human body features of at least one user image in the class.
在一些实现方式中,根据第一用户分别与数据库中多个历史用户的视觉相似度,在用户数据库中确定至少一个第二用户时,还可以根据第一用户与多个历史用户的视觉相似度由大至小的顺序,对多个历史用户进行排序,然后将排序在前的预设数量的历史用户确定为第二用户。例如,将排序的前5个历史用户确定为第二用户。In some implementations, according to the visual similarities between the first user and multiple historical users in the database, when at least one second user is determined in the user database, the visual similarity between the first user and multiple historical users can also be The plurality of historical users are sorted in descending order, and then a preset number of historical users sorted first are determined as the second users. For example, the top 5 sorted historical users are determined as the second users.
步骤S13,分别确定所述至少一个第二用户的历史时空分布。Step S13, respectively determining the historical spatio-temporal distribution of the at least one second user.
在本公开实施例中,历史时空分布用于表示第二用户在至少一个时间段出现在一个或多个地点的概率。不同历史用户可以对应不同的历史时空分布。通过历史时空分布可以确定一个或多个历史用户出现在一个或多个地点的概率,例如,根据第二用户的历史时空分布,可以确定该第二用户在上午9:00-10:00的时间段出现在A地点的概率为70%。历史时空分布可以是基于历史用户记录生成的,历史用户记录可以记录有历史用户进入或离开目标区域的时间和地点,通过历史用户记录可以对当前用户的时空分布提供指导,即,某一用户在9:00-10:00出现在B地点的次数较多,那么当前该用户在9:00-10:00出现在B地点的可能性很大。In the embodiments of the present disclosure, the historical spatio-temporal distribution is used to represent the probability that the second user appears in one or more places in at least one time period. Different historical users may correspond to different historical spatiotemporal distributions. The probability of one or more historical users appearing in one or more places can be determined through the historical spatio-temporal distribution. For example, according to the historical spatio-temporal distribution of the second user, the time of the second user at 9:00-10:00 am can be determined The probability that a segment appears at location A is 70%. Historical spatio-temporal distribution can be generated based on historical user records. Historical user records can record the time and place when historical users entered or left the target area. Historical user records can provide guidance for current user spatio-temporal distribution, that is, a user in If there are more times of appearance at location B from 9:00 to 10:00, it is very likely that the current user appears at location B from 9:00 to 10:00.
步骤S14,基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户。Step S14, identifying the first user among the at least one second user based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user.
在本公开实施例中,可以基于第一用户的时空信息和至少一个第二用户的历史时空分布,确定第一用户分别与至少一个第二用户的时空相似度,例如,根据第一用户的时空信息,在至少一个第二用户的历史时空分布中,查询第一用户的时空信息所对应的数值,根据该数值可以确定第一用户与至少一个第二用户的时空相似度。时空相似度可以理解为,第一用户与第二用户在时间和地点上的匹配程度,即,第二用户出现在第一用户的时空信息的可能性。历史时空分布可以以统计表、统计矩阵或统计曲线的方式进行表示。In an embodiment of the present disclosure, based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of at least one second user, the spatiotemporal similarity between the first user and at least one second user can be determined, for example, according to the spatiotemporal Information, in the historical spatio-temporal distribution of at least one second user, query the value corresponding to the spatio-temporal information of the first user, and determine the spatio-temporal similarity between the first user and the at least one second user according to the value. The spatio-temporal similarity can be understood as the degree of matching between the first user and the second user in time and place, that is, the possibility that the second user appears in the spatio-temporal information of the first user. The historical spatio-temporal distribution can be expressed in the form of statistical tables, statistical matrices or statistical curves.
在一些实现方式中,在确定第一用户分别与至少一个第二用户的时空相似度之后,进一步可以根据第一用户分别与至少一个第二用户的时空相似度,在至少一个第二用户中识别第一用户,例如,可以将至少一个第二用户中与第一用户的时空相似度最大的第二用户,确定为第一用户,进一步可以获取第一用户的身份信息。这样,可以先根据第一用户的采集图像,筛选出与第一用户在视觉上较为相似的第二用户,再通过第一用户与至少一个第二用户的时空相似度,在至少一个第二用户中识别第一用户,从而可以在通过人脸图像难以识别用户身份的情况下,通过用户的历史时空分布对用户的身份进行验证,提高身份识别的准确率。In some implementations, after determining the spatio-temporal similarities between the first user and at least one second user, it is further possible to identify among at least one second user based on the spatio-temporal similarities between the first user and at least one second user. The first user, for example, may determine the second user having the greatest spatio-temporal similarity with the first user among at least one second user as the first user, and may further acquire identity information of the first user. In this way, the second user who is visually similar to the first user can be screened out first based on the collected images of the first user, and then based on the spatiotemporal similarity between the first user and at least one second user, at least one second user In order to identify the first user, in the case that it is difficult to identify the user's identity through the face image, the user's identity can be verified through the user's historical spatiotemporal distribution, and the accuracy of identity recognition can be improved.
在一些实现方式中,在从多个第二用户中识别出第一用户之后,还可以将第一用户的采集图像和时空信息保存在第一用户的历史用户记录中,从而第一用户的采集图像和时空信息可以作为后续历史时空分布更新的历史用户记录,方便后续的信息量化统计与计算,例如,在地铁进出站场景中,可以将新增的进出站信息保存在乘客的乘车记录中。In some implementations, after the first user is identified from multiple second users, the captured images and spatio-temporal information of the first user may also be saved in the historical user records of the first user, so that the collected images of the first user Images and spatio-temporal information can be used as historical user records for subsequent historical spatio-temporal distribution updates to facilitate subsequent information quantification statistics and calculations. For example, in the scene of subway entry and exit, the newly added entry and exit information can be saved in the passenger's ride record .
在一些应用场景中,例如,在地跌、高铁的进出站或景区景点游览等场景中,可以在从多个第二用户中识别出第一用户之后,根据第一用户的进站信息和出站信息生成目标用户的消费信息,从而可 以自动根据第一用户的消费信息实现扣费,提高售票或检票效率,提高自动售票或检票的安全性和准确性。In some application scenarios, for example, in scenarios such as ground falls, high-speed rail entry and exit, or scenic spot tours, after the first user is identified from multiple second users, the first user's entry information and exit information can be used to identify the first user. The consumption information of the target user is generated through station information, so that the deduction of fees can be automatically realized according to the consumption information of the first user, the efficiency of ticket sales or ticket inspection can be improved, and the safety and accuracy of automatic ticket sales or ticket inspection can be improved.
本公开实施例可以在用户的身份识别中考虑用户的历史时空分布,通过历史时空分布对当前的身份识别提供参考,减少由于单纯使用人脸图像进行身份识别的误判情况的发生。在客流量大、人脸图像数量较大的轨道交通、景区等场景中,单纯利用人脸识别技术在百万级别的人脸图像中查找最相似的人脸是个不小的挑战,或者,在一些面部佩戴有口罩、眼镜等局部存在遮挡的情况下,仅通过人脸识别难以确认用户身份的情况下,可以通过用户的历史时空分布辅助单一的人脸识别任务对用户的身份进行验证,提高身份识别的准确率。The embodiments of the present disclosure can consider the user's historical spatiotemporal distribution in the user's identity recognition, provide reference for the current identity recognition through the historical space-time distribution, and reduce the occurrence of misjudgment due to purely using face images for identity recognition. In scenarios such as rail transit and scenic spots with a large passenger flow and a large number of face images, it is not a small challenge to simply use face recognition technology to find the most similar face among millions of face images. In some cases where the face is partially blocked by wearing a mask, glasses, etc., and it is difficult to confirm the user's identity only through face recognition, the user's identity can be verified by assisting a single face recognition task through the user's historical spatiotemporal distribution, improving Accuracy of identification.
在一些实现方式中,还可以基于第一用户分别与至少一个第二用户的视觉相似度和时空相似度,在至少一个第二用户中识别第一用户。例如,可以将第一用户与至少一个第二用户的视觉相似度和时空相似度相加,生成一个得分,该得分越高表示第二用户是第一用户的可能性越高,进而可以将第一用户与至少一个第二用户的得分由大到小进行排序,然后将排序序列中得分最高的第二用户判断为目标用户。通过这种方式,可以将第一用户与第二用户的视觉相似度和时空相似度相结合,进一步提高身份识别的准确率。In some implementation manners, the first user may be identified among the at least one second user based on the visual similarity and the spatio-temporal similarity between the first user and the at least one second user. For example, the visual similarity and spatio-temporal similarity between the first user and at least one second user can be added to generate a score. The higher the score, the higher the possibility that the second user is the first user. Scores of a user and at least one second user are sorted from large to small, and then the second user with the highest score in the sorted sequence is determined as the target user. In this way, the visual similarity and spatio-temporal similarity between the first user and the second user can be combined to further improve the accuracy of identification.
在一些实现方式中,在基于第一用户分别与至少一个第二用户的视觉相似度和时空相似度,在至少一个第二用户中识别所述第一用户时,还可以针对至少一个第二用户,对第一用户与至少一个第二用户的视觉相似度和时空相似度进行加权,得到第一用户与至少一个第二用户的融合相似度。再基于第一用户分别与至少一个第二用户的融合相似度,在至少一个第二用户中识别第一用户。例如,可以将融合相似度大于一定相似度阈值的第二用户确定为第一用户,或者,可以对多个第二用户分别与第一用户的融合相似度进行由大到小排序,然后可以将至少一个第二用户中与第一用户的融合相似度最大的第二用户,确定为第一用户匹配的第二用户。这样,可以通过时空相似度和视觉相似度相融合的融合相似度对目标用户进行身份识别,在多个第二用户中识别出第一用户。In some implementations, when identifying the first user among at least one second user based on the visual similarity and spatiotemporal similarity between the first user and at least one second user, the at least one second user may also be , weighting the visual similarity and spatio-temporal similarity between the first user and at least one second user to obtain the fused similarity between the first user and at least one second user. Then, based on the fused similarities between the first user and the at least one second user, the first user is identified among the at least one second user. For example, the second user whose fusion similarity is greater than a certain similarity threshold can be determined as the first user, or the fusion similarities between multiple second users and the first user can be sorted from large to small, and then the Among the at least one second user, the second user whose fusion similarity with the first user is the largest is determined as the second user matching the first user. In this way, the target user can be identified through the fused similarity obtained by fusing the spatio-temporal similarity and the visual similarity, and the first user can be identified among multiple second users.
这里,可以预先设置时空相似度和视觉相似度分别对应的权重系数,然后可以根据预先设置的权重系数对时空相似度和视觉相似度进行加权求和,得到第一用户与至少一个第二用户的融合相似度。时空相似度的权重和视觉相似度的权重系数可以根据实际需求进行设置,在一些示例中,时空相似度的权重系数可以小于视觉相似度的权重系数,从而历史时空分布可以作为身份识别的辅助判断信息,利用历史时空分布矫正因单一的人脸图像判断用户身份而造成的误识别现象,提高用户身份识别的准确率。Here, the weight coefficients corresponding to the spatio-temporal similarity and the visual similarity can be preset, and then the spatio-temporal similarity and the visual similarity can be weighted and summed according to the preset weight coefficients to obtain the first user and at least one second user. Fusion Similarity. The weight of the spatiotemporal similarity and the weight coefficient of the visual similarity can be set according to actual needs. In some examples, the weight coefficient of the spatiotemporal similarity can be smaller than the weight coefficient of the visual similarity, so that the historical spatiotemporal distribution can be used as an auxiliary judgment for identification Information, using the historical spatiotemporal distribution to correct the misidentification caused by a single face image to judge the user's identity, and improve the accuracy of user identity recognition.
在一些实现方式中,可以针对至少一个第二用户中的至少一个第二用户,在第二用户的历史时空分布中,确定该第二用户在第一用户对应的采集时间位于第一用户对应的采集地点的概率,根据确定的概率,可以确定第一用户与该第二用户的时空相似度。In some implementations, for at least one second user among the at least one second user, in the historical spatiotemporal distribution of the second user, it may be determined that the second user is located at the location corresponding to the first user at the collection time corresponding to the first user. The probability of the collection location, according to the determined probability, the spatio-temporal similarity between the first user and the second user can be determined.
这里,对于进入或离开目标区域的第一用户而言,该第一用户的已知信息可以是该第一用户的时空信息,时空信息可以包括采集时间和采集地点。对于至少一个第二用户而言,可以根据至少一个第二用户的用户标识,确定该第二用户的历史时空分布。历史时空分布可以通过分布图或者表格等方式进行表示,本公开不对具体的表示方式进行限制。然后可以在至少一个第二用户的历史时空分布中,查找第一用户对应的采集时间以及采集地点共同对应的数值,该数值可以是第二用户在该采集时间出 现在该采集地点的概率。进一步可以将该概率确定为第一用户与第二用户的时空相似度。或者,可以根据概率与时空相似度的对应关系,确定该概率对应的时空相似度,如概率与时空相似度可以呈线性关系,将概率乘以预设系数可以得到时空相似度。这样,可以通过查找第二用户的历史时空分布推测该第二用户匹配第一用户的时空信息的可能性,即确定第一用户与至少一个第二用户的时空相似度,为用户的身份识别提供有效的依据。Here, for the first user entering or leaving the target area, the known information of the first user may be the spatio-temporal information of the first user, and the spatio-temporal information may include collection time and collection location. For at least one second user, the historical spatiotemporal distribution of the second user may be determined according to the user identifier of the at least one second user. The historical spatio-temporal distribution may be represented by a distribution diagram or a table, and the present disclosure does not limit the specific representation. Then, in the historical spatio-temporal distribution of at least one second user, a value corresponding to the collection time and the collection location corresponding to the first user can be found, and the value can be the probability that the second user appears at the collection location at the collection time. Further, the probability may be determined as the spatio-temporal similarity between the first user and the second user. Alternatively, the spatiotemporal similarity corresponding to the probability can be determined according to the corresponding relationship between the probability and the spatiotemporal similarity. For example, the probability and the spatiotemporal similarity can have a linear relationship, and the spatiotemporal similarity can be obtained by multiplying the probability by a preset coefficient. In this way, the possibility of the second user matching the spatio-temporal information of the first user can be inferred by looking up the historical spatio-temporal distribution of the second user, that is, the spatio-temporal similarity between the first user and at least one second user can be determined, providing a user identification valid basis.
在一些实现方式中,在确定第二用户在第一用户对应的采集时间位于第一用户对应的采集地点的概率时,可以确定第一用户对应的采集时间所在的时间段,进一步在第二用户的历史时空分布中,确定该第二用户在该时间段出现在该采集地点的概率。这样,即使采集时间存在一些误差,也可以通过确定采集时间所在的时间段,准确地确定第二用户在该时间段出现在该采集地点的概率,减少采集时间可能存在的误差对确定的概率的影响。In some implementations, when determining the probability that the second user is located at the collection location corresponding to the first user at the collection time corresponding to the first user, the time period in which the collection time corresponding to the first user is located may be determined, and further in the second user From the historical spatio-temporal distribution of , determine the probability that the second user appears at the collection location during the time period. In this way, even if there are some errors in the collection time, by determining the time period where the collection time is located, the probability of the second user appearing at the collection location during this time period can be accurately determined, reducing the influence of possible errors in the collection time on the determined probability. influences.
图2示出根据本公开实施例的历史时空分布的分布图,该历史时空分布可以是一第二用户在一地点进入或离开目标区域的历史时空分布。分布图的横坐标可以表示时间,纵坐标可以表示概率。纵坐标可以在0至1之间。为了减少横坐标标注的时间刻度,可以以一个固定的时间单位对时长进行量化,例如,以30分钟作为时间刻度的量化单位,即,可以理解为,将横坐标标注的时间刻度乘以30分钟得到的时间长度,可以等于实际的时间长度。例如,在地铁场景中,可以将用户的乘车时间按照地铁运营的关闭时间减去地铁运营的开始时间,再将每三十分钟作为一个时间段,得到分布图的横坐标,假设地铁的关闭时间为18:00,地铁的开始时间为8:00,地铁运营时长共10小时,将三十分钟作为一个时间段,可以将地铁运营时长划分为0-20个时段,图中横坐标的0.0可以表示开始时间8:00,2.5可以表示9:15,20.0可以表示18:00。FIG. 2 shows a distribution diagram of a historical spatio-temporal distribution according to an embodiment of the present disclosure. The historical spatio-temporal distribution may be a historical spatio-temporal distribution of a second user entering or leaving a target area at a location. The abscissa of the distribution graph can represent time, and the ordinate can represent probability. The ordinate can be between 0 and 1. In order to reduce the time scale marked on the abscissa, the duration can be quantified with a fixed time unit, for example, 30 minutes is used as the quantization unit of the time scale, that is, it can be understood as multiplying the time scale marked on the abscissa by 30 minutes The obtained time length may be equal to the actual time length. For example, in the subway scene, the user's ride time can be subtracted from the start time of the subway operation by the closing time of the subway operation, and then every 30 minutes can be regarded as a time period to obtain the abscissa of the distribution map. Assuming that the subway is closed The time is 18:00, the start time of the subway is 8:00, and the operation time of the subway is 10 hours in total. Taking 30 minutes as a time period, the operation time of the subway can be divided into 0-20 time periods. The abscissa in the figure is 0.0 It can represent the start time of 8:00, 2.5 can represent 9:15, and 20.0 can represent 18:00.
在一些示例中,历史时空分布可以包括进站分布和出站分布,例如,在一些轨道交通场景中,一个或多个历史用户可以对应一个进站分布和一个出站分布。进站分布和出站分布不同。在确定第二用户在采集时间对应的时间段位于采集地点的概率时,在第一用户的采集地点为出站站点的情况下,即在出站场景中,可以在第二用户的出站分布中,确定第二用户在采集时间对应的时间段位于出站站点的概率。或者,在第一用户的采集地点为进站站点的情况下,即在进站场景中,可以在第二用户的进站分布中,确定第二用户在采集时间对应的时间段位于进站站点的概率。In some examples, the historical spatio-temporal distribution may include an inbound distribution and an outbound distribution. For example, in some rail transit scenarios, one or more historical users may correspond to an inbound distribution and an outbound distribution. The inbound distribution is different from the outbound distribution. When determining the probability that the second user is located at the collection location during the time period corresponding to the collection time, when the collection location of the first user is an outbound site, that is, in the outbound scenario, the outbound distribution of the second user can be , determine the probability that the second user is located at the outbound site in the time period corresponding to the collection time. Or, in the case where the first user's collection location is the inbound site, that is, in the inbound scenario, it can be determined that the second user is located in the inbound site during the time period corresponding to the collection time in the inbound distribution of the second user The probability.
举例来说,对于进站或出站的第一用户来说,已知量为第一用户是进站或是出站、当前的站点和采集时间,根据由历史用户记录得出的历史时空分布,可以在视觉上与第一用户最为相似的多个第二用户中,根据第二用户的用户编号、第一用户是进站或是出站、当前的站点和采集时间,确定至少一个第二用户为第一用户的概率。如果历史时空分布表明,某第二用户在当前的站点以及采集时间所在的时间段乘车的概率较大,则对于本次乘车行为,这第二用户和当前进出站的第一用户为同一人的可能性很大,因此,可以通过历史时空分布为用户身份识别提供依据。For example, for the first user entering or exiting the station, the known quantity is whether the first user entered or exited the station, the current station and the collection time, according to the historical spatiotemporal distribution obtained from the historical user records , among multiple second users visually most similar to the first user, determine at least one second The probability that the user is the first user. If the historical spatio-temporal distribution shows that a second user has a higher probability of taking a bus at the current station and the time period where the collection time is located, then for this ride behavior, the second user is the same as the first user who is currently entering or leaving the station People are very likely, therefore, the basis for user identification can be provided through historical spatio-temporal distribution.
在本公开实施例中,可以根据至少一个第二用户的历史时空分布,确定第一用户与至少一个第二用户的时空相似度,从而可以为用户识别提供有效的参考信息。其中,历史时空分布可以是基于历史用户进入或离开目标区域的历史用户记录生成的,历史用户记录可以为识别当前第一用户的身份提供参考,下面通过一个或多个实现方式对得到历史时空分布的过程进行说明。In an embodiment of the present disclosure, the spatio-temporal similarity between the first user and the at least one second user may be determined according to the historical spatio-temporal distribution of the at least one second user, thereby providing effective reference information for user identification. Among them, the historical spatio-temporal distribution can be generated based on the historical user records of historical users entering or leaving the target area. The historical user records can provide a reference for identifying the identity of the current first user. The historical spatio-temporal distribution is obtained through one or more implementation methods below process is described.
在一些实现方式中,可以获取多个历史用户的历史用户记录,即,获取多个历史用户进入或离开 目标区域的记录。多个历史用户可以包括至少一个第二用户。基于一个或多个历史用户的历史用户记录,可以统计一个或多个历史用户在至少一个时间段出现在一个或多个地点的历史次数,以及统计一个或多个历史用户在该时间段出现在该地点的总次数。进一步根据至少一个时间段、一个或多个地点的历史次数和总次数可以生成该历史用户的历史时空分布。In some implementations, the historical user records of multiple historical users can be obtained, that is, the records of multiple historical users entering or leaving the target area can be obtained. The plurality of historical users may include at least one second user. Based on the historical user records of one or more historical users, it is possible to count the historical times of one or more historical users appearing in one or more places in at least one time period, and to count the historical times in which one or more historical users appeared in the time period Total counts for this location. Further, the historical spatiotemporal distribution of the historical users can be generated according to at least one time period, historical times and total times of one or more locations.
在本公开实例中,历史用户记录可以表示历史用户进入目标区域或离开目标区域的进出记录,为了使得到历史时空分布具有可信度,可以获取最近一段时间内(不少于预设时长)一个或多个历史用户的历史用户记录,例如,获取最近两周内一个或多个历史用户的历史用户记录。历史用户记录可以包括历史用户的进入或离开目标区域的地点、进入或离开目标区域的时间、用户标识等信息。为了便于区分不同地点,可以对不同地点分配唯一编号进行标识。为了便于统计,可以将时间以一定时间单位进行量化,例如,以三十分钟为一个时间单位对时间进行量化,得到多个时间段。根据一个或多个历史用户的历史用户记录,可以统计一个或多个历史用户在一个或多个地点和至少一个时间段出现的历史次数,从而得到一个基于历史用户、地点和时间段的统计模型(如统计表、统计矩阵等),该统计模型的大小可以为:历史用户数×地点数×时间段数。统计模型内的一个元素可以表示该历史用户在当前地点当前时间段进入或离开目标区域的历史次数。对于一个或多个历史用户而言,可以统计该历史用户在至少一个时间段出现在一个或多个地点的历史次数,以及统计所用历史用户在该时间段出现在该地点的总次数,每个历史用户对应的历史次数除以所有历史用户对应的总次数,可以得到该历史用户在该时间段出现在该地点的概率。In this disclosure example, historical user records may represent the entry and exit records of historical users entering or leaving the target area. In order to make the historical spatio-temporal distribution credible, it is possible to obtain a recent period (not less than the preset duration) or multiple historical user records of historical users, for example, obtain the historical user records of one or more historical users in the last two weeks. The historical user record may include information such as the location where the historical user entered or left the target area, the time when the historical user entered or left the target area, and user identification. In order to facilitate the distinction between different locations, unique numbers can be assigned to different locations for identification. For the convenience of statistics, the time may be quantified in a certain time unit, for example, the time is quantified by taking thirty minutes as a time unit to obtain multiple time periods. According to the historical user records of one or more historical users, the historical times of one or more historical users appearing in one or more locations and at least one time period can be counted, so as to obtain a statistical model based on historical users, locations and time periods (such as statistical table, statistical matrix, etc.), the size of the statistical model can be: the number of historical users × the number of locations × the number of time periods. An element in the statistical model may represent the historical number of times the historical user entered or left the target area during the current time period at the current location. For one or more historical users, it is possible to count the historical times that the historical user appeared in one or more places in at least one time period, and the total number of times the historical users used in the statistics appeared in the place in the time period, each The historical times corresponding to the historical users are divided by the total times corresponding to all historical users, and the probability of the historical users appearing at the place in the time period can be obtained.
这里,可以通过数据建模的方式生成一个或多个历史用户在至少一个时间段出现在一个或多个地点的统计模型,通过历史用户记录,可以得出一个或多个历史用户在一个或多个位置和至少一个时间段进入或离开目标区域的历史时空分布,即,可以通过历史用户记录对当前用户的进入目标区域或离开目标区域的行为进行预测。Here, a statistical model of one or more historical users appearing in one or more places in at least one time period can be generated by means of data modeling, and one or more historical users can be obtained in one or more location and at least one period of time entering or leaving the target area, that is, the current user's behavior of entering or leaving the target area can be predicted through historical user records.
在一些示例中,在地铁站乘车场景中,历史用户记录以下至少一项信息:用户标识、进站标识或出站标识、站点标识、进站或出站的时间。上述统计模型可以包括进站模型和出站模型。In some examples, in the subway station riding scene, the historical user records at least one of the following information: user ID, entering or exiting identification, station identification, time of entering or exiting the station. The aforementioned statistical models may include inbound models and outbound models.
在一些实现方式中,为了进一步提高历史时空分布的可靠性,可以对历史时空分布进行平滑处理,得到平滑处理后历史用户的历史时空分布。例如,可以对历史时空分布进行高斯平滑处理,得到平滑处理后的历史时空分布。由于相邻时间段的概率值具有连续性,例如,用户在某一时间段经常乘车,在相邻时间段也存在一定概率乘车,从而可以在时间维度上进行高斯平滑处理,使历史时空分布的曲线在时间上也具有连续性。在高斯平滑处理时,可以对概率进行归一化,将概率归一化到0至1之间,得到一个或多个历史用户最终的历史时空分布。历史时空分布的概率分布曲线上的每个值可以对应该历史用户在当前时间段出现在当前地点的概率。In some implementation manners, in order to further improve the reliability of the historical spatio-temporal distribution, the historical spatio-temporal distribution may be smoothed to obtain the historical spatio-temporal distribution of the historical users after the smoothing process. For example, Gaussian smoothing can be performed on the historical spatio-temporal distribution to obtain the smoothed historical spatio-temporal distribution. Since the probability values of adjacent time periods are continuous, for example, if a user frequently rides in a certain time period, there is also a certain probability of riding in an adjacent time period, so that Gaussian smoothing can be performed in the time dimension, making the historical space-time The distribution curve is also continuous in time. During Gaussian smoothing, the probability can be normalized, and the probability can be normalized between 0 and 1 to obtain the final historical spatiotemporal distribution of one or more historical users. Each value on the probability distribution curve of the historical space-time distribution may correspond to the probability that the historical user appears at the current location in the current time period.
图3示出本公开实施例提供的未经平滑处理的历史时空分布的分布图,上述图2可以历是经过平滑处理后的历史时空分布的分布图。可以看到,平滑处理后的历史时空分布对应的概率曲线具有连续性,可以更加满足实际场景的需求。FIG. 3 shows a distribution diagram of an unsmoothed historical spatio-temporal distribution provided by an embodiment of the present disclosure, and the foregoing FIG. 2 may be a distribution diagram of a smoothed historical spatio-temporal distribution. It can be seen that the probability curve corresponding to the smoothed historical space-time distribution has continuity, which can better meet the needs of actual scenarios.
下面通过一个示例对本公开实施例提供的身份识别方法进行示例性的说明。图4示出根据本公开实施例的身份识别方法一示例的流程图,在本示例中,目标区域可以是地跌站,第一用户可以进入地铁站乘车的乘客,采集图像可以是进站图像,采集地点可以是进站站点,采集时间可以是进站时间。 如图4所示,该示例提供的身份识别流程可以包括以下步骤:The identification method provided by the embodiment of the present disclosure will be illustrated below through an example. Fig. 4 shows a flow chart of an example of an identification method according to an embodiment of the present disclosure. In this example, the target area may be an underground station, the first user may enter a subway station to take a passenger, and the captured image may be an entry into the station. For images, the collection location can be the station of the station, and the collection time can be the time of the station. As shown in Figure 4, the identification process provided by this example may include the following steps:
步骤S201,获取到第一用户的进站图像、进站时间和进站站点。In step S201, the first user's inbound image, inbound time and inbound site are obtained.
步骤S202,将第一用户的进站图像与用户数据库中历史用户的用户图像进行匹配,确定第一用户与历史用户的视觉相似度。Step S202, matching the inbound image of the first user with the user images of the historical users in the user database, and determining the visual similarity between the first user and the historical users.
步骤S203,确定与第一用户的视觉相似度大于预设阈值的至少一个第二用户。Step S203, determining at least one second user whose visual similarity with the first user is greater than a preset threshold.
步骤S204,分别获取至少一个第二用户的历史时空分布。Step S204, acquiring the historical spatio-temporal distribution of at least one second user respectively.
步骤S205,根据第一用户的进站时间和进站站点,分别查找至少一个第二用户的历史时空分布,确定第一用户与至少一个第二用户的时空相似度;Step S205, according to the entry time and entry site of the first user, respectively search the historical spatiotemporal distribution of at least one second user, and determine the spatiotemporal similarity between the first user and at least one second user;
步骤S206,将第一用户与至少一个第二用户的视觉相似度和时空相似度进行加权融合,得到第一用户与至少一个第二用户的融合相似度;Step S206, performing weighted fusion of the visual similarity and spatio-temporal similarity between the first user and at least one second user to obtain the fused similarity between the first user and at least one second user;
步骤S207,将第一用户与至少一个第二用户的融合相似度从大到小排序,得出融合相似度最大的第二用户,并将融合相似度最大的第二用户确定为第一用户。Step S207, sorting the fusion similarity between the first user and at least one second user from large to small, obtain the second user with the highest fusion similarity, and determine the second user with the maximum fusion similarity as the first user.
本公开提供的身份识别方案,在用户身份识别的过程中,融合了用户进入或离开目标区域的时空信息,从而对用户身份的判断更为准确。相比于单一利用人脸识别进行身份识别,本公开更适用于具有大规模数据的轨道交通场景,可以有效减少因采集图像的数量级增大而引起的相似用户误报的情况。此外,随着时间推移,由于历史大数据的不断积累,本公开提供的身份识别的准确率可以逐步迭代增强。同时,对于单一的人脸识别可能发生的由于数据库中图像和现场图片不够相似而造成的误检情况,结合历史用户的历史时空分布后也可提高身份识别的鲁棒性。The identification scheme provided by the present disclosure integrates the spatio-temporal information of the user entering or leaving the target area during the process of user identification, so that the identification of the user's identity is more accurate. Compared with single use of face recognition for identity recognition, the present disclosure is more suitable for rail transit scenarios with large-scale data, and can effectively reduce the false alarm of similar users caused by the increase in the order of magnitude of collected images. In addition, as time goes by, due to the continuous accumulation of historical big data, the accuracy of identification provided by the present disclosure can be iteratively enhanced gradually. At the same time, for the false detection that may occur in single face recognition due to the lack of similarity between the images in the database and the on-site pictures, the robustness of identity recognition can also be improved by combining the historical spatiotemporal distribution of historical users.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments mentioned in this disclosure can all be combined with each other to form a combined embodiment without violating the principle and logic. Due to space limitations, this disclosure will not repeat them. Those skilled in the art can understand that, in the above method in the specific implementation manner, the specific execution order of each step should be determined according to its function and possible internal logic.
此外,本公开还提供了身份识别装置、电子设备、计算机可读存储介质、程序产品,上述均可用来实现本公开提供的任一种身份识别方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, this disclosure also provides identification devices, electronic equipment, computer-readable storage media, and program products, all of which can be used to implement any of the identification methods provided by this disclosure, and refer to the corresponding technical solutions and descriptions in the method section. record, no more details.
图5示出根据本公开实施例的身份识别装置的框图,如图5所示,所述装置包括:Fig. 5 shows a block diagram of an identity recognition device according to an embodiment of the present disclosure. As shown in Fig. 5, the device includes:
获取模块31,用于获取第一用户的采集图像和时空信息,其中,所述时空信息用于指示所述采集图像的采集时间和采集地点;An acquisition module 31, configured to acquire the collected images and spatio-temporal information of the first user, wherein the spatio-temporal information is used to indicate the collection time and collection location of the collected images;
第一确定模块32,用于根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户;The first determining module 32 is configured to determine at least one second user in the user database according to the captured image of the first user;
第二确定模块33,用于分别确定所述至少一个第二用户的历史时空分布,其中,所述历史时空分布用于表示所述第二用户在至少一个时间段出现在一个或多个地点的概率;The second determining module 33 is configured to respectively determine the historical spatio-temporal distribution of the at least one second user, wherein the historical spatio-temporal distribution is used to indicate that the second user appears in one or more places in at least one time period probability;
识别模块34,用于基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户。An identifying module 34, configured to identify the first user among the at least one second user based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user.
在一个或多个可能的实现方式中,所述识别模块34,用于基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,确定所述第一用户分别与所述至少一个第二用户的时空相似度;基于所述第一用户分别与所述至少一个第二用户的所述时空相似度,在所述至少一个第二用户中识别所述第一用户;或者,基于所述第一用户分别与至少一个所述第二用户的视觉相似度和所述时空相似度, 在所述至少一个第二用户中识别所述第一用户。In one or more possible implementation manners, the identification module 34 is configured to determine, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, the The spatiotemporal similarity of the at least one second user; based on the spatiotemporal similarity between the first user and the at least one second user, identifying the first user among the at least one second user; or , identifying the first user among the at least one second user based on the visual similarity between the first user and the at least one second user and the spatio-temporal similarity respectively.
在一个或多个可能的实现方式中,所述识别模块34,用于针对至少一个所述第二用户,在所述第二用户的历史时空分布中,确定所述第二用户在所述采集时间位于所述采集地点的概率;根据所述概率确定所述第一用户与所述第二用户的时空相似度。In one or more possible implementations, the identification module 34 is configured to, for at least one second user, determine that the second user is in the collected The probability that time is located at the collection location; determine the spatio-temporal similarity between the first user and the second user according to the probability.
在一个或多个可能的实现方式中,所述识别模块34,用于在所述采集地点为出站站点的情况下,在所述第二用户的出站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述出站站点的概率;或者,在所述采集地点为进站站点的情况下,在所述第二用户的进站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述进站站点的概率。In one or more possible implementation manners, the identification module 34 is configured to determine the second user in the outbound distribution of the second user when the collection location is an outbound site The probability that the time period corresponding to the collection time is located at the outbound site; or, in the case that the collection site is an inbound site, in the inbound distribution of the second user, determine the second The probability that the user is located at the inbound site during the time period corresponding to the collection time.
在一个或多个可能的实现方式中,所述识别模块34,用于针对至少一个所述第二用户,对所述第一用户与所述第二用户的视觉相似度和时空相似度进行加权,得到所述第一用户与所述第二用户的融合相似度;基于所述第一用户分别与所述至少一个第二用户的融合相似度,在所述至少一个第二用户中识别所述第一用户。In one or more possible implementations, the recognition module 34 is configured to, for at least one second user, weight the visual similarity and spatiotemporal similarity between the first user and the second user , to obtain the fusion similarity between the first user and the second user; based on the fusion similarity between the first user and the at least one second user, identify the first user.
在一个或多个可能的实现方式中,所述识别模块34,用于将所述至少一个第二用户中与所述第一用户的融合相似度最大的第二用户,确定为所述第一用户匹配的第二用户。In one or more possible implementations, the identification module 34 is configured to determine, among the at least one second user, the second user whose fusion similarity with the first user is the largest as the first user The second user that the user matches.
在一个或多个可能的实现方式中,所述识别模块,用于将所述第一用户的采集图像与所述用户数据库中历史用户的用户图像进行匹配,确定所述第一用户与所述历史用户的视觉相似度;在所述视觉相似度大于预设阈值的情况下,将所述历史用户确定为所述第二用户。In one or more possible implementations, the identification module is configured to match the captured image of the first user with user images of historical users in the user database, and determine whether the first user is related to the The visual similarity of the historical user; if the visual similarity is greater than a preset threshold, the historical user is determined as the second user.
在一个或多个可能的实现方式中,所述装置还包括:生成模块,用于获取多个历史用户的历史用户记录,其中,所述多个历史用户包括所述至少一个第二用户;基于所述历史用户记录,统计所述历史用户在至少一个时间段出现在一个或多个地点的历史次数,以及统计一个或多个历史用户在所述时间段出现在所述地点的总次数;根据所述历史次数以及所述总次数,生成所述历史用户的历史时空分布。In one or more possible implementations, the device further includes: a generating module, configured to acquire historical user records of multiple historical users, where the multiple historical users include the at least one second user; based on The historical user record counts the historical number of times that the historical user appears in one or more places in at least one time period, and counts the total number of times that one or more historical users appear in the place in the time period; according to The historical times and the total times generate the historical spatio-temporal distribution of the historical users.
在一个或多个可能的实现方式中,所述生成模块,还用于对所述历史时空分布进行平滑处理,得到平滑处理后所述历史用户的历史时空分布。In one or more possible implementation manners, the generation module is further configured to perform smoothing processing on the historical spatio-temporal distribution, to obtain the historical spatio-temporal distribution of the historical users after smoothing processing.
在一个或多个可能的实现方式中,所述装置还包括:记录模块,用于将所述第一用户的采集图像和时空信息保存在所述第一用户的历史用户记录中,其中,所述历史用户记录包括以下至少一项信息:用户标识、进站标识或出站标识、站点标识、进站或出站的时间。In one or more possible implementations, the device further includes: a recording module, configured to save the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the The historical user record includes at least one of the following information: user ID, inbound ID or outbound ID, site ID, inbound or outbound time.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.
本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. Computer readable storage media may be volatile or nonvolatile computer readable storage media.
本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设 备中的处理器执行上述方法。An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。Electronic devices may be provided as terminals, servers, or other forms of devices.
图6示出根据本公开实施例的一种电子设备800的框图。例如,电子设备800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 6 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure. For example, the electronic device 800 may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant.
参照图6,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。6, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814 , and the communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect a duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。 传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the electronic device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, the sensor component 814 can also detect the electronic device 800 or a Changes in position of components, presence or absence of user contact with electronic device 800 , electronic device 800 orientation or acceleration/deceleration and temperature changes in electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如无线网络(WiFi),第二代移动通信技术(2G)或第三代移动通信技术(3G),或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to implement the above method.
图7示出根据本公开实施例的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图7,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 7 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure. For example, electronic device 1900 may be provided as a server. Referring to FIG. 7 , electronic device 1900 includes processing component 1922 , which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922 , such as application programs. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如微软服务器操作系统(Windows Server TM),苹果公司推出的基于图形用户界面操作系统(Mac OS X TM),多用户多进程的计算机操作系统(Unix TM),自由和开放原代码的类Unix操作系统(Linux TM),开放原代码的类Unix操作系统(FreeBSD TM)或类似。 Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input-output (I/O) interface 1958 . The electronic device 1900 can operate based on the operating system stored in the memory 1932, such as the Microsoft server operating system (Windows Server TM ), the graphical user interface-based operating system (Mac OS X TM ) introduced by Apple Inc., and the multi-user and multi-process computer operating system (Unix ), a free and open source Unix-like operating system (Linux ), an open source Unix-like operating system (FreeBSD ), or the like.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to implement the above method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合 适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言-诸如Smalltalk、C++等,以及常规的过程式编程语言-诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络-包括局域网(LAN)或广域网(WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages - such as Smalltalk, C++, etc., and conventional procedural programming languages - such as the "C" language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present disclosure are implemented by executing computer readable program instructions.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能 而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically realized by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Having described various embodiments of the present disclosure above, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or improvement of technology in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.

Claims (14)

  1. 一种身份识别方法,其特征在于,包括:An identification method, characterized in that it comprises:
    获取第一用户的采集图像和时空信息,其中,所述时空信息用于指示所述采集图像的采集时间和采集地点;Acquiring the collected images and spatio-temporal information of the first user, wherein the spatio-temporal information is used to indicate the collection time and collection location of the collected images;
    根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户;determining at least one second user in a user database according to the captured image of the first user;
    分别确定所述至少一个第二用户的历史时空分布,其中,所述历史时空分布用于表示所述第二用户在至少一个时间段出现在一个或多个地点的概率;respectively determining the historical spatio-temporal distribution of the at least one second user, wherein the historical spatio-temporal distribution is used to represent the probability that the second user appears in one or more places during at least one time period;
    基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户。Identifying the first user among the at least one second users based on the spatiotemporal information of the first user and the historical spatiotemporal distribution of the at least one second user.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户,包括:The method according to claim 1, characterized in that, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, identifying the second user among the at least one second user a user, including:
    基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,确定所述第一用户分别与所述至少一个第二用户的时空相似度;Based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, determine the spatio-temporal similarity between the first user and the at least one second user;
    基于所述第一用户分别与所述至少一个第二用户的所述时空相似度,在所述至少一个第二用户中识别所述第一用户;或者identifying said first user among said at least one second user based on said spatiotemporal similarity between said first user and said at least one second user, respectively; or
    基于所述第一用户分别与所述至少一个第二用户的视觉相似度和所述时空相似度,在所述至少一个第二用户中识别所述第一用户。Identifying the first user among the at least one second users based on the visual similarity and the spatio-temporal similarity between the first user and the at least one second user respectively.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,确定所述第一用户分别与所述至少一个第二用户的时空相似度,包括:The method according to claim 2, wherein, based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user, it is determined that the first user is related to the at least one second user respectively. The spatio-temporal similarity of two users, including:
    针对至少一个所述第二用户,在所述第二用户的历史时空分布中,确定所述第二用户在所述采集时间位于所述采集地点的概率;For at least one second user, in the historical spatio-temporal distribution of the second user, determine the probability that the second user is located at the collection location at the collection time;
    根据所述概率确定所述第一用户与所述第二用户的时空相似度。determining the spatio-temporal similarity between the first user and the second user according to the probability.
  4. 根据权利要求3所述的方法,其特征在于,所述历史时空分布包括进站分布和出站分布,所述在所述第二用户的历史时空分布中,确定所述第二用户在所述采集时间位于所述采集地点的概率,包括:The method according to claim 3, wherein the historical spatiotemporal distribution includes an inbound distribution and an outbound distribution, and in the historical spatiotemporal distribution of the second user, it is determined that the second user is in the Probability that the collection time is located at the collection location, including:
    在所述采集地点为出站站点的情况下,在所述第二用户的出站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述出站站点的概率;或者,In the case where the collection location is an outbound site, in the outbound distribution of the second user, determine the probability that the second user is located at the outbound site during the time period corresponding to the collection time; or ,
    在所述采集地点为进站站点的情况下,在所述第二用户的进站分布中,确定所述第二用户在所述采集时间对应的时间段位于所述进站站点的概率。In a case where the collection site is an inbound site, in the inbound distribution of the second user, determine the probability that the second user is located in the inbound site in a time period corresponding to the collection time.
  5. 根据权利要求2至4任意一项所述的方法,其特征在于,所述基于所述第一用户分别与所述至少一个第二用户的视觉相似度和所述时空相似度,在所述至少一个第二用户中识别所述第一用户,包括:The method according to any one of claims 2 to 4, wherein, based on the visual similarity and the spatio-temporal similarity between the first user and the at least one second user respectively, in the at least identifying said first user among a second user, comprising:
    针对至少一个所述第二用户,对所述第一用户与所述第二用户的视觉相似度和时空相似度进行加权,得到所述第一用户与所述第二用户的融合相似度;For at least one of the second users, weighting the visual similarity and spatio-temporal similarity between the first user and the second user to obtain the fused similarity between the first user and the second user;
    基于所述第一用户分别与所述至少一个第二用户的融合相似度,在所述至少一个第二用户中识别所述第一用户。Identifying the first user among the at least one second user based on fusion similarities between the first user and the at least one second user respectively.
  6. 根据权利要求5所述的方法,其特征在于,所述基于所述第一用户分别与所述至少一个第二用 户的融合相似度,在所述至少一个第二用户中识别所述第一用户,包括:The method according to claim 5, wherein the first user is identified among the at least one second user based on the fused similarities between the first user and the at least one second user respectively ,include:
    将所述至少一个第二用户中与所述第一用户的融合相似度最大的第二用户,确定为所述第一用户匹配的第二用户。Determining, among the at least one second user, a second user having the greatest fusion similarity with the first user as the second user matched with the first user.
  7. 根据权利要求1至6任意一项所述的方法,其特征在于,所述根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户,包括:The method according to any one of claims 1 to 6, wherein the determining at least one second user in the user database according to the captured image of the first user includes:
    将所述第一用户的采集图像与所述用户数据库中历史用户的用户图像进行匹配,确定所述第一用户与所述历史用户的视觉相似度;Matching the captured image of the first user with the user images of historical users in the user database to determine the visual similarity between the first user and the historical user;
    在所述视觉相似度大于预设阈值的情况下,将所述历史用户确定为所述第二用户。If the visual similarity is greater than a preset threshold, the historical user is determined as the second user.
  8. 根据权利要求1至7任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    获取多个历史用户的历史用户记录,其中,所述多个历史用户包括所述至少一个第二用户;acquiring historical user records of a plurality of historical users, wherein the plurality of historical users includes the at least one second user;
    基于所述历史用户记录,统计所述历史用户在至少一个时间段出现在一个或多个地点的历史次数,以及统计一个或多个历史用户在所述至少一个时间段出现在所述一个或多个地点的总次数;Based on the historical user records, count the historical times that the historical users appear in one or more locations during at least one time period, and count the historical times that one or more historical users appear in the one or more locations during the at least one time period total number of locations;
    根据所述历史次数以及所述总次数,生成所述历史用户的历史时空分布。According to the historical times and the total times, the historical spatio-temporal distribution of the historical users is generated.
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, characterized in that the method further comprises:
    对所述历史时空分布进行平滑处理,得到平滑处理后所述历史用户的历史时空分布。Smoothing is performed on the historical spatio-temporal distribution to obtain the historical spatio-temporal distribution of the historical users after smoothing processing.
  10. 根据权利要求1至9任意一项所述的方法,其特征在于,所述在所述至少一个第二用户中识别所述第一用户之后,还包括:The method according to any one of claims 1 to 9, wherein after identifying the first user among the at least one second user, further comprising:
    将所述第一用户的采集图像和时空信息保存在所述第一用户的历史用户记录中,其中,所述历史用户记录包括以下至少一项信息:用户标识、进站标识或出站标识、站点标识、进站或出站的时间。saving the captured image and spatio-temporal information of the first user in the historical user record of the first user, wherein the historical user record includes at least one of the following information: user identification, inbound identification or outbound identification, Station ID, time of inbound or outbound.
  11. 一种身份识别装置,其特征在于,包括:An identification device, characterized in that it comprises:
    获取模块,用于获取第一用户的采集图像和时空信息,其中,所述时空信息用于指示所述采集图像的采集时间和采集地点;An acquisition module, configured to acquire the collected image and spatio-temporal information of the first user, wherein the spatio-temporal information is used to indicate the collection time and location of the collected image;
    第一确定模块,用于根据所述第一用户的采集图像,在用户数据库中确定至少一个第二用户;A first determining module, configured to determine at least one second user in the user database according to the captured image of the first user;
    第二确定模块,用于分别确定所述至少一个第二用户的历史时空分布,其中,所述历史时空分布用于表示所述第二用户在至少一个时间段出现在一个或多个地点的概率;A second determining module, configured to respectively determine the historical spatiotemporal distribution of the at least one second user, wherein the historical spatiotemporal distribution is used to represent the probability that the second user appears in one or more places in at least one time period ;
    识别模块,用于基于所述第一用户的时空信息和所述至少一个第二用户的历史时空分布,在所述至少一个第二用户中识别所述第一用户。An identifying module, configured to identify the first user among the at least one second user based on the spatio-temporal information of the first user and the historical spatio-temporal distribution of the at least one second user.
  12. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
    其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至10中任意一项所述的方法。Wherein, the processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1-10.
  13. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至10中任意一项所述的方法。A computer-readable storage medium, on which computer program instructions are stored, wherein, when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.
  14. 一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行 用于实现权利要求1-10中的任一权利要求所述的方法。A computer program product, comprising computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are run in a processor of an electronic device, the electronic A processor in the device is configured to implement the method of any one of claims 1-10.
PCT/CN2021/122138 2021-06-11 2021-09-30 Identity identification method and apparatus, electronic device, and storage medium WO2022257306A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110654499.8 2021-06-11
CN202110654499.8A CN113269129A (en) 2021-06-11 2021-06-11 Identity recognition method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022257306A1 true WO2022257306A1 (en) 2022-12-15

Family

ID=77234830

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122138 WO2022257306A1 (en) 2021-06-11 2021-09-30 Identity identification method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN113269129A (en)
WO (1) WO2022257306A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113269129A (en) * 2021-06-11 2021-08-17 成都商汤科技有限公司 Identity recognition method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680046A (en) * 2013-11-29 2015-06-03 华为技术有限公司 User activity recognition method and device
US20170286845A1 (en) * 2016-04-01 2017-10-05 International Business Machines Corporation Automatic extraction of user mobility behaviors and interaction preferences using spatio-temporal data
CN112052771A (en) * 2020-08-31 2020-12-08 腾讯科技(深圳)有限公司 Object re-identification method and device
CN112232424A (en) * 2020-10-21 2021-01-15 成都商汤科技有限公司 Identity recognition method and device, electronic equipment and storage medium
CN113269129A (en) * 2021-06-11 2021-08-17 成都商汤科技有限公司 Identity recognition method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680046A (en) * 2013-11-29 2015-06-03 华为技术有限公司 User activity recognition method and device
US20170286845A1 (en) * 2016-04-01 2017-10-05 International Business Machines Corporation Automatic extraction of user mobility behaviors and interaction preferences using spatio-temporal data
CN112052771A (en) * 2020-08-31 2020-12-08 腾讯科技(深圳)有限公司 Object re-identification method and device
CN112232424A (en) * 2020-10-21 2021-01-15 成都商汤科技有限公司 Identity recognition method and device, electronic equipment and storage medium
CN113269129A (en) * 2021-06-11 2021-08-17 成都商汤科技有限公司 Identity recognition method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113269129A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US11410001B2 (en) Method and apparatus for object authentication using images, electronic device, and storage medium
CN107278369B (en) Personnel searching method, device and communication system
CN110009090B (en) Neural network training and image processing method and device
US20200279120A1 (en) Method, apparatus and system for liveness detection, electronic device, and storage medium
US20220084056A1 (en) Methods and apparatuses for managing visitor information, electronic devices and storage media
WO2021093375A1 (en) Method, apparatus, and system for detecting people walking together, electronic device and storage medium
WO2022134388A1 (en) Method and device for rider fare evasion detection, electronic device, storage medium, and computer program product
CN111274426B (en) Category labeling method and device, electronic equipment and storage medium
CN110942036B (en) Person identification method and device, electronic equipment and storage medium
CN110990801B (en) Information verification method and device, electronic equipment and storage medium
CN113128520B (en) Image feature extraction method, target re-identification method, device and storage medium
WO2023024791A1 (en) Frame rate adjustment method and apparatus, electronic device, storage medium, and program
CN109344703B (en) Object detection method and device, electronic equipment and storage medium
WO2023024438A1 (en) Behavior recognition method and apparatus, electronic device, and storage medium
WO2023173660A1 (en) User recognition method and apparatus, storage medium, electronic device, computer program product and computer program
CN111523599B (en) Target detection method and device, electronic equipment and storage medium
WO2023035481A1 (en) Pedestrian volume statistical method and apparatus, electronic device, and storage medium
WO2022257306A1 (en) Identity identification method and apparatus, electronic device, and storage medium
JP2023514762A (en) TRAFFIC DETECTION METHOD AND APPARATUS THEREOF, ELECTRONIC DEVICE, AND COMPUTER-READABLE STORAGE MEDIUM
WO2022227562A1 (en) Identity recognition method and apparatus, and electronic device, storage medium and computer program product
WO2023040202A1 (en) Face recognition method and apparatus, electronic device, and storage medium
CN111435422B (en) Action recognition method, control method and device, electronic equipment and storage medium
CN111753611A (en) Image detection method, device and system, electronic equipment and storage medium
CN110781975B (en) Image processing method and device, electronic device and storage medium
CN112232424A (en) Identity recognition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21944806

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE