Object state determination method and device, timing method and device and electronic parking board
By combining the detection method of vibration frequency and geomagnetic intensity data, the problem of high cost of detection of object state and susceptible to interference in the prior art is solved, and the low-cost and high-accuracy object state determination is achieved, which is particularly suitable for environments such as vehicles.
Patent Information
- Application Number
- CN202411175860.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-12-27
AI Technical Summary
Among the existing object state detection methods, the acceleration detection device is costly and the vibration detection device is susceptible to interference factors, resulting in misjudgment of state. It is urgently necessary to determine the state of the object with low cost and accurate object state.
Using a method combining vibration frequency data and geomagnetic intensity data, multiple vibration frequency data and geomagnetic intensity data are obtained through a preset time length, and state judgment is made based on the threshold and proportion, reducing interference factors and improving accuracy.
It reduces the cost and power consumption of object state determination, improves detection accuracy, and reduces state misjudgment. Especially in environments such as vehicles, there are fewer interference factors in detection of geomagnetic strength data and higher accuracy.
Smart Images

Figure CN119207118A_ABST
Abstract
Description
Technical Field
[0001] This application is a divisional application of the Chinese invention patent "Object state determination method and device, timing method and device, electronic parking sign" with application number 202410874169.3 and application date 2024.07.02. Multiple embodiments of this specification relate to the field of object state determination technology, specifically to object state determination method and device, timing method and device, and electronic parking sign. Background Art
[0002] Currently, the determination of the static state or the moving state of an object is usually achieved by using an acceleration detection device or a vibration detection device arranged at the object, that is, when the presence of acceleration or vibration is detected, it is determined that the object is in a moving state.
[0003] However, the acceleration detection device has a high production cost, which increases the detection cost of object state detection. Although the production cost of a single vibration detection device is low, there are many interference factors when using it to determine the state of an object. For example, when the object is a vehicle, the vibration of the vehicle engine, the activities of people in the vehicle, and the weather factors outside the vehicle (strong wind, heavy rain, hail, etc. hitting the car window) may all cause the possibility of misjudgment of the state.
[0004] Therefore, there is an urgent need for a method that can improve the accuracy of object state determination while ensuring low state determination costs. Summary of the invention
[0005] The embodiments of this specification provide a method and device for determining the state of an object, a timing method and device, and an electronic parking sign, which can improve the accuracy of determining the state of an object while ensuring a low cost of determining the state. The technical solution is as follows: In a first aspect, an embodiment of the present specification provides a method for determining a state of an object, comprising: Acquire a plurality of vibration frequency data of the object within a first preset time length, and determine whether the object is in a stationary state or a state to be determined again based on the plurality of vibration frequency data; When it is determined that the object is in a state to be determined again, a plurality of geomagnetic intensity data of the object within a second preset time length is obtained, and the object is determined to be in a stationary state or a moving state based on the plurality of geomagnetic intensity data.
[0006] As a preferred solution, when it is determined that the object is in a stationary state based on a plurality of geomagnetic intensity data, the step of returning to the step of acquiring a plurality of vibration frequency data of the object within a first preset time length, and determining that the object is in a stationary state or in a state to be determined again based on the plurality of vibration frequency data; When it is determined that the object is in motion based on multiple geomagnetic intensity data, return to the step of acquiring multiple geomagnetic intensity data within a second preset time length at the object, and determine whether the object is in a stationary state or in motion based on the multiple geomagnetic intensity data.
[0007] As a preferred solution, the second preset time length is greater than the first preset time length.
[0008] As a preferred solution, the method of determining whether the object is in a stationary state or a state to be determined again based on multiple vibration frequency data includes: Get the preset vibration frequency threshold; Based on a plurality of vibration frequency data and a vibration frequency threshold, it is determined that the object is in a stationary state or in a state to be determined again.
[0009] As a preferred solution, the method of determining whether the object is in a stationary state or a state to be determined again based on multiple vibration frequency data and vibration frequency thresholds includes: Get the preset first proportion threshold; Determine the proportion of non-vibration data in the multiple vibration frequency data based on the multiple vibration frequency data and the vibration frequency threshold; Based on the proportion of non-vibration data and the first proportion threshold, it is determined that the object is in a stationary state or in a state to be determined again.
[0010] As a preferred solution, the method of determining whether an object is in a stationary state or in a moving state based on a plurality of geomagnetic intensity data includes: Obtaining geomagnetic intensity change threshold data; Obtain the geomagnetic intensity change data corresponding to each of the two adjacent geomagnetic intensity data; Based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all two adjacent geomagnetic intensity data, it is determined whether the object is in a stationary state or a moving state.
[0011] As a preferred solution, the step of obtaining geomagnetic intensity change threshold data includes: Obtain preset basic strength change threshold data; Obtaining ambient temperature information of the object and / or geographical location information of the object; Based on the ambient temperature information of the object and / or the geographical location information of the object, the basic intensity change threshold data is compensated to obtain the geomagnetic intensity change threshold data.
[0012] As a preferred solution, the method of determining whether an object is in a stationary state or in a moving state based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all two adjacent geomagnetic intensity data includes: Obtain a preset second proportion threshold; Based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each of all two adjacent geomagnetic intensity data, the proportion of non-magnetic change data in all geomagnetic intensity change data is determined; Based on the proportion of non-magnetic change data and the second proportion threshold, it is determined whether the object is in a stationary state or a moving state.
[0013] As a preferred solution, the method of determining whether the object is in a stationary state or a moving state based on the proportion of non-magnetic change data and the second proportion threshold value includes: Obtain the distribution of non-magnetic change data in all geomagnetic intensity change data; Based on the proportion of non-magnetic change data, the second proportion threshold, and the distribution of non-magnetic change data in all geomagnetic intensity change data, it is determined whether the object is in a stationary state or a moving state.
[0014] As a preferred solution, the method of determining whether the object is in a stationary state or in a moving state based on the proportion of non-magnetic change data, the second proportion threshold, and the distribution of non-magnetic change data in all geomagnetic intensity change data includes: Based on the proportion of non-magnetic change data and the second proportion threshold, it is determined that the object is in a stationary state or in a state of waiting for three confirmations; When it is determined that the object is in the state of waiting for three confirmations, the object is determined to be in a stationary state or a moving state based on the distribution of no magnetic change data in all geomagnetic intensity change data.
[0015] As a preferred solution, each of the plurality of geomagnetic intensity data includes X-axis geomagnetic intensity sub-data, Y-axis geomagnetic intensity sub-data, and Z-axis geomagnetic intensity sub-data; The step of obtaining the geomagnetic intensity change data between two adjacent geomagnetic intensity data comprises: Obtaining X-axis variation data between two X-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Obtaining Y-axis change data between two Y-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Obtaining Z-axis variation data between two Z-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Based on the X-axis change data, the Y-axis change data, and the Z-axis change data, the total change data of the geomagnetic intensity between two adjacent geomagnetic intensity data are obtained.
[0016] As a preferred solution, the geomagnetic intensity change threshold data includes a single-axis intensity change threshold for comparison with the X-axis change data, the Y-axis change data, and the Z-axis change data, and an intensity total change threshold for comparison with the geomagnetic intensity total change data; The method of determining the proportion of non-magnetic change data in all geomagnetic intensity change data based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data includes: Based on the single-axis intensity change threshold, the total intensity change threshold and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data, the proportion of non-magnetic change data in all geomagnetic intensity change data is determined.
[0017] In a second aspect, an embodiment of the present specification provides a timing method, including: The state of the object is confirmed by using the steps described in the first aspect of the above embodiment; The timing operation is performed based on the confirmed state of the object.
[0018] In a third aspect, an embodiment of the present specification provides an object state determination device, which uses the steps described in the first aspect of the above embodiment to confirm the object state.
[0019] In a fourth aspect, an embodiment of the present specification provides a timing device, comprising the object state determination device described in the third aspect of the above embodiment, and also comprising a timing module connected to the object state determination device.
[0020] The timing module performs a timing operation based on the object state determined by the object state determination device.
[0021] In a fifth aspect, an embodiment of this specification provides an electronic parking sign, including the timing device described in the fourth aspect of the above embodiment.
[0022] In a sixth aspect, an embodiment of the present specification provides an electronic device, comprising a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps described in the first aspect of the above embodiment.
[0023] In a seventh aspect, an embodiment of the present specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps described in the first aspect of the above embodiment.
[0024] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: The state of the object is determined by combining vibration frequency detection with geomagnetic intensity data detection. The vibration frequency detection is only used as a preliminary detection, and the main state identification is completed through geomagnetic intensity data detection. There are fewer interference factors in the process of determining the state of the object through geomagnetic intensity data, so the accuracy is higher.
[0025] Since geomagnetic intensity data detection consumes more power than vibration frequency data detection, geomagnetic intensity data detection is only performed when vibration frequency detection cannot directly determine that the object is stationary, thereby reducing power consumption in the process of determining the object state.
[0026] The production costs of the vibration detection device and the geomagnetic data detection device are both low. Even if both are used at the same time, the cost is lower than that of the state determination device using an accelerometer, thereby reducing the application cost of the object state determination device. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 It is a flowchart of a method for determining the state of an object provided in an embodiment of this specification.
[0029] Figure 2 It is a structural diagram of an object state determination device provided in an embodiment of this specification.
[0030] Figure 3 It is a structural schematic diagram of a timing device provided in an embodiment of this specification.
[0031] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.
[0033] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0034] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.
[0035] Reference Figure 1 As shown, Figure 1 A flow chart of a method for determining an object state provided in an embodiment of this specification may include the following steps: Step 102: acquiring a plurality of vibration frequency data of the object within a first preset time length, and determining whether the object is in a stationary state or a state to be determined again based on the plurality of vibration frequency data; Step 104: when it is determined that the object is in a state to be determined again, a plurality of geomagnetic intensity data of the object within a second preset time length is obtained, and based on the plurality of geomagnetic intensity data, it is determined that the object is in a stationary state or a moving state.
[0036] In one embodiment of the present specification, after step 104, the following further includes: Step 106: when it is determined that the object is in a stationary state based on the multiple geomagnetic intensity data, return to the step of acquiring multiple vibration frequency data of the object within a first preset time length, and determining that the object is in a stationary state or in a state to be determined again based on the multiple vibration frequency data; Step 108: When it is determined that the object is in motion based on multiple geomagnetic intensity data, return to execute the step of acquiring multiple geomagnetic intensity data within a second preset time length at the object, and determine whether the object is in a stationary state or in motion based on the multiple geomagnetic intensity data.
[0037] It can be understood that in the object state determination method provided in this embodiment: The state of the object is determined by combining vibration frequency detection with geomagnetic intensity data detection. The vibration frequency detection is only used as a preliminary detection, and the main state identification is completed through geomagnetic intensity data detection. There are fewer interference factors in the process of determining the state of the object through geomagnetic intensity data, so the accuracy is higher.
[0038] Since geomagnetic intensity data detection consumes more power than vibration frequency data detection, geomagnetic intensity data detection is only performed when vibration frequency detection cannot directly determine that the object is stationary, thereby reducing power consumption in the process of determining the object state.
[0039] The production costs of the vibration detection device and the geomagnetic data detection device are both low. Even if both are used at the same time, the cost is lower than that of the state determination device using an accelerometer, thereby reducing the application cost of the object state determination device.
[0040] Among them, it is necessary to add that: The object may be, but is not limited to, any drivable vehicle such as a car, a motorcycle, a bicycle, etc., and may also be, for example, a robot that plays a guiding role in a shopping mall or a museum.
[0041] The vibration frequency data can be detected by a vibration frequency detection device fixed on the object, and the geomagnetic intensity data can be detected by a geomagnetic data detection device fixed on the object.
[0042] These objects will vibrate during the movement, so the vibration detection device installed on the object can detect the corresponding vibration frequency data. Since the earth itself is a huge magnet with its own magnetic field, the geomagnetic detection device installed on it will also move during the movement of the object. As the position of the geomagnetic detection device in the earth's magnetic field changes, the geomagnetic intensity data detected by it will also change, and the change in the geomagnetic intensity data is not affected by the vibration of the engine, the activities of people in the car, and the weather outside the car (strong wind, heavy rain, hail, etc. hitting the car window). Therefore, the accuracy of determining the state of an object through a geomagnetic detection device is higher than that of determining the state of an object through a vibration detection device.
[0043] In one embodiment of the present specification, the second preset time length is greater than the first preset time length.
[0044] It is understandable that in the object state determination methods provided in the multiple embodiments of this specification, the vibration frequency detection is only used as a pre-detection, and the main state identification is completed by geomagnetic intensity data detection (it can be understood that: the object state determined by geomagnetic intensity data cannot be correctly determined by vibration frequency data). Therefore, in order to improve the detection accuracy, the second preset time length should be set to be greater than the first preset time length.
[0045] The first preset time length may be but is not limited to 3 seconds, 5 seconds, 7 seconds, etc., and the second preset time length may be but is not limited to 10 seconds, 15 seconds, 20 seconds, etc., and may be set according to actual conditions.
[0046] In one embodiment of the present specification, determining that the object is in a stationary state or a state to be determined again based on a plurality of vibration frequency data includes: Step 1022: Obtain a preset vibration frequency threshold; Step 1024: Based on the multiple vibration frequency data and the vibration frequency threshold, determine whether the object is in a stationary state or a state to be determined again.
[0047] It is understandable that the vibration frequency detection is only used as a preliminary detection, so it only needs to complete the part of the work that can make an accurate judgment.
[0048] Therefore, in this embodiment, a vibration frequency threshold is preset, and the vibration frequency threshold can be understood as a lower limit value for distinguishing whether an object is in a stationary state.
[0049] That is, if the vibration frequency data is lower than the vibration frequency threshold at this time, the object must be in a stationary state, which can be set specifically according to actual conditions.
[0050] In one embodiment of the present specification, the determining that the object is in a stationary state or a state to be determined again based on multiple vibration frequency data and vibration frequency thresholds includes: Step 10242: Obtain a preset first proportion threshold; Step 10244: Determine the proportion of non-vibration data in the multiple vibration frequency data based on the multiple vibration frequency data and the vibration frequency threshold; Step 10246: Based on the proportion of non-vibration data and the first proportion threshold, determine whether the object is in a stationary state or a state to be determined again.
[0051] It is understandable that the vibration frequency data with a vibration frequency lower than the vibration frequency threshold in multiple vibration frequency data can be considered as no vibration data. Therefore, when the proportion of no vibration data in all vibration frequency data is greater than a certain value, it can be basically considered that the object is stationary within the first preset time length. Even if some vibration data appears, it can basically be considered that it is due to the above-mentioned factors such as engine running vibration, factors of occupant activity in the vehicle, and factors of weather outside the vehicle. The first proportion threshold can be, but is not limited to, 80%, 85%, etc., and can be set according to actual conditions.
[0052] It can also be understood that when the proportion of no-vibration data in all vibration frequency data is less than a certain value, although it may be the vibration caused by the real movement of the object, it may still be the vibration of the object caused by the continuous influence of the above-mentioned engine running vibration factors, the activity factors of people in the car, and the weather factors outside the car. Therefore, at this time, it is not directly determined whether the object is in a state of motion, but a secondary confirmation is continued based on the geomagnetic intensity data.
[0053] In one embodiment of the present specification, determining whether the object is in a stationary state or in a moving state based on a plurality of geomagnetic intensity data includes: Step 1042, obtaining geomagnetic intensity change threshold data; Step 1044, obtaining the geomagnetic intensity change data corresponding to each of all two adjacent geomagnetic intensity data; Step 1046: Determine whether the object is in a stationary state or in a moving state based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data.
[0054] Based on the above, it can be understood that when an object is in motion, the geomagnetic detection device fixed on it also moves. As a result, due to the change in the position of the geomagnetic detection device in the earth's magnetic field, the geomagnetic intensity data detected by it will also change. Therefore, the change in the geomagnetic intensity data can be used to determine whether the object is in a stationary state or in motion.
[0055] In addition, since the earth's magnetic field itself has a certain degree of weak fluctuation, even if the geomagnetic detection device does not move, weak fluctuations in the geomagnetic data may occur due to such factors.
[0056] Therefore, in this embodiment, the geomagnetic intensity change threshold data can be understood as a lower limit value for determining whether an object is moving, that is, fluctuations less than the lower limit value are definitely not considered to be the object moving, and the object is directly considered to be in a stationary state. If there is a fluctuation greater than the lower limit value, it is considered that the object is moving.
[0057] In one embodiment of the present specification, the obtaining of geomagnetic intensity change threshold data includes: Step 10422: Obtain preset basic intensity change threshold data (Note: the basic intensity change threshold data can be understood as intensity change threshold data corresponding to a certain temperature and a certain geographical location); Step 10424: Obtaining the ambient temperature information of the object and / or the geographical location information of the object; Step 10426: Based on the ambient temperature information of the object and / or the geographical location information of the object, the basic intensity change threshold data is compensated to obtain the geomagnetic intensity change threshold data.
[0058] It is understandable that due to the temperature dependence of the magnetic materials in the geomagnetic data detection device, the magnetic properties of these materials will change with the change of temperature. Therefore, if the geomagnetic detection device is located in a different ambient temperature, even if it changes the same position, the detected geomagnetic intensity change data will also have certain differences.
[0059] It is also understandable that since the Earth's magnetic field is not uniform in different regions, for example, near the equator, the magnetic field strength is small and the variation is small; near the poles, the magnetic field strength is large and the variation is large. Therefore, the geomagnetic detection device is located in different geographical locations, and even if it changes the same position distance, the detected geomagnetic intensity change data will have certain differences.
[0060] Therefore, in this embodiment, based on the ambient temperature information of the object and / or the geographical location information of the object, the basic intensity change threshold data is compensated to obtain the geomagnetic intensity change threshold data, and then when it is subsequently determined whether the object is in a stationary state or a moving state, the influence caused by the change of ambient temperature and / or geographical location is eliminated.
[0061] In one embodiment of the present specification, determining whether the object is in a stationary state or in a moving state based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all two adjacent geomagnetic intensity data includes: Step 10462: Obtain a preset second proportion threshold; Step 10464: Determine the proportion of non-magnetic change data in all geomagnetic intensity change data based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each of all two adjacent geomagnetic intensity data. Step 10466: Determine whether the object is in a stationary state or in a moving state based on the proportion of non-magnetic change data and a second proportion threshold.
[0062] It is understandable that even if the geomagnetic detection device does not move, the factors that cause the fluctuation of geomagnetic detection data, in addition to the above-mentioned weak fluctuations in the earth's magnetic field, may also be due to the existence of some metal objects in the surrounding environment of the object, such as the movement of metal objects. The surrounding metal objects pass by and thus affect the magnetic field environment around the object.
[0063] It can also be understood that if such metal objects pass by the object at a slow speed, their impact on the earth's magnetic field around the object to be confirmed will be small. Therefore, the determination of the object's state will only be affected when such metal objects pass by the object to be confirmed quickly.
[0064] When passing by quickly, the fluctuation of geomagnetic detection data is usually larger, which is greater than the geomagnetic intensity change threshold data. Therefore, in this case, if the state judgment is only based on the above-mentioned geomagnetic intensity change threshold data, it is easy to misjudge that the object is moving.
[0065] And because such metal objects pass by at a relatively fast speed, the fluctuation of geomagnetic data caused by this reason should last for a relatively short time, that is, such fluctuation phenomenon should account for a relatively small proportion of the entire state confirmation process.
[0066] Therefore, in this embodiment, based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data, the proportion of non-magnetic change data in all geomagnetic intensity change data is determined, and based on the proportion of non-magnetic change data and the second proportion threshold, it is determined that the object is in a stationary state or in a moving state. For example: when the proportion of non-magnetic change data is greater than the second proportion threshold, it is determined that the object is in a stationary state, and when the proportion of non-magnetic change data is less than the second proportion threshold, it is determined that the object is in a moving state.
[0067] In order to ensure the accuracy of the state determination, the second percentage threshold may be, but is not limited to, set to 80%, 85%, etc. The specific setting may be made according to the actual situation.
[0068] In this case, there is no magnetic variation data in all geomagnetic intensity variation data, and the magnetic variation data may be arranged as follows: No magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, magnetic variable data, magnetic variable data, magnetic variable data, magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data.
[0069] In one embodiment of the present specification, determining whether the object is in a stationary state or a moving state based on the proportion of non-magnetic change data and the second proportion threshold includes: Step 104662, obtaining the distribution of non-magnetic change data in all geomagnetic intensity change data; Step 104664: Determine whether the object is in a stationary state or in a moving state based on the proportion of non-magnetic change data, the second proportion threshold, and the distribution of non-magnetic change data in all geomagnetic intensity change data.
[0070] It is understandable that if there are a large number of metal objects passing by in the surrounding area, even if the objects are stationary, the proportion of the non-magnetic change data may still be less than the second proportion threshold. At this time, if the state is determined only based on the proportion, misjudgment may occur.
[0071] In this case, if the object is in a stationary state, the distribution of the data without magnetic change in all the geomagnetic intensity change data should be intermittent. Therefore, in this embodiment, the distribution of the data without magnetic change in all the geomagnetic intensity change data is also considered.
[0072] Therefore, in one embodiment of the present specification, determining whether the object is in a stationary state or in a moving state based on the proportion of non-magnetic change data, the second proportion threshold, and the distribution of non-magnetic change data in all geomagnetic intensity change data includes: Step 1046642: based on the proportion of non-magnetic change data and the second proportion threshold, determine that the object is in a stationary state or in a state of waiting for three confirmations; That is, it can be understood that when the proportion of non-magnetic change data is greater than the second proportion threshold, the object is determined to be in a stationary state. When the proportion of non-magnetic change data is less than the second proportion threshold, the object is not directly determined to be in a moving state, but is first determined to be in a state awaiting three confirmations.
[0073] Step 1046644: When it is determined that the object is in the state of waiting for three confirmations, based on the distribution of no magnetic change data in all geomagnetic intensity change data, it is determined whether the object is in a stationary state or in a moving state.
[0074] That is, when the distribution of no magnetic change data in all geomagnetic intensity change data appears intermittently, it is still possible to determine that the object is stationary.
[0075] It is understandable that the object itself may also have intermittent start and stop operations during the movement, so an intermittent threshold corresponding to the number of intermittent starts and stops that may occur during the movement of an object can be set here (Note: that is, under normal circumstances, the maximum number of normal starts and stops that may occur within the second preset time length).
[0076] Further, the determining whether the object is in a stationary state or in a moving state based on the distribution of the non-magnetic change data in all the geomagnetic intensity change data includes: Based on the number of intermittent occurrences of no magnetic change data in all geomagnetic intensity change data and the intermittent number threshold, it is determined whether the object is in a stationary state or a moving state.
[0077] That is, it can be understood that when the number of intermittent occurrences of no magnetic change data in all geomagnetic intensity change data is greater than the intermittent number threshold, the object is determined to be stationary. Because the object cannot complete so many start and stop operations in a short period of time, the intermittent multiple occurrences of no magnetic change data at this time are most likely because multiple metal objects pass by the object in a short period of time, which in turn causes multiple intermittent short-term effects on the magnetic field at the object's location.
[0078] In this case, there is no magnetic variation data in all geomagnetic intensity variation data, and the magnetic variation data may be arranged as follows: No magnetic variable data, no magnetic variable data, no magnetic variable data, magnetic variable data, magnetic variable data, magnetic variable data, no magnetic variable data, no magnetic variable data, magnetic variable data, magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data, no magnetic variable data.
[0079] For example: Assuming that the second preset time is 10s and the intermittent number threshold is 1, that is, assuming that the number of starts and stops within 10s during normal movement of the object will not be greater than 1 time, the number of intermittent appearances of no magnetic change data should not be greater than 1 time (Note: one intermittent appearance can be understood as: no magnetic change data appears-no magnetic change data disappears-no magnetic change data appears).
[0080] According to the above arrangement, it can be known that the number of intermittent occurrences of the non-magnetic change data is 2, which is greater than the intermittent number threshold 1, so it is still considered that the object is in a stationary state.
[0081] In one embodiment of the present specification, each of the plurality of geomagnetic intensity data includes X-axis geomagnetic intensity sub-data, Y-axis geomagnetic intensity sub-data, and Z-axis geomagnetic intensity sub-data; The step of obtaining the geomagnetic intensity change data between two adjacent geomagnetic intensity data comprises: Step 10442, obtaining X-axis change data between two X-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Step 10444, obtaining Y-axis change data between two Y-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Step 10446, obtaining Z-axis change data between two Z-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Step 10448: Based on the X-axis change data, the Y-axis change data, and the Z-axis change data, obtain the total change data of the geomagnetic intensity between two adjacent geomagnetic intensity data.
[0082] It can be understood that in this embodiment, the change of geomagnetic intensity data is evaluated from multiple directions, including X-axis change data, Y-axis change data, Z-axis change data, and total geomagnetic intensity change data, so that the final state is determined more accurately.
[0083] In one embodiment of the present specification, the geomagnetic intensity change threshold data includes a single-axis intensity change threshold for comparison with the X-axis change data, the Y-axis change data, and the Z-axis change data, respectively, and an intensity total change threshold for comparison with the geomagnetic intensity total change data; The method of determining the proportion of non-magnetic change data in all geomagnetic intensity change data based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data includes: Based on the single-axis intensity change threshold, the total intensity change threshold and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data, the proportion of non-magnetic change data in all geomagnetic intensity change data is determined.
[0084] That is, in this embodiment, not only a uniaxial strength change threshold is set for evaluation in a uniaxial direction, but also a total strength change threshold is set for overall evaluation, so as to make the determination of the non-magnetic change data more accurate.
[0085] It can be set as follows: when the axis change data in any axis direction is greater than the single-axis intensity change threshold or the total change data of the geomagnetic intensity is greater than the total intensity change threshold, it is determined to be magnetic change data.
[0086] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0087] The embodiment of the present specification also provides a timing method, which includes: The object state is confirmed by using the object state determination method described in the above embodiment; The timing operation is performed based on the confirmed state of the object.
[0088] Specifically, it can be set, but not limited to, to start timing when the object is determined to be stationary, and stop timing when the object is determined to be in motion; or start timing when the object is determined to be in motion, and stop timing when the object is determined to be stationary.
[0089] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the timing method embodiment, since it is basically similar to the object state determination method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the object state determination method embodiment.
[0090] See next Figure 2 , Figure 2 A schematic diagram of the structure of an object state determination device provided in an embodiment of this specification is shown.
[0091] The object state determination device 200 includes a first determination module 201 and a second determination module 202; The first determination module 201 acquires a plurality of vibration frequency data of the object within a first preset time length, and determines whether the object is in a stationary state or a state to be determined again based on the plurality of vibration frequency data; The second determination module 202, when determining that the object is in the state to be determined again, obtains a plurality of geomagnetic intensity data of the object within a second preset time length, and determines whether the object is in a stationary state or a moving state based on the plurality of geomagnetic intensity data.
[0092] and: When the second determination module 202 determines that the object is in a stationary state, the first determination module 201 continues to execute the step of acquiring a plurality of vibration frequency data of the object within a first preset time length, and determining that the object is in a stationary state or in a state to be determined again based on the plurality of vibration frequency data; When the second determination module 202 determines that the object is in motion, the second determination module 202 continues to execute the step of acquiring multiple geomagnetic intensity data within a second preset time length at the object, and determining whether the object is stationary or in motion based on the multiple geomagnetic intensity data.
[0093] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the object state determination device, since it is basically similar to the embodiment of the object state determination method, the description is relatively simple, and the relevant parts can be referred to the partial description of the embodiment of the object state determination method.
[0094] See next Figure 3 , Figure 3 A schematic structural diagram of a timing device provided in an embodiment of this specification is shown.
[0095] The timing device 300 includes the object state determination device 200 described in the above embodiment, and also includes a timing module 301 connected to the state determination device 200; The timing module 301 performs a timing operation based on the object state determined by the object state determination device.
[0096] Specifically, it can be set, but not limited to, to start timing when the object is determined to be stationary, and stop timing when the object is determined to be in motion; or start timing when the object is determined to be in motion, and stop timing when the object is determined to be stationary.
[0097] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the timing device embodiment, since it is basically similar to the object state determination method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the object state determination method embodiment.
[0098] The embodiments of this specification also provide an electronic parking sign, which includes the timing device 300 described in the above embodiments. The electronic parking sign is used in parking scenarios where an automatic parking time timing system is not set (for example, the system currently records the parking time by automatically identifying the license plate when the vehicle enters and exits the parking lot). At this time, the object described in the above multiple embodiments is the vehicle, and the metal object described in the above multiple embodiments is other passing vehicles. In such parking scenarios, when the user drives into the parking lot and parks the car, a self-service timing operation should be performed. Therefore, after the electronic parking sign described in this embodiment is set in the car, the timing device in the electronic parking sign can automatically time according to the state of the vehicle, specifically, when the vehicle is determined to be stationary, the timing starts, and when the vehicle is determined to be in motion, the timing stops. Further, the subsequent parking fee collection work can be performed based on the timing duration of the electronic parking sign.
[0099] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the electronic parking sign embodiment, since it is basically similar to the object state determination method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the object state determination method embodiment.
[0100] See also Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.
[0101] like Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0102] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.
[0103] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0104] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0105] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLC. The processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.
[0106] Among them, the memory 405 may include RAM or ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be at least one storage device located away from the aforementioned processor 401. The memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an object state determination application. The processor 401 may be used to call the object state determination application stored in the memory 405 and execute the steps of the object state determination method mentioned in the aforementioned embodiment.
[0107] The embodiments of this specification also provide a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above-mentioned method for determining the state of an object. If the components of the above-mentioned electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.
[0108] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).
[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.
[0110] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.
Claims
1. A method for determining an object state, characterized in that: include: Acquire a plurality of vibration frequency data of the object within a first preset time length, and determine whether the object is in a stationary state or a state to be determined again based on the plurality of vibration frequency data; When it is determined that the object is in a state to be determined again, a plurality of geomagnetic intensity data of the object within a second preset time length is obtained, and the object is determined to be in a stationary state or a moving state based on the plurality of geomagnetic intensity data.
2. The object state determination method according to claim 1, characterized in that: When it is determined that the object is in a stationary state based on the multiple geomagnetic intensity data, returning to the step of acquiring multiple vibration frequency data of the object within a first preset time length, and determining that the object is in a stationary state or in a state to be determined again based on the multiple vibration frequency data; When it is determined that the object is in motion based on multiple geomagnetic intensity data, return to the step of acquiring multiple geomagnetic intensity data within a second preset time length at the object, and determine whether the object is in a stationary state or in motion based on the multiple geomagnetic intensity data.
3. The object state determination method according to claim 1, characterized in that: The second preset time length is greater than the first preset time length.
4. The object state determination method according to claim 1, characterized in that: The step of determining whether the object is in a stationary state or a state to be determined again based on a plurality of vibration frequency data includes: Get the preset vibration frequency threshold; Based on a plurality of vibration frequency data and a vibration frequency threshold, it is determined that the object is in a stationary state or in a state to be determined again.
5. The object state determination method according to claim 4, characterized in that: The step of determining whether the object is in a stationary state or a state to be determined again based on the plurality of vibration frequency data and the vibration frequency threshold comprises: Get the preset first proportion threshold; Determine the proportion of non-vibration data in the multiple vibration frequency data based on the multiple vibration frequency data and the vibration frequency threshold; Based on the proportion of non-vibration data and the first proportion threshold, it is determined that the object is in a stationary state or in a state to be determined again.
6. The object state determination method according to claim 1, characterized in that: The determining whether the object is in a stationary state or a moving state based on a plurality of geomagnetic intensity data comprises: Obtaining geomagnetic intensity change threshold data; Obtain the geomagnetic intensity change data corresponding to each of the two adjacent geomagnetic intensity data; Based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all two adjacent geomagnetic intensity data, it is determined whether the object is in a stationary state or a moving state.
7. The object state determination method according to claim 6, characterized in that: The step of obtaining geomagnetic intensity change threshold data includes: Obtain preset basic strength change threshold data; Obtaining ambient temperature information of the object and / or geographical location information of the object; Based on the ambient temperature information of the object and / or the geographical location information of the object, the basic intensity change threshold data is compensated to obtain the geomagnetic intensity change threshold data.
8. The object state determination method according to claim 6, characterized in that: The method of determining whether the object is in a stationary state or in a moving state based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all two adjacent geomagnetic intensity data includes: Obtain a preset second proportion threshold; Based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each of all two adjacent geomagnetic intensity data, the proportion of non-magnetic change data in all geomagnetic intensity change data is determined; Based on the proportion of non-magnetic change data and the second proportion threshold, it is determined whether the object is in a stationary state or a moving state.
9. The object state determination method according to claim 8, characterized in that: The determining whether the object is in a stationary state or a moving state based on the proportion of non-magnetic change data and the second proportion threshold value includes: Obtain the distribution of non-magnetic change data in all geomagnetic intensity change data; Based on the proportion of non-magnetic change data, the second proportion threshold, and the distribution of non-magnetic change data in all geomagnetic intensity change data, it is determined whether the object is in a stationary state or a moving state.
10. The object state determination method according to claim 9, characterized in that: The determining whether the object is in a stationary state or in a moving state based on the proportion of the non-magnetic change data, the second proportion threshold, and the distribution of the non-magnetic change data in all the geomagnetic intensity change data includes: Based on the proportion of non-magnetic change data and the second proportion threshold, it is determined that the object is in a stationary state or in a state of waiting for three confirmations; When it is determined that the object is in the state of waiting for three confirmations, the object is determined to be in a stationary state or a moving state based on the distribution of no magnetic change data in all geomagnetic intensity change data.
11. The object state determination method according to claim 8, characterized in that: Each of the plurality of geomagnetic intensity data includes X-axis geomagnetic intensity sub-data, Y-axis geomagnetic intensity sub-data, and Z-axis geomagnetic intensity sub-data; Obtain the geomagnetic intensity change data between two adjacent geomagnetic intensity data, including: Obtaining X-axis variation data between two X-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Obtaining Y-axis change data between two Y-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Obtaining Z-axis variation data between two Z-axis geomagnetic intensity sub-data corresponding to two adjacent geomagnetic intensity data; Based on the X-axis change data, the Y-axis change data, and the Z-axis change data, the total change data of the geomagnetic intensity between two adjacent geomagnetic intensity data are obtained.
12. The object state determination method according to claim 11, characterized in that: The geomagnetic intensity change threshold data includes a single-axis intensity change threshold for comparison with the X-axis change data, the Y-axis change data, and the Z-axis change data, and a total intensity change threshold for comparison with the geomagnetic intensity total change data; The method of determining the proportion of non-magnetic change data in all geomagnetic intensity change data based on the geomagnetic intensity change threshold data and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data includes: Based on the single-axis intensity change threshold, the total intensity change threshold and the geomagnetic intensity change data corresponding to each other between all adjacent geomagnetic intensity data, the proportion of non-magnetic change data in all geomagnetic intensity change data is determined.
13. A timing method, characterized in that: include: Confirming the state of the object using the object state determination method according to any one of claims 1 to 12; The timing operation is performed based on the confirmed state of the object.
14. An object state determination device, characterized in that: The object state is confirmed using the object state determination method as described in any one of claims 1 to 12.
15. A timing device, characterized in that comprising the object state determination device as claimed in claim 14, further comprising a timing module connected to the object state determination device; The timing module performs a timing operation based on the object state determined by the object state determination device.
16. Electronic parking sign, characterized in that: Comprising a timing device as claimed in claim 15.
17. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 12.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.