CN112052733A - Database construction method, face recognition device and electronic equipment - Google Patents

Database construction method, face recognition device and electronic equipment Download PDF

Info

Publication number
CN112052733A
CN112052733A CN202010763235.1A CN202010763235A CN112052733A CN 112052733 A CN112052733 A CN 112052733A CN 202010763235 A CN202010763235 A CN 202010763235A CN 112052733 A CN112052733 A CN 112052733A
Authority
CN
China
Prior art keywords
face image
label
recognized
face
database
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.)
Pending
Application number
CN202010763235.1A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010763235.1A priority Critical patent/CN112052733A/en
Publication of CN112052733A publication Critical patent/CN112052733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • 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/51Indexing; Data structures therefor; Storage structures
    • 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
    • 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/587Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/50Maintenance of biometric data or enrolment thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Library & Information Science (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Image Analysis (AREA)

Abstract

The application provides a database construction method, a face recognition device and electronic equipment, which are applied to the technical field of image recognition, wherein the method comprises the following steps: the retrieval comparison of the face images is not carried out through a full database, the labels of the face images to be recognized are determined based on the information of the face images to be recognized, the database corresponding to the labels of the face images to be recognized is called to recognize the face images to be recognized, and the data volume of the database corresponding to the labels of the face images to be recognized is smaller than that of the full database, so that the retrieval amount of the face images can be reduced, and the speed and the precision of face recognition can be improved.

Description

Database construction method, face recognition device and electronic equipment
Technical Field
The application relates to the technical field of image recognition, in particular to a database construction method, a face recognition device and electronic equipment.
Background
With the maturity and wide acceptance of face recognition technology, face recognition is currently applied in many fields, for example, face recognition access attendance, face recognition mobile phone unlocking, face recognition subway face brushing and passing, and the like. In the process of face recognition, face information is registered and then stored in a face information base, and when the face is compared, the face information base is subjected to the following steps of 1: n targets are searched and compared, so that the speed of the face recognition speed is related to the size of the face library N.
In the prior art, all face information libraries are generally stored in one library in a centralized way, and the data volume of the library is too large, so that the face comparison speed and precision are insufficient during comparison.
Therefore, the invention aims to solve the problems that according to the log acquisition and analysis result, the face data is labeled, different face information bases are built according to the labels, and the face information is accurately put in the bases according to the labels, so that the speed and the precision of the face comparison are improved.
Disclosure of Invention
The application provides a database construction method or a face recognition method, a face recognition device and electronic equipment, which are used for improving the speed and the precision of face recognition. The technical scheme adopted by the application is as follows:
in a first aspect, a database construction method is provided, including:
acquiring a first log file which is used for successfully recognizing the face of a face image to be recognized by a first face image in a first period;
and determining a first label of the first face image based on the first log file, and storing the first face image to a first database corresponding to the first label of the first face image.
Optionally, the method further comprises:
judging whether a first database corresponding to a first label of a first face image exists or not;
if not, a first database corresponding to a first label of the first face image is created.
Optionally, the method further comprises:
acquiring a second log file of the face image to be recognized, which is successfully subjected to face recognition by the first face image in a second period;
determining a second label for the first facial image based on the second log file;
and judging whether the second label is consistent with the first label or not, and if not, storing the first face image to a second database corresponding to the second label of the first face image.
Optionally, the method further comprises:
judging whether a second database corresponding to a second label of the target face image exists or not;
if not, a second database corresponding to the second label of the first face image is created.
Optionally, the method further comprises:
and deleting the first face image in the first database.
Optionally, the log file includes acquisition device information, location information, and time information for acquiring the face image to be verified.
In a second aspect, a face recognition method is provided, including:
acquiring facial image information to be recognized, wherein the facial image information to be recognized comprises at least one of acquisition equipment information and position information;
determining a label of the facial image to be recognized based on the facial image information to be recognized;
and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method in the first aspect.
Optionally, the method further comprises:
if the database corresponding to the label of the face image to be recognized is called to recognize the face image to be recognized, a matched face image is not obtained;
and calling a full face image database to identify the face image to be identified.
In a third aspect, a face image database construction apparatus is provided, including:
the first acquisition module is used for acquiring a first log file for performing image recognition on a first face image in a first period;
the storage module is used for determining a first label of the first face image based on the first log file and storing the first face image to a first database corresponding to the first label of the first face image.
Optionally, the apparatus further comprises:
the judging module is used for judging whether a first database corresponding to a first label of the first face image exists or not;
a creation module to create a first database corresponding to a first label of a first face image if not present.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a second log file for performing image recognition on the first face image in a second period;
a first determination module to determine a second label of the first face image based on the second log file;
and the first judging module is used for judging whether the second label is consistent with the first label or not, and if not, storing the first face image to a second database corresponding to the second label of the target face image.
Optionally, the apparatus further comprises:
the second judgment module is used for judging whether a second database corresponding to a second label of the target face image exists or not;
and the creating module is used for creating a second database corresponding to the second label of the target face image if the second database does not exist.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the first face image in the first database.
Optionally, the log file includes acquisition device information, location information, and time information for acquiring the face image to be verified.
In a fourth aspect, a face recognition apparatus is provided, including:
the third acquisition module is used for acquiring the information of the face image to be recognized, wherein the information of the face image to be recognized comprises at least one of acquisition equipment information and position information;
the second determination module is used for determining the label of the face image to be recognized based on the face image information to be recognized;
the first calling module is used for calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, and the database corresponding to the label of the facial image to be recognized is the database constructed by the method in any one of the first aspect.
Optionally, the apparatus further comprises:
and the second calling module is used for calling the full-scale face image database to identify the face image to be identified if the database corresponding to the label of the face image to be identified is called to identify the face image to be identified and a matched face image is not obtained.
In a fifth aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the database construction method or the face recognition method shown in the first aspect is performed.
In a sixth aspect, there is provided a computer-readable storage medium for storing computer instructions which, when executed on a computer, enable the computer to perform the database construction method or the face recognition method of the first aspect.
The application provides a database construction method or a face recognition method, a face recognition device and electronic equipment, compared with the prior art, the method comprises the following steps of 1: n, searching for a face comparison, wherein the face image information to be recognized is obtained, and the face image information to be recognized comprises at least one of acquisition equipment information and position information; determining a label of the facial image to be recognized based on the facial image information to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method in the first aspect. The method comprises the steps that retrieval and comparison of face images are not carried out through a full database, and labels of the face images to be recognized are determined based on information of the face images to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the data volume of the database corresponding to the label of the facial image to be recognized is smaller than that of a full database, so that the retrieval amount of the facial image can be reduced, and the speed and the precision of the facial recognition can be improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a database construction method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a face recognition method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a database construction apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a face recognition apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
An embodiment of the present application provides a database construction method, as shown in fig. 1, the method may include the following steps:
step S101, acquiring a first log file of successfully carrying out face recognition on a face image to be recognized by using a first face image in a first period;
step S102, determining a first label of the first face image based on the first log file, and storing the first face image to a first database corresponding to the first label of the first face image.
The log file comprises acquisition equipment information, position information and time information for acquiring the face image to be verified.
Specifically, when registering the face information, the face information is stored in a full database. For example, taking a first face image in the full-scale database as a matching object to perform face recognition, when the face recognition is initially performed, the server receives face image information to be recognized, which is sent by the face image acquisition device, where the face image information to be recognized may include one or more of image acquisition device information, location information, and time information, and then calls the full-scale database to perform face image recognition, where the face image successfully matched may be the first face image in the full-scale database. When the matching is successful, the face image information to be recognized can be used as a log file of the first face image.
Specifically, a first log file for successfully carrying out face recognition on a face image to be recognized by using a first face image in a first period is obtained; the log file may be one or more, and the log file may include one or more of image capturing device information, location information, and time information.
Specifically, according to different specific setting rules and policies, the first label of the first face image may be determined according to one log file, or may be determined according to a plurality of log files, where if the label of the first face image is determined according to one log file, the image capture device information or the location information in the log file may be used as the label of the first face image, and then the first face image is stored in the first database corresponding to the label of the first face image, where the first database may correspond to one first label, or may correspond to a plurality of first labels (that is, the plurality of label face images are all stored in the first database, and for example, the plurality of face images of the image capture devices all correspond to one first database).
Specifically, the first log file may include a plurality of log files, that is, a plurality of log files generated within a certain threshold time, and for example, the number of the log files is 8 for collection by the a device, 1 for collection by the B device, and 1 for collection by the C device, and the information of the a device is used as the first tag of the first face image.
Illustratively, in the log file, 8 are collected at the a position, 1 is collected at the B position, and 1 is collected at the C position, and the a position information is used as the first label of the first face image.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
judging whether a first database corresponding to a first label of the first face image exists or not;
if not, a first database corresponding to a first label of the first face image is created.
The embodiment of the present application provides a possible implementation manner, and further, the method further includes:
acquiring a second log file of the face image to be recognized, which is successfully subjected to face recognition by the first face image in a second period;
determining a second label for the first facial image based on the second log file;
and judging whether the second label is consistent with the first label or not, and if not, storing the first face image to a second database corresponding to the second label of the first face image.
Specifically, a second log file is obtained, wherein the face recognition of the face image to be recognized is successfully carried out by using the first face image in a second period; the second log file may be one or more, and the log file may include one or more of image capturing device information, location information, and time information.
And if the second label of the first face image determined based on the second log file is inconsistent with the previously determined first label, storing the first face image to a second database corresponding to the second label of the first face image. If the two are consistent, no dynamic adjustment is performed.
Further, the method further comprises:
judging whether a second database corresponding to a second label of the target face image exists or not;
if not, a second database corresponding to the second label of the first face image is created.
Further, the method further comprises: and deleting the first face image in the first database.
And if the second label of the first face image determined based on the second log file is inconsistent with the previously determined first label, storing the first face image to a second database corresponding to the second label of the first face image. The second label is inconsistent with the first label, and the situation that the card punching place of the user corresponding to the first face image changes is shown, accordingly, the first face image in the first database can be deleted, so that the number of the face images in the first database can be reduced, and the speed and the accuracy of face recognition in the first database can be improved.
According to the embodiment of the application, the log file of the face recognition process is collected on the face recognition system. Analyzing the log after collection, and marking different labels on face information according to different application scenes of the face recognition system, for example, the face recognition applied to a company access control system can be used for marking labels on floors with different personnel information; the face recognition method is applied to face brushing and brake passing of the subway, and labels can be marked according to different common stations of people. And establishing face information bases of different labels according to the label results of log acquisition and analysis, wherein the faces of different labels are accurately stored in different information bases. And in the subsequent operation process, the label of the face information can be dynamically adjusted according to the analysis result, and if the face label changes, the face storage information base is dynamically changed along with the change. In the process of comparing the human face, searching and comparing are carried out in different tag libraries according to different human face information tags, and the comparison speed and precision are improved.
Example two
The embodiment of the application provides a face recognition method, as shown in fig. 1, the method may include the following steps:
step S201, obtaining face image information to be recognized, wherein the face image information to be recognized comprises at least one of acquisition equipment information and position information;
step S202, determining a label of the facial image to be recognized based on the facial image information to be recognized;
step S203, calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, where the database corresponding to the label of the facial image to be recognized is the database constructed by the method shown in the first embodiment.
Further, the method further comprises:
if the database corresponding to the label of the facial image to be recognized is called to recognize the facial image to be recognized, a matched facial image is not obtained;
and calling a full face image database to identify the face image to be identified.
Specifically, an image acquisition device (such as a card punching device of a company and a face recognition device of a subway) acquires a face image to be recognized, the image acquisition device sends the face image to be recognized and acquisition device information or position information to a server as the face image information to be recognized, and the face image information to be recognized comprises at least one of the acquisition device information and the position information;
step S202, determining a label of the facial image to be recognized based on the facial image information to be recognized;
the server determines the label of the face image to be recognized according to the face image information to be recognized, wherein the label can be acquisition equipment information or position information.
Step S203, calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, where the database corresponding to the label of the facial image to be recognized is the database constructed by the method shown in the first embodiment.
Specifically, the server calls a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, instead of directly calling a full database to recognize, so that the retrieval matching amount of the facial image can be reduced, and the facial image recognition efficiency is improved.
Further, the method further comprises:
if the database corresponding to the label of the facial image to be recognized is called to recognize the facial image to be recognized, a matched facial image is not obtained;
and calling a full face image database to identify the face image to be identified.
Specifically, if a database corresponding to a tag of the facial image to be recognized is called to recognize the facial image to be recognized, and a matched facial image is not obtained, it is indicated that the facial image of the user is not stored in the device corresponding to the tag, and a full-scale facial image database is called to recognize the facial image to be recognized, so that after the database (small database) corresponding to the tag fails, the full-scale database is called to recognize, and the situation that the registered user cannot recognize is avoided while the recognition efficiency is ensured.
In an application scenario of the embodiment of the application, face information of all employees of a company is stored in a full database (big database), then labels of all face images are determined according to logs of face image recognition and are respectively stored in label databases (small data) corresponding to the labels, then when the employees punch a card, face recognition is performed by using the label database corresponding to the labels of the face images to be recognized, if the face recognition fails, the face images of the users are not stored in the label databases, and the full database is called for recognition, so that the employee recognition success or the card punching success is ensured.
The embodiment of the application provides a face recognition method, which is compared with the prior art that 1: n, searching for a face comparison, wherein the face image information to be recognized is obtained, and the face image information to be recognized comprises at least one of acquisition equipment information and position information; determining a label of the facial image to be recognized based on the facial image information to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method in the first aspect. The method comprises the steps that retrieval and comparison of face images are not carried out through a full database, and labels of the face images to be recognized are determined based on information of the face images to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the data volume of the database corresponding to the label of the facial image to be recognized is smaller than that of a full database, so that the retrieval amount of the facial image can be reduced, and the speed and the precision of the facial recognition can be improved.
EXAMPLE III
Fig. 3 is a face image database construction apparatus provided in this embodiment of the present application, where the apparatus 30 includes:
a first obtaining module 301, configured to obtain a first log file for performing image recognition on a first face image in a first period;
a storage module 302, configured to determine a first tag of the first face image based on the first log file, and store the first face image in a first database corresponding to the first tag of the first face image.
Further, the apparatus further comprises:
the judging module is used for judging whether a first database corresponding to a first label of the first face image exists or not;
a creation module to create a first database corresponding to a first label of a first face image if not present.
Further, the apparatus further comprises:
the second acquisition module is used for acquiring a second log file for performing image recognition on the first face image in a second period;
a first determination module to determine a second label of the first face image based on the second log file;
and the first judging module is used for judging whether the second label is consistent with the first label or not, and if not, storing the first face image to a second database corresponding to the second label of the target face image.
Further, the apparatus further comprises:
the second judgment module is used for judging whether a second database corresponding to a second label of the target face image exists or not;
and the creating module is used for creating a second database corresponding to the second label of the target face image if the second database does not exist.
Further, the apparatus further comprises:
and the deleting module is used for deleting the first face image in the first database.
Further, the log file comprises acquisition equipment information, position information and time information for acquiring the face image to be verified.
The beneficial effects of the database construction apparatus according to the embodiment of the present application are similar to those of the database construction method according to the first embodiment, and are not described herein again.
Example four
The embodiment of the present application provides a face recognition apparatus, the apparatus 50 includes:
a third obtaining module 501, configured to obtain facial image information to be recognized, where the facial image information to be recognized includes at least one of acquisition device information and location information;
a second determining module 502, configured to determine a label of the facial image to be recognized based on the facial image information to be recognized;
the first calling module 503 is configured to call a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, where the database is constructed by the method shown in the first embodiment and corresponds to the label of the facial image to be recognized.
The beneficial effects of the face recognition device of the embodiment of the application are similar to those of the face recognition method shown in the second embodiment, and are not repeated herein.
The embodiment of the application provides a face recognition device, which is compared with the prior art by performing 1: n, searching for a face comparison, wherein the face image information to be recognized is obtained, and the face image information to be recognized comprises at least one of acquisition equipment information and position information; determining a label of the facial image to be recognized based on the facial image information to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method in the first aspect. The method comprises the steps that retrieval and comparison of face images are not carried out through a full database, and labels of the face images to be recognized are determined based on information of the face images to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the data volume of the database corresponding to the label of the facial image to be recognized is smaller than that of a full database, so that the retrieval amount of the facial image can be reduced, and the speed and the precision of the facial recognition can be improved.
EXAMPLE five
An embodiment of the present application provides an electronic device, as shown in fig. 4, an electronic device 40 shown in fig. 4 includes: a processor 401 and a memory 403. Wherein the processor 401 is coupled to the memory 403, such as via a bus 402. Further, the electronic device 40 may also include a transceiver 404. It should be noted that the transceiver 404 is not limited to one in practical applications, and the structure of the electronic device 40 is not limited to the embodiment of the present application. The processor 401 is applied in the embodiment of the present application, and is used to implement the functions of the modules shown in fig. 2. The transceiver 404 includes a receiver and a transmitter.
The processor 401 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 401 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 402 may include a path that transfers information between the above components. The bus 402 may be a PCI bus or an EISA bus, etc. The bus 402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The memory 403 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 403 is used for storing application program codes for executing the scheme of the application, and the execution is controlled by the processor 401. The processor 401 is configured to execute application program code stored in the memory 403 to implement the functions of the apparatus provided by the embodiments shown in fig. 3 or fig. 5.
The embodiment of the application provides an electronic device, which is compared with the prior art that 1: n, searching for a face comparison, wherein the face image information to be recognized is obtained, and the face image information to be recognized comprises at least one of acquisition equipment information and position information; determining a label of the facial image to be recognized based on the facial image information to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method in the first aspect. The method comprises the steps that retrieval and comparison of face images are not carried out through a full database, and labels of the face images to be recognized are determined based on information of the face images to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the data volume of the database corresponding to the label of the facial image to be recognized is smaller than that of a full database, so that the retrieval amount of the facial image can be reduced, and the speed and the precision of the facial recognition can be improved.
The embodiment of the application provides an electronic device suitable for the method embodiment. And will not be described in detail herein.
Practice four
The present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method shown in the above embodiments is implemented.
The embodiment of the application provides a computer-readable storage medium, which performs 1: n, searching for a face comparison, wherein the face image information to be recognized is obtained, and the face image information to be recognized comprises at least one of acquisition equipment information and position information; determining a label of the facial image to be recognized based on the facial image information to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method in the first aspect. The method comprises the steps that retrieval and comparison of face images are not carried out through a full database, and labels of the face images to be recognized are determined based on information of the face images to be recognized; and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the data volume of the database corresponding to the label of the facial image to be recognized is smaller than that of a full database, so that the retrieval amount of the facial image can be reduced, and the speed and the precision of the facial recognition can be improved.
The embodiment of the application provides a computer-readable storage medium which is suitable for the method embodiment. And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.

Claims (18)

1. A database construction method, comprising:
acquiring a first log file which is used for successfully recognizing the face of a face image to be recognized by a first face image in a first period;
and determining a first label of the first face image based on the first log file, and storing the first face image to a first database corresponding to the first label of the first face image.
2. The method of claim 1, further comprising:
judging whether a first database corresponding to a first label of the first face image exists or not;
if not, a first database corresponding to a first label of the first face image is created.
3. The method of claim 1, further comprising:
acquiring a second log file of the face image to be recognized, which is successfully subjected to face recognition by the first face image in a second period;
determining a second label for the first facial image based on the second log file;
and judging whether the second label is consistent with the first label or not, and if not, storing the first face image to a second database corresponding to the second label of the first face image.
4. The method of claim 3, further comprising:
judging whether a second database corresponding to a second label of the target face image exists or not;
if not, a second database corresponding to the second label of the first face image is created.
5. The method of claim 3, further comprising:
and deleting the first face image in the first database.
6. The method according to claim 1, wherein the log file comprises acquisition device information, location information, and time information for acquiring the face image to be verified.
7. A face recognition method, comprising:
acquiring facial image information to be recognized, wherein the facial image information to be recognized comprises at least one of acquisition equipment information and position information;
determining a label of the facial image to be recognized based on the facial image information to be recognized;
and calling a database corresponding to the label of the facial image to be recognized to recognize the facial image to be recognized, wherein the database corresponding to the label of the facial image to be recognized is the database constructed by the method of any one of claims 1-6.
8. The method of claim 7, further comprising:
if the database corresponding to the label of the facial image to be recognized is called to recognize the facial image to be recognized, a matched facial image is not obtained;
and calling a full face image database to identify the face image to be identified.
9. A face image database construction apparatus, comprising:
the first acquisition module is used for acquiring a first log file for performing image recognition on a first face image in a first period;
and the storage module is used for determining a first label of the first face image based on the first log file and storing the first face image to a first database corresponding to the first label of the first face image.
10. The apparatus of claim 9, further comprising:
the judging module is used for judging whether a first database corresponding to a first label of the first face image exists or not;
a creation module to create a first database corresponding to a first label of a first face image if not present.
11. The apparatus of claim 9, further comprising:
the second acquisition module is used for acquiring a second log file for performing image recognition on the first face image in a second period;
a first determination module to determine a second label of the first face image based on the second log file;
and the first judging module is used for judging whether the second label is consistent with the first label or not, and if not, storing the first face image to a second database corresponding to the second label of the target face image.
12. The apparatus of claim 9, further comprising:
the second judgment module is used for judging whether a second database corresponding to a second label of the target face image exists or not;
and the creating module is used for creating a second database corresponding to the second label of the target face image if the second database does not exist.
13. The method of claim 11, wherein the apparatus further comprises:
and the deleting module is used for deleting the first face image in the first database.
14. The apparatus according to claim 9, wherein the log file comprises acquisition device information, location information, and time information for acquiring the face image to be verified.
15. A face recognition apparatus, comprising:
the third acquisition module is used for acquiring the information of the face image to be recognized, wherein the information of the face image to be recognized comprises at least one of acquisition equipment information and position information;
the second determination module is used for determining the label of the facial image to be recognized based on the facial image information to be recognized;
a first calling module, configured to call a database corresponding to a tag of the facial image to be recognized to recognize the facial image to be recognized, where the database corresponding to the tag of the facial image to be recognized is the database constructed by the method according to any one of claims 1 to 6.
16. The apparatus of claim 15, further comprising:
and the second calling module is used for calling the full-scale face image database to identify the face image to be identified if the database corresponding to the label of the face image to be identified is called to identify the face image to be identified and a matched face image is not obtained.
17. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing a database construction method or a face recognition method according to any one of claims 1 to 8.
18. A computer-readable storage medium for storing computer instructions which, when executed on a computer, enable the computer to perform the database construction method or the face recognition method of any one of claims 1 to 8.
CN202010763235.1A 2020-07-31 2020-07-31 Database construction method, face recognition device and electronic equipment Pending CN112052733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010763235.1A CN112052733A (en) 2020-07-31 2020-07-31 Database construction method, face recognition device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010763235.1A CN112052733A (en) 2020-07-31 2020-07-31 Database construction method, face recognition device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112052733A true CN112052733A (en) 2020-12-08

Family

ID=73601231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010763235.1A Pending CN112052733A (en) 2020-07-31 2020-07-31 Database construction method, face recognition device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112052733A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560686A (en) * 2020-12-16 2021-03-26 神思旭辉医疗信息技术有限责任公司 Dynamic face calling system and method and cloud face data processing terminal
CN113129498A (en) * 2021-06-16 2021-07-16 湖南中惠旅智能科技有限责任公司 Face recognition method and system based on intelligent scenic spot
CN113343004A (en) * 2021-06-10 2021-09-03 浙江大华技术股份有限公司 Object recognition method and device, storage medium and electronic device
CN113689613A (en) * 2021-08-25 2021-11-23 爱康网健康科技(北京)有限公司 Access control system, access control method, and storage medium
WO2023173659A1 (en) * 2022-03-18 2023-09-21 上海商汤智能科技有限公司 Face matching method and apparatus, electronic device, storage medium, computer program product, and computer program
CN117409470A (en) * 2023-12-15 2024-01-16 千巡科技(深圳)有限公司 Face recognition feature data dynamic matching method, system, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469296A (en) * 2016-08-30 2017-03-01 北京旷视科技有限公司 Face identification method, device and gate control system
CN107273796A (en) * 2017-05-05 2017-10-20 珠海数字动力科技股份有限公司 A kind of fast face recognition and searching method based on face characteristic
CN109815775A (en) * 2017-11-22 2019-05-28 深圳市祈飞科技有限公司 A kind of face identification method and system based on face character
WO2020000906A1 (en) * 2018-06-29 2020-01-02 汉王科技股份有限公司 Facial recognition identity verification method, apparatus, and electronic device
CN111222373A (en) * 2018-11-26 2020-06-02 深圳云天励飞技术有限公司 Personnel behavior analysis method and device and electronic equipment
CN111400520A (en) * 2020-02-26 2020-07-10 北京沃东天骏信息技术有限公司 Construction method of face recognition library, face payment method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469296A (en) * 2016-08-30 2017-03-01 北京旷视科技有限公司 Face identification method, device and gate control system
CN107273796A (en) * 2017-05-05 2017-10-20 珠海数字动力科技股份有限公司 A kind of fast face recognition and searching method based on face characteristic
CN109815775A (en) * 2017-11-22 2019-05-28 深圳市祈飞科技有限公司 A kind of face identification method and system based on face character
WO2020000906A1 (en) * 2018-06-29 2020-01-02 汉王科技股份有限公司 Facial recognition identity verification method, apparatus, and electronic device
CN111222373A (en) * 2018-11-26 2020-06-02 深圳云天励飞技术有限公司 Personnel behavior analysis method and device and electronic equipment
CN111400520A (en) * 2020-02-26 2020-07-10 北京沃东天骏信息技术有限公司 Construction method of face recognition library, face payment method, device and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112560686A (en) * 2020-12-16 2021-03-26 神思旭辉医疗信息技术有限责任公司 Dynamic face calling system and method and cloud face data processing terminal
CN112560686B (en) * 2020-12-16 2023-03-07 神思(山东)医疗信息技术有限责任公司 Dynamic face calling system and method and cloud face data processing terminal
CN113343004A (en) * 2021-06-10 2021-09-03 浙江大华技术股份有限公司 Object recognition method and device, storage medium and electronic device
CN113129498A (en) * 2021-06-16 2021-07-16 湖南中惠旅智能科技有限责任公司 Face recognition method and system based on intelligent scenic spot
CN113689613A (en) * 2021-08-25 2021-11-23 爱康网健康科技(北京)有限公司 Access control system, access control method, and storage medium
WO2023173659A1 (en) * 2022-03-18 2023-09-21 上海商汤智能科技有限公司 Face matching method and apparatus, electronic device, storage medium, computer program product, and computer program
CN117409470A (en) * 2023-12-15 2024-01-16 千巡科技(深圳)有限公司 Face recognition feature data dynamic matching method, system, device and medium
CN117409470B (en) * 2023-12-15 2024-03-15 千巡科技(深圳)有限公司 Face recognition feature data dynamic matching method, system, device and medium

Similar Documents

Publication Publication Date Title
CN112052733A (en) Database construction method, face recognition device and electronic equipment
CN106446816B (en) Face recognition method and device
CN111046235B (en) Method, system, equipment and medium for searching acoustic image archive based on face recognition
CN107733869B (en) Equipment identification method and device
CN113127633B (en) Intelligent conference management method and device, computer equipment and storage medium
CN112200067B (en) Intelligent video event detection method, system, electronic equipment and storage medium
CN114817968B (en) Method, device and equipment for tracing path of featureless data and storage medium
CN112395390B (en) Training corpus generation method of intention recognition model and related equipment thereof
CN111163072A (en) Method and device for determining characteristic value in machine learning model and electronic equipment
CN111507332A (en) Vehicle VIN code detection method and equipment
CN110909655A (en) Method and equipment for identifying video event
CN114743132A (en) Target algorithm selection method and device, electronic equipment and storage medium
CN114398315A (en) Data storage method, system, storage medium and electronic equipment
CN113468017A (en) Online service state detection method applied to block chain and service server
CN111539390A (en) Small target image identification method, equipment and system based on Yolov3
CN116383423A (en) Image retrieval result rearrangement method, device, computer equipment and medium
CN112333182B (en) File processing method, device, server and storage medium
CN115690880A (en) Secondary aggregation method, system, equipment and storage medium for heterogeneous portrait archive data
CN111382628B (en) Method and device for judging peer
CN117112846B (en) Multi-information source license information management method, system and medium
CN117058432B (en) Image duplicate checking method and device, electronic equipment and readable storage medium
CN111209397A (en) Method for determining enterprise industry category
CN113361456B (en) Face recognition method and system
CN117193889B (en) Construction method of code example library and use method of code example library
CN115641623A (en) Face recognition method, device and equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20220907

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right