An electronic fence dynamic setting method, system, device and storage medium
By dividing the initial electronic fence into zones and determining target parking points, the problems of flexibility and accuracy in traditional electronic fence setting methods are solved, enabling dynamic adjustment in vehicle management with both accuracy and flexibility, thus improving the efficiency and accuracy of vehicle management.
Patent Information
- Application Number
- CN202511632262.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-10
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2045-11-10
AI Technical Summary
Traditional electronic fence setup methods lack flexibility and accuracy, failing to meet dynamically changing needs, especially in temporary events or emergencies where the fence's position or shape cannot be adjusted quickly and accurately.
By acquiring real-time vehicle status and location information, and combining it with map data, the initial electronic fence is divided into regions to determine the target parking point and generate a navigation path, thus narrowing the area from the initial fence to the target fence and improving the accuracy and flexibility of the dynamic adjustment of the electronic fence.
It achieves the accuracy and flexibility of dynamic adjustment of electronic fences, meets the dynamic changing needs of vehicle management, and improves the efficiency and accuracy of vehicle management.
Smart Images

Figure CN121099262B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of data processing, and in particular to an electronic fence dynamic setting method, system, device and storage medium. BACKGROUND
[0002] With the development of security systems towards networking and systematization, and the urgent need to improve the efficiency of security management and reduce the cost and time of manual supervision, electronic fence systems have been widely used. Electronic fence is a kind of invisible virtual boundary constructed around a specific area, which is used to realize the monitoring, management and restriction of target objects or personnel. The electronic fence usually determines the position information of the target based on Beidou satellite navigation system, Wi-Fi, Bluetooth and other positioning technologies, and sets a specific geographic area range on the geographic information system platform. When the target object or personnel enters, leaves or moves within the area range, the system can monitor in real time and trigger the corresponding alarm or execute the preset operation. The electronic fence can be applied to the management of rental vehicles and the supervision and management of official vehicles.
[0003] The traditional electronic fence setting method is usually fixed in shape, that is, the position and shape of the fence usually do not change after being set. However, with the development of technology and the improvement of security needs, the static electronic fence setting method has been unable to meet the needs of dynamic changes and dynamic adjustment accuracy. For example, in some special situations such as temporary activities or emergencies, it is necessary to quickly and accurately adjust the position or shape of the fence to adapt to new management requirements. SUMMARY
[0004] Embodiments of the present application provide an electronic fence dynamic setting method, system, device and storage medium, which solves the problem that the setting method of the traditional electronic fence lacks flexibility and accuracy and cannot meet the needs of dynamic changes. The accuracy of dynamic adjustment of the electronic fence is improved by cutting the initial electronic fence into regions, the target parking point is determined by the real-time vehicle positioning information and the region identifier in the map data, and the target fence region corresponding to the target parking point is determined, and the initial electronic fence is reduced to the target fence region, which improves the flexibility of setting the electronic fence and fully meets the dynamic change needs of vehicle management.
[0005] In a first aspect, embodiments of the present application provide an electronic fence dynamic setting method, comprising:
[0006] obtaining real-time vehicle state information, real-time vehicle positioning information, map data and an initial electronic fence of a current vehicle, determining a vehicle abnormal type of the vehicle in the case of detecting abnormal real-time vehicle state information, and cutting the initial electronic fence into regions to obtain a plurality of sub-fence regions;
[0007] Determine the vehicle stop type corresponding to the vehicle anomaly type, identify multiple alternative stops based on real-time vehicle location information and area identifiers in map data, and determine the alternative stops that meet the vehicle stop type as the target stop.
[0008] A navigation path is generated based on real-time vehicle location information and the target stop point. The sub-fence areas traversed by the navigation path are identified as the target fence area, and the initial electronic fence is narrowed down to the target fence area.
[0009] Optionally, multiple alternative stop locations can be determined based on real-time vehicle location information and area identifiers in map data, including:
[0010] The initial parking area of the vehicle is determined based on real-time vehicle location information, and multiple first alternative parking points are determined based on the area identifiers in the map data within the initial parking area.
[0011] Calculate the target distance and offset direction between the current vehicle and each of the first alternative stopping points based on real-time vehicle positioning information, and determine the current vehicle's driving direction.
[0012] Multiple first-option stop points are filtered based on driving direction, offset direction, and target distance to obtain multiple second-option stop points.
[0013] Optionally, the initial parking area of the vehicle can be determined based on real-time vehicle location information, including:
[0014] The vehicle trajectory is generated based on real-time vehicle positioning information, and the rate of change of the vehicle trajectory is identified to determine the buffer radius corresponding to the rate of change.
[0015] The initial parking range for vehicles is generated based on real-time vehicle location information and buffer radius.
[0016] Optionally, multiple first-option stop points are filtered based on driving direction, offset direction, and target distance to obtain multiple second-option stop points, including:
[0017] Calculate the offset angle between each offset direction and the driving direction, and determine the first alternative stopping points with offset angles less than a preset angle and target distances less than a preset distance as second alternative stopping points.
[0018] Optionally, the initial electronic fence can be divided into multiple sub-fence areas, including:
[0019] Identify the vertices of the initial electronic fence and divide the initial electronic fence into multiple triangular regions based on the vertices;
[0020] Establish a rectangular coordinate system with any vertex of the region as the origin, and calculate the target center point of the initial electronic fence based on the vertex coordinate values of each triangular region in the rectangular coordinate system;
[0021] The initial electronic fence is iteratively divided into multiple sub-fence areas based on the target center point.
[0022] Optionally, the target center point of the initial electronic fence is calculated based on the vertex coordinates of each triangular region in the Cartesian coordinate system, including:
[0023] Calculate the center point and weight value of each triangular region based on the vertex coordinates of each triangular region in the rectangular coordinate system. The weight value is the area of the corresponding triangular region.
[0024] The center point and weight value of each triangular region are weighted and calculated to obtain the target center point of the initial electronic fence.
[0025] Optionally, after narrowing down the initial electronic fence to the target fence area, the following steps are also included:
[0026] Monitor changes in real-time vehicle status information, and if the real-time vehicle status information is found to be normal, restore the target fence area to the initial electronic fence area.
[0027] In a second aspect, embodiments of this application provide a dynamic setting system for electronic fences, comprising:
[0028] The information acquisition module is used to acquire the current vehicle's real-time vehicle status information, real-time vehicle location information, map data, and initial electronic fence.
[0029] The sub-fence area determination module is used to determine the type of vehicle anomaly when an anomaly is detected in the real-time vehicle status information, and to divide the initial electronic fence into multiple sub-fence areas.
[0030] The target stop point determination module is used to determine the vehicle stop point type corresponding to the vehicle anomaly type. Based on real-time vehicle location information and area identifiers in map data, it determines multiple candidate stop points and determines the candidate stop point that meets the vehicle stop point type as the target stop point.
[0031] The target fence area determination module is used to generate a navigation path based on real-time vehicle positioning information and target stopping point, and to determine the sub-fence areas traversed by the navigation path as the target fence area.
[0032] The electronic fence adjustment module is used to shrink the initial electronic fence to the target fence area.
[0033] In a third aspect, embodiments of this application provide an electronic device, the device comprising: one or more processors; and a storage device configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the electronic fence dynamic setting method described in the first aspect.
[0034] In a fourth aspect, embodiments of this application provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the electronic fence dynamic setting method as described in the first aspect.
[0035] This application embodiment acquires real-time vehicle status information, real-time vehicle location information, map data, and an initial electronic fence. When an anomaly is detected in the vehicle status information, the anomaly type is determined, and the initial electronic fence is segmented into multiple sub-fence areas. The vehicle stop type corresponding to the anomaly type is determined, and multiple candidate stops are identified based on the real-time vehicle location information and area identifiers in the map data. The candidate stop that meets the vehicle stop type is designated as the target stop. A navigation path is generated based on the real-time vehicle location information and the target stop, and the sub-fence areas traversed by the navigation path are designated as the target fence area. The initial electronic fence is then narrowed down to the target fence area. In this scheme, segmenting the initial electronic fence improves the accuracy of dynamic electronic fence adjustments. Determining the target stop and the corresponding target fence area based on the real-time vehicle location information and area identifiers in the map data, and narrowing the initial electronic fence down to the target fence area, enhances the flexibility of electronic fence setup and fully meets the dynamic needs of vehicle management. Attached Figure Description
[0036] Figure 1 This is a flowchart illustrating a dynamic setting method for an electronic fence provided in an embodiment of this application;
[0037] Figure 2 This is a flowchart of a method for determining alternative stopping points provided in an embodiment of this application;
[0038] Figure 3 This is a flowchart of an initial electronic fence area cutting method provided in an embodiment of this application;
[0039] Figure 4 This is a schematic diagram of an initial electronic fence provided in an embodiment of this application;
[0040] Figure 5 This is a schematic diagram of the structure of an electronic fence dynamic setting system provided in an embodiment of this application;
[0041] Figure 6This is a schematic diagram of the structure of an electronic fence dynamic setting device provided in an embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0043] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0044] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0045] The following description, in conjunction with the accompanying drawings, details the electronic fence dynamic setting method, system, device, and medium provided in this application through specific embodiments and application scenarios.
[0046] The electronic fence dynamic setting method provided in this application is used in scenarios where target objects or personnel enter or leave a certain area for management and supervision, such as the supervision and management of rental vehicles. Based on the above application scenario, it can be understood that the executing entity of each step can be a computer device. This computer device refers to any electronic device with data computing, processing, and storage capabilities, such as mobile phones, PCs (Personal Computers), tablet computers, and other terminal devices, or it can be a server or other devices. This application does not limit this.
[0047] Figure 1 This is a flowchart illustrating a dynamic setting method for an electronic fence provided in an embodiment of this application, such as... Figure 1 As shown, it includes:
[0048] Step S101: Obtain the current vehicle status information, real-time vehicle location information, map data and initial electronic fence. If an anomaly is detected in the real-time vehicle status information, determine the type of vehicle anomaly and divide the initial electronic fence into multiple sub-fence areas.
[0049] Real-time vehicle status information refers to the real-time collection, processing, and feedback of the vehicle's current operating status and core parameters. This can include the vehicle's driving status, power status, energy status, and fault warning data, such as the vehicle's current driving range and whether a fault indicator has appeared. Real-time vehicle location information refers to the real-time collection and transmission of the vehicle's current geographical location information through technologies such as satellite positioning, wireless communication, and vehicle-mounted sensors, which can be represented by a geographic coordinate system. Map data refers to geospatial elements, such as roads, buildings, and terrain, which are abstracted and encoded digitally, such as terrain data, traffic network elements, and traffic dynamic data. The initial electronic fence can be a perimeter alarm system, essentially a virtual boundary of a real geographical area. This initial electronic fence can be set according to the compliant activity range of the actual target object. For example, in the scenario of supervising and managing official vehicles, the initial electronic fence can be determined based on the vehicle use application information. For instance, a vehicle navigation route is generated based on the start and end points of the vehicle use application information, and a fence boundary is established by extending 50 meters to both sides of the vehicle navigation route as the center, and a closed initial electronic fence is generated based on the fence boundary. Vehicle anomaly types can refer to various abnormal phenomena exhibited due to mechanical failure, electronic system malfunction, component wear, improper operation, or external factors, deviating from normal operating conditions. Optionally, vehicle anomaly types can also include insufficient vehicle range. Sub-fence areas can refer to multiple smaller, relatively independent areas divided using specific segmentation rules or algorithms. These sub-fence areas are components of the initial electronic fence, collectively constituting a more detailed division and management of a specific geographic space.
[0050] In one embodiment, real-time vehicle status information, real-time vehicle location information, map data, and an initial electronic fence generated based on the start and end points in the vehicle use application information are obtained. If a fault indicator is detected in the real-time vehicle status information or the vehicle's current driving range is less than a preset driving range threshold, the real-time vehicle status information is considered abnormal, and the vehicle abnormality type is determined to be "vehicle fault" or "insufficient driving range." The initial electronic fence is then segmented into multiple smaller, more detailed sub-fence areas. For example, the area of the sub-fence area can be preset, and the initial electronic fence can be segmented according to the preset area to obtain multiple sub-fence areas of equal size.
[0051] In one possible embodiment, different urgency levels corresponding to different fault types can be preset. When an abnormal vehicle status information is detected, the type of vehicle abnormality is determined. If the vehicle abnormality type is "vehicle fault," the urgency level of the vehicle fault can be determined based on the fault identifier. For example, the urgency level of "brake fault identifier" is higher than that of "battery fault identifier." If the urgency level is higher than the preset level, emergency maintenance of the vehicle is required. In this case, it is necessary to quickly determine the best parking point near the vehicle. Therefore, the initial electronic fence is divided into multiple sub-fence areas. If the urgency level is lower than or equal to the preset level, the vehicle does not require emergency maintenance and can be maintained after the task is completed. Therefore, in this case, dynamic adjustment of the electronic fence is not required.
[0052] Step S102: Determine the vehicle stop type corresponding to the vehicle anomaly type. Based on real-time vehicle location information and area identifiers in map data, determine multiple alternative stop points and select the alternative stop point that meets the vehicle stop type as the target stop point.
[0053] Among these, vehicle parking spot types can refer to the classification of specific geographical areas for temporary or long-term vehicle parking based on differences in usage scenarios, functional positioning, service targets, and management rules, such as roadside temporary parking spots, parking lots, gas stations, or repair shops. Area identifiers can refer to codes or symbols used to uniquely identify specific geographical areas on a map, helping users quickly locate and identify different areas, such as city codes, road numbers, building identifiers, and grid area identifiers. These area identifiers can be used to determine nearby parking lots, temporary parking spots, gas stations, or repair shops based on the vehicle's current location. Target parking spots can refer to the most suitable location for temporary vehicle parking after comprehensively considering factors such as safety, convenience, legality, and vehicle protection.
[0054] In one embodiment, if the vehicle anomaly type is "insufficient driving range," the corresponding vehicle parking type is "gas station" or "charging station," etc. Combining real-time vehicle location information and map data, all available parking locations within a preset distance of the current vehicle are identified as candidate parking points, and the candidate parking point that meets the vehicle parking point type is determined as the target parking point. For example, the identified candidate parking points include gas station A, gas station B, a parking lot, and a roadside temporary parking spot. If the vehicle parking point type is "gas station," then gas station A or gas station B is determined as the target parking point.
[0055] Step S103: Generate a navigation path based on real-time vehicle positioning information and target parking point, determine the sub-fence area traversed by the navigation path as the target fence area, and shrink the initial electronic fence to the target fence area.
[0056] Among them, the navigation path can be defined as a set of continuous geographic coordinates or road nodes that are generated by algorithms based on the user's set starting point, destination, and personalized needs, with the support of the navigation system, and used to guide the user from the starting point to the destination.
[0057] In one embodiment, the current vehicle location is determined based on real-time vehicle positioning information, and a navigation path is generated starting from the current vehicle location and ending at the target parking point. The system traverses all geographic coordinate points on the navigation path, determines the sub-fence areas to which these points belong, and uses the set of these sub-fence areas as the target fence area, and shrinks the initial electronic fence to the target fence area.
[0058] This application embodiment acquires real-time vehicle status information, real-time vehicle location information, map data, and an initial electronic fence. When an anomaly is detected in the real-time vehicle status information, the anomaly type is determined, and the initial electronic fence is segmented into multiple sub-fence areas. The vehicle stop type corresponding to the anomaly type is determined, and multiple candidate stop points are identified based on the real-time vehicle location information and area identifiers in the map data. The candidate stop point that meets the vehicle stop type is designated as the target stop point. A navigation path is generated based on the real-time vehicle location information and the target stop point. The sub-fence areas traversed by the navigation path are designated as the target fence area, and the initial electronic fence is narrowed down to the target fence area. In this scheme, segmenting the initial electronic fence improves the accuracy of dynamic electronic fence adjustments. Determining the target stop point using real-time vehicle location information and area identifiers in the map data, and identifying the target fence area corresponding to the target stop point, and narrowing the initial electronic fence down to the target fence area, increases the flexibility of electronic fence setup, fully meets the dynamic changes in vehicle management needs, and correspondingly improves the efficiency and accuracy of vehicle management.
[0059] Optionally, after narrowing the initial electronic fence to the target fence area, the method further includes: monitoring changes in real-time vehicle status information, and restoring the target fence area to the initial electronic fence area if the real-time vehicle status information is found to be normal.
[0060] In one embodiment, the vehicle status information is monitored in real time as it changes from abnormal to normal. The changes in the real-time vehicle status information can include the change in the vehicle's driving range from below a preset driving range threshold to above a preset driving range threshold, or the process from the appearance of a fault indicator to the removal of the fault indicator. If the driving range is higher than the preset driving range threshold or the fault indicator is removed, the vehicle status information can be considered normal at this time. That is, after the vehicle status information changes from abnormal to normal, the target fence area can be expanded to the initial electronic fence size.
[0061] This application embodiment monitors changes in real-time vehicle status information. When the real-time vehicle status information is detected to be normal, the target fence area is restored to the initial electronic fence area. This ensures both the freedom of the vehicle during normal driving and timely and effective management and supervision when the vehicle encounters problems.
[0062] Figure 2 This is a flowchart illustrating a method for determining alternative stopping points provided in an embodiment of this application, such as... Figure 2 As shown, it includes:
[0063] Step S1021: Determine the initial parking range of the vehicle based on the real-time vehicle positioning information, and determine multiple first alternative parking points within the initial parking range based on the area identifiers in the map data.
[0064] Step S1022: Calculate the target distance and offset direction between the current vehicle and each first alternative stop point based on the real-time vehicle positioning information, and determine the current vehicle's driving direction.
[0065] Step S1023: Based on the driving direction, offset direction and target distance, filter multiple first candidate stopping points to obtain multiple second candidate stopping points.
[0066] The initial parking range refers to the area used to limit the search for alternative parking spots, improving search efficiency and accuracy. The first alternative parking spot is a candidate parking spot located within the initial parking range and meeting certain conditions, such as parking spot type, opening hours, and number of remaining parking spaces. The target distance is the straight-line distance or path distance between the current vehicle and each of the first alternative parking spots. The offset direction is the azimuth or direction angle of the current vehicle relative to each of the first alternative parking spots, used to determine the relative position of the alternative parking spots relative to the vehicle. The driving direction is the current vehicle's driving direction, which can be obtained through the vehicle's driving trajectory or data from the navigation system.
[0067] In one embodiment, the current vehicle position is determined based on real-time vehicle location information. A circular or rectangular area is defined with the current vehicle position as the center and a preset distance as the radius. Multiple first-optional parking points are identified within this initial parking area based on area identifiers in map data. The target distance and relative positional relationship between the current vehicle and each first-optional parking point are calculated. The current vehicle's driving direction is determined based on initial vehicle navigation information, which is generated from the start and end points in the vehicle request information. After determining the target distance, offset direction, and driving direction of the current vehicle and each first-optional parking point, the multiple first-optional parking points with the closest target distance and offset direction consistent with the current driving direction are identified as second-optional parking points. These second-optional parking points better meet the actual needs of the current vehicle compared to the first-optional parking points, providing a more accurate candidate set for subsequently determining the target parking point.
[0068] This application embodiment determines the initial parking range of the vehicle based on real-time vehicle positioning information, and identifies multiple first alternative parking points within the initial parking range based on area identifiers in map data. It calculates the target distance and offset direction between the current vehicle and each of the first alternative parking points based on real-time vehicle positioning information, and determines the current vehicle's driving direction. Based on the driving direction, offset direction, and target distance, the multiple first alternative parking points are filtered to obtain multiple second alternative parking points. In the above scheme, filtering the alternative parking points within the initial parking range improves the efficiency and accuracy of determining the target parking point. After determining the first alternative parking points, a comprehensive evaluation is performed on them, and the second alternative parking point with the best evaluation result is determined as the second alternative parking point. This not only ensures that the vehicle can find a suitable parking point in a timely manner in abnormal situations, but also improves the efficiency and safety of vehicle management.
[0069] In one embodiment, determining the initial parking range of a vehicle based on real-time vehicle positioning information includes: generating a vehicle driving trajectory based on real-time vehicle positioning information, identifying the rate of change of the vehicle driving trajectory, and determining a buffer radius corresponding to the rate of change; generating the initial parking range of the vehicle based on the real-time vehicle positioning information and the buffer radius.
[0070] Among these, the vehicle's trajectory refers to the path the vehicle travels within a certain time period, which can be collected and recorded in real time using technologies such as GPS positioning and onboard sensors. The rate of change refers to how quickly the vehicle's speed changes, which can be obtained by calculating the distance and time difference between adjacent points in the vehicle's trajectory. The buffer radius refers to a buffer zone set around the vehicle's current position to account for uncertainties and safety during vehicle movement. The size of this buffer zone radius can be determined based on the rate of change of the vehicle's speed; for example, when the vehicle's speed is high, a larger buffer radius can be set to ensure that the vehicle has sufficient space and time to stop or adjust its direction.
[0071] In one embodiment, GPS positioning technology can be used to collect the vehicle's trajectory in real time from the departure time of the vehicle's starting point to the current time. The rate of change of the vehicle's trajectory is determined by calculating the distance and time difference between adjacent points in the trajectory. The buffer radius corresponding to the current rate of change is determined according to the pre-set mapping relationship between the trajectory change rate range and the buffer radius. The initial parking range of the vehicle is generated with the current position of the vehicle as the center and the buffer radius as the radius.
[0072] This application embodiment generates a vehicle driving trajectory based on real-time vehicle positioning information, identifies the rate of change of the vehicle driving trajectory, determines the buffer radius corresponding to the rate of change, and generates an initial parking range for the vehicle based on the real-time vehicle positioning information and the buffer radius. This provides a more reasonable search range for subsequent determination of alternative parking points. By identifying and analyzing the vehicle driving trajectory and the rate of change, the initial parking range of the vehicle can be dynamically determined, improving the accuracy and flexibility of determining alternative parking points.
[0073] Optionally, multiple first candidate stopping points are filtered based on the driving direction, offset direction, and target distance to obtain multiple second candidate stopping points, including: calculating the offset angle between each offset direction and the driving direction, and determining multiple first candidate stopping points with offset angles less than a preset angle and target distances less than a preset distance as second candidate stopping points.
[0074] In the first embodiment, the angle between the current vehicle's driving direction and the offset direction of each first candidate stop is calculated as the offset angle. The offset angle refers to the difference between the current vehicle's driving direction and the azimuth angle of each candidate stop relative to the vehicle. The preset angle is a threshold angle pre-set according to actual needs for filtering candidate stops, such as 30 degrees or 45 degrees. The preset distance is a distance threshold pre-set according to actual needs for filtering candidate stops. Multiple first candidate stops with offset angles less than the preset angle and target distances less than the preset distance are selected as second candidate stops.
[0075] This application embodiment calculates the offset angle between each offset direction and the driving direction, and determines multiple first candidate stopping points with offset angles less than a preset angle and target distances less than a preset distance as second candidate stopping points. This provides a more accurate candidate set for subsequent determination of target stopping points. By comprehensively considering offset angles and target distances, it is possible to more accurately screen out candidate stopping points that meet the current vehicle driving direction and distance requirements, thereby improving the efficiency and accuracy of determining target stopping points.
[0076] Figure 3 This is a flowchart of an initial electronic fence area cutting method provided in an embodiment of this application, such as... Figure 3 As shown, it includes:
[0077] Step S1011: Identify the vertices of the initial electronic fence and divide the initial electronic fence into multiple triangular regions based on the vertices.
[0078] Step S1012: Establish a rectangular coordinate system with any vertex of the region as the origin, and calculate the target center point of the initial electronic fence based on the vertex coordinate values of each triangular region in the rectangular coordinate system.
[0079] Step S1013: Perform iterative region cutting on the initial electronic fence based on the target center point to obtain multiple sub-fence regions.
[0080] In this system, "region vertices" refers to key points or inflection points on the boundary of the initial electronic fence, which determine the shape and extent of the fence. A Cartesian coordinate system is a planar Cartesian coordinate system established with any region vertex as the origin and two mutually perpendicular lines as coordinate axes, used to determine the vertex coordinates of each triangular region. The target center point is calculated based on the vertex coordinates of each triangular region and serves as the reference point for iterative region cutting. Iterative region cutting involves repeatedly cutting the initial electronic fence using the target center point as the reference. Each cut divides the current region into smaller sub-regions until preset conditions are met, such as the area of a sub-region being less than a preset area or the number of sub-regions reaching a preset number.
[0081] Figure 4 This is a schematic diagram of an initial electronic fence provided in an embodiment of this application, such as... Figure 4As shown, the initial electronic fence ABCD can be divided into two triangular regions, namely triangle ABC and triangle ADC, by identifying the vertices of the initial region. After determining multiple triangular regions, any vertex of a region is selected as the origin to establish a rectangular coordinate system. For example, a rectangular coordinate system is established with point A as the origin. Based on the vertex coordinates of each triangular region in the rectangular coordinate system, A(0,0), B(x1,y1), C(x2,y2), and D(x3,y3), the target center point O of the initial electronic fence is determined by the vertex coordinates and geometric drawing methods. For example, the intersection of the three medians of each triangle can be drawn based on the vertex coordinates of each triangular region. The coordinates of the intersection of the three medians are then determined as the center point of the corresponding triangular region based on the rectangular coordinate system. For example, the center point of triangle ABC is M, and the center point of triangle ADC is N. Then, the target center point O is calculated based on the coordinates of each center point, or the target center point O of the initial electronic fence can be determined directly by geometric drawing methods. After determining the target center point O, the initial electronic fence is cut based on the target center point O to obtain four sub-regions: the upper left (aBbO region), the upper right (ObCc region), the lower left (AaOd region), and the lower right (dOcD region). The same method is used to iteratively cut each sub-region until the area of multiple sub-fence regions is less than the preset area.
[0082] This application embodiment identifies the vertices of the initial electronic fence and divides it into multiple triangular regions based on these vertices. A Cartesian coordinate system is established with any vertex as the origin. The target center point of the initial electronic fence is calculated based on the coordinates of the vertices of each triangular region in the Cartesian coordinate system. The initial electronic fence is then iteratively cut into multiple sub-fence regions based on the target center point. This scheme improves the accuracy and efficiency of electronic fence region cutting by dividing and iteratively cutting the initial electronic fence into regions, providing a more refined and reliable electronic fence area for subsequent vehicle management and monitoring. Furthermore, this scheme can adapt to initial electronic fences of different shapes and sizes, exhibiting strong versatility and flexibility.
[0083] In one embodiment, calculating the target center point of the initial electronic fence based on the vertex coordinates of each triangular region in the Cartesian coordinate system includes: calculating the center point and weight value of each triangular region based on the vertex coordinates of each triangular region in the Cartesian coordinate system, where the weight value is the area of the corresponding triangular region; and performing a weighted calculation on the center point and weight value of each triangular region to obtain the target center point of the initial electronic fence.
[0084] For example, if the vertex coordinates of a triangle are (x1, y1), (x2, y2), and (x3, y3), the centroid coordinates of the triangle are ((x1+x2+x3) / 3, (y1+y2+y3) / 3). Since triangles of different sizes have varying degrees of influence on determining the initial target center point of the electronic fence, the larger the area of the triangle, the greater its influence on determining the target center point. Therefore, it is necessary to calculate the area of each triangle separately. If the area of triangle ABC is 10㎡, the corresponding centroid coordinates are (10, 20), and the area of triangle ADC is 20㎡, the corresponding centroid coordinates are (15, 25), then the x-coordinate of the target center point... The ordinate of the target center point Therefore, the initial target center point coordinates of the electronic fence are (13.3, 23.3).
[0085] Figure 5 This is a schematic diagram of the structure of an electronic fence dynamic setting system provided in an embodiment of this application, as shown below. Figure 5 As shown, it includes:
[0086] The information acquisition module 21 is used to acquire the current vehicle's real-time vehicle status information, real-time vehicle location information, map data, and initial electronic fence.
[0087] The sub-fence area determination module 22 is used to determine the vehicle abnormality type when the real-time vehicle status information is detected to be abnormal, and to cut the initial electronic fence into multiple sub-fence areas.
[0088] The target stop point determination module 23 is used to determine the vehicle stop point type corresponding to the vehicle anomaly type, determine multiple candidate stop points based on the real-time vehicle positioning information and the area identifier in the map data, and determine the candidate stop point that meets the vehicle stop point type as the target stop point.
[0089] The target fence area determination module 24 is used to generate a navigation path based on the real-time vehicle positioning information and the target stop point, and determine the sub-fence area passed by the navigation path as the target fence area.
[0090] The electronic fence adjustment module 25 is used to shrink the initial electronic fence to the target fence area.
[0091] This application embodiment acquires real-time vehicle status information, real-time vehicle location information, map data, and an initial electronic fence. When an anomaly is detected in the vehicle status information, the anomaly type is determined, and the initial electronic fence is segmented into multiple sub-fence areas. The vehicle stop type corresponding to the anomaly type is determined, and multiple candidate stops are identified based on the real-time vehicle location information and area identifiers in the map data. The candidate stop that meets the vehicle stop type is designated as the target stop. A navigation path is generated based on the real-time vehicle location information and the target stop, and the sub-fence areas traversed by the navigation path are designated as the target fence area. The initial electronic fence is then narrowed down to the target fence area. In this scheme, segmenting the initial electronic fence improves the accuracy of dynamic electronic fence adjustments. Determining the target stop and the corresponding target fence area based on the real-time vehicle location information and area identifiers in the map data, and narrowing the initial electronic fence down to the target fence area, enhances the flexibility of electronic fence setup and fully meets the dynamic needs of vehicle management.
[0092] In one possible embodiment, the target docking point determination module 23 is specifically used for:
[0093] The initial parking area of the vehicle is determined based on real-time vehicle location information, and multiple first alternative parking points are determined based on the area identifiers in the map data within the initial parking area.
[0094] Calculate the target distance and offset direction between the current vehicle and each of the first alternative stopping points based on real-time vehicle positioning information, and determine the current vehicle's driving direction.
[0095] Multiple first-option stop points are filtered based on driving direction, offset direction, and target distance to obtain multiple second-option stop points.
[0096] In one possible embodiment, the target docking point determination module 23 is specifically used for:
[0097] The vehicle trajectory is generated based on real-time vehicle positioning information, and the rate of change of the vehicle trajectory is identified to determine the buffer radius corresponding to the rate of change.
[0098] The initial parking range for vehicles is generated based on real-time vehicle location information and buffer radius.
[0099] In one possible embodiment, the target docking point determination module 23 is specifically used for:
[0100] Calculate the offset angle between each offset direction and the driving direction, and determine the first alternative stopping points with offset angles less than a preset angle and target distances less than a preset distance as second alternative stopping points.
[0101] In one possible embodiment, the sub-fence area determination module 22 is specifically used for:
[0102] Identify the vertices of the initial electronic fence and divide the initial electronic fence into multiple triangular regions based on the vertices;
[0103] Establish a rectangular coordinate system with any vertex of the region as the origin, and calculate the target center point of the initial electronic fence based on the vertex coordinate values of each triangular region in the rectangular coordinate system;
[0104] The initial electronic fence is iteratively divided into multiple sub-fence areas based on the target center point.
[0105] In one possible embodiment, the sub-fence area determination module 22 is specifically used for:
[0106] Calculate the center point and weight value of each triangle region based on the vertex coordinates of each triangle region in the rectangular coordinate system, where the weight value is the area of the corresponding triangle region.
[0107] The target center point of the initial electronic fence is obtained by weighting the center point of each of the triangular regions and the weight value.
[0108] In one possible embodiment, the electronic fence adjustment module 25 is also used for
[0109] Monitor changes in real-time vehicle status information, and if the real-time vehicle status information is found to be normal, restore the target fence area to the initial electronic fence area.
[0110] This application also provides an electronic device that can integrate an electronic fence dynamic setting system provided in this application. Figure 6 This is a schematic diagram of the structure of an electronic fence dynamic setting device provided in an embodiment of this application, with reference to... Figure 6 The electronic fence dynamic setting device includes: an input device 33, an output device 34, a memory 32, and one or more processors 31; the memory 32 is used to store one or more programs; when one or more programs are executed by one or more processors 31, the one or more processors 31 implement the electronic fence dynamic setting method provided in the above embodiments. The input device 33, output device 34, memory 32, and processors 31 can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.
[0111] The memory 32, as a computing device readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the electronic fence dynamic setting method provided in any embodiment of this application. The memory 32 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device. Furthermore, the memory 32 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 32 may further include memory remotely located relative to the processor 31, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0112] Input device 33 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 34 may include display devices such as a display screen.
[0113] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 32, thereby realizing the above-mentioned dynamic setting method of electronic fence.
[0114] The electronic fence dynamic setting system, device, and computer provided above can be used to execute the electronic fence dynamic setting method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0115] This application embodiment also provides a storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the electronic fence dynamic setting method provided in the above embodiment. The electronic fence dynamic setting method includes:
[0116] The system acquires real-time vehicle status information, real-time vehicle location information, map data, and initial electronic fence. If an anomaly is detected in the real-time vehicle status information, the system determines the type of vehicle anomaly and divides the initial electronic fence into multiple sub-fence areas.
[0117] Determine the vehicle stop type corresponding to the vehicle anomaly type, identify multiple alternative stops based on real-time vehicle location information and area identifiers in map data, and determine the alternative stops that meet the vehicle stop type as the target stop.
[0118] A navigation path is generated based on real-time vehicle location information and the target stop point. The sub-fence areas traversed by the navigation path are identified as the target fence area, and the initial electronic fence is narrowed down to the target fence area.
[0119] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a first computer system in which a program is executed, or may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0120] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the electronic fence dynamic setting method described above, but can also execute related operations in the electronic fence dynamic setting method provided in any embodiment of this application.
[0121] The electronic fence dynamic setting system, device and storage medium provided in the above embodiments can execute the electronic fence dynamic setting method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the electronic fence dynamic setting method provided in any embodiment of this application.
[0122] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A method for dynamically setting up an electronic fence, characterized in that, include: The system acquires real-time vehicle status information, real-time vehicle location information, map data, and an initial electronic fence. If an anomaly is detected in the vehicle status information, the system determines the type of vehicle anomaly, identifies the region vertices of the initial electronic fence, divides the initial electronic fence into multiple triangular regions based on these vertices, establishes a Cartesian coordinate system with any region vertex as the origin, calculates the center point and weight value of each triangular region based on the vertex coordinates, where the weight value is the area of the corresponding triangular region, and performs a weighted calculation on the center point and weight value of each triangular region to obtain the target center point of the initial electronic fence. Based on the target center point, the initial electronic fence is iteratively segmented to obtain multiple sub-fence regions. Determine the vehicle stop type corresponding to the vehicle anomaly type, determine multiple candidate stops based on the real-time vehicle location information and the area identifier in the map data, and determine the candidate stops that meet the vehicle stop type as the target stop. A navigation path is generated based on the real-time vehicle location information and the target stop point. The sub-fence area traversed by the navigation path is identified as the target fence area, and the initial electronic fence is reduced to the target fence area.
2. The method for dynamically setting an electronic fence according to claim 1, characterized in that, The step of determining multiple alternative stopping points based on the real-time vehicle location information and the area identifiers in the map data includes: The initial parking range of the vehicle is determined based on the real-time vehicle positioning information, and multiple first alternative parking points are determined based on the area identifiers in the map data within the initial parking range. Calculate the target distance and offset direction between the current vehicle and each of the first alternative stopping points based on the real-time vehicle positioning information, and determine the current vehicle's driving direction; Based on the driving direction, the offset direction, and the target distance, the plurality of first candidate stopping points are filtered to obtain a plurality of second candidate stopping points.
3. The method for dynamically setting an electronic fence according to claim 2, characterized in that, The step of determining the initial parking range of the vehicle based on the real-time vehicle positioning information includes: The vehicle trajectory is generated based on the real-time vehicle positioning information, and the rate of change of the vehicle trajectory is identified to determine the buffer radius corresponding to the rate of change. The initial parking range for the vehicle is generated based on the real-time vehicle positioning information and the buffer radius.
4. The method for dynamically setting an electronic fence according to claim 2, characterized in that, The process of filtering the plurality of first candidate stopping points based on the driving direction, the offset direction, and the target distance to obtain a plurality of second candidate stopping points includes: Calculate the offset angle between each offset direction and the driving direction, and determine a plurality of first alternative stopping points whose offset angle is less than a preset angle and whose target distance is less than a preset distance as second alternative stopping points.
5. The method for dynamically setting an electronic fence according to any one of claims 1-4, characterized in that, After narrowing the initial electronic fence to the target fence area, the method further includes: The system monitors changes in the real-time vehicle status information. If the real-time vehicle status information is found to be normal, the target fence area is restored to the fence area of the initial electronic fence.
6. A dynamic setting system for electronic fences, characterized in that, include: The information acquisition module is used to acquire the current vehicle's real-time vehicle status information, real-time vehicle location information, map data, and initial electronic fence. The sub-fence region determination module is used to determine the vehicle anomaly type when an anomaly is detected in the real-time vehicle status information, identify the region vertices of the initial electronic fence, divide the initial electronic fence into multiple triangular regions based on the region vertices, establish a rectangular coordinate system with any region vertex as the origin, calculate the center point and weight value of each triangular region according to the vertex coordinate values of each triangular region in the rectangular coordinate system, the weight value is the area of the corresponding triangular region, perform a weighted calculation on the center point and the weight value of each triangular region to obtain the target center point of the initial electronic fence, and perform iterative region cutting on the initial electronic fence according to the target center point to obtain multiple sub-fence regions; The target stop point determination module is used to determine the vehicle stop point type corresponding to the vehicle anomaly type, determine multiple candidate stop points based on the real-time vehicle positioning information and the area identifier in the map data, and determine the candidate stop point that meets the vehicle stop point type as the target stop point. The target fence area determination module is used to generate a navigation path based on the real-time vehicle positioning information and the target stop point, and determine the sub-fence area traversed by the navigation path as the target fence area. An electronic fence adjustment module is used to shrink the initial electronic fence to the target fence area.
7. An electronic device, the device comprising: One or more processors; A storage device for storing one or more programs that, when executed by one or more processors, cause the one or more processors to implement the electronic fence dynamic setting method as described in any one of claims 1-5.
8. A storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the electronic fence dynamic setting method as described in any one of claims 1-5.
Citation Information
Patent Citations
Semantic mining method and device for vehicle stop points, storage medium and terminal
CN113268678A
Electronic fence monitoring system based on computer vision technology
CN119183067A