Monitoring methods, devices, electronic equipment and readable storage media of target objects
By setting entry and exit counters and comparing the timestamps of the location data, the system can determine whether a vehicle has entered or left the target area. This solves the accuracy problem caused by out-of-order location data and improves the accuracy of target location data and the reliability of alarm tasks.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-15
- Publication Date
- 2026-04-03
AI Technical Summary
Vehicle location data may be out of order in mountainous areas, tunnels, or areas obscured by tall buildings, making it impossible to accurately determine the location data when entering or leaving the target area, thus affecting the accuracy of alarms and downstream tasks.
By setting entry and exit counters, the timestamps of location data are compared to determine whether a target object has entered or left the target area, and entry or exit location data is confirmed only when preset threshold conditions are met.
Even when location data is not strictly ordered, it improves the accuracy of target entry and exit location data, thereby enhancing the accuracy of alarms and downstream tasks.
Smart Images

Figure CN117171232B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, and in particular to a method, apparatus, electronic device, and readable storage medium for monitoring a target object. Background Technology
[0002] In real-world scenarios, vehicles frequently enter mountainous areas, tunnels, wastelands, or areas obstructed by tall buildings. This can cause the collected vehicle location data to be out of order within a certain timeframe due to network latency and other factors. This out-of-order location data makes it impossible to accurately determine the earliest entry or exit point of the vehicle from the target area, thus affecting the accuracy of downstream tasks such as alarms and alerts based on entry or exit location data. Summary of the Invention
[0003] According to a first aspect of this disclosure, a method for monitoring a target object is provided, comprising: acquiring first location data of the target object; when it is determined that the first location data is located in a target area, comparing the timestamp of the first location data with the timestamp of initial entry location data; when it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data, incrementing the entry count value of an entry counter; and when it is determined that the entry count value is a first preset threshold, using the initial entry location data as the target entry location data of the target object entering the target area.
[0004] According to a second aspect of this disclosure, a method for monitoring a target object is provided, comprising: acquiring second location data of the target object; when it is determined that the second location data is not located in the target area, comparing the timestamp of the second location data with the timestamp of initial departure location data; when it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data, incrementing the departure count value of a departure counter; and when it is determined that the departure count value is a second preset threshold, using the initial departure location data as the target departure location data of the target object leaving the target area.
[0005] According to a third aspect of this disclosure, a monitoring device for a target object is provided, comprising: a first acquisition unit for acquiring first location data of the target object; a first comparison unit for comparing a timestamp of the first location data with a timestamp of initial entry location data when it is determined that the first location data is located in a target area; a first increment unit for incrementing an entry counter value when it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data; and a first processing unit for using the initial entry location data as target entry location data of the target object entering the target area when it is determined that the entry count value is a first preset threshold.
[0006] According to a fourth aspect of this disclosure, a monitoring device for a target object is provided, comprising: a second acquisition unit for acquiring second location data of the target object; a second comparison unit for comparing the timestamp of the second location data with the timestamp of initial departure location data when it is determined that the second location data is not located in a target area; a second increment unit for incrementing the departure count value of a departure counter when it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data; and a second processing unit for using the initial departure location data as target departure location data of the target object leaving the target area when it is determined that the departure count value is a second preset threshold.
[0007] According to a fifth aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method as described above.
[0008] According to a sixth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described above.
[0009] According to a seventh aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method described above.
[0010] As can be seen from the above technical solutions, this disclosure, by setting an entry counter and an exit counter, and increasing the entry count value of the entry counter and the exit count value of the exit counter based on the comparison results between the timestamps of different location data, can obtain the target entry location data when the target object first enters the target area and the target exit location data when the target object first leaves the target area. In the case that the strict order of the location data cannot be guaranteed, the accuracy of the obtained target entry location data and target exit location data can be improved, thereby improving the accuracy of downstream tasks such as alarms and prompts based on the target entry location data and target exit location data.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0012] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0013] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure;
[0014] Figure 2 This is a schematic diagram according to the second embodiment of the present disclosure;
[0015] Figure 3 This is a schematic diagram according to the third embodiment of the present disclosure;
[0016] Figure 4 This is a schematic diagram according to the fourth embodiment of the present disclosure;
[0017] Figure 5 This is a schematic diagram according to the fifth embodiment of the present disclosure;
[0018] Figure 6 This is a schematic diagram according to the sixth embodiment of the present disclosure;
[0019] Figure 7 This is a block diagram of an electronic device used to implement the monitoring method for the target object in the embodiments of this disclosure. Detailed Implementation
[0020] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and mechanisms are omitted in the following description.
[0021] Figure 1 This is a schematic diagram based on the first embodiment of this disclosure. (See diagram below.) Figure 1 As shown, the target object monitoring method in this embodiment specifically includes the following steps:
[0022] S101, Obtain the first position data of the target object;
[0023] S102. If it is determined that the first location data is located in the target area, the timestamp of the first location data is compared with the timestamp of the initial entry into the location data.
[0024] S103. If it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data, increment the entry count value of the entry counter.
[0025] S104. If the entry count value is determined to be a first preset threshold, the initial entry position data is used as the target entry position data for the target object to enter the target area.
[0026] The target object monitoring method of this embodiment, after determining that the first location data of the target object is located in the target area, firstly compares the timestamp of the first location data with the timestamp of the initial entry location data. Then, if it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data, the entry count value of the entry counter is increased. Finally, if the entry count value is determined to be a first preset threshold, the initial entry location data is used as the target entry location data of the target object entering the target area. This embodiment, by setting an entry counter and increasing the entry count value of the entry counter according to the comparison results between the timestamps of different location data, can obtain the target entry location data when the target object first enters the target area. In the case that the strict order of the location data cannot be guaranteed, the accuracy of the obtained target entry location data can be improved, thereby improving the accuracy of downstream tasks such as alarms and prompts based on the target entry location data.
[0027] In this embodiment, the target object can be a vehicle, a robot, or other similar object, and the target area can be a pre-set electronic fence or monitoring area. Different electronic fences or monitoring areas correspond to different geographical ranges. Therefore, this embodiment can achieve the purpose of monitoring whether a vehicle or robot enters a pre-set electronic fence or monitoring area.
[0028] In this embodiment, the first location data of the target object obtained by executing S101 can be GPS data collected by the corresponding module in the target object or by an external device. In addition to latitude and longitude information, the first location data further includes the timestamp when the location data was collected.
[0029] Therefore, in this embodiment, different first location data can be obtained sequentially according to the order of timestamps, and then different first location data can be recorded into the monitoring queue according to the order of timestamps; different target areas can correspond to different monitoring queues. In this embodiment, the identification information of the target area can be used as the identification information of its corresponding monitoring queue, and different location data in the monitoring queue correspond to different target objects.
[0030] It is understood that after obtaining the first position data of the target object in S101, this embodiment can further create an entry counter corresponding to the target object and use the identification information of the target object as the identification information of the created entry counter.
[0031] In this embodiment, after executing S101 to obtain the first location data of the target object, S102 is executed to compare the timestamp of the first location data with the timestamp of the initial entry into the location data if it is determined that the first location data is located in the target area.
[0032] In this embodiment, when executing S102 to determine whether the first location data is located in the target area, the geographical range corresponding to the target area can be obtained first, and then it can be determined whether the first location data is located within the obtained geographical range. If so, the first location data is determined to be located in the target area; otherwise, the first location data is determined not to be located in the target area.
[0033] In this embodiment, the target area can be preset, and the number of target areas can be one or more. Therefore, when executing S102, this embodiment can obtain the geographical range corresponding to each target area, and then determine whether the first location data is located in the target area based on the different geographical ranges obtained.
[0034] In this embodiment, after executing S102 to determine that the first location data is located in the target area, the timestamp of the first location data can be directly compared with the timestamp of the initial entry location data. In this embodiment, the initial entry location data can be the first location data located in the entry monitoring queue. In this embodiment, the initial entry location data can be stored separately or obtained according to the entry monitoring queue.
[0035] However, in some real-world scenarios, the first position data obtained by executing S101 in this embodiment may be noisy data. If the first position data is directly compared with the initial entry position data, the accuracy of the target entry position data determined in subsequent steps may be reduced.
[0036] Therefore, when performing S102 to compare the timestamp of the first location data with the timestamp of the initial entry location data, this embodiment may further include the following: obtaining the location data whose timestamp was previously compared with the initial entry location data, as the first historical location data; obtaining the first driving speed of the target object based on the first location data and the obtained first historical location data. In this embodiment, the driving distance of the target object can be obtained based on the latitude and longitude information of the two location data, and the driving time of the target object can be obtained based on the timestamps of the two location data, and then the first driving speed can be obtained based on the driving distance and driving time; if it is determined that the obtained first driving speed is less than or equal to a preset driving speed threshold, the timestamp of the first location data is compared with the timestamp of the initial entry location data.
[0037] In other words, this embodiment obtains a first driving speed based on the previous position data compared with the initial entry position data and the current first position data, and then determines whether the current first position data is noise data based on the obtained first driving speed, which can improve the accuracy of the comparison between position data, and thus improve the accuracy of the final obtained target entry position data.
[0038] It is understood that in this embodiment, when executing S102, if there is no initial entry location data (i.e., the monitoring queue does not contain any location data), there is no need to compare timestamps, and the currently acquired first location data is used as the initial entry location data.
[0039] In addition, if this embodiment determines in S102 that the first driving speed is greater than the preset driving speed threshold, the current first position data is discarded as noise data, and then the next acquired first position data is processed accordingly.
[0040] In this embodiment, after performing S102 to compare the timestamp of the first location data with the timestamp of the initial entry location data, S103 is performed to increment the entry count value of the entry counter if it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data.
[0041] In other words, this embodiment only increments the entry counter value when the timestamp of the currently acquired first location data is determined to be after the timestamp of the initial entry location data. The entry counter value is incremented by 1 each time, which can improve the accuracy of increasing the entry counter value.
[0042] When executing S103, this embodiment may also include the following: if it is determined that the timestamp of the first position data is earlier than the timestamp of the initial entry position data, the initial entry position data is replaced with the acquired first position data, and the entry count value of the entry counter is set to 1.
[0043] In other words, in this embodiment, when the timestamp of the currently acquired first location data is earlier than the timestamp of the initial entry location data, it means that the currently acquired first location data was acquired before the initial entry location data. That is, the currently acquired first location data is more likely to be the location data corresponding to the earliest entry of the target object into the target area compared to the initial entry location data. Therefore, this embodiment replaces the initial entry location data with the currently acquired first location data and further resets the entry count value of the entry counter to 1, which can improve the accuracy of the initial entry location data.
[0044] It is understood that this embodiment can also lock the initial entry position data to prevent any other operations from being performed on the initial entry position data except for replacing it with the currently acquired first position data, thus ensuring that the initial entry position data is not affected or tampered with by other information.
[0045] In this embodiment, after executing S103 to increase the entry count value of the entry counter, S104 is executed. If the entry count value is determined to be a first preset threshold, the initial entry position data is used as the target entry position data of the target object entering the target area.
[0046] In this embodiment, the first preset threshold can be set according to actual needs. For example, the first preset threshold can be 3, 5, 7, etc. That is to say, in this embodiment, when the entry count value is determined to be 3, 5 or 7, the current initial entry position data is used as the target entry position data of the target object entering the target area. The target entry position data is used to represent the position data when the target object first enters the target area.
[0047] After executing S104 to obtain the target entry location data, this embodiment can use the target object and the target entry location data of the target object as input data for downstream tasks, thereby achieving the purpose of alarming and prompting when the target object enters the target area.
[0048] After executing S104 to obtain the target entry location data, this embodiment can also store the target entry location data according to the target object's identification information, so as to facilitate its retrieval in subsequent use.
[0049] It is understood that after executing S104 to obtain the target entry location data, this embodiment can also delete the entry counter corresponding to the target object and the entry monitoring queue corresponding to the target object.
[0050] Figure 2 This is a schematic diagram according to the second embodiment of this disclosure. (See diagram below.) Figure 2 As shown, the target object monitoring method of this embodiment may further include the following steps:
[0051] S201. Obtain the second location data of the target object;
[0052] S202. If it is determined that the second location data is not located in the target area, the timestamp of the second location data is compared with the timestamp of the initial departure location data.
[0053] S203. If it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data, increment the departure count value of the departure counter.
[0054] S204. If the departure count value is determined to be a second preset threshold, the initial departure position data is used as the target departure position data of the target object leaving the target area.
[0055] The target object monitoring method of this embodiment, after determining that the second location data of the target object is not located in the target area, first compares the timestamp of the second location data with the timestamp of the initial departure location data. Then, if it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data, the departure count value of the departure counter is increased. Finally, if the departure count value is determined to be a second preset threshold, the initial departure location data is used as the target departure location data of the target object leaving the target area. This embodiment, by setting a departure counter and increasing the departure count value of the departure counter according to the comparison results between the timestamps of different location data, can obtain the target departure location data when the target object leaves the target area earliest. In the case that the strict order of the location data cannot be guaranteed, the accuracy of the obtained target departure location data can be improved, thereby improving the accuracy of downstream tasks such as alarms and prompts based on the target departure location data.
[0056] It is understood that the process of monitoring whether the target object leaves the target area in this embodiment can be carried out after it is determined that the target object has entered the target area. That is, the target object monitoring method in this embodiment can continue after the monitoring process in the previous embodiment is completed, thereby completing the monitoring of the entire process of the target object entering and leaving the target area.
[0057] The second location data of the target object obtained by executing S201 in this embodiment can be GPS data collected by the corresponding module in the target object or by an external device. In addition to latitude and longitude information, the second location data further includes a timestamp when the location data was collected. In this embodiment, the second location data is used to obtain the location data of the target object leaving the target area, while the first location data in the previous embodiment is used to obtain the location data of the target object entering the target area.
[0058] Therefore, in this embodiment, different second location data can be obtained sequentially according to the order of timestamps, and then the different second location data can be recorded in the exit monitoring queue according to the order of timestamps. Different target areas can correspond to different exit monitoring queues. In this embodiment, the identification information of the target area can be used as the identification information of its corresponding exit monitoring queue. Different location data in the exit monitoring queue correspond to different target objects.
[0059] It is understood that after obtaining the second location data of the target object in S201, this embodiment can further create a departure counter corresponding to the target object and use the identification information of the target object as the identification information of the created departure counter.
[0060] In this embodiment, after executing S201 to obtain the second location data of the target object, S202 is executed to compare the timestamp of the second location data with the timestamp of the initial departure location data if it is determined that the second location data is not located in the target area.
[0061] In this embodiment, when executing S202 to determine whether the second location data is located in the target area, the geographical range corresponding to the target area can be obtained first, and then it can be determined whether the second location data is located within the obtained geographical range. If not, it is determined that the second location data is not located in the target area; otherwise, it is determined that the second location data is located in the target area.
[0062] It is understood that the geographical range obtained by executing S202 in this embodiment is the same as the geographical range obtained by executing S201 in the previous embodiment.
[0063] In real-world applications, there may be noisy data that passes through the edge of the target area but does not actually leave it. Simply checking whether the second location data is within the geographical range corresponding to the target area is insufficient to determine whether such second location data has actually left the target area.
[0064] Therefore, when executing S202 to determine that the second location data is not located in the target area, this embodiment may also include the following: obtaining the edge distance between the second location data and the edge of the target area; and determining that the second location data is not located in the target area if the obtained edge distance is greater than a preset edge distance threshold.
[0065] In other words, this embodiment can determine whether the second location data is actually outside the target area through two judgment processes, which can improve the accuracy when determining that the second location data is not located in the target area.
[0066] For example, if the target area is a circular monitoring area, the distance between the second location data and the center of the circle can be calculated first, and then the radius of the area can be subtracted from the calculated distance to obtain the edge distance; if the target area is a polygonal monitoring area, the distance between the second location data and each side can be calculated first, and then the minimum distance can be used as the edge distance.
[0067] In this embodiment, after executing S202 to determine that the second location data is not located in the target area, the timestamp of the second location data can be directly compared with the timestamp of the initial departure location data. In this embodiment, the initial departure location data can be the first location data located in the departure monitoring queue. In this embodiment, the initial departure location data can be stored separately or obtained according to the departure monitoring queue.
[0068] However, in some real-world scenarios, the second position data obtained by executing S201 in this embodiment may be noisy data. If the second position data is directly compared with the initial departure position data, the accuracy of the target departure position data determined in subsequent steps may be reduced.
[0069] Therefore, when performing S202 to compare the timestamp of the second location data with the timestamp of the initial departure location data, this embodiment may further include the following: obtaining the location data whose timestamp was previously compared with the initial departure location data, as the second historical location data; obtaining the second driving speed of the target object based on the second location data and the obtained second historical location data. In this embodiment, the driving distance of the target object can be obtained based on the latitude and longitude information of the two location data, and the driving time of the target object can be obtained based on the timestamps of the two location data, and then the second driving speed can be obtained based on the driving distance and driving time; if it is determined that the obtained second driving speed is less than or equal to a preset driving speed threshold, the timestamp of the second location data is compared with the timestamp of the initial departure location data.
[0070] In other words, this embodiment obtains the second driving speed based on the previous location data compared with the initial departure location data and the currently obtained second location data, and then determines whether the current second location data is noisy based on the obtained second driving speed, which can improve the accuracy of the comparison between location data, and thus improve the accuracy of the final obtained target departure location data.
[0071] It is understood that in this embodiment, when executing S202, if there is no initial departure location data (i.e., the departure monitoring queue does not contain any location data), there is no need to compare timestamps, and the currently acquired second location data is used as the initial departure location data.
[0072] If, in this embodiment, S202 is executed and it is determined that the second driving speed is greater than the preset driving speed threshold, the currently acquired second position data is discarded as noise data, and then the next acquired second position data is processed accordingly.
[0073] In this embodiment, after performing S202 to compare the timestamp of the second location data with the timestamp of the initial departure location data, S203 is performed to increment the departure count value of the departure counter if it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data.
[0074] In other words, this embodiment only increments the departure count value of the departure counter when the timestamp of the currently acquired second location data is determined to be after the timestamp of the initial departure location data. The departure count value is incremented by 1 each time, which can improve the accuracy of increasing the departure count value.
[0075] When executing S203, this embodiment may also include the following: if it is determined that the timestamp of the second location data is earlier than the timestamp of the initial departure location data, the initial departure location data is replaced with the acquired second location data, and the departure count value of the departure counter is set to 1.
[0076] In other words, when this embodiment determines that the timestamp of the currently acquired second location data is earlier than the timestamp of the initial departure location data, it means that the currently acquired second location data was acquired before the initial departure location data. That is, the currently acquired second location data is more likely to be the location data corresponding to the earliest departure of the target object from the target area compared to the initial departure location data. Therefore, this embodiment replaces the initial departure location data with the currently acquired second location data and further resets the departure count value of the departure counter to 1, which can improve the accuracy of the initial departure location data.
[0077] It is understood that this embodiment can also lock the initial departure location data to prevent any other operations from being performed on the initial departure location data except for replacing it with the currently acquired second location data, thus ensuring that the initial departure location data is not affected or tampered with by other information.
[0078] In this embodiment, after executing S203 to increase the departure count value of the departure counter, S204 is executed. If the departure count value is determined to be a second preset threshold, the initial departure position data is used as the target departure position data of the target object leaving the target area.
[0079] In this embodiment, the second preset threshold can be set according to actual needs. For example, the second preset threshold can be 3, 5, 7, etc. That is to say, in this embodiment, when the departure count value is determined to be 3, 5 or 7, the current initial departure position data is used as the target departure position data of the target object leaving the target area. The target departure position data is used to represent the position data when the target object leaves the target area earliest.
[0080] After executing S204 to obtain the target departure location data, this embodiment can use the target object and the target object's departure location data as input data for downstream tasks, thereby achieving the purpose of alarming and prompting when the target object leaves the target area.
[0081] After executing S204 to obtain the target departure location data, this embodiment can also store the target departure location data according to the target object's identification information, so as to facilitate its retrieval in subsequent use.
[0082] It is understood that after executing S304 to obtain the target departure location data, this embodiment can also delete the departure counter corresponding to the target object and the location data corresponding to the target object in the departure monitoring queue; if the entry counter corresponding to the target object created in the previous embodiment has not yet been deleted, this embodiment will delete it as well.
[0083] Figure 3 This is a schematic diagram according to the third embodiment of the present disclosure. Figure 3The diagram illustrates the monitoring of a target area for a target object; S301, acquire the first location data of the target object, which can be uploaded to the cluster by the target object and retrieved from the cluster (e.g., a Kafka cluster); S302, read the geographical range of the target area, which can be pre-set in memory in this embodiment; S303, determine whether the first location data is located in the target area; if not, end the current process and continue to acquire the next first location data for processing; S304, if yes, determine whether the first location data is noise data based on the driving speed; S305, if the first location data is not noise data, determine whether the target object is already in the target area; S306. If not, record the first location data corresponding to the target object in the entry monitoring queue and create an entry counter; S307. If yes, determine whether the timestamp of the first location data is after the timestamp of the initial entry location data; S308. If yes, increment the entry count value of the entry counter; S309. If not, replace the initial entry location data with the first location data and set the entry count value of the entry counter to 1; S310. Determine whether the entry count value reaches the first preset threshold; S311. If yes, use the initial entry location data as the target entry location data of the target object entering the target area, store the target location data for use in downstream tasks such as alarms and upgrades.
[0084] Figure 4 This is a schematic diagram according to the fourth embodiment of the present disclosure. Figure 4The diagram illustrates the process of monitoring a target object leaving a target area: S401, Obtain the second location data of the target object. The location data can be uploaded to the cluster by the target object and obtained from the cluster (e.g., a Kafka cluster); S402, Read the geographical range of the target area. In this embodiment, the geographical range of the target area can be pre-set in memory; S403, Determine whether there is a target object (i.e., a target object that has entered the target area) in the departure monitoring queue. If not, end the current process and continue to obtain the next second location data for processing; S404, If yes, determine whether the second location data is noise data based on the driving speed; S405, If the second location data is not noise data, determine whether the second location data is located in the target area. If yes, determine whether there is a departure record of the target object in the departure monitoring queue. If not, end the current process. If yes, delete the departure record and reset the departure count of the corresponding target object. S406. If no, determine if there is a departure record of the target object in the departure monitoring queue; S407. If no, record the second location data of the target object in the departure monitoring queue and create a departure counter; S408. If yes, determine whether the timestamp of the second location data is after the timestamp of the initial departure location data (obtained from the departure monitoring queue); S409. If yes, increment the departure count value of the departure counter; S410. If no, replace the initial departure location data with the second location data and set the departure count value of the departure counter to 1; S411. Determine whether the departure count value reaches the second preset threshold; S412. If yes, use the initial departure location data as the target departure location data of the target object leaving the target area, store the target departure location data for use in downstream tasks such as alarms and upgrades, and may also include deleting the entry counter and departure counter.
[0085] Figure 5 This is a schematic diagram according to the fifth embodiment of this disclosure. (See diagram below.) Figure 5 As shown, the target object monitoring device 500 of this embodiment includes:
[0086] The first acquisition unit 501 is used to acquire the first position data of the target object;
[0087] The first comparison unit 502 is used to compare the timestamp of the first location data with the timestamp of the initial entry into the location data when it is determined that the first location data is located in the target area.
[0088] The first incrementing unit 503 is used to increment the entry count value of the entry counter when it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data;
[0089] The first processing unit 504 is used to, when the entry count value is determined to be a first preset threshold, use the initial entry position data as the target entry position data of the target object entering the target area.
[0090] The first location data of the target object acquired by the first acquisition unit 501 can be GPS data collected by the corresponding module in the target object or by an external device. In addition to latitude and longitude information, the first location data further includes the timestamp when the location data was collected.
[0091] Therefore, the first acquisition unit 501 can sequentially acquire different first location data according to the order of timestamps, and then record the different first location data into the monitoring queue according to the order of timestamps; different target areas can correspond to different monitoring queues, and the first acquisition unit 501 can use the identification information of the target area as the identification information of its corresponding monitoring queue, and different location data in the monitoring queue correspond to different target objects.
[0092] It is understandable that after the first acquisition unit 501 acquires the first position data of the target object, it can further create an entry counter corresponding to the target object and use the identification information of the target object as the identification information of the created entry counter.
[0093] In this embodiment, after the first acquisition unit 501 acquires the first location data of the target object, the first comparison unit 502 compares the timestamp of the first location data with the timestamp of the initial entry into the location data when it is determined that the first location data is located in the target area.
[0094] When determining whether the first location data is located in the target area, the first comparison unit 502 can first obtain the geographical range corresponding to the target area, and then determine whether the first location data is located within the obtained geographical range. If so, the first location data is determined to be located in the target area; otherwise, the first location data is determined not to be located in the target area.
[0095] In this embodiment, the target area can be preset, and the number of target areas can be one or more; therefore, the first comparison unit 502 can obtain the geographical range corresponding to each target area, and then determine whether the first location data is located in the target area based on the different geographical ranges obtained.
[0096] After determining that the first location data is located in the target area, the first comparison unit 502 can directly compare the timestamp of the first location data with the timestamp of the initial entry location data. In this embodiment, the initial entry location data can be the first location data located in the entry monitoring queue. In this embodiment, the initial entry location data can be stored separately or obtained according to the entry monitoring queue.
[0097] However, in some real-world scenarios, the first position data acquired by the first acquisition unit 501 may be noisy data. If the first position data is directly compared with the initial entry position data, the accuracy of the target entry position data determined in subsequent steps may be reduced.
[0098] Therefore, when comparing the timestamp of the first location data with the timestamp of the initial entry location data, the first comparison unit 502 may also include the following: obtaining the location data that was previously compared with the timestamp of the initial entry location data as the first historical location data; obtaining the first driving speed of the target object based on the first location data and the obtained first historical location data; and comparing the timestamp of the first location data with the timestamp of the initial entry location data when it is determined that the obtained first driving speed is less than or equal to a preset driving speed threshold.
[0099] In other words, the first comparison unit 502 obtains the first driving speed based on the previous position data compared with the initial entry position data and the current first position data, and then determines whether the current first position data is noise data based on the obtained first driving speed, which can improve the accuracy of the comparison between position data and thus improve the accuracy of the final obtained target entry position data.
[0100] Understandably, if there is no initial entry location data (i.e., the monitoring queue does not contain any location data), the first comparison unit 502 does not need to compare timestamps and will use the currently acquired first location data as the initial entry location data.
[0101] In addition, if the first comparison unit 502 determines that the first driving speed is greater than the preset driving speed threshold, the current first position data is discarded as noise data, and then the next acquired first position data is processed accordingly.
[0102] In this embodiment, after the first comparison unit 502 compares the timestamp of the first location data with the timestamp of the initial entry location data, the first increment unit 503 increments the entry count value of the entry counter when it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data.
[0103] In other words, the first incrementing unit 503 increments the entry count value of the entry counter only when it determines that the timestamp of the currently acquired first location data is after the timestamp of the initial entry location data. The entry count value is incremented by 1 each time, which can improve the accuracy of incrementing the entry count value.
[0104] The first addition unit 503 may also include the following: if it is determined that the timestamp of the first position data is earlier than the timestamp of the initial entry position data, the initial entry position data is replaced with the acquired first position data, and the entry count value of the entry counter is set to 1.
[0105] In other words, when the first addition unit 503 determines that the timestamp of the currently acquired first location data is earlier than the timestamp of the initial entry location data, it means that the currently acquired first location data was acquired before the initial entry location data. That is, the currently acquired first location data is more likely to be the location data corresponding to the earliest entry of the target object into the target area compared to the initial entry location data. Therefore, in this embodiment, the initial entry location data is replaced with the currently acquired first location data, and the entry count value of the entry counter is further reset to 1, which can improve the accuracy of the initial entry location data.
[0106] It is understood that this embodiment can also lock the initial entry position data to prevent any other operations from being performed on the initial entry position data except for replacing it with the currently acquired first position data, thus ensuring that the initial entry position data is not affected or tampered with by other information.
[0107] In this embodiment, after the entry count value of the entry counter is increased by the first increasing unit 503, the first processing unit 504, when determining that the entry count value is a first preset threshold, uses the initial entry position data as the target entry position data of the target object entering the target area.
[0108] In this embodiment, the first preset threshold can be set according to actual needs. For example, the first preset threshold can be 3, 5, 7, etc. That is, when the first processing unit 504 determines that the entry count value is 3, 5 or 7, it uses the current initial entry position data as the target entry position data of the target object entering the target area. The target entry position data is used to represent the position data when the target object first enters the target area.
[0109] After acquiring the target entry location data, the first processing unit 504 can use the target object and the target entry location data of the target object as input data for downstream tasks, thereby achieving the purpose of alarming and prompting when the target object enters the target area.
[0110] After acquiring the target entry location data, the first processing unit 504 can also store the target entry location data according to the target object's identification information, so as to facilitate its retrieval in subsequent use.
[0111] It is understandable that after the first processing unit 504 obtains the target entry location data, it can also delete the entry counter corresponding to the target object and the location data corresponding to the target object in the entry monitoring queue.
[0112] Figure 6 This is a schematic diagram according to the sixth embodiment of this disclosure. (See diagram below.) Figure 6 As shown, the target object monitoring device 600 of this embodiment includes:
[0113] The second acquisition unit 601 is used to acquire the second location data of the target object;
[0114] The second comparison unit 602 is used to compare the timestamp of the second location data with the timestamp of the initial departure location data when it is determined that the second location data is not located in the target area.
[0115] The second incrementing unit 603 is used to increment the departure count value of the departure counter when it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data;
[0116] The second processing unit 604 is used to, when the departure count value is determined to be a second preset threshold, use the initial departure location data as the target departure location data of the target object leaving the target area.
[0117] The second location data of the target object acquired by the second acquisition unit 601 can be GPS data collected by the corresponding module in the target object or by an external device. In addition to latitude and longitude information, the second location data further includes a timestamp when the location data was collected. In this embodiment, the second location data is used to acquire the location data of the target object leaving the target area, while the first location data in the previous embodiment is used to acquire the location data of the target object entering the target area.
[0118] Therefore, the second acquisition unit 601 can sequentially acquire different second location data according to the order of timestamps, and then record the different second location data into the exit monitoring queue according to the order of timestamps; different target areas can correspond to different exit monitoring queues, and the second acquisition unit 601 can use the identification information of the target area as the identification information of its corresponding exit monitoring queue, and different location data in the exit monitoring queue correspond to different target objects.
[0119] It is understandable that after the second acquisition unit 601 acquires the second position data of the target object, it can further create a departure counter corresponding to the target object and use the identification information of the target object as the identification information of the created departure counter.
[0120] In this embodiment, after the second acquisition unit 601 acquires the second location data of the target object, the second comparison unit 602 compares the timestamp of the second location data with the timestamp of the initial departure location data if it is determined that the second location data is not located in the target area.
[0121] When determining whether the second location data is located in the target area, the second comparison unit 602 can first obtain the geographical range corresponding to the target area, and then determine whether the second location data is within the obtained geographical range. If not, it is determined that the second location data is not located in the target area; otherwise, it is determined that the second location data is located in the target area.
[0122] It is understood that the geographical range obtained by the second comparison unit 602 is the same as the geographical range obtained by the first comparison unit 502 in the previous embodiment.
[0123] In real-world applications, there may be noisy data that passes through the edge of the target area but does not actually leave it. Simply checking whether the second location data is within the geographical range corresponding to the target area is insufficient to determine whether such second location data has actually left the target area.
[0124] Therefore, when the second comparison unit 602 determines that the second location data is not located in the target area, it may also include the following: obtaining the edge distance between the second location data and the edge of the target area; and determining that the second location data is not located in the target area when the obtained edge distance is greater than a preset edge distance threshold.
[0125] In other words, the second comparison unit 602 can determine whether the second position data is actually outside the target area through two judgment processes, which can improve the accuracy when determining that the second position data is not located in the target area.
[0126] After determining that the second location data is not located in the target area, the second comparison unit 602 can directly compare the timestamp of the second location data with the timestamp of the initial departure location data. In this embodiment, the initial departure location data can be the first location data located in the departure monitoring queue. In this embodiment, the initial departure location data can be stored separately or obtained according to the departure monitoring queue.
[0127] However, in some real-world scenarios, the second position data acquired by the second comparison unit 602 may be noisy data. If the second position data is directly compared with the initial departure position data, the accuracy of the target departure position data determined in subsequent steps may be reduced.
[0128] Therefore, when comparing the timestamp of the second location data with the timestamp of the initial departure location data, the second comparison unit 602 may also include the following: obtaining the location data that was previously compared with the timestamp of the initial departure location data as the second historical location data; obtaining the second driving speed of the target object based on the second location data and the obtained second historical location data; and comparing the timestamp of the second location data with the timestamp of the initial departure location data when it is determined that the obtained second driving speed is less than or equal to a preset driving speed threshold.
[0129] In other words, the second comparison unit 602 obtains the second driving speed based on the previous position data compared with the initial departure position data and the currently acquired second position data, and then determines whether the current second position data is noise data based on the acquired second driving speed, which can improve the accuracy of the comparison between position data, and thus improve the accuracy of the final acquired target departure position data.
[0130] Understandably, if there is no initial departure location data (i.e., the departure monitoring queue does not contain any location data), the second comparison unit 602 does not need to compare timestamps and will use the currently acquired second location data as the initial departure location data.
[0131] If the second comparison unit 602 determines that the second driving speed is greater than the preset driving speed threshold, the currently acquired second position data is discarded as noise data, and then the next acquired second position data is processed accordingly.
[0132] In this embodiment, after the second comparison unit 602 compares the timestamp of the second location data with the timestamp of the initial departure location data, the second increment unit 603 increments the departure count value of the departure counter when it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data.
[0133] In other words, the second incrementing unit 603 increments the departure count value of the departure counter only when it determines that the timestamp of the currently acquired second location data is after the timestamp of the initial departure location data. The departure count value is incremented by 1 each time, which can improve the accuracy of incrementing the departure count value.
[0134] The second addition unit 603 may also include the following: if it is determined that the timestamp of the second location data is earlier than the timestamp of the initial departure location data, the initial departure location data is replaced with the acquired second location data, and the departure count value of the departure counter is set to 1.
[0135] In other words, when the second addition unit 603 determines that the timestamp of the currently acquired second location data is earlier than the timestamp of the initial departure location data, it means that the currently acquired second location data was acquired before the initial departure location data. That is, the currently acquired second location data is more likely to be the location data corresponding to the earliest departure of the target object from the target area compared to the initial departure location data. Therefore, in this embodiment, the initial departure location data is replaced with the currently acquired second location data, and the departure count value of the departure counter is further reset to 1, which can improve the accuracy of the initial departure location data.
[0136] It is understood that this embodiment can also lock the initial departure location data to prevent any other operations from being performed on the initial departure location data except for replacing it with the currently acquired second location data, thus ensuring that the initial departure location data is not affected or tampered with by other information.
[0137] In this embodiment, after the second adding unit 603 adds the departure count value of the departure counter, the second processing unit 604, when determining that the departure count value is a second preset threshold, uses the initial departure position data as the target departure position data of the target object leaving the target area.
[0138] In this embodiment, the second preset threshold can be set according to actual needs. For example, the second preset threshold can be 3, 5, 7, etc. That is, when the second processing unit 604 determines that the departure count value is 3, 5 or 7, it uses the current initial departure position data as the target departure position data of the target object leaving the target area. The target departure position data is used to represent the position data when the target object leaves the target area earliest.
[0139] After acquiring the target departure location data, the second processing unit 604 can use the target object and the target object's departure location data as input data for downstream tasks, thereby achieving the purpose of alarming and prompting when the target object leaves the target area.
[0140] After acquiring the target departure location data, the second processing unit 604 can also store the target departure location data according to the target object's identification information, so as to facilitate its retrieval in subsequent use.
[0141] It is understood that after obtaining the target departure location data, the second processing unit 604 can also delete the departure counter corresponding to the target object and the location data corresponding to the target object in the departure monitoring queue; if the entry counter corresponding to the target object created in the previous embodiment has not yet been deleted, this embodiment will delete it as well.
[0142] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0143] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0144] like Figure 7 The diagram shown is a block diagram of an electronic device for a monitoring method of a target object according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0145] like Figure 7 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 702 or a computer program loaded from storage unit 708 into random access memory (RAM) 703. RAM 703 may also store various programs and data required for the operation of device 700. The computing unit 701, ROM 702, and RAM 703 are interconnected via bus 704. Input / output (I / O) interface 705 is also connected to bus 704.
[0146] Multiple components in device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of displays, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0147] The computing unit 701 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as a method for monitoring a target object. For example, in some embodiments, the method for monitoring a target object may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 708.
[0148] In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by computing unit 701, one or more steps of the target object monitoring method described above may be performed. Alternatively, in other embodiments, computing unit 701 may be configured to perform the target object monitoring method by any other suitable means (e.g., by means of firmware).
[0149] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0150] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to the processor or controller of a general-purpose computer, special-purpose computer, or other monitoring device for a programmable target object, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0151] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0152] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for showing information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0153] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0154] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service system that addresses the management difficulties and weak business scalability inherent in traditional physical hosts and VPS (Virtual Private Server) services. Servers can also be servers for distributed systems or servers incorporating blockchain technology.
[0155] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0156] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A method for monitoring a target object, comprising: The first location data of the target object is obtained. The first location data is the GPS data collected by the target object. Different first location data are recorded into the monitoring queue in the order of timestamps. If it is determined that the first location data is located in the target area, the timestamp of the first location data is compared with the timestamp of the initial entry location data, wherein the initial entry location data is the first location data located in the entry monitoring queue; If it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data, the entry count value of the entry counter is incremented; If the entry count value is determined to be a first preset threshold, the initial entry location data is used as the target entry location data for the target object to enter the target area.
2. The method according to claim 1, wherein, Determining that the first location data is located in the target area includes: Obtain the geographical range corresponding to the target area; If it is determined that the first location data is located within the geographical range, then the first location data is determined to be located within the target area.
3. The method according to claim 1, wherein, The step of comparing the timestamp of the first location data with the timestamp of the initial entry into the location data includes: Obtain the previous location data and compare its timestamp with the initial entry location data, and use it as the first historical location data; Based on the first location data and the first historical location data, the first driving speed of the target object is obtained; If it is determined that the first driving speed is less than or equal to a preset driving speed threshold, the timestamp of the first location data is compared with the timestamp of the initial entry location data.
4. The method according to claim 1, further comprising: If it is determined that the timestamp of the first location data is earlier than the timestamp of the initial entry location data, the initial entry location data is replaced with the first location data, and the entry count value of the entry counter is set to 1.
5. A method for monitoring a target object, comprising: The second location data of the target object is obtained. The second location data is the GPS data collected by the target object. Different second location data are recorded in the exit monitoring queue according to the order of timestamps. If it is determined that the second location data is not located in the target area, the timestamp of the second location data is compared with the timestamp of the initial departure location data, wherein the initial departure location data is the first location data located in the departure monitoring sequence; If it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data, the departure count value of the departure counter is incremented; If the departure count value is determined to be a second preset threshold, the initial departure location data is used as the target departure location data of the target object leaving the target area.
6. The method according to claim 5, wherein, Determining that the second location data is not located in the target area includes: Obtain the geographical range corresponding to the target area; If it is determined that the second location data is not located within the geographical range, then it is determined that the second location data is not located within the target area.
7. The method according to claim 6, wherein, Determining that the second location data is not located in the target area includes: Obtain the edge distance between the second location data and the edge of the target region; If the edge distance is determined to be greater than a preset edge distance threshold, the second location data is determined not to be located in the target area.
8. The method according to claim 5, wherein, The step of comparing the timestamp of the second location data with the timestamp of the initial departure location data includes: Obtain the previous location data and compare its timestamp with the initial departure location data, as the second historical location data; Based on the second location data and the second historical location data, the second driving speed of the target object is obtained; If the second driving speed is determined to be less than or equal to a preset driving speed threshold, the timestamp of the second location data is compared with the timestamp of the initial departure location data.
9. The method according to claim 5, further comprising: If it is determined that the timestamp of the second location data is earlier than the timestamp of the initial departure location data, the initial departure location data is replaced with the second location data, and the departure count value of the departure counter is set to 1.
10. A monitoring device for a target object, comprising: The first acquisition unit is used to acquire the first location data of the target object. The first location data is the GPS data collected by the target object. Different first location data are recorded into the monitoring queue according to the order of timestamps. The first comparison unit is used to compare the timestamp of the first location data with the timestamp of the initial entry location data when it is determined that the first location data is located in the target area, wherein the initial entry location data is the first location data located in the entry monitoring queue; The first incrementing unit is used to increment the entry count value of the entry counter when it is determined that the timestamp of the first location data is after the timestamp of the initial entry location data; The first processing unit is configured to, when determining that the entry count value is a first preset threshold, use the initial entry location data as the target entry location data for the target object entering the target area.
11. The apparatus according to claim 10, wherein, When the first comparison unit determines that the first location data is located in the target area, it specifically performs the following: Obtain the geographical range corresponding to the target area; If it is determined that the first location data is located within the geographical range, then the first location data is determined to be located within the target area.
12. The apparatus according to claim 10, wherein, When the first comparison unit compares the timestamp of the first location data with the timestamp of the initial entry location data, it specifically performs the following: Obtain the previous location data and compare its timestamp with the initial entry location data, and use it as the first historical location data; Based on the first location data and the first historical location data, the first driving speed of the target object is obtained; If it is determined that the first driving speed is less than or equal to a preset driving speed threshold, the timestamp of the first location data is compared with the timestamp of the initial entry location data.
13. The apparatus according to claim 10, wherein, The first addition unit is also used to perform: If it is determined that the timestamp of the first location data is earlier than the timestamp of the initial entry location data, the initial entry location data is replaced with the first location data, and the entry count value of the entry counter is set to 1.
14. A monitoring device for a target object, comprising: The second acquisition unit is used to acquire the second location data of the target object. The second location data is the GPS data collected by the target object. Different second location data are recorded in the exit monitoring queue according to the order of timestamps. The second comparison unit is used to compare the timestamp of the second location data with the timestamp of the initial departure location data when it is determined that the second location data is not located in the target area, wherein the initial departure location data is the first location data located in the departure monitoring sequence; The second incrementing unit is used to increment the departure count value of the departure counter when it is determined that the timestamp of the second location data is after the timestamp of the initial departure location data; The second processing unit is used to use the initial departure location data as the target departure location data of the target object leaving the target area when the departure count value is determined to be a second preset threshold.
15. The apparatus according to claim 14, wherein, When the second comparison unit determines that the second location data is not located in the target area, it specifically performs the following: Obtain the geographical range corresponding to the target area; If it is determined that the second location data is not located within the geographical range, then it is determined that the second location data is not located within the target area.
16. The apparatus according to claim 15, wherein, When the second comparison unit determines that the second location data is not located in the target area, it specifically performs the following: Obtain the edge distance between the second location data and the edge of the target region; If the edge distance is determined to be greater than a preset edge distance threshold, the second location data is determined not to be located in the target area.
17. The apparatus according to claim 14, wherein, When comparing the timestamp of the second location data with the timestamp of the initial departure location data, the second comparison unit specifically performs the following: Obtain the previous location data and compare its timestamp with the initial departure location data, as the second historical location data; Based on the second location data and the second historical location data, the second driving speed of the target object is obtained; If the second driving speed is determined to be less than or equal to a preset driving speed threshold, the timestamp of the second location data is compared with the timestamp of the initial departure location data.
18. The apparatus according to claim 14, wherein, The second addition unit is also used to perform: If it is determined that the timestamp of the second location data is earlier than the timestamp of the initial departure location data, the initial departure location data is replaced with the second location data, and the departure count value of the departure counter is set to 1.
19. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-9.
21. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-9.
Citation Information
Patent Citations
Electronic fence-based monitoring method and system
CN105225515A
Process time counting method for navigation equipment and traffic information displaying method
CN1550756A