Gate control method, device, electronic device and storage medium
By receiving and analyzing the user image data collected by the gate, determining the user image similarity and identification, selecting the recognition result with the highest similarity and controlling the target gate to open the door, the problem of side-by-side gate opening is solved, and the identification accuracy and resource utilization efficiency are improved.
Patent Information
- Application Number
- CN202111014535.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2041-08-31
AI Technical Summary
When identifying the same user, side-by-side gates will cause multiple gates to open the door at the same time, resulting in waste of resources.
By receiving the acquisition results reported by the gate, the user image similarity and user identification are determined. If multiple recognition results contain the same user identification, the recognition result with the highest user image similarity is selected, the target gate is determined and its door opening is controlled.
It avoids multiple gates identifying the same user and opening the door at the same time, improving identification accuracy and reducing resource waste.
Smart Images

Figure CN113673473B_ABST
Abstract
Description
Background Art
[0002] With the development of video detection technology, many companies will install side-by-side gates at their doors and use gates to replace the work of doormen. However, in related technologies, if the recognition range of the gate is wide, multiple gates will recognize the same target user, and then when the user passes through one of the gates, the other gates will also open. Summary of the invention
[0003] The purpose of the present application is to provide a gate control method, device, electronic device and storage medium for solving the problem of parallel gates opening doors for the same user.
[0004] In a first aspect, an embodiment of the present application provides a gate control method, including:
[0005] Receive the collection results reported by the gate machine, and determine the recognition results based on the collection results; wherein the recognition results include user image similarity and user identification;
[0006] For the determined multiple recognition results, if at least two recognition results include the same user identifier, then determining the recognition result including the user image with the highest similarity from the recognition results including the same user identifier;
[0007] Determine the target gate corresponding to the recognition result having the highest user image similarity;
[0008] Control the target gate to open.
[0009] In the embodiment of the present application, by comparing the similarity of user images collected by each gate, the gate with the highest similarity is determined, and the corresponding gate is controlled to open the door, thereby avoiding the scenario where multiple gates recognize the same user and open the door at the same time, thereby avoiding waste of resources.
[0010] In some possible embodiments, determining the recognition result based on the collection result includes:
[0011] Based on the comparison between the user image in the acquisition result and the pre-stored user image, the recognition result is determined based on the comparison result; or,
[0012] Receive the pending recognition result reported by the gate, and determine the recognition result based on the pending recognition result.
[0013] In an embodiment of the present application, the gate machine may collect user images and compare similarities to obtain recognition results, or the gate machine may only collect user images, and then the server may compare similarities to obtain experimental results, making the present application more universal.
[0014] In some possible embodiments, the recognition result further includes recognition time. After determining the recognition result including the user image with the highest similarity, the method further includes:
[0015] If there are multiple recognition results including the highest user image similarity, determining the recognition result with the earliest recognition time among the recognition results including the user image similarity;
[0016] Determine the target gate corresponding to the recognition result having the earliest recognition time.
[0017] In the embodiment of the present application, there may be multiple gates with similar user images. In this case, the gate with the earliest recognition time is controlled to open. This method further makes the gate recognition more accurate and avoids the wrong opening of the gate.
[0018] In some possible embodiments, the determining the recognition result including the user image with the highest similarity includes:
[0019] For any recognition result pair, if the difference in the user image similarities included in the recognition results in the recognition result pair is less than a second preset value, it is determined that the recognition results in the recognition result pair are all recognition results with the highest user image similarity included;
[0020] The pair of recognition results includes recognition results in which the similarities of the two included user images are both greater than a first preset value.
[0021] In an embodiment of the present application, in order to make the gate recognition more accurate, a pair of recognition results is set, and the recognition results with a similarity difference less than a second preset value and a similarity greater than a first preset value are taken as the recognition results with the highest user image similarity. This method can filter out recognition results with low user image similarity and accurately determine the recognition result pairs.
[0022] In some possible embodiments, the method further includes:
[0023] For any recognition result among the determined multiple recognition results, if the user image similarity in the recognition result is less than or equal to a first preset value, the gate corresponding to the recognition result including the user image similarity is controlled to ignore the current collection result.
[0024] In some possible embodiments, the method further includes:
[0025] For the determined multiple recognition results, if the recognition results do not include the same user identifier, and the similarity of the user images included in the recognition results is greater than a first preset value, the gate corresponding to the recognition result is controlled to open.
[0026] In the embodiment of the present application, if the same user identifier is not included in the recognition result and the user image similarity is greater than the first preset value, it means that only one gate has recognized the user, and the user is the user corresponding to the pre-stored user image. Therefore, the corresponding gate is directly controlled to open the door, and there is no need to perform the process of forming a recognition result pair, thereby speeding up the entire recognition process and improving recognition efficiency.
[0027] In some possible embodiments, the user image includes any one or a combination of the following: a user face image, a user body image.
[0028] In this application, there is no limitation on user images, which further makes this application more universal.
[0029] In some possible embodiments, after determining the recognition result including the user image with the highest similarity, the method further includes:
[0030] If there are multiple recognition results with the highest similarity to the included user images, determine the recognition result in which the specified area in the included user images accounts for a larger proportion;
[0031] Determine the target gate corresponding to the recognition result in which the designated area in the user image has a large proportion.
[0032] In some possible embodiments, receiving the collection result reported by the gate includes:
[0033] Determine the time for the first report of collection results;
[0034] Wait for a preset time period, and the collection results received during the preset time period are the collection results received at the same time.
[0035] In a second aspect, the present application also provides a gate control device, the device comprising:
[0036] A receiving module is configured to receive the collection result reported by the gate machine, and determine the recognition result based on the collection result; wherein the recognition result includes the user image similarity and the user identification;
[0037] A result recognition module is configured to determine, for the determined multiple recognition results, if at least two recognition results include the same user identifier, the recognition result including the user image with the highest similarity from the recognition results including the same user identifier;
[0038] A gate first determination module is configured to determine a target gate corresponding to the recognition result having the highest user image similarity;
[0039] The control module is configured to control the target gate to open.
[0040] In some possible embodiments, the receiving module is configured to:
[0041] Based on the comparison between the user image in the acquisition result and the pre-stored user image, the recognition result is determined based on the comparison result; or,
[0042] Receive the pending recognition result reported by the gate, and determine the recognition result based on the pending recognition result.
[0043] In some possible embodiments, the recognition result further includes recognition time, and after the result recognition module determines the recognition result including the user image with the highest similarity, the device further includes:
[0044] a determination module configured to determine, if there are multiple recognition results including the highest user image similarity, a recognition result including the earliest recognition time among the recognition results including the user image similarity;
[0045] The second gate determination module determines the target gate corresponding to the recognition result having the earliest recognition time.
[0046] In some possible embodiments, when the result recognition module determines the recognition result including the user image with the highest similarity, it is configured to:
[0047] If for any recognition result pair, if the difference in the user image similarities included in the recognition results in the recognition result pair is less than a second preset value, it is determined that the recognition results in the recognition result pair are all recognition results with the highest user image similarity included;
[0048] The pair of recognition results includes recognition results in which the similarities of the two included user images are both greater than a first preset value.
[0049] In some possible embodiments, the device further includes:
[0050] The ignoring module is configured to control the gate corresponding to the recognition result including the user image similarity to ignore the current collection result for any recognition result among the determined multiple recognition results if the user image similarity in the recognition result is less than or equal to a first preset value.
[0051] In some possible embodiments, the device further includes:
[0052] The gate opening module is configured to control the gate opening corresponding to the determined multiple recognition results if the recognition results do not include the same user identifier and the user image similarity included in the recognition results is greater than a first preset value.
[0053] In some possible embodiments, the user image includes any one or a combination of the following: a user face image, a user body image.
[0054] In some possible embodiments, after the result recognition module determines the recognition result including the user image with the highest similarity, the device further includes:
[0055] a ratio determination module, configured to determine a recognition result in which a specified area in the included user image occupies a larger ratio if there are multiple recognition results with the highest similarity to the included user image;
[0056] The third gate determination module is used to determine the target gate corresponding to the recognition result in which the designated area in the user image has a large proportion.
[0057] In some possible embodiments, when the receiving module receives the collection result reported by the gate, it is configured to: determine the time of reporting the first collection result;
[0058] Wait for a preset time period, and the collection results received during the preset time period are the collection results received at the same time.
[0059] In the third aspect, another embodiment of the present application also provides an electronic device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method provided in the embodiment of the first aspect of the present application.
[0060] In a fourth aspect, another embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute any method provided in the embodiment of the first aspect of the present application.
[0061] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0063] Figure 1A An application scenario diagram of the gate control method provided in an embodiment of the present application;
[0064] Figure 1B An application scenario diagram of the gate control method provided in an embodiment of the present application;
[0065] Figure 2 An overall flow chart of the gate control method provided in the embodiment of the present application;
[0066] Figure 3 A schematic diagram of a gate recognition area of a gate control method provided in an embodiment of the present application;
[0067] Figure 4 An overall flow chart of the gate control method provided in the embodiment of the present application;
[0068] Figure 5 A schematic diagram of a gate control method provided in an embodiment of the present application;
[0069] Figure 6 Schematic diagram of an electronic device for the gate control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0071] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0072] The inventor found that with the development of video detection technology, many companies will install side-by-side gates at their doors and use gates to replace the work of doormen. However, in related technologies, if the recognition range of the gate is wide, multiple gates will recognize the same target user, and then when the user passes through one of the gates, the other gates will also open.
[0073] In view of this, the present application proposes a gate control method, device, electronic device and storage medium for solving the above problems. The inventive concept of the present application can be summarized as follows: receiving the acquisition results reported by the gate, and determining the recognition results based on the acquisition results; wherein the recognition results include the user image similarity and the user identification; for the multiple recognition results determined, if at least two recognition results include the same user identification, then from the recognition results including the same user identification, determine the recognition result with the highest user image similarity; determine the gate corresponding to the recognition result with the highest user image similarity; and control the gate to open.
[0074] like Figure 1A As shown, it is an application scenario diagram of the gate control method in the embodiment of the present application. The diagram includes: a server 10, a gate 20, and a memory 30; wherein:
[0075] In the embodiment of the present application, the server 10 receives the collection results reported by the gate 20, and determines the recognition results based on the collection results; wherein the recognition results include the user image similarity and the user identifier; for the determined multiple recognition results, if at least two recognition results include the same user identifier, then from the recognition results including the same user identifier, determine the recognition result including the highest user image similarity; determine the gate corresponding to the recognition result including the highest user image similarity; and control the gate to open the door. The user image similarity is obtained by comparing the user image collected by the gate with the user image pre-stored in the memory 30. The corresponding gate is the gate that collects the target image, and the target image is the user image used to generate the user image similarity included in the recognition result.
[0076] The description in this application only details a single server, but those skilled in the art should understand that the server 10, gate 20 and memory 30 shown are intended to represent the operation of the server, gate and memory involved in the technical solution of this application. The single server and memory are described in detail at least for the convenience of explanation, and do not imply any restrictions on the number, type or location of terminal devices and servers. It should be noted that adding additional modules to the illustrated environment or removing individual modules from it does not change the underlying concepts of the example embodiments of this application. In addition, although for the convenience of explanation, Figure 1A A bidirectional arrow from the storage 30 to the server 10 is shown in the figure, but those skilled in the art can understand that the sending and receiving of the above data also needs to be implemented through the network 10.
[0077] In another embodiment, if Figure 1BAs shown, the server can be set in the gate, that is, one gate is selected from multiple parallel gates as the main gate, and the main gate (consisting of gate 1 and gate 2) receives the collection results reported by other gates (consisting of gate 2 and gate 3), and determines the recognition result based on the collection result, and determines its own recognition result; wherein the recognition result includes the user image similarity and the user identification; for the multiple recognition results determined, if at least two recognition results include the same user identification, then from the recognition results including the same user identification, determine the recognition result with the highest user image similarity; determine the gate corresponding to the recognition result with the highest user image similarity; and control the gate to open the door. The above-mentioned main gate can be selected by the user or preset by a technician.
[0078] It should be noted that the memory in the embodiment of the present application may be, for example, a cache system, a hard disk storage, a memory storage, etc. In addition, the gate control method proposed in the present application is not only applicable to Figure 1A The application scenario shown is also applicable to any device with gate control requirements.
[0079] For ease of understanding, the gate control method proposed in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0080] like Figure 2 As shown, it is an overall flow chart of the gate control method proposed in the embodiment of the present application, wherein:
[0081] In step 201: receiving the collection result reported by the gate machine, and determining the recognition result based on the collection result; wherein the recognition result includes the user image similarity and the user identification;
[0082] In step 202: for the determined multiple recognition results, if at least two recognition results include the same user identifier, then from the recognition results including the same user identifier, determine the recognition result including the user image with the highest similarity;
[0083] In step 203: determining the gate corresponding to the recognition result having the highest similarity with the user image;
[0084] In step 204: the gate is controlled to open.
[0085] For ease of understanding, the above steps are described in detail below.
[0086] In some embodiments, the following two methods may be used to determine the recognition result based on the collection result:
[0087] 1. The gate determines the recognition result
[0088] In the embodiment of the present application, in order to speed up the operation of the server, part of the functions can be handed over to the gate machine. Therefore, the gate machine first collects the user image, and then performs similarity recognition between the user image and the user image pre-stored in the memory to obtain the user image similarity. Then the user image similarity is reported to the server.
[0089] 2. The server determines the recognition result
[0090] In some embodiments, in order to make the present application more universal, the recognition result can be determined by the server, that is, the server receives the collection result reported by the gate machine, and the collection result only includes the user image. The server compares the user image with the user image pre-stored in the memory to perform a similarity comparison, and then determines the target similarity.
[0091] It should be noted that the gate machine may collect the user's face image, the user's body image, or the user's face and body image. When performing similarity recognition with a pre-stored user image, the similarity recognition method in the prior art is applicable to the present application, and the present application does not limit this.
[0092] In some embodiments, in order to make the gate control method provided by the present application more universal, the server in the present application may be a separately set server, or a gate machine may be selected from the side-by-side gate machines as the main gate machine, and the server may be installed in the main gate machine. Any one of the side-by-side gate machines may be selected as the main gate machine according to the needs of the user. This application is not limited to this. In another embodiment, in order to further improve the recognition efficiency, in the embodiment of the present application, when the main gate machine fails, a gate machine may be selected from other gate machines as a backup gate machine, and the backup gate machine performs the operations that the main gate machine needs to perform.
[0093] In the related art, in order to avoid the poor user experience caused by the gate machine failing to recognize the user, the gate machine's recognition range is set relatively large, which will lead to the following problems: Figure 3 The ranges of gate recognition shown are overlapping, so multiple gates may recognize the same user. In this case, if the user is in the overlapping range, there may be multiple recognition results with the highest user image similarity. For this situation, in an embodiment of the present application, when determining the user image similarity, the time when the user image is collected is also determined, that is, the recognition result also includes the recognition time. If there are multiple recognition results with the highest user image similarity, the recognition result with the earliest recognition time among the recognition results including the user image similarity is determined; and the gate corresponding to the recognition result with the earliest recognition time is controlled to open.
[0094] In another embodiment, if the user is in an overlapping range, it may result in multiple recognition results with the highest user image similarity. In this case, in the embodiment of the present application, the target gate can be determined according to the proportion of the designated area in the user image in the user image; for example, if the proportion of the head area in the user image in the recognition result recognized by gate A is 5%, and the proportion of the head area in the user image in the recognition result recognized by gate B is 15%, then gate A is determined to be the target gate. It should be noted that the designated area includes but is not limited to: head area, body area.
[0095] In some embodiments, since it takes time for the gate machine to report the collection results, in order to avoid inaccurate collection results received at the same time due to the time when the gate machine reports the collection results, in the embodiments of the present application, when receiving the collection results reported by the gate machine, it can be implemented as follows: determine the time of the first reported collection result; wait for a preset time, and the collection results received within the preset time are the collection results received at the same time. For example: the time of the first reported collection result is 9:30:10, and the preset time is 20 seconds, then the collection results reported from 9:30:10 to 9:30:30 are all collection results received at the same time.
[0096] In the embodiment of the present application, in order to make the gate recognition more accurate, a recognition result pair is set. For any recognition result pair, if the difference in the similarity of the user images included in the recognition results in the recognition result pair is less than a second preset value, it is determined that the recognition results in the recognition result pair are all recognition results with the highest similarity of the included user images; wherein the recognition result pair includes recognition results in which the similarity of the two included user images is greater than the first preset value. However, there may be multiple recognition result pairs in one recognition, and the above method is used for each recognition result pair. This method can filter out recognition results with low user image similarity and accurately determine recognition result pairs. For example, the user image similarity of gate A is 85, the user image similarity of gate B is 90, the user image similarity of gate C is 92, the second preset value is 5, and the first preset value is 80. Then the recognition result pairs of gate A, gate B, and gate C are (gate A, gate B), (gate B, gate C), and (gate A, gate C). For the recognition result pair (gate A, gate B), the difference between the user image similarities of gate A and gate B is 5, then gate A is the same as gate B. Gate A is the recognition result with the highest user image similarity; for the recognition result pair (gate B, gate C), where the difference in user image similarity between gate B and gate C is greater than 5, then the recognition result corresponding to gate C is the recognition result with the highest user image similarity; for the recognition result pair (gate A, gate C), where the difference in user image similarity between gate A and gate C is less than 5, then the recognition results corresponding to gate A and gate C are both the recognition results with the highest user image similarity. In the embodiment of the present application, this method can filter out recognition results with low user image similarity and accurately determine the recognition result pair.
[0097] In the embodiment of the present application, in order to avoid subsequent calculations for recognition results with low user image similarity, which leads to waste of resources, a first preset value is set. For any of the multiple recognition results determined, if the user image similarity in the recognition result is less than or equal to the first preset value, the gate corresponding to the recognition result including the user image similarity is controlled to ignore the current acquisition result. For example: the user image similarity corresponding to gate A is 82, the user image similarity corresponding to gate B is 90, and the user image similarity corresponding to gate C is 92. The first preset value is 85, then gate A is controlled to ignore the current acquisition result.
[0098] In one embodiment, if the gate performs recognition and obtains a recognition result, the gate compares the user image similarity with a first preset value. If it is less than or equal to the first preset value, the collection result is not reported to the server and is ignored.
[0099] In one embodiment, for the multiple identification results determined, if the identification results do not include the same user identifier, and the user image similarity included in the identification results is greater than a first preset value, the gate corresponding to the identification result is controlled to open. The fact that the identification results do not include the same user identifier and the user image similarity is greater than the first preset value indicates that only one gate has identified the user, and the user is the user corresponding to the pre-stored user image, so the corresponding gate is directly controlled to open.
[0100] For ease of understanding, the overall process of the gate control method provided in the embodiment of the present application is described in detail below. Figure 4 As shown:
[0101] In step 401: receiving the collection result reported by the gate machine, and determining the recognition result based on the collection result;
[0102] In step 402: determine whether at least two recognition results include the same user identifier, if so, proceed to step 403, otherwise proceed to step 405;
[0103] Step 403: Determine, from the recognition results including the same user identifier, a recognition result including the user image with the highest similarity;
[0104] Step 404: determining the gate corresponding to the recognition result having the highest similarity to the user image;
[0105] Step 405: Determine whether the user image similarity included in the recognition result is greater than a first preset value, if so, proceed to step 406, otherwise proceed to step 407;
[0106] Step 406: Control the gate corresponding to the recognition result to open the gate;
[0107] Step 407: Control the gate corresponding to the recognition result to ignore the current collection result.
[0108] like Figure 5 As shown, based on the same inventive concept, a gate control device 500 is proposed, comprising:
[0109] The receiving module 5001 is configured to receive the collection result reported by the gate machine, and determine the recognition result based on the collection result; wherein the recognition result includes the user image similarity and the user identification;
[0110] The result identification module 5002 is configured to, for the determined multiple identification results, if at least two identification results include the same user identifier, determine the identification result including the user image with the highest similarity from the identification results including the same user identifier;
[0111] The gate first determination module 5003 is configured to determine the gate corresponding to the recognition result having the highest user image similarity;
[0112] The control module 5004 is configured to control the gate to open.
[0113] In some possible embodiments, the receiving module is configured to:
[0114] Based on the comparison between the user image in the acquisition result and the pre-stored user image, the recognition result is determined based on the comparison result; or,
[0115] Receive the pending recognition result reported by the gate, and determine the recognition result based on the pending recognition result.
[0116] In some possible embodiments, the recognition result further includes recognition time, and after the result recognition module determines the recognition result including the user image with the highest similarity, the device further includes:
[0117] a determination module configured to determine, if there are multiple recognition results including the highest user image similarity, a recognition result including the earliest recognition time among the recognition results including the user image similarity;
[0118] The second gate determination module determines the gate corresponding to the recognition result having the earliest recognition time.
[0119] In some possible embodiments, when the result recognition module determines the recognition result including the user image with the highest similarity, it is configured to:
[0120] If for any recognition result pair, if the difference in the user image similarities included in the recognition results in the recognition result pair is less than a second preset value, it is determined that the recognition results in the recognition result pair are all recognition results with the highest user image similarity included;
[0121] The pair of recognition results includes recognition results in which the similarities of the two included user images are both greater than a first preset value.
[0122] In some possible embodiments, the device further includes:
[0123] The ignoring module is configured to control the gate corresponding to the recognition result including the user image similarity to ignore the current collection result for any recognition result among the determined multiple recognition results if the user image similarity in the recognition result is less than or equal to a first preset value.
[0124] In some possible embodiments, the device further includes:
[0125] The gate opening module is configured to control the gate opening corresponding to the determined multiple recognition results if the recognition results do not include the same user identifier and the user image similarity included in the recognition results is greater than a first preset value.
[0126] In some possible embodiments, the user image includes any one or a combination of the following: a user face image, a user body image.
[0127] In some possible embodiments, after the result recognition module determines the recognition result including the user image with the highest similarity, the device further includes:
[0128] a ratio determination module, configured to determine a recognition result in which a specified area in the included user image occupies a larger ratio if there are multiple recognition results with the highest similarity to the included user image;
[0129] The third gate determination module is used to determine the target gate corresponding to the recognition result in which the designated area in the user image has a large proportion.
[0130] In some possible embodiments, when the receiving module receives the collection result reported by the gate, it is configured to: determine the time of reporting the first collection result;
[0131] Wait for a preset time period, and the collection results received during the preset time period are the collection results received at the same time.
[0132] After introducing the gate control method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.
[0133] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0134] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the gate control method according to various exemplary implementations of the present application described above in this specification.
[0135] Refer to the following Figure 6 The electronic device 130 according to this embodiment of the present application is described. Figure 6The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0136] like Figure 6 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).
[0137] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0138] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .
[0139] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0140] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0141] In some possible implementations, various aspects of a gate control method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a gate control method according to various exemplary embodiments of the present application described above in this specification.
[0142] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0143] The program product for gate control of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0144] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0145] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0146] The program code for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or entirely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).
[0147] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0148] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0150] The present application is described with reference to the flowchart and / or block diagram of the method, device (system), and computer program product according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0151] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0152] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0153] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A gate control method, characterized in that: The method comprises: Receive the collection results reported by the gate machine, and determine the recognition results based on the collection results; wherein the recognition results include user image similarity, user identification and recognition time; For the determined multiple recognition results, if at least two recognition results include the same user identifier, then determine the recognition result including the highest user image similarity from the recognition results including the same user identifier; if there are multiple recognition results including the highest user image similarity, then determine the recognition result with the earliest recognition time among the recognition results including the user image similarity; determine the target gate corresponding to the recognition result including the earliest recognition time; and control the target gate to open; For the determined multiple recognition results, if the recognition results do not include the same user identifier, and the similarity of the user images included in the recognition results is greater than a first preset value, the gate corresponding to the recognition result is controlled to open.
2. The method according to claim 1, characterized in that The determining of the recognition result based on the collection result includes: Based on the comparison between the user image in the acquisition result and the pre-stored user image, the recognition result is determined based on the comparison result; or, Receive the pending recognition result reported by the gate machine, and determine the recognition result based on the pending recognition result.
3. The method according to any one of claims 1 to 2, characterized in that: The determining of the recognition result including the user image with the highest similarity includes: If for any recognition result pair, if the difference in the user image similarities included in the recognition results in the recognition result pair is less than a second preset value, it is determined that the recognition results in the recognition result pair are all recognition results with the highest user image similarity included; The pair of recognition results includes recognition results in which the similarities of the two included user images are both greater than a first preset value.
4. The method according to any one of claims 1 to 2, characterized in that: The method further comprises: For any recognition result among the determined multiple recognition results, if the user image similarity in the recognition result is less than or equal to a first preset value, the gate corresponding to the recognition result including the user image similarity is controlled to ignore the current collection result.
5. The method according to any one of claims 1 to 2, characterized in that: The user image includes any one or a combination of the following: a user face image, a user body image.
6. The method according to claim 3, characterized in that After determining the recognition result including the user image with the highest similarity, the method further includes: If there are multiple recognition results with the highest similarity to the included user images, determine the recognition result in which the specified area in the included user images accounts for a larger proportion; Determine the target gate corresponding to the recognition result in which the designated area in the user image has a large proportion.
7. The method according to claim 1, characterized in that Receive the collection results reported by the gate, including: Determine the time for the first report of collection results; Wait for a preset time period, and the collection results received during the preset time period are the collection results received at the same time.
8. A gate control device, characterized in that: The device comprises: A receiving module, used to receive the acquisition results reported by the gate machine, and determine the recognition results based on the acquisition results; wherein the recognition results include the user image similarity, user identification and recognition time; A result recognition module, for determining, for the determined multiple recognition results, if at least two recognition results include the same user identifier, the recognition result including the user image with the highest similarity from the recognition results including the same user identifier; a determination module, configured to determine, if there are multiple recognition results including the highest user image similarity, a recognition result including the earliest recognition time among the recognition results including the user image similarity; The second gate determination module is used to determine the target gate corresponding to the recognition result having the earliest recognition time; A control module, used for controlling the gate to open; The gate opening module is used to control the gate opening corresponding to the determined multiple recognition results if the recognition results do not include the same user identifier and the similarity of the user images included in the recognition results is greater than a first preset value.
9. An electronic device, characterized in that: It comprises at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1-7.
10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Face recognition system and method based on block chain
CN111554026A
Passage control method and device, gate equipment and multi-gate system
CN111784885A