Method, device, equipment and readable storage medium for automatic reset of vehicle detector
By comparing the duration of the vehicle detector in the presence of a vehicle with the preset trigger time, the reference frequency is adjusted to achieve automatic reset, which solves the problem of misjudgment by the loop vehicle detector when the external environment changes, ensuring the accuracy of the lane software and reducing toll evasion incidents.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING SHOUXUN TECH CO LTD
- Filing Date
- 2022-12-21
- Publication Date
- 2026-07-31
AI Technical Summary
Existing loop vehicle detectors are prone to frequency deviations when the external environment changes, leading to misjudgments and system crashes. They cannot automatically reset in time, resulting in lane software logic errors and toll evasion.
By comparing the duration of the vehicle detector in the presence of a vehicle with the preset trigger time, the reference frequency is adjusted to the second reference frequency, and the device is initialized according to the second reference frequency, thereby achieving automatic reset of the vehicle detector.
This avoids lane software misjudgments, reduces the occurrence of toll evasion incidents, and enables the vehicle detector to autonomously reset when the external environment changes.
Smart Images

Figure CN116165719B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of detection technology, and in particular to a method, apparatus, device, and readable storage medium for automatic reset of a vehicle detector. Background Technology
[0002] Loop induction vehicle detectors are currently the most widely used vehicle detection method on highways due to their mature technology, ease of control, and low cost. The detection principle of this loop induction vehicle detector is as follows: when a vehicle stops or passes over a loop induction coil, the alternating magnetic field of the coil induces eddy currents in the metal part of the vehicle's closed loop. These eddy currents create a magnetic field with the opposite direction to the loop coil's magnetic field, reducing the magnetic field strength and inductance of the loop coil. The vehicle detector installed in the barrier gate determines the presence of a vehicle by detecting the change in the inductance of the loop induction coil. Figure 1 The equivalent circuit diagram of the vehicle detector and the ring coil above it is shown below. Figure 1 As shown, when a vehicle passes through the loop inductive loop, the vehicle chassis is equivalent to a short-circuit loop with inductance LA and resistance RA. The short-circuit loop affects the magnetic flux of the resonant circuit formed by the loop inductive loop and the vehicle detector through the mutual inductance coefficient M. The resistance of the loop inductive loop is Rp, the inductance is Lp, and the voltage applied by the vehicle detector to the loop inductive loop is U, where U = Emsinωt. Ip and IA are the loop currents. When a vehicle passes through the loop inductive loop, the change in the inductance of the loop inductive loop is converted into a frequency change signal of the resonant circuit by the vehicle detector. The output of the vehicle detector after acquiring the signal at this time is a sine wave signal. When the vehicle detector is powered on, it will initialize and record the reference frequency at this time. Thereafter, it continuously compares the difference between the current frequency and the reference frequency. Once the difference exceeds a set threshold, it is determined that there is a vehicle on the loop; otherwise, it is determined that there is no vehicle on the loop.
[0003] However, when the environment around the loop inductive coil changes, causing a sudden change in the coil's equivalent inductance, the actual frequency of the equivalent circuit changes accordingly. Since the vehicle detector's reference frequency is not calibrated in time, if the difference between the actual frequency and the reference frequency exceeds a set threshold, the detector will mistakenly identify a vehicle, resulting in a system crash. Once the detector crashes, the lane software will experience logical errors and various problems. For example, if the detector is used for anti-collision vehicle detection, a crash causing the lane software to detect a vehicle on the anti-collision coil will result in the barrier gate not lowering, leaving the lane in a raised state for an extended period, allowing vehicles to evade tolls.
[0004] The vehicle detector that crashes has no hardware or software malfunctions. Therefore, to prevent the lane software from making logical judgment errors, the vehicle detector needs to be reset. However, the current method for resetting the vehicle detector is for a technician to reset it on-site. But sometimes the technician is not on-site, or due to extreme weather, even if the technician is on-site, he cannot handle the problem, resulting in the vehicle detector not being able to be reset in time. Summary of the Invention
[0005] This invention provides a method, apparatus, device, and readable storage medium for automatic reset of a vehicle detector, which solves the defect in the prior art that requires manual reset of the vehicle detector and realizes automatic reset of the vehicle detector.
[0006] This invention provides a method for automatic reset of a vehicle detector, comprising:
[0007] include:
[0008] Obtain the first duration corresponding to the vehicle detector when a vehicle is present;
[0009] The first duration is compared with the preset second vehicle passage self-reset trigger time. If the first duration is greater than the second vehicle passage self-reset trigger time, the first reference frequency of the vehicle detector is adjusted to the second reference frequency.
[0010] The vehicle detector is initialized according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency.
[0011] According to a method for automatically resetting a vehicle detector provided by the present invention, the step of obtaining the first duration corresponding to the presence of a vehicle in the vehicle detector includes:
[0012] Obtain the first reference frequency of the vehicle detector;
[0013] The first current frequency of the vehicle passing the vehicle detector is compared with the first reference frequency. If the difference between the first current frequency and the first reference frequency is greater than the first threshold, it is determined that there is a vehicle.
[0014] The first duration is determined based on the vehicle presence status.
[0015] According to a method for automatically resetting a vehicle detector provided by the present invention, adjusting the first reference frequency of the vehicle detector to a second reference frequency includes:
[0016] Obtain the vehicle detector's first operating frequency at the current moment and its second operating frequency at the next moment;
[0017] The frequency difference is determined based on the second operating frequency and the first operating frequency;
[0018] A second duration that is less than a preset frequency difference is determined based on the frequency difference;
[0019] The second duration is compared with the preset duration. If the second duration is greater than the preset duration, the first reference frequency is adjusted to the second reference frequency.
[0020] According to a method for automatically resetting a vehicle detector provided by the present invention, the initialization of the vehicle detector based on the second reference frequency includes:
[0021] Obtain the second current frequency of the vehicle passing the vehicle detector;
[0022] The vehicle detector is initialized based on the second current frequency and the second reference frequency.
[0023] According to a method for automatically resetting a vehicle detector provided by the present invention, the initialization of the vehicle detector based on a second current frequency and a second reference frequency includes:
[0024] The second current frequency is compared with the second reference frequency. If the difference between the second current frequency and the second reference frequency is greater than the second threshold, the third current frequency of the vehicle passing through the vehicle detector is obtained.
[0025] The third current frequency is compared with the second reference frequency. If the difference between the third current frequency and the second reference frequency is less than the second threshold, the vehicle detector is initialized.
[0026] According to the present invention, a method for automatically resetting a vehicle detector is provided. If the difference between the second current frequency and the second reference frequency is less than the second threshold, the method further determines the difference between the second current frequency and the first reference frequency. If the difference between the second current frequency and the first reference frequency is less than the first threshold, the first reference frequency is used as the reference frequency of the vehicle detector.
[0027] The present invention also provides a device for automatic reset of a vehicle detector, comprising:
[0028] The acquisition unit is used to acquire the first duration corresponding to the vehicle detector in the vehicle presence state;
[0029] The comparison unit is used to compare the first duration with the preset second vehicle passage self-reset trigger time;
[0030] The adjustment unit is used to adjust the first reference frequency of the vehicle detector to the second reference frequency when the first duration is greater than the second vehicle self-reset trigger time.
[0031] The reset unit is used to initialize the vehicle detector according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency.
[0032] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the automatic reset method of the vehicle detector as described above.
[0033] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the automatic reset method for the vehicle detector as described above.
[0034] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the automatic reset method for the vehicle detector as described above.
[0035] The present invention provides a method, apparatus, device, and readable storage medium for automatic reset of vehicle detectors. By comparing the first duration corresponding to the vehicle detector in a vehicle-occupied state with the trigger time of the second vehicle passage self-reset, it can determine whether there is an abnormal situation where the vehicle detector's current operating frequency changes due to external environmental influences. When such an abnormal situation exists, the first reference frequency of the vehicle detector is adjusted to a second reference frequency, and the vehicle detector is automatically reset according to the second reference frequency. This method eliminates the need for technicians to reset the vehicle detector on-site; the vehicle detector itself can achieve automatic reset by adjusting its own reference frequency, thereby avoiding misjudgments by the lane software and reducing the probability of toll evasion incidents. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0037] Figure 1 The equivalent circuit diagram of the vehicle detector and the ring coil above it is shown.
[0038] Figure 2 This is one of the flowcharts for the automatic reset method of the vehicle detector of the present invention;
[0039] Figure 3 This is the second flowchart of the automatic reset method for the vehicle detector of the present invention;
[0040] Figure 4 A schematic diagram of the automatic reset device for the vehicle detector provided by the present invention;
[0041] Figure 5 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0043] The subject of this invention is an electronic device that controls a vehicle detector to achieve automatic reset.
[0044] The following is combined Figure 2 The present invention describes a method for automatically resetting the vehicle detector. Figure 2 This is one of the flowcharts for the automatic reset method of the vehicle detector of the present invention. The method includes the following steps:
[0045] Step 201: Obtain the first duration corresponding to the vehicle detector in the vehicle presence state.
[0046] Specifically, when there is no vehicle on the loop inductor, the vehicle detector is initialized after being powered on or after pressing the reset button. During the initialization process, the stability of the current operating frequency of the vehicle detector is judged. If the change in the current operating frequency is small, the current frequency of the vehicle detector is used as the first reference frequency.
[0047] The following describes the process of obtaining the first duration of the vehicle detector when a vehicle is present:
[0048] Obtain the first reference frequency of the vehicle detector; compare the first current frequency of the vehicle passing the vehicle detector with the first reference frequency, and determine the vehicle presence state if the difference between the first current frequency and the first reference frequency is greater than the first threshold; determine the first duration based on the vehicle presence state.
[0049] Specifically, after determining the first reference frequency, the first current frequency of the vehicle detector will be continuously compared with the first reference frequency: if the difference between the first current frequency and the first reference frequency is less than the first threshold, it is determined that there is no vehicle; otherwise, if the difference between the first current frequency and the first reference frequency is greater than the first threshold, it is determined that there is a vehicle. Then, the first duration corresponding to the vehicle presence status is determined.
[0050] Step 202: Compare the first duration with the preset second vehicle passage self-reset trigger time. If the first duration is greater than the second vehicle passage self-reset trigger time, adjust the first reference frequency of the vehicle detector to the second reference frequency.
[0051] Specifically, the so-called secondary vehicle pass self-reset trigger time is the time period from when the current vehicle passes the vehicle detector until the next vehicle passes the same vehicle detector, during which the vehicle detector needs to be initialized to achieve automatic reset. If the external environment of the loop inductive coil changes, the current frequency of the vehicle detector will change even when no vehicle passes by the loop inductive coil (for example, when the environment of the loop inductive coil changes from dry to humid, the inductance of the loop inductive coil will also change, thus causing the current frequency of the vehicle detector to change). Therefore, the difference between the current frequency after the change and the first reference frequency will also change. It is possible that the difference between the current frequency after the change and the first reference frequency will be greater than the first threshold, causing the vehicle detector to judge that a vehicle has passed, which is an abnormal situation. In order to detect this abnormal situation in time, the present invention compares the first duration with the preset second vehicle passage self-reset trigger time. If the first duration is greater than the second vehicle passage self-reset trigger time, it means that the loop inductive coil may be abnormal. In this abnormal state, the first reference frequency is no longer accurate as the standard for judging whether a vehicle has passed. Therefore, it is necessary to adjust the operating frequency of the vehicle detector from the first reference frequency to the second reference frequency, and use the second reference frequency as the standard for judging whether a vehicle has passed, that is, to enable the second vehicle passage judgment function.
[0052] The following explains how to adjust the first reference frequency of the vehicle detector to the second reference frequency:
[0053] The system acquires the first reference frequency of the vehicle detector at the current moment and the second operating frequency at the next moment; determines the frequency difference between the second operating frequency and the first reference frequency; determines a second duration that is greater than a preset frequency difference based on the frequency difference; compares the second duration with the preset duration, and adjusts the first reference frequency to the second reference frequency if the second duration is greater than the preset duration.
[0054] Specifically, after the secondary vehicle passage detection function is activated, the vehicle detector continues to detect whether a vehicle has passed. Before determining whether a vehicle has passed, the vehicle detector first needs to find a new reference frequency caused by environmental changes. The method for finding this frequency is to determine the stability of the existing frequency. If the existing frequency has high stability, that is, the change range is small, then the current existing frequency is used as the second reference frequency.
[0055] Step 203: Initialize the vehicle detector according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency.
[0056] The following explains the implementation process of initializing the vehicle detector based on the second reference frequency:
[0057] Obtain the second current frequency of the vehicle detector;
[0058] The vehicle detector is initialized based on the second current frequency and the second reference frequency.
[0059] The automatic reset method for vehicle detectors provided by this invention automatically resets the vehicle detectors using a second current frequency, thereby avoiding misjudgments by the traffic software and reducing the probability of toll evasion incidents.
[0060] The following explains the process of initializing the vehicle detector based on the second current frequency and the second reference frequency:
[0061] Obtain the second current frequency of the vehicle detector; compare the second current frequency with the second reference frequency, and if the difference between the second current frequency and the second reference frequency is greater than the second threshold, obtain the third current frequency at which the vehicle passes the vehicle detector;
[0062] The third current frequency is compared with the second reference frequency. If the difference between the third current frequency and the second reference frequency is less than the second threshold, the vehicle detector is initialized.
[0063] Specifically, after the reference frequency of the vehicle detector is adjusted to the second reference frequency, the second reference frequency is used as the basis for determining whether two vehicles have passed. When the difference between the second current frequency and the second reference frequency is greater than the second threshold, it is determined that a second vehicle has passed. After determining that a second vehicle has passed, the current frequency is continuously compared with the second reference frequency. Therefore, the third current frequency of the vehicle passing the vehicle detector is obtained, and the third current frequency is compared with the second reference frequency. If the difference between the third current frequency and the second reference frequency is less than the second threshold, it is determined that a second vehicle has passed, and the vehicle leaves the coil. At this time, the vehicle detector will automatically reset and initialize. Conversely, if the difference between the third current frequency and the second reference frequency is greater than the second threshold, it is determined that a second vehicle has passed, and the vehicle is still above the coil.
[0064] Furthermore, if the difference between the second current frequency and the second reference frequency is less than the second threshold, then the difference between the second current frequency and the first reference frequency is further determined. If the difference between the second current frequency and the first reference frequency is less than the first threshold, then the first reference frequency is used as the reference frequency of the vehicle detector.
[0065] Specifically, if the difference between the second current frequency and the first reference frequency is less than the first threshold, it means that the vehicle detector has not crashed and there is indeed a vehicle parked on the coil. After the vehicle drives away, if the difference between the second current frequency and the first reference frequency is less than the first threshold, it means that the vehicle detector was working normally and no reset operation is required.
[0066] The present invention provides a method, apparatus, device, and readable storage medium for automatic reset of vehicle detectors. By comparing the first duration corresponding to the vehicle detector in a vehicle-occupied state with the trigger time of the second vehicle passage self-reset, it can determine whether there is an abnormal situation where the vehicle detector's current operating frequency changes due to external environmental influences. When such an abnormal situation exists, the first reference frequency of the vehicle detector is adjusted to a second reference frequency, and the vehicle detector is automatically reset according to the second reference frequency. This method eliminates the need for technicians to reset the vehicle detector on-site; the vehicle detector itself can achieve automatic reset by adjusting its own reference frequency, thereby avoiding misjudgments by the lane software and reducing the probability of toll evasion incidents.
[0067] The following is a general description of the automatic reset method for the vehicle detector of the present invention:
[0068] Figure 3 This is the second flowchart of the automatic reset method for the vehicle detector of the present invention, as shown below. Figure 3 As shown, the method includes the following steps:
[0069] When there is no vehicle on the coil, the vehicle detector will be initialized after powering on or pressing the reset button. During the initialization process, the stability of the existing frequency will be judged. If the stability of the existing frequency is high, that is, the change amplitude is small, the operating frequency at this time will be used as the first reference frequency.
[0070] After determining the first reference frequency, the first current frequency will be continuously compared with the first reference frequency: if the difference between the first current frequency and the first reference frequency is less than the first threshold, it is determined that there is no vehicle; otherwise, if the difference between the first current frequency and the first reference frequency is greater than the first threshold, it is determined that there is a vehicle.
[0071] When a vehicle is detected, the duration of the vehicle presence is calculated and compared with the set time for the second vehicle passage self-reset trigger. If the duration of the vehicle presence exceeds the set time for the second vehicle passage, the second vehicle passage judgment function is activated.
[0072] After enabling the secondary vehicle detection function, the vehicle detector continues to detect vehicles. The stability of the vehicle detector's current frequency is assessed. If the current frequency is highly stable (i.e., the fluctuation range is small), then this current frequency is used as the second reference frequency for the vehicle detector.
[0073] After determining the second reference frequency, the second current frequency of the vehicle detector will be continuously compared with the second reference frequency. If the difference between the second current frequency and the second reference frequency is less than the second threshold, the difference between the second current frequency and the first reference frequency will be further determined. If the difference between the second current frequency and the first reference frequency is less than the first threshold, the first reference frequency will be used as the reference frequency of the vehicle detector. Otherwise, if the difference between the second current frequency and the second reference frequency is greater than the second threshold, it is determined that a second vehicle has passed through, and the vehicle is still above the coil.
[0074] After a second vehicle overpass is detected, the detector will continuously compare the third current frequency of the vehicle with the second reference frequency. If the difference between the third current frequency and the second reference frequency is less than the second threshold, it is determined that a second vehicle overpass has occurred, and the vehicle leaves the coil. The detector will automatically reset and initialize. Conversely, if the difference between the third current frequency and the second reference frequency is greater than the second threshold, it is determined that a second vehicle overpass has occurred, and the vehicle is still above the coil.
[0075] The automatic reset device for the vehicle detector provided by the present invention will be described below. The automatic reset device for the vehicle detector described below can be referred to in correspondence with the automatic reset method for the vehicle detector described above.
[0076] Figure 4 This is a schematic diagram of the automatic reset device for the vehicle detector provided by the present invention, as shown below. Figure 4 As shown, the device includes:
[0077] The acquisition unit 401 is used to acquire the first duration corresponding to the vehicle detector in the vehicle presence state;
[0078] Comparison unit 402 is used to compare the first duration with the preset second vehicle pass self-reset trigger time;
[0079] The adjustment unit 403 is used to adjust the first reference frequency of the vehicle detector to the second reference frequency when the first duration is greater than the second vehicle self-reset trigger time.
[0080] The reset unit 404 is used to initialize the vehicle detector according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency.
[0081] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a method for automatically resetting the vehicle detector, the method including:
[0082] Obtain the first duration corresponding to the vehicle detector when a vehicle is present;
[0083] The first duration is compared with the preset second vehicle passage self-reset trigger time. If the first duration is greater than the second vehicle passage self-reset trigger time, the first reference frequency of the vehicle detector is adjusted to the second reference frequency.
[0084] The vehicle detector is initialized according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency.
[0085] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0086] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program that can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer is able to execute the automatic reset method for the vehicle detector provided by the above methods.
[0087] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for automatically resetting the vehicle detector provided by the methods described above.
[0088] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0089] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0090] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for automatically resetting a vehicle detector, characterized in that, include: Obtain the first duration corresponding to the vehicle detector when a vehicle is present; The first duration is compared with the preset second vehicle passage self-reset trigger time. If the first duration is greater than the second vehicle passage self-reset trigger time, the first reference frequency of the vehicle detector is adjusted to the second reference frequency. The vehicle detector is initialized according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency; The adjustment of the vehicle detector's first reference frequency to the second reference frequency includes: Obtain the vehicle detector's first operating frequency at the current moment and its second operating frequency at the next moment; The frequency difference is determined based on the second operating frequency and the first operating frequency; A second duration that is less than a preset frequency difference is determined based on the frequency difference; The second duration is compared with a preset duration. If the second duration is greater than the preset duration, the first reference frequency is adjusted to the second reference frequency. The initialization of the vehicle detector according to the second reference frequency includes: Obtain the second current frequency of the vehicle passing the vehicle detector; The second current frequency is compared with the second reference frequency. If the difference between the second current frequency and the second reference frequency is greater than the second threshold, the third current frequency of the vehicle passing through the vehicle detector is obtained. The third current frequency is compared with the second reference frequency. If the difference between the third current frequency and the second reference frequency is less than the second threshold, the difference between the second current frequency and the first reference frequency is further determined. If the difference between the second current frequency and the first reference frequency is less than the first threshold, the first reference frequency is used as the reference frequency of the vehicle detector.
2. The method for automatic reset of the vehicle detector according to claim 1, characterized in that, The first duration corresponding to the vehicle detector in the vehicle presence state includes: Obtain the first reference frequency of the vehicle detector; The first current frequency of the vehicle passing the vehicle detector is compared with the first reference frequency. If the difference between the first current frequency and the first reference frequency is greater than the first threshold, it is determined that there is a vehicle. The first duration is determined based on the vehicle presence status.
3. A device for automatically resetting a vehicle detector, characterized in that, include: The acquisition unit is used to acquire the first duration corresponding to the vehicle detector in the vehicle presence state; The comparison unit is used to compare the first duration with the preset second vehicle passage self-reset trigger time; The adjustment unit is used to adjust the first reference frequency of the vehicle detector to the second reference frequency when the first duration is greater than the second vehicle self-reset trigger time. The adjustment unit is further configured to: acquire the first operating frequency of the vehicle detector at the current moment and the second operating frequency at the next moment; determine the frequency difference based on the second operating frequency and the first operating frequency; and determine a second duration that is less than a preset frequency difference based on the frequency difference. The second duration is compared with a preset duration. If the second duration is greater than the preset duration, the first reference frequency is adjusted to the second reference frequency. The reset unit is used to initialize the vehicle detector according to the second reference frequency, so that the reference frequency of the vehicle detector is restored to the first reference frequency. The reset unit is further configured to acquire a second current frequency of the vehicle passing the vehicle detector; compare the second current frequency with the second reference frequency, and if the difference between the second current frequency and the second reference frequency is greater than a second threshold, acquire a third current frequency of the vehicle passing the vehicle detector; compare the third current frequency with the second reference frequency, and if the difference between the third current frequency and the second reference frequency is less than the second threshold, further determine the difference between the second current frequency and the first reference frequency; if the difference between the second current frequency and the first reference frequency is less than the first threshold, use the first reference frequency as the reference frequency of the vehicle detector.
4. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the automatic reset method for the vehicle detector as described in any one of claims 1 to 2.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for automatic reset of the vehicle detector as described in any one of claims 1 to 2.
6. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for automatic reset of the vehicle detector as described in any one of claims 1 to 2.