Vehicle passing control method and device, computer device, and storage medium
By determining whether a vehicle's identification is within its validity period, allowing it to pass directly or performing authentication, the problem of duplicate authentication caused by non-target objects passing through first in the vehicle access system is solved, thus improving the accuracy and efficiency of access.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN JIESHUN SCI & TECH IND
- Filing Date
- 2026-03-30
- Publication Date
- 2026-06-02
AI Technical Summary
In existing vehicle passage systems, if a vehicle fails to pass in time, pedestrians or non-target individuals may rush through first, leading to duplicate authentication, duplicate billing, or passage failure, which affects the accuracy and efficiency of passage.
By obtaining the vehicle identification, it is determined whether the vehicle is within the validity period of its release. If it is within the validity period, it is released directly; otherwise, the passage authentication process is performed. The gate opening cache records the most recent release information to avoid duplicate authentication.
This improves the accuracy and efficiency of vehicle passage, reduces redundant authentication processes, ensures that legitimate vehicles do not need to be authenticated repeatedly within their validity period, and enhances the security and continuity of the system.
Smart Images

Figure CN122135467A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart parking lots, specifically to a vehicle access control method, device, computer equipment, and storage medium. Background Technology
[0002] With the development of parking lot and park entrance and exit management systems, vehicle access is generally achieved through methods such as license plate recognition and electronic tag recognition to realize automatic authentication and automatic gate opening control. When the system recognizes the vehicle's identity information and authenticates it, it controls the gate to open to allow the vehicle to pass.
[0003] However, in real-world applications, the environment of access routes is often complex, with pedestrians and non-motorized vehicles frequently mixing at entrances and exits. When a turnstile opens for a target vehicle, pedestrians or other non-target individuals may rush through before the vehicle has completed its passage, preventing the vehicle from passing in time, even though the system has already processed the passage. When the vehicle is subsequently identified again, the system typically re-executes the authentication process or misjudges it as an abnormal passage, leading to issues such as duplicate billing, abnormal blocking, or passage failure, impacting the user experience and management accuracy.
[0004] To address these issues, some systems employ a delayed gate closure method. However, this method may allow unauthorized vehicles to pass or require legitimate vehicles to undergo re-authentication, thus failing to balance security and traffic continuity.
[0005] In summary, how to avoid duplicate authentication and prevent non-target objects from occupying access permissions, thereby improving access accuracy and efficiency, has become an urgent problem to be solved in this field. Summary of the Invention
[0006] This application provides a vehicle access control method, device, computer equipment, and storage medium to solve the problems of low accuracy and efficiency in traditional vehicle access control methods, which cannot avoid repeated authentication and prevent non-target objects from occupying access permissions.
[0007] According to a first aspect of this application, one embodiment provides a vehicle traffic control method, comprising: Obtain the vehicle identification number of the vehicle waiting to pass; Based on the vehicle identifier, determine whether the vehicle to be passed is within the validity period of the passage at the current moment. The validity period of the passage is the valid time range of the vehicle to be passed after the last passage authentication was passed. If the vehicle is within the validity period of its release, then the vehicle to be passed shall be released. If the vehicle is not within the validity period of the release, the preset passage authentication process will be performed on the vehicle to be passed, and the release process will be performed after the authentication is passed.
[0008] Optionally, determining whether the vehicle to be allowed to pass is within the validity period of its release at the current moment based on the vehicle identifier includes: Obtain the lane identifier of the lane where the vehicle to be passed is located. Each lane identifier corresponds to an opening cache, and the opening cache stores the vehicle information when the corresponding lane is opened. The lane markings of the lanes where the vehicles to be passed are located are compared with the lane markings corresponding to each gate opening buffer to obtain the comparison results; Based on the comparison results, it is determined whether the vehicle to be allowed to pass is within the validity period of its current passage.
[0009] Optionally, determining whether the vehicle to be passed is within the validity period of its release at the current moment based on the vehicle identifier and the gate opening buffer includes: If the comparison result indicates that there is no successfully matched gate opening cache, then it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; If the comparison result indicates the existence of a successfully matched gate opening cache, then based on the vehicle identifier and the gate opening cache, it is determined whether the vehicle to be passed is within the validity period of its release at the current moment.
[0010] Optionally, when the comparison result indicates the existence of a successfully matched gate opening cache, the gate opening cache stores the gate opening time. The step of determining whether the vehicle awaiting passage is within the validity period of its release at the current moment, based on the vehicle identifier and the gate opening cache, includes: Compare the vehicle identifier with the vehicle information; If the comparison fails, it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; If the comparison is successful, it is determined whether the vehicle waiting to pass is within the validity period of the release at the current moment based on the gate opening time.
[0011] Optionally, determining whether the vehicle waiting to pass is within the validity period of its release at the current moment based on the gate opening time includes: Calculate the time difference between the current time and the gate opening time; If the time difference is less than or equal to the preset release time window, then the vehicle to be passed is determined to be within the release validity period; If the time difference is greater than the preset release time window, then it is determined that the vehicle to be passed is not within the release validity period.
[0012] Optionally, before determining whether the vehicle to be passed is within the validity period of its release at the current moment based on the gate opening time, the method further includes: Obtain determination information, which includes at least one of the following: time parameters set by the lane management terminal, attribute information of the lane, and traffic status information of the lane; The preset release time window is determined based on the judgment information.
[0013] Optionally, the method further includes: Obtain the vehicle identification number and current time of the vehicle that has passed authentication and been granted release. The vehicle identifier is used as vehicle information, and the current time is used as the gate opening time to update the gate opening cache corresponding to the lane.
[0014] According to a second aspect of this application, one embodiment provides a vehicle traffic control device, comprising: The first acquisition module is used to acquire the vehicle identifier of the vehicle to be passed; The first determining module is used to determine, based on the vehicle identifier, whether the vehicle to be passed is within the validity period of the passage at the current moment, wherein the validity period of the passage is the valid time range of the vehicle to be passed after the last passage authentication was passed; The first release module is used to release the vehicle to be passed if it is within the release validity period; The second release module is used to perform a preset passage authentication process on the vehicle to be passed if it is not within the validity period of the release, and to perform the release process after the authentication is passed.
[0015] According to a third aspect of this application, one embodiment provides a computer device including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the above-described vehicle traffic control method when executing the computer-readable instructions.
[0016] According to a fourth aspect of this application, one embodiment provides a readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, implement the vehicle traffic control method.
[0017] According to the vehicle access control method in the above embodiments, the vehicle identification is used to determine whether the vehicle to be passed is within the validity period of the release. If it is within the validity period of the release, it is released directly; if it is not within the validity period of the release, access authentication is performed, thereby reducing duplicate authentication processing. Attached Figure Description
[0018] Figure 1 This is one of the flowcharts illustrating a vehicle traffic control method in one embodiment of the present invention; Figure 2 This is a second schematic flowchart of a vehicle traffic control method according to an embodiment of the present invention; Figure 3 This is the third flowchart of a vehicle traffic control method according to an embodiment of the present invention; Figure 4 This is the fourth flowchart of a vehicle traffic control method according to an embodiment of the present invention; Figure 5 This is the fifth flowchart of a vehicle traffic control method according to an embodiment of the present invention; Figure 6 This is a flowchart of a vehicle traffic control method according to an embodiment of the present invention, number six. Figure 7 This is the seventh flowchart of a vehicle traffic control method in one embodiment of the present invention; Figure 8 This is a flowchart illustrating another vehicle traffic control method in one embodiment of the present invention; Figure 9 This is a schematic diagram of a vehicle traffic control device according to an embodiment of the present invention; Figure 10 This is a schematic diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0019] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of this application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to this application are not shown or described in the specification. This is to avoid obscuring the core parts of this application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.
[0020] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.
[0021] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).
[0022] In one embodiment, such as Figure 1 As shown, a vehicle traffic control method is provided, including the following steps: 101. Obtain the vehicle identification number of the vehicle to be passed.
[0023] In this embodiment of the invention, the vehicle identifier corresponding to the target vehicle currently preparing to pass through the passage can be obtained first. The target vehicle refers to a vehicle that has entered the identification area and triggered a passage judgment, such as a vehicle entering the inductive loop detection area, video recognition area, or triggering radar detection range. The vehicle identifier is used to uniquely identify the vehicle and can be information such as license plate number, electronic tag number, vehicle terminal number, or account binding number. For example, the license plate number can be obtained through a license plate recognition camera, the vehicle tag number can be read through an RFID reader / writer, or the vehicle device identifier can be read through Bluetooth or UWB devices; all of these can be used as vehicle identifiers.
[0024] It should be noted that this method can be deployed either in the local traffic control equipment corresponding to each lane, where each lane independently performs traffic determination and release control; or it can be deployed on the traffic control platform, where the platform uniformly receives vehicle identification information uploaded by each lane. When implemented by the platform, lane markings can be acquired simultaneously, and the lane of the vehicle to be passed can be determined based on these markings, thereby completing the traffic status determination and release process for the corresponding lane.
[0025] A lane indicates the passageway a vehicle is currently preparing to use, which can be an entrance lane, an exit lane, or an internal controlled passageway within the park. Lane identifiers are used to distinguish the release status of different passageways and can be lane numbers, controller port numbers, gate numbers, or logical channel numbers bound to equipment. For example, the entrance with camera binding number A01, the channel corresponding to the second relay of the controller, or the channel ID registered in the database can all serve as lane identifiers.
[0026] Vehicle and lane identification can be obtained in several ways. For example, a video recognition device can identify a vehicle and return the associated lane number at the same time; after being triggered by a ground loop, the corresponding controller port can determine the lane identification and call the recognition module to obtain the vehicle identification; the front-end controller can determine the lane identification based on the triggered hardware input port and then request vehicle information from the recognition service; or the cloud recognition service can return the recognition result along with the device number to map the lane identification.
[0027] As one possible implementation, vehicle identification can also be obtained in scenarios without license plates by means of mobile phone reservation code, QR code, parking space bound account, or a combination of license plate and account recognition.
[0028] 102. Based on the vehicle identification, determine whether the vehicle waiting to pass is within the validity period of the pass at the current moment.
[0029] In this embodiment of the invention, if traffic control is implemented on the platform side, the gate opening cache corresponding to the lane can be determined based on the lane identifier. Furthermore, it can be determined whether the vehicle to be passed is within the validity period of its release at the current moment based on the vehicle identifier and the gate opening cache. If traffic control is implemented using local traffic control equipment, there is no need to consider lane identifiers; the local gate opening cache can be directly obtained.
[0030] When implementing traffic control on the platform side, after obtaining the lane identifier, the corresponding gate opening cache can be found based on the identifier. The gate opening cache is used to record the information associated with the most recent completed release, so that a release behavior can continue to be identified and associated within a short period of time, thereby determining whether the current passage belongs to the same continuous passage process.
[0031] The gate opening cache can be understood as a traffic status record maintained on a lane-by-lane basis, storing the vehicle information and the time of the most recent release. For example, one record corresponds to entrance lane 1, and another record corresponds to exit lane 2; the lanes do not affect each other. When a vehicle completes its release in a lane, the record for that lane is refreshed, while other lanes remain in their original state. It should be noted that this embodiment of the invention only uses the gate opening cache as an example for illustration. In addition, other forms of release status records can be used to achieve the same function, such as storing the vehicle information and time information corresponding to the most recent release through local status variables, temporary passage records, valid passage certificates, or release markers with a lifespan, and determining whether the current passage belongs to the continuous release range based on this.
[0032] When determining the gate opening buffer, a matching search can be performed in the buffer set based on the lane identifier. If a corresponding record exists, it is retrieved directly; otherwise, it is assumed that no release record has been generated for the current lane, and the lane can be regarded as the corresponding empty buffer state so that subsequent logic can process it as the first passage. This avoids mutual interference between different lanes and ensures that each lane has an independent basis for determining the continuity of release.
[0033] Gate opening cache can be stored in various locations, such as the gate controller's memory, edge gateway cache, server memory database, or key-value store. For high-concurrency channels, a cache structure binned by lane number can be used to improve retrieval efficiency; for distributed deployment scenarios, a unified cache can be maintained in the central service and mapped to lane identifiers via device numbers.
[0034] Correspondingly, parallel implementation methods can also be adopted, such as maintaining a short-term state register on the device side and synchronously maintaining a mirror record on the platform side, or retaining the most recent release event in the message queue and reading it through the lane identifier index; or using session state or token methods to associate the passage credential generated by the most recent release with the lane for subsequent determination.
[0035] After obtaining the vehicle identification and acquiring the corresponding lane's gate opening cache, it is necessary to determine whether the current passage is still a continuation of the previous passage release. The passage validity period can be understood as the continuous validity range of a passage in two dimensions: the object and the passage process. Within this range, any subsequent passage request from the same vehicle is still considered the same passage process and is not recognized as a new passage event.
[0036] When no release record has been generated for a lane, it can be considered that there is no continuously valid release action, and the current passage is not within the release validity period. If a release record exists for a lane, the vehicle identifier is compared with the vehicle information stored in the cache for judgment. Only when the two match will it be further determined whether it is still within the continuous range of the release; if the vehicle identifier does not match, it is directly considered that it is not within the release validity period. After a successful match, the gate opening time in the record can be compared with the current time. If it is within the preset release time window, it is determined that it is within the release validity period; otherwise, it is considered a new passage request. In this way, the release permission is bound to a specific vehicle and has time continuity.
[0037] Besides time-difference-based determination, lane status continuity can also be used. For example, based on occupancy status detected by inductive loop detectors, radar, infrared beams, or vision, a lane is considered valid as long as the same vehicle continues to occupy it. When a new trigger signal is detected after the lane has been released, it is considered a new passage behavior. Alternatively, continuous matching of vehicle appearance features in captured images can maintain a valid passage status when the same vehicle is repeatedly identified. Correspondingly, other implementation methods can also be used. For example, a temporary passage certificate can be generated from the most recent passage and associated with the lane. When the same vehicle is subsequently identified, the certificate's validity is verified to determine whether the passage is still valid. Another method is to use lane-keeping signs to allow only the same vehicle to trigger passage again within a short period, thus achieving continuous passage determination.
[0038] It should be noted that the validity period of the release is the effective time range after the vehicle has passed its last pass authentication. When the method is applied to local traffic control equipment, this validity period can be understood as the continuous effective time for the local equipment to release the vehicle, that is, within a certain period of time from the time of the last successful authentication recorded by the local equipment, the same vehicle is allowed to trigger release again without re-authentication.
[0039] When this method is applied to a traffic control platform, the validity period of passage can be understood as the effective duration of the corresponding lane, or, at a higher level, as the effective time range after the last successful passage authentication identified by all traffic control devices within a region. Using this method, even if a vehicle waiting to pass is overtaken by another vehicle or pedestrian after the last authentication, it can pass directly within the validity period by changing lanes or entering other devices in the same area, without needing to repeat authentication. This ensures consistency in continuous passage determination and improves traffic efficiency.
[0040] 103. If the vehicle is within the validity period of its release, it shall be released.
[0041] In this embodiment of the invention, after determining that the passage is within its validity period, the passage process is directly executed, allowing vehicles to pass through the passage without having to complete the passage authentication again. The passage process can manifest as outputting an opening control signal to the gate control unit to drive the gate arm to rise, or controlling the gate to remain open for a period of time to allow vehicles to pass; under different hardware configurations, it can also control the bollard to descend, the roller shutter door to open, or the linkage indicator light to change from red to green and emit a passage prompt sound, thereby completing the passage action.
[0042] The release process can be triggered by the platform sending a command to the gate controller, or by the edge device making a decision locally and directly driving the relay output. When there are multiple levels of linkage in the channel, auxiliary actions such as camera re-shooting, activation of supplementary lighting, and voice broadcast prompts can be synchronously controlled to improve the passage guidance effect. To avoid false triggering, the release control signal can use either pulse triggering or hold triggering. Pulse triggering is used to raise the barrier once, while hold triggering is used to maintain the open state before the vehicle passes. After the release is executed, the passage record can be maintained to ensure the continuity and traceability of the entrance and exit records. Passage record maintenance can include writing an event log of "repeated release" or "release within validity period", recording the vehicle identification, lane identification, release time, and the associated previous release time or associated flag, for subsequent reconciliation, auditing, and anomaly analysis. Supplementary fields can also be added to the original passage record, such as adding the number of repeated identifications, adding the reason for the second gate opening, or establishing a correlation between the current event and the previous release event to statistically analyze operational indicators such as lane rushing and false passage.
[0043] In one possible embodiment, a snapshot can be taken and image evidence can be stored after the passage is granted, making it easier to retrospectively confirm the actual person who passed through in case of a dispute.
[0044] 104. If the vehicle is not within the validity period of the release, the preset passage authentication process will be performed on the vehicle to be passed, and the release process will be performed after the authentication is passed.
[0045] In this embodiment of the invention, when it is determined that the vehicle is not within the validity period of its passage, the current passage is considered a new passage request, requiring passage authentication processing before passage can be granted. Passage authentication is used to confirm whether a vehicle has passage permission, and can be accomplished based on various identification and verification methods, such as querying parking permissions based on license plate recognition results, verifying the status of monthly rental or temporary parking orders, verifying the binding relationship of electronic tags or on-board devices, and checking reservation information or account balances. For exit scenarios, it can further determine whether the billing status is complete, whether the fee is settled, or whether the conditions for free passage are met.
[0046] The authentication process can be completed by local control equipment, or by front-end equipment collecting and identifying information and sending it to the back-end service for judgment, and then returning the judgment result to the channel equipment for control. When authentication fails, the gate can remain closed and provide voice or screen prompts; when authentication succeeds, a release control signal is output to drive the gate arm to rise, control the bollard to descend, or switch the passage indication signal to allow the vehicle to pass, and auxiliary actions such as supplementary lighting, image capture, or broadcasting can be triggered simultaneously.
[0047] After passage is granted, the corresponding gate opening cache for the lane needs to be updated so that this passage becomes the basis for determining the validity period of subsequent passages. The update process can record the current vehicle identification and the time of occurrence for subsequent continuous passage identification. As one possible implementation, passage logs or associated order information can also be written during the update, enabling subsequent records to establish a correspondence with this authentication and release.
[0048] In this embodiment of the invention, the vehicle identifier of the vehicle to be passed is obtained; based on the vehicle identifier, it is determined whether the vehicle to be passed is within the validity period of its current passage, where the validity period is the valid time range after the vehicle's last successful passage authentication; if it is within the validity period, the vehicle to be passed is released; if it is not within the validity period, a preset passage authentication process is performed on the vehicle to be passed, and the vehicle is released after successful authentication. By determining whether the vehicle to be passed is within the validity period based on its vehicle identifier, it is directly released when it is within the validity period and undergoes passage authentication when it is not within the validity period, thereby reducing redundant authentication processes.
[0049] It is understood that in the specific implementation of this application, data related to vehicle identification, lane identification, and gate opening buffer are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0050] Reference Figure 2 , Figure 2This is a second flowchart illustrating a vehicle traffic control method according to an embodiment of the present invention; in one embodiment of the present invention, determining whether a vehicle to be passed is within its validity period for passage at the current moment, based on its vehicle identifier, includes: 201. Obtain the lane markings of the lane where the vehicle to be passed is located; 202. Compare the lane markings of the lanes where the vehicles waiting to pass are located with the lane markings corresponding to each gate opening buffer, and obtain the comparison results; 203. Based on the comparison results, determine whether the vehicle to be passed is within the validity period of the release at the current moment.
[0051] In this embodiment of the invention, each lane identifier corresponds to an opening cache, which stores vehicle information when the corresponding lane's gate is opened. When implementing vehicle access control on the traffic management platform, after receiving the identification result of the vehicle to be passed, the platform can further obtain the lane identifier of the lane the vehicle is currently in, and locate the corresponding opening cache from the cache set based on the lane identifier. Since each lane corresponds to an independently maintained opening cache, and the release status of different lanes is separated from each other, positioning by lane identifier can limit the current passage request to the corresponding lane for judgment, avoiding interference from the release records of other lanes to the current lane.
[0052] After lane identification matching is completed, if a corresponding gate opening cache can be found for the current lane, it means that a historical release record already exists for the current lane. Subsequently, based on the vehicle information stored in this cache and related release information, it can be further determined whether the current vehicle is a continuation of the previous release action. If no corresponding cache is found, it means that the current lane has not yet formed a historical release status that can be associated with. In this case, it can be directly determined that the current vehicle is not within the validity period of its release, allowing the current passage request to enter the normal authentication process. In other words, the lane matching result determines whether there is a basis for subsequent continuous release judgments.
[0053] To improve matching efficiency, various mapping methods can be used to establish the correspondence between lane identifiers and the gate opening cache. For example, a key-value mapping relationship can be established in memory according to lane identifiers, and the corresponding cache can be read directly after receiving a lane identifier; alternatively, lane identifiers can be retrieved item by item in a list or array structure, and the corresponding cache content can be retrieved after a successful match. For scenarios where lane initialization is completed in advance, corresponding cache entries can also be generated synchronously when the lane is created, and the cache is treated as an empty cache when the cache content is empty, thereby reducing the dynamic creation overhead during the first passage.
[0054] As one possible implementation, when the local traffic control device for each lane independently performs vehicle traffic control, the local device can also directly maintain the release status information of the lane. In this case, there is no need for the platform to uniformly compare multiple caches, but logically it can still be regarded as first determining the lane corresponding to the vehicle, and then locating the release record corresponding to that lane.
[0055] Reference Figure 3 , Figure 3 This is the third flowchart of a vehicle traffic control method in one embodiment of the present invention; in one embodiment of the present invention, determining whether a vehicle to be passed is within the validity period of its release at the current moment, based on vehicle identification and gate opening buffer, includes: 301. If the comparison result shows that there is no successfully matched gate opening cache, then it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; 302. If the comparison result shows that there is a successfully matched gate opening cache, then based on the vehicle identifier and the gate opening cache, determine whether the vehicle to be passed is within the validity period of the release at the current moment.
[0056] In this embodiment of the invention, the determination of the validity period of passage can first rely on the lane identifier matching result. If the comparison result shows that there is no successfully matched gate opening cache, it means that the current lane has not yet established an associated passage record, or there is no valid passage status corresponding to the lane in the current cache set. At this time, it is impossible to establish a continuous relationship between the current passage request and the existing passage behavior. Therefore, it is directly determined that the current passage is not within the validity period of passage, and the subsequent passage authentication process is initiated. Through this determination, it is possible to avoid mistakenly identifying a new passage request as continuous passage when there is a lack of historical passage evidence.
[0057] If the comparison result shows a successful gate opening cache, it indicates that the current lane already has a usable historical release record. Further analysis can be performed by combining the vehicle identifier with the gate opening cache. The vehicle information stored in the gate opening cache represents the most recently allowed vehicle. By matching the currently identified vehicle identifier with the vehicle information recorded in the cache, it can be determined whether the current passage still corresponds to the continuation of the previously released vehicle's passage. If the match is not found, it means that the current passage does not correspond to the most recently released vehicle, and it should be considered out of validity and re-authenticated. If the match is found, the validity of the release can be further confirmed by combining the relationship between the release time in the cache and the current time. This process ensures that release permissions correspond to specific vehicles, preventing different vehicles from sharing the same release status within the same time frame.
[0058] As one possible implementation, the comparison result may not be given as an explicit success or failure flag, but rather by returning a query result indicating whether a target cache entry exists; as long as it is possible to distinguish whether there is a pass record that can be associated with the current lane, the same judgment effect can be achieved.
[0059] Reference Figure 4 , Figure 4 This is the fourth flowchart of a vehicle traffic control method in one embodiment of the present invention; in one embodiment of the present invention, when the comparison result shows that a successful gate opening cache exists, the gate opening cache stores the gate opening time. Based on the vehicle identifier and the gate opening cache, it is determined whether the vehicle to be passed is within the validity period of the release at the current moment, including: 401. Compare the vehicle identification with the vehicle information; 402. If the comparison fails, it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; 403. If the comparison is successful, determine whether the vehicle waiting to pass is within the validity period of the release at the current moment based on the gate opening time.
[0060] In this embodiment of the invention, when a passage record already exists in the gate opening cache corresponding to the lane, it is necessary to first confirm whether the current vehicle is consistent with the most recently allowed passage. By matching the currently identified vehicle identifier with the vehicle information stored in the cache, it can be determined whether the current passage has a basis for continued association. When the match fails, it means that the current vehicle is not the most recently allowed passage object, and at this time it is directly determined that it is not within the validity period of the passage, and the passage authentication process begins. When the match succeeds, it indicates that the current passage may be a continuation of the passage of the same vehicle, and further validity judgment is required based on the gate opening time.
[0061] The determination based on the gate opening time can be accomplished by calculating the interval between the current time and the recorded time. If the interval is within a preset range, it is considered that the passage is still valid; otherwise, it is considered a new passage behavior. The corresponding limitations further specify the implementation method of completing this determination by comparing time window thresholds.
[0062] Besides the time interval-based method, instead of calculating the time difference and comparing thresholds, an expiration time can be generated directly during cache writing. For example, a valid expiration time can be obtained by adding a release time window to the gate opening time and writing the valid expiration time into the gate opening cache. Subsequent judgments only compare whether the current time is earlier than the valid expiration time. If it is earlier, the release is considered valid; otherwise, it is considered not valid. Alternatively, a cache entry with a time-to-live (TTL) can be used. The TTL of an entry is set during cache writing. Entries are considered valid within their TTL and automatically expire upon expiration. The validity of the release is then determined by whether the entry is still valid.
[0063] Reference Figure 5 , Figure 5 This is the fifth flowchart of a vehicle traffic control method in one embodiment of the present invention; in one embodiment of the present invention, determining whether a vehicle waiting to pass is within the validity period of its release at the current moment based on the gate opening time includes: 501. Calculate the time difference between the current moment and the gate opening time; 502. If the time difference is less than or equal to the preset release time window, then the vehicle waiting to pass is determined to be within the release validity period; 503. If the time difference is greater than the preset release time window, it is determined that the vehicle waiting to pass is not within the release validity period.
[0064] In this embodiment of the invention, the validity of passage is determined by the relationship between the gate opening time and the current time. The gate opening time represents the moment when the lane was most recently allowed to pass, and the current time represents the moment when a vehicle request for passage is detected again. The time difference between the two reflects the interval between the vehicle and the previous passage. When the interval is within a preset range, the passage is considered to be part of the same continuous passage process; when the interval exceeds the range, a new passage request is considered to have been formed, and re-authentication is required. The preset passage time window is used to limit the duration of passage, and its value can be set according to the time parameters uploaded by the lane management terminal (i.e., the administrator), so that vehicles do not need to be re-authenticated within a reasonable passage time.
[0065] As one possible implementation, a buffer zone can be set when the time difference is close to the boundary of the time window, and confirmation can be performed within the buffer zone using additional conditions, such as combining the results of re-identification or the channel occupancy status for verification, in order to reduce the probability of misjudgment in critical situations.
[0066] Reference Figure 6 , Figure 6 This is a flowchart of the vehicle traffic control method in one embodiment of the present invention (Figure 6); in one embodiment of the present invention, before determining whether a vehicle to be passed is within the validity period of its release based on the gate opening time, the method further includes: 601. Obtain the judgment information; 602. Determine the preset release time window based on the judgment information.
[0067] In this embodiment of the invention, the determination information includes at least one of the following three: time parameters set by the lane management terminal, lane attribute information, and lane traffic status information.
[0068] Before determining the validity period, information for determining the duration of traffic release can be obtained, and the corresponding release time window can be calculated accordingly. When using time parameters set by the lane management terminal, a fixed duration can be directly provided as a preset release time window through the management interface or configuration file. For example, a shorter duration can be set for the entrance lane, a longer duration for the exit lane, or different time values can be set for different operating hours of different locations. Managers can manually adjust this time based on historical traffic data to ensure that the duration range conforms to daily traffic habits.
[0069] When using lane attribute information, the duration can be derived as a preset release time window based on the characteristics of the lane itself. For example, the time required for a vehicle to move from the identification area to complete passage can be estimated based on the lane length, speed limit, and curve or slope conditions, and this time can be used as the base value for the duration range. The duration increases accordingly when the lane is longer or has deceleration facilities, and decreases accordingly when the lane is shorter and traffic is smooth.
[0070] When using lane traffic status information, the duration can be dynamically adjusted as a preset release time window based on real-time operating conditions. For example, it can detect queue length, vehicle spacing, average traffic speed, or gate opening and holding status. The duration can be extended when the queue is long or vehicles are moving slowly, and shortened when the lane is empty or vehicles are passing quickly, so that the duration is consistent with the current traffic rhythm.
[0071] In practical applications, multiple types of information can be combined. For example, the base time can be obtained based on the channel length, then corrected according to the real-time speed, and the compensation time can be further increased during peak queuing periods. Alternatively, the base time set by the management terminal can be proportionally adjusted according to the real-time traffic density to obtain a release time window that better matches the actual situation.
[0072] Reference Figure 7 , Figure 7 This is the seventh flowchart of a vehicle traffic control method in one embodiment of the present invention; in another embodiment of the present invention, the method further includes: 701. Obtain the vehicle identification number and current time of the vehicle that has passed authentication and been released; 702. Update the corresponding gate opening cache of the lane with the vehicle identifier as vehicle information and the current time as the gate opening time.
[0073] In this embodiment of the invention, after authentication and release, the gate opening cache for the corresponding lane needs to be refreshed so that this release can serve as the basis for subsequent continuous passage judgments. During the update, the vehicle identifier and the time of passage are obtained and written into the cache record associated with the lane. The time of passage can be used as a key-value index, and the vehicle identifier can be stored as the corresponding data content, ensuring that the cache always stores the most recently validly released vehicle and its time information for subsequent judgments.
[0074] like Figure 8 As shown, Figure 8 This is a flowchart illustrating another vehicle traffic control method provided in this embodiment of the invention, using platform-side vehicle traffic control as an example. Figure 8 As can be seen, the process begins with a vehicle recognition request. First, the project configuration is checked to determine if the repeated recognition barrier lifting function is enabled. If the function is not enabled, the repeated recognition logic is not entered; instead, the normal access authentication process is followed directly to avoid accidental passage in unauthorized scenarios.
[0075] With the function enabled, the gate opening cache is then retrieved according to the lane identifier corresponding to the lane. The gate opening cache stores information associated with the most recent completed release, typically using the lane identifier as the index key and the passage time and vehicle information as the record content. If no corresponding cache is found, it means that there is no historical release record that can be associated with the current lane, and there is no basis for duplicate identification verification, so the normal passage authentication process is initiated.
[0076] Once the corresponding cache is retrieved, the rule filtering process begins. First, it checks if the vehicle identifier for this passage matches the vehicle information recorded in the cache. If the comparison fails, it indicates that the vehicle corresponding to the current request is not a vehicle associated with the most recent passage and should not enjoy duplicate identification and passage; the normal passage authentication process then begins. If the comparison succeeds, it indicates that the current request may be a continuation of passage for the same vehicle, and the time validity verification continues.
[0077] The validity of the time is confirmed based on the gate opening time recorded in the cache and the time when the current passage request occurs. The time difference between the two is calculated and compared with the repeated identification time configured in the background (i.e., the preset release time window). If the time difference exceeds the repeated identification time, it is determined that the continuity of passage has ended and re-authentication is required before passage can proceed. If the time difference falls within the repeated identification time, it is determined that the vehicle is still in the continuous passage stage that has not yet been completed. The current repeated identification gate opening request is valid, and a gate-raising command can be issued directly to complete the passage without triggering passage authentication processing.
[0078] After direct passage is completed, the passage data will also be maintained and processed, such as recording a duplicate passage event within the validity period, establishing an association mark between this passage and the previous passage, and updating the timestamp or duplicate identification count in the passage log for subsequent reconciliation audit and abnormal passage analysis.
[0079] As one approach, maintenance can be done by keeping the original authentication and access records unchanged and adding only one event log for duplicate recognition and access; alternatively, a related field can be added to the original access record to ensure that the two access actions remain continuous and traceable at the data level.
[0080] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0081] In one embodiment, a vehicle traffic control device is provided, which corresponds one-to-one with the vehicle traffic control methods described in the above embodiments. For example... Figure 9 As shown, the vehicle access control device includes a first acquisition module 901, a first determination module 902, a first release module 903, and a second release module 904. Detailed descriptions of each functional module are as follows: The first acquisition module 901 is used to acquire the vehicle identifier of the vehicle to be passed; The first determining module 902 is used to determine, based on the vehicle identifier, whether the vehicle to be passed is within the validity period of the passage at the current moment, wherein the validity period of the passage is the valid time range of the vehicle to be passed after the last passage authentication was passed; The first release module 903 is used to release the vehicle to be passed if it is within the release validity period; The second release module 904 is used to perform a preset passage authentication process on the vehicle to be passed if it is not within the validity period of the release, and to perform the release process after the authentication is passed.
[0082] Optionally, the first determining module 902 is further configured to: Obtain the lane identifier of the lane where the vehicle to be passed is located. Each lane identifier corresponds to an opening cache, and the opening cache stores the vehicle information when the corresponding lane is opened. The lane markings of the lanes where the vehicles to be passed are located are compared with the lane markings corresponding to each gate opening buffer to obtain the comparison results; Based on the comparison results, it is determined whether the vehicle to be allowed to pass is within the validity period of its current passage.
[0083] Optionally, the first determining module 902 is further configured to: If the comparison result indicates that there is no successfully matched gate opening cache, then it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; If the comparison result indicates the existence of a successfully matched gate opening cache, then based on the vehicle identifier and the gate opening cache, it is determined whether the vehicle to be passed is within the validity period of its release at the current moment.
[0084] Optionally, when the comparison result indicates the existence of a successfully matched gate opening cache, the gate opening cache stores the gate opening time, and the first determining module 902 is further configured to: Compare the vehicle identifier with the vehicle information; If the comparison fails, it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; If the comparison is successful, it is determined whether the vehicle waiting to pass is within the validity period of the release at the current moment based on the gate opening time.
[0085] Optionally, the first determining module 902 is further configured to: Calculate the time difference between the current time and the gate opening time; If the time difference is less than or equal to the preset release time window, then the vehicle to be passed is determined to be within the release validity period; If the time difference is greater than the preset release time window, then it is determined that the vehicle to be passed is not within the release validity period.
[0086] Optionally, the device further includes: The second acquisition module is used to acquire judgment information, which includes at least one of the following: the time parameter set by the lane management terminal, the attribute information of the lane, and the traffic status information of the lane. The second determining module is used to determine the preset release time window based on the determination information.
[0087] Optionally, the device further includes: The third acquisition module is used to acquire the vehicle identifier that has passed authentication and executed the release process, as well as the current time. The update module is used to update the opening cache corresponding to the lane by using the vehicle identifier as vehicle information and the current time as the gate opening time.
[0088] Each module in the aforementioned vehicle access control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0089] In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a readable storage medium storing computer-readable instructions. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer-readable instructions implement a vehicle traffic control method. The readable storage medium provided in this embodiment includes both non-volatile and volatile readable storage media.
[0090] In this application embodiment, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, it implements the steps of the vehicle traffic control method described above.
[0091] In one embodiment of the application, a readable storage medium is provided, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, they implement the steps of the vehicle traffic control method described above.
[0092] Those skilled in the art will understand that all or part of the functions of the various methods in the above embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, which may include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to achieve the above functions. For example, the program can be stored in the memory of a device, and when the program in the memory is executed by the processor, all or part of the above functions can be achieved. In addition, when all or part of the functions in the above embodiments are implemented by computer programs, the program can also be stored in a server, another computer, disk, optical disk, flash drive, or external hard drive, etc., and can be downloaded or copied to the memory of a local device, or the system of the local device can be updated. When the program in the memory is executed by the processor, all or part of the functions in the above embodiments can be achieved.
[0093] The above examples illustrate the present invention only to aid in understanding it and are not intended to limit the scope of the invention. Those skilled in the art can make various simple deductions, modifications, or substitutions based on the principles of this invention.
Claims
1. A method for controlling vehicle traffic, characterized in that, The method includes: Obtain the vehicle identification number of the vehicle waiting to pass; Based on the vehicle identifier, determine whether the vehicle to be passed is within the validity period of the passage at the current moment. The validity period of the passage is the valid time range of the vehicle to be passed after the last passage authentication was passed. If the vehicle is within the validity period of its release, then the vehicle to be passed shall be released. If the vehicle is not within the validity period of the release, the preset passage authentication process will be performed on the vehicle to be passed, and the release process will be performed after the authentication is passed.
2. The vehicle traffic control method as described in claim 1, characterized in that, The step of determining whether the vehicle to be allowed to pass is within the validity period of its passage at the current moment based on the vehicle identifier includes: Obtain the lane identifier of the lane where the vehicle to be passed is located. Each lane identifier corresponds to an opening cache, and the opening cache stores the vehicle information when the corresponding lane is opened. The lane markings of the lanes where the vehicles to be passed are located are compared with the lane markings corresponding to each gate opening buffer to obtain the comparison results; Based on the comparison results, it is determined whether the vehicle to be allowed to pass is within the validity period of its current passage.
3. The vehicle traffic control method as described in claim 2, characterized in that, The step of determining whether the vehicle to be passed is within the validity period of its release at the current moment based on the vehicle identifier and the gate opening buffer includes: If the comparison result indicates that there is no successfully matched gate opening cache, then it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; If the comparison result indicates the existence of a successfully matched gate opening cache, then based on the vehicle identifier and the gate opening cache, it is determined whether the vehicle to be passed is within the validity period of its release at the current moment.
4. The vehicle traffic control method as described in claim 3, characterized in that, When the comparison result indicates the existence of a successfully matched gate opening cache, the gate opening cache stores the gate opening time. Determining whether the vehicle awaiting passage is within its validity period at the current moment, based on the vehicle identifier and the gate opening cache, includes: Compare the vehicle identifier with the vehicle information; If the comparison fails, it is determined that the vehicle to be passed is not within the validity period of the release at the current moment; If the comparison is successful, it is determined whether the vehicle waiting to pass is within the validity period of the release at the current moment based on the gate opening time.
5. The vehicle traffic control method as described in claim 4, characterized in that, The step of determining whether the vehicle waiting to pass is within the validity period of its release at the current moment based on the gate opening time includes: Calculate the time difference between the current time and the gate opening time; If the time difference is less than or equal to the preset release time window, then the vehicle to be passed is determined to be within the release validity period; If the time difference is greater than the preset release time window, then it is determined that the vehicle to be passed is not within the release validity period.
6. The vehicle traffic control method as described in claim 5, characterized in that, Before determining whether the vehicle awaiting passage is within the validity period of its passage at the current moment based on the gate opening time, the method further includes: Obtain determination information, which includes at least one of the following: time parameters set by the lane management terminal, attribute information of the lane, and traffic status information of the lane; The preset release time window is determined based on the judgment information.
7. The vehicle traffic control method as described in claim 2, characterized in that, The method further includes: Obtain the vehicle identification number and current time of the vehicle that has passed authentication and been granted release. The vehicle identifier is used as vehicle information, and the current time is used as the gate opening time to update the gate opening cache corresponding to the lane.
8. A vehicle traffic control device, characterized in that, include: The first acquisition module is used to acquire the vehicle identifier of the vehicle to be passed; The first determining module is used to determine, based on the vehicle identifier, whether the vehicle to be passed is within the validity period of the passage at the current moment, wherein the validity period of the passage is the valid time range of the vehicle to be passed after the last passage authentication was passed; The first release module is used to release the vehicle to be passed if it is within the release validity period; The second release module is used to perform a preset passage authentication process on the vehicle to be passed if it is not within the validity period of the release, and to perform the release process after the authentication is passed.
9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and running on the processor, characterized in that, When the processor executes the computer-readable instructions, it implements the vehicle traffic control method as described in any one of claims 1 to 7.
10. A readable storage medium having computer-readable instructions stored thereon, characterized in that, When the computer-readable instructions are executed by a processor, they implement the vehicle traffic control method as described in any one of claims 1 to 7.