A face recognition system
By detecting human signals and controlling the controlled switch to reset the image acquisition device, the problem of the camera being unable to output video data under the influence of external environment or after long-term operation is solved, ensuring the normal operation of the face recognition system.
Patent Information
- Application Number
- CN202211181391.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2042-09-27
AI Technical Summary
When the camera is affected by external environmental factors or after working for a long time, it may fail to output video data normally, causing the facial recognition function to malfunction.
The controller detects human signals, uses a level detection circuit to collect the waveform of the storage module, controls the controlled switch to disconnect the image acquisition device from the power module, and then re-energizes the device after a delay, thus resetting the image acquisition device.
This solves the problem of cameras failing to output video data properly due to external environmental influences or after prolonged operation, ensuring the normal operation of the facial recognition system.
Smart Images

Figure CN115497137B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of facial recognition, and in particular to a facial recognition system. Background Technology
[0002] With the rapid development of the intelligent era, facial recognition smart terminal displays are being used more and more widely in people's lives. Among them, the camera is the most basic hardware configuration of a facial recognition smart terminal display, used to acquire facial image data. Cameras typically use MIPI CSI or USB communication interfaces to achieve data interaction between the camera and the CPU. Sometimes, to shorten the software development cycle and adapt to cameras from different manufacturers, the USB communication interface is often used. In practical applications, due to external environmental factors (such as static electricity) or prolonged operation, USB cameras may fail to output video data normally. If the camera is not reset in time, it will ultimately lead to the inability to perform facial recognition correctly.
[0003] In view of the above, this application is hereby submitted. Summary of the Invention
[0004] This invention discloses a face recognition system, which aims to solve the problem in the prior art that cameras cannot output video data normally under the influence of the external environment or after working for a long time.
[0005] This invention provides a face recognition system, including: a controller, an image acquisition device, a power module, a controlled switch, a human body detection module, a storage module, and a level detection circuit;
[0006] The power module is electrically connected to the power supply terminal of the image acquisition device via the controlled switch. The control terminal of the controlled switch is electrically connected to the output terminal of the controller. The image acquisition device and the human body detection module are electrically connected to the input terminal of the controller. The storage module is electrically connected to the output terminal of the controller. The input terminal of the level detection circuit is electrically connected to the signal terminal of the storage module. The output terminal of the level detection circuit is electrically connected to the input terminal of the controller.
[0007] The controller is configured to perform the following steps by executing a computer program stored internally:
[0008] Acquire human signals collected in real time by the human detection module;
[0009] When it is determined from the human body signal that a human body has passed near the image acquisition device, the waveform of the signal terminal of the storage module within a preset time period is acquired by the level detection circuit.
[0010] The image acquisition device is reset by the controlled switch according to the waveform.
[0011] Preferably, resetting the image acquisition device via the controlled switch based on the waveform specifically involves:
[0012] Determine whether the waveform is a preset waveform;
[0013] If not, a low-level signal is generated to the controlled switch, and after a preset delay, a high-level signal is generated to the controlled switch to reset the image acquisition device.
[0014] Preferably, the controlled switch includes: a single-pole double-throw electronic switch, a first resistor, and a first capacitor;
[0015] Wherein, the control terminal of the single-pole double-throw electronic switch is electrically connected to the output terminal of the controller, the control terminal of the single-pole double-throw electronic switch is grounded through the first resistor, the fixed contact of the single-pole double-throw electronic switch is electrically connected to the power supply terminal of the image acquisition device, the first movable contact of the single-pole double-throw electronic switch is electrically connected to the output terminal of the power module, and the second movable contact of the single-pole double-throw electronic switch is grounded through the first capacitor;
[0016] In this device, one end of the blade of the single-pole double-throw electronic switch is connected to the fixed contact, and the other end of the blade can switch between the first active contact and the second active contact.
[0017] Preferably, the storage module includes a card reader controller and a TF card receiving slot;
[0018] The output terminal of the card reader controller is electrically connected to the TF card receiving slot, the input terminal of the card reader controller is electrically connected to the input terminal of the controller, and the signal terminal of the card reader controller is electrically connected to the input terminal of the level detection circuit.
[0019] Preferably, the level detection circuit includes: a first transistor, a second resistor, and a third resistor;
[0020] The signal terminal of the card reader controller is electrically connected to the base (b) of the first transistor via the second resistor, the collector (c) of the first transistor is electrically connected to the input terminal of the controller, the emitter (e) of the first transistor is grounded, and the collector (c) of the first transistor is connected to the power supply via the third resistor.
[0021] Preferably, the human body detection module includes: an infrared sensor, a second transistor, a fourth resistor, and a fifth resistor;
[0022] The output terminal of the infrared sensor is electrically connected to the base (b) of the second transistor via the fifth resistor. The emitter (e) of the second transistor is grounded. The collector (c) of the second transistor is electrically connected to the input terminal of the controller. The collector (c) of the second transistor is connected to the power supply via the fourth resistor.
[0023] Preferably, it further includes: a display screen;
[0024] The display screen is electrically connected to the controller.
[0025] Preferably, it further includes: a high-speed switch configured between the image acquisition device and the controller;
[0026] The control terminal of the high-speed switch is electrically connected to the output terminal of the controller.
[0027] Preferably, the image acquisition device is a binocular camera.
[0028] Based on the face recognition system provided by this invention, the controller detects whether a human body passes by the image acquisition device through a human body detection module. When a human body is detected, the controller acquires the waveform of the signal terminal of the storage module within a preset time period through the level detection circuit. When the detected waveform does not conform to the preset waveform, the controller disconnects the image acquisition device from the power module by controlling the controlled switch, and re-energizes the device after a preset delay, thereby resetting the image acquisition device. This solves the problem that the camera cannot output video data normally under the influence of the external environment or after working for a long time. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of the circuit structure of a face recognition system provided by the present invention;
[0030] Figure 2 This is a schematic diagram of the controller execution steps provided by the present invention. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to represent selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0032] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0033] This invention discloses a face recognition system, which aims to solve the problem in the prior art that cameras cannot output video data normally under the influence of the external environment or after working for a long time.
[0034] Please see Figure 1 This invention provides a face recognition system, including: a controller U1, an image acquisition device U6, a power module U7, a controlled switch, a human body detection module, a storage module, and a level detection circuit;
[0035] Specifically, the power module U7 is electrically connected to the power supply terminal of the image acquisition device U6 via the controlled switch; the control terminal of the controlled switch is electrically connected to the output terminal of the controller U1; the image acquisition device U6 and the human body detection module are electrically connected to the input terminal of the controller U1; the storage module is electrically connected to the output terminal of the controller U1; the input terminal of the level detection circuit is electrically connected to the signal terminal of the storage module; and the output terminal of the level detection circuit is electrically connected to the input terminal of the controller U1.
[0036] It should be noted that the controller U1 is a combination of core system modules, which internally includes PMIC, CPU, LPDDR4, EMMC, USB_HUB, etc. It has audio and video encoding and decoding functions, and includes MIPI_CSI interface, MIPI_DSI interface, USB interface, and combined circuits containing WIFI, Bluetooth, Ethernet, etc. In practice, it runs on the Android platform. IO1, IO2, and IO3 are GPIO ports of U1. IO1 is an output port, and IO2 and IO3 are input ports. The default output level of IO1 is high.
[0037] In this embodiment, the image acquisition device U6 can be a binocular camera, but it is not limited to this. The binocular camera is provided with two USB interfaces that are respectively connected to the controller U1.
[0038] It should be noted that the inventors discovered that after prolonged use, or due to environmental factors such as static electricity, the camera may fail to output video data properly, causing the facial recognition function to malfunction. This could affect company attendance, access control at the entrance of a residential community, etc.
[0039] In this embodiment, please refer to Figure 2 The controller U1 is configured to perform the following steps by executing a computer program stored internally:
[0040] Acquire human signals collected in real time by the human detection module;
[0041] When it is determined from the human body signal that a human body has passed near the image acquisition device U6, the waveform of the signal terminal of the storage module within a preset time period is acquired by the level detection circuit.
[0042] The image acquisition device U6 is reset by the controlled switch according to the waveform.
[0043] In this embodiment, the controller U1 detects whether a human body passes by the image acquisition device U6 through the human body detection module. When a human body is detected, the controller U1 acquires the waveform of the signal terminal of the storage module within a preset time period through the level detection circuit (wherein, the signal terminal of the storage module outputs a certain regular high and low level, which can be represented by waveform F). When the detected waveform does not conform to the preset waveform, the controller disconnects the connection between the image acquisition device U6 and the power module U7 by controlling the controlled switch, and re-powers it after a preset delay, thereby resetting the image acquisition device U6. This solves the problem that the camera cannot output video data normally under the influence of the external environment or after working for a long time.
[0044] In one possible embodiment of the present invention, resetting the image acquisition device U6 via the controlled switch according to the waveform specifically involves:
[0045] Determine whether the waveform is a preset waveform;
[0046] If not, a low-level signal is generated to the controlled switch, and after a preset delay, a high-level signal is generated to the controlled switch to reset the image acquisition device U6.
[0047] It should be noted that in this embodiment, if the controller U1 does not detect the waveform F generated by the storage module within a preset time period (that is, the signal terminal of the storage module does not output a certain regular high and low level), it indicates that the controller U1 has not collected face data, the image acquisition device U6 is in an abnormal working state, and the image acquisition device U6 needs to be powered on and off in time for reset.
[0048] In one possible embodiment of the present invention, the controlled switch includes: a single-pole double-throw electronic switch K1, a first resistor R1, and a first capacitor C1;
[0049] The control terminal of the single-pole double-throw electronic switch K1 is electrically connected to the output terminal of the controller U1. The control terminal of the single-pole double-throw electronic switch K1 is grounded through the first resistor R1. The fixed contact of the single-pole double-throw electronic switch K1 is electrically connected to the power supply terminal of the image acquisition device U6. The first movable contact of the single-pole double-throw electronic switch K1 is electrically connected to the output terminal of the power module U7. The second movable contact of the single-pole double-throw electronic switch K1 is grounded through the first capacitor C1.
[0050] In this device, one end of the blade of the single-pole double-throw electronic switch K1 is connected to the fixed contact, and the other end of the blade of the single-pole double-throw electronic switch K1 can switch between the first active contact and the second active contact.
[0051] It should be noted that the first resistor R1 is a pull-down resistor, and the first capacitor C1 is a filter capacitor. The single-pole double-throw electronic switch K1 is controlled by the controller U1. In the default state, the fixed contact and the first movable contact are electrically connected. When the signal terminal receives a changing level, the fixed contact and the second movable contact are electrically connected.
[0052] Specifically, upon receiving an initial power-on signal, the fixed contact and the second movable contact are electrically connected, and the image acquisition device U6 is powered on. Upon receiving a reset signal, the fixed contact and the first movable contact are electrically connected, and the image acquisition device U6 is disconnected from the power supply.
[0053] In one possible embodiment of the present invention, the storage module includes a card reader controller U3 and a TF card receiving slot U9, wherein the TF card receiving slot U9 is configured to receive TF cards;
[0054] The output terminal of the card reader controller U3 is electrically connected to the TF card receiving slot U9, the input terminal of the card reader controller U3 is electrically connected to the input terminal of the controller U1, and the signal terminal of the card reader controller U3 is electrically connected to the input terminal of the level detection circuit.
[0055] It should be noted that the TF card reader circuit module communicates with the controller U1 via USB to realize the USB to TF interface function. The LED pin on the card reader controller U3 is the indicator LED output pin of the card reader chip. When data is written to the TF card, the indicator LED pin will output a certain regular high and low level, which is represented by waveform F for ease of explanation later. Different manufacturers' chips will have differences, and in actual application, the appropriate chip should be selected according to the needs.
[0056] In one possible embodiment of the present invention, the level detection circuit includes: a first transistor Q1, a second resistor R2, and a third resistor R3;
[0057] The signal terminal of the card reader controller U3 is electrically connected to the base (b) of the first transistor Q1 through the second resistor R2, the collector (c) of the first transistor Q1 is electrically connected to the input terminal of the controller U1, the e of the first transistor Q1 is grounded, and the collector (c) of the first transistor Q1 is connected to the power supply through the third resistor R3.
[0058] It should be noted that the second resistor R2 is a current-limiting resistor, the third resistor R3 is a pull-up resistor, and the first transistor Q1 is configured to connect the output terminal of the controller U1 and the LED pin of the card reader controller U3. The controller U1 can collect the level signal of the LED pin based on this.
[0059] In one possible embodiment of the present invention, the human body detection module includes: an infrared sensor U2, a second transistor Q2, a fourth resistor R4, and a fifth resistor R5;
[0060] The output terminal of the infrared sensor U2 is electrically connected to the base (b) of the second transistor Q2 through the fifth resistor R5. The base (e) of the second transistor Q2 is grounded. The collector (c) of the second transistor Q2 is electrically connected to the input terminal of the controller U1. The collector (c) of the second transistor Q2 is connected to the power supply through the fourth resistor R4.
[0061] It should be noted that the fourth resistor R4 is a pull-up resistor, and the fifth resistor R5 is a current-limiting resistor.
[0062] The principle of the above embodiment is explained below. When the infrared sensor U2 does not detect the infrared signal generated by human movement, the infrared sensor U2 outputs a low level, and the second transistor Q2 is cut off. At this time, the controller U1 detects a high level through IO3. The controller U1 will consider it as no face recognition request. The controller U1 will not call the IO2 input interface, will not read the status data of IO2, will not perform the judgment of USB interface communication abnormality, and the controller U1 will maintain the current working state.
[0063] When the infrared sensor U2 detects an infrared signal generated by human movement, the infrared sensor U2 outputs a high level, the second transistor Q2 is turned on, and the controller U1's IO3 will detect a low level. The controller U1 considers that there is a face recognition request, calls the IO2 input interface, and reads the IO2 status data within a unit time (T0+N). The controller U1 uses this status data to determine whether the camera is working properly.
[0064] If the image acquisition device U6 is in normal working condition, the controller U1 and the controller U2 can communicate normally. The controller U1 will acquire face data from the camera. After the face algorithm of the controller U1 is processed, the face entry and exit record data DATA is finally stored in the TF card. During the process of writing the face entry and exit record data DATA to the TF card, the LED pin of the card reader controller U3 will output a certain regular high and low level (waveform F). IO2 will detect the change of this high and low level (waveform F) within time (T0+N). The controller U1 considers that the image acquisition device U6 is in normal working condition and maintains the current state. If the image acquisition device U6 is in an abnormal working state, the controller U1 and the image acquisition device U6 cannot communicate normally. The controller U1 will not be able to acquire face data from the camera, and no face entry / exit record data DATA will be written to TF. The LED pin of the card reader controller U3 will remain at a high level. IO2 cannot detect the change in high / low level (waveform F) within time (T0+N). The controller U1 considers the image acquisition device U6 to be in an abnormal working state. The controller U1 will control IO1 to go low, delay for T1, and then pull it high to complete the reset of the image acquisition device U6. Finally, the controller U1 will re-call the relevant drivers and applications to realize the normal operation of the camera and ensure normal face recognition.
[0065] In one possible embodiment of the present invention, it may further include: a display screen U8;
[0066] The display screen U8 is electrically connected to the controller U1.
[0067] It should be noted that the display screen U8 can be a touch screen, but it is not limited to that.
[0068] In one possible embodiment of the present invention, it further includes: a high-speed switch configured between the image acquisition device U6 and the controller U1;
[0069] The control terminal of the high-speed switch is electrically connected to the output terminal of the controller U1.
[0070] It should be noted that the number of high-speed switches can be set to two U4 / U5, which are USB high-speed switches with bandwidth that meets the requirements of USB high-speed communication.
[0071] Based on the face recognition system provided by this invention, the controller U1 detects whether a human body passes by the image acquisition device U6 through the human body detection module. When a human body is detected, the controller U1 acquires the waveform of the signal terminal of the storage module within a preset time period through the level detection circuit. When the detected waveform does not conform to the preset waveform, the controller disconnects the connection between the image acquisition device U6 and the power module U7 by controlling the controlled switch, and re-energizes the device after a preset delay, thereby resetting the image acquisition device U6. This solves the problem that the camera cannot output video data normally under the influence of the external environment or after working for a long time.
[0072] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions that fall within the scope of the present invention are within the scope of protection of the present invention.
Claims
1. A face recognition system, characterized by, The application relates to a human body detection module, an image acquisition device, a power supply module, a controlled switch, a human body detection module, a storage module and a level detection circuit. The power supply module is electrically connected with the power supply end of the image acquisition device through the controlled switch, the control end of the controlled switch is electrically connected with the output end of the controller, the image acquisition device and the human body detection module are electrically connected with the input end of the controller, the storage module is electrically connected with the output end of the controller, the input end of the level detection circuit is electrically connected with the signal end of the storage module, and the output end of the level detection circuit is electrically connected with the input end of the controller. The controller is configured to realize the following steps by executing the computer program stored in the controller: acquiring the human body signal collected by the human body detection module in real time; when it is judged according to the human body signal that a human body passes near the image acquisition device, collecting the waveform of the signal end of the storage module in a preset time period through the level detection circuit; resetting the image acquisition device through the controlled switch according to the waveform. The resetting of the image acquisition device through the controlled switch according to the waveform is specifically:
2. The face recognition system of claim 1, wherein, judging whether the waveform is a preset waveform; if not, generating a low-level signal to the controlled switch, and after a preset delay, generating a high-level signal to the controlled switch, so that the image acquisition device is reset. The controlled switch comprises a single-pole double-throw electronic switch, a first resistor and a first capacitor.
3. The face recognition system of claim 1, wherein, The control end of the single-pole double-throw electronic switch is electrically connected with the output end of the controller, the control end of the single-pole double-throw electronic switch is grounded through the first resistor, the fixed contact of the single-pole double-throw electronic switch is electrically connected with the power supply end of the image acquisition device, the first movable contact of the single-pole double-throw electronic switch is electrically connected with the output end of the power supply module, and the second movable contact of the single-pole double-throw electronic switch is grounded through the first capacitor. One end of the blade of the single-pole double-throw electronic switch is connected with the fixed contact, and the other end of the blade of the single-pole double-throw electronic switch can be switched between the first movable contact and the second movable contact. The storage module comprises a card reader controller and a TF card receiving slot.
4. The face recognition system of claim 1, wherein, The output end of the card reader controller is electrically connected with the TF card receiving slot, the input end of the card reader controller is electrically connected with the input end of the controller, the signal end of the card reader controller is electrically connected with the input end of the level detection circuit, and the TF card receiving slot is used for configuring a TF card. The level detection circuit comprises a first triode, a second resistor and a third resistor.
5. The face recognition system of claim 4, wherein, The signal end of the card reader controller is electrically connected with the b electrode of the first triode through the second resistor, the c electrode of the first triode is electrically connected with the input end of the controller, the e electrode of the first triode is grounded, and the c electrode of the first triode is connected with a power supply through the third resistor. The human body detection module comprises an infrared sensor, a second triode, a fourth resistor and a fifth resistor.
6. The face recognition system of claim 1, wherein, The output end of the infrared sensor is electrically connected with the b electrode of the second triode through the fifth resistor, the e electrode of the second triode is grounded, the c electrode of the second triode is electrically connected with the input end of the controller, and the c electrode of the second triode is connected with the power supply through the fourth resistor.
7. The face recognition system of claim 1, wherein, Further comprising: A display screen; The display screen is electrically connected with the controller.
8. The face recognition system of claim 1, wherein, Further comprising: A high-speed switch arranged between the image acquisition device and the controller; The control end of the high-speed switch is electrically connected with the output end of the controller.
9. The face recognition system of claim 1, wherein, The image acquisition device is a binocular camera.
Citation Information
Patent Citations
Finger vein acquisition and authentication device based on hash algorithm and detection method
CN112507843A
Gate intelligent terminal
CN112598830A