Access control system control method and device, and storage medium

By adjusting the angle of the facial recognition access control system's camera to accommodate different installation heights, the problem of poor recognition performance was solved, user experience and installation flexibility were improved, and the need for re-drilling holes was avoided.

CN117315831BActive Publication Date: 2026-04-17ZHEJIANG UNIVIEW TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG UNIVIEW TECH CO LTD
Filing Date
2022-06-20
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

When existing facial recognition access control systems are installed in an unreasonable location, the recognition effect is poor, which affects the user experience and may require re-drilling holes for adjustment, which damages the aesthetics of the wall.

Method used

By determining the height of the center of the access control system's camera above the ground and adjusting the camera angle according to the height above the ground and the slope height, the preset minimum and maximum recognition heights are located within the camera's field of view, thus achieving automatic adjustment.

Benefits of technology

It improves the access control system's recognition capabilities and installation flexibility, enhances the user experience, avoids the need for re-drilling holes, and maintains the aesthetics of the wall.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117315831B_ABST
    Figure CN117315831B_ABST
Patent Text Reader

Abstract

The application discloses a door access system control method and device and a storage medium, relates to the technical field of door access, and discloses a door access system control method, which comprises the following steps: determining the height of the lens center of the door access system from the ground; and when the height from the ground is outside the preset working height range of the door access system, the angle of the lens is adjusted according to the height from the ground, so that the preset minimum height and the preset maximum height recognized by the door access system at a preset recognition distance are located within the field angle of the lens. The door access system control method can automatically adjust the lens angle according to the installation height, improve the recognition capability of the door access system, improve the installation flexibility of the door access system, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to access control technology, and more particularly to an access control system control method, device, and storage medium. Background Technology

[0002] Currently, with the upgrading of smart communities, some communities are requiring the addition of access control systems. The current installation method for facial recognition access control systems is generally wall-mounted. Because facial recognition access control requires wiring and openings (power supply, network signal, etc.), if the wiring and opening positions are not properly reserved in the early stage of construction, resulting in the access control system being installed too high or too low, it will cause recognition difficulties for people who are too short or too tall, leading to a poor user experience. If the installation position is adjusted later, new openings may be needed, damaging the original wall surface and affecting its aesthetics. Summary of the Invention

[0003] This application provides an access control system control method, device, and storage medium, which can improve the recognition capability of the access control system.

[0004] This application provides an access control system control method, including:

[0005] Determine the height of the center of the camera in the access control system above the ground;

[0006] When the ground clearance is outside the preset working height range of the access control system, the angle of the lens is adjusted according to the ground clearance so that the preset minimum height and preset maximum height recognized by the access control system at the preset recognition distance are within the field of view of the lens.

[0007] In an exemplary embodiment, the point where the center of the lens intersects the ground in the vertical direction is called the first intersection point, and the position on the ground on the front side of the lens that is a preset recognition distance from the first intersection point in the horizontal direction is called the recognition position; the distance between the recognition position and the first intersection point in the vertical direction is called the slope height.

[0008] The step of adjusting the angle of the lens according to the ground clearance includes: adjusting the angle of the lens according to the ground clearance and the slope height.

[0009] In one exemplary embodiment, the preset working height range includes a first height to a second height; and the first height is less than the second height.

[0010] The step of adjusting the angle of the lens according to the ground clearance and slope height includes:

[0011] When the ground clearance is greater than the sum of the second height and the slope height, and the identification position is located near the lens at the first intersection point, the lens angle is adjusted so that the angle between the vertical field of view of the lens near the ground boundary and the vertical direction is arctan(S / (H-L1+L0-Hp)), where S is the preset identification distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can identify at the initial lens angle and the preset identification distance, L0 is the preset height of the human head, and Hp is the slope height, which is a known value or S*tanθ1, where θ1 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

[0012] In one exemplary embodiment, the preset working height range includes a first height to a second height; and the first height is less than the second height.

[0013] Adjusting the angle of the lens based on the ground clearance and slope height includes:

[0014] When the ground clearance is greater than the difference between the second height and the slope height, and the identification position is located on the side away from the lens from the first intersection point, the angle of the lens is adjusted so that the angle between the vertical field of view of the lens near the ground boundary and the vertical direction is arctan(S / (H-L1+L0+Hp)), where S is the preset identification distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can identify at the initial position of the lens and the preset identification distance, L0 is the preset height of the human head, and Hp is the slope height, which is a known value or S*tanθ2, where θ2 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

[0015] In one exemplary embodiment, the preset working height range includes a first height to a second height; and the first height is less than the second height.

[0016] Adjusting the angle of the lens based on the ground clearance and slope height includes:

[0017] When the ground clearance is less than the sum of the first height and the slope height, and the identification position is located near the lens at the first intersection point, the lens angle is adjusted so that the angle between the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2+Hp-H)), where S is the preset identification distance of the access control system, H is the ground clearance, L2 is the preset maximum height that the access control system can identify at the initial position of the lens and the preset identification distance; Hp is the slope height, which is a known value or S*tanθ1, and θ1 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

[0018] In one exemplary embodiment, the preset working height range includes a first height to a second height; and the first height is less than the second height.

[0019] Adjusting the angle of the lens based on the ground clearance and slope height includes:

[0020] When the ground clearance is less than the difference between the first height and the slope height, and the identification position is located on the side away from the lens from the first intersection point, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2-Hp-H)), where S is the preset identification distance of the access control system, H is the ground clearance, L2 is the preset maximum height that the access control system can identify at the initial position of the lens and the preset identification distance; Hp is the slope height, which is a known value or S*tanθ2, and θ2 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

[0021] In one exemplary embodiment, the preset working height range includes a first height to a second height; and the first height is less than the second height.

[0022] The step of adjusting the angle of the lens according to the ground clearance includes:

[0023] When the ground clearance is greater than the second height, and the ground on the front side of the lens is horizontal, the angle of the lens is adjusted so that the angle between the edge of the vertical field of view of the lens near the ground and the vertical direction is arctan(S / (H-L1+L0)), where S is the preset recognition distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can recognize at the preset recognition distance with the lens angle at the initial position, and L0 is the preset height of the human head.

[0024] When the height above the ground is less than the first height, and the ground on the front side of the lens is horizontal, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2-H)), where S is the preset recognition distance of the access control system, H is the height above the ground, and L2 is the preset maximum height that the access control system can recognize at the initial position of the lens and at the preset recognition distance.

[0025] In one exemplary embodiment, the method further includes detecting that the center of the lens of the access control system is less than a first preset height; or, when it is greater than a second preset height, indicating an abnormal installation height, wherein the preset working height range includes the first height to the second height; and the first height is less than the second height, the first preset height is less than the first height; and the second preset height is greater than the second height.

[0026] This disclosure provides an access control system control device, including a memory, a processor, and a first distance sensor electrically connected to the processor. The processor can obtain the corresponding ground clearance through the first distance sensor. The memory stores a program, which, when read and executed by the processor, implements the access control system control method described in any of the above embodiments.

[0027] This disclosure provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the access control system control method described in any of the above embodiments.

[0028] Compared with related technologies, the access control system control method of this application embodiment can automatically adjust the lens angle according to the installation height, improve the recognition capability of the access control system, improve the installation flexibility of the access control system, and improve the user experience.

[0029] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the solutions described in the description and the accompanying drawings. Attached Figure Description

[0030] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.

[0031] Figure 1A This is a schematic diagram of the first installation method for an access control system in a technical solution;

[0032] Figure 1B This is a schematic diagram of the second installation method for the access control system in a technical solution;

[0033] Figure 2 This is a flowchart of the access control system control method according to an embodiment of this application;

[0034] Figure 3 This is a schematic diagram of the installation of the access control system according to an embodiment of this application;

[0035] Figure 4 This is a schematic diagram of the first case of lens adjustment angle in the access control system control method of this application embodiment;

[0036] Figure 5 This is a schematic diagram illustrating the second case of lens adjustment angle in the access control system control method of this application embodiment;

[0037] Figure 6 This is a schematic diagram illustrating the third case of lens adjustment angle in the access control system control method of this application embodiment;

[0038] Figure 7 This is a schematic diagram illustrating the fourth case of lens adjustment angle in the access control system control method of this application embodiment;

[0039] Figure 8 This is a schematic diagram of the fifth case of lens adjustment angle in the access control system control method of this application embodiment;

[0040] Figure 9 This is a schematic diagram of the sixth case of lens adjustment angle in the access control system control method of this application embodiment;

[0041] Figure 10 This is a flowchart illustrating the access control system control method according to an embodiment of this application. Detailed Implementation

[0042] This application describes several embodiments, but these descriptions are exemplary and not restrictive, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.

[0043] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive scheme as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive schemes to form another unique inventive scheme as defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this application may be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.

[0044] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that it does not depend on such a specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims concerning the method and / or process should not be limited to the steps performed in the written order, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.

[0045] Access control systems are typically installed on the side wall of an object relatively perpendicular to the ground, such as a wall or metal pole. These systems generally use a lens to capture facial images for subsequent operations. This lens can be a fixed-focus lens or a zoom lens. With a fixed-focus lens, the person being identified cannot be too far from the lens, nor too close. Generally, the recognition effect is better when the person being identified is within a preset horizontal distance from the access control system.

[0046] like Figure 1A As shown, when the access control system 1 is wall-mounted, the distance from the center N of the lens to the ground is H = H2 + H1. Here, H1 represents the distance from the bottom of the access control system to the ground L; H2 is the distance from the center N of the lens to the bottom of access control system 1. In this case, if the access control system 1 is installed too high, and the person being identified is too short, facial information may not be fully recognized. The person needs to move away from the access control system 1 or jump upwards to attempt facial recognition. If recognition still fails, the door cannot be opened.

[0047] like Figure 1BAs shown, conversely, when the person being identified is too tall, facial information may not be fully recognized. The person being identified needs to move away from the access control system or lower their head to try to recognize the face. If the face is still not recognized, the door cannot be opened.

[0048] In this embodiment of the disclosure, the lens angle is adjusted when the access control system is installed at too high or too low.

[0049] like Figure 2 As shown in the figure, this application provides an access control system control method, including:

[0050] 100: Determine the ground clearance H of the center of lens 2 in access control system 1;

[0051] 101: When the height H above the ground is at the preset working height H of the access control system 1 预 When outside the range, the angle of lens 2 is adjusted according to the height H above the ground so that the preset minimum height and preset maximum height recognized by the access control system 1 at the preset recognition distance S are within the field of view of the lens.

[0052] In some other exemplary embodiments, if the wall or pole on which the access control system is installed is relatively tilted on the ground, the relative tilt angle of the wall or pole must also be considered when adjusting the angle of the lens 2. That is, step 101 further includes: adjusting the angle of the lens 2 according to the height H above the ground and the relative tilt angle when the access control system is installed.

[0053] like Figure 3 As shown, the access control system 1 in this embodiment is wall-mounted and fixedly installed. The access control system 1 is equipped with a lens 2 for capturing facial images. The height H of the center line N of the lens 2 from the ground D is defined as the aforementioned ground clearance. The ground clearance H can be determined by the distance H1 from the bottom of the access control system 1 to the ground D and the distance H2 from the center of the lens 2 to the bottom of the access control system 1. The specific calculation method is as follows:

[0054] H = H1 + H2

[0055] Since the distance from the center of lens 2 to the bottom of access control system 1 is a fixed value, while the actual distance from the center of lens 2 to the bottom of access control system 1 is determined by the actual installation and is therefore variable, it is necessary to measure the actual distance H2 from the bottom of access control system 1 to the ground D. In this embodiment, the distance H2 from the bottom of access control system 1 to the ground D can be determined by setting a first distance sensor 3 at the bottom of access control system 1. However, this embodiment is not limited to this; the height H above the ground can be input by the user into the access control system after installation.

[0056] The working height H is preset when the access control system 1 leaves the factory. 预 The range includes the first height X1 to the second height X2, X1 <X2,H预 The range is X1 to X2. The access control system has a preset recognition distance S, and the corresponding height requirement for personnel at the preset recognition distance S is L1 to L2.

[0057] First, determine whether the ground clearance H of access control system 1 is within the preset working height H. 预 Within the specified range, the specific method for determination is as follows:

[0058] Based on the feedback from the distance sensor 3, the actual ground clearance H of the access control system 1 is determined. Then, it is determined whether the ground clearance H is within the pre-defined range X1 to X2, i.e., whether X1≤H≤X2 is satisfied. If it is within this range, the preset recognition distance S corresponds to the height requirement of the person as L1 to L2. The field of view of the lens 2 can cover this range, and recognition can be performed without adjusting the angle of the lens 2.

[0059] Conversely, when it is determined that the height H above the ground of access control system 1 is not at the preset working height H... 预 Within the specified range, the angle of lens 2 is adjusted. That is, as described in operation step 101, "when the ground height H is within the preset working height H of the access control system 1..." 预 When outside the range, adjust the angle of lens 2 according to the height H above the ground.

[0060] For example, suppose the preset recognition distance S of access control system 1 is 1 meter, and the height requirement for personnel at the preset recognition distance S is 1.2 meters to 2 meters, i.e., L1 = 1.2 meters and L2 = 2 meters; considering the length of a person's head L0 as 0.2 meters, i.e., L0 = 0.2 meters. This is only an example, and the embodiments disclosed herein are not limited to this; S, L1, L2, and L0 can be other values. If the height H above the ground is within the preset working height H... 预 Within the specified range, the preset recognition distance S is 1 meter, corresponding to a height requirement of 1.2 meters to 2 meters, and the field of view of lens 2 can cover it. If outside this range, the preset recognition distance S is 1 meter, corresponding to a height requirement of 1.2 meters to 2 meters, and the field of view may only partially cover the area. In some cases, it may not be able to recognize the object properly, which requires rotating lens 2 to resolve.

[0061] The specific adjustment angle of lens 2 depends on three factors: ① the actual installation height of access control system 1, i.e., the height H above the ground; ② the preset recognition distance S of access control system 1; ③ the height requirement of the personnel at the preset recognition distance S.

[0062] In an exemplary embodiment, the point where the center of the lens intersects the ground in the vertical direction is called the first intersection point E, and the position on the ground on the front side of the lens 2 at a distance of a preset recognition distance from the first intersection point E in the horizontal direction is called the recognition position U; the vertical distance between the recognition position U and the first intersection point E is called the slope height Hp.

[0063] The step of adjusting the angle of the lens according to the ground clearance includes: adjusting the angle of the lens according to the ground clearance H and the slope height Hp.

[0064] The slope height Hp is 0, for example, when the ground is horizontal (but not limited to this; it can be a non-horizontal surface, but the vertical distance between the identification position U and the first intersection point E is 0). Figure 4 , Figure 5 As shown, when the ground on the front side of lens 2 (where the object to be identified is located on the front side of lens 2) is level, there are two situations. The first situation is that the installation height H of access control system 1 is greater than X2, that is, access control system 1 is installed too high, and the 1.2-meter limit in the above example may not be covered. The second situation is that the installation height H of access control system 1 is less than X1, that is, access control system 1 is installed too low, and the 2-meter limit in the above example may not be covered.

[0065] like Figure 4 As shown, in the first case, the "adjusting the angle of lens 2 according to the ground height H" described in operation 101 includes: when the ground height H is greater than the second height X2, adjusting the angle of lens 2 so that the angle β1 between the ground-near boundary B of the vertical field of view of lens 2 and the vertical direction satisfies the following calculation formula:

[0066] β1 = arctan(S / (H-L1+L0)).

[0067] Where S is the preset recognition distance of access control system 1; H is the height above the ground; L1 is the preset minimum height that access control system 1 can recognize at the initial position and at the preset recognition distance S; L0 is the preset height of the human head. H-L1+L0 is obtained by transforming H-(L1-L0), and L1-L0 is the distance below the head obtained by removing the height of the human head.

[0068] For example, assuming that the preset recognition distance S of the access control system 1 is 1 meter, the minimum height L1 of a person at the preset recognition distance S is 1.2 meters, and the length of a person's head L0 is 0.2 meters, then the distance below the head is 1 meter.

[0069] according to Figure 4 As shown, tanβ1=MK / NK=S / (H-(L1-L0))=1 / (H-1.2+0.2), substituting the value of the ground clearance H, we can obtain the value of β1; then, by comparing it with the system's preset angle, we can determine the rotation angle information. The ground clearance H can be determined using the aforementioned method, which will not be elaborated here.

[0070] like Figure 5As shown, in the second case, the "adjusting the angle of lens 2 according to the ground height H" described in operation 101 includes: adjusting the angle of lens 2 so that the angle β2 between the boundary C of the vertical field of view of lens 2 away from the ground and the vertical direction satisfies the following calculation formula:

[0071] β2=arctan(S / (L2-H)).

[0072] like Figure 5 As shown, S is the preset recognition distance of the access control system; H is the height above the ground; L2 is the preset maximum height that the access control system 1 can recognize at the preset recognition distance S with the lens angle at the initial position.

[0073] For example, suppose the preset recognition distance S of the access control system 1 is 1 meter, and the height requirement of the person at the preset recognition distance S is 1.2 meters to 2 meters, that is, L2 = 2. The length of the person's head is not considered here.

[0074] according to Figure 5 As shown, by applying the above formula, we obtain: tanβ2=1 / (2-H). Substituting the value of the ground clearance H, we can obtain the value of β2. Then, by comparing it with the system's preset angle (i.e., the field of view of the lens at the initial angle), we can determine the rotation angle information. The ground clearance H can be determined using the aforementioned method, which will not be elaborated here.

[0075] When the slope height Hp is not 0, there are two possibilities:

[0076] The identification position U is located on the side of the first intersection point E closer to the lens 2, that is, the vertical distance between the identification position U and the center of the lens is less than the vertical distance between the first intersection point E and the center of the lens.

[0077] The identification position U is located on the side of the first intersection point E away from the lens 2; the vertical distance between the identification position U and the center of the lens is greater than the vertical distance between the first intersection point E and the center of the lens.

[0078] At this point, the area between the identification location U and the first intersection point E can be a slope, a stepped surface, or an irregular surface, etc.

[0079] In an exemplary embodiment, adjusting the angle of the lens according to the ground clearance H and the slope height Hp includes:

[0080] When the ground clearance H is greater than the sum of the second height L2 and the slope height Hp, and the identification position U is located at the first intersection point E near the lens, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens near the ground and the vertical direction is arctan(S / (H-L1+L0-Hp)), where S is the preset identification distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can identify at the initial position of the lens and the preset identification distance, L0 is the preset height of the human head, and Hp is the slope height, which is a known value or S*tanθ1, where θ1 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction (at this time, the identification position U is located at the first intersection point E near the lens 2).

[0081] In an exemplary embodiment, adjusting the angle of the lens according to the ground clearance H and the slope height Hp includes:

[0082] When the ground clearance H is greater than the difference between the second height and the slope height, and the identification position U is located on the side of the first intersection point E away from the lens 2, the angle of the lens 2 is adjusted so that the angle between the boundary of the vertical field of view of the lens 2 near the ground and the vertical direction is arctan(S / (H-L1+L0+Hp)), where Hp is the slope height, which is a known value (which can be measured on site) or S*tanθ2, and θ2 is the angle between the line connecting the identification position U and the first intersection point E and the horizontal direction (at this time, the identification position U is located on the side of the first intersection point E away from the lens 2).

[0083] In an exemplary embodiment, adjusting the angle of the lens according to the ground clearance H and the slope height Hp includes:

[0084] When the ground clearance H is less than the sum of the first height L1 and the slope height Hp, and the identification position U is located at the first intersection point E near the lens 2, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2+Hp-H)), where Hp is the slope height, which is a known value or S*tanθ1.

[0085] In an exemplary embodiment, adjusting the angle of the lens according to the ground clearance and slope height includes:

[0086] When the ground clearance is less than the difference between the first height and the slope height, and the identification position is located on the side away from the lens from the first intersection point, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2-Hp-H)), where Hp is the slope height, which is a known value or S*tanθ2.

[0087] The following section uses sloping ground as an example to explain the solutions for slopes with non-zero heights.

[0088] like Figure 6 , Figure 7 As shown, assuming the ground on the front side of lens 2 is a sloping surface, and this sloping surface is inclined towards the side where lens 2 is located, then there are two scenarios: The third scenario is that the height of access control system 1 from the ground is less than the sum of the first height X1 and the first slope height Hx, meaning access control system 1 is installed too low. The fourth scenario is that the height H of access control system 1 from the ground is greater than the sum of the second height X2 and the first slope height Hx, meaning access control system 1 is installed too high.

[0089] like Figure 6 As shown, in the third case, the "adjusting the angle of the lens 2 according to the ground clearance H" in operation 101 includes: adjusting the angle of the lens 2 so that the angle β3 between the boundary C of the vertical field of view of the lens 2 away from the ground and the vertical direction satisfies the following formula:

[0090] β3=arctan(S / (L2+S*tanθ1-H))

[0091] Wherein, the height Hx of the first slope is S*tanθ1; S is the preset recognition distance of the access control system 1; H is the height above the ground; L2 is the preset maximum height that the access control system 1 can recognize at the initial position of the lens and at the preset recognition distance S; θ1 is the angle between the slope and the horizontal direction.

[0092] Where θ1 can be a pre-input known value, obtainable during on-site construction. Alternatively, a distance sensor can be added to the bottom of the access control system 1: a second distance sensor 4 (e.g., Figure 3 (As shown), then θ1 is determined as follows:

[0093] θ1=90°-arctan((H3*sinα) / (H1-H3*cosα))

[0094] Wherein, H1 is the first vertical distance from the ground of the first position P measured by the first distance sensor 3, H3 is the distance between the first position P and the second position R measured by the second distance sensor 4, wherein the included angle α is the installation angle between the first distance sensor 3 and the second distance sensor 4, the included angle α is the angle between the line connecting the first position P and the second position R and the vertical direction, and the second position P is located on the slope of the front side of the lens 2.

[0095] Two distance sensors 3 and 4 are added to the bottom of the access control system 1. The first distance sensor 3 provides feedback on the installation height H1, and the second distance sensor 4 provides feedback on the distance to the ground along a direction that makes an angle α with the vertical direction. Figure 6 The distance PR is shown; the installation angle between the two distance sensors 3 and 4 is ∠RPQ=α, where α is the design value during the R&D phase and is a known quantity. The derivation process for calculating β3 is as follows:

[0096] Cos∠RPQ=PQ / PR;

[0097] Sin∠RPQ=QR / PR;

[0098] Therefore, we can obtain that PQ = PR * Cos∠RPQ and QR = PR * Sin∠RPQ;

[0099] PQ + QE = H1, QE = H1 - PQ;

[0100] tan∠QER=QR / QE=(PR*Sin∠RPQ) / (H1-PR*Cos∠RPQ);

[0101] Therefore, ∠QER can be obtained;

[0102] θ1 = 90° - ∠QER;

[0103] tanθ1=Hx / S, Hx=S*tanθ1;

[0104] tanβ3=S / (L2+Hx-H)=S / (L2+S*tanθ1-H);

[0105] The value of β3 can be obtained from this.

[0106] In the above embodiments, the first distance sensor 3 and the second distance sensor 4 are located at the bottom of the access control system. However, this embodiment is not limited to this and can be located at other positions within the access control system. Subsequent embodiments are similar and will not be described in detail here. When the first distance sensor 3 and the second distance sensor 4 are not located at the bottom of the access control system, a distance sensor can be installed separately at the bottom of the access control system to measure the distance from the bottom of the access control system to the ground.

[0107] like Figure 7 As shown, in the fourth case, the "adjusting the angle of lens 2 according to the ground height H" described in operation 101 includes: adjusting the angle of lens 2 so that the angle β4 between the ground-near boundary B of the vertical field of view of lens 2 and the vertical direction satisfies the following calculation formula:

[0108] β4=arctan(S / (H-L1+L0-S*tanθ1))

[0109] Wherein, the height of the first slope Hx = S*tanθ1; S is the preset recognition distance of the access control system 1, H is the height above the ground; L1 is the preset minimum height that the access control system 1 can recognize at the initial position of the lens and at the preset recognition distance S; L0 is the preset height of the human head; θ1 is the angle between the slope and the horizontal direction.

[0110] θ1 can be a pre-input known value that can be obtained during on-site construction. Alternatively, a distance sensor, i.e., a second distance sensor 4, can be added to the bottom of the access control system 1 (see reference). Figure 3 Then, θ1 is determined as follows:

[0111] θ1=90°-arctan((H3*sinα) / (H1-H3*cosα))

[0112] Wherein, H1 is the first vertical distance from the ground of the first position P measured by the first distance sensor 3, and H3 is the distance between the first position P and the second position R measured by the second distance sensor 4; wherein, the included angle α is the installation angle between the first distance sensor 3 and the second distance sensor 4, and the included angle α is the angle between the line connecting the first position P and the second position R and the vertical direction, and the second position R is located on the slope on the front side of the lens 2.

[0113] like Figure 7 As shown, tanβ4=MK / NK, where MK=S, NK=H-(L1-L0)-Hx; therefore, tanβ4= / (H-L1+L0-S*tanθ1).

[0114] like Figure 8 , Figure 9 As shown, assuming the ground on the front side of lens 2 is a sloping surface that slopes away from the side where lens 2 is located, there are a fifth and a sixth scenario. The fifth scenario is: the height of access control system 1 from the ground is less than the difference between the first height X1 and the second slope height Hy, meaning access control system 1 is installed too low, and the 2-meter limit in the above example may not be covered. The sixth scenario is: the height H of access control system 1 from the ground is greater than the difference between the second height X2 and the second slope height Hy, meaning access control system 1 is installed too high, and the 1.2-meter limit in the above example may not be covered.

[0115] like Figure 8 As shown, in the fifth case, the "adjusting the angle of lens 2 according to the ground height H" described in operation 101 includes: when the ground height H is less than the difference between the first height and the second slope height, adjusting the angle of lens 2 so that the angle β5 between the boundary of the vertical field of view of lens 2 away from the ground and the vertical direction satisfies the following calculation formula:

[0116] β5=arctan(S / (L2-S*tanθ2-H))

[0117] Wherein, the height of the second slope is S*tanθ2, S is the preset recognition distance of the access control system 1, H is the height above the ground, L2 is the preset maximum height that the access control system can recognize at the initial position of the lens and at the preset recognition distance, and θ2 is the angle between the second slope and the horizontal direction.

[0118] In one exemplary embodiment, θ2 can be a pre-input known value, which can be obtained during on-site construction. Alternatively, a second distance sensor 4 can be added to the bottom of the access control system 1, and θ2 can be determined in the following manner:

[0119] θ2=90°-arctan((H4*sinα) / (H4*cosα-H1))

[0120] Wherein, H1 is the first vertical distance from the ground of the first position P measured by the first distance sensor 3, H4 is the distance between the first position P and the third position W measured by the second distance sensor 4, wherein the included angle α is the installation angle between the first distance sensor 3 and the second distance sensor 4, the included angle α is the angle between the line connecting the first position P and the third position W and the vertical direction, and the third position W is located on the slope on the front side of the lens 2.

[0121] Two distance sensors 3 and 4 are added to the bottom of the access control system 1. The first distance sensor 3 provides feedback on the installation height H1, and the second distance sensor 4 provides feedback on the distance from the ground of the first position P along the included angle α. Figure 8 The PW distance is shown; the installation angle between the two sensors is ∠WPE=α, which is a design value from the R&D phase and is a known quantity. The derivation process for β5 calculation is as follows:

[0122] PE = H1

[0123] Cos∠WPE=(PE+EX) / PW=(H1+EX) / PW;

[0124] Sin∠WPE=XW / PW;

[0125] Therefore, the specific values ​​of EX and XW can be obtained;

[0126] tan∠WEX=XW / EX=(PW*Sin∠WPE) / (PW*Cos∠WPE-H1);

[0127] Therefore, ∠WEX can be obtained;

[0128] θ2 = 90° - ∠WEX;

[0129] tanθ2=Hy / S, Hy=S*tanθ2;

[0130] Hy+Hz=L2, Hz=L2-Hy=L2-S*tanθ2;

[0131] tanβ5=S / (Hz-H1-H2)=S / (L2-S*tanθ2-H1-H2);

[0132] The value of β5 can be obtained from this.

[0133] like Figure 9 As shown, in the sixth case, the "adjusting the angle of the lens 2 according to the ground height H" described in operation 101 includes: when the ground height H is greater than the difference between the second height L2 and the second slope height Hy, adjusting the angle of the lens 2 so that the angle β6 between the boundary B of the vertical field of view of the lens 2 near the ground and the vertical direction satisfies the following calculation formula:

[0134] β6=arctan(S / (H-L1+L0+S*tanθ2))

[0135] Wherein, the height Hy of the second slope is S*tanθ2; S is the preset recognition distance of the access control system 1; H is the height above the ground; L1 is the preset minimum height that the access control system 1 can recognize at the initial position of the lens and at the preset recognition distance; L0 is the preset height of the human head; and θ2 is the angle between the second slope and the horizontal direction.

[0136] In an exemplary embodiment, θ2 can be a pre-input known value, or θ2 can be determined in the following way:

[0137] θ2=90°-arctan((H4*sinα) / (H4*cosα-H1))

[0138] Wherein, H1 is the first vertical distance from the ground of the first position P measured by the first distance sensor, H4 is the distance between the first position P and the third position W measured by the second distance sensor, the included angle α is the installation angle between the first distance sensor 3 and the second distance sensor 4, the included angle α is the angle between the line connecting the first position P and the third position W and the vertical direction, and the third position 2 is located on the slope of the front side of the lens 2.

[0139] like Figure 9 As shown, tanβ6=MK / NK, where MK=S, NK=H-(L1-L0-Hy)=H-L1+L0+Hy; therefore, tanβ6=S / (H-L1+L0+S*tanθ2).

[0140] In one exemplary embodiment, such as Figure 2 As shown, the access control system control method may further include the following operations:

[0141] 102: When the center of the lens 2 of the access control system 1 is detected to be less than the first preset height Xmin, or greater than the second preset height Xmax, an abnormal installation height is indicated. The preset working height range includes the first height X1 to the second height X2; where the first height X1 is less than the second height X2, the first preset height Xmin is less than the first height Xmax, and the second preset height Xmax is greater than the second height X2.

[0142] The solution provided in this embodiment directly prompts an abnormal installation height when the height from the ground is inappropriate. This can be done through voice prompts or alarm sounds, thus providing reminders during installation and preventing later modifications.

[0143] In the first and second cases described above, when the access control system 1 is working, the access control system 1 is powered on and initialized, the lens is rotated to the initialization position, the sensor is activated, and the vertical installation height of the access control system is sensed, with a preset value of Xmin < X1 < X2 < Xmax.

[0144] If X1≤H≤X2, then there is no need to rotate the lens; if H<X1, then rotate the lens upwards, and the rotation angle can be calculated; if H>X2, then rotate the lens downwards, and the rotation angle can be calculated, as shown in Table 1 below.

[0145] Table 1 Operation Instructions

[0146]

[0147] Figure 10 This is a flowchart illustrating an access control system control method as provided in an exemplary embodiment. In this embodiment, the ground in the access control system is level. Figure 10As shown, the specific workflow of access control system 1 is as follows:

[0148] Step 1001: Power on and initialize access control system 1;

[0149] Step 1002: Rotate lens 2 to the initialization position;

[0150] Step 1003: Obtain the installation height H1, i.e., the height from the bottom of the access control system 1 to the ground, through the distance sensor;

[0151] Step 1004: Obtain the height H of the lens center above the ground based on H1 and the known distance H2 between the bottom of the access control system 1 and the center of the lens;

[0152] Step 1005: Determine if H is less than Xmin or greater than Xmax. If yes, proceed to step 1006; otherwise, proceed to step 1007.

[0153] Step 1006: The equipment reports an error, indicating an abnormal installation height; End.

[0154] Step 1007: Determine whether H total X1≤H≤X2. If yes, proceed to step 1008; otherwise, proceed to step 1009.

[0155] Step 1008: No lens adjustment required. End.

[0156] Step 1009: Adjust the lens angle according to the height H of the center of the lens of the access control system above the ground. For the specific adjustment method, please refer to the above embodiment, and it will not be repeated here.

[0157] For example, an error message can be displayed using a speaker to indicate an abnormal installation height, thereby avoiding the need to re-drill holes to adjust the physical position of the access control system, which would damage the original wall surface and affect its aesthetics.

[0158] In another exemplary embodiment, when the ground is a slope, if it is an upward slope (tilted towards the lens), an error is reported when H is less than Xmin + Hx or greater than Xmax + Hx. If it is a downward slope (tilted away from the lens), an error is reported when H is less than Xmin - Hy or greater than Xmax - Hy.

[0159] This application also provides an access control system control device, including a memory, a processor, and a first distance sensor electrically connected to the processor. The processor can obtain the corresponding ground clearance through the first distance sensor. The memory stores a program, and when the program is read and executed by the processor, it implements the access control system control method described in any of the above embodiments.

[0160] In an exemplary embodiment, the access control system control device further includes a second distance sensor electrically connected to the processor, which can determine the slope angle θ1 or θ2 and determine the slope height based on θ1 or θ2.

[0161] This application also provides a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the access control system control method described in any of the above embodiments.

[0162] The access control system control method of this application embodiment can automatically adjust the lens angle according to the installation height, thereby improving the recognition capability of the access control system, enhancing its installation flexibility, and improving the user experience. Furthermore, the access control system control method of this application embodiment can maintain high recognition capability even in scenarios involving uphill or downhill slopes.

[0163] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

Claims

1. A method for controlling an access control system, characterized in that, include: Determine the height of the center of the camera in the access control system above the ground; When the ground clearance is outside the preset working height range of the access control system, the angle of the lens is adjusted according to the ground clearance so that the preset minimum height and preset maximum height recognized by the access control system at the preset recognition distance are within the field of view of the lens; The preset working height range includes a first height to a second height; and the first height is less than the second height. The step of adjusting the angle of the lens according to the ground clearance includes: When the ground clearance is greater than the second height, and the ground on the front side of the lens is horizontal, the angle of the lens is adjusted so that the angle between the edge of the vertical field of view of the lens near the ground and the vertical direction is arctan(S / (H-L1+L0)), where S is the preset recognition distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can recognize at the preset recognition distance with the lens angle at the initial position, and L0 is the preset height of the human head. When the height above the ground is less than the first height, and the ground on the front side of the lens is horizontal, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2-H)), where S is the preset recognition distance of the access control system, H is the height above the ground, and L2 is the preset maximum height that the access control system can recognize at the initial position of the lens and at the preset recognition distance.

2. The access system control method according to claim 1, characterized by, The point where the center of the lens intersects the ground vertically is called the first intersection point. The position on the ground on the front side of the lens, at a preset recognition distance from the first intersection point horizontally, is called the recognition position. The distance between the recognition position and the first intersection point vertically is called the slope height. The step of adjusting the angle of the lens according to the ground clearance also includes: adjusting the angle of the lens according to the ground clearance and the slope height.

3. The access control system control method according to claim 2, characterized in that, The step of adjusting the angle of the lens according to the ground clearance and the slope height includes: When the ground clearance is greater than the sum of the second height and the slope height, and the identification position is located near the lens at the first intersection point, the lens angle is adjusted so that the angle between the vertical field of view of the lens near the ground boundary and the vertical direction is arctan(S / (H-L1+L0-Hp)), where S is the preset identification distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can identify at the initial lens angle and the preset identification distance, L0 is the preset height of the human head, and Hp is the slope height, which is a known value or S*tanθ1, where θ1 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

4. The access control system control method according to claim 2, characterized in that, The step of adjusting the angle of the lens according to the ground clearance and the slope height includes: When the ground clearance is greater than the difference between the second height and the slope height, and the identification position is located on the side away from the lens from the first intersection point, the angle of the lens is adjusted so that the angle between the vertical field of view of the lens near the ground boundary and the vertical direction is arctan(S / (H-L1+L0+Hp)), where S is the preset identification distance of the access control system, H is the ground clearance, L1 is the preset minimum height that the access control system can identify at the initial position of the lens and the preset identification distance, L0 is the preset height of the human head, and Hp is the slope height, which is a known value or S*tanθ2, where θ2 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

5. The access control system control method according to claim 2, characterized in that, The step of adjusting the angle of the lens according to the ground clearance and the slope height includes: When the ground clearance is less than the sum of the first height and the slope height, and the identification position is located near the lens at the first intersection point, the lens angle is adjusted so that the angle between the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2+Hp-H)), where S is the preset identification distance of the access control system, H is the ground clearance, L2 is the preset maximum height that the access control system can identify at the initial position of the lens and the preset identification distance; Hp is the slope height, which is a known value or S*tanθ1, and θ1 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

6. The access control system control method according to claim 2, wherein The preset working height range includes a first height to a second height; and the first height is less than the second height. The step of adjusting the angle of the lens according to the ground clearance and the slope height includes: When the ground clearance is less than the difference between the first height and the slope height, and the identification position is located on the side away from the lens from the first intersection point, the angle of the lens is adjusted so that the angle between the boundary of the vertical field of view of the lens away from the ground and the vertical direction is arctan(S / (L2-Hp-H)), where S is the preset identification distance of the access control system, H is the ground clearance, L2 is the preset maximum height that the access control system can identify at the initial position of the lens and the preset identification distance; Hp is the slope height, which is a known value or S*tanθ2, and θ2 is the angle between the line connecting the identification position and the first intersection point and the horizontal direction.

7. The access control system control method according to any one of claims 1 to 6, characterized by, The method further includes, when the height of the center of the lens of the access control system above the ground is less than a first preset height; or greater than a second preset height, indicating an abnormal installation height, wherein the preset working height range includes the first height to the second height; and the first height is less than the second height, the first preset height is less than the first height; and the second preset height is greater than the second height.

8. An access system control device, characterized by comprising: The system includes a memory, a processor, and a first distance sensor electrically connected to the processor. The processor can obtain the corresponding ground clearance through the first distance sensor. The memory stores a program, which, when read and executed by the processor, implements the access control system control method as described in any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the access control system control method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Attendance intelligent management system based on face recognition

    CN112070029A

  • AR-HUD display method and system with height self-adaptive adjustment function and vehicle

    CN113859122A