A subway gate-based active mutual exclusion method and system for identifying entry into a station
By setting up parallel facial recognition and QR code recognition routes in subway turnstiles and selecting to interrupt one route based on the passenger's blocking parameters, the problems of speed and real-time performance of subway turnstiles are solved, passengers are prevented from being charged twice, and the accuracy of recognition is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2026-03-24
AI Technical Summary
In existing subway turnstiles, the facial recognition and QR code recognition processes are time-consuming, which reduces speed and real-time performance. Furthermore, the passive methods of judging actions and behaviors are inaccurate, which may result in passengers being charged twice.
The facial recognition and QR code recognition processes are set up as two parallel routes. By using the blocking parameters actively submitted by the passenger, one route can be interrupted to ensure that the execution of the other route is not affected, thus achieving speed and real-time performance.
It achieves speed and real-time operation of subway turnstiles, avoids double charging for passengers, and improves the accuracy of the identification process.
Smart Images

Figure CN117727119B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of subway gate, in particular to an active mutual exclusion method and system for identifying entry into a station based on a subway gate. BACKGROUND
[0002] For passengers passing through the subway gate, face recognition entry into a station is passive, and two-dimensional code recognition entry into a station is active. As long as the passenger stands in front of the gate, the camera will collect the passenger's face data, and then determine whether the subway gate is opened. If the passenger actively submits a two-dimensional code for train identification on the premise that face recognition is enabled, the gate will be opened due to the double reasons of face data and two-dimensional code data, resulting in double charges for the passenger.
[0003] In order to solve the above problems, the prior art has a method for preventing passengers from being double charged, which is passive for passengers, specifically: obtaining the recognition result of identifying the action of the passenger submitting a two-dimensional code or swiping a card, and determining whether face recognition needs to be blocked according to the recognition result, thereby preventing the phenomenon of double charges for passengers.
[0004] However, this passive method has problems in actual application, because it mainly blocks face recognition according to the recognition result of the passenger's action of submitting a two-dimensional code or swiping a card, so the face recognition process needs to wait for the gate to generate a recognition result. The face recognition process takes about 300 ms, and the two-dimensional code recognition takes about 500 ms. Therefore, the face recognition process needs to intentionally wait for 500 ms to wait for a face recognition blocking command, which reduces the speed of the subway gate. In addition, judging the passenger's intention according to the action has a certain inaccuracy, and the accuracy of deep learning to judge the action of the human body is only about 80%. In addition, other actions of the passenger may also be considered as the action of submitting a two-dimensional code or swiping a card, so the passive method is also not accurate. For passengers, it is a passive choice of a method for passing through the subway gate, which is relatively inaccurate. SUMMARY
[0005] The purpose of the present application is to provide an active mutual exclusion method and system for identifying entry into a station based on a subway gate, which sets the face recognition process and the two-dimensional code recognition process as two parallel routes, and the two subway gate passing methods do not directly interact with each other, and can be performed simultaneously or sequentially. According to the blocking parameter actively submitted by the passenger, one route is actively selected to be interrupted, which does not affect the execution process of the other route, so that the present application can ensure the speed and real-time performance of the subway gate.
[0006] The following scheme is specifically adopted:
[0007] S1, obtaining two-dimensional code data submitted by a passenger standing in front of a gate at time t, performing parameter identification processing on the two-dimensional code data to obtain two-dimensional code parameters and corresponding blocking parameters;
[0008] S2, discriminating the blocking parameters submitted by the passenger, if the blocking parameters are face blocking parameters, going to step S3, if the blocking parameters are two-dimensional code blocking parameters, going to step S4;
[0009] S3, performing boarding identification on the passenger according to the two-dimensional code parameters of the passenger;
[0010] S4, obtaining face data of the passenger standing in front of the gate within a preset time period including time t, and performing boarding identification on the passenger according to the face data.
[0011] Preferably, the two-dimensional code data is provided by a two-dimensional code collector arranged on the gate, and the face data is provided by a gate PAD arranged on the gate.
[0012] Preferably, the S3 specifically includes the following steps:
[0013] S31, obtaining a current face data set, the current face data set including a plurality of face data provided by the gate PAD and corresponding face collection time points;
[0014] S32, judging whether the face collection time points in the face data set fall within the preset time period including time t, if yes, deleting the face data corresponding to the face collection time points and performing boarding identification on the passenger according to the two-dimensional code parameters, if no, generating a face blocking signal and sending it to the gate PAD and performing boarding identification on the passenger according to the two-dimensional code parameters.
[0015] Preferably, the S4 specifically includes the following steps:
[0016] S41, obtaining a current face data set, the current face data set including a plurality of face data provided by the gate PAD and corresponding face collection time points;
[0017] S42, judging whether the face collection time points in the face data set fall within the preset time period including time t, if yes, performing boarding identification on the passenger according to the face data corresponding to the face collection time points, if no, sending a face collection request to the gate PAD and obtaining face data of the passenger standing in front of the gate, and performing boarding identification on the passenger according to the face data.
[0018] Preferably, the S4 further comprises a step S40 of generating a two-dimensional code blocking signal and deleting the corresponding two-dimensional code parameter according to the two-dimensional code blocking signal.
[0019] Preferably, the two-dimensional code parameter comprises a two-dimensional code version, an issuing authority code, passenger account information and two-dimensional code validity information.
[0020] Preferably, in the S2, the passenger-submitted blocking parameter is determined by setting a corresponding parameter value when the passenger registers the face recognition subway gate passing APP, and the blocking parameter is a two-dimensional code blocking parameter or a face blocking parameter.
[0021] Preferably, the specific process of the passenger identification is as follows:
[0022] According to the two-dimensional code parameter or the face data of the passenger, the information of the passenger is identified, and when the identification is successful, a gate opening instruction is sent to the gate, and the gate is opened according to the gate opening instruction.
[0023] An active exclusion system based on subway gate identification of entry, comprising:
[0024] A two-dimensional code collector is arranged on the gate and is used to collect the two-dimensional code data submitted by the passenger in front of the gate;
[0025] A gate PAD is arranged on the gate and is used to collect the face data of the passenger in front of the gate;
[0026] A processor is used to obtain the two-dimensional code data submitted by the passenger in front of the gate, perform parameter identification processing on the two-dimensional code data, obtain the two-dimensional code parameter and the corresponding blocking parameter, identify the blocking parameter submitted by the passenger, block the face identification process according to the face blocking parameter, block the two-dimensional code identification process according to the two-dimensional code blocking parameter, identify the passenger according to the two-dimensional code parameter or the face data of the passenger, and generate a gate opening instruction according to the identification result.
[0027] A gate is used to receive the gate opening instruction and perform gate opening operation according to the gate opening instruction.
[0028] The present application has the following advantages:
[0029] The application provides an active mutual exclusion method and system for identifying entry based on a subway gate, sets a face recognition process and a two-dimensional code recognition process as two parallel routes, the two subway gate passing methods do not directly hand over, can be carried out simultaneously or in sequence, then according to the blocking parameter actively submitted by the passenger, one route is actively selected to be interrupted, and the execution process of the other route is not affected, so that the application can guarantee the rapidity and real-time performance of the subway gate. BRIEF DESCRIPTION OF DRAWINGS
[0030] Figure 1 It is a flowchart of the embodiment 1 of the application.
[0031] Figure 2 It is an interaction diagram when the blocking parameter is a face blocking parameter in the embodiment 1 of the application.
[0032] Figure 3 It is an interaction diagram when the blocking parameter is a two-dimensional code blocking parameter in the embodiment 1 of the application.
[0033] Figure 4 It is an interaction diagram when the face data and the two-dimensional code data of the passenger are acquired simultaneously and the blocking parameter is a face blocking parameter in the embodiment 1 of the application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only a part of the embodiments of the application, rather than all the embodiments of the application. The description of the at least one example embodiment is actually only illustrative, but not as any limitation on the application of the application or use. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the application.
[0035] Unless otherwise specified, the relative arrangement, numerical expression and numerical value of the components and steps described in the embodiments do not limit the scope of the application.
[0036] At the same time, it should be understood that the sizes of the parts shown in the drawings are not drawn according to the actual proportional relationship for the convenience of description.
[0037] In addition, the description of the known structure, function and configuration can be omitted for the sake of clarity and brevity. Those skilled in the art will recognize that various changes and modifications can be made to the examples described herein without departing from the spirit and scope of the disclosure.
[0038] Techniques, methods, and apparatus known to those of ordinary skill in the relevant art(s) can not be discussed in detail herein. However, where appropriate, the techniques, methods, and apparatus should be considered as being part of the disclosure.
[0039] In all of the examples shown and discussed herein, any specific values should be interpreted as merely exemplary, and not as a limitation. Thus, other examples of the exemplary embodiments can have different values.
[0040] The present application will be described in detail below with reference to the attached drawings and embodiments:
[0041] Embodiment 1
[0042] For passengers passing through the subway gate, face recognition entry is passive, and two-dimensional code recognition entry is active. As long as the passenger stands in front of the gate, the camera will collect the passenger's face data, and then confirm whether the subway gate is opened. If the passenger actively submits a two-dimensional code for train identification on the premise that face recognition is opened, the gate will be opened due to the double reasons of face data and two-dimensional code data, resulting in the passenger being double-charged.
[0043] In order to solve the above problem, there is a method for preventing passengers from being double-charged in the prior art, which is passive for passengers, specifically: obtaining an identification result of identifying the action behavior of the passenger submitting a two-dimensional code or swiping a card, and determining whether face recognition needs to be blocked according to the identification result, thereby preventing the phenomenon of double-charging passengers from occurring.
[0044] However, this passive method has problems in actual application, because the passive method mainly blocks face recognition according to the identification result of the passenger's action behavior of submitting a two-dimensional code or swiping a card, so the face recognition process needs to wait for the gate to generate an identification result. The face recognition process takes about 300 ms, and the two-dimensional code recognition takes about 500 ms. Therefore, the face recognition process needs to deliberately wait for 500 ms to wait for a face recognition blocking command, which reduces the rapidity of the subway gate in the entire process.
[0045] In addition, judging the passenger's intention according to the action behavior has a certain inaccuracy. The accuracy of deep learning to judge the action behavior of the human body is only about 80%, and other action behaviors of the passenger may also be considered as the action behavior of submitting a two-dimensional code or swiping a card. Therefore, the passive method is also not accurate, and the passenger is passively selected a method of passing through the subway gate, which is relatively inaccurate.
[0046] In order to avoid reducing the rapidity and real-time of the subway gate and accurately obtaining the selected travel mode of the passenger, the application provides an active mutual exclusion method for identifying the subway gate entry.
[0047] As shown in Figure 1 、 Figure 2 、 Figure 3 An active mutual exclusion method for identifying the subway gate entry, the method specifically comprises the following steps:
[0048] S1, obtaining the two-dimensional code data submitted by the passenger in front of the gate at time t, performing parameter identification processing on the two-dimensional code data to obtain the two-dimensional code parameter and the corresponding blocking parameter;
[0049] S2, judging the blocking parameter submitted by the passenger, if the blocking parameter is a face blocking parameter, going to step S3, if the blocking parameter is a two-dimensional code blocking parameter, going to step S4;
[0050] S3, identifying the passenger according to the two-dimensional code parameter of the passenger;
[0051] S4, obtaining the face data of the passenger in front of the gate within a preset time period including time t, and identifying the passenger according to the face data.
[0052] Preferably, the two-dimensional code data is provided by a two-dimensional code collector arranged on the gate, and the face data is provided by a gate PAD arranged on the gate.
[0053] Preferably, the S3 specifically comprises the following steps:
[0054] S31, obtaining a current face data set, the current face data set comprising a plurality of face data provided by the gate PAD and corresponding face collection time points;
[0055] S32, judging whether the face collection time points in the face data set fall within the preset time period including time t, if yes, deleting the face data corresponding to the face collection time points and identifying the passenger according to the two-dimensional code parameter, if no, generating a face blocking signal and sending it to the gate PAD and identifying the passenger according to the two-dimensional code parameter.
[0056] Preferably, the S4 specifically comprises the following steps:
[0057] S41, obtaining a current face data set, the current face data set comprising a plurality of face data provided by the gate PAD and corresponding face collection time points;
[0058] S42, judging whether the face collection time point in the face data set falls into the preset time period including the time t, if yes, performing the ride identification on the passenger according to the face data corresponding to the face collection time point, if not, sending the face collection request to the gate PAD, and obtaining the face data of the passenger standing in front of the gate, and performing the ride identification on the passenger according to the face data.
[0059] Preferably, the S4 further includes a step S40 of generating a two-dimensional code blocking signal and deleting the corresponding two-dimensional code parameter according to the two-dimensional code blocking signal. The execution order of the step S40 can be before the S41 or after the S42.
[0060] Preferably, the two-dimensional code parameter includes a two-dimensional code version, a card-issuing authority code, passenger account information, and two-dimensional code validity information.
[0061] Preferably, in the S2, the passenger-submitted blocking parameter is determined to be a two-dimensional code blocking parameter or a face blocking parameter by setting the corresponding parameter value when the passenger registers on the face recognition subway gate APP end.
[0062] Preferably, the specific process of the ride identification is as follows:
[0063] According to the two-dimensional code parameter or the face data of the passenger, the information of the passenger is identified, and when the identification is successful, a gate opening instruction is sent to the gate to control the gate to open.
[0064] Based on the above principles, the present application is further described as follows:
[0065] Specifically, when the passenger stands in front of the gate, the passenger actively submits the corresponding two-dimensional code data to the two-dimensional code collector on the gate and sends the two-dimensional code data to the gate, so that the gate starts to execute the two-dimensional code identification entry request.
[0066] The two-dimensional code data is different from the two-dimensional code data in the prior art, because the present application is to avoid reducing the rapidity and real-time of the subway gate and accurately obtain the selected gate access mode of the passenger. Therefore, in the active process based on the two-dimensional code identification entry, a blocking parameter for selecting the gate access mode is added to the two-dimensional code data, so that the two-dimensional code data contains the blocking parameter. The blocking parameter is set to a two-dimensional code blocking parameter or a face blocking parameter by actively selecting the blocking parameter on the face recognition subway gate APP end, so that the present application actively blocks the two-dimensional code identification entry request or the face identification entry request based on the two-dimensional code blocking parameter or the face blocking parameter actively selected by the passenger.
[0067] Meanwhile, when the passenger stands in front of the gate, the gate PAD will actively collect the passenger's face data and record the face collection time point, and send the face data and the corresponding face collection time point to the gate as the passenger's face data set, so that the gate starts to execute the face recognition entry request.
[0068] Based on the above request, if the passenger's pre-set blocking parameter is a two-dimensional code blocking parameter, the gate will block the two-dimensional code recognition entry request according to the two-dimensional code blocking parameter, and perform the passenger identification according to the face data; if the passenger's pre-set blocking parameter is a face blocking parameter, the gate will block the face recognition entry request according to the face blocking parameter, and perform the passenger identification according to the two-dimensional code data.
[0069] Specifically, when the passenger's pre-set blocking parameter is a two-dimensional code blocking parameter, it means that the passenger actively chooses to use face recognition to enter. Moreover, the gate will generate a corresponding two-dimensional code blocking signal according to the two-dimensional code blocking parameter, so that it deletes the corresponding two-dimensional code data according to the two-dimensional code blocking signal, so that the two-dimensional code recognition request of the gate is interrupted. At this time, the current face data set is obtained according to the two-dimensional code blocking signal, the face data set includes the face data of several passengers and the corresponding face collection time points, and whether the gate has received the face data of the passenger is judged according to the face collection time point. In the present application, the face recognition process does not intentionally wait for the result, and the face recognition process is also performed at the same time in the two-dimensional code recognition process, so the speed of the gate will not be reduced.
[0070] When it is judged that the face collection time points in the face data set fall within the preset time period including time t, it means that the gate PAD has collected the face data of the passenger, and the face data is sent to the gate for storage. When the face recognition process receives the two-dimensional code blocking signal, the gate will actively stop the face recognition process and delete the face data corresponding to the passenger, as shown in Figure 4
[0071] When it is judged that the face collection time points in the face data set do not fall within the preset time period including time t, it means that the gate PAD may not have collected the face data of the passenger or the passenger has not exposed the face to the face collection range of the gate PAD, and the gate has not received the face data of the passenger. The gate PAD sends a face collection request to the gate PAD, prompting the gate PAD to collect the face data of the passenger, and the gate PAD can display a face collection reminder to remind the passenger to expose the face to the face collection range of the gate PAD, so that the gate PAD can collect the face data of the passenger.
[0072] When the passenger's pre-set blocking parameter is the face blocking parameter, it indicates that the passenger uses the two-dimensional code to identify the entry. Moreover, the gate machine generates a face blocking signal according to the face blocking parameter, so that the gate machine interrupts the face recognition request according to the face blocking signal. By judging whether the face collection time point in the face data set falls within the preset time period including the time t, if yes, it indicates that the gate machine has stored the face data sent by the gate machine PAD, and the face recognition process has started, then the face data of the passenger is deleted, the face recognition request is interrupted, and the gate machine identifies the passenger according to the two-dimensional code parameter, if no, it indicates that the gate machine has not stored the face data sent by the gate machine PAD, and the gate machine PAD can not collect the face data of the passenger, resulting in that the gate machine identifies the passenger according to the two-dimensional code parameter.
[0073] In the present application, as shown in Figure 4 The face recognition process and the two-dimensional code recognition process are two parallel routes, and the two subway gate passing methods can be performed simultaneously or sequentially. Since the blocking parameter actively selects to interrupt one route according to the passenger's submitted blocking parameter, the execution process of the other route is not affected, so that the rapidity and real-time performance of the subway gate machine are not affected.
[0074] Embodiment 2
[0075] An active exclusion system based on a subway gate machine for identifying entry, comprising:
[0076] A two-dimensional code collector is arranged on the gate machine and is used to collect the two-dimensional code data submitted by the passenger in front of the gate machine;
[0077] A gate machine PAD is arranged on the gate machine and is used to collect the face data of the passenger in front of the gate machine;
[0078] A processor is used to obtain the two-dimensional code data submitted by the passenger in front of the gate machine, perform parameter identification processing on the two-dimensional code data to obtain the two-dimensional code parameter and the corresponding blocking parameter, judge the blocking parameter submitted by the passenger, block the face recognition process according to the face blocking parameter, block the two-dimensional code recognition process according to the two-dimensional code blocking parameter, identify the passenger according to the two-dimensional code parameter or the face data of the passenger, and generate a gate opening instruction according to the identification result.
[0079] A gate machine is used to receive the gate opening instruction and perform gate opening operation according to the gate opening instruction.
[0080] The above is only the preferred embodiment of the present application, and does not limit the present application in any form. According to the technical essence of the present application, any simple modification, equivalent replacement and improvement of the above embodiment within the spirit and principle of the present application are still within the protection scope of the technical solution of the present application.
Claims
1. A method for active mutual exclusion based on subway gate recognition for station entry, characterized in that, The method specifically includes the following steps: S1. At time t, obtain the QR code data submitted by the passenger standing in front of the gate, perform parameter recognition processing on the QR code data, and obtain the QR code parameters and the corresponding blocking parameters. S2. Determine the blocking parameters submitted by the passenger. If the blocking parameters are face blocking parameters, proceed to step S3. If the blocking parameters are QR code blocking parameters, proceed to step S4. S3. Identify the passenger based on the passenger's QR code parameters; S4. Within a preset time period including time t, obtain the facial data of the passenger standing in front of the gate, and perform boarding identification on the passenger based on the facial data.
2. The active mutual exclusion method for subway gate entry identification according to claim 1, characterized in that, The QR code data is provided by a QR code collector installed on the gate, and the facial data is provided by a gate PAD installed on the gate.
3. The active mutual exclusion method for subway gate recognition entry according to claim 2, characterized in that, S3 specifically includes the following steps: S31. Obtain the current face data set, which includes several face data provided by the gate PAD and the corresponding face acquisition time points; S32: Determine whether the face acquisition time point in the face data set falls within a preset time period including time t. If yes, delete the face data corresponding to the face acquisition time point and perform boarding recognition for the passenger according to the QR code parameters. If no, generate a face blocking signal and send it to the gate PAD and perform boarding recognition for the passenger according to the QR code parameters.
4. The active mutual exclusion method for subway gate recognition entry according to claim 2, characterized in that, S4 specifically includes the following steps: S41. Obtain the current face data set, which includes several face data provided by the gate PAD and the corresponding face acquisition time points; S42. Determine whether the face collection time point in the face data set falls within a preset time period including time t. If yes, then perform boarding recognition for the passenger based on the face data corresponding to the face collection time point. If no, then send a face collection request to the gate PAD and obtain the face data of the passenger standing in front of the gate, and perform boarding recognition for the passenger based on the face data.
5. The active mutual exclusion method for subway gate recognition entry according to claim 4, characterized in that, The S4 also includes step S40, which is: generating a QR code blocking signal and deleting the corresponding QR code parameters according to the QR code blocking signal.
6. The active mutual exclusion method for subway gate recognition entry according to claim 1, characterized in that, The QR code parameters include QR code version, card issuing institution code, passenger account information, and QR code validity information.
7. The active mutual exclusion method for subway gate entry identification according to claim 1, characterized in that, In S2, the blocking parameters submitted by the passenger are determined by setting corresponding parameter values when the passenger registers the facial recognition subway gate app. These parameters can be either QR code blocking parameters or facial blocking parameters.
8. The active mutual exclusion method for subway gate recognition entry according to claim 1, characterized in that, The specific process of passenger identification is as follows: The passenger's information is identified based on the passenger's QR code parameters or facial data. Once the identification is successful, a gate opening command is sent to the gate, and the gate is opened according to the gate opening command.
9. An active mutual exclusion system based on subway gate recognition for station entry, characterized in that, include: QR code collector: Installed on the turnstile, used to collect QR code data submitted by passengers standing in front of the turnstile; Turnstile PAD: Installed on the turnstile, used to collect facial data of passengers standing in front of the turnstile; Processor: Obtains QR code data submitted by a passenger standing in front of the turnstile, performs parameter recognition processing on the QR code data to obtain QR code parameters and corresponding blocking parameters; judges the blocking parameters submitted by the passenger; blocks the face recognition process according to the face blocking parameters; blocks the QR code recognition process according to the QR code blocking parameters; performs boarding recognition on the passenger according to the passenger's QR code parameters or face data, and generates a turnstile opening command based on the recognition result; Turnstile: Receives the turnstile opening command and performs the turnstile opening operation according to the command.
Citation Information
Patent Citations
Subway riding system and method based on two-dimensional code and face image intercommunication
CN110659705A
ID box type storage meal ordering and taking system special for high-speed rail carriage
CN112101494A