CN114648649A - Face matching method and device, electronic equipment and storage medium - Google Patents

Face matching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114648649A
CN114648649A CN202210271912.7A CN202210271912A CN114648649A CN 114648649 A CN114648649 A CN 114648649A CN 202210271912 A CN202210271912 A CN 202210271912A CN 114648649 A CN114648649 A CN 114648649A
Authority
CN
China
Prior art keywords
database
face
matching
face information
matched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210271912.7A
Other languages
Chinese (zh)
Inventor
蒲金润
张垚
张帅
伊帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Sensetime Technology Co Ltd
Original Assignee
Chengdu Sensetime Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Sensetime Technology Co Ltd filed Critical Chengdu Sensetime Technology Co Ltd
Priority to CN202210271912.7A priority Critical patent/CN114648649A/en
Publication of CN114648649A publication Critical patent/CN114648649A/en
Priority to PCT/CN2022/110241 priority patent/WO2023173659A1/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Abstract

The disclosure relates to a face matching method and device, an electronic device and a storage medium, wherein a first database and a second database which is a subset of the first database are determined by acquiring a face image to be matched. And under the condition that the quantity of the second face information included in the second database meets a quantity threshold value and the heat value of the second face information meets a heat threshold value, carrying out face matching on the face to be matched according to the second database, wherein the heat value is used for representing the matched probability. And carrying out face matching on the face to be matched according to the first database under the condition that the face matching fails. According to the face matching method and device, when the number of the second face information in the second database meets the requirement, the second face information with high matching probability in the second database is matched, and global matching is performed through the first database with larger data volume under the condition that matching fails, so that the efficiency of a face matching process is improved, and accurate results can be matched.

Description

Face matching method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a face matching method and apparatus, an electronic device, and a storage medium.
Background
In a scene where a face is processed, such as face recognition and face tracking, face matching is usually required. In order to ensure the accuracy of the face matching result, a database required by the face matching process comprises a large amount of labeled face information. In the matching process, matching needs to be performed based on a large amount of labeled face information, which consumes huge calculation power and overlong matching time.
Disclosure of Invention
The disclosure provides a face matching method and device, electronic equipment and a storage medium, and aims to improve the efficiency of a face matching process.
According to a first aspect of the present disclosure, a face matching method is provided, including:
acquiring a face image to be matched;
determining a first database and a second database, wherein the second database is a subset of the first database;
under the condition that the number of second face information included in the second database is greater than or equal to a number threshold and the heat value of each second face information is greater than or equal to a heat threshold, performing face matching on the face to be matched according to the second database, wherein the heat value is used for representing the probability that the second face information is matched;
and under the condition that the face matching fails, carrying out face matching on the face to be matched according to the first database.
According to the face matching method and device, when the number of the second face information in the second database meets the requirement, the second face information with high matching probability in the second database is matched, and global matching is performed through the first database with larger data volume under the condition that matching fails, so that the efficiency of a face matching process is improved, and accurate results can be matched.
In a possible implementation manner, the second database includes at least one heat zone having a corresponding heat value range, and each heat zone includes second face information whose corresponding heat value is within the corresponding heat value range of the heat zone;
the face matching of the face to be matched according to the second database comprises:
and sequentially acquiring second face information in each heat area and the face to be matched for face matching according to the heat value ranges corresponding to different heat areas in the second database.
The embodiment of the invention partitions the second database through the heat value, and sequentially matches the human face according to the probability of successful matching of each partition, thereby further improving the efficiency of the human face matching process.
In one possible implementation, after determining the first database and the second database, the method further includes:
and under the condition that the quantity of the second face information included in the second database is smaller than a quantity threshold value, carrying out face matching on the face image to be matched according to the first database.
According to the embodiment of the invention, global matching is carried out through the first database under the condition that the second face information in the second database does not meet the requirement, the possibility of matching failure caused by matching under the condition that the data volume in the second database is small is reduced, and the efficiency of the face matching process is improved.
In a possible implementation manner, after performing face matching on the face image to be matched according to the first database, the method further includes:
determining first face information matched with the face image to be matched in the first database;
in response to not including second face information in the second database that is the same as the first face information, synchronizing the first face information to the second database.
The second database is updated according to the matching result, and the probability of successful matching of the second database is improved.
In one possible implementation, after determining the first database and the second database, the method further includes:
dynamically updating the heat value according to a preset updating rule;
and processing the second face information in the second database according to the updated heat value.
The embodiment of the disclosure updates the second database in real time according to the preset updating rule, and improves the reliability of the second database.
In a possible implementation manner, the dynamically updating the heat value according to a preset update rule includes:
in response to the second face information being matched, increasing the heat value corresponding to the second face information by a first numerical value; or the like, or a combination thereof,
and in response to the fact that the second face information is not matched within the preset time, reducing the heat value corresponding to the second face information by a second numerical value.
According to the embodiment of the disclosure, the heat value of each piece of second face information is dynamically increased or decreased according to the matching condition, and the accuracy of the corresponding heat value of each piece of second face information is increased.
In a possible implementation manner, the processing the second face information in the second database according to the updated heat value includes:
and deleting the second face information in the second database under the condition that the updated heat value of the second face information is smaller than the heat threshold.
The second database is updated according to the heat value, the second face information with lower heat is deleted, and the possibility of successful matching of the second database is guaranteed.
According to a second aspect of the present disclosure, there is provided a face matching apparatus, comprising:
the image acquisition module is used for acquiring a face image to be matched;
a database determination module for determining a first database and a second database, the second database being a subset of the first database;
the first matching module is used for performing face matching on the face to be matched according to the second database under the condition that the number of second face information included in the second database is greater than or equal to a number threshold and the heat value of each piece of second face information is greater than or equal to a heat threshold, wherein the heat value is used for representing the probability that the second face information is matched;
and the second matching module is used for matching the face to be matched according to the first database under the condition that the face matching fails.
In a possible implementation manner, the second database includes at least one heat zone having a corresponding heat value range, and each heat zone includes second face information whose corresponding heat value is within the corresponding heat value range of the heat zone;
the first matching module includes:
and the first matching submodule is used for sequentially acquiring second face information in each heat area and the face to be matched to perform face matching according to the heat value ranges corresponding to different heat areas in the second database.
In one possible implementation, after determining the first database and the second database, the apparatus further includes:
and the third matching module is used for performing face matching on the face image to be matched according to the first database under the condition that the quantity of the second face information included in the second database is smaller than a quantity threshold.
In a possible implementation manner, after performing face matching on the face image to be matched according to the first database, the apparatus further includes:
the information determining module is used for determining first face information matched with the face image to be matched in the first database;
and the information synchronization module is used for synchronizing the first face information to the second database in response to the second database not including the second face information which is the same as the first face information.
In one possible implementation, after determining the first database and the second database, the apparatus further includes:
the heat updating module is used for dynamically updating the heat value according to a preset updating rule;
and the information processing module is used for processing the second face information in the second database according to the updated heat value.
In one possible implementation, the heat update module includes:
the numerical value increasing submodule is used for increasing the heat value corresponding to the second face information by a first numerical value in response to the second face information being matched; or the like, or, alternatively,
and the numerical value reduction sub-module is used for reducing the heat value corresponding to the second face information by a second numerical value in response to that the second face information is not matched within a preset time length.
In one possible implementation, the information processing module includes:
and the database updating submodule is used for deleting the second face information in the second database under the condition that the updated heat value of the second face information is smaller than the heat threshold.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
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, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow chart of a face matching method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating a face matching method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a face matching device according to an embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of an electronic device in accordance with an embodiment of the disclosure;
fig. 5 shows a schematic diagram of another electronic device according to an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented 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 preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In a possible implementation manner, the face matching method according to the embodiment of the present disclosure may be executed by an electronic device such as a terminal device or a server. The terminal device may be any fixed or mobile terminal such as a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, and a wearable device. The server may be a single server or a server cluster of multiple servers. Any electronic device can implement the face matching method of the embodiment of the present disclosure by means of a processor calling computer readable instructions stored in a memory.
The embodiment of the disclosure can be applied to any face matching scene, such as an application scene for unlocking by matching a face, an application scene for paying the face by matching the face, and the like.
Fig. 1 shows a flow chart of a face matching method according to an embodiment of the present disclosure. As shown in fig. 1, the face matching method of the embodiment of the present disclosure may include the following steps S10-S40.
And step S10, obtaining a face image to be matched.
In a possible implementation manner, a face image to be matched is acquired through electronic equipment, so that face matching is performed according to the face image to be matched. The face image to be matched can be acquired by an image acquisition device built in or connected with the electronic equipment, or acquired from a memory of other equipment, or received by the face image to be matched transmitted after being acquired by the image acquisition device built in or connected with other equipment.
Optionally, the obtaining rule of the face image to be matched may be preset, for example, the face image to be matched is automatically acquired by capturing when the capturing condition is satisfied, or the face image to be matched is obtained when the electronic device receives image obtaining information.
And step S20, determining the first database and the second database.
In one possible implementation, the electronic device may determine a first database and a second database for face image matching. The first database comprises a second database, namely the second database is a subset of the first database. Optionally, the first database may include a plurality of first face information, the second database does not include face information or includes at least one second face information, and each second face information has the same first face information in the first database. Optionally, the first face information and the second face information may include at least one of a pre-labeled face image, a face identifier corresponding to a face in the labeled face image, a face feature corresponding to a face in the labeled face image, and a face attribute corresponding to a face in the labeled face image. The face identification can comprise any identification information such as a user name, a user telephone and a user certificate number corresponding to the face, and the face attribute can comprise any attribute information such as user gender, user age and user authority corresponding to the face. The second database is composed of a plurality of face information with higher matching probability in the first data set.
Optionally, each second face information in the second database may be determined according to the first face information in the first database. For example, when each piece of first face information in the first database is successfully matched and second face information identical to the first face information does not exist in the second database, the second face information identical to the first face information is determined and stored in the second database. Optionally, each piece of second face information in the second database has a corresponding heat value, which is used to characterize the probability that the corresponding piece of second face information is matched. And determining a lowest heat value for the newly added second face information each time the newly determined second face information is added to the second database. Optionally, the heat value corresponding to each piece of second face information may be dynamically updated according to the corresponding heat condition and a preset update rule.
Further, based on the heat value corresponding to each piece of second face information in the second database, a plurality of heat values can be obtained by dividing the second database, so that the second database includes at least one heat area having a corresponding heat value range, and each heat area includes second face information having a corresponding heat value within the corresponding heat value range of the heat area. The second database includes second face information 1, second face information 2, second face information 3, second face information 4, and second face information 5, and the corresponding heat values are 2, 6, 3, 8, and 4, respectively. When a heat area 1 and a heat area 2 are set in the second database, and the range of the heat value corresponding to the heat area 1 is 1-5, and the range of the heat value corresponding to the heat area 2 is 6-10, the heat area 1 includes second face information 1, second face information 3 and second face information 5, and the heat area 2 includes second face information 2 and second face information 4.
And step S30, carrying out face matching on the face to be matched according to the second database under the condition that the number of the second face information included in the second database is greater than or equal to a number threshold and the heat value of each second face information is greater than or equal to a heat threshold.
In a possible implementation manner, after determining the first database and the second database, the electronic device may select the database according to the amount of the second face information included in the second database to perform face matching. And performing face matching on the face to be matched according to the second database under the condition that the number of the second face information included in the second database is greater than or equal to the number threshold. Further, under the condition that the number of the second face information included in the second database is smaller than the number threshold, face matching can be conducted on the face image to be matched according to the first database.
For example, when the preset number threshold is 100, the second database performs face matching when the second database includes 100 pieces of second face information and more than 100 pieces of second face information, and the first database performs face matching when the second database includes less than 100 pieces of second face information. According to the embodiment of the invention, the database is selected through the quantity threshold, the probability of successful matching through the second database is increased, and meanwhile, the calculated amount in the face matching process is reduced.
Further, in order to avoid that the heat value of the second face information included in the second database is low and affects the probability of successful matching of the second database, it may be determined whether the heat value of each second face information is greater than or equal to the heat threshold value under the condition that the number of the second face information included in the second database is greater than or equal to the number threshold value. Optionally, the face matching may be performed on the face to be matched according to the second database under the condition that the number of the second face information included in the second database is greater than or equal to the number threshold and the heat value of each second face information is greater than or equal to the heat threshold. This approach can increase the likelihood of a successful match of the second database.
In a possible implementation manner, when the electronic device performs face matching on a face to be matched according to the second database, the second face information in each heat range and the face to be matched may be sequentially obtained according to the heat value ranges corresponding to different heat ranges in the second database to perform face matching. The acquiring sequence of the heat zones can be sequentially acquired from a high heat value range to a low heat value range. For example, when the second database includes a heat region 1, a heat region 2 and a heat region 3, and the ranges of heat values corresponding to each heat region are respectively 1-3, 4-6 and 7-10, the heat region 3, the heat region 2 and the heat region 1 are sequentially obtained to perform face matching, so that second face information is sequentially obtained according to the possibility of successful matching to perform face matching, and the matching efficiency of the face matching process is improved.
Further, when the electronic device performs face matching on the face to be matched according to the first database, the second database can be updated according to the matching result. The electronic equipment determines first face information matched with a face image to be matched in a first database, and responds to the fact that second face information identical with the first face information is not included in a second database, and the first face information is synchronized to the second database. Optionally, the electronic device may determine that the heat value of the newly added second face information is a heat threshold. Meanwhile, when the second database includes second face information that is the same as the first face information, the heat value corresponding to the second face information that is the same as the first face information may be updated. For example, the electronic device may increase a heat value corresponding to second face information that is the same as the first face information by a first value.
In a possible implementation manner, in order to ensure the accuracy of the corresponding heat value of the second face information in the second database and ensure the possibility of successful matching of the second database, the electronic device may dynamically update the heat value according to a preset update rule, and process the second face information in the second database according to the updated heat value. Wherein the update rule may include an increase rule and a decrease rule of the heat value. The adding rule may be to add a first value to the heat value corresponding to the second face information in response to the second face information being matched. The reduction rule may be to reduce the heat value corresponding to the second face information by a second value in response to that the second face information is not matched within a preset time period. That is, each time the second face information is matched, a preset first value is added to the corresponding heat value, and the second face information reduces a second value to the corresponding heat value when the second face information is not matched for a long time. The first and second values may be the same or different.
Optionally, in order to ensure the probability of successful matching of the second database, the process of processing, by the electronic device, the second face information in the second database according to the updated heat value may be: and deleting the second face information in the second database under the condition that the updated heat value of the second face information is smaller than the heat threshold. And the probability of successful matching of the second database is ensured by automatically deleting the second face information with lower heat value in the second database.
And step S40, under the condition that the face matching fails, carrying out face matching on the face to be matched according to the first database.
In a possible implementation manner, the electronic device may further perform face matching on the face to be matched according to the first database under the condition that the face matching through the second database fails, so as to improve the accuracy of the obtained matching result. Optionally, a matching result of the matching failure is obtained after the matching fails according to the first database. After the matching is successful according to the first database, whether second face information identical to the matched first face information exists in the second database or not is further judged, if not, the second face information identical to the matched first face information is determined to be added into the second database, the corresponding heat value is determined to be a heat threshold value, and the first value is added to the heat value corresponding to the second face information identical to the matched first face information.
Optionally, in the embodiment of the present disclosure, when the first database or the second database is successfully matched, a corresponding matching result is obtained. The matching result may include the first face information or the second face information matched with the face to be matched.
Fig. 2 shows a schematic diagram of a face matching method according to an embodiment of the present disclosure. As shown in fig. 2, after the electronic device acquires a face image to be matched, the electronic device of the embodiment of the present disclosure determines a second database 20 and determines a second face information amount 21 included therein. Further, it is determined whether the number 21 of the second face information in the second database 20 is greater than or equal to the number threshold 22, and if the number 21 of the second face information is greater than the number threshold and the heat value of each second face information is greater than the heat threshold, face matching is performed 23 on the face to be matched and the second database. And carrying out face matching 26 with the face to be matched through the first database under the condition that the second face information quantity 21 is smaller than the quantity threshold. When the face matching is carried out on the face to be matched through the second database 23, whether the face matching result is successful or not is judged 24, if the face matching result is successful, a face matching result 25 is obtained, and if the face matching is unsuccessful, the face matching is carried out on the face to be matched through the first database 26. When a face match 26 is made with the face to be matched by the first database, matching first face information 27 is determined, and the second database 20 is updated according to the matching first face information 27. Alternatively, when there is second face information identical to the matched first face information 27 in the second database 20, second face information identical to the matched first face information 27 is generated and updated to the second database 20. When the second face information identical to the matched first face information 27 does not exist in the second database 20, the heat value of the second face information identical to the matched first face information 27 is updated, that is, the heat value is increased by the first value.
According to the embodiment of the invention, when the quantity of the second face information in the second database meets the requirement, the second face information with higher matching probability in the second database is matched, and the first database with larger data volume is used for global matching under the condition of matching failure. By the method, the embodiment of the invention can perform matching through the second database with higher matching success probability, thereby improving the efficiency of the face matching process and ensuring that an accurate result can be matched. It is understood that the above-mentioned method embodiments of the present disclosure can be combined with each other to form a combined embodiment without departing from the logic of the principle, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
In addition, the present disclosure also provides a face matching device, an electronic device, a computer-readable storage medium, and a program, which can be used to implement any one of the face matching methods provided by the present disclosure, and the corresponding technical solutions and descriptions and corresponding descriptions in the methods section are not repeated.
Fig. 3 shows a schematic diagram of a face matching apparatus according to an embodiment of the present disclosure, as shown in fig. 2, the apparatus includes:
the image acquisition module 30 is used for acquiring a face image to be matched;
a database determining module 31, configured to determine a first database and a second database, where the second database is a subset of the first database;
the first matching module 32 is configured to, when the number of second face information included in the second database is greater than or equal to a number threshold and a heat value of each second face information is greater than or equal to a heat threshold, perform face matching on the face to be matched according to the second database, where the heat value is used to represent a probability that the second face information is matched;
and the second matching module 33 is configured to perform face matching on the face to be matched according to the first database under the condition that the face matching fails.
In a possible implementation manner, the second database includes at least one heat zone having a corresponding heat value range, and each heat zone includes second face information whose corresponding heat value is within the corresponding heat value range of the heat zone;
the first matching module 32 includes:
and the first matching submodule is used for sequentially acquiring second face information in each heat area and the face to be matched to perform face matching according to the heat value ranges corresponding to different heat areas in the second database.
In one possible implementation, after determining the first database and the second database, the apparatus further includes:
and the third matching module is used for performing face matching on the face image to be matched according to the first database under the condition that the quantity of the second face information included in the second database is smaller than a quantity threshold.
In a possible implementation manner, after performing face matching on the face image to be matched according to the first database, the apparatus further includes:
the information determining module is used for determining first face information matched with the face image to be matched in the first database;
and the information synchronization module is used for synchronizing the first face information to the second database in response to the second database not including the second face information which is the same as the first face information.
In one possible implementation, after determining the first database and the second database, the apparatus further includes:
the heat updating module is used for dynamically updating the heat value according to a preset updating rule;
and the information processing module is used for processing the second face information in the second database according to the updated heat value.
In one possible implementation, the heat update module includes:
the value increasing submodule is used for increasing the heat value corresponding to the second face information by a first value in response to the second face information being matched; or the like, or a combination thereof,
and the numerical value reduction sub-module is used for reducing the heat value corresponding to the second face information by a second numerical value in response to that the second face information is not matched within a preset time length.
In one possible implementation, the information processing module includes:
and the database updating submodule is used for deleting the second face information in the second database under the condition that the updated heat value of the second face information is smaller than the heat threshold.
The method has specific technical relevance with the internal structure of the computer system, and can solve the technical problems of how to improve the hardware operation efficiency or the execution effect (including reducing data storage capacity, reducing data transmission capacity, improving hardware processing speed and the like), thereby obtaining the technical effect of improving the internal performance of the computer system according with the natural law.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium.
An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
The disclosed embodiments also provide a computer program product comprising computer readable code or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, the processor in the electronic device performs the above method.
The electronic device may be provided as a terminal, server, or other form of device.
Fig. 4 shows a schematic diagram of an electronic device 800 according to an embodiment of the disclosure. For example, the electronic device 800 may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or other terminal device.
Referring to fig. 4, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communications component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the 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 so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices 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 disks.
The power supply component 806 provides power to the various components of the electronic device 800. The 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 the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, 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 peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light 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 assembly 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 may access a wireless network based on a communication standard, such as a wireless network (Wi-Fi), a hot generation mobile communication technology (2G), a third generation mobile communication technology (3G), a fourth generation mobile communication technology (4G), a long term evolution of universal mobile communication technology (LTE), a fifth generation mobile communication technology (5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the 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 Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the electronic device 800 to perform the above-described methods.
The disclosure relates to the field of augmented reality, and aims to detect or identify relevant features, states and attributes of a target object by means of various visual correlation algorithms by acquiring image information of the target object in a real environment, so as to obtain an AR effect combining virtual and reality matched with specific applications. For example, the target object may relate to a face, a limb, a gesture, an action, etc. associated with a human body, or a marker, a marker associated with an object, or a sand table, a display area, a display item, etc. associated with a venue or a place. The vision-related algorithms may involve visual localization, SLAM, three-dimensional reconstruction, image registration, background segmentation, key point extraction and tracking of objects, pose or depth detection of objects, and the like. The specific application can not only relate to interactive scenes such as navigation, explanation, reconstruction, virtual effect superposition display and the like related to real scenes or articles, but also relate to special effect treatment related to people, such as interactive scenes such as makeup beautification, limb beautification, special effect display, virtual model display and the like. The detection or identification processing of the relevant characteristics, states and attributes of the target object can be realized through the convolutional neural network. The convolutional neural network is a network model obtained by performing model training based on a deep learning framework.
Fig. 5 shows a schematic diagram of another electronic device 1900 according to an embodiment of the disclosure. For example, the electronic device 1900 may be provided as a server or terminal device. Referring to fig. 5, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system, such as the Microsoft Server operating system (Windows Server), stored in the memory 1932TM) Apple Inc. of the present application based on the graphic user interface operating System (Mac OS X)TM) Multi-user, multi-process computer operating system (Unix)TM) Free and open native code Unix-like operating System (Linux)TM) Open native code Unix-like operating System (FreeBSD)TM) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via 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. The network adapter card or 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 the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The 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. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various 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 will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations 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 the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, and for brevity, will not be described again herein.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
If the technical scheme of the application relates to personal information, a product applying the technical scheme of the application clearly informs personal information processing rules before processing the personal information, and obtains personal independent consent. If the technical scheme of the application relates to sensitive personal information, a product applying the technical scheme of the application obtains individual consent before processing the sensitive personal information, and simultaneously meets the requirement of 'express consent'. For example, at a personal information collection device such as a camera, a clear and significant identifier is set to inform that the personal information collection range is entered, the personal information is collected, and if the person voluntarily enters the collection range, the person is regarded as agreeing to collect the personal information; or on the device for processing the personal information, under the condition of informing the personal information processing rule by using obvious identification/information, obtaining personal authorization by modes of popping window information or asking a person to upload personal information of the person by himself, and the like; the personal information processing rule may include information such as a personal information processor, a personal information processing purpose, a processing method, and a type of personal information to be processed.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations 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 was chosen in order to best explain the principles of the embodiments, the practical application, or improvements to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A face matching method, the method comprising:
acquiring a face image to be matched;
determining a first database and a second database, wherein the second database is a subset of the first database;
under the condition that the number of second face information included in the second database is greater than or equal to a number threshold and the heat value of each second face information is greater than or equal to a heat threshold, performing face matching on the face to be matched according to the second database, wherein the heat value is used for representing the probability that the second face information is matched;
and under the condition that the face matching fails, carrying out face matching on the face to be matched according to the first database.
2. The method according to claim 1, wherein the second database comprises at least one heat area having a corresponding heat value range, each heat area comprises second face information having a corresponding heat value within the corresponding heat value range of the heat area;
the face matching of the face to be matched according to the second database comprises:
and sequentially acquiring second face information in each heat area and the face to be matched for face matching according to the heat value ranges corresponding to different heat areas in the second database.
3. The method of claim 1 or 2, wherein after determining the first database and the second database, the method further comprises:
and under the condition that the quantity of the second face information included in the second database is smaller than a quantity threshold value, carrying out face matching on the face image to be matched according to the first database.
4. The method according to claim 3, wherein after the face matching of the face image to be matched according to the first database, the method further comprises:
determining first face information matched with the face image to be matched in the first database;
in response to not including second face information in the second database that is the same as the first face information, synchronizing the first face information to the second database.
5. The method of claim 3, wherein after determining the first database and the second database, the method further comprises:
dynamically updating the heat value according to a preset updating rule;
and processing the second face information in the second database according to the updated heat value.
6. The method of claim 5, wherein dynamically updating the heat value according to a preset update rule comprises:
in response to the second face information being matched, increasing the heat value corresponding to the second face information by a first numerical value; or the like, or, alternatively,
and in response to the fact that the second face information is not matched within the preset time, reducing the heat value corresponding to the second face information by a second numerical value.
7. The method according to claim 5 or 6, wherein the processing the second face information in the second database according to the updated heat value comprises:
and deleting the second face information in the second database under the condition that the updated heat value of the second face information is smaller than the heat threshold.
8. A face matching apparatus, the apparatus comprising:
the image acquisition module is used for acquiring a face image to be matched;
a database determination module for determining a first database and a second database, the second database being a subset of the first database;
the first matching module is used for performing face matching on the face to be matched according to the second database under the condition that the number of second face information included in the second database is greater than or equal to a number threshold and the heat value of each piece of second face information is greater than or equal to a heat threshold, wherein the heat value is used for representing the probability that the second face information is matched;
and the second matching module is used for matching the face to be matched according to the first database under the condition that the face matching fails.
9. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the memory-stored instructions to perform the method of any of claims 1 to 7.
10. A computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1 to 7.
CN202210271912.7A 2022-03-18 2022-03-18 Face matching method and device, electronic equipment and storage medium Withdrawn CN114648649A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210271912.7A CN114648649A (en) 2022-03-18 2022-03-18 Face matching method and device, electronic equipment and storage medium
PCT/CN2022/110241 WO2023173659A1 (en) 2022-03-18 2022-08-04 Face matching method and apparatus, electronic device, storage medium, computer program product, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210271912.7A CN114648649A (en) 2022-03-18 2022-03-18 Face matching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114648649A true CN114648649A (en) 2022-06-21

Family

ID=81994564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210271912.7A Withdrawn CN114648649A (en) 2022-03-18 2022-03-18 Face matching method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114648649A (en)
WO (1) WO2023173659A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023173659A1 (en) * 2022-03-18 2023-09-21 上海商汤智能科技有限公司 Face matching method and apparatus, electronic device, storage medium, computer program product, and computer program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100290677A1 (en) * 2009-05-13 2010-11-18 John Kwan Facial and/or Body Recognition with Improved Accuracy
CN105956518A (en) * 2016-04-21 2016-09-21 腾讯科技(深圳)有限公司 Face identification method, device and system
CN112052733A (en) * 2020-07-31 2020-12-08 中国建设银行股份有限公司 Database construction method, face recognition device and electronic equipment
CN114648649A (en) * 2022-03-18 2022-06-21 成都商汤科技有限公司 Face matching method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023173659A1 (en) * 2022-03-18 2023-09-21 上海商汤智能科技有限公司 Face matching method and apparatus, electronic device, storage medium, computer program product, and computer program

Also Published As

Publication number Publication date
WO2023173659A1 (en) 2023-09-21

Similar Documents

Publication Publication Date Title
CN110569777B (en) Image processing method and device, electronic device and storage medium
CN113538517A (en) Target tracking method and device, electronic equipment and storage medium
CN112101238A (en) Clustering method and device, electronic equipment and storage medium
CN111563138B (en) Positioning method and device, electronic equipment and storage medium
CN110532956B (en) Image processing method and device, electronic equipment and storage medium
CN109685041B (en) Image analysis method and device, electronic equipment and storage medium
CN114546460A (en) Firmware upgrading method and device, electronic equipment and storage medium
WO2023040202A1 (en) Face recognition method and apparatus, electronic device, and storage medium
CN114581525A (en) Attitude determination method and apparatus, electronic device, and storage medium
CN114648649A (en) Face matching method and device, electronic equipment and storage medium
CN111625671A (en) Data processing method and device, electronic equipment and storage medium
CN114550265A (en) Image processing method, face recognition method and system
CN114356529A (en) Image processing method and device, electronic equipment and storage medium
CN114445753A (en) Face tracking recognition method and device, electronic equipment and storage medium
CN114550261A (en) Face recognition method and device, electronic equipment and storage medium
CN106126104B (en) Keyboard simulation method and device
CN113052874B (en) Target tracking method and device, electronic equipment and storage medium
CN115035440A (en) Method and device for generating time sequence action nomination, electronic equipment and storage medium
CN114549983A (en) Computer vision model training method and device, electronic equipment and storage medium
CN114266305A (en) Object identification method and device, electronic equipment and storage medium
CN114020264A (en) Operator processing method and device, electronic equipment and storage medium
CN112949568A (en) Method and device for matching human face and human body, electronic equipment and storage medium
CN114565962A (en) Face image processing method and device, electronic equipment and storage medium
CN114842404A (en) Method and device for generating time sequence action nomination, electronic equipment and storage medium
CN114677648A (en) Network training method, pedestrian re-identification method, network training device, pedestrian re-identification device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220621