Electronic fence dynamic setting method, system and 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 efficient vehicle management in dynamically changing environments.
Patent Information
- Application Number
- CN202511632262.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-10
- Publication Date
- 2025-12-09
- 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, the target parking point is determined, and a navigation path is generated, thus narrowing the initial fence area to the target fence area and realizing the dynamic adjustment of the electronic fence.
This improves the accuracy and flexibility of dynamic adjustments to electronic fences, meets the dynamic changing needs of vehicle management, and enhances management efficiency and accuracy.
Smart Images

Figure CN121099262A_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 corresponding alarms or perform preset operations. 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: 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 when detecting that the real-time vehicle state information is abnormal, and cutting the initial electronic fence into regions to obtain a plurality of sub-fence regions; determining a vehicle parking point type corresponding to the vehicle anomaly type, determining a plurality of candidate parking points according to real-time vehicle positioning information and region identifiers in map data, and determining a candidate parking point meeting the vehicle parking point type as a target parking point; generating a navigation path according to the real-time vehicle positioning information and the target parking point, determining a sub-fence region passed by the navigation path as a target fence region, and reducing the initial electronic fence to the target fence region.
[0006] Optionally, determining a plurality of candidate parking points according to real-time vehicle positioning information and region identifiers in map data comprises: determining a vehicle initial parking range according to real-time vehicle positioning information, and determining a plurality of first candidate parking points in the initial parking range according to region identifiers in map data; calculating target distances and offset directions of the current vehicle from the first candidate parking points according to real-time vehicle positioning information, and determining a driving direction of the current vehicle; screening the first candidate parking points according to the driving direction, the offset directions and the target distances to obtain a plurality of second candidate parking points.
[0007] Optionally, determining a vehicle initial parking range according to real-time vehicle positioning information comprises: generating a vehicle driving trajectory according to real-time vehicle positioning information, identifying a change rate of the vehicle driving trajectory, and determining a buffer radius corresponding to the change rate; generating a vehicle initial parking range according to real-time vehicle positioning information and the buffer radius.
[0008] Optionally, screening the first candidate parking points according to the driving direction, the offset directions and the target distances to obtain a plurality of second candidate parking points comprises: calculating offset angles of the offset directions relative to the driving direction, and determining the first candidate parking points with offset angles less than a preset angle and target distances less than a preset distance as the second candidate parking points.
[0009] Optionally, performing region cutting on the initial electronic fence to obtain a plurality of sub-fence regions comprises: identifying region vertices of the initial electronic fence, and dividing the initial electronic fence into a plurality of triangular regions based on the region vertices; establishing a rectangular coordinate system with any region vertex as an origin, and calculating a target center point of the initial electronic fence according to vertex coordinate values of the triangular regions in the rectangular coordinate system; performing region iterative cutting on the initial electronic fence according to the target center point to obtain a plurality of sub-fence regions.
[0010] Optionally, calculating a target center point of the initial electronic fence according to vertex coordinate values of the triangular regions in the rectangular coordinate system comprises: The center point and the weight value of each triangular region are calculated according to the coordinate values of the vertices of each triangular region in the rectangular coordinate system, and the weight value is the area of the corresponding triangular region; The center point and the weight value of each triangular region are calculated according to the coordinate values of the vertices of each triangular region in the rectangular coordinate system, and the weight value is the area of the corresponding triangular region;
[0011] Optionally, after the initial electronic fence is reduced to the target fence region, the method further comprises: Monitoring the change condition of the real-time vehicle state information, and in the case that the real-time vehicle state information is normal, restoring the target fence region to the fence region of the initial electronic fence.
[0012] In a second aspect, the embodiments of the present application provide an electronic fence dynamic setting system, comprising: An information acquisition module, configured to acquire real-time vehicle state information, real-time vehicle positioning information, map data and an initial electronic fence of a current vehicle; A sub-fence region determination module, configured to determine a vehicle abnormal type of the vehicle in the case that the real-time vehicle state information is abnormal, and perform region cutting on the initial electronic fence to obtain a plurality of sub-fence regions; A target parking point determination module, configured to determine a vehicle parking point type corresponding to the vehicle abnormal type, determine a plurality of candidate parking points according to the real-time vehicle positioning information and region identifiers in the map data, and determine a candidate parking point meeting the vehicle parking point type as a target parking point; A target fence region determination module, configured to generate a navigation path according to the real-time vehicle positioning information and the target parking point, and determine a sub-fence region passed by the navigation path as a target fence region; An electronic fence adjustment module, configured to reduce the initial electronic fence to the target fence region.
[0013] In a third aspect, the embodiments of the present application provide an electronic device, comprising: one or more processors; a storage device configured to store one or more programs, 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 of the first aspect.
[0014] In a fourth aspect, the embodiments of the present application provide a storage medium containing computer executable instructions, when the computer executable instructions are executed by a computer processor, the computer executable instructions are used to execute the electronic fence dynamic setting method of the first aspect.
[0015] The embodiment of the application obtains real-time vehicle state information, real-time vehicle positioning information, map data and an initial electronic fence of a current vehicle, determines a vehicle abnormal type of the vehicle in a case where it is detected that the vehicle state information is abnormal, and performs regional cutting on the initial electronic fence to obtain a plurality of sub-fence regions; determines a vehicle parking point type corresponding to the vehicle abnormal type, determines a plurality of candidate parking points according to the real-time vehicle positioning information and region identifiers in the map data, and determines a candidate parking point meeting the vehicle parking point type as a target parking point; generates a navigation path according to the real-time vehicle positioning information and the target parking point, determines a sub-fence region passed through by the navigation path as a target fence region, and reduces the initial electronic fence to the target fence region. In the above scheme, the accuracy of dynamic adjustment of the electronic fence is improved by performing regional cutting on the initial electronic fence, the target parking point is determined according to the real-time vehicle positioning information and the region identifiers in the map data, the target fence region corresponding to the target parking point is determined, the initial electronic fence is reduced to the target fence region, the flexibility of setting the electronic fence is improved, and the dynamic change requirement of vehicle management is fully met. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 is a flowchart of a dynamic setting method of an electronic fence provided by the embodiment of the application; Figure 2 is a flowchart of a determination method of a candidate parking point provided by the embodiment of the application; Figure 3 is a flowchart of a regional cutting method of an initial electronic fence provided by the embodiment of the application; Figure 4 is a schematic diagram of an initial electronic fence provided by the embodiment of the application; Figure 5 is a structural schematic diagram of an electronic fence dynamic setting system provided by the embodiment of the application; Figure 6 is a structural schematic diagram of an electronic fence dynamic setting device provided by the embodiment of the application. DETAILED DESCRIPTION
[0017] In order to make the purposes, technical solutions and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below with reference to the drawings. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only parts related to the present application are shown in the drawings, but not all. Before discussing the example embodiments in more detail, it should be mentioned that some example embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The processes can be terminated when the operations are completed, but can also have additional steps not included in the drawings. The processes can correspond to methods, functions, procedures, subroutines, etc.
[0018] The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, but not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art belong to the scope of protection of the present application.
[0019] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually a class, not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in an "or" relationship.
[0020] The electronic fence dynamic setting method, system, device and medium provided by the embodiments of the present application will be described in detail below with reference to the drawings through specific embodiments and application scenarios.
[0021] The electronic fence dynamic setting method provided by the embodiments of the present application is used in the scene of managing and supervising the entry or exit of a target object or personnel into or out of a certain area, such as the supervision and management of rental vehicles. Based on the above application scenario, it can be understood that the execution subject of each step can be a computer device, which refers to any electronic device with data calculation, processing and storage capabilities, such as mobile phones, PC (Personal Computer), tablet computers and other terminal devices, or servers and other devices, which are not limited by the embodiments of the present application.
[0022] Figure 1 is a flowchart of a dynamic setting method of an electronic fence provided by an embodiment of the present application, as shown in Figure 1 , comprising: Step S101, acquiring 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 performing regional cutting on the initial electronic fence to obtain a plurality of sub-fence regions.
[0023] The real-time vehicle state information can refer to the current running state and core parameters of the vehicle collected, processed and fed back in real time, and can include the driving state, power state, energy state and fault warning data of the vehicle, such as the current endurance mileage information of the vehicle and the prompt information of whether the vehicle has a fault identifier. The real-time vehicle positioning information can refer to the current geographical position information of the vehicle collected and transmitted in real time through satellite positioning, wireless communication, vehicle-mounted sensing and other technologies, which can be represented by a geographic coordinate system. The map data can refer to geographic spatial elements such as roads, buildings, terrain, etc., which are abstracted and coded in a digital way to form data such as terrain data, traffic network elements and traffic dynamic data. The initial electronic fence can be a perimeter alarm system, which is essentially a virtual boundary of a real geographical area. The initial electronic fence can be set according to the compliance activity range of the actual target object, such as in the supervision and management scene of a public vehicle, the initial electronic fence can be determined based on the vehicle application information of the public vehicle. Illustratively, a vehicle navigation route is generated according to the starting point and the ending point of the vehicle application information, and a fence boundary is extended 50 meters to both sides of the vehicle navigation route, and a closed initial electronic fence is generated based on the fence boundary. The vehicle abnormal type can refer to the classification of various abnormal phenomena exhibited by deviating from the normal working state due to mechanical failure, electronic system failure, component wear, improper operation or external factors. Optionally, the vehicle abnormal type can also include the case of insufficient vehicle endurance mileage. The sub-fence region can refer to a plurality of smaller and relatively independent regions divided by a specific cutting rule or algorithm. These sub-fence regions are components of the initial electronic fence, which together constitute a more detailed division and management of a specific geographical space.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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.
[0028] In an embodiment, if the vehicle abnormal type is "vehicle endurance mileage is insufficient", the corresponding vehicle parking type is "gas station" or "charging station" and the like. In combination with real-time vehicle positioning information and map data, all parking points with a distance less than a preset distance from the current vehicle are determined as candidate parking points, and the candidate parking points meeting the vehicle parking point type are determined as target parking points. For example, the determined multiple candidate parking points include gas station A, gas station B, a parking lot and a roadside temporary parking point, and the type of the vehicle parking point is "gas station", then gas station A or gas station B is determined as the target parking point.
[0029] In step S103, a navigation path is generated according to the real-time vehicle positioning information and the target parking point, a sub-fence area through which the navigation path passes is determined as a target fence area, and the initial electronic fence is reduced to the target fence area.
[0030] The navigation path can guide the navigation path to be a set of a series of continuous geographic coordinates or road nodes generated by an algorithm under the support of a navigation system, for guiding a user to reach a destination from a starting point according to the starting point, the destination and personalized needs set by the user.
[0031] In an embodiment, the current vehicle position is determined according to the real-time vehicle positioning information, and a navigation path is generated with the current vehicle position as a starting point and the target parking point as a destination. The system traverses all geographic coordinate points on the navigation path, determines the sub-fence areas to which these points belong, and takes the set of these sub-fence areas as a target fence area, and reduces the initial electronic fence to the target fence area.
[0032] In the embodiments of the present application, real-time vehicle state information, real-time vehicle positioning information, map data and an initial electronic fence of a current vehicle are obtained, in the case of detecting that the real-time vehicle state information is abnormal, a vehicle abnormal type of the vehicle is determined, and the initial electronic fence is regionally cut to obtain multiple sub-fence areas; a vehicle parking point type corresponding to the vehicle abnormal type is determined, multiple candidate parking points are determined according to the real-time vehicle positioning information and the area identifier in the map data, and the candidate parking points meeting the vehicle parking point type are determined as target parking points; a navigation path is generated according to the real-time vehicle positioning information and the target parking point, a sub-fence area through which the navigation path passes is determined as a target fence area, and the initial electronic fence is reduced to the target fence area. In the above scheme, the accuracy of dynamic adjustment of the electronic fence is improved by regionally cutting the initial electronic fence, the target parking point is determined by the real-time vehicle positioning information and the area identifier in the map data, the target fence area corresponding to the target parking point is determined, the initial electronic fence is reduced to the target fence area, the flexibility of setting the electronic fence is improved, the dynamic change demand of vehicle management is fully met, and the efficiency and accuracy of vehicle management are also improved.
[0033] Optionally, after the initial electronic fence is reduced to the target fence area, the method further comprises: monitoring a change condition of real-time vehicle state information, and in a case where it is monitored that the real-time vehicle state information is normal, restoring the target fence area to a fence area of the initial electronic fence.
[0034] In one embodiment, the real-time vehicle state information is monitored by a case where the abnormal state becomes normal, and the change condition of the real-time vehicle state information can include a change process from below a preset endurance mileage threshold to above the preset endurance mileage threshold of the endurance mileage of the vehicle, or a process from appearance of a fault identifier to elimination of the fault identifier. If the endurance mileage is above the preset endurance mileage threshold or the fault identifier is eliminated, it can be considered that the vehicle state information at this time is normal, that is, after the vehicle state information becomes normal from abnormal, the target fence area can be expanded to the size of the initial electronic fence.
[0035] The embodiment of the present application monitors the change condition of the real-time vehicle state information, and in a case where it is monitored that the real-time vehicle state information is normal, restores the target fence area to a fence area of the initial electronic fence, which can not only ensure the freedom of the vehicle in the normal driving process, but also ensure that the vehicle can be effectively managed and supervised in a timely manner when problems occur.
[0036] Figure 2 is a flowchart of a method for determining an alternative parking point provided by the embodiment of the present application, as shown in Figure 2 , the method comprises: Step S1021, determining an initial parking range of the vehicle according to real-time vehicle positioning information, and determining a plurality of first alternative parking points in the initial parking range according to region identifiers in map data.
[0037] Step S1022, calculating target distances and offset directions of the current vehicle from the first alternative parking points according to the real-time vehicle positioning information, and determining a driving direction of the current vehicle.
[0038] Step S1023, screening the first alternative parking points according to the driving direction, the offset direction and the target distances, to obtain a plurality of second alternative parking points.
[0039] The vehicle initial parking range can be used to limit the search range of the candidate parking point, thereby improving the search efficiency and accuracy. The first candidate parking point refers to a candidate parking point located in the vehicle initial parking range and meeting certain conditions, which can include the type of parking point, opening time, number of remaining parking spaces, and the like. The target distance refers to the straight-line distance or path distance between the current vehicle and each first candidate parking point. The offset direction refers to the azimuth or direction angle of the current vehicle relative to each first candidate parking point, which is used to determine the relative position of the candidate parking point relative to the vehicle. The driving direction refers to the driving direction of the current vehicle, which can be obtained through the driving trajectory of the vehicle or the data of the navigation system.
[0040] In one embodiment, the current vehicle position is determined according to real-time vehicle positioning information. A circular region or rectangular region with a preset distance as a radius is determined with the current vehicle position as the center. A plurality of first candidate parking points in the initial parking range are determined according to the region identifier in the map data. The target distance between the current vehicle and each first candidate parking point is calculated, as well as the relative position relationship. The driving direction of the current vehicle is determined according to the initial vehicle navigation information, which is generated according to the starting point and the ending point in the vehicle application information. After determining the target distance, the offset direction of the current vehicle and the driving direction of the current vehicle, a plurality of first candidate parking points with the closest target distance and the same offset direction as the current driving direction are determined as second candidate parking points. The second candidate parking points are more in line with the actual needs of the current vehicle relative to the first candidate parking points, providing a more accurate candidate set for subsequent determination of the target parking point.
[0041] The embodiments of the present application determine the vehicle initial parking range according to real-time vehicle positioning information, and determine a plurality of first candidate parking points in the initial parking range according to the region identifier in the map data. The target distance and the offset direction between the current vehicle and each first candidate parking point are calculated according to the real-time vehicle positioning information, and the driving direction of the current vehicle is determined. The plurality of first candidate parking points are screened according to the driving direction, the offset direction and the target distance, and a plurality of second candidate parking points are obtained. In the above scheme, the efficiency and accuracy of determining the target parking point are improved by screening the candidate parking points in the initial parking range. After determining the first candidate parking point, the second candidate parking point with the optimal evaluation result is determined as the second candidate parking point by comprehensive evaluation of the first candidate parking point. Not only can the vehicle find a suitable parking point in time under abnormal conditions, but also the efficiency and safety of vehicle management can be improved.
[0042] In an embodiment, the initial parking range of the vehicle is determined according to the real-time vehicle positioning information, including: generating a vehicle travel trajectory according to the real-time vehicle positioning information, identifying a change rate of the vehicle travel trajectory, and determining a buffer radius corresponding to the change rate; and generating the initial parking range of the vehicle according to the real-time vehicle positioning information and the buffer radius.
[0043] The vehicle travel trajectory can refer to a path traveled by the vehicle within a certain time, which can be collected and recorded in real time through GPS positioning technology, vehicle-mounted sensors, and other technical means. The change rate can refer to the speed of change of the vehicle travel speed, which can be obtained by calculating the distance and time difference between adjacent position points in the vehicle travel trajectory. The buffer radius refers to a certain range of buffer zone set around the current position of the vehicle to consider the uncertainty and safety of vehicle travel. The radius of the buffer zone can be determined according to the change rate of the vehicle travel speed, such as setting a larger buffer radius when the vehicle travel speed is faster, to ensure that the vehicle has enough space and time to park or adjust the travel direction.
[0044] In an embodiment, the vehicle travel trajectory from the departure time of the starting point of the vehicle to the current time can be collected in real time through GPS positioning technology, and the change rate of the vehicle travel trajectory can be determined by calculating the distance and time difference between adjacent position points in the vehicle travel trajectory. The buffer radius corresponding to the current change rate can be determined according to the mapping relationship between the pre-set trajectory change rate range and the buffer radius, and the initial parking range of the vehicle can be generated with the current position of the vehicle as the center and the buffer radius as the radius.
[0045] The embodiment of the present application generates a vehicle travel trajectory according to real-time vehicle positioning information, identifies a change rate of the vehicle travel trajectory, determines a buffer radius corresponding to the change rate, and generates an initial parking range of the vehicle according to real-time vehicle positioning information and the buffer radius. This provides a more reasonable search range for subsequent determination of alternative parking points. Through identification and analysis of the vehicle travel trajectory and the change rate, the initial parking range of the vehicle can be dynamically determined, improving the accuracy and flexibility of determining alternative parking points.
[0046] Optionally, the plurality of first alternative parking points are filtered according to the travel direction, the offset direction, and the target distance to obtain a plurality of second alternative parking points, including: calculating an offset angle of each offset direction with respect to the travel direction, and determining the plurality of first alternative parking points with an offset angle less than a preset angle and a target distance less than a preset distance as the second alternative parking points.
[0047] In the first embodiment, an included angle between a driving direction of the current vehicle and an offset direction of each first candidate parking point is calculated as an offset angle. The offset angle refers to a difference between the driving direction of the current vehicle and a bearing angle of each candidate parking point relative to the vehicle. The preset angle refers to an angle threshold for screening candidate parking points, which is set in advance according to actual needs, such as 30 degrees, 45 degrees, etc. The preset distance refers to a distance threshold for screening candidate parking points, which is set in advance according to actual needs. The first candidate parking points with an offset angle less than the preset angle and a target distance less than the preset distance are screened out as second candidate parking points.
[0048] The embodiments of the present application determine the first candidate parking points with an offset angle less than the preset angle and a target distance less than the preset distance as the second candidate parking points by calculating the offset angle of each offset direction and the driving direction, which provides a more accurate candidate set for subsequent determination of the target parking point. By comprehensively considering the offset angle and the target distance, the candidate parking points that meet the driving direction and distance requirements of the current vehicle can be more accurately screened out, thereby improving the efficiency and accuracy of determining the target parking point.
[0049] Figure 3 is a flowchart of a region cutting method of an initial electronic fence provided by the embodiments of the present application, as shown in Figure 3 , which includes: Step S1011, identifying a region vertex of the initial electronic fence, and dividing the initial electronic fence into a plurality of triangular regions based on the region vertex.
[0050] Step S1012, establishing a rectangular coordinate system with any region vertex as an origin, and calculating a target center point of the initial electronic fence according to vertex coordinate values of each triangular region in the rectangular coordinate system.
[0051] Step S1013, performing region iterative cutting on the initial electronic fence according to the target center point to obtain a plurality of sub-fence regions.
[0052] The region vertex can refer to a key point or an inflection point on the boundary of the initial electronic fence, which can determine the shape and range of the electronic fence. The rectangular coordinate system refers to a planar rectangular coordinate system established with any region vertex as an origin and two mutually perpendicular straight lines as coordinate axes, which is used to determine the vertex coordinate values of each triangular region. The target center point refers to a point calculated according to the vertex coordinate values of each triangular region, which is used as a reference point for region iterative cutting. The region iterative cutting refers to cutting the initial electronic fence multiple times with the target center point as the reference, each cutting divides the current region into smaller sub-regions, until a preset condition is met, such as the area of the sub-region being less than a preset area, the number of sub-regions reaching a preset number, etc.
[0053] Figure 4is a schematic diagram of an initial electronic fence provided by an embodiment of the present application, as shown Figure 4 As shown, the initial electronic fence ABCD can be divided into two triangular regions, triangular ABC and triangular ADC, by identifying the region vertices of the initial electronic fence ABCD. After determining the multiple triangular regions, any region vertex is selected as the origin to establish a rectangular coordinate system, such as establishing a rectangular coordinate system with point A as the origin. According to the vertex coordinate values 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 according to the vertex coordinate values and geometric drawing method. For example, the intersection of the three medians of each triangular region can be first drawn according to the vertex coordinate values of each triangular region, and the coordinates of the intersection of the three medians are determined as the center point of the corresponding triangular region according to the rectangular coordinate system, such as the center point M of triangular ABC and the center point N of triangular ADC. Then, the target center point O is calculated according to the coordinates of the center points, or the target center point O of the initial electronic fence is directly determined according to the geometric drawing method. 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, upper left (aBbO region), upper right (ObCc region), lower left (AaOd region), and lower right (dOcD region), and each sub-region is iteratively cut according to the same method as above until the area of each sub-fence region is less than the preset area.
[0054] In the above scheme, by region division and iterative cutting of the initial electronic fence, the accuracy and efficiency of the electronic fence region cutting are improved, and more accurate and reliable electronic fence regions are provided for subsequent vehicle management and monitoring. At the same time, this scheme can also adapt to initial electronic fences of different shapes and sizes, and has strong versatility and flexibility.
[0055] In one embodiment, the target center point of the initial electronic fence is calculated according to the vertex coordinate values of each triangular region in the rectangular coordinate system, including: calculating 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, and the weight value is the area of the corresponding triangular region; and performing weighted calculation on the center point and weight value of each triangular region to obtain the target center point of the initial electronic fence.
[0056] For example, if the coordinates of the triangle vertices are (x1, y1), (x2, y2), and (x3, y3), the coordinates of the barycenter of the triangle are ((x1+x2+x3) / 3, (y1+y2+y3) / 3). Since different sizes of triangles have different influences on the determination of the target center point of the initial electronic fence, the greater the area of the triangle, the greater the influence on the determination of the target center point. Therefore, the areas of the triangles need to be calculated respectively. If the area of triangle ABC is 10㎡, the corresponding barycenter coordinates are (10, 20), and the area of triangle ADC is 20㎡, the corresponding barycenter coordinates are (15, 25), then the horizontal coordinate of the target center point is , and the vertical coordinate of the target center point is Therefore, the coordinates of the target center point of the initial electronic fence are (13.3, 23.3).
[0057] Figure 5 is a structural diagram of an electronic fence dynamic setting system provided by an embodiment of the present application, as shown in Figure 5 , comprising: an information acquisition module 21, configured to acquire real-time vehicle state information, real-time vehicle positioning information, map data, and an initial electronic fence of a current vehicle; a sub-fence area determination module 22, configured to determine a vehicle abnormal type of the vehicle when detecting that the real-time vehicle state information is abnormal, and perform area cutting on the initial electronic fence to obtain a plurality of sub-fence areas; a target parking point determination module 23, configured to determine a vehicle parking point type corresponding to the vehicle abnormal type, determine a plurality of candidate parking points according to the real-time vehicle positioning information and area identifiers in the map data, and determine a candidate parking point satisfying the vehicle parking point type as a target parking point; a target fence area determination module 24, configured to generate a navigation path according to the real-time vehicle positioning information and the target parking point, and determine a target fence area through the sub-fence areas of the navigation path; an electronic fence adjustment module 25, configured to reduce the initial electronic fence to the target fence area.
[0058] The embodiment of the application obtains real-time vehicle state information, real-time vehicle positioning information, map data and an initial electronic fence of a current vehicle, determines a vehicle abnormal type of the vehicle in a case where it is detected that the vehicle state information is abnormal, and performs regional cutting on the initial electronic fence to obtain a plurality of sub-fence regions; determines a vehicle parking point type corresponding to the vehicle abnormal type, determines a plurality of alternative parking points according to the real-time vehicle positioning information and region identifiers in the map data, and determines an alternative parking point that meets the vehicle parking point type as a target parking point; generates a navigation path according to the real-time vehicle positioning information and the target parking point, determines a sub-fence region passed by the navigation path as a target fence region, and reduces the initial electronic fence to the target fence region. In the above scheme, the accuracy of dynamic adjustment of the electronic fence is improved by performing regional cutting on the initial electronic fence, the target parking point is determined according to the real-time vehicle positioning information and the region identifiers in the map data, the target fence region corresponding to the target parking point is determined, and the initial electronic fence is reduced to the target fence region, thereby improving the flexibility of setting the electronic fence and fully meeting the dynamic change requirements of vehicle management.
[0059] In one possible embodiment, the target parking point determination module 23 is specifically configured to: determine a vehicle initial parking range according to the real-time vehicle positioning information, and determine a plurality of first alternative parking points in the initial parking range according to region identifiers in the map data; calculate target distances and offset directions of the current vehicle from the first alternative parking points according to the real-time vehicle positioning information, and determine a driving direction of the current vehicle; screen the first alternative parking points according to the driving direction, the offset directions and the target distances to obtain a plurality of second alternative parking points.
[0060] In one possible embodiment, the target parking point determination module 23 is specifically configured to: generate a vehicle driving track according to the real-time vehicle positioning information, identify a change rate of the vehicle driving track, and determine a buffer radius corresponding to the change rate; generate a vehicle initial parking range according to the real-time vehicle positioning information and the buffer radius.
[0061] In one possible embodiment, the target parking point determination module 23 is specifically configured to: calculate offset angles of the offset directions relative to the driving direction, and determine the first alternative parking points with the offset angles less than a preset angle and the target distances less than a preset distance as the second alternative parking points.
[0062] In one possible embodiment, the sub-fence region determination module 22 is specifically configured to: identify region vertices of the initial electronic fence, and divide the initial electronic fence into a plurality of triangular regions based on the region vertices; establishing a rectangular coordinate system with any area vertex as the origin, calculating a target center point of the initial electronic fence according to vertex coordinate values of each triangular area in the rectangular coordinate system; performing area iterative cutting on the initial electronic fence according to the target center point, to obtain a plurality of sub-fence areas.
[0063] In one possible embodiment, the sub-fence area determination module 22 is specifically configured to: calculate a center point and a weight value of each triangular area according to vertex coordinate values of each triangular area in the rectangular coordinate system, the weight value being an area of the corresponding triangular area; perform weighted calculation on the center point and the weight value of each triangular area, to obtain a target center point of the initial electronic fence.
[0064] In one possible embodiment, the electronic fence adjustment module 25 is further configured to monitor a change condition of real-time vehicle state information, and restore the target fence area to a fence area of the initial electronic fence in a case where it is monitored that the real-time vehicle state information is normal.
[0065] The embodiments of the present application further provide an electronic device, and the electronic fence dynamic setting device can integrate the electronic fence dynamic setting system provided by the embodiments of the present application. Figure 6 is a structural schematic diagram of an electronic fence dynamic setting device provided by the embodiments of the present application, referring 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 the one or more programs are executed by the one or more processors 31, the one or more processors 31 implement the electronic fence dynamic setting method provided by the above embodiments. The input device 33, the output device 34, the memory 32, and the processor 31 can be connected through a bus or other means, Figure 6 for example, through the bus connection in
[0066] The memory 32 can be used to store software programs, computer executable programs and modules, such as program instructions / modules of the electronic fence dynamic setting method provided by any of the embodiments. The memory 32 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; and the data storage area can store data created according to the use of the device. In addition, the memory 32 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state memory device. In some examples, the memory 32 can further include a memory remotely arranged with respect to the processor 31, which can be connected to the device through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0067] The input device 33 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 34 can include a display device such as a display screen.
[0068] The processor 31 executes various function applications and data processing of the device by running software programs, instructions and modules stored in the memory 32, that is, implements the electronic fence dynamic setting method described above.
[0069] The electronic fence dynamic setting system, device and computer provided above can be used to execute the electronic fence dynamic setting method provided by any of the embodiments, and have corresponding functions and advantages.
[0070] The embodiments also provide a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the electronic fence dynamic setting method provided by the above embodiments, and the electronic fence dynamic setting method includes: 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 a case where it is detected that the real-time vehicle state information is abnormal, and performing region cutting on the initial electronic fence to obtain a plurality of sub-fence regions; determining a vehicle parking point type corresponding to the vehicle abnormal type, determining a plurality of candidate parking points according to the real-time vehicle positioning information and region identifiers in the map data, and determining a target parking point from the candidate parking points that meets the vehicle parking point type; generating a navigation path according to the real-time vehicle positioning information and the target parking point, determining a target fence region as a sub-fence region through which the navigation path passes, and reducing the initial electronic fence to the target fence region.
[0071] Storage medium - any type of memory device or storage device. The term "storage medium" is intended to include an installation medium, e.g., a CD-ROM, floppy disks, or tape apparatus; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; or a non-volatile memory such as a magnetic medium (e.g., a hard drive or optical storage); registers or other similar types of memory elements, etc. The memory medium can also include other types of storage medium and combinations thereof. In addition, the memory medium can reside in a first computer system's main memory, or in a second different computer system's memory, and the second computer system can provide the data to the first computer system over a network (e.g., the Internet) for execution by the first computer system. The term "memory medium" can also include two or more memory mediums that reside in different places, e.g., in different computer systems that are connected over a network. Each of the memory medium can store a program or programs that are executable by one or more processors (e.g., a computer program in accordance with an embodiment of the present application is stored by a memory medium as an example).
[0072] Of course, the storage medium provided by the embodiments of the present application includes computer executable instructions, and the computer executable instructions are not limited to the electronic fence dynamic setting method described above, but can also perform the related operations in the electronic fence dynamic setting method provided by any of the embodiments of the present application.
[0073] The electronic fence dynamic setting system, device and storage medium provided in the above embodiments can execute the electronic fence dynamic setting method provided by any of the embodiments of the present application, and the technical details not described in detail in the above embodiments can refer to the electronic fence dynamic setting method provided by any of the embodiments of the present application.
[0074] The above is only the preferred embodiment of the present application and the technical principle used. The present application is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments and replacements made by those skilled in the art will not deviate from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without deviating from the concept of the present application, and the scope of the present application 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 and divides the initial electronic fence into multiple sub-fence areas. 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 claim 1, characterized in that, The initial electronic fence is divided into multiple sub-fence areas, including: Identify the region vertices of the initial electronic fence, and divide the initial electronic fence into multiple triangular regions based on the region vertices; 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 of the triangular regions in the rectangular coordinate system. Based on the target center point, the initial electronic fence is iteratively divided into multiple sub-fence areas.
6. The method for dynamically setting an electronic fence according to claim 5, characterized in that, The step of calculating the target center point of the initial electronic fence based on the vertex coordinates of each of the triangular regions in the Cartesian coordinate system includes: 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. 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.
7. The method for dynamically setting an electronic fence according to any one of claims 1-6, 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.
8. 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 area determination module is used to determine the vehicle anomaly type when the real-time vehicle status information is detected to be abnormal, and to divide the initial electronic fence into multiple sub-fence areas. 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.
9. An electronic device, characterized in that, The device includes: one or more processors; and a storage device for storing one or more programs, which, when executed by the 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-7.
10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the electronic fence dynamic setting method as described in any one of claims 1-7.
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
Method and system for intelligently sensing abnormal driving situation of vehicle on highway
CN119541240A
Park monitoring methods, park monitoring systems and computer-readable storage media
US20220157021A1