A method for determining the position of an image recognition task, a storage medium and an electronic device
By obtaining the historical communication ID set of the target face and matching the base station communication ID, the ring communication range is determined, and the target image acquisition component is configured for face recognition. This solves the problem of redundant monitoring components and waste of computing resources in large areas, and improves the accuracy of face recognition. Recognition efficiency and accuracy.
Patent Information
- Application Number
- CN202311506517.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-11-13
AI Technical Summary
When using face recognition technology in a larger area, the number of monitoring components is large and there are invalid monitoring areas, resulting in a waste of computing resources, and the face comparison operation takes up a lot of computing resources and is inefficient.
By obtaining the historical communication ID set based on the historical image of the target face, matching the current base station communication ID, determining the base station to be searched, and generating a circular communication range centered on the base station to be searched, and configuring the target image acquisition component to perform the face recognition task, reducing Monitoring operations in invalid monitoring areas reduce computing resource consumption.
Quickly determine the location of the target person, reduce ineffective monitoring areas, save computing resources, improve face recognition efficiency, and enhance the accuracy of identity recognition.
Smart Images

Figure CN117542099B
Abstract
Description
Background Art
[0002] Face recognition is a biometric technology that identifies people based on their facial features. It uses a camera or camcorder to collect images or video streams containing faces, automatically detects and tracks faces in images, and then performs facial recognition on the detected faces. It is also commonly called portrait recognition or facial recognition.
[0003] In various existing scenarios, face recognition technology is used for identity authentication to achieve corresponding functions. For example, in some scenarios where continuous face tracking is required, if the target person is active in a larger area, it is necessary to continuously switch the monitoring components at the corresponding position to perform face recognition tracking. In the prior art, all monitoring components are usually assigned monitoring tasks in a smaller area for full monitoring. However, a large number of monitoring components are involved in a larger area, and at the same time, a large part of the monitoring components' monitoring areas belong to invalid monitoring areas. As a result, a large amount of computing resources will be consumed. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is:
[0005] According to one aspect of the present invention, a method for determining a position of an image recognition task is provided, the method comprising the following steps:
[0006] According to the historical shooting time and historical shooting location corresponding to the target face historical image, the historical communication ID set corresponding to the target face image is obtained.
[0007] The communication ID of each base station currently communicating in the target search area is matched with the communication ID in the historical communication ID set.
[0008] If the match is successful, the home base station corresponding to the successfully matched communication ID is determined as the base station to be searched.
[0009] Each image acquisition component within the communication range of the base station to be searched is determined as a target image acquisition component and a target face recognition task is configured.
[0010] Furthermore, before determining each image acquisition component within the communication range of the base station to be searched as a target image acquisition component and configuring a target face recognition task, the method further includes:
[0011] The communication strength H between the successfully matched communication ID and the corresponding base station to be searched is obtained.
[0012] According to H, a circular communication range corresponding to the base station to be searched and centered on the base station to be searched is generated. The inner diameter R1 and the outer diameter R2 of the circular communication range meet the following conditions:
[0013]
[0014] Among them, E j is the basic signal strength of the area where the base station to be searched is located, k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively.
[0015] Further, obtaining the communication strength H between the successfully matched communication ID and the corresponding base station to be searched includes:
[0016] After the matching is successful, the base station to be searched continues to obtain the communication strength value of the corresponding communication ID within a preset time period.
[0017] H is generated based on the communication strength value of the corresponding communication ID continuously obtained by the base station to be searched within the preset time. H satisfies the following conditions:
[0018]
[0019] Among them, H i is the communication strength value of the ith signal corresponding to the communication ID obtained by the base station to be searched in the preset time period. n is the total number of signals corresponding to the communication ID obtained by the base station to be searched in the preset time period.
[0020] Furthermore, before obtaining the historical communication ID set corresponding to the target face image according to the historical shooting time and the historical shooting location corresponding to the target face historical image, the method further includes:
[0021] The target face image is similar to the best face image in each cluster group in the preset face information data, and the group similarity between each cluster group and the target face image is generated. Each cluster group includes at least one sub-face image.
[0022] If the family similarity between any cluster family and the target face image is greater than the second similarity threshold, the target face image and each sub-face image in the cluster family are similarly calculated to generate sub-similarity corresponding to the target face image and each sub-face image.
[0023] If the sub-similarity between any sub-face image and the target face image is greater than a third similarity threshold, the sub-face image is determined to be a historical image of the target face.
[0024] Further, similarity calculation is performed between the target face image and the best face image in each cluster in the preset face information data, including:
[0025] The similarity between the target face image and the optimal face image in each cluster group in the preset historical period in the preset face information data is calculated.
[0026] Furthermore, according to the historical shooting time and historical shooting location corresponding to the target face historical image, the historical communication ID set corresponding to the target face image is obtained, including:
[0027] According to the historical shooting position corresponding to the target face historical image, the base station position of the historical belonging base station of the communication terminal corresponding to the target face historical image for communication is determined.
[0028] According to the historical shooting position corresponding to the historical image of the target face and the base station position of the historical belonging base station, the signal strength screening interval [E1, E2] is generated. E1 and E2 respectively meet the following conditions:
[0029]
[0030] Wherein, E1 and E2 are the first signal screening intensity and the second signal screening intensity respectively. j is the basic signal strength of the corresponding shooting area, M LD is the distance between the historical shooting position corresponding to the target face historical image and the base station position of the historical belonging base station. k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively.
[0031] According to the historical shooting time corresponding to the target face historical image and [E1, E2], the historical communication ID set corresponding to the target face image is obtained.
[0032] Furthermore, according to the historical shooting time corresponding to the target face historical image and [E1, E2], the historical communication ID set corresponding to the target face image is obtained, including:
[0033] The historical shooting time T corresponding to the historical image of the target face L , generate historical information acquisition period [T L -t1,T L +t2]. Among them, t1 is the lead time and t2 is the delay time.
[0034] According to the historical belonging base station in [T L -t1,T L +t2], for each communication ID used in the communication, an initial historical communication ID set corresponding to the target face image is generated.
[0035] Furthermore, after generating the initial historical communication ID set corresponding to the target face image, the method further includes:
[0036] Obtain the communication IDs with signal strength in [E1, E2] in the initial historical communication ID set, and generate a historical communication ID set corresponding to the target face image.
[0037] According to a second aspect of the present invention, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for determining the position of an image recognition task is implemented.
[0038] According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for determining the position of an image recognition task when executing the computer program.
[0039] The present invention has at least the following beneficial effects:
[0040] In the present invention, first, according to the historical shooting time and historical shooting location corresponding to the historical image of the target face, a historical communication ID set containing the communication ID of the target person can be obtained. Then, each base station is allowed to match the currently received communication ID with the communication ID in the historical communication ID set. Through this operation, the location area where the target person may currently exist can be quickly determined, and then the corresponding monitoring task can be configured for the monitoring component belonging to the area. In this way, the monitoring operation of the invalid monitoring area can be reduced. At the same time, because the comparison operation of the communication ID occupies less computing resources than the face comparison operation, it is more efficient, thereby saving a lot of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a method for determining a position of an image recognition task provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0044] As a possible embodiment of the present invention, Figure 1 As shown, a method for determining the position of an image recognition task is provided, the method comprising the following steps:
[0045] S100: Acquire a historical communication ID set corresponding to the target face image according to the historical shooting time and historical shooting location corresponding to the target face historical image.
[0046] Furthermore, before S100, the method further includes:
[0047] S110: Calculate the similarity between the target face image and the optimal face image in each cluster group in the preset face information data to generate a cluster similarity between each cluster group and the target face image. Each cluster group includes at least one sub-face image.
[0048] Specifically, S110 includes:
[0049] S111: Calculate the similarity between the target face image and the optimal face image in each cluster of the preset historical period in the preset face information data. The preset historical period can be set according to actual usage, and the number of target face historical images finally obtained can be adjusted by the length of the preset historical period.
[0050] S120: If the family similarity between any cluster family and the target face image is greater than a second similarity threshold, similarity calculation is performed between the target face image and each sub-face image in the cluster family to generate sub-similarity between the target face image and each sub-face image.
[0051] S130: If the sub-similarity between any sub-face image and the target face image is greater than a third similarity threshold, the sub-face image is determined to be a historical image of the target face.
[0052] After S130, a plurality of target face historical images corresponding to the target face images are obtained, and the target face images are face images of the target person.
[0053] On this basis, S100 includes:
[0054] S101: Determine the base station position of the historically belonging base station for communication of the communication terminal corresponding to the target face historical image according to the historical shooting position corresponding to the target face historical image.
[0055] S102: Generate a signal strength screening interval [E1, E2] according to the historical shooting position corresponding to the historical image of the target face and the base station position of the historical belonging base station. E1 and E2 respectively meet the following conditions:
[0056]
[0057] Wherein, E1 and E2 are the first signal screening intensity and the second signal screening intensity respectively. j is the basic signal strength of the corresponding shooting area, M LDis the distance between the historical shooting position corresponding to the target face historical image and the base station position of the historical belonging base station. k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively.
[0058] S103: Acquire a historical communication ID set corresponding to the target face image according to the historical shooting time corresponding to the target face historical image and [E1, E2].
[0059] Specifically, S103 includes:
[0060] S113: Historical shooting time T corresponding to the historical image of the target face L , generate historical information acquisition period [T L -t1,T L +t2]. Among them, t1 is the lead time and t2 is the delay time.
[0061] S123: Based on the historical home base station [T L -t1,T L +t2], for each communication ID used in the communication, an initial historical communication ID set corresponding to the target face image is generated.
[0062] S133: Obtain the communication IDs with signal strength in [E1, E2] in the initial historical communication ID set, and generate a historical communication ID set corresponding to the target face image.
[0063] In steps S101 to S103, noise data in the initial historical communication ID set is removed according to two factors: communication signal strength and shooting time, so as to improve data accuracy and reduce the amount of matching and comparison.
[0064] S200: Matching the communication ID of each base station currently communicating in the target search area with the communication ID in the historical communication ID set.
[0065] S300: If the match is successful, the home base station corresponding to the successfully matched communication ID is determined as the base station to be searched.
[0066] S400: Determine each image acquisition component within the communication range of the base station to be searched as a target image acquisition component and configure a target face recognition task to perform face recognition on the target person and continuously track the target person.
[0067] In the present invention, first, according to the historical shooting time and historical shooting location corresponding to the historical image of the target face, a historical communication ID set containing the communication ID of the target person can be obtained. Then, each base station is allowed to match the currently received communication ID with the communication ID in the historical communication ID set. Through this operation, the location area where the target person may currently exist can be quickly determined, and then the corresponding monitoring task can be configured for the monitoring component belonging to the area. In this way, the monitoring operation of the invalid monitoring area can be reduced. At the same time, because the comparison operation of the communication ID occupies less computing resources than the face comparison operation, it is more efficient, thereby saving a lot of computing resources.
[0068] Furthermore, in order to further reduce the invalid monitoring area, before S400, the method further includes:
[0069] S410: Obtain the communication strength H between the successfully matched communication ID and the corresponding base station to be searched.
[0070] Specifically, S410 includes:
[0071] S411: After the matching is successful, the base station to be searched continuously obtains the communication strength value of the corresponding communication ID within a preset time period.
[0072] S412: Generate H according to the communication strength value of the base station to be searched that continuously obtains the corresponding communication ID within the preset time. H satisfies the following conditions:
[0073]
[0074] Among them, H i is the communication strength value of the ith signal corresponding to the communication ID obtained by the base station to be searched in the preset time period. n is the total number of signals corresponding to the communication ID obtained by the base station to be searched in the preset time period.
[0075] When the communication terminal communicates with the base station, the information will be packaged into different data packets and sent continuously. As a result, the base station will receive multiple data packets from the same communication terminal within a period of time, and each data packet will correspond to a communication strength value. At the same time, since the preset duration is generally 1 minute or shorter, the movement of the target person can be ignored during this time period. In order to more accurately determine the current communication strength value of the target person, it is necessary to calculate the average communication strength value.
[0076] S420: Generate a circular communication range corresponding to the base station to be searched and centered on the base station to be searched according to H. The inner diameter R1 and the outer diameter R2 of the circular communication range meet the following conditions:
[0077]
[0078] Among them, E j is the basic signal strength of the area where the base station to be searched is located, k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively.
[0079] Normally, the communication strength values at the same distance from the base station should be the same, that is, the communication strength values at each position of a circle formed by a fixed radius with the base station as the center are the same. However, in actual scenarios, due to different terrains or building obstructions, or the communication strength values at different distances from the base station may be the same.
[0080] Therefore, in order to reduce the error caused by this situation, the search range is set to be annular. Correspondingly, the inner diameter R1 and the outer diameter R2 can be obtained according to the above formula. Thus, by widening the search range, missed searches can be avoided.
[0081] After the camera to be assigned a monitoring task is determined, the present invention also provides a method for improving face recognition accuracy, which can more accurately determine the identity information of the person to be detected, so as to improve the accuracy of identity recognition.
[0082] As another embodiment of the present invention, a method for determining face information is also provided, the method comprising the following steps:
[0083] A100: Perform face comparison detection on the face image to be detected and the target face image to generate a similarity A between the face image to be detected and the target face image.
[0084] The solution in this embodiment can be applied to the scenario of quickly searching for missing persons, such as quickly searching for people who have lost contact actively.
[0085] In the above scenario, the target facial image is the facial image saved before the missing person lost contact, and the facial image to be detected is the image of the person captured by the surveillance cameras deployed at various locations in a certain search area.
[0086] Through the existing face recognition comparison method, the similarity A between the face image to be detected and the target face image can be generated. Since the data processing volume of face recognition in this scene is large, the existing optimal frame extraction method can be used or only the images of key intersections can be compared to reduce the data processing volume. And cooperate with high-performance data processors to improve the processing speed.
[0087] A200: If A∈[Y1, Y2], then perform auxiliary detection on the face image to be detected and generate the first auxiliary information B. Wherein, Y1 and Y2 are the first similarity threshold and the second similarity threshold respectively, and Y1 <Y2。
[0088] Since the camera in the above scenario is set at a distance from the person to be detected, coupled with the influence of other conditions such as lighting, the quality of the image of the person to be detected will inevitably be poor.
[0089] This will result in a lower similarity A in the final recognition. In order to reduce the occurrence of misjudgment, auxiliary detection is required to obtain more supporting information to improve the accuracy of identity authentication of the person to be detected.
[0090] Specifically, auxiliary tests include:
[0091] A201: According to the historical shooting time and historical shooting location corresponding to the target face historical image, obtain the historical communication ID set C corresponding to the target face image L .
[0092] In the case of a loss of contact, the person who actively loses contact will usually switch to a new communication ID at the beginning of the loss of contact to cut off contact with the outside world. As a result, the original communication ID information cannot be used when searching for the lost person. Therefore, in order to carry out subsequent auxiliary detection normally, it is necessary to obtain the new communication ID of the lost person. Specifically, it can be obtained according to A201, which includes the following steps:
[0093] A211: Determine the base station position of the historically belonging base station for communication of the communication terminal corresponding to the target face historical image according to the historical shooting position corresponding to the target face historical image.
[0094] The target face history image is the face image of the missing person obtained during the missing period before the search. For example, if the person is found missing and the search begins on October 30, 2022, the corresponding missing period is the period between the current time and the last time the missing person was contacted.
[0095] Specifically, the corresponding target face historical image can be obtained by face comparison in the historical record database of the surveillance camera. The target face historical image is a face image whose similarity with the face of the missing person is greater than a set threshold.
[0096] At the same time, the target face historical image will be marked with the attributes of the shooting location (historical shooting location) and the shooting time (historical shooting time). The shooting location can be the layout location of the corresponding surveillance camera.
[0097] At the same time, the location of the surveillance camera can be used to determine which corresponding communication base station the location belongs to. Then the corresponding home base station can be determined. After the home base station is determined, all communication IDs that maintain communication with the home base station before and after the corresponding historical shooting time can be queried to form the corresponding initial historical communication ID set. However, there is a lot of noise data in the historical communication ID set.
[0098] In this embodiment, the noise data in the initial historical communication ID set can be cleaned in the following two ways to obtain the final historical communication ID set.
[0099] A221: Generate a signal strength screening interval [E1, E2] based on the historical shooting position corresponding to the historical image of the target face and the base station position of the historical belonging base station. E1 and E2 meet the following conditions respectively:
[0100]
[0101] Wherein, E1 and E2 are the first signal screening intensity and the second signal screening intensity respectively. j is the basic signal strength of the corresponding shooting area, M LD is the distance between the historical shooting position corresponding to the historical image of the target face and the base station position of the historical belonging base station. k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively, which can be set according to the actual situation.
[0102] Different terrain conditions have different effects on signal attenuation. For example, mountainous terrain has a greater impact on signal attenuation, while plain terrain has a smaller impact on signal attenuation. Therefore, different E values need to be set according to the actual regional conditions. j Specifically, a higher E can be set for areas with small signal attenuation. j , set a lower E in areas with large signal attenuation j In general, there is a negative correlation between signal strength and communication distance, but signal attenuation is affected by many factors. Even if communication is carried out in the same area at the same distance, the strength of the two signals received by the base station will be different. j Adjust the amplitude to form an upper and lower limit of the signal strength to form the corresponding signal screening range. <k3<1。
[0103] A231: According to the historical shooting time and [E1, E2] corresponding to the target face historical image, obtain the historical communication ID set C corresponding to the target face image L .
[0104] Specifically, A231 includes:
[0105] A2311: The historical shooting time T corresponding to the historical image of the target face L , generate historical information acquisition period [T L -t1,T L +t2].
[0106] A2312: According to the historical home base station [T L -t1,T L +t2], generates an initial historical communication ID set corresponding to the target face image, where t1 is the lead time and t2 is the delay time.
[0107] Usually, in order to confirm whether it has been online with the base station, the communication terminal will send a heartbeat packet to the base station at a certain interval (10-30 minutes). Therefore, when no other information is sent, the communication terminal and the base station will communicate at a certain frequency. At the same time, since the base station not only bears the function of voice calls, but also is responsible for sending network data. That is, the network messages of various applications on the communication terminal will also be sent to the corresponding base station, and then forwarded by the base station to the corresponding target address. For example, the communication signaling of the 4G part will still have frequent interactions with the surrounding base stations. And usually some applications have higher requirements for the real-time transmission and reception of messages, so the communication frequency between the communication terminal and the base station is higher. Usually, abnormal communication can be carried out within 3-5 seconds.
[0108] Therefore, in order to ensure that the collected communication IDs are more comprehensive, the time period [T L -t1,T L +t2] to establish a connection with the base station. Usually T L -t1 and T L +t2 is greater than the minimum communication frequency, such as t1 = t2 = 10S.
[0109] After A2312, auxiliary detection also includes:
[0110] A2313: Obtain the communication IDs whose signal strength is in [E1, E2] in the initial historical communication ID set, and generate the historical communication ID set C corresponding to the target face image L .
[0111] In this embodiment, first, the historical information acquisition period can be generated through the historical shooting time, and then the target collection period corresponding to the target communication ID can be screened to narrow the collection scope and remove some noise data. At the same time, in order to prevent the omission of suspicious communication IDs, a corresponding collection period will be set to obtain as many communication IDs as possible to ensure comprehensive coverage of the target communication ID.
[0112] Then, the selected communication IDs are further filtered by signal strength to further remove noise data. The clearing method of data in A221 to A231 is the same as the clearing method of S101 to S103 described above.
[0113] A202: According to the current shooting position of the face image to be detected, determine the current belonging base station with which the communication terminal corresponding to the face image to be detected is currently communicating. The current belonging base station is not the same as the historical belonging base station.
[0114] A203: Based on the current shooting time T of the face image to be detected d , generate the communication ID information current acquisition period [T d -t1,T d +t2]. Among them, t1 is the lead time and t2 is the delay time.
[0115] A204: According to the current home base station [T d -t1,T d +t2] generates the current communication ID set C corresponding to the face image to be detected. D .
[0116] Similarly, the current communication ID set can also be obtained by following steps A211 to A231.
[0117] A205: Generate first auxiliary information B according to the intersection of the historical communication ID set and the current communication ID set. B satisfies the following conditions:
[0118]
[0119] Wherein, b1 is the first auxiliary similarity, and k1 is the first auxiliary similarity adjustment coefficient.
[0120] Specifically, if the person corresponding to the face image to be detected is the same person, the communication ID used by the person is usually the same, so the corresponding C D and C L The intersection of is not empty. If the person corresponding to the face image to be detected is not the same person, the corresponding C D and C L The intersection of is more likely to be empty.
[0121] Based on the above situation, in this embodiment, the first auxiliary information B is in C D and C L The case where the intersection is not empty is greater. D and C LThe smaller the intersection is when the value is empty. Therefore, the value also reflects the possibility that the persons are the same person.
[0122] A300: Based on A and B, generate a first determination value P1 corresponding to the face image to be detected.
[0123] Specifically, P1 satisfies the following conditions:
[0124] P1=K A *A+K B *B. Among them, K A is the weight coefficient corresponding to A, K B is the weight coefficient corresponding to B, K A >K B .
[0125] A400: If P1>Y3, then determine that the face image to be detected is the target face image. Y3 is the first determination threshold.
[0126] In the present invention, when the similarity between the face image to be detected generated by face comparison detection and the target face image is low, auxiliary detection is also used to obtain feature information of other dimensions of the person to be detected to further verify the identity information of the person to be detected. Therefore, through the combination of reference information of multiple dimensions, the identity information of the person to be detected can be more accurately determined to improve the accuracy of identity recognition.
[0127] As another embodiment of the present invention, A205: generating first auxiliary information B according to the intersection of the historical communication ID set and the current communication ID set, including:
[0128] A215: Based on the historical communication ID set and historical shooting time T L , Current shooting time T d and the intersection of the current communication ID set and , generate the first auxiliary information B
[0129] B meets the following conditions:
[0130]
[0131] Among them, T Z is the preset interval time. Usually T Z It can be the duration of the loss of connection period.
[0132] In the historical record database, images of the target person at multiple different locations and at different times will be recorded, so the target face historical images finally obtained are also multiple, and the corresponding historical communication ID sets obtained are also multiple, and each corresponding shooting time is different. However, if the historical shooting time is closer to the current shooting time, the corresponding communication ID used by the detected person is more likely to be consistent with the communication ID used at the current time. Therefore, the closer the historical communication ID set to the current shooting time is to the intersection with the current communication ID set, the higher the confidence that the corresponding detected person and the target person are the same person, and the larger the corresponding B is. In this way, the identity information of the detected person can be judged more accurately to improve the accuracy of identity recognition.
[0133] As another embodiment of the present invention, the image to be detected where the face image to be detected is located further includes an associated vehicle image associated with the face image to be detected.
[0134] After A300: generating a first determination value P1 corresponding to the face image to be detected according to A and B, the method further includes:
[0135] A500: Generate second auxiliary information F according to the associated vehicle image information and the target face image. F represents the degree of association between the vehicle in the associated vehicle image information and the person corresponding to the target face image.
[0136] Specifically, the vehicles owned by the target person corresponding to the target face image and the vehicles owned by his / her immediate family members can be the associated vehicles in this embodiment. At the same time, it can be determined that the target person is a passenger or driver of a certain associated vehicle based on the image of the target person and the image to be detected. Therefore, F can be determined based on the closeness between the vehicle owner and the target person, and whether the target person is the driver in the image to be detected. Specifically, a mapping table can be set artificially to assign values, and the higher the degree of association, the greater F.
[0137] A501: Based on A, B and F, generate a second judgment value P2 corresponding to the face image to be detected.
[0138] A502: If P2>Y4, then determine that the face image to be detected is the target face image. Y4 is the second determination threshold. Further, Y4>Y3.
[0139] In this embodiment, on the basis of face comparison, the communication ID and vehicle information related to the target person are also considered. Thus, the identity of the detected person is confirmed through the information of three dimensions to improve the accuracy of identity recognition.
[0140] As another embodiment of the present invention, a method for expanding related search information is also provided, which can expand information when there is less information about the target person, so as to provide more clue information and facilitate better search for the target person. The specific method includes:
[0141] B100: Acquire at least one first target vehicle image from a historical vehicle image library according to the first associated vehicle information of the target person.
[0142] The first associated vehicle information in this step may be the license plate number information, body color, vehicle model, etc. of all vehicles owned by the target person. The first associated vehicle information may also be the license plate number information, body color, vehicle model, etc. of vehicles owned by the target person and his / her spouse.
[0143] A corresponding search condition may be formed according to a combination of one or more of the above information, and then a search is performed in the historical vehicle image library according to the search condition to obtain the corresponding first target vehicle image.
[0144] The first target vehicle image can usually be an image captured by various surveillance cameras at intersections or highways, and generally includes facial information of the driver and the co-driver.
[0145] B200: Performing face recognition on each first target vehicle image, generating a first correlation similarity between the driver image and the co-driver image in each first target vehicle image and the face image of the target person.
[0146] The facial images of the driver and the co-driver in the image are respectively identified and compared with the facial image of the target person to generate corresponding similarity values, namely, the first associated similarity.
[0147] B300: Clustering all driver images and co-driver images whose first association similarity is less than a fourth similarity threshold, to generate at least one associated person image cluster corresponding to the target person. Each associated person image cluster includes at least one face image.
[0148] Since the driver and the co-driver in the first target vehicle image are very likely to be related persons with a high correlation with the target person, and since the facial image of the related person is quite different from the facial image of the target person, filtering can be performed using the fourth similarity threshold.
[0149] Then, the related persons are classified by clustering to generate at least one associated person image family. Each associated person image family corresponds to one associated person. Specifically, clustering can be performed by comparing the similarity between face images. Those with similarity greater than a certain threshold are classified into the same category, and those with similarity less than a certain threshold are classified into a single category.
[0150] Specifically, after B300, the method further includes:
[0151] B310: Generate the association priority of each associated person image cluster according to the association degree vectors corresponding to all face images in each associated person image cluster. x Satisfies the following relationship:
[0152]
[0153] Among them, P x g1 is the first correlation similarity between the driver image in the first target vehicle image to which the g-th face image in the x-th associated person image family belongs and the face image of the target person. x g2 is the first correlation similarity between the passenger image in the first target vehicle image to which the g-th face image in the x-th associated person image family belongs and the face image of the target person. f(x) is the total number of face images in the x-th associated person image family.
[0154] In actual situations, if a related person has a high degree of association with a target person, the probability of the related person and the target person riding in the same vehicle will also be high. Therefore, the number of first target vehicle images that capture both the related person and the target person is large. Correspondingly, according to the formula in this step, the corresponding association priority Q x Therefore, the associated persons can be better identified.
[0155] B320: According to the association priority of each associated human image family, obtain the association priority of the extended historical communication ID set corresponding to each first associated human face image.
[0156] The association priority of each associated person image family is used as the association priority of the corresponding expanded historical communication ID set.
[0157] B321: If the association priority of the extended historical communication ID set is less than the first priority threshold, the extended historical communication ID set is removed.
[0158] Since the first target vehicle image also includes images taken during the target person's taxi trip, and the correlation between the driver in the image and the target person is low, or even zero, the interference of the noise data should be eliminated. In this step, filtering by the first priority threshold can remove the interference of the corresponding noise data and reduce the amount of data processing.
[0159] B400: The face image with the highest image quality in each associated person image family is used as the first associated face image corresponding to each associated person image family. Specifically, the face image with the highest image quality in the associated person image family is the face image with the highest image resolution in the associated person image family.
[0160] B500: According to each first associated facial image corresponding to the target person, an expanded historical communication ID set corresponding to the target facial image is obtained.
[0161] In actual application scenarios, the target person is usually equipped with multiple communication terminals and communication IDs, and the communication terminal and the relevant person may be used interchangeably, so that the communication ID may be changed or replaced. Therefore, the above processing from B100 to B500 can further mine and expand the communication ID information related to the target person to assist in confirming the identity of the target person.
[0162] The implementation steps of B500 in this embodiment are the same as the implementation steps of S100 described above, and only the processed images are different, which will not be described in detail here.
[0163] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0164] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0165] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0166] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0167] The electronic device according to this embodiment of the present invention is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0168] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).
[0169] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0170] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0171] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0172] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0173] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device (e.g., routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter. The network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0174] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0175] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0176] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0177] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0178] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0179] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0180] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0181] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0182] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for determining the position of an image recognition task, characterized in that: The method comprises the following steps: According to the historical shooting time and historical shooting location corresponding to the target face historical image, obtain the historical communication ID set corresponding to the target face image; Match the communication ID of each base station currently communicating in the target search area with the communication ID in the historical communication ID set; If the match is successful, the home base station corresponding to the successfully matched communication ID is determined as the base station to be searched; Determine each image acquisition component within the communication range of the base station to be searched as a target image acquisition component and configure a target face recognition task; Before determining each image acquisition component within the communication range of the base station to be searched as a target image acquisition component and configuring a target face recognition task, the method further includes: Obtain the communication strength H between the successfully matched communication ID and the corresponding base station to be searched; According to H, a circular communication range corresponding to the base station to be searched and centered on the base station to be searched is generated; wherein the inner diameter R1 and the outer diameter R2 of the circular communication range meet the following conditions: Among them, E j is the basic signal strength of the area where the base station to be searched is located, k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively.
2. The method according to claim 1, characterized in that Obtaining the communication strength H between the successfully matched communication ID and the corresponding base station to be searched includes: After the match is successful, the base station to be searched continues to obtain the communication strength value of the corresponding communication ID within a preset time period; Generate H based on the communication strength value of the corresponding communication ID continuously obtained by the base station to be searched within the preset time; H satisfies the following conditions: Among them, H i is the communication strength value of the i-th signal corresponding to the communication ID obtained by the base station to be searched within the preset time length; n is the total number of signals corresponding to the communication ID obtained by the base station to be searched within the preset time length.
3. The method according to claim 1, characterized in that Before acquiring the historical communication ID set corresponding to the target face image according to the historical shooting time and the historical shooting location corresponding to the target face historical image, the method further includes: Calculating the similarity between the target face image and the optimal face image in each cluster group in the preset face information data, and generating a cluster similarity between each cluster group and the target face image; each cluster group includes at least one sub-face image; If the family similarity between any cluster family and the target face image is greater than a second similarity threshold, similarity calculation is performed between the target face image and each sub-face image in the cluster family to generate a sub-similarity corresponding to the target face image and each sub-face image; If the sub-similarity between any sub-face image and the target face image is greater than a third similarity threshold, the sub-face image is determined to be a historical image of the target face.
4. The method according to claim 3, characterized in that Calculating the similarity between the target face image and the best face image in each cluster in the preset face information data includes: The similarity between the target face image and the optimal face image in each cluster group in a preset historical period in the preset face information data is calculated.
5. The method according to claim 1, characterized in that According to the historical shooting time and historical shooting location corresponding to the target face historical image, the historical communication ID set corresponding to the target face image is obtained, including: Determine the base station location of the historical home base station for communication of the communication terminal corresponding to the target face historical image according to the historical shooting location corresponding to the target face historical image; According to the historical shooting position corresponding to the historical image of the target face and the base station position of the historical attribution base station, a signal strength screening interval [E1, E2] is generated; E1 and E2 respectively meet the following conditions: Wherein, E1 and E2 are the first signal screening intensity and the second signal screening intensity respectively; j is the basic signal strength of the corresponding shooting area, M LD is the distance between the historical shooting position corresponding to the historical image of the target face and the base station position of the historical belonging base station; k2 and k3 are the second amplitude adjustment coefficient and the third amplitude adjustment coefficient respectively; According to the historical shooting time corresponding to the target facial historical image and [E1, E2], the historical communication ID set corresponding to the target facial image is obtained.
6. The method according to claim 5, characterized in that According to the historical shooting time corresponding to the target face historical image and [E1, E2], the historical communication ID set corresponding to the target face image is obtained, including: The historical shooting time T corresponding to the historical image of the target face L , generate historical information acquisition period [T L -t1,T L +t2]; where t1 is the lead time and t2 is the delay time; According to the historical belonging base station in [T L -t1,T L +t2], for each communication ID used in communication, an initial historical communication ID set corresponding to the target face image is generated.
7. The method according to claim 6, characterized in that After generating an initial historical communication ID set corresponding to the target facial image, the method further includes: Acquire the communication ID with signal strength in [E1, E2] in the initial historical communication ID set, and generate the historical communication ID set corresponding to the target face image.
8. A non-transitory computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for determining the position of an image recognition task as described in any one of claims 1 to 7 is implemented.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for determining the position of an image recognition task as described in any one of claims 1 to 7 is implemented.
