Access control method, device, medium and equipment
By using mobile terminals to control the lighting strategy of LED lights in the access control equipment, obtaining and comparing light information to unlock the access control equipment, the problem of insufficient convenience and security of the existing access control control methods is solved, and high security and convenient access control unlocking is achieved.
Patent Information
- Application Number
- CN202411773938.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-11
AI Technical Summary
The existing access control methods have shortcomings in terms of convenience and security, especially in the case of insufficient light, the mechanical lock is inconvenient to use and low security, while the fingerprint recognition safety factor of the smart password lock is not high and is easy to be cracked.
When a face is detected, the LED light control command is sent to the mobile terminal matching the access control device, so that the LED light is turned on according to the preset light emitting strategy, obtain the target image, extract the light information, determine the target color information, and compare it with the preset color information. If it is consistent, the access control device will be unlocked.
It improves the security and convenience of access control equipment, generates a large number of target color information combinations through different luminous strategies, increases the difficulty of cracking, and realizes unlocking without relying on visible light.
Smart Images

Figure CN119600711A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of door lock control technology, and more particularly to the field of access control technology, and more particularly to an access control method, device, medium and equipment. Background Art
[0002] Most of the current door locks are mechanical locks, which consist of a door handle and a lock body. In low light conditions, especially at night without lighting assistance, inserting the key into the keyhole will cause some inconvenience to the user. In addition, mechanical locks are not secure enough and can be easily opened by criminals using objects such as steel wires. Other more advanced door locks, such as smart password locks, use fingerprint recognition to open the door intelligently, but the security factor of fingerprint recognition is not high. Once the user's fingerprint information is obtained by criminals, the smart password lock is also at risk of being cracked. Summary of the invention
[0003] The embodiments of the present application provide a door access control method, device, medium and equipment. The door access control method provided by the embodiments of the present application is used to solve the problems of low convenience and low security of the current door access control methods.
[0004] The present application provides, on the one hand, a door access control method, which is applied to a door access device, including:
[0005] When a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy;
[0006] Acquire a target image including the plurality of LED lights;
[0007] Extracting light information contained in the target image, and determining target color information corresponding to a target LED light in a lit state in the target image according to the light information;
[0008] Comparing the target color information with the preset color information corresponding to the access control device;
[0009] If the target color information is consistent with the preset color information, the access control device is controlled to be unlocked.
[0010] Accordingly, another aspect of the embodiment of the present application further provides an access control device, which is applied to access control equipment. The access control device includes:
[0011] A detection module, configured to send an LED light control instruction to a mobile terminal matched with the access control device when a face is detected, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy;
[0012] An acquisition module, used for acquiring a target image including the plurality of LED lights;
[0013] An extraction module, used to extract light information contained in the target image, and determine target color information corresponding to a target LED light in a lit state in the target image according to the light information;
[0014] A comparison module, used to compare the target color information with the preset color information corresponding to the access control device;
[0015] A control module is used to control the access control device to unlock if the target color information is consistent with the preset color information.
[0016] Correspondingly, another aspect of the embodiment of the present application further provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the access control method as described above.
[0017] Correspondingly, another aspect of the embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the access control method as described above.
[0018] The embodiment of the present application provides a door access control method, device, medium and equipment. The method sends an LED light control instruction to a mobile terminal matched with the door access device when a face is detected, so that several LED lights on the mobile terminal are turned on according to a preset light-emitting strategy; obtains a target image containing the several LED lights; extracts the light information contained in the target image, and determines the target color information corresponding to the target LED lights in the target image that are in a light-on state according to the light information; compares the target color information with the preset color information corresponding to the door access device; if the target color information is consistent with the preset color information, the door access device is controlled to unlock. Using the door access control method provided by the embodiment of the present application, when door access unlocking is required, the mobile terminal carried by the user is controlled to turn on the LED light according to the light-emitting strategy, and the target image containing the LED light is collected to extract the light information contained in the target image, and then the target color information corresponding to the target LED lights in the light-on state is determined by the light information, and then the target color information is compared with the preset information corresponding to the door access device, so as to determine whether to automatically control the door access device to unlock according to the comparison result. Since different lighting strategies can generate a large number of target color information combinations, the difficulty of cracking the access control device increases, thereby improving the security of the access control device. Compared with traditional mechanical locks, this method is more convenient to unlock. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0020] Figure 1 A flow chart of a door access control method provided in an embodiment of the present application.
[0021] Figure 2 This is a schematic diagram of an information query graph in an embodiment of the present application.
[0022] Figure 3 A schematic diagram of the structure of the access control device provided in an embodiment of the present application.
[0023] Figure 4 Another schematic diagram of the structure of the access control device provided in the embodiment of the present application.
[0024] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0026] The embodiment of the present application provides a door access control method, which can be used to control the mobile terminal carried by the user to turn on the LED light according to the lighting strategy when door access unlocking is required, and collect the target image containing the LED light to extract the light information contained in the target image, and then determine the target color information corresponding to the target LED light in the lighting state through the light information, and then compare the target color information with the preset information corresponding to the door access device, and then determine whether to automatically control the door access device to unlock according to the comparison result. Because different lighting strategies can generate a large number of target color information combinations, the difficulty of cracking the door access device is increased, thereby improving the security of the door access device. Compared with traditional mechanical locks, it is more convenient to unlock using this method.
[0027] The term "and / or" in this application can be a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0028] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or access control device that includes a series of steps or modules is not necessarily limited to the steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or access control devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The named or numbered process steps can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0029] The access control method involved in the embodiments of the present application is mainly applied to electronic devices, which may be access control devices, smart locks, smart phones, tablet computers, laptop computers, desktop computers, smart home appliances and servers, etc., which are not limited here. Optionally, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or an IoT cloud (Internet of Things cloud) that provides the ability to store, process and manage data generated by IoT access control devices, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here.
[0030] For ease of understanding, the specific process in the embodiments of the present application is described below. Figure 1 , Figure 1 A schematic diagram of a flow chart of an embodiment of a door access control method provided in an embodiment of the present application.
[0031] exist Figure 1 In the illustrated embodiment, taking the access control device integrated in the access control equipment as an example, the method may include the following steps:
[0032] S101, when a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device, so that a plurality of LED lights on the mobile terminal are turned on according to a preset lighting strategy.
[0033] It should be explained that the access control device can be a door lock, gate machine or other device with active defense function, which requires identity verification to complete unlocking, and is not limited here. Mobile devices can be mobile phones, tablet computers, smart watches, head-mounted glasses and other portable devices, which are not limited here. However, in order to comply with the access control method proposed in this application, it is necessary to ensure that a light-emitting component, such as an LED lamp, is installed on the mobile terminal. And it can communicate with the access control device to achieve automatic control of the light-emitting component when receiving the LED light control command issued by the access control device.
[0034] In this embodiment, the trigger condition of the LED light control command is set to be when a face is detected. When the access control device detects the features of a face in the current detection area, the LED light control command is automatically issued. If the user who appears in the detection area carries a mobile terminal that has a communication connection relationship with the access control device, such as head-mounted glasses, the mobile terminal will automatically control the LED light to turn on according to the preset light emission strategy after receiving the LED light control command, and use the information carried by the light to perform identity authentication.
[0035] In some embodiments, the lighting strategy may include controlling at least one target LED lamp among the plurality of LED lamps to turn on.
[0036] If the mobile terminal is equipped with five LED lights of different wavelengths, namely 500nm, 600nm, 700nm, 800nm and 900nm, when at least one of the five LED lights is selected and turned on, a variety of different LED light combinations can be obtained:
[0037] When only one LED light is turned on, there are a total of 5 LED light combinations; when two LED lights are turned on, there are a total of 10 LED light combinations; when three LED lights are turned on, there are a total of 10 LED light combinations; when four LED lights are turned on, there are a total of 5 LED light combinations; when five LED lights are turned on, there is a total of 1 LED light combination. By counting the above situations, we can get 5+10+10+5+1=31 LED light combinations. And the number of combinations increases with the increase of LED light types. When one LED light combination can represent one access control password information, multiple different access control password information can be obtained, which greatly increases the difficulty of cracking the access control password.
[0038] In some other embodiments, the lighting strategy may further include controlling at least one target LED lamp among the plurality of LED lamps to repeat the on-off action for a preset number of times, wherein the target LED lamp selected to be turned on in each on-off action is the same or different.
[0039] Since each time an LED light is turned on, it can represent a set of access control password information. Therefore, when at least one target LED light among a plurality of LED lights is controlled to repeat the on-off action for a preset number of times, a corresponding number of multiple sets of access control password information can be obtained according to the number of repetitions, further increasing the combination possibility of the access control password information, thereby increasing the difficulty of cracking the access control password. The target LED lights selected to be turned on in each on-off action can be the same or different. For example, assuming that the mobile terminal is provided with 5 LED lights of different wavelengths, and the number of repeated on-off actions of the 5 LED lights is 5, then 31 5 =28629151 LED light combinations.
[0040] Step 102: Acquire a target image including the plurality of LED lights.
[0041] In this embodiment, the target image refers to the image captured by the camera on the access control device when several LED lights are turned on according to the lighting strategy, which can be one or more images. For example, there are 5 LED lights on the mobile terminal, and LED lights No. 1 and No. 2 are selected to be turned on according to the lighting strategy. At this time, the image containing LED lights No. 1 and No. 2 in the lighting state is the target image.
[0042] Step 103: extract the light information contained in the target image, and determine the target color information corresponding to the target LED light in the target image that is in a lit state according to the light information.
[0043] In this embodiment, the light emitted by different types of LED lights can be recorded in the target image in the form of an image, and the target color information corresponding to the target LED light in the lighting state can be determined according to the light information by extracting the light information in the target image. The target color information is the access control password information referred to in step S101, which is used for identity authentication.
[0044] It should be noted that each type of light information is pre-calibrated with corresponding color information. For example, when the light information exists in the form of wavelength information, the wavelength information of 500nm can be calibrated as blue. When the wavelength information of 500nm is extracted from the light information, it can be judged that the target color information of the target LED light in the current lighting state is blue.
[0045] Step 104: compare the target color information with the preset color information corresponding to the access control device.
[0046] In this embodiment, the preset color information corresponding to the access control device can be set to "red + green", and the target color information is compared with the preset color information corresponding to the access control device. According to the comparison result, it can be determined whether to automatically control the access control device to be unlocked.
[0047] Step 105: If the target color information is consistent with the preset color information, the access control device is controlled to be unlocked.
[0048] In this embodiment, when the comparison result between the target color information and the preset color information is that the two are consistent, the access control device can be automatically controlled to be unlocked.
[0049] In some embodiments, when a face is detected, sending an LED light control instruction to a mobile terminal matched with the access control device includes:
[0050] Detecting whether there is a target object in the detection area of the access control device;
[0051] If the target object is detected, the camera on the access control device is activated and the face recognition function is turned on, an object image containing the target object is obtained through the camera for face recognition, and an LED light control instruction is sent to a mobile terminal matched with the access control device when a face is detected;
[0052] If no face is detected within a preset time period, the face recognition function is exited and the camera is switched to a low power consumption mode.
[0053] In this embodiment, an infrared sensor for detecting a target object (a person or other object) can be installed on the access control device, and the presence of a person or object can be detected without relying on visible light. The infrared sensor can sense infrared radiation from a person or object, and can work even in a completely dark environment. When the target object enters the detection range of the infrared sensor, the brightness of the light within the detection range of the infrared sensor changes because the target object reflects ambient light. This change can be detected by the infrared sensor. Once a change in light brightness is detected, the camera on the access control device is automatically activated and the face recognition function is turned on. The object image containing the target object is obtained through the camera for face recognition, and when a face is detected, an LED light control instruction is sent to a mobile terminal that matches the access control device. If no face is detected within a preset time period (e.g., 10s), the face recognition function is exited, and the camera is switched to low power mode, thereby achieving energy saving.
[0054] In some embodiments, acquiring the target image including the plurality of LED lights comprises:
[0055] Acquire a first target image including the at least one target LED lamp in a lighting state;
[0056] Controlling the at least one target LED light to turn off, and acquiring a second target image after the at least one target LED light is turned off;
[0057] The image acquisition area of the first target image is consistent with that of the second target image.
[0058] In this embodiment, different from S102, the target image refers to an image group consisting of two frames of images, and the image group can be one group or multiple groups. Each image group contains a first target image of at least one target LED lamp, and a second target image after at least one target LED lamp is turned off. In simple terms, the first target image is an image of the target LED lamp turned on according to the lighting strategy, and the second target image is an image of all target LED lamps in the off state. The purpose of collecting the two frames of images is to eliminate the influence of ambient light on the light information extraction by subtracting the two frames of images, and only retain the light emitted by the target LED lamp. It should be noted that in order to accurately eliminate the influence of ambient light, it is necessary to ensure that the image acquisition areas of the two frames of images are consistent, that is, the first target image and the second target image are respectively acquired at the same position but at different time points.
[0059] In one application scenario, when the target LED light is on, the camera exposes the environment, captures the image information at this moment, and generates a frame of image. This frame of image records the light emitted by the target LED light and other light in the environment. When the target LED light is off, the camera obtains another frame of image with the same exposure time and ISO. This frame of image records the light in the environment after the target LED light is off. Each pixel value in the two frames of image collected twice before and after is subtracted to eliminate the influence of ambient light and retain only the light emitted by the target LED light.
[0060] In some embodiments, when the camera is a multi-spectral camera, extracting light information contained in the target image includes:
[0061] Extracting respective central regions from the first target image and the second target image to obtain a first central region and a second central region;
[0062] Performing a pixel-by-pixel subtraction operation on the first central area to remove pixel values of the second central area, thereby obtaining a pixel value difference between the first central area and the second central area;
[0063] The pixel value difference is analyzed using the multispectral camera to extract light information contained in the first target image, wherein the light information indicates wavelength information of different light rays.
[0064] In this embodiment, the camera is a multispectral camera, which can capture light in multiple wavelength ranges from visible light to invisible light. The multispectral camera includes multiple sensors, each corresponding to a specific spectral band. For example, they may include multiple channels such as red, green, blue, and near infrared, so that the multispectral camera can extract the wavelength information in the target image and then determine the target color information of the target LED light.
[0065] In order to reduce the amount of data processing and process and analyze image data more efficiently, respective ROIs (Region of Interest) can be extracted from the first target image and the second target image, respectively. ROI refers to a specific part of an image that contains information that a user or system is particularly interested in. ROI can be a region, object or feature in an image.
[0066] In this embodiment, ROI selects the central area of the first target image and the second target image to obtain the first central area and the second central area; a pixel-by-pixel subtraction operation is performed on the first central area to remove the pixel value of the second central area, thereby obtaining the pixel value difference between the first central area and the second central area. It should be noted that the calculation process of the pixel value difference is essentially to eliminate the influence of ambient light and only retain the light emitted by the target LED lamp. After obtaining the pixel value difference, the pixel value difference can be analyzed using a multispectral camera to extract the light information contained in the first target image, wherein the light information indicates the wavelength information of different light.
[0067] In one application scenario, assuming that the light information extracted after analyzing the pixel value difference using a multispectral camera is "500nm, 600nm, 700nm", the color information of the target LED light can be determined as "blue, red, yellow" based on the information of each wavelength.
[0068] In some embodiments, when the camera is a single-spectrum camera, extracting light information contained in the target image includes:
[0069] Extracting respective central regions from the first target image and the second target image to obtain a first central region and a second central region;
[0070] Calculate first color averages corresponding to different color channels in the first central area;
[0071] Calculate second color averages corresponding to different color channels in the second central area;
[0072] Subtracting the color average values corresponding to the same color channel from the first color average value and the second color average value to obtain color average value differences of each color channel;
[0073] The light information contained in the first target image is extracted according to the color average value difference of each color channel, wherein the light information indicates the strength relationship or proportion relationship of each color channel in the first target image.
[0074] In this embodiment, the camera uses a single-spectrum camera. Since the single-spectrum camera cannot directly determine the wavelength information in the target image, and then quickly determine the target color information of the target LED light, when a single-spectrum camera is selected as the camera of this application, other means are needed to assist in determining the target color information of the target LED light. Specifically, in order to reduce the amount of data processing and process and analyze image data more efficiently, only the ROIs of the first target image and the second target image are selected to extract light information, such as the central area, to obtain the first central area and the second central area; the first color average values corresponding to different color channels (usually including R channel, G channel and B channel) in the first central area are calculated (it should be noted that the number of first color average values is determined by the number of color channels, for example, the color channel includes R channel, G channel and B channel, then the first color average value includes R channel average value, G channel average value and B channel average value); the second color average values corresponding to different color channels (usually including R channel, G channel and B channel) in the second central area are calculated; the first color average value is subtracted from the color average value corresponding to the same color channel in the second color average value to obtain the color average value difference of each color channel. The purpose of this step is also to eliminate the influence of ambient light and only retain the light emitted by the target LED lamp; according to the color average value difference of each color channel, the light information contained in the first target image is extracted, wherein the light information indicates the strength relationship or proportion relationship of each color channel in the first target image.
[0075] In an application scenario, if the mobile terminal is provided with 4 LED lights corresponding to different color information, namely LED light 1, LED light 2, LED light 3, and LED light 4, the corresponding strength relationship or proportion relationship is calibrated in advance for the LED lights with different color information, for example:
[0076] When only LED light No. 1 is on, the average value of R channel / the average value of G channel is ≈1, the average value of B channel / the average value of G channel is ≈10, and the average value of R channel / the average value of B channel is ≈0.1;
[0077] When only LED light No. 2 is on, the average value of R channel / the average value of G channel is ≈0.1, the average value of B channel / the average value of G channel is ≈0.1, and the average value of R channel / the average value of B channel is ≈1;
[0078] When only LED light No. 3 is on, the average value of R channel / the average value of G channel is ≈3, the average value of B channel / the average value of G channel is ≈0.2, and the average value of R channel / the average value of B channel is ≈10;
[0079] When only LED light No. 4 is on, the average value of R channel / the average value of G channel ≈ 1, the average value of B channel / the average value of G channel ≈ 1, and the average value of R channel / the average value of G channel ≈ 1.
[0080] According to the strength relationship or proportion relationship of LED lights with different color information, the target color information corresponding to the target LED light can be inferred. In order to further improve the judgment accuracy of the target color information, an information query map can be formulated, such as Figure 2 As shown, the horizontal axis in the figure represents the wavelength information, and the vertical axis represents the strength relationship or the proportion relationship. By determining the strength relationship or the proportion relationship corresponding to the LED light calibration of the color information, the corresponding wavelength information can be determined by looking up the table, and then the target color information can be determined.
[0081] In some embodiments, in order to further complicate the access control password information without increasing the number of original LED lights, the purpose of adjusting the LED light color information can be achieved by changing the working current of the LED light. For example, when the working current of the LED light is increased, the corresponding color value will deepen.
[0082] In some embodiments, after comparing the target color information with the preset color information corresponding to the access control device, the method further includes:
[0083] If the target color information is inconsistent with the preset color information, a prompt message indicating unlocking failure is issued.
[0084] In this embodiment, when the target color information is inconsistent with the preset color information, it means that criminals may be trying to crack the access control password or the mobile terminal may be abnormal, and a prompt message indicating unlocking failure is issued to the user.
[0085] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0086] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0087] As can be seen from the above, the access control method provided by the embodiment of the present application sends an LED light control instruction to a mobile terminal matched with the access control device when a face is detected, so that several LED lights on the mobile terminal are turned on according to a preset lighting strategy; obtain a target image containing the several LED lights; extract the light information contained in the target image, and determine the target color information corresponding to the target LED light in the target image that is in a lighting state according to the light information; compare the target color information with the preset color information corresponding to the access control device; if the target color information is consistent with the preset color information, control the access control device to unlock. Using the access control method provided by the embodiment of the present application, when access unlocking is required, the mobile terminal carried by the user can be controlled to turn on the LED light according to the lighting strategy, and the target image containing the LED light is collected to extract the light information contained in the target image, and then the target color information corresponding to the target LED light in the lighting state is determined by the light information, and then the target color information is compared with the preset information corresponding to the access control device, and it can be determined whether to automatically control the access control device to unlock according to the comparison result. Since different lighting strategies can generate a large number of target color information combinations, the difficulty of cracking the access control device increases, thereby improving the security of the access control device. Compared with traditional mechanical locks, this method is more convenient to unlock.
[0088] The embodiment of the present application also provides an access control device, which can be integrated into an access control device.
[0089] See also Figure 3 , Figure 3 A schematic diagram of the structure of the access control device provided in the embodiment of the present application. The access control device 30 may include:
[0090] The detection module 31 is used to send an LED light control instruction to a mobile terminal matched with the access control device when a face is detected, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy;
[0091] An acquisition module 32, used for acquiring a target image including the plurality of LED lights;
[0092] An extraction module 33 is used to extract light information contained in the target image, and determine target color information corresponding to a target LED light in a lit state in the target image according to the light information;
[0093] A comparison module 34, used to compare the target color information with the preset color information corresponding to the access control device;
[0094] The control module 35 is used to control the access control device to unlock if the target color information is consistent with the preset color information.
[0095] In some embodiments, the detection module 31 is used to detect whether there is a target object in the detection area of the access control device; if the target object is detected, the camera on the access control device is activated and the face recognition function is turned on, and an object image containing the target object is obtained through the camera for face recognition, and when a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device; if no face is detected within a preset time period, the face recognition function is exited and the camera is switched to low power consumption mode.
[0096] In some embodiments, the acquisition module 32 is used to acquire a first target image including the at least one target LED light in the lighting state; control the at least one target LED light to turn off, and acquire a second target image after the at least one target LED light is turned off; wherein the image acquisition area of the first target image is consistent with that of the second target image.
[0097] In some embodiments, the extraction module 33 is used to extract the respective central areas from the first target image and the second target image to obtain a first central area and a second central area; perform a pixel-by-pixel subtraction operation on the first central area to remove the pixel value of the second central area, thereby obtaining a pixel value difference between the first central area and the second central area; and use the multispectral camera to analyze the pixel value difference to extract the light information contained in the first target image, wherein the light information indicates the wavelength information of different light.
[0098] In some embodiments, the extraction module 33 is used to extract the respective central areas from the first target image and the second target image to obtain a first central area and a second central area; calculate the first color average value corresponding to different color channels in the first central area; calculate the second color average value corresponding to different color channels in the second central area; subtract the first color average value from the color average value corresponding to the same color channel in the second color average value to obtain the color average value difference of each color channel; extract the light information contained in the first target image based on the color average value difference of each color channel, wherein the light information indicates the strength relationship or proportion relationship of each color channel in the first target image.
[0099] In some embodiments, the device further comprises a prompt module, configured to issue a prompt message indicating unlocking failure if the target color information is inconsistent with the preset color information.
[0100] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0101] As can be seen from the above, the access control device 30 provided in the embodiment of the present application, wherein the detection module 31 is used to send an LED light control instruction to a mobile terminal matched with the access control device when a human face is detected, so that a number of LED lights on the mobile terminal are turned on according to a preset lighting strategy; the acquisition module 32 is used to acquire a target image containing the number of LED lights; the extraction module 33 is used to extract the light information contained in the target image, and determine the target color information corresponding to the target LED light in the target image that is in a lit state based on the light information; the comparison module 34 is used to compare the target color information with the preset color information corresponding to the access control device; the control module 35 is used to control the access control device to unlock if the target color information is consistent with the preset color information.
[0102] See also Figure 4 , Figure 4 Another structural diagram of the access control device provided in the embodiment of the present application, the access control device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a detection module 31, an acquisition module 32, an extraction module 33, a comparison module 34 and a control module 35. For example, the structure and connection relationship of the above components may be as follows:
[0103] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
[0104] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.
[0105] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:
[0106] A detection instruction, used to send an LED light control instruction to a mobile terminal matched with the access control device when a face is detected, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy;
[0107] An acquisition instruction is used to acquire a target image including the plurality of LED lights;
[0108] An extraction instruction is used to extract light information contained in the target image, and determine target color information corresponding to a target LED light in a lit state in the target image according to the light information;
[0109] A comparison instruction, used to compare the target color information with the preset color information corresponding to the access control device;
[0110] A control instruction is used to control the access control device to unlock if the target color information is consistent with the preset color information.
[0111] In some embodiments, the detection instruction is used to detect whether there is a target object in the detection area of the access control device; if the target object is detected, the camera on the access control device is activated and the face recognition function is turned on, and an object image containing the target object is obtained through the camera for face recognition, and when a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device; if no face is detected within a preset time period, the face recognition function is exited and the camera is switched to low power consumption mode.
[0112] In some embodiments, the acquisition instruction is used to acquire a first target image including the at least one target LED light in the lighting state; control the at least one target LED light to turn off, and acquire a second target image after the at least one target LED light is turned off; wherein the image acquisition area of the first target image is consistent with that of the second target image.
[0113] In some embodiments, the extraction instruction is used to extract the respective central areas from the first target image and the second target image to obtain a first central area and a second central area; perform a pixel-by-pixel subtraction operation on the first central area to remove the pixel value of the second central area, thereby obtaining a pixel value difference between the first central area and the second central area; and use the multispectral camera to analyze the pixel value difference to extract light information contained in the first target image, wherein the light information indicates wavelength information of different light.
[0114] In some embodiments, the extraction instruction is used to extract the respective central areas from the first target image and the second target image to obtain a first central area and a second central area; calculate the first color average corresponding to different color channels in the first central area; calculate the second color average corresponding to different color channels in the second central area; subtract the first color average from the color average corresponding to the same color channel in the second color average to obtain the color average difference of each color channel; extract the light information contained in the first target image based on the color average difference of each color channel, wherein the light information indicates the strength relationship or proportion relationship of each color channel in the first target image.
[0115] In some embodiments, the program further includes a prompt instruction for issuing a prompt message indicating unlocking failure if the target color information is inconsistent with the preset color information.
[0116] The present application also provides an electronic device. Figure 5 , Figure 5 The electronic device 1200 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be used to implement the access control method provided in the above embodiment. The electronic device 1200 can be an access control device, a smart phone, or a tablet computer.
[0117] like Figure 5As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 5 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0118] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other access control devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other access control devices through a wireless network.
[0119] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the access control method in the above embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected to perform access control according to the current scene of the electronic device, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that users can sense incoming calls, thereby improving the intelligence of the electronic device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0120] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input access control devices 132. The touch-sensitive surface 131, also known as a touch display screen or touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input access control devices 132. Specifically, the other input access control devices 132 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0121] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 5 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.
[0122] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.
[0123] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is processed by the output processor 180, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.
[0124] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 5 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.
[0125] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.
[0126] The electronic device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0127] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:
[0128] A detection instruction, used to send an LED light control instruction to a mobile terminal matched with the access control device when a face is detected, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy;
[0129] An acquisition instruction is used to acquire a target image including the plurality of LED lights;
[0130] An extraction instruction is used to extract light information contained in the target image, and determine target color information corresponding to a target LED light in a lit state in the target image according to the light information;
[0131] A comparison instruction, used to compare the target color information with the preset color information corresponding to the access control device;
[0132] A control instruction is used to control the access control device to unlock if the target color information is consistent with the preset color information.
[0133] In some embodiments, the detection instruction is used to detect whether there is a target object in the detection area of the access control device; if the target object is detected, the camera on the access control device is activated and the face recognition function is turned on, and an object image containing the target object is obtained through the camera for face recognition, and when a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device; if no face is detected within a preset time period, the face recognition function is exited and the camera is switched to low power consumption mode.
[0134] In some embodiments, the acquisition instruction is used to acquire a first target image including the at least one target LED light in the lighting state; control the at least one target LED light to turn off, and acquire a second target image after the at least one target LED light is turned off; wherein the image acquisition area of the first target image is consistent with that of the second target image.
[0135] In some embodiments, the extraction instruction is used to extract the respective central areas from the first target image and the second target image to obtain a first central area and a second central area; perform a pixel-by-pixel subtraction operation on the first central area to remove the pixel value of the second central area, thereby obtaining a pixel value difference between the first central area and the second central area; and use the multispectral camera to analyze the pixel value difference to extract light information contained in the first target image, wherein the light information indicates wavelength information of different light.
[0136] In some embodiments, the extraction instruction is used to extract the respective central areas from the first target image and the second target image to obtain a first central area and a second central area; calculate the first color average corresponding to different color channels in the first central area; calculate the second color average corresponding to different color channels in the second central area; subtract the first color average from the color average corresponding to the same color channel in the second color average to obtain the color average difference of each color channel; extract the light information contained in the first target image based on the color average difference of each color channel, wherein the light information indicates the strength relationship or proportion relationship of each color channel in the first target image.
[0137] In some embodiments, the program further includes a prompt instruction for issuing a prompt message indicating unlocking failure if the target color information is inconsistent with the preset color information.
[0138] The embodiment of the present application also provides an electronic device, which may be a smart phone, a door access control device, a computer, or other device.
[0139] As can be seen from the above, the embodiment of the present application provides an electronic device 1200, and the electronic device 1200 performs the following steps:
[0140] When a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy;
[0141] Acquire a target image including the plurality of LED lights;
[0142] Extracting light information contained in the target image, and determining target color information corresponding to a target LED light in a lit state in the target image according to the light information;
[0143] Comparing the target color information with the preset color information corresponding to the access control device;
[0144] If the target color information is consistent with the preset color information, the access control device is controlled to be unlocked.
[0145] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the access control method described in any one of the above embodiments.
[0146] It should be noted that, for the access control method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the access control method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the access control method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0147] For the access control device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0148] The access control method, device, medium and equipment provided by the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A door access control method, applied to a door access device, characterized in that: include: When a face is detected, an LED light control instruction is sent to a mobile terminal matched with the access control device, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy; Acquire a target image including the plurality of LED lights; Extracting light information contained in the target image, and determining target color information corresponding to a target LED light in a lit state in the target image according to the light information; Comparing the target color information with the preset color information corresponding to the access control device; If the target color information is consistent with the preset color information, the access control device is controlled to be unlocked.
2. The access control method according to claim 1, characterized in that: When a face is detected, sending an LED light control instruction to a mobile terminal matched with the access control device includes: Detecting whether there is a target object in the detection area of the access control device; If the target object is detected, the camera on the access control device is activated and the face recognition function is turned on, an object image containing the target object is obtained through the camera for face recognition, and an LED light control instruction is sent to a mobile terminal matched with the access control device when a face is detected; If no face is detected within a preset time period, the face recognition function is exited and the camera is switched to a low power consumption mode.
3. The access control method according to claim 2, characterized in that: The luminescence strategy includes: Controlling at least one target LED lamp among the plurality of LED lamps to turn on; or At least one target LED lamp among the plurality of LED lamps is controlled to repeat the on-off action for a preset number of times, wherein the target LED lamp selected to be turned on in each on-off action is the same or different.
4. The access control method according to claim 3, characterized in that: The acquiring of the target image including the plurality of LED lights comprises: Acquire a first target image including the at least one target LED lamp in a lighting state; Controlling the at least one target LED light to turn off, and acquiring a second target image after the at least one target LED light is turned off; The image acquisition area of the first target image is consistent with that of the second target image.
5. The access control method according to claim 4, characterized in that: When the camera is a multi-spectral camera, extracting light information contained in the target image includes: Extracting respective central regions from the first target image and the second target image to obtain a first central region and a second central region; Performing a pixel-by-pixel subtraction operation on the first central area to remove pixel values of the second central area, thereby obtaining a pixel value difference between the first central area and the second central area; The pixel value difference is analyzed using the multispectral camera to extract light information contained in the first target image, wherein the light information indicates wavelength information of different light rays.
6. The access control method according to claim 4, characterized in that: When the camera is a single-spectrum camera, extracting light information contained in the target image includes: Extracting respective central regions from the first target image and the second target image to obtain a first central region and a second central region; Calculate first color averages corresponding to different color channels in the first central area; Calculate second color averages corresponding to different color channels in the second central area; Subtracting the color average values corresponding to the same color channel from the first color average value and the second color average value to obtain color average value differences of each color channel; The light information contained in the first target image is extracted according to the color average value difference of each color channel, wherein the light information indicates the strength relationship or proportion relationship of each color channel in the first target image.
7. The access control method according to claim 1, characterized in that: After comparing the target color information with the preset color information corresponding to the access control device, the method further includes: If the target color information is inconsistent with the preset color information, a prompt message indicating unlocking failure is issued.
8. An access control device, applied to access control equipment, characterized in that: The access control device comprises: A detection module, configured to send an LED light control instruction to a mobile terminal matched with the access control device when a face is detected, so that a plurality of LED lights on the mobile terminal are turned on according to a preset light emission strategy; An acquisition module, used for acquiring a target image including the plurality of LED lights; An extraction module, used to extract light information contained in the target image, and determine target color information corresponding to a target LED light in a lit state in the target image according to the light information; A comparison module, used to compare the target color information with the preset color information corresponding to the access control device; A control module is used to control the access control device to unlock if the target color information is consistent with the preset color information.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the access control method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the access control method according to any one of claims 1 to 7.