WO2020238691A1 - Image processing method and apparatus, and electronic device and storage medium - Google Patents
Image processing method and apparatus, and electronic device and storage medium Download PDFInfo
- Publication number
- WO2020238691A1 WO2020238691A1 PCT/CN2020/090968 CN2020090968W WO2020238691A1 WO 2020238691 A1 WO2020238691 A1 WO 2020238691A1 CN 2020090968 W CN2020090968 W CN 2020090968W WO 2020238691 A1 WO2020238691 A1 WO 2020238691A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- point
- original
- area
- reachable
- target
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 45
- 230000035772 mutation Effects 0.000 claims description 30
- 230000015654 memory Effects 0.000 claims description 18
- 238000012545 processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 30
- 238000009499 grossing Methods 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 238000013480 data collection Methods 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 4
- 238000010845 search algorithm Methods 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 239000000446 fuel Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- SAZUGELZHZOXHB-UHFFFAOYSA-N acecarbromal Chemical compound CCC(Br)(CC)C(=O)NC(=O)NC(C)=O SAZUGELZHZOXHB-UHFFFAOYSA-N 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3453—Special cost functions, i.e. other than distance or default speed limit of road segments
- G01C21/3469—Fuel consumption; Energy use; Emission aspects
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
- G01C21/3626—Details of the output of route guidance instructions
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L3/00—Electric devices on electrically-propelled vehicles for safety purposes; Monitoring operating variables, e.g. speed, deceleration or energy consumption
- B60L3/12—Recording operating variables ; Monitoring of operating variables
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
- G01C21/3605—Destination input or retrieval
- G01C21/3614—Destination input or retrieval through interaction with a road map, e.g. selecting a POI icon on a road map
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
- G01C21/3667—Display of a road map
- G01C21/367—Details, e.g. road map scale, orientation, zooming, illumination, level of detail, scrolling of road map or positioning of current position marker
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/36—Input/output arrangements for on-board computers
- G01C21/3697—Output of additional, non-guidance related information, e.g. low fuel level
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/38—Electronic maps specially adapted for navigation; Updating thereof
- G01C21/3804—Creation or updating of map data
- G01C21/3833—Creation or updating of map data characterised by the source of data
- G01C21/3856—Data obtained from user input
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L2240/00—Control parameters of input or output; Target parameters
- B60L2240/60—Navigation input
- B60L2240/62—Vehicle position
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L2250/00—Driver interactions
- B60L2250/16—Driver interactions by display
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L2260/00—Operating Modes
- B60L2260/40—Control modes
- B60L2260/50—Control modes by future state prediction
- B60L2260/52—Control modes by future state prediction drive range estimation, e.g. of estimation of available travel distance
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/70—Energy storage systems for electromobility, e.g. batteries
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/72—Electric energy management in electromobility
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02T90/10—Technologies relating to charging of electric vehicles
- Y02T90/16—Information or communication technologies improving the operation of electric vehicles
Definitions
- This application relates to the field of computer technology, and in particular to an image processing method, device, electronic equipment, and storage medium.
- the display of the car's cruising mileage is often in the form of numerical values, that is, the cruising mileage is displayed numerically on the car dashboard.
- the instrument panel displays "Courage Range 100km”.
- the embodiments of the present application provide an image processing method, device, electronic device, and storage medium, which can intuitively show users the actual reach of a car, thereby improving the efficiency of travel planning.
- the embodiment of the application provides an image processing method, which is executed by an electronic device, and includes:
- the target battery life area is displayed in the map display interface.
- the embodiment of the present application also provides an image processing device, including:
- the first obtaining module is used to obtain the remaining mileage parameters of the vehicle
- the second acquiring module is used to acquire the starting position of the vehicle in the map display interface
- a target area determination module configured to determine a target endurance area in the map display interface according to the starting position and the remaining mileage parameter
- the first acquisition module is also used to display the target battery life area in the map display interface.
- An embodiment of the present application also provides an electronic device, including: a processor and a memory;
- the processor is connected to a memory, where the memory is used to store a computer program, and the processor is used to call the computer program to execute the method in the embodiment of the present application.
- the embodiment of the present application also provides a computer storage medium, the computer storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the method.
- the remaining mileage parameters of the vehicle are obtained; the starting position of the vehicle in the map display interface is obtained; the target endurance area is determined in the map display interface according to the starting position and the remaining mileage parameters; in the map display interface Show the target battery life area.
- FIG. 1 is an image processing system architecture diagram provided by an embodiment of the present application
- FIGS. 2a-2b are schematic diagrams of an image processing scene provided by an embodiment of the present application.
- FIG. 3a is a schematic flowchart of an image processing method provided by an embodiment of the present application.
- FIG. 3b is a schematic diagram of a process for determining a target endurance area provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of determining original candidate points provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of determining a target point that meets a position mutation condition provided by an embodiment of the present application
- FIG. 6 is another schematic diagram of determining a target point that meets a position mutation condition provided by an embodiment of the present application.
- FIG. 7 is a schematic flowchart of another image processing method provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of a relationship between a first length threshold and a second length threshold according to an embodiment of the present application.
- Fig. 9a is a schematic diagram of determining a first unit road network data block provided by an embodiment of the present application.
- Figure 9b is a schematic diagram of determining a second unit road network data block provided by an embodiment of the present application.
- Figure 10a is another schematic diagram of determining a second unit road network data block provided by an embodiment of the present application.
- FIG. 10b is a schematic diagram of determining candidate points according to an embodiment of the present application.
- FIG. 11a is a schematic diagram of determining the path distance of a road network according to an embodiment of the present application.
- FIG. 11b is a schematic diagram of a target endurance area provided by an embodiment of the present application.
- FIG. 12 is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present application.
- FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 1 is a diagram of an image processing system architecture provided by an embodiment of the present application.
- the server 10g establishes a connection with the user terminal cluster and the car cluster through the switch 10f and the communication bus 10e.
- the user terminal cluster may include: a user terminal 10a, a user terminal 10c, etc., and a car cluster that has a binding relationship with the user terminal 10a and the user terminal 10c. It may include: car 10b, car 10d, etc.
- the car 10b when the car navigation in the car 10b is activated, the car 10b sends the remaining mileage and current position to the server 10g through the switch 10f and the communication bus 10e.
- the server 10g determines the actual reach of the car 10b on the map according to the remaining mileage and the current position.
- the server 10g may send the actual reachable range to the car 10b, and display the actual reachable range on the map page of the car navigation in the car 10b.
- the server 10f may also send the actual reachable range to the user terminal 10a that has a binding relationship with the car 10b, and may also display the actual reachable range on the map page of the user terminal 10a.
- the actual reachable range can also be determined on the map page by the car (or the user terminal) according to the remaining mileage of the car and the current location. Similarly, it can be on the map page of the car navigation (or the map page of the user terminal) Display the actual reachable range.
- the user terminal 10a, user terminal 10c, etc. shown in FIG. 1 may include mobile phones, tablet computers, notebook computers, handheld computers, mobile Internet devices (MID, mobile internet devices), wearable devices (such as smart watches, smart bracelets) and many more.
- MID mobile internet devices
- wearable devices such as smart watches, smart bracelets
- FIG. 2a-2b are schematic diagrams of an image processing scene provided by an embodiment of the present application.
- the user clicks on the "My Car” App to start the App.
- the App is used to manage the car information of the car that has a binding relationship with the user terminal 10a, that is, the car can pass through
- the Internet of Vehicles sends car information to the user terminal 10a, and the user terminal 10a can also send instructions to the car through the Internet of Vehicles.
- the user terminal 10a obtains the remaining mileage of the car and the current location information of the car, and obtains the map scale factor of the built-in map page 20a of the "My Car” App, and determines the radius factor according to the map scale factor and the remaining mileage.
- the terminal device 10a uses the current position information of the car as the center and the radius coefficient as the radius in the map page 20a to determine the original reachable area 20c. It can be known that since the original reachable area 20c is a circle determined by the remaining mileage, no matter which direction the car drives, the remaining mileage exhaustion point must be located in the original reachable area 20c or on the boundary of the original reachable area 20c.
- the user terminal 10a divides the original reachable area 20b into 4 unit original reachable areas with the center of the original reachable area 20c as the center and 90° intervals, which are: unit original reachable area 20d, unit original reachable area 20e, unit original reachable area 20f, and unit original reachable area 20g, it can be known that the original reachable area of each unit is fan-shaped.
- the user terminal 10a For each unit's original reachable area, the user terminal 10a respectively determines multiple candidate points in the area.
- the number of candidate points in the original reachable area of each unit may be the same or different; and the original The method of selecting candidate points in the reachable area can be the same or different.
- candidate points can be selected in the original reachable area of each unit in a random manner, or alternative points can be selected in the original reachable area of each unit in a manner of the same distance.
- the candidate points selected in the area are candidate point 1 and candidate point 2.
- the selected candidate points in this area The candidate points are candidate point 3 and candidate point 4; for the unit's original reachable area 20f, the candidate points selected in the area are candidate point 5 and candidate point 6; for the unit's original reachable area 20g In other words, the candidate points selected in the area are candidate point 7 and candidate point 8.
- the next step is to filter and retain the above 8 candidate points.
- the specific process is: for all candidate points, the user terminal 10a calls the route navigation interface to determine the distance between each candidate point and the current position of the car. The user terminal 10a deletes the candidate points with the shortest road network distance greater than the remaining mileage. On the contrary, the user terminal 10a reserves the candidate points with the shortest road network distance less than or equal to the remaining mileage. It should be noted that when the candidate point is in an unreachable area of the road network, such as rivers, mountains, enclosed areas, etc., it means that the shortest distance between the candidate point and the current position of the car is infinite.
- the remaining candidate points in the original reachable area of each unit need to be filtered again.
- the specific process of re-filtering is: the user terminal 10a only retains the original reachable area of each unit The candidate points farthest from the center of the circle (that is, the current position of the car), filter out the remaining candidate points in the original reachable area of each unit.
- the distance measurement method here can be the distance in the map page 20a or the shortest distance of the road network.
- the last remaining candidates are candidate point 1 and candidate point 2 (because candidate point 1 and candidate point 2 are points on the circle, the two The candidate points may be retained at the same time); for the unit’s original reachable area 20e, the last remaining candidate is the candidate point 4; for the unit’s original reachable area 20f, the last remaining candidate is the candidate point 6; For the unit's original reachable area of 20g, the last remaining option is point 7.
- the user terminal 10a connects the remaining candidate points in a clockwise or counterclockwise order, that is, connects candidate point 1, candidate point 2, candidate point 4, candidate point 6 and backup points in sequence.
- Select point 7 after connecting, the actual reachable area 20h can be determined on the map page 20a, and the actual reachable area 20h can be rendered on the map page 20a, that is, the actual reachable area 20h is marked on the map page 20a.
- the user terminal 10a may render the boundary of the actual reachable area 20h in red; if the remaining mileage is greater than the mileage threshold, the user terminal 10a may render the boundary of the actual reachable area 20h in blue.
- lines of different thicknesses, or solid lines and/or dashed lines may also be used to render the boundary of the actual reachable area 20h for prompting the user.
- a preset animation can be played on the screen of the user terminal, and at the same time, the user terminal 10a can be displayed on the map page in parallel
- the actual reachable area is determined at 20h.
- the map page 20a that has rendered the actual reachable area 20h is displayed on the homepage.
- you can The license plate of the car that has a binding relationship with the user terminal 10a, the owner's name, the remaining mileage (that is, the battery life in FIG. 2b), and the remaining power (or remaining fuel) are also displayed. In this way, the user can view the longest distance range that the car can travel through the user terminal 10a, which is convenient for planning a trip.
- the user terminal 10a may send the rendered map page 20a of the actual reachable area 20h to the car that has a binding relationship with the user terminal 10a.
- the rendering can be displayed on the car’s display screen.
- the map page 20a of the actual reachable area 20h is used to remind the owner of the actual reach of the car.
- determine the original endurance area such as the original reachable area 20c in the embodiment corresponding to FIG. 2a
- generate original candidate points such as candidate 1, candidate point 2 in the corresponding embodiment in FIG. 2a.
- Alternative 8 The specific process of determining the target cruising area (such as the actual reachable area 20h in the embodiment corresponding to FIG. 2a) can be referred to the following embodiments corresponding to FIG. 3a to FIG. 11b.
- FIG. 3a is a schematic flowchart of an image processing method provided by an embodiment of the present application.
- the image processing method may include:
- Step S101 Obtain remaining mileage parameters of the vehicle.
- the image processing process in this application involves cars and terminal equipment.
- the execution subject of the following steps can be a car or a terminal device; if the execution subject is a car, the car can send the area data to the car after determining the target endurance area.
- the subsequent embodiments are described with the terminal device as the execution subject.
- the terminal device obtains the remaining mileage parameter of the vehicle (for example, a car); wherein the remaining mileage parameter may be sent by the vehicle to the terminal device through the Internet of Vehicles,
- the remaining mileage parameter is the length of the distance that the vehicle can still travel based on the current electricity or fuel amount.
- the remaining mileage parameter is 200km.
- Step S102 Acquire the starting position of the vehicle on the map display interface.
- the terminal device obtains the current location of the vehicle, where the current location may also be sent by the vehicle to the terminal device through the Internet of Vehicles.
- the terminal device determines the starting position in the map display interface (such as the map page 20a in the embodiment corresponding to FIG. 2a) according to the current position of the vehicle.
- Step S103 Determine a target cruising area in the map display interface according to the starting position and the remaining mileage parameter.
- the terminal device may randomly determine multiple target points around the starting position in the map display interface with the starting position as the center.
- the above multiple target points are connected, and the obtained area is called the target endurance area (for example, the actual reachable area 20h in the corresponding embodiment in FIG. 2a).
- the terminal device obtains the map scale factor of the map display interface, where the map scale factor is the ratio of the length of the line segment on the map display interface to the length of the corresponding line segment on the ground through the horizontal projection.
- the terminal device determines the mileage radius coefficient according to the remaining mileage parameter and the map scale factor.
- the map scale factor is: 1cm:10km. If the remaining mileage parameter is 100km, according to the proportional relationship, the mileage radius factor is 10cm, that is, the actual distance is 100km, and the distance on the map display interface is 10cm.
- the terminal device uses the starting position as the center of the circle and the mileage radius coefficient as the radius to generate a circle (called the mileage circle), and use the area corresponding to the mileage circle in the map display interface as the target cruising area.
- the following method can also be used to determine the target endurance area:
- the terminal device uses the starting position as the center of the circle. Take the mileage radius coefficient as the radius to generate a circle (called mileage circle), and use the area corresponding to the mileage circle in the map display interface as the original cruising area (such as the original reachable area 20c in the corresponding embodiment in FIG. 2a).
- the original cruising area is the circle determined on the map display interface according to the remaining mileage parameters, it has nothing to do with the real road network, and the real roads are generally curved, so no matter which direction the vehicle is driving, the fuel volume
- the exhaustion point or the power exhaustion point must be in the original endurance area or on the boundary of the original endurance area.
- the terminal device in the map display interface, the terminal device generates a square area with the starting position as the center, wherein the distance from the center to the vertex of the positive direction area may be equal to the mileage radius coefficient. Similarly, the terminal device can use the aforementioned square area as the original battery life area.
- the terminal device in the map display interface, the terminal device generates a regular hexagon area with the start as the center, wherein the distance between the center of the regular hexagon area and each vertex may be equal to the mileage radius coefficient.
- the terminal device can use the aforementioned regular hexagonal area as the original endurance area.
- the road network path distance refers to the real road distance between point A and point B. Generally speaking, because the road has bends and the straight-line distance between two points is the shortest, the road network path distance is greater than the straight-line distance between two points.
- the original candidate point is in an unreachable area of the road network such as rivers, mountain areas, and closed control areas, it can be considered that the road network path distance between the original candidate point and the starting position is infinite, that is, It is said that the original candidate point in the unreachable area of the road network will be deleted and will not be regarded as the reachable candidate point.
- the map display interface connect the above-mentioned multiple target points, and the obtained area is called the target endurance area.
- Step S104 Display the target battery life area on the map display interface.
- the terminal device may render the target endurance area on the map display interface, that is, mark the target endurance area on the map display interface.
- the terminal device may render the boundary of the target cruising area in red; if the remaining mileage parameter is greater than the mileage threshold, the terminal device may render the boundary of the target cruising area in blue.
- the terminal device may also use different thickness lines, or use solid and/or dashed lines to render the boundary of the target endurance area, and you can even render the entire target endurance area with different colors. .
- FIG. 3b is a schematic diagram of a process for determining the target endurance area provided by an embodiment of the present application.
- the determination of the target endurance area includes steps 201 to S204, and steps 201 to S204 are step S103 in the embodiment corresponding to FIG. 3a.
- Step S201 Determine multiple original candidate points according to the starting position and the remaining mileage parameter.
- the terminal device uses the starting position as the center of the circle and the mileage radius coefficient as the radius to generate a mileage circle.
- the area corresponding to the mileage circle in the map display interface is used as the original cruising area.
- the terminal device obtains the polar angle interval coefficient, and divides the original endurance area with the starting position as the center and the polar angle interval coefficient as the interval, and can obtain multiple unit original endurance areas (as shown in the corresponding embodiment in Figure 2a, the unit original reachability Area 20d, unit original reachable area 20e, unit original reachable area 20f, and unit original reachable area 20g), the area and shape of the original range of each unit can be the same.
- the original endurance area is circular, then the original endurance area of each unit is a sector, and the central angle of the sector is equal to the polar angle interval coefficient.
- N is an integer greater than or equal to 1.
- the embodiment of the present application determines through multiple experiments that when the polar angle interval coefficient is equal to 10°, the calculation amount and the fineness of the target endurance area can reach a better balance.
- the terminal device still uses the starting position as the center and the polar angle interval coefficient as the interval. After dividing the original endurance area, multiple triangle or quadrilateral unit original endurance areas can be obtained. And the vertex angle with respect to the starting position in the vertex angle of the unit original cruising area is equal to the polar angle interval coefficient.
- the terminal device still uses the starting position as the center and the polar angle interval coefficient is equal to 60° as the interval. After dividing the original endurance area, six equilateral triangles can be obtained. Unit original endurance area, and the unit original endurance area vertex angle is equal to 60°.
- the terminal device then divides the original battery life area of each unit to obtain one or more original battery life sub-areas.
- the dividing principle is the side length of each unit’s original battery life sub-areas (the side length here refers to the The difference between the length) and the first length threshold is less than the preset difference threshold.
- the terminal device regards the vertices of the original battery life sub-region of each unit as the original candidate points (for example, candidate 1, candidate point 2..., candidate point 8 in the corresponding embodiment in Figure 2a above ).
- FIG. 4 is a schematic diagram of determining original candidate points provided by an embodiment of the present application.
- the original endurance area is evenly divided into 8 original endurance areas.
- the original endurance area of one of the units is described below. It can be known that the original endurance area of the unit is fan-shaped.
- the terminal device divides the original endurance area of the unit from the two dimensions of radius and polar diameter.
- the radius refers to the intersection curve between the concentric circle curve of the original endurance area and the original endurance area of the unit.
- the extreme diameter refers to the point on the circumference of the unit original endurance area.
- the segmentation target is that the difference between the side length of the "curved rectangle" or “curved triangle” enclosed by each polar diameter and radius and the first length threshold is less than the preset Difference threshold. It can be seen from Figure 4 that by dividing the two dimensions of radius and polar diameter, the original battery life area of a unit can be divided into 9 original battery life sub-areas, and the side length of the original battery life sub-areas of each unit is approximately approx. Equal to the first length threshold.
- the terminal device can use all the vertices of the original battery life sub-areas of the unit as the original candidate points. As can be seen from Figure 4, the 9 original battery life sub-areas correspond to 12 candidate points.
- the above is to use all the vertices of the original battery life sub-region as the original candidate points. Since the outer radius of the fan shape is larger than the inner radius, the distance between two adjacent original candidate points in the outer radius Must be greater than the distance between two adjacent original candidate points located in the inner radius. In order to make the distance between all the original candidate points approximately equal, for the original candidate points located in the inner radius, it is necessary to filter a part of the original candidate points. The goal of selecting points is to make the distance between all retained original candidate points approximately equal.
- the distance between the 4 original candidate points located in the outermost circle in Figure 4 must be greater than the distance between the 4 original candidate points located in the innermost circle.
- the two original candidate points can be filtered out so that the distance between the remaining original candidate points is approximately equal to the distance between the four original candidate points located in the outermost circle.
- Step S202 Select the original candidate point that is reachable by the vehicle from the multiple original candidate points as the reachable candidate point.
- the terminal device determines the road network path distance between the original candidate point and the starting position.
- the road network path distance refers to the real road distance between point A and point B.
- the road network path distance is greater than the straight-line distance between two points.
- the distance in the map display interface refers to the page distance. Generally speaking, the distance is relatively small, and the unit is generally cm; the distance in the map display interface It can correspond to a straight line distance in the real world, and they are proportional; the road network path distance refers to the road path distance (or the path planning distance). Generally speaking, the true straight line distance between point A and point B Is less than or equal to the path distance of the road network.
- the original candidate points all have corresponding road network path distances, delete the original candidate points corresponding to the road network path distance greater than the remaining mileage parameter, and keep those original candidates corresponding to the road network path distance less than or equal to the remaining mileage parameter Point, the terminal device can use all the retained original candidate points as reachable candidate points, that is, the real road network location corresponding to the candidate point is the location that the vehicle can reach based on the remaining mileage parameters.
- the original candidate point is in an unreachable area of the road network, for example, in a river, mountainous area, closed control area, etc.
- the road network path distance between the original candidate point and the starting position is infinite , That is to say, the original candidate point in the unreachable area of the road network will be deleted and will not be regarded as the reachable candidate point.
- Step S203 Determine the reachable candidate point as a target point.
- the terminal device separately determines the distance between the starting position and each reachable candidate point in the map display interface (referred to as the map distance). In each unit's original battery life area, the reachable device with the largest map distance is selected. The selected point is the target point to be determined in the original endurance area.
- the terminal device determines the road network path distance between the starting position and each reachable candidate point (referred to as the candidate road network path distance). In each unit original range, there will be the largest candidate road.
- the reachable candidate point of the network path distance is used as the target point to be determined in the original endurance area.
- the reachable candidate points in each unit’s original battery life area can be determined in the above manner, and then the distance within each unit’s original battery life area The farthest reachable candidate point from the starting position is used as the target point to be determined, and finally the target points to be determined in the original endurance area of all units are regarded as target points.
- Step S204 In the map display interface, connect the multiple target points to obtain the target endurance area.
- the terminal device may connect each target point in a clockwise sequence or a counterclockwise sequence to obtain a candidate closed circle.
- the terminal device can directly use the area corresponding to the candidate closed circle in the map display interface as the target endurance area.
- the boundary smoothing process can be further performed on the candidate closed circle to reduce the influence of the singular points caused by the singular distribution of the road network on the drawing of the target range area, and then the terminal device will smooth the boundary
- the processed area is regarded as the target endurance area.
- Smoothing the boundary of the candidate closed circle includes: finding the target point that meets the location mutation condition, deleting the target point that meets the location mutation condition, and then connecting the remaining target points in a clockwise or counterclockwise direction.
- the area is the target endurance area after boundary smoothing.
- a sudden change in position means that the target point changes to a convex point or a concave point.
- the terminal equipment extracts 3 target points from all target points, which are the first reachable point and the first Two reachable points and third reachable points, and in the candidate closed circle, the second reachable point is adjacent to the first reachable point, and the second reachable point is adjacent to the third reachable point, in simple terms ,
- the second reachable point is in the middle, and the first reachable point and the third reachable point are on both sides.
- the terminal device connects the first reachability point and the second reachability point to obtain the first connection line; the terminal device connects the second reachability point and the third reachability point to obtain the second connection line, and the terminal device connects the first connection line to
- the angle between the second connecting line is taken as the angle of the connecting line (because the intersection of the first connecting line and the second connecting line is the second reachable point, there is a clamp between the first connecting line and the second connecting line Angular). If the included angle of the connecting line is less than the included angle threshold, it indicates that the second reachable point is a target point that satisfies the location mutation condition, and the terminal device can delete the second reachable point.
- the terminal device can continue to extract three target points from the remaining target points, as the first reachable point, the second reachable point, and the third reachable point, respectively, to determine again whether the second reachable point meets the location mutation condition. Continue to loop until there is no target point that meets the position mutation condition among the remaining target points.
- FIG. 5 is a schematic diagram of determining a target point that satisfies a position mutation condition according to an embodiment of the present application.
- the candidate closed circle includes: target point A, target point B, target point C, target point D, target point E, and target point F.
- the terminal device can first set target point A as the first reachable point, target point B as the second reachable point, and target point C as the third reachable point. Since ⁇ ABC is greater than the included angle threshold, the target point B does not meet the position mutation condition.
- the terminal device then regards target point B as the first reachable point, target point C as the second reachable point, and target point D as the third reachable point.
- target point C It is a target point that does not meet the location mutation condition.
- the terminal device can delete the target point F. The subsequent terminal device again judges whether there is a target point that meets the location mutation condition based on the remaining target points.
- the terminal device can follow the clockwise sequence Or connect the remaining target point A, target point B, target point C, target point D, and target point E counterclockwise, and the area obtained after the connection is the target endurance area after boundary smoothing.
- the terminal device extracts 3 target points from all target points, which are the first reachable point, the second reachable point, and the third reachable point.
- Point and in the candidate closed circle, the second reachable point is adjacent to the first reachable point, and the second reachable point is adjacent to the third reachable point.
- the second reachable point is in the middle, The first reachable point and the third reachable point are located on both sides.
- the terminal device connects the first reachable point and the third reachable point to obtain the third connecting line, and determines the distance between the second reachable point and the third connecting line (called the connecting line distance), and determines the third connecting line
- the length of the connection line is divided by the length of the third connection line, and the ratio obtained is called the connection line scale factor. If the scale factor of the connection line is greater than the preset scale factor threshold, the terminal device can use the second reachable point as the target point that meets the location mutation condition, and the terminal device can delete the second reachable point.
- the terminal device can continue to extract three target points from the remaining target points, as the first reachable point, the second reachable point, and the third reachable point, respectively, to determine again whether the second reachable point meets the location mutation condition. Continue to loop until there is no target point that meets the position mutation condition among the remaining target points.
- FIG. 6 is another schematic diagram of determining a target point that meets a position mutation condition provided by an embodiment of the present application.
- the candidate closed circle includes: target point A, target point B, target point C, target point D, target point E, and target point F.
- the terminal device can first set target point A as the first reachable point, target point B as the second reachable point, and target point C as the third reachable point. Since the distance between target point B and line AC is divided by The length of the line segment AC is less than the preset proportional coefficient threshold, so the target point B does not meet the position mutation condition. The terminal device then regards the target point B as the first reachable point, the target point C as the second reachable point, and the target point D as the third reachable point. Because the distance between the target point C and the line segment BD is divided by the line segment The length of the BD is less than the preset proportional coefficient threshold, so the target point C does not meet the position mutation condition.
- the target point F is the target point that meets the location mutation condition, and the terminal device can Delete the target point F.
- the terminal device can follow the clockwise order or Connect the remaining target point A, target point B, target point C, target point D, and target point E counterclockwise, and the area obtained after the connection is the target endurance area after boundary smoothing.
- FIG. 7 is a schematic flowchart of another image processing method provided by an embodiment of the present application.
- the image processing method may include:
- Step S301 Obtain the remaining mileage parameters of the vehicle, and obtain the starting position of the vehicle on the map display interface.
- step S301 please refer to the description of step S101 to step S102 in the corresponding embodiment of FIG. 3a, which will not be repeated here.
- Step S302 Determine multiple original candidate points according to the starting position and the remaining mileage parameter.
- step S302 For the specific process of step S302, please refer to the description of step S201 in the corresponding embodiment in FIG. 3b, which will not be repeated here.
- Step S303 Determine the candidate point road network area of the original candidate point, and obtain the road network data in the candidate point road network area from the road network data set as the candidate point road network data.
- the following takes an original candidate point as an example to illustrate how to determine the candidate point road network data of the original candidate point.
- the terminal device obtains the second length threshold.
- the real position corresponding to the original candidate point is the center of the circle, and the second length threshold is the radius to determine the circle.
- the area corresponding to the circle is the candidate point road network area ; It can be known that the second length threshold refers to the true straight line distance.
- the candidate point road network area may also be square.
- a square is determined by taking the real position corresponding to the original candidate point as the center and the second length threshold value as the distance from the center to the vertex, and the area corresponding to the square is the road network area of the candidate point.
- the second length threshold may be equal to 1km.
- the candidate point road network area can be understood as: the real road area of 1km around the original candidate point is the candidate point road network area.
- the first length threshold can be converted into a true straight-line distance A.
- the true straight-line distance A corresponding to the first length threshold is 2km.
- all the original candidate points can basically cover the real road area corresponding to the original endurance area, avoiding the omission of the road area, and making the final target endurance area more accurate.
- FIG. 8 is a schematic diagram of the relationship between the first length threshold and the second length threshold according to an embodiment of the present application.
- Take 4 original candidate points original candidate point A, original candidate point B, original candidate point C, original candidate point D
- the candidate road network area corresponding to the original candidate point A is area 70a
- the candidate road network area corresponding to the original candidate point B is area 70b
- the candidate road network area corresponding to the original candidate point C is area 70c
- the candidate road network area corresponding to point D is area 70d.
- the true straight-line distance between the original candidate point A and the original candidate point B 2 times the radius of the road network area of the above 4 candidate points.
- the two candidate road network areas can basically cover the real road area formed by the four original candidate points in the road network area. This can prevent the road area from being missed, thereby making the final target endurance area more accurate.
- the terminal device obtains the road network data of each candidate point road network area from the road network data collection as the candidate point road network data.
- the road network data collection can be stored in the database in the form of ⁇ Block, Rec>, where Block is the road network data block, and Rec is the unit road network data block.
- the road network data set can correspond to multiple blocks, and each block contains multiple Rec.
- Each Rec may not contain road network data, may contain one road network data, or may contain multiple road network data.
- the road network data contained in all Rec can be combined into a road network data set, each block is approximately equal, and the Rec contained in each block is also approximately equal, so in order to determine the road network data contained in the candidate point road network area , Logically, you need to determine the Rec where the candidate point road network area is located.
- each Block can correspond to a real road network. Area, the road network area is a rectangle with a side length of 12.5km*8.33km, each Rec can also correspond to a real road network area, the road network area is a rectangle with a side length of 100m*100m, and logically adjacent Rec (or Block) is also adjacent in the real road network area.
- the terminal device obtains the longitude and latitude information of the road network area where the original candidate point is located, where the longitude and latitude information includes longitude and latitude, and searches multiple road network data blocks for the road network data block corresponding to the above longitude and latitude information as the target road network data block. Which can be searched by geometric hash.
- the id of the network data block that is, the target road network data block corresponding to the longitude and latitude information can be found through the latitude and longitude information and the hash function.
- the terminal device searches for the four boundary latitude and longitude coordinates corresponding to the target data block, and according to the number of unit road network data blocks contained in the target road network data block, can determine the unit road network data block corresponding to the above-mentioned longitude and latitude information (referred to as the first unit Road network data block).
- FIG. 9a is a schematic diagram of determining a first unit road network data block provided by an embodiment of the present application.
- the road network data block shown in Figure 9a includes 12 unit road network data blocks (respectively, unit road network data block 1, unit road network data block 2,..., unit road network data block 12), and the road
- the four boundary latitude and longitude coordinates of the network data block are (0,0), (80,0), (0,80), (80,80), if the latitude and longitude information corresponding to the original candidate point 1 is (25,25) ), since the 12 unit road network data blocks are evenly divided, it can be calculated that the unit road network data block corresponding to the latitude and longitude information (25, 25) is unit road network data block 6, namely unit road network data block 6 It is the first unit road network data block.
- the terminal device obtains the second length threshold, and determines the second unit road network data block according to the second length threshold and the first unit road network data block, where the distance between the second unit road network data block and the first unit road network data block The true straight line distance is less than or equal to the second length threshold.
- the terminal device may use the road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block as candidate point road network areas.
- the terminal device does not need to separately determine whether each unit road network data block is the second unit road network data block, and the second length threshold can be set to the true side length corresponding to the unit road network data block.
- the ratio of is used as the data block coefficient, and then the first unit road network data block is taken as the center, and it extends in 4 directions (including horizontal to right, horizontal to left, vertical upward, and vertical downward) to extend the unit data block passed by The number is equal to the data block coefficient.
- the unit road network data blocks other than the first unit road network data block contained in the rectangular area obtained after extension are all the second unit road network data blocks, and the rectangle obtained after extension
- the road network area corresponding to the area is the candidate point road network area.
- FIG. 9b is a schematic diagram of determining a second unit road network data block provided by an embodiment of the present application.
- the road network data block A shown in Figure 9b contains 36 unit road network data blocks, and the unit road network data block 1 is the first unit road network data block.
- the candidate point area corresponding to each original candidate point and the first unit road network data block and the second unit road network data block can be determined.
- the terminal device extracts the road network data contained in the first unit road network data block from the database, and extracts the road network data contained in the second unit road network data block, which will be extracted The road network data as the road network data collection.
- FIG. 10a is another schematic diagram of determining the second unit road network data block provided by an embodiment of the present application.
- Figure 10a contains 4 road network data blocks (respectively road network data block 1, road network data block 2, road network data block 3 and road network data block 4), and unit road network data block 2 is the first unit road network Data block, when the data block coefficient is equal to 2, it can be determined according to the above method that the unit road network data blocks in area 80b except for unit road network data block 2 are all the second unit road network data blocks.
- the network data block belongs to 4 road network data blocks. In this case, the terminal device needs to find the road network data contained in the first unit road network data block and the second unit road network data block from the 4 road network data blocks in the database.
- the road network data contained in the network data block is used as the candidate point road network data.
- Step S304 If the candidate point road network data is a non-empty set, determine the original candidate point as a candidate point.
- the terminal device can use the original candidate point as a candidate point.
- FIG. 10b is a schematic diagram of determining candidate points according to an embodiment of the present application.
- Figure 10b contains 12 original candidate points (respectively original candidate points A, ..., original candidate point L), and point S is the starting position.
- a solid line is used to connect the two candidate points; if there is no road network data connection between the two original candidate points, a dashed line is used to connect the two Alternative points.
- Step S305 Determine the road network path distance between the candidate point and the starting position according to the road network data set.
- the terminal device can call the path planning interface to determine the road network path distance between each candidate point and the starting position.
- the road network path distance refers to the real road distance between two points (Or the path planning distance).
- the path planning interface can determine the path distance of the road network between the candidate point and the starting position based on the Dijkstra algorithm in the path planning or the A* search algorithm. Both of the above two algorithms belong to the shortest path algorithm. Dijkstra's algorithm has higher accuracy but a large amount of calculation, while the accuracy of the A* search algorithm is reduced, but the amount of calculation is small.
- the following uses the A* search algorithm as an example to explain in detail how to determine the distance of the road network path between the candidate point and the starting position.
- FIG. 11a is a schematic diagram of determining the path distance of a road network according to an embodiment of the present application.
- the open list and the close list are first generated, and both lists are empty sets at this time.
- the terminal device first adds (V0, 0) to the open list.
- the open list contains (V0, 0), and the close list is empty.
- the first element in (V0, 0) represents the vertex, and the second element represents the The distance between the vertex and the starting vertex V0.
- the terminal device adds the vertex adjacent to V0 to the open list, and adds (V0, 0) to the close list.
- the open list contains: (V2, 10), (V4, 30), (V5, 100) ), the close list contains (V0, 0).
- the terminal device adds the vertices adjacent to V2 to the open list and adjusts the distance from each vertex to V0.
- the open list contains: (V1, 15), (V4, 30), (V3, 60), (V5, 100)
- the close list contains (V0, 0), (V2, 10).
- V1 Since V1 is already a boundary vertex, V1 is deleted from the open list. Then select the smallest V4 from the open list and add it to the close list. The terminal device adds the vertices adjacent to V4 to the open list and adjusts the distance from each vertex to V0.
- the open list contains: (V3, 50) , (V5, 90), (V5, 100), the close list contains (V0, 0), (V2, 10), (V4, 30).
- the terminal device adds the vertices adjacent to V3 to the open list and adjusts the distance from each vertex to V0.
- the open list contains: (V5, 60)
- the close list contains (V0, 0), (V2, 10), (V4, 30), (V3, 50).
- the open list is an empty set, and the close list contains (V0, 0), (V2, 10), (V4, 30), (V3, 50), (V5, 60).
- the shortest path distance between two points is determined according to the topology map.
- the intersection of the two roads corresponds to the topology
- the vertices of the graph and the distance between roads correspond to the weights between two vertices in the topological graph.
- the corresponding topological graph can be generated from the road network data collection, and the road network path distance can be determined based on the path planning algorithm.
- Step S306 If the road network path distance between the candidate point and the starting position is less than or equal to the remaining mileage parameter, determine the candidate point as the reachable candidate point.
- Step S307 Determine the reachable candidate point as a target point, and connect the multiple target points in the map display interface to obtain the target cruising area.
- step S307 please refer to the description of step S203 to step S204 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
- Step S308 Display the target battery life area on the map display interface.
- step S308 For the specific process of step S308, reference may be made to the description of step S104 in the corresponding embodiment in FIG. 3a, which is not repeated here.
- FIG. 11b is a schematic diagram of a target endurance area provided by an embodiment of the present application.
- the starting position of the vehicle is very close to the sea area, so when the terminal device selects the reachable candidate points reachable by the vehicle from the multiple original candidate points, those original equipment in the sea area The selected point will be judged as a point unreachable by the vehicle, so the original candidate points in the sea area will be filtered out, and the original candidate points that are retained by the vehicle can be used as reachable candidates point.
- the terminal device may use the reachable candidate point farthest from the starting position as the target point.
- the terminal device connects all target points on the map display interface in a clockwise or counterclockwise order, and the obtained area is the target endurance area.
- the target endurance area determined by the embodiment of the present application is composed of multiple points that are farthest from the starting point and reachable, so the target endurance area has high accuracy.
- FIG. 12 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application.
- the image processing apparatus 1 can be applied to the terminal equipment in the corresponding embodiment of Figs. 3a-11b.
- the image processing apparatus 1 can include: a first acquisition module 11, a second acquisition module 12, and a target area determination module 13.
- the first obtaining module 11 is used to obtain the remaining mileage parameters of the vehicle
- the second acquiring module 12 is configured to acquire the starting position of the vehicle in the map display interface
- the target area determining module 13 is configured to determine a target cruising area in the map display interface according to the starting position and the remaining mileage parameter;
- the first obtaining module 11 is also used to display the target range of travel on the map display interface.
- step S101 to step S104 the specific functional implementation of the first acquisition module 11, the second acquisition module 12, and the target area determination module 13 can be referred to step S101 to step S104 in the corresponding embodiment of FIG. 3a, which will not be repeated here.
- the target area determining module 13 may include: a target point determining unit 131 and a connecting unit 132.
- the target point determining unit 131 is configured to determine multiple target points in the map display interface according to the starting position and the remaining mileage parameter;
- the connecting unit 132 is configured to connect the multiple target points in the map display interface to obtain the target endurance area.
- step S103 For specific functional implementations of the target point determining unit 131 and the connecting unit 132, refer to step S103 in the corresponding embodiment of FIG. 3a, and details are not described herein again.
- the target point determination unit 131 may include: an original point determination subunit 1311, a selection subunit 1312, and a target point determination subunit 1313.
- An original point determining subunit 1311 configured to determine multiple original candidate points according to the starting position and the remaining mileage parameter
- the selection subunit 1312 is configured to select an original candidate point reachable by the vehicle from the multiple original candidate points as the reachable candidate point;
- the target point determining subunit 1313 is configured to determine the reachable candidate point as a target point.
- step S201 the specific functional implementation of the original point determining subunit 1311, the selecting subunit 1312, and the target point determining subunit 1313 can be referred to step S201 to step S203 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
- the original point determining subunit 1311 may include: an area determining subunit 13111 and a first dividing subunit 13112.
- An area determination subunit 13111 configured to determine an original cruising area in the map display interface according to the starting position and the remaining mileage parameter
- the first division subunit 13112 is configured to divide the original battery life area into at least one unit original battery life area, and determine the original candidate points in each unit original battery life area.
- step S202 For specific functional implementations of the area determining sub-unit 13111 and the first dividing sub-unit 13112, refer to step S202 in the corresponding embodiment of FIG. 3b, and details are not described herein again.
- the target point determining subunit 1313 may include: a first determining subunit 13131 and a second determining subunit 13132.
- the first determining subunit 13131 is configured to select the reachable candidate point with the largest distance from the starting position from the reachable candidate points in the original cruising area of each unit as the candidate point corresponding to the original cruising area of the unit The target point to be determined;
- the second determining subunit 13132 is configured to use the target points to be determined corresponding to the original range of all units as the target points.
- step S203 For the specific functional implementation of the first determining sub-unit 13131 and the second determining sub-unit 13132, reference may be made to step S203 in the embodiment corresponding to FIG. 3b, which will not be repeated here.
- the selecting subunit 1312 may include: a first obtaining subunit 13121 and a first distance determining subunit 13122;
- the first obtaining subunit 13121 is used to determine the candidate point road network area of each original candidate point;
- the first distance determining subunit 13122 is configured to obtain the road network data in the candidate point road network area from the road network data set as the candidate point road network data;
- the first distance determining subunit 13122 is further configured to determine the original candidate point as a candidate point if the candidate point road network data is a non-empty set;
- the first distance determining subunit 13122 is further configured to determine the road network path distance between the candidate point and the starting position according to the road network data set;
- the first distance determining subunit 13122 is further configured to determine the candidate point as the candidate point if the road network path distance between the candidate point and the starting position is less than or equal to the remaining mileage parameter Can reach alternative points.
- step S303 For specific functional implementations of the first obtaining subunit 13121 and the first distance determining subunit 13122, reference may be made to step S303 to step S306 in the embodiment corresponding to FIG. 7 above, and details are not described herein again.
- the area determining sub-unit 13111 may include: a second obtaining sub-unit 131111 and a circumference determining sub-unit 131112.
- the second obtaining subunit 131111 is configured to obtain a map scale coefficient corresponding to the map display interface
- the second obtaining subunit 131111 is further configured to determine the mileage radius coefficient according to the remaining mileage parameter and the map scale coefficient;
- the circle determination subunit 131112 is used to generate a mileage circle in the map display interface, using the starting position as the center of the circle and the mileage radius coefficient as the radius, and corresponding the mileage circle in the map display interface The area of is determined as the original battery life area.
- step S201 For the specific functional implementation of the second obtaining subunit 131111 and the circumference determining subunit 131112, refer to step S201 in the embodiment corresponding to FIG. 3b, and will not be repeated here.
- the first dividing subunit 13112 may include: a third obtaining subunit 131121 and a second dividing subunit 131122.
- the third obtaining subunit 131121 is configured to obtain a polar angle interval coefficient, and divide the original endurance area into the at least one unit original endurance area according to the polar angle interval coefficient;
- the second division subunit 131122 is used to divide each unit original battery life area into at least one unit original battery life sub-areas; the difference between the area side length of each unit original battery life sub-areas and the first length threshold is less than the difference threshold ;
- the second division subunit 131122 is further configured to use the vertex of the original battery life subregion of each unit as the original candidate point in the map display interface.
- step S201 For the specific functional implementation of the third acquiring subunit 131121 and the second dividing subunit 131122, refer to step S201 in the embodiment corresponding to FIG. 3b, and details are not described herein again.
- the first obtaining subunit 13121 may include: a fourth obtaining subunit 131211 and a searching subunit 131212.
- the fourth acquisition subunit 131211 is used to acquire the longitude and latitude information of the original candidate point, and search for the target road network data block corresponding to the longitude and latitude information from multiple road network data blocks; the road network data set corresponds to the Multiple road network data blocks; each road network data block includes multiple unit road network data blocks;
- the searching subunit 131212 is configured to search for the first unit road network data block corresponding to the longitude and latitude information from the multiple unit road network data blocks corresponding to the target road network data block;
- the fourth obtaining subunit 131211 is further configured to obtain a second length threshold, and determine a second unit road network data block adjacent to the first unit road network data block according to the second length threshold;
- the fourth acquiring subunit 131211 is further configured to use the road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block as the original backup The optional point road network area of the selected point.
- step S303 For the specific functional implementation of the fourth acquiring subunit 131211 and the searching subunit 131212, refer to step S303 in the embodiment corresponding to FIG. 7 above, and details are not described herein again.
- the first determining sub-unit 13131 may include: a second distance determining sub-unit 131311 and a third determining sub-unit 131312.
- the second distance determining subunit 131311 is configured to determine the map distance between the reachable candidate point in the original range of the unit and the starting position in the map display interface;
- the third determining subunit 131312 is configured to use the reachable candidate point with the largest map distance as the target point to be determined corresponding to the original range of the unit.
- step S203 For the specific functional implementation of the second distance determining sub-unit 131311 and the third determining sub-unit 131312, refer to step S203 in the embodiment corresponding to FIG. 3b, which will not be repeated here.
- the first determining subunit 13131 may further include: a third distance determining subunit 131313 and a fourth determining subunit 131314.
- the third distance determining subunit 131313 is configured to determine the road network path distance between the reachable candidate point in the original range of the unit and the starting position as a candidate road network path distance;
- the fourth determining subunit 131314 is configured to use the reachable candidate point with the largest candidate road network path distance as the target point to be determined corresponding to the unit's original cruising area.
- step S303 For specific functional implementations of the third distance determining sub-unit 131313 and the fourth determining sub-unit 131314, refer to step S303 in the corresponding embodiment of FIG. 7 above, and details are not described herein again.
- connection unit 132 may include: a connection subunit 1321, a deletion subunit 1322.
- the connecting subunit 1321 is used to connect each of the target points in a clockwise order or a counterclockwise order to obtain a candidate closed circle;
- the deletion subunit 1322 is configured to delete the target point that meets the position mutation condition from the candidate closed circle
- connection subunit 1321 is further configured to connect the remaining target points in the clockwise sequence or the counterclockwise sequence in the map display interface to obtain the target cruising area.
- connection subunit 1321 and the deletion subunit 1322 please refer to step S204 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
- the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point is relative to the first reachable point. Adjacent, and the second reachable point is adjacent to the third reachable point;
- the image processing apparatus 1 may include: a first acquisition module 11, a second acquisition module 12, and a target area determination module 13; and may also include: a first connection module 14 and an included angle determination module 15.
- the first connection module 14 is configured to connect the first reachable point and the second reachable point to obtain a first connection line
- the first connection module 14 is also used to connect the second reachable point and the third reachable point to obtain a second connection line;
- the included angle determination module 15 is configured to determine the included angle of the connecting line according to the first connecting line and the second connecting line, and if the included angle of the connecting line is less than the included angle threshold, determine the second reachable point It is the target point that meets the mutation condition of the position.
- step S204 The specific functional implementation of the first connection module 14 and the included angle determination module 15 can be found in step S204 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
- the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point is relative to the first reachable point. Adjacent, and the second reachable point is adjacent to the third reachable point;
- the image processing apparatus 1 may include: a first acquisition module 11, a second acquisition module 12, a target area determination module 13, a first connection module 14, an included angle determination module 15, and may also include: a second connection module 16, a coefficient determination module 17.
- the second connection module 16 is configured to connect the first reachable point and the third reachable point to obtain a third connecting line
- the coefficient determining module 17 is configured to determine the connection line distance between the second reachable point and the third connection line, and generate a connection line scale coefficient according to the connection line distance and the length of the third connection line;
- the coefficient determining module 16 is further configured to determine the second reachable point as a target point that satisfies the location mutation condition if the scale factor of the connecting line is greater than the scale factor threshold.
- step S204 The specific functional implementation of the second connection module 16 and the coefficient determination module 17 can be found in step S204 in the corresponding embodiment of FIG. 3b, and details are not described herein again.
- the target endurance area determined by the embodiment of the present application is composed of multiple points that are farthest from the starting point and reachable, so the target endurance area has high accuracy.
- FIG. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- the electronic device 1000 shown in FIG. 13 may be a terminal device in the embodiment corresponding to FIG. 3a to FIG. 11b described above.
- the electronic device 1000 may include: a user interface 1002, a processor 1004, an encoder 1006, and a memory 1008.
- the signal receiver 1016 is used to receive or send data via the cellular interface 1010, the WIFI interface 1012,..., or the NFC interface 1014.
- the encoder 1006 encodes the received data into a data format processed by the computer.
- a computer program is stored in the memory 1008, and the processor 1004 is configured to execute the steps in any one of the foregoing method embodiments through the computer program.
- the memory 1008 may include a volatile memory (for example, a dynamic random access memory DRAM), and may also include a non-volatile memory (for example, a one-time programmable read-only memory OTPROM). In some examples, the memory 1008 may further include a memory remotely provided with respect to the processor 1004, and these remote memories may be connected to the electronic device 1000 via a network.
- the user interface 1002 may include a keyboard 1018 and a display 1020.
- the processor 1004 may be used to call a computer program stored in the memory 1008 to implement:
- the target battery life area is displayed in the map display interface.
- the processor 1004 when the processor 1004 executes the determination of the target cruising area in the map display interface according to the starting position and the remaining mileage parameter, it specifically executes the following steps:
- the multiple target points are connected to obtain the target endurance area.
- processor 1004 when the processor 1004 executes the determination of multiple target points in the map display interface according to the starting position and the remaining mileage parameter, it specifically executes the following steps:
- the reachable candidate point is determined as the target point.
- processor 1004 when the processor 1004 executes the determination of multiple original candidate points according to the starting position and the remaining mileage parameter, it specifically executes the following steps:
- the original battery life area is divided into at least one unit original battery life area, and the original candidate points are respectively determined in each unit original battery life area.
- the processor 1004 specifically executes the following steps when determining the reachable candidate point as the target point:
- the target point to be determined corresponding to the original cruising area of all units is taken as the target point.
- the processor 1004 when the processor 1004 executes selecting the original candidate points reachable by the vehicle from the plurality of original candidate points as the reachable candidate points, it specifically executes the following steps:
- candidate point road network data is a non-empty set, determining the original candidate point as a candidate point
- the candidate point is determined as the reachable candidate point.
- the processor 1004 specifically executes the following steps when executing the determination of the original cruising area in the map display interface according to the starting position and the remaining mileage parameter:
- processor 1004 executes the division of the original battery life area into at least one unit original battery life area, and respectively determines the original candidate points in each unit original battery life area, specifically executes the following steps:
- each unit's original battery life area into at least one unit original battery life sub-areas; the difference between the area side length of each unit original battery life sub-area and the first length threshold is less than the difference threshold;
- the vertex of the original battery life sub-region of each unit is used as the original candidate point.
- the processor 1004 specifically executes the following steps when determining the candidate point road network area of each original candidate point:
- Each road network data block includes multiple unit road network data blocks;
- the road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block are used as the candidate point road network area of the original candidate point.
- the processor 1004 selects the reachable candidate point with the largest distance from the starting position from the reachable candidate points in the original range of each unit as the When the target point to be determined corresponding to the original battery life area, perform the following steps:
- the reachable candidate point with the largest map distance is taken as the target point to be determined corresponding to the original range of the unit.
- the processor 1004 selects the reachable candidate point with the largest distance from the starting position from the reachable candidate points in the original range of each unit as the When the target point to be determined corresponding to the original battery life area, perform the following steps:
- the reachable candidate point with the largest candidate road network path distance is taken as the target point to be determined corresponding to the unit original range.
- processor 1004 when the processor 1004 executes in the map display interface to connect the multiple target points to obtain the target endurance area, it specifically executes the following steps:
- the remaining target points are connected in the clockwise sequence or the counterclockwise sequence to obtain the target cruising area.
- the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point and the first reachable point Reach points are adjacent, and the second reachable point is adjacent to the third reachable point;
- the processor 1004 further executes the following steps:
- the second reachable point is determined as the one that satisfies the position mutation condition Target.
- the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point and the first reachable point Reach points are adjacent, and the second reachable point is adjacent to the third reachable point;
- the processor 1004 further executes the following steps:
- the second reachable point is determined as the target point that satisfies the location mutation condition.
- the electronic device 1000 described in the embodiment of the present application can execute the description of the image processing method in the foregoing embodiment corresponding to FIG. 3a to FIG. 11b, and may also execute the foregoing description of the image processing method in the foregoing embodiment corresponding to FIG. 12
- the description of the image processing device 1 will not be repeated here.
- the description of the beneficial effects of using the same method will not be repeated.
- the embodiments of the present application also provide a computer storage medium, and the computer storage medium stores the aforementioned computer program executed by the image processing apparatus 1, and the computer program includes program instructions.
- the processor executes the program instructions, it can execute the description of the image processing method in the foregoing embodiment corresponding to FIG. 3a to FIG. 11b, and therefore, it will not be repeated here.
- the description of the beneficial effects of using the same method will not be repeated.
- the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Sustainable Development (AREA)
- Sustainable Energy (AREA)
- Power Engineering (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Navigation (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Traffic Control Systems (AREA)
Abstract
An image processing method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring a remaining mileage parameter of a vehicle (S101); acquiring an initial position of the vehicle in a map display interface (S102); determining a target endurance area in the map display interface according to the initial position and the remaining mileage parameter (S103); and displaying the target endurance area in the map display interface (S104).
Description
本申请要求于2019年5月29日提交中国专利局、申请号为201910458925.3、发明名称为“一种图像处理方法、装置、电子设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 29, 2019, the application number is 201910458925.3, and the invention title is "an image processing method, device, electronic equipment, and storage medium". The reference is incorporated in this application.
本申请涉及计算机技术领域,尤其涉及一种图像处理方法、装置、电子设备以及存储介质。This application relates to the field of computer technology, and in particular to an image processing method, device, electronic equipment, and storage medium.
当用户驾驶汽车旅行时,用户往往会根据汽车剩余的可续航里程数规划下一步的行程。目前对汽车的可续航里程数的展示往往是以数值的形式,即在汽车仪表板上数值显示可续航的里程数。例如,在仪表盘上显示“续航里程100km”。When a user travels in a car, the user often plans the next trip according to the remaining cruising mileage of the car. At present, the display of the car's cruising mileage is often in the form of numerical values, that is, the cruising mileage is displayed numerically on the car dashboard. For example, the instrument panel displays "Courage Range 100km".
但是,仅仅通过数值展示剩余里程数会导致向用户传递的信息不够直接也不够具体,后续还需要用户结合当前的道路情况、剩余的续航里程数人工估计实际可到达范围,进而确定行程,从而导致行程规划的效率降低。However, simply displaying the remaining mileage by numerical values will result in the information being not directly or specific enough to the user. In the follow-up, the user is required to manually estimate the actual reachable range based on the current road conditions and the remaining cruising mileage, and then determine the itinerary. The efficiency of itinerary planning is reduced.
发明内容Summary of the invention
本申请实施例提供一种图像处理方法、装置、电子设备以及存储介质,可以直观地向用户展示汽车实际可到达范围,进而提高行程规划的效率。The embodiments of the present application provide an image processing method, device, electronic device, and storage medium, which can intuitively show users the actual reach of a car, thereby improving the efficiency of travel planning.
本申请实施例提供了一种图像处理方法,由电子设备执行,包括:The embodiment of the application provides an image processing method, which is executed by an electronic device, and includes:
获取交通工具的剩余里程参数;Obtain the remaining mileage parameters of the vehicle;
获取所述交通工具在地图显示界面中的起始位置;Acquiring the starting position of the vehicle in the map display interface;
根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域;Determining a target cruising area in the map display interface according to the starting position and the remaining mileage parameter;
在所述地图显示界面中展示所述目标续航区域。The target battery life area is displayed in the map display interface.
本申请实施例还提供了一种图像处理装置,包括:The embodiment of the present application also provides an image processing device, including:
第一获取模块,用于获取交通工具的剩余里程参数;The first obtaining module is used to obtain the remaining mileage parameters of the vehicle;
第二获取模块,用于获取所述交通工具在地图显示界面中的起始位置;The second acquiring module is used to acquire the starting position of the vehicle in the map display interface;
目标区域确定模块,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域;A target area determination module, configured to determine a target endurance area in the map display interface according to the starting position and the remaining mileage parameter;
所述第一获取模块,还用于在所述地图显示界面中展示所述目标续航区域。The first acquisition module is also used to display the target battery life area in the map display interface.
本申请实施例还提供了一种电子设备,包括:处理器和存储器;An embodiment of the present application also provides an electronic device, including: a processor and a memory;
所述处理器和存储器相连,其中,所述存储器用于存储计算机程序,所述处理器用于调用所述计算机程序,以执行如本申请实施例中的方法。The processor is connected to a memory, where the memory is used to store a computer program, and the processor is used to call the computer program to execute the method in the embodiment of the present application.
本申请实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被处理器执行时,执行如本申请实施例中的方法。The embodiment of the present application also provides a computer storage medium, the computer storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the method.
本申请实施例中,获取交通工具的剩余里程参数;获取交通工具在地图显示界面中的起始位置;根据起始位置和剩余里程参数在地图显示界面中确定目标续航区域;在地图显示界面中展示目标续航区域。上述可知,相比根据剩余里程数以及当前的道路情况人工估计目标续航区域,通过在地图界面上自动化地确定目标续航区域,可以更加直观地向用户展示汽车实际可到达范围,进而可以提高后续行程规划的效率。In the embodiment of this application, the remaining mileage parameters of the vehicle are obtained; the starting position of the vehicle in the map display interface is obtained; the target endurance area is determined in the map display interface according to the starting position and the remaining mileage parameters; in the map display interface Show the target battery life area. It can be seen from the above that, compared to manually estimating the target endurance area based on the remaining mileage and current road conditions, by automatically determining the target endurance area on the map interface, it can more intuitively show the user the actual reach of the car, thereby improving the subsequent journey. Efficiency of planning.
附图简要说明Brief description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请实施例提供的一种图像处理的系统架构图;FIG. 1 is an image processing system architecture diagram provided by an embodiment of the present application;
图2a-图2b是本申请实施例提供的一种图像处理的场景示意图;2a-2b are schematic diagrams of an image processing scene provided by an embodiment of the present application;
图3a是本申请实施例提供的一种图像处理方法的流程示意图;FIG. 3a is a schematic flowchart of an image processing method provided by an embodiment of the present application;
图3b是本申请实施例提供的一种确定目标续航区域的流程示意图;FIG. 3b is a schematic diagram of a process for determining a target endurance area provided by an embodiment of the present application;
图4是本申请实施例提供的确定原始备选点的示意图;FIG. 4 is a schematic diagram of determining original candidate points provided by an embodiment of the present application;
图5是本申请实施例提供的一种确定满足位置突变条件的目标点的示意图;FIG. 5 is a schematic diagram of determining a target point that meets a position mutation condition provided by an embodiment of the present application;
图6是本申请实施例提供的另一种确定满足位置突变条件的目标点的示意图;FIG. 6 is another schematic diagram of determining a target point that meets a position mutation condition provided by an embodiment of the present application;
图7是本申请实施例提供的另一种图像处理方法的流程示意图;FIG. 7 is a schematic flowchart of another image processing method provided by an embodiment of the present application;
图8本申请实施例提供的一种第一长度阈值与第二长度阈值的关系示意图;FIG. 8 is a schematic diagram of a relationship between a first length threshold and a second length threshold according to an embodiment of the present application;
图9a是本申请实施例提供的一种确定第一单位路网数据块的示意图;Fig. 9a is a schematic diagram of determining a first unit road network data block provided by an embodiment of the present application;
图9b是本申请实施例提供的一种确定第二单位路网数据块的示意图;Figure 9b is a schematic diagram of determining a second unit road network data block provided by an embodiment of the present application;
图10a是本申请实施例提供的另一种确定第二单位路网数据块的示意图;Figure 10a is another schematic diagram of determining a second unit road network data block provided by an embodiment of the present application;
图10b是本申请实施例提供的一种确定候选点的示意图;FIG. 10b is a schematic diagram of determining candidate points according to an embodiment of the present application;
图11a是本申请实施例提供的一种确定路网路径距离的示意图;FIG. 11a is a schematic diagram of determining the path distance of a road network according to an embodiment of the present application;
图11b是本申请实施例提供的一种目标续航区域的示意图;FIG. 11b is a schematic diagram of a target endurance area provided by an embodiment of the present application;
图12是本申请实施例提供的一种图像处理装置的结构示意图;FIG. 12 is a schematic structural diagram of an image processing apparatus provided by an embodiment of the present application;
图13是本申请实施例提供的一种电子设备的结构示意图。FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
请参见图1,是本申请实施例提供的一种图像处理的系统架构图。服务器10g通过交换机10f和通信总线10e与用户终端集群以及汽车集群建立连接,用户终端集群可以包括:用户终端10a、用户终端10c等,与用户终端10a、用户终端10c分别具有绑定关系的汽车集群可以包括:汽车10b、汽车10d等。Please refer to FIG. 1, which is a diagram of an image processing system architecture provided by an embodiment of the present application. The server 10g establishes a connection with the user terminal cluster and the car cluster through the switch 10f and the communication bus 10e. The user terminal cluster may include: a user terminal 10a, a user terminal 10c, etc., and a car cluster that has a binding relationship with the user terminal 10a and the user terminal 10c. It may include: car 10b, car 10d, etc.
以用户终端10a和汽车10b为例,当启动汽车10b内的车载导航时,汽车10b将剩余里程数以及当前的位置通过交换机10f和通信总线10e发送至服务器10g。服务器10g根据剩余里程数以及当前位置,在地图上确定汽车10b的实际可达范围。服务器10g可以将实际可达范围发送至汽车10b,在汽车10b内的车载导航的地图页面上显示该实际可达范围。服务器10f还可以将实际可达范围发送至与汽车10b具有绑定关系的用户终端10a,可以在用户终端10a的地图页面上也一并显示该实际可达范围。Taking the user terminal 10a and the car 10b as an example, when the car navigation in the car 10b is activated, the car 10b sends the remaining mileage and current position to the server 10g through the switch 10f and the communication bus 10e. The server 10g determines the actual reach of the car 10b on the map according to the remaining mileage and the current position. The server 10g may send the actual reachable range to the car 10b, and display the actual reachable range on the map page of the car navigation in the car 10b. The server 10f may also send the actual reachable range to the user terminal 10a that has a binding relationship with the car 10b, and may also display the actual reachable range on the map page of the user terminal 10a.
当然,也可以由汽车(或者用户终端)根据汽车的剩余里程数和当前位置在地图页面上确定实际可达范围,同样地,可以在车载导航的地图页面上(或者用户终端的地图页面上)显示该实际可达范围。Of course, the actual reachable range can also be determined on the map page by the car (or the user terminal) according to the remaining mileage of the car and the current location. Similarly, it can be on the map page of the car navigation (or the map page of the user terminal) Display the actual reachable range.
下述以用户终端10a如何根据剩余里程数和汽车当前位置确定汽车的实际可达范围为例进行具体的说明。The following specifically describes how the user terminal 10a determines the actual reach of the car based on the remaining mileage and the current position of the car as an example.
其中,图1所示的用户终端10a、用户终端10c等可以包括手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobile internet device)、可穿戴设备(例如智能手表、智能手环等)等。Among them, the user terminal 10a, user terminal 10c, etc. shown in FIG. 1 may include mobile phones, tablet computers, notebook computers, handheld computers, mobile Internet devices (MID, mobile internet devices), wearable devices (such as smart watches, smart bracelets) and many more.
请参见图2a-图2b,是本申请实施例提供的一种图像处理的场景示意图。如图2a中的用户终端10a的界面20b所示,用户点击“我的车”App,启动该App,该App用于管理与用户终端10a具有绑定关系的汽车的汽车信息,即汽车可以通过车联网将汽车信息发送至用户终端10a,用户终端10a也可以通过车联网向该汽车发送指令。Please refer to FIG. 2a-2b, which are schematic diagrams of an image processing scene provided by an embodiment of the present application. As shown in the interface 20b of the user terminal 10a in Figure 2a, the user clicks on the "My Car" App to start the App. The App is used to manage the car information of the car that has a binding relationship with the user terminal 10a, that is, the car can pass through The Internet of Vehicles sends car information to the user terminal 10a, and the user terminal 10a can also send instructions to the car through the Internet of Vehicles.
用户终端10a获取上述汽车的剩余里程数以及该汽车当前的位置信息,并获取“我的车”App内置地图页面20a的地图比例尺系数,根据该地图比例尺系数以及剩余里程数确定半径系数。终端设备10a在地图页面20a中以汽车的当前位置信息为圆心,半径系数为半径,确定原始可达区域20c。可以知道,由于原始可达区域20c是按照剩余里程数所确定的圆周,汽车无论向哪个方向行驶,剩余里程耗尽点必定位于原始可达区域20c内或者位于原始可达区域20c边界上。The user terminal 10a obtains the remaining mileage of the car and the current location information of the car, and obtains the map scale factor of the built-in map page 20a of the "My Car" App, and determines the radius factor according to the map scale factor and the remaining mileage. The terminal device 10a uses the current position information of the car as the center and the radius coefficient as the radius in the map page 20a to determine the original reachable area 20c. It can be known that since the original reachable area 20c is a circle determined by the remaining mileage, no matter which direction the car drives, the remaining mileage exhaustion point must be located in the original reachable area 20c or on the boundary of the original reachable area 20c.
用户终端10a在地图页面20a中,以原始可达区域20c的圆心为中心,以90°为间隔,将原始可达区域20b划分为4个单位原始可达区域,分别为:单位原始可达区域20d、单位原始可达区域20e、单位原始可达区域20f以及单位原始可达区域20g,可以知道每个单位原始可达区域均为扇形。On the map page 20a, the user terminal 10a divides the original reachable area 20b into 4 unit original reachable areas with the center of the original reachable area 20c as the center and 90° intervals, which are: unit original reachable area 20d, unit original reachable area 20e, unit original reachable area 20f, and unit original reachable area 20g, it can be known that the original reachable area of each unit is fan-shaped.
对每个单位原始可达区域来说,用户终端10a在区域内分别确定多个备选点,每个单位原始可达区域的备选点的数量可以相同,也可以不同;且每个单位原始可达区域的备选点的选取方式可以相同,也可以不同。For each unit's original reachable area, the user terminal 10a respectively determines multiple candidate points in the area. The number of candidate points in the original reachable area of each unit may be the same or different; and the original The method of selecting candidate points in the reachable area can be the same or different.
例如,可以按照随机的方式在每个单位原始可达区域内选取备选点,也可以按照间隔相同距离的方式在每个单位原始可达区域内选取备选点。For example, candidate points can be selected in the original reachable area of each unit in a random manner, or alternative points can be selected in the original reachable area of each unit in a manner of the same distance.
如图2a所示,对单位原始可达区域20d来说,该区域内选取的备选点为备选点1以及备选点2;对单位原始可达区域20e来说,该区域内选取的备选点为备选点3以及备选点4;对单位原始可达区域20f来说,该区域内选取的备选点为备选点5以及备选点6;对单位原始可达区域20g来说,该区域内选取的备选点为备选点7以及备选点8。As shown in Figure 2a, for the unit's original reachable area 20d, the candidate points selected in the area are candidate point 1 and candidate point 2. For the unit's original reachable area 20e, the selected candidate points in this area The candidate points are candidate point 3 and candidate point 4; for the unit's original reachable area 20f, the candidate points selected in the area are candidate point 5 and candidate point 6; for the unit's original reachable area 20g In other words, the candidate points selected in the area are candidate point 7 and candidate point 8.
接下来,就是对上述8个备选点进行过滤和保留,具体过程为:对所有的备选点来说,用户终端10a调用路径导航接口,分别确定每个备选点与汽车当前位置之间的路网最短距离,用户终端10a将路网最短距离大于剩余里程数的备选点删除,相对地,用户终端10a保留路网最短距离小于或等于剩余里程数的备选点。需要说明的是,当备选点处于路网不可达区域时,例如处于江河、山区、封闭区域等,说明该备选点与汽车当前位置之间的路网最短距离为无穷大。The next step is to filter and retain the above 8 candidate points. The specific process is: for all candidate points, the user terminal 10a calls the route navigation interface to determine the distance between each candidate point and the current position of the car. The user terminal 10a deletes the candidate points with the shortest road network distance greater than the remaining mileage. On the contrary, the user terminal 10a reserves the candidate points with the shortest road network distance less than or equal to the remaining mileage. It should be noted that when the candidate point is in an unreachable area of the road network, such as rivers, mountains, enclosed areas, etc., it means that the shortest distance between the candidate point and the current position of the car is infinite.
过滤了部分备选点后,对每个单位原始可达区域内的剩余备选点来说,还需要再次过滤,再次过滤的具体过程为:用户终端10a只保留每个单位原始可达区域内距离圆心(即汽车的当前位置)最远的备选点,过滤掉每个单位原始可达区域内其余的备选点。此处的距离度量方式可以是地图页面20a中的距离,也可以是路网最短距离。After filtering some candidate points, the remaining candidate points in the original reachable area of each unit need to be filtered again. The specific process of re-filtering is: the user terminal 10a only retains the original reachable area of each unit The candidate points farthest from the center of the circle (that is, the current position of the car), filter out the remaining candidate points in the original reachable area of each unit. The distance measurement method here can be the distance in the map page 20a or the shortest distance of the road network.
如图2a所示,对单位原始可达区域20d来说,最后保留下来的是备选点1以及备选点2(由于备选点1与备选点2是处于圆周上的点,因此两个备选点是可能同时被保留的);对单位原始可达区域20e来说,最后保留下来的是备选点4;对单位原始可达区域20f来说,最后保留下来的是备选点6;对单位原始可达区域20g来说,最后保留下来的是备选点7。As shown in Figure 2a, for the unit's original reachable area 20d, the last remaining candidates are candidate point 1 and candidate point 2 (because candidate point 1 and candidate point 2 are points on the circle, the two The candidate points may be retained at the same time); for the unit’s original reachable area 20e, the last remaining candidate is the candidate point 4; for the unit’s original reachable area 20f, the last remaining candidate is the candidate point 6; For the unit's original reachable area of 20g, the last remaining option is point 7.
在地图页面20a中,用户终端10a按照顺时针顺序或者逆时针顺序,连接保留下来的备选点,即依次连接备选点1、备选点2、备选点4、备选点6以及备选点7,连接后,在地图页面20a中可以确定实际可达区域20h,并在地图页面20a中渲染该实际可达区域20h,即在地图页面20a中标记该实际可达区域20h。In the map page 20a, the user terminal 10a connects the remaining candidate points in a clockwise or counterclockwise order, that is, connects candidate point 1, candidate point 2, candidate point 4, candidate point 6 and backup points in sequence. Select point 7, after connecting, the actual reachable area 20h can be determined on the map page 20a, and the actual reachable area 20h can be rendered on the map page 20a, that is, the actual reachable area 20h is marked on the map page 20a.
若剩余里程数小于或者等于里程阈值,用户终端10a可以采用红色渲染实际可达 区域20h的边界;若剩余里程数大于里程阈值,用户终端10a可以采用蓝色渲染实际可达区域20h的边界。当然,除了用不同的颜色渲染实际可达区域20h的边界用于提示用户,还可以采用不同粗细的线条、或者采用实线和/或虚线来渲染实际可达区域20h的边界用于提示用户。If the remaining mileage is less than or equal to the mileage threshold, the user terminal 10a may render the boundary of the actual reachable area 20h in red; if the remaining mileage is greater than the mileage threshold, the user terminal 10a may render the boundary of the actual reachable area 20h in blue. Of course, in addition to rendering the boundary of the actual reachable area 20h with different colors for prompting the user, lines of different thicknesses, or solid lines and/or dashed lines may also be used to render the boundary of the actual reachable area 20h for prompting the user.
如图2b中的界面20x所示,启动了“我的车”APP后,进入该APP前,在用户终端的屏幕上可以播放预设动画,与此同时,用户终端10a可以并行地在地图页面20a中确定实际可达区域20h时。当检测到实际可达区域20h确定完毕时,如界面20y所示,停止播放动画,进入APP首页,将渲染了实际可达区域20h的地图页面20a显示首页上,同时在APP首页中,还可以一并显示与用户终端10a具有绑定关系的汽车的车牌、车主名称、剩余里程数(即图2b中的续航),以及剩余电量(或者剩余油量)等。这样用户通过用户终端10a就可以查看汽车可行驶的最远距离范围,方便规划行程。As shown in the interface 20x in Figure 2b, after starting the "My Car" APP, before entering the APP, a preset animation can be played on the screen of the user terminal, and at the same time, the user terminal 10a can be displayed on the map page in parallel In 20a, the actual reachable area is determined at 20h. When it is detected that the actual reachable area 20h is determined, as shown in the interface 20y, stop playing the animation and enter the APP homepage. The map page 20a that has rendered the actual reachable area 20h is displayed on the homepage. At the same time, in the APP homepage, you can The license plate of the car that has a binding relationship with the user terminal 10a, the owner's name, the remaining mileage (that is, the battery life in FIG. 2b), and the remaining power (or remaining fuel) are also displayed. In this way, the user can view the longest distance range that the car can travel through the user terminal 10a, which is convenient for planning a trip.
后续,用户终端10a可以将渲染了实际可达区域20h的地图页面20a发送至与用户终端10a具有绑定关系的汽车,当启动该汽车的车载导航时,在汽车的显示屏上可以显示渲染了实际可达区域20h的地图页面20a,用于提示车主汽车的实际可达范围。Subsequently, the user terminal 10a may send the rendered map page 20a of the actual reachable area 20h to the car that has a binding relationship with the user terminal 10a. When the car’s car navigation is started, the rendering can be displayed on the car’s display screen. The map page 20a of the actual reachable area 20h is used to remind the owner of the actual reach of the car.
其中,确定原始续航区域(如上述图2a对应实施例中的原始可达区域20c)、生成原始备选点(如上述图2a对应实施例中的备选1、备选点2...、备选点8)、确定目标续航区域(如上述图2a对应实施例中的实际可达区域20h)的具体过程可以参见下述图3a-图11b对应的实施例。Among them, determine the original endurance area (such as the original reachable area 20c in the embodiment corresponding to FIG. 2a), and generate original candidate points (such as candidate 1, candidate point 2 in the corresponding embodiment in FIG. 2a). Alternative 8). The specific process of determining the target cruising area (such as the actual reachable area 20h in the embodiment corresponding to FIG. 2a) can be referred to the following embodiments corresponding to FIG. 3a to FIG. 11b.
请参见图3a,是本申请实施例提供的一种图像处理方法的流程示意图,如图3a所示,图像处理方法可以包括:Please refer to FIG. 3a, which is a schematic flowchart of an image processing method provided by an embodiment of the present application. As shown in FIG. 3a, the image processing method may include:
步骤S101,获取交通工具的剩余里程参数。Step S101: Obtain remaining mileage parameters of the vehicle.
本申请的图像处理过程涉及汽车以及终端设备,下述步骤的执行主体可以是汽车也可以是终端设备;若执行主体是汽车,那么汽车确定了目标续航区域后可以将该区域数据发送至与其具有绑定关系的终端设备;若执行主体是终端设备,那么同样地终端设备确定了目标续航区域后可以将该区域数据发送至与其具有绑定关系的汽车。后续实施例均以终端设备为执行主体进行描述。The image processing process in this application involves cars and terminal equipment. The execution subject of the following steps can be a car or a terminal device; if the execution subject is a car, the car can send the area data to the car after determining the target endurance area. The terminal device of the binding relationship; if the execution subject is the terminal device, the terminal device can also send the area data to the car that has a binding relationship with the terminal device after determining the target cruising area. The subsequent embodiments are described with the terminal device as the execution subject.
具体的,终端设备(如上述图2a对应实施例中的用户终端10a)获取交通工具(例如,汽车)的剩余里程参数;其中,剩余里程参数可以是交通工具通过车联网向终端设备发送的,剩余里程参数是该交通工具基于当前的电量或者油量确定的还可以行驶的距离长度,例如,剩余里程参数为200km。Specifically, the terminal device (such as the user terminal 10a in the corresponding embodiment in FIG. 2a above) obtains the remaining mileage parameter of the vehicle (for example, a car); wherein the remaining mileage parameter may be sent by the vehicle to the terminal device through the Internet of Vehicles, The remaining mileage parameter is the length of the distance that the vehicle can still travel based on the current electricity or fuel amount. For example, the remaining mileage parameter is 200km.
步骤S102,获取所述交通工具在地图显示界面中的起始位置。Step S102: Acquire the starting position of the vehicle on the map display interface.
具体的,终端设备获取交通工具的当前位置,其中,当前位置也可以是交通工具通过车联网向终端设备发送的。Specifically, the terminal device obtains the current location of the vehicle, where the current location may also be sent by the vehicle to the terminal device through the Internet of Vehicles.
终端设备根据交通工具的当前位置,在地图显示界面(如上述图2a对应实施例中的地图页面20a)中确定起始位置。The terminal device determines the starting position in the map display interface (such as the map page 20a in the embodiment corresponding to FIG. 2a) according to the current position of the vehicle.
步骤S103,根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域。Step S103: Determine a target cruising area in the map display interface according to the starting position and the remaining mileage parameter.
具体的,终端设备可以在地图显示界面中,以起始位置为中心,在起始位置周围随机确定多个目标点。在地图显示界面中,连接上述多个目标点,所得到的区域称为目标续航区域(如上述图2a对应实施例中的实际可达区域20h)。Specifically, the terminal device may randomly determine multiple target points around the starting position in the map display interface with the starting position as the center. In the map display interface, the above multiple target points are connected, and the obtained area is called the target endurance area (for example, the actual reachable area 20h in the corresponding embodiment in FIG. 2a).
在实施例中,终端设备获取地图显示界面的地图比例尺系数,其中地图比例尺系数是地图显示界面上的线段长度与实地相应线段经水平投影的长度之比。In an embodiment, the terminal device obtains the map scale factor of the map display interface, where the map scale factor is the ratio of the length of the line segment on the map display interface to the length of the corresponding line segment on the ground through the horizontal projection.
由于剩余里程参数是实地距离,为了确定该剩余里程参数在地图显示界面上的距离,因此终端设备根据剩余里程参数以及地图比例尺系数,确定里程半径系数。Since the remaining mileage parameter is the actual distance, in order to determine the distance of the remaining mileage parameter on the map display interface, the terminal device determines the mileage radius coefficient according to the remaining mileage parameter and the map scale factor.
举例来说,地图比例尺系数为:1cm:10km,若剩余里程参数为100km,按照等比例关系,那么里程半径系数为10cm,即实地距离为100km,在地图显示界面上的距离为10cm。For example, the map scale factor is: 1cm:10km. If the remaining mileage parameter is 100km, according to the proportional relationship, the mileage radius factor is 10cm, that is, the actual distance is 100km, and the distance on the map display interface is 10cm.
在地图显示界面中,终端设备以起始位置为圆心,以里程半径系数为半径,生成圆周(称为里程圆周),将里程圆周在地图显示界面中对应的区域作为目标续航区域。In the map display interface, the terminal device uses the starting position as the center of the circle and the mileage radius coefficient as the radius to generate a circle (called the mileage circle), and use the area corresponding to the mileage circle in the map display interface as the target cruising area.
在实施例中,除了上述2种方式可以确定目标续航区域外,还可以采用下述方法(即第三种方式)确定目标续航区域:在地图显示界面中,终端设备以起始位置为圆心,以里程半径系数为半径,生成圆周(称为里程圆周),将里程圆周在地图显示界面中对应的区域作为原始续航区域(如上述图2a对应实施例中的原始可达区域20c)。In the embodiment, in addition to the above two ways to determine the target endurance area, the following method (that is, the third method) can also be used to determine the target endurance area: In the map display interface, the terminal device uses the starting position as the center of the circle. Take the mileage radius coefficient as the radius to generate a circle (called mileage circle), and use the area corresponding to the mileage circle in the map display interface as the original cruising area (such as the original reachable area 20c in the corresponding embodiment in FIG. 2a).
可以知道,由于原始续航区域是按照剩余里程参数在地图显示界面上所确定的圆周,与真实的路网无关,而真实道路一般都是弯折的,因此无论交通工具向哪个方向行驶,油量耗尽点或者电量耗尽点必然是在原始续航区域内或者原始续航区域边界上的。It can be known that since the original cruising area is the circle determined on the map display interface according to the remaining mileage parameters, it has nothing to do with the real road network, and the real roads are generally curved, so no matter which direction the vehicle is driving, the fuel volume The exhaustion point or the power exhaustion point must be in the original endurance area or on the boundary of the original endurance area.
在实施例中,在地图显示界面中,终端设备以起始位置为中心,生成正方形区域,其中正方向区域的中心到顶点之间的距离可以等于里程半径系数。同样地,终端设备可以将上述正方形区域作为原始续航区域。In an embodiment, in the map display interface, the terminal device generates a square area with the starting position as the center, wherein the distance from the center to the vertex of the positive direction area may be equal to the mileage radius coefficient. Similarly, the terminal device can use the aforementioned square area as the original battery life area.
可选的,在地图显示界面中,终端设备以起始为中心,生成正六边形区域,其中正六边形区域的中心到各顶点之间的距离可以等于里程半径系数。同样地,终端设备可以将上述正六边形区域作为原始续航区域。Optionally, in the map display interface, the terminal device generates a regular hexagon area with the start as the center, wherein the distance between the center of the regular hexagon area and each vertex may be equal to the mileage radius coefficient. Similarly, the terminal device can use the aforementioned regular hexagonal area as the original endurance area.
在原始续航区域内确定多个原始备选点(例如,可以采用随机的方式确定多个原始备选点),从多个原始备选点中选择该交通工具可达的原始备选点,作为可达备选点;其中交通工具可达是指可达备选点与起始位置之间的路网路径距离小于或者等于剩余里程参数。路网路径距离是指A点与B点之间的真实道路距离。一般来说,因为道路 存在弯折,且两点之间的直线距离最短,因此路网路径距离大于两点之间的直线距离。Determine multiple original candidate points in the original endurance area (for example, multiple original candidate points can be determined in a random manner), and select the original candidate points reachable by the vehicle from the multiple original candidate points as Reachable candidate point; where the vehicle reachable means that the distance of the road network path between the reachable candidate point and the starting position is less than or equal to the remaining mileage parameter. The road network path distance refers to the real road distance between point A and point B. Generally speaking, because the road has bends and the straight-line distance between two points is the shortest, the road network path distance is greater than the straight-line distance between two points.
在实施例中,若原始备选点处于江河、山区、封闭管制区域等路网不可达区域,则可以视为该原始备选点与起始位置之间的路网路径距离为无穷大,也就是说处于路网不可达区域的原始备选点,会被删除,也就不会被作为可达备选点。In the embodiment, if the original candidate point is in an unreachable area of the road network such as rivers, mountain areas, and closed control areas, it can be considered that the road network path distance between the original candidate point and the starting position is infinite, that is, It is said that the original candidate point in the unreachable area of the road network will be deleted and will not be regarded as the reachable candidate point.
将可达备选点都作为目标点,在地图显示界面中,连接上述多个目标点,所得到的区域称为目标续航区域。Regarding the reachable candidate points as target points, in the map display interface, connect the above-mentioned multiple target points, and the obtained area is called the target endurance area.
步骤S104,在所述地图显示界面中展示所述目标续航区域。Step S104: Display the target battery life area on the map display interface.
具体的,终端设备可以在地图显示界面中渲染该目标续航区域,即在地图显示界面中标记该目标续航区域。Specifically, the terminal device may render the target endurance area on the map display interface, that is, mark the target endurance area on the map display interface.
若剩余里程参数小于或者等于里程阈值,终端设备可以采用红色渲染该目标续航区域的边界;若剩余里程参数大于里程阈值,终端设备可以采用蓝色渲染该目标续航区域的边界。当然,除了用不同的颜色渲染目标续航区域的边界外,还可以采用不同粗细的线条、或者采用实线和/或虚线来渲染目标续航区域的边界,甚至还可以用不同颜色渲染整个目标续航区域。If the remaining mileage parameter is less than or equal to the mileage threshold, the terminal device may render the boundary of the target cruising area in red; if the remaining mileage parameter is greater than the mileage threshold, the terminal device may render the boundary of the target cruising area in blue. Of course, in addition to rendering the boundary of the target endurance area with different colors, you can also use different thickness lines, or use solid and/or dashed lines to render the boundary of the target endurance area, and you can even render the entire target endurance area with different colors. .
请参见图3b,是本申请实施例提供的一种确定目标续航区域的流程示意图,确定目标续航区域包括步骤201-步骤S204,且步骤201-步骤S204是上述图3a对应实施例中的步骤S103中确定目标续航区域的第三种方式的具体实施例:Please refer to FIG. 3b, which is a schematic diagram of a process for determining the target endurance area provided by an embodiment of the present application. The determination of the target endurance area includes steps 201 to S204, and steps 201 to S204 are step S103 in the embodiment corresponding to FIG. 3a. A specific embodiment of the third way to determine the target endurance area in:
步骤S201,根据所述起始位置和所述剩余里程参数确定多个原始备选点。Step S201: Determine multiple original candidate points according to the starting position and the remaining mileage parameter.
在地图显示界面中,终端设备以起始位置为圆心,以里程半径系数为半径,生成里程圆周,将里程圆周在地图显示界面中对应的区域作为原始续航区域。In the map display interface, the terminal device uses the starting position as the center of the circle and the mileage radius coefficient as the radius to generate a mileage circle. The area corresponding to the mileage circle in the map display interface is used as the original cruising area.
终端设备获取极角间隔系数,以起始位置为中心,以极角间隔系数为间隔,划分原始续航区域,可以得到多个单位原始续航区域(如上述图2a对应实施例中的单位原始可达区域20d、单位原始可达区域20e、单位原始可达区域20f以及单位原始可达区域20g),每个单位原始续航区域的面积、形状都可以相同。The terminal device obtains the polar angle interval coefficient, and divides the original endurance area with the starting position as the center and the polar angle interval coefficient as the interval, and can obtain multiple unit original endurance areas (as shown in the corresponding embodiment in Figure 2a, the unit original reachability Area 20d, unit original reachable area 20e, unit original reachable area 20f, and unit original reachable area 20g), the area and shape of the original range of each unit can be the same.
可以知道,若原始续航区域是圆形,那么每个单位原始续航区域就是扇形,扇形的圆心角就等于极角间隔系数。It can be known that if the original endurance area is circular, then the original endurance area of each unit is a sector, and the central angle of the sector is equal to the polar angle interval coefficient.
当原始续航区域是圆形时,为了使划分后的单位原始续航区域的面积、形状都相同,就要保证极角间隔系数可以被360°整除,这样原始续航区域就可以被划分为N个相同的单位原始续航区域,N为大于等于1的整数。When the original endurance area is circular, in order to make the area and shape of the original endurance area of the divided unit the same, it is necessary to ensure that the polar angle interval coefficient can be divisible by 360°, so that the original endurance area can be divided into N identical The unit of the original endurance area, N is an integer greater than or equal to 1.
一般来说,当极角间隔系数越小,最终描绘的目标续航区域就越精细,对应地,就会增加计算量和数据量;当极角间隔系数越大,划分后的单位原始续航区域的数量就越少,这可能造成最终描绘的目标续航区域不够精确。因此为了平衡计算量和目标续航区域的精细度,本申请的实施例通过多次实验确定当极角间隔系数等于10°时,计算量和目标续航区域的精细度可以到达较好的平衡。Generally speaking, when the polar angle interval coefficient is smaller, the target endurance area drawn is more refined, and correspondingly, the amount of calculation and data will be increased; when the polar angle interval coefficient is larger, the original endurance area of the divided unit The smaller the number, which may cause the final depiction of the target endurance area is not accurate enough. Therefore, in order to balance the calculation amount and the fineness of the target endurance area, the embodiment of the present application determines through multiple experiments that when the polar angle interval coefficient is equal to 10°, the calculation amount and the fineness of the target endurance area can reach a better balance.
在实施例中,若原始续航区域是正方形,那么终端设备仍旧按照以起始位置为中心,极角间隔系数为间隔,划分原始续航区域后,可以得到多个三角形或者四边形的单位原始续航区域,且单位原始续航区域的顶角中关于起始位置的顶角角度等于极角间隔系数。In the embodiment, if the original endurance area is a square, then the terminal device still uses the starting position as the center and the polar angle interval coefficient as the interval. After dividing the original endurance area, multiple triangle or quadrilateral unit original endurance areas can be obtained. And the vertex angle with respect to the starting position in the vertex angle of the unit original cruising area is equal to the polar angle interval coefficient.
在实施例中,若原始续航区域是正六边形,那么终端设备仍旧按照以起始位置为中心,极角间隔系数等于60°为间隔,划分原始续航区域后,可以得到6个等边三角形的单位原始续航区域,且单位原始续航区域的顶角角度等于60°。In the embodiment, if the original endurance area is a regular hexagon, the terminal device still uses the starting position as the center and the polar angle interval coefficient is equal to 60° as the interval. After dividing the original endurance area, six equilateral triangles can be obtained. Unit original endurance area, and the unit original endurance area vertex angle is equal to 60°.
终端设备再对每个单位原始续航区域进行划分,得到一个或者多个单位原始续航子区域,划分原则是每个单位原始续航子区域的边长(此处的边长是指在地图显示界面中的长度)与第一长度阈值之间的差值小于预设的差异阈值。The terminal device then divides the original battery life area of each unit to obtain one or more original battery life sub-areas. The dividing principle is the side length of each unit’s original battery life sub-areas (the side length here refers to the The difference between the length) and the first length threshold is less than the preset difference threshold.
在地图显示界面中,终端设备将每个单位原始续航子区域的顶点均作为原始备选点(如上述图2a对应实施例中的备选1、备选点2...、备选点8)。In the map display interface, the terminal device regards the vertices of the original battery life sub-region of each unit as the original candidate points (for example, candidate 1, candidate point 2..., candidate point 8 in the corresponding embodiment in Figure 2a above ).
下面对一个单位原始续航区域划分为一个或者多个单位原始续航子区域,并确定多个原始备选点的具体过程进行描述。请参见图4,是本申请实施例提供的确定原始备选点的示意图。原始续航区域被均匀划分8个单位原始续航区域,下面对其中的一个单位原始续航区域进行说明,可以知道单位原始续航区域为扇形。终端设备从半径和极径两个维度切分单位原始续航区域,半径是指原始续航区域的同心圆曲线与单位原始续航区域之间的交叉曲线,极径是指单位原始续航区域圆周上的点到扇形顶点之间的线段,切分目标就是每个极径、半径间围成的“曲边矩形”或者“曲边三角形”的边长与第一长度阈值之间的差值小于预设的差异阈值。从图4可以看出,通过半径和极径两个维度的切分,可以将单位原始续航区域切分为9个单位原始续航子区域,且每个单位原始续航子区域的边长都是约等于第一长度阈值的。The following describes the specific process of dividing a unit's original battery life area into one or more unit original battery sub-areas and determining multiple original candidate points. Please refer to FIG. 4, which is a schematic diagram of determining original candidate points provided by an embodiment of the present application. The original endurance area is evenly divided into 8 original endurance areas. The original endurance area of one of the units is described below. It can be known that the original endurance area of the unit is fan-shaped. The terminal device divides the original endurance area of the unit from the two dimensions of radius and polar diameter. The radius refers to the intersection curve between the concentric circle curve of the original endurance area and the original endurance area of the unit. The extreme diameter refers to the point on the circumference of the unit original endurance area. To the line segment between the vertices of the fan, the segmentation target is that the difference between the side length of the "curved rectangle" or "curved triangle" enclosed by each polar diameter and radius and the first length threshold is less than the preset Difference threshold. It can be seen from Figure 4 that by dividing the two dimensions of radius and polar diameter, the original battery life area of a unit can be divided into 9 original battery life sub-areas, and the side length of the original battery life sub-areas of each unit is approximately approx. Equal to the first length threshold.
终点设备可以将所有的单位原始续航子区域的顶点作为原始备选点,从图4可以看出,9个单位原始续航子区域对应12个备选点。The terminal device can use all the vertices of the original battery life sub-areas of the unit as the original candidate points. As can be seen from Figure 4, the 9 original battery life sub-areas correspond to 12 candidate points.
在实施例中,上述是将所有单位原始续航子区域的顶点都作为原始备选点,由于扇形的外半径是大于内半径的,因此位于外半径两个相邻原始备选点之间的距离必然大于位于内半径两个相邻原始备选点之间的距离,为了使所有原始备选点之间的距离近似相等,对位于内半径的原始备选点来说,还需要过滤一部分原始备选点,目标是为了使所有保留下来的原始备选点之间的距离近似相等。In the embodiment, the above is to use all the vertices of the original battery life sub-region as the original candidate points. Since the outer radius of the fan shape is larger than the inner radius, the distance between two adjacent original candidate points in the outer radius Must be greater than the distance between two adjacent original candidate points located in the inner radius. In order to make the distance between all the original candidate points approximately equal, for the original candidate points located in the inner radius, it is necessary to filter a part of the original candidate points. The goal of selecting points is to make the distance between all retained original candidate points approximately equal.
例如,图4中位于最外圈的4个原始备选点之间的距离必然大于位于最内圈的4个原始备选点之间的距离,因此对最内圈的4个原始备选点,可以过滤掉其中的2个原始备选点,使得剩余的原始备选点之间的距离与位于最外圈的4个原始备选点之间的距离近似相等。For example, the distance between the 4 original candidate points located in the outermost circle in Figure 4 must be greater than the distance between the 4 original candidate points located in the innermost circle. , The two original candidate points can be filtered out so that the distance between the remaining original candidate points is approximately equal to the distance between the four original candidate points located in the outermost circle.
步骤S202,从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为 可达备选点。Step S202: Select the original candidate point that is reachable by the vehicle from the multiple original candidate points as the reachable candidate point.
具体的,下述以一个原始备选点为例进行说明如何确定该原始备选点是否为可达备选点。终端设备确定原始备选点与起始位置之间的路网路径距离,路网路径距离是指A点与B点之间的真实道路距离。一般来说,因为道路存在弯折,且两点之间的直线距离最短,因此路网路径距离大于两点之间的直线距离。Specifically, the following takes an original candidate point as an example to illustrate how to determine whether the original candidate point is a reachable candidate point. The terminal device determines the road network path distance between the original candidate point and the starting position. The road network path distance refers to the real road distance between point A and point B. Generally speaking, because the road has bends and the straight-line distance between two points is the shortest, the road network path distance is greater than the straight-line distance between two points.
为了避免混淆,在此处重申3个距离之间的区别,在地图显示界面中的距离是指页面距离,一般来说,该距离都比较小,单位一般都是cm;地图显示界面中的距离可以对应真实世界中的一段直线距离,他们之间是成比例关系;路网路径距离是指道路路径距离(或者是路径规划距离),一般来说,A点与B点之间的真实直线距离是小于或者等于路网路径距离的。In order to avoid confusion, I reiterate the difference between the three distances here. The distance in the map display interface refers to the page distance. Generally speaking, the distance is relatively small, and the unit is generally cm; the distance in the map display interface It can correspond to a straight line distance in the real world, and they are proportional; the road network path distance refers to the road path distance (or the path planning distance). Generally speaking, the true straight line distance between point A and point B Is less than or equal to the path distance of the road network.
原始备选点都存在对应的路网路径距离,将那些大于剩余里程参数的路网路径距离对应的原始备选点删除,保留那些小于或者等于剩余里程参数的路网路径距离对应的原始备选点,终端设备可以将保留下来的原始备选点都作为可达备选点,即可达备选点对应的真实路网位置是交通工具基于剩余里程参数可以到达的位置。The original candidate points all have corresponding road network path distances, delete the original candidate points corresponding to the road network path distance greater than the remaining mileage parameter, and keep those original candidates corresponding to the road network path distance less than or equal to the remaining mileage parameter Point, the terminal device can use all the retained original candidate points as reachable candidate points, that is, the real road network location corresponding to the candidate point is the location that the vehicle can reach based on the remaining mileage parameters.
在实施例中,若原始备选点处于路网不可达区域,例如处于江河、山区、封闭管制区域等,则可以视为该原始备选点与起始位置之间的路网路径距离为无穷大,也就是说处于路网不可达区域的原始备选点,会被删除,也就不会被作为可达备选点。In the embodiment, if the original candidate point is in an unreachable area of the road network, for example, in a river, mountainous area, closed control area, etc., it can be considered that the road network path distance between the original candidate point and the starting position is infinite , That is to say, the original candidate point in the unreachable area of the road network will be deleted and will not be regarded as the reachable candidate point.
步骤S203,将所述可达备选点确定为目标点。Step S203: Determine the reachable candidate point as a target point.
具体的,终端设备分别确定起始位置与每个可达备选点在地图显示界面中的距离(称为地图距离),在每个单位原始续航区域中,将具有最大地图距离的可达备选点作为该原始续航区域的待确定目标点。Specifically, the terminal device separately determines the distance between the starting position and each reachable candidate point in the map display interface (referred to as the map distance). In each unit's original battery life area, the reachable device with the largest map distance is selected. The selected point is the target point to be determined in the original endurance area.
在实施例中,终端设备确定起始位置与每个可达备选点之间的路网路径距离(称为候选路网路径距离),在每个单位原始续航区域中,将具有最大候选路网路径距离的可达备选点作为该原始续航区域的待确定目标点。In the embodiment, the terminal device determines the road network path distance between the starting position and each reachable candidate point (referred to as the candidate road network path distance). In each unit original range, there will be the largest candidate road. The reachable candidate point of the network path distance is used as the target point to be determined in the original endurance area.
对每个单位原始续航区域、每个原始备选点来说,都可以按照上述方式分别确定每个单位原始续航区域内的可达备选点,然后再分别将每个单位原始续航区域内距离起始位置最远的可达备选点作为待确定目标点,最后将所有单位原始续航区域的待确定目标点均作为目标点。For each unit’s original battery life area and each original candidate point, the reachable candidate points in each unit’s original battery life area can be determined in the above manner, and then the distance within each unit’s original battery life area The farthest reachable candidate point from the starting position is used as the target point to be determined, and finally the target points to be determined in the original endurance area of all units are regarded as target points.
步骤S204,在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域。Step S204: In the map display interface, connect the multiple target points to obtain the target endurance area.
具体的,在地图显示界面中,终端设备可以按照顺时针顺序或者逆时针顺序,连接每个目标点,得到候选封闭圈。终端设备可以直接将候选封闭圈在地图显示界面中对应的区域作为目标续航区域。Specifically, in the map display interface, the terminal device may connect each target point in a clockwise sequence or a counterclockwise sequence to obtain a candidate closed circle. The terminal device can directly use the area corresponding to the candidate closed circle in the map display interface as the target endurance area.
由于路网分布非常复杂,因此可以进一步地对候选封闭圈进行边界平滑处理,以 减少路网奇异分布带来的奇异点对目标续航区域范围绘制带来的畸形影响,然后终端设备再将边界平滑处理后的区域作为目标续航区域。Since the distribution of the road network is very complicated, the boundary smoothing process can be further performed on the candidate closed circle to reduce the influence of the singular points caused by the singular distribution of the road network on the drawing of the target range area, and then the terminal device will smooth the boundary The processed area is regarded as the target endurance area.
对候选封闭圈进行边界平滑处理包括:找出满足位置突变条件的目标点,将满足位置突变条件的目标点进行删除,再将剩余的目标点按照顺时针方向或者逆时针方向进行连接,所得到区域即是边界平滑处理后的目标续航区域。位置突变是指该目标点跃变为凸点或者跃变为凹点。Smoothing the boundary of the candidate closed circle includes: finding the target point that meets the location mutation condition, deleting the target point that meets the location mutation condition, and then connecting the remaining target points in a clockwise or counterclockwise direction. The area is the target endurance area after boundary smoothing. A sudden change in position means that the target point changes to a convex point or a concave point.
终端设备对候选封闭圈进行边界平滑处理存在2种方式,下面先对其中的一种方式进行说明:终端设备从所有的目标点中提取出3个目标点,分别为第一可达点、第二可达点和第三可达点,且在候选封闭圈中,第二可达点与第一可达点相邻,且第二可达点与第三可达点相邻,简单来说,第二可达点位于中间,第一可达点与第三可达点位于两边。There are two ways for the terminal equipment to perform boundary smoothing on the candidate closed circle. The following describes one of the ways: the terminal equipment extracts 3 target points from all target points, which are the first reachable point and the first Two reachable points and third reachable points, and in the candidate closed circle, the second reachable point is adjacent to the first reachable point, and the second reachable point is adjacent to the third reachable point, in simple terms , The second reachable point is in the middle, and the first reachable point and the third reachable point are on both sides.
终端设备连接第一可达点和第二可达点,得到第一连接线;终端设备连接第二可达点和第三可达点,得到第二连接线,终端设备将第一连接线与第二连接线之间的夹角,作为连接线夹角(由于第一连接线与第二连接线的交点是第二可达点,因此第一连接线与第二连接线之间是存在夹角的)。若连接线夹角小于夹角阈值,说明第二可达点是满足位置突变条件的目标点,终端设备可以删除上述第二可达点。The terminal device connects the first reachability point and the second reachability point to obtain the first connection line; the terminal device connects the second reachability point and the third reachability point to obtain the second connection line, and the terminal device connects the first connection line to The angle between the second connecting line is taken as the angle of the connecting line (because the intersection of the first connecting line and the second connecting line is the second reachable point, there is a clamp between the first connecting line and the second connecting line Angular). If the included angle of the connecting line is less than the included angle threshold, it indicates that the second reachable point is a target point that satisfies the location mutation condition, and the terminal device can delete the second reachable point.
终端设备可以从剩余的目标点中继续提取3个目标点,分别作为第一可达点、第二可达点和第三可达点,再次确定第二可达点是否满足位置突变条件。不断循环,直至剩余的目标点中不存在满足位置突变条件的目标点。The terminal device can continue to extract three target points from the remaining target points, as the first reachable point, the second reachable point, and the third reachable point, respectively, to determine again whether the second reachable point meets the location mutation condition. Continue to loop until there is no target point that meets the position mutation condition among the remaining target points.
举例来说,请参见图5,是本申请实施例提供的一种确定满足位置突变条件的目标点的示意图。如图5所示,候选封闭圈包括:目标点A、目标点B、目标点C、目标点D、目标点E、目标点F。终端设备可以首先将目标点A作为第一可达点,将目标点B作为第二可达点,将目标点C作为第三可达点,由于∠ABC是大于夹角阈值的,因此目标点B不满足位置突变条件。终端设备再将目标点B作为第一可达点,将目标点C作为第二可达点,将目标点D作为第三可达点,由于∠BCD是大于夹角阈值的,因此目标点C是不满足位置突变条件的目标点。以此类推,当目标点E作为第一可达点,目标点F作为第二可达点,目标点A作为第三可达点时,由于∠EFA小于夹角阈值,因此目标点F是满足位置突变条件的目标点,终端设备可以将目标点F删除。后续终端设备再根据剩余的目标点,再次判断是否存在满足位置突变条件的目标点。如图5所示,删除目标点F后,剩余的目标点A、目标点B、目标点C、目标点D、目标点E是均不满足位置突变条件的,因此终端设备可以按照顺时针顺序或者逆时针顺序连接剩余的目标点A、目标点B、目标点C、目标点D、目标点E,连接后所得到的区域,即是边界平滑处理后的目标续航区域。For example, please refer to FIG. 5, which is a schematic diagram of determining a target point that satisfies a position mutation condition according to an embodiment of the present application. As shown in Fig. 5, the candidate closed circle includes: target point A, target point B, target point C, target point D, target point E, and target point F. The terminal device can first set target point A as the first reachable point, target point B as the second reachable point, and target point C as the third reachable point. Since ∠ABC is greater than the included angle threshold, the target point B does not meet the position mutation condition. The terminal device then regards target point B as the first reachable point, target point C as the second reachable point, and target point D as the third reachable point. Since ∠BCD is greater than the included angle threshold, target point C It is a target point that does not meet the location mutation condition. By analogy, when the target point E is regarded as the first reachable point, the target point F is regarded as the second reachable point, and the target point A is regarded as the third reachable point, since ∠EFA is less than the included angle threshold, the target point F is satisfied For the target point of the location mutation condition, the terminal device can delete the target point F. The subsequent terminal device again judges whether there is a target point that meets the location mutation condition based on the remaining target points. As shown in Figure 5, after deleting target point F, the remaining target point A, target point B, target point C, target point D, and target point E do not meet the position mutation condition, so the terminal device can follow the clockwise sequence Or connect the remaining target point A, target point B, target point C, target point D, and target point E counterclockwise, and the area obtained after the connection is the target endurance area after boundary smoothing.
下面对候选封闭圈进行平滑处理的另外一种方式进行说明:终端设备从所有的目 标点中提取出3个目标点,分别为第一可达点、第二可达点和第三可达点,且在候选封闭圈中,第二可达点与第一可达点相邻,且第二可达点与第三可达点相邻,简单来说,第二可达点位于中间,第一可达点与第三可达点位于两边。The following describes another way of smoothing the candidate closed circle: the terminal device extracts 3 target points from all target points, which are the first reachable point, the second reachable point, and the third reachable point. Point, and in the candidate closed circle, the second reachable point is adjacent to the first reachable point, and the second reachable point is adjacent to the third reachable point. Simply put, the second reachable point is in the middle, The first reachable point and the third reachable point are located on both sides.
终端设备连接第一可达点与第三可达点,得到第三连接线,并确定第二可达点与第三连接线之间的距离(称为连接线距离),确定第三连接线的长度,将连接线距离除以第三连接线的长度,得到的比值称为连接线比例系数。若连接线比例系数大于预设的比例系数阈值,那么终端设备可以将第二可达点作为满足位置突变条件的目标点,终端设备可以删除上述第二可达点。The terminal device connects the first reachable point and the third reachable point to obtain the third connecting line, and determines the distance between the second reachable point and the third connecting line (called the connecting line distance), and determines the third connecting line The length of the connection line is divided by the length of the third connection line, and the ratio obtained is called the connection line scale factor. If the scale factor of the connection line is greater than the preset scale factor threshold, the terminal device can use the second reachable point as the target point that meets the location mutation condition, and the terminal device can delete the second reachable point.
终端设备可以从剩余的目标点中继续提取3个目标点,分别作为第一可达点、第二可达点和第三可达点,再次确定第二可达点是否满足位置突变条件。不断循环,直至剩余的目标点中不存在满足位置突变条件的目标点。The terminal device can continue to extract three target points from the remaining target points, as the first reachable point, the second reachable point, and the third reachable point, respectively, to determine again whether the second reachable point meets the location mutation condition. Continue to loop until there is no target point that meets the position mutation condition among the remaining target points.
举例来说,请参见图6,是本申请实施例提供的另一种确定满足位置突变条件的目标点的示意图。如图6所示,候选封闭圈包括:目标点A、目标点B、目标点C、目标点D、目标点E、目标点F。For example, please refer to FIG. 6, which is another schematic diagram of determining a target point that meets a position mutation condition provided by an embodiment of the present application. As shown in Figure 6, the candidate closed circle includes: target point A, target point B, target point C, target point D, target point E, and target point F.
终端设备可以首先将目标点A作为第一可达点,将目标点B作为第二可达点,将目标点C作为第三可达点,由于目标点B与线段AC之间的距离除以线段AC的长度小于预设的比例系数阈值,因此目标点B不满足位置突变条件。终端设备再将目标点B作为第一可达点,将目标点C作为第二可达点,将目标点D作为第三可达点,由于目标点C与线段BD之间的距离除以线段BD的长度小于预设的比例系数阈值,因此目标点C不满足位置突变条件。以此类推,当目标点E作为第一可达点,目标点F作为第二可达点,目标点A作为第三可达点时,由于目标点F与线段AE之间的距离D1(即前述中的连接线距离)除以线段AE的长度D2(即前述中的第三连接线的长度)大于预设的比例系数阈值,因此目标点F是满足位置突变条件的目标点,终端设备可以将目标点F删除。如图6所示,删除目标点F后,剩余的目标点A、目标点B、目标点C、目标点D、目标点E是均不满足位置突变条件,因此终端设备可以按照顺时针顺序或者逆时针顺序连接剩余的目标点A、目标点B、目标点C、目标点D、目标点E,连接后所得到的区域,即是边界平滑处理后的目标续航区域。The terminal device can first set target point A as the first reachable point, target point B as the second reachable point, and target point C as the third reachable point. Since the distance between target point B and line AC is divided by The length of the line segment AC is less than the preset proportional coefficient threshold, so the target point B does not meet the position mutation condition. The terminal device then regards the target point B as the first reachable point, the target point C as the second reachable point, and the target point D as the third reachable point. Because the distance between the target point C and the line segment BD is divided by the line segment The length of the BD is less than the preset proportional coefficient threshold, so the target point C does not meet the position mutation condition. By analogy, when the target point E is the first reachable point, the target point F is the second reachable point, and the target point A is the third reachable point, because the distance D1 between the target point F and the line segment AE (ie The distance of the connecting line in the foregoing) divided by the length D2 of the line segment AE (that is, the length of the third connecting line in the foregoing) is greater than the preset proportional coefficient threshold. Therefore, the target point F is the target point that meets the location mutation condition, and the terminal device can Delete the target point F. As shown in Figure 6, after deleting target point F, the remaining target point A, target point B, target point C, target point D, and target point E all do not meet the position mutation condition, so the terminal device can follow the clockwise order or Connect the remaining target point A, target point B, target point C, target point D, and target point E counterclockwise, and the area obtained after the connection is the target endurance area after boundary smoothing.
请参见图7,是本申请实施例提供的另一种图像处理方法的流程示意图,如图7所示,图像处理方法可以包括:Please refer to FIG. 7, which is a schematic flowchart of another image processing method provided by an embodiment of the present application. As shown in FIG. 7, the image processing method may include:
步骤S301,获取交通工具的剩余里程参数,并获取所述交通工具在地图显示界面中的起始位置。Step S301: Obtain the remaining mileage parameters of the vehicle, and obtain the starting position of the vehicle on the map display interface.
其中,步骤S301的具体过程可以参见上述图3a对应实施例中的步骤S101-步骤S102的描述,此处就不在赘述。For the specific process of step S301, please refer to the description of step S101 to step S102 in the corresponding embodiment of FIG. 3a, which will not be repeated here.
步骤S302,根据所述起始位置和所述剩余里程参数确定多个原始备选点。Step S302: Determine multiple original candidate points according to the starting position and the remaining mileage parameter.
其中,步骤S302的具体过程可以参见上述图3b对应实施例中的步骤S201的描述,此处就不在赘述。For the specific process of step S302, please refer to the description of step S201 in the corresponding embodiment in FIG. 3b, which will not be repeated here.
步骤S303,确定原始备选点的备选点路网区域,并从路网数据集合中,获取所述备选点路网区域内的路网数据,作为备选点路网数据。Step S303: Determine the candidate point road network area of the original candidate point, and obtain the road network data in the candidate point road network area from the road network data set as the candidate point road network data.
具体的,下述以一个原始备选点为例进行说明如何确定该原始备选点的备选点路网数据。Specifically, the following takes an original candidate point as an example to illustrate how to determine the candidate point road network data of the original candidate point.
终端设备获取第二长度阈值,在真实路网中,以原始备选点对应的真实位置为圆心,以第二长度阈值为半径,确定圆周,该圆周对应的区域即是备选点路网区域;可以知道,第二长度阈值是指真实直线距离。The terminal device obtains the second length threshold. In the real road network, the real position corresponding to the original candidate point is the center of the circle, and the second length threshold is the radius to determine the circle. The area corresponding to the circle is the candidate point road network area ; It can be known that the second length threshold refers to the true straight line distance.
在实施例中,备选点路网区域除了是圆形外,也可以是正方形。在真实路网中,以原始备选点对应的真实位置为中心,以第二长度阈值为中心到顶点的距离,确定正方形,该正方形对应的区域即是备选点路网区域。其中,第二长度阈值可以等于1km。In the embodiment, in addition to being circular, the candidate point road network area may also be square. In a real road network, a square is determined by taking the real position corresponding to the original candidate point as the center and the second length threshold value as the distance from the center to the vertex, and the area corresponding to the square is the road network area of the candidate point. Wherein, the second length threshold may be equal to 1km.
当第二长度阈值为1km时,对备选点路网区域可以理解为:原始备选点周围1km的真实道路区域就是备选点路网区域。When the second length threshold is 1km, the candidate point road network area can be understood as: the real road area of 1km around the original candidate point is the candidate point road network area.
在实施例中,根据地图显示界面的比例尺系数以及前述中的第一长度阈值(前述中第一长度阈值用于划分多个单位原始续航子区域),可以将第一长度阈值换算为真实直线距离A,该真实直线距离A与第二长度阈值B满足如下关系:A=2×B,且第二长度阈值是通过多次实验所确定的最佳经验值,第一长度阈值是通过上述关系确定的。In an embodiment, according to the scale factor of the map display interface and the aforementioned first length threshold (the aforementioned first length threshold is used to divide multiple unit original battery life sub-regions), the first length threshold can be converted into a true straight-line distance A. The true straight-line distance A and the second length threshold B satisfy the following relationship: A=2×B, and the second length threshold is the best empirical value determined through multiple experiments, and the first length threshold is determined by the above relationship of.
例如,当第二长度阈值等于1km时,第一长度阈值对应的真实直线距离A就为2km,在真实直线距离A与第二长度阈值B满足2倍关系的前提下,所有的原始备选点分别对应的备选路网区域,基本可以覆盖原始续航区域对应的真实道路区域,避免了道路区域被遗漏,进而使得最终确定的目标续航区域更加准确。For example, when the second length threshold is equal to 1km, the true straight-line distance A corresponding to the first length threshold is 2km. On the premise that the true straight-line distance A and the second length threshold B meet the double relationship, all the original candidate points The corresponding candidate road network areas can basically cover the real road area corresponding to the original endurance area, avoiding the omission of the road area, and making the final target endurance area more accurate.
请参见图8,是本申请实施例提供的一种第一长度阈值与第二长度阈值的关系示意图。以4个原始备选点(分别为原始备选点A、原始备选点B、原始备选点C、原始备选点D)为例进行说明。原始备选点A对应的备选路网区域为区域70a;原始备选点B对应的备选路网区域为区域70b;原始备选点C对应的备选路网区域为区域70c;原始备选点D对应的备选路网区域为区域70d。原始备选点A与原始备选点B之间的真实直线距离=上述4个备选点路网区域的半径的2倍,从图8可以看出,正是由于存在2倍关系,上述4个备选路网区域基本可以覆盖4个原始备选点在路网区域中所构成的真实道路区域。这样可以避免道路区域被遗漏,进而使得最终确定的目标续航区域更加准确。Please refer to FIG. 8, which is a schematic diagram of the relationship between the first length threshold and the second length threshold according to an embodiment of the present application. Take 4 original candidate points (original candidate point A, original candidate point B, original candidate point C, original candidate point D) as an example. The candidate road network area corresponding to the original candidate point A is area 70a; the candidate road network area corresponding to the original candidate point B is area 70b; the candidate road network area corresponding to the original candidate point C is area 70c; The candidate road network area corresponding to point D is area 70d. The true straight-line distance between the original candidate point A and the original candidate point B = 2 times the radius of the road network area of the above 4 candidate points. It can be seen from Figure 8 that it is precisely because of the double relationship that the above 4 The two candidate road network areas can basically cover the real road area formed by the four original candidate points in the road network area. This can prevent the road area from being missed, thereby making the final target endurance area more accurate.
终端设备从路网数据集合中,获取每个备选点路网区域的路网数据,作为备选点路网数据。The terminal device obtains the road network data of each candidate point road network area from the road network data collection as the candidate point road network data.
下面对如何获取一个备选点路网区域内包含的路网数据进行具体的说明。路网数 据集合可以按照<Block,Rec>的组织形式存储于数据库中,其中Block为路网数据块,Rec为单位路网数据块。路网数据集合可以对应多个Block,每个Block包含多个Rec,每个Rec内可能不包含路网数据,可能包含一个路网数据,也可能包含多个路网数据。所有Rec内包含的路网数据可以组合为路网数据集合,每个Block之间近似相等,每个Block中包含的Rec也近似相等,因此为了确定备选点路网区域内包含的路网数据,在逻辑上需要先确定备选点路网区域所在的Rec。The following is a specific description of how to obtain the road network data contained in a candidate point road network area. The road network data collection can be stored in the database in the form of <Block, Rec>, where Block is the road network data block, and Rec is the unit road network data block. The road network data set can correspond to multiple blocks, and each block contains multiple Rec. Each Rec may not contain road network data, may contain one road network data, or may contain multiple road network data. The road network data contained in all Rec can be combined into a road network data set, each block is approximately equal, and the Rec contained in each block is also approximately equal, so in order to determine the road network data contained in the candidate point road network area , Logically, you need to determine the Rec where the candidate point road network area is located.
在实施例中,每个Block的对应的实际边长可以为12.5km*8.33km,每个Rec的对应的实际边长可以为100m*100m,也可以理解为每个Block可以对应一个真实路网区域,该路网区域是边长为12.5km*8.33km的矩形,每个Rec也可以对应一个真实路网区域,该路网区域是边长为100m*100m的矩形,且逻辑上相邻的Rec(或者Block)在真实路网区域中也是相邻的。In the embodiment, the actual side length corresponding to each Block can be 12.5km*8.33km, and the actual side length corresponding to each Rec can be 100m*100m. It can also be understood that each Block can correspond to a real road network. Area, the road network area is a rectangle with a side length of 12.5km*8.33km, each Rec can also correspond to a real road network area, the road network area is a rectangle with a side length of 100m*100m, and logically adjacent Rec (or Block) is also adjacent in the real road network area.
终端设备获取原始备选点所在路网区域的经纬度信息,其中经纬度信息包括经度和纬度,从多个路网数据块中查找与上述经纬度信息对应的路网数据块,作为目标路网数据块,其中可以通过几何哈希的方式查找。几何哈希查找方式是指存在一个哈希函数h(x,y),将经纬度信息中的经度和纬度分别作为x,y代入哈希函数中,得到哈希值z,该哈希值=路网数据块的id,即通过经纬度信息以及哈希函数,可以查找到与经纬度信息对应的目标路网数据块。The terminal device obtains the longitude and latitude information of the road network area where the original candidate point is located, where the longitude and latitude information includes longitude and latitude, and searches multiple road network data blocks for the road network data block corresponding to the above longitude and latitude information as the target road network data block. Which can be searched by geometric hash. The geometric hash search method refers to the existence of a hash function h(x, y), and the longitude and latitude in the latitude and longitude information are substituted into the hash function as x and y respectively to obtain the hash value z, the hash value = road The id of the network data block, that is, the target road network data block corresponding to the longitude and latitude information can be found through the latitude and longitude information and the hash function.
终端设备查找目标数据块对应的4个边界经纬度坐标,根据目标路网数据块所包含的单位路网数据块的数量,可以确定与上述经纬度信息对应的单位路网数据块(称为第一单位路网数据块)。The terminal device searches for the four boundary latitude and longitude coordinates corresponding to the target data block, and according to the number of unit road network data blocks contained in the target road network data block, can determine the unit road network data block corresponding to the above-mentioned longitude and latitude information (referred to as the first unit Road network data block).
举例来说,请参见图9a,是本申请实施例提供的一种确定第一单位路网数据块的示意图。图9a所示的路网数据块包括12个单位路网数据块(分别为,单位路网数据块1、单位路网数据块2、...、单位路网数据块12),且该路网数据块的4个边界经纬度坐标分别为(0,0)、(80,0)、(0,80)、(80,80),若原始备选点1对应的经纬度信息为(25,25),由于12个单位路网数据块是均匀划分的,因此可以计算得到,与经纬度信息(25,25)对应的单位路网数据块是单位路网数据块6,即单位路网数据块6是第一单位路网数据块。For example, refer to FIG. 9a, which is a schematic diagram of determining a first unit road network data block provided by an embodiment of the present application. The road network data block shown in Figure 9a includes 12 unit road network data blocks (respectively, unit road network data block 1, unit road network data block 2,..., unit road network data block 12), and the road The four boundary latitude and longitude coordinates of the network data block are (0,0), (80,0), (0,80), (80,80), if the latitude and longitude information corresponding to the original candidate point 1 is (25,25) ), since the 12 unit road network data blocks are evenly divided, it can be calculated that the unit road network data block corresponding to the latitude and longitude information (25, 25) is unit road network data block 6, namely unit road network data block 6 It is the first unit road network data block.
终端设备获取第二长度阈值,根据第二长度阈值与第一单位路网数据块确定第二单位路网数据块,其中,第二单位路网数据块与第一单位路网数据块之间的真实直线距离小于或等于第二长度阈值。The terminal device obtains the second length threshold, and determines the second unit road network data block according to the second length threshold and the first unit road network data block, where the distance between the second unit road network data block and the first unit road network data block The true straight line distance is less than or equal to the second length threshold.
终端设备可以将第一单位路网数据块对应的路网区域以及第二单位路网数据块对应的路网区域作为备选点路网区域。The terminal device may use the road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block as candidate point road network areas.
为了快速确定第二单位路网数据块,终端设备不必分别确定每个单位路网数据块是否为第二单位路网数据块,可以将第二长度阈值与单位路网数据块对应的真实边长 的比值作为数据块系数,然后以第一单位路网数据块为中心,向4个方向(包括水平向右、水平向左、垂直向上、以及垂直向下)延伸,延伸所经过的单位数据块数量就等于数据块系数,延伸后所得到的矩形区域内所包含的除第一单位路网数据块以外的单位路网数据块均为第二单位路网数据块,且延伸后所得到的矩形区域对应的路网区域即是备选点路网区域。In order to quickly determine the second unit road network data block, the terminal device does not need to separately determine whether each unit road network data block is the second unit road network data block, and the second length threshold can be set to the true side length corresponding to the unit road network data block. The ratio of is used as the data block coefficient, and then the first unit road network data block is taken as the center, and it extends in 4 directions (including horizontal to right, horizontal to left, vertical upward, and vertical downward) to extend the unit data block passed by The number is equal to the data block coefficient. The unit road network data blocks other than the first unit road network data block contained in the rectangular area obtained after extension are all the second unit road network data blocks, and the rectangle obtained after extension The road network area corresponding to the area is the candidate point road network area.
举例来说,请参见图9b,是本申请实施例提供的一种确定第二单位路网数据块的示意图。图9b所示的路网数据块A包含36个单位路网数据块,且单位路网数据块1是第一单位路网数据块,若第二长度阈值为200m,且单位路网数据块对应的实际边长等于100m,那么数据块系数=200/100=2,以单位路网数据块1为中心,以水平向左的方向延伸2个单位路网数据块的距离,以水平向右的方向延伸2个单位路网数据块的距离,以垂直向上的方向延伸2个单位路网数据块的距离,以垂直向下的方向延伸2个单位路网数据块的距离,这样所确定的区域80a中除单位路网数据块1以外的单位路网数据块均是第二单位路网数据块。For example, refer to FIG. 9b, which is a schematic diagram of determining a second unit road network data block provided by an embodiment of the present application. The road network data block A shown in Figure 9b contains 36 unit road network data blocks, and the unit road network data block 1 is the first unit road network data block. If the second length threshold is 200m, and the unit road network data block corresponds to The actual side length of is equal to 100m, then the data block coefficient=200/100=2, taking the unit road network data block 1 as the center, extending the distance of 2 unit road network data blocks horizontally to the left, and horizontally to the right Extend the distance of 2 unit road network data blocks in the direction, extend the distance of 2 unit road network data blocks in the vertical upward direction, and extend the distance of 2 unit road network data blocks in the vertical downward direction, so as to determine the area All unit road network data blocks except for unit road network data block 1 in 80a are the second unit road network data blocks.
按照上述方式,可以确定每个原始备选点对应的备选点区域以及第一单位路网数据块和第二单位路网数据块。为了确定备选点区域内是否存在路网数据,终端设备从数据库中提取第一单位路网数据块包含的路网数据,并提取第二单位路网数据块包含的路网数据,将提取出来的路网数据作为路网数据集合。In the foregoing manner, the candidate point area corresponding to each original candidate point and the first unit road network data block and the second unit road network data block can be determined. In order to determine whether there is road network data in the candidate point area, the terminal device extracts the road network data contained in the first unit road network data block from the database, and extracts the road network data contained in the second unit road network data block, which will be extracted The road network data as the road network data collection.
由于需要向外延伸,因此存在第二单位路网数据块对应多个Block的情况,请参见图10a,是本申请实施例提供的另一种确定第二单位路网数据块的示意图。图10a包含4个路网数据块(分别为路网数据块1、路网数据块2、路网数据块3以及路网数据块4),且单位路网数据块2是第一单位路网数据块,当数据块系数等于2时,按照上述方式可以确定区域80b中除单位路网数据块2以外的单位路网数据块均是第二单位路网数据块,可以知道上述第二单位路网数据块属于4个路网数据块,对于这种情况,终端设备需要分别从数据库的4个路网数据块中查找第一单元路网数据块内包含的路网数据,以及第二单元路网数据块内包含的路网数据,作为备选点路网数据。Due to the need to extend outwards, there is a case where the second unit road network data block corresponds to multiple Blocks. Please refer to FIG. 10a, which is another schematic diagram of determining the second unit road network data block provided by an embodiment of the present application. Figure 10a contains 4 road network data blocks (respectively road network data block 1, road network data block 2, road network data block 3 and road network data block 4), and unit road network data block 2 is the first unit road network Data block, when the data block coefficient is equal to 2, it can be determined according to the above method that the unit road network data blocks in area 80b except for unit road network data block 2 are all the second unit road network data blocks. The network data block belongs to 4 road network data blocks. In this case, the terminal device needs to find the road network data contained in the first unit road network data block and the second unit road network data block from the 4 road network data blocks in the database. The road network data contained in the network data block is used as the candidate point road network data.
步骤S304,若所述备选点路网数据为非空集合,则将所述原始备选点确定为候选点。Step S304: If the candidate point road network data is a non-empty set, determine the original candidate point as a candidate point.
具体的,若备选点路网数据为非空集合,也就是说,该备选点路网区域内存在真实道路(也就是说该备选点路网区域不是处于江河、山区、封闭管制区域),那么终端设备可以将该原始备选点作为候选点。Specifically, if the candidate point road network data is a non-empty set, that is to say, there are real roads in the candidate point road network area (that is, the candidate point road network area is not in a river, mountain area, or closed control area ), the terminal device can use the original candidate point as a candidate point.
请参见图10b,是本申请实施例提供的一种确定候选点的示意图。图10b包含12个原始备选点(分别为原始备选点A、...、原始备选点L),且点S为起始位置。图10b中若两个原始备选点之间存在路网数据连接,则用实线连接两个备选点;若两个原始备选点之间不存在路网数据连接,则用虚线连接两个备选点。从图10b可以看出,由 于原始备选点A、原始备选点B、原始备选点C以及原始备选点D处于湖泊区域,上述4个原始备选点对应的备选路网区域中都不存在路网数据,因此终端设备可以过滤掉原始备选点A、原始备选点B、原始备选点C以及原始备选点D;相对地,剩余的8个原始备选点(即原始备选点E、...、原始备选点L)对应的备选路网区域中都存在路网数据,进而终端设备可以将剩余的8个原始备选点都作为候选点。Refer to FIG. 10b, which is a schematic diagram of determining candidate points according to an embodiment of the present application. Figure 10b contains 12 original candidate points (respectively original candidate points A, ..., original candidate point L), and point S is the starting position. In Figure 10b, if there is a road network data connection between the two original candidate points, a solid line is used to connect the two candidate points; if there is no road network data connection between the two original candidate points, a dashed line is used to connect the two Alternative points. It can be seen from Figure 10b that since the original candidate point A, the original candidate point B, the original candidate point C, and the original candidate point D are in the lake area, the four original candidate points above are in the candidate road network area There is no road network data, so the terminal device can filter out the original candidate point A, the original candidate point B, the original candidate point C, and the original candidate point D; relatively, the remaining 8 original candidate points (ie The original candidate points E,..., and the original candidate points L) all have road network data in the candidate road network areas corresponding to them, and the terminal device can use all the remaining 8 original candidate points as candidate points.
步骤S305,根据所述路网数据集合,确定所述候选点与所述起始位置之间的路网路径距离。Step S305: Determine the road network path distance between the candidate point and the starting position according to the road network data set.
对筛选出来的候选点来说,终端设备可以调用路径规划接口,用于确定每个候选点与起始位置之间的路网路径距离,路网路径距离是指两点之间的真实道路距离(或者说是路径规划距离)。For the selected candidate points, the terminal device can call the path planning interface to determine the road network path distance between each candidate point and the starting position. The road network path distance refers to the real road distance between two points (Or the path planning distance).
路径规划接口可以基于路径规划中的Dijkstra算法、或者A*搜索算法确定候选点与起始位置之间的路网路径距离。上述两种算法均属于最短路径算法,Dijkstra算法精度更高,但计算量大,而A*搜索算法精度有所降低,但计算量小。下述以A*搜索算法为例,详细说明如何确定候选点与起始位置之间的路网路径距离。The path planning interface can determine the path distance of the road network between the candidate point and the starting position based on the Dijkstra algorithm in the path planning or the A* search algorithm. Both of the above two algorithms belong to the shortest path algorithm. Dijkstra's algorithm has higher accuracy but a large amount of calculation, while the accuracy of the A* search algorithm is reduced, but the amount of calculation is small. The following uses the A* search algorithm as an example to explain in detail how to determine the distance of the road network path between the candidate point and the starting position.
请参见图11a,是本申请实施例提供的一种确定路网路径距离的示意图。为了确定顶点V0到顶点V5的路网路径距离(也是最短距离),首先生成open列表以及close列表,此时两个列表均为空集合。终端设备首先将(V0,0)加入至open列表中,此时open列表中包含(V0,0),close列表为空,(V0,0)中第一个元素表示顶点,第二元素表示该顶点与起始顶点V0之间的距离。Refer to FIG. 11a, which is a schematic diagram of determining the path distance of a road network according to an embodiment of the present application. In order to determine the road network path distance (also the shortest distance) from vertex V0 to vertex V5, the open list and the close list are first generated, and both lists are empty sets at this time. The terminal device first adds (V0, 0) to the open list. At this time, the open list contains (V0, 0), and the close list is empty. The first element in (V0, 0) represents the vertex, and the second element represents the The distance between the vertex and the starting vertex V0.
终端设备将与V0相邻的顶点加入open列表中,并将(V0,0)加入close列表中,此时,open列表中包含:(V2,10)、(V4,30)、(V5,100),close列表包含(V0,0)。The terminal device adds the vertex adjacent to V0 to the open list, and adds (V0, 0) to the close list. At this time, the open list contains: (V2, 10), (V4, 30), (V5, 100) ), the close list contains (V0, 0).
从open列表中选择最小的V2加入close列表中,终端设备将与V2相邻的顶点加入open列表中,并调整各顶点到V0的距离,此时,open列表中包含:(V1,15)、(V4,30)、(V3,60)、(V5,100),close列表包含(V0,0)、(V2,10)。Select the smallest V2 from the open list and add it to the close list. The terminal device adds the vertices adjacent to V2 to the open list and adjusts the distance from each vertex to V0. At this time, the open list contains: (V1, 15), (V4, 30), (V3, 60), (V5, 100), the close list contains (V0, 0), (V2, 10).
由于V1已经是边界顶点,因此将V1从open列表中删除。再从open列表中选择最小的V4加入close列表中,终端设备将与V4相邻的顶点加入open列表中,并调整各顶点到V0的距离,此时,open列表中包含:(V3,50)、(V5,90)、(V5,100),close列表包含(V0,0)、(V2,10)、(V4,30)。Since V1 is already a boundary vertex, V1 is deleted from the open list. Then select the smallest V4 from the open list and add it to the close list. The terminal device adds the vertices adjacent to V4 to the open list and adjusts the distance from each vertex to V0. At this time, the open list contains: (V3, 50) , (V5, 90), (V5, 100), the close list contains (V0, 0), (V2, 10), (V4, 30).
从open列表中选择最小的V3加入close列表中,终端设备将与V3相邻的顶点加入open列表中,并调整各顶点到V0的距离,此时,open列表中包含:(V5,60),close列表包含(V0,0)、(V2,10)、(V4,30)、(V3,50)。Select the smallest V3 from the open list and add it to the close list. The terminal device adds the vertices adjacent to V3 to the open list and adjusts the distance from each vertex to V0. At this time, the open list contains: (V5, 60), The close list contains (V0, 0), (V2, 10), (V4, 30), (V3, 50).
从open列表中选择V5加入close列表中,此时,open列表为空集,close列表包含(V0,0)、(V2,10)、(V4,30)、(V3,50)、(V5,60)。Select V5 from the open list and add it to the close list. At this time, the open list is an empty set, and the close list contains (V0, 0), (V2, 10), (V4, 30), (V3, 50), (V5, 60).
至此,确定顶点V0到顶点V5的路网路径距离为60,且对应的路径为 V0→V2→V4→V3→V5。So far, it is determined that the road network path distance from vertex V0 to vertex V5 is 60, and the corresponding path is V0→V2→V4→V3→V5.
无论是A*搜索算法,或者是Dijkstra算法,均是按照拓扑图来确定两个点之间的最短路径距离(路网路径距离),对路网数据集合来说,两条道路的交点对应拓扑图的顶点,道路之间的距离对应拓扑图中两个顶点之间的权重,按照这个方式,可以由路网数据集合生成对应的拓扑图,进而基于路径规划算法确定路网路径距离。Whether it is the A* search algorithm or the Dijkstra algorithm, the shortest path distance between two points (road network path distance) is determined according to the topology map. For the road network data set, the intersection of the two roads corresponds to the topology The vertices of the graph and the distance between roads correspond to the weights between two vertices in the topological graph. In this way, the corresponding topological graph can be generated from the road network data collection, and the road network path distance can be determined based on the path planning algorithm.
步骤S306,若所述候选点与所述起始位置之间的路网路径距离小于或等于所述剩余里程参数,则将所述候选点确定为所述可达备选点。Step S306: If the road network path distance between the candidate point and the starting position is less than or equal to the remaining mileage parameter, determine the candidate point as the reachable candidate point.
将那些与起始位置之间的路网路径距离小于或者等于剩余里程参数的候选点作为可达备选点;对应地,过滤掉那些与起始位置之间的路网路径距离大于剩余里程参数的候选点。Take those candidate points whose road network path distance from the starting position is less than or equal to the remaining mileage parameter as reachable candidate points; correspondingly, filter out those whose road network path distance from the starting position is greater than the remaining mileage parameter Candidate points.
步骤S307,将所述可达备选点确定为目标点,在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域。Step S307: Determine the reachable candidate point as a target point, and connect the multiple target points in the map display interface to obtain the target cruising area.
其中,步骤S307的具体过程可以参见上述图3b对应实施例中的步骤S203-步骤S204的描述,此处就不在赘述。For the specific process of step S307, please refer to the description of step S203 to step S204 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
步骤S308,在所述地图显示界面中展示所述目标续航区域。Step S308: Display the target battery life area on the map display interface.
其中,步骤S308的具体过程可以参见上述图3a对应实施例中的步骤S104的描述,此处就不在赘述。For the specific process of step S308, reference may be made to the description of step S104 in the corresponding embodiment in FIG. 3a, which is not repeated here.
请参见图11b,是本申请实施例提供的一种目标续航区域的示意图。从图11b可以看出,交通工具的起始位置非常靠近大海区域,因此终端设备在从多个原始备选点中选择交通工具可达的可达备选点时,那些处于大海区域的原始备选点会被判定为是交通工具不可达的点,因此处于大海区域的原始备选点就会被过滤掉,保留下来的那些交通工具可达的原始备选点就可以被作为可达备选点。进一步地,确定了可达备选点后,对每个单位原始续航区域来说,终端设备可以将距离起始位置最远的可达备选点作为目标点。最后,终端设备按照顺时针顺序或者逆时针顺序,连接地图显示界面上的所有目标点,得到的区域即是目标续航区域。Please refer to FIG. 11b, which is a schematic diagram of a target endurance area provided by an embodiment of the present application. It can be seen from Figure 11b that the starting position of the vehicle is very close to the sea area, so when the terminal device selects the reachable candidate points reachable by the vehicle from the multiple original candidate points, those original equipment in the sea area The selected point will be judged as a point unreachable by the vehicle, so the original candidate points in the sea area will be filtered out, and the original candidate points that are retained by the vehicle can be used as reachable candidates point. Further, after determining the reachable candidate point, for each unit's original cruising area, the terminal device may use the reachable candidate point farthest from the starting position as the target point. Finally, the terminal device connects all target points on the map display interface in a clockwise or counterclockwise order, and the obtained area is the target endurance area.
上述可知,相比根据剩余里程数据以及当前的道路情况人工估计目标续航区域,通过在地图界面上自动化地确定目标续航区域,可以更加直观地向用户展示汽车的实际可到达范围,进而可以提高后续行程规划的效率;进一步地,本申请实施例所确定的目标续航区域是由距离起点最远且可达的多个点构成,因此该目标续航区域具有高精度。It can be seen from the above that, compared to manually estimating the target endurance area based on the remaining mileage data and current road conditions, by automatically determining the target endurance area on the map interface, the actual reachable range of the car can be more intuitively displayed to the user, thereby improving the follow-up The efficiency of itinerary planning; further, the target endurance area determined by the embodiment of the present application is composed of multiple points that are farthest from the starting point and reachable, so the target endurance area has high accuracy.
进一步的,请参见图12,是本申请实施例提供的一种图像处理装置的结构示意图。如图12所示,图像处理装置1可以应用于上述图3a-图11b对应实施例中的终端设备,图像处理装置1可以包括:第一获取模块11、第二获取模块12、目标区域确定模块13。Further, please refer to FIG. 12, which is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application. As shown in Fig. 12, the image processing apparatus 1 can be applied to the terminal equipment in the corresponding embodiment of Figs. 3a-11b. The image processing apparatus 1 can include: a first acquisition module 11, a second acquisition module 12, and a target area determination module 13.
第一获取模块11,用于获取交通工具的剩余里程参数;The first obtaining module 11 is used to obtain the remaining mileage parameters of the vehicle;
第二获取模块12,用于获取所述交通工具在地图显示界面中的起始位置;The second acquiring module 12 is configured to acquire the starting position of the vehicle in the map display interface;
目标区域确定模块13,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域;The target area determining module 13 is configured to determine a target cruising area in the map display interface according to the starting position and the remaining mileage parameter;
所述第一获取模块11,还用于在所述地图显示界面中展示所述目标续航区域。The first obtaining module 11 is also used to display the target range of travel on the map display interface.
其中,第一获取模块11、第二获取模块12、目标区域确定模块13的具体功能实现方式可以参见上述图3a对应实施例中的步骤S101-步骤S104,这里不再进行赘述。Among them, the specific functional implementation of the first acquisition module 11, the second acquisition module 12, and the target area determination module 13 can be referred to step S101 to step S104 in the corresponding embodiment of FIG. 3a, which will not be repeated here.
请参见图12,目标区域确定模块13可以包括:目标点确定单元131、连接单元132。Referring to FIG. 12, the target area determining module 13 may include: a target point determining unit 131 and a connecting unit 132.
目标点确定单元131,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定多个目标点;The target point determining unit 131 is configured to determine multiple target points in the map display interface according to the starting position and the remaining mileage parameter;
连接单元132,用于在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域。The connecting unit 132 is configured to connect the multiple target points in the map display interface to obtain the target endurance area.
其中,目标点确定单元131、连接单元132的具体功能实现方式可以参见上述图3a对应实施例中的步骤S103,这里不再进行赘述。For specific functional implementations of the target point determining unit 131 and the connecting unit 132, refer to step S103 in the corresponding embodiment of FIG. 3a, and details are not described herein again.
请参见图12,目标点确定单元131可以包括:原始点确定子单元1311、选择子单元1312、目标点确定子单元1313。Referring to FIG. 12, the target point determination unit 131 may include: an original point determination subunit 1311, a selection subunit 1312, and a target point determination subunit 1313.
原始点确定子单元1311,用于根据所述起始位置和所述剩余里程参数确定多个原始备选点;An original point determining subunit 1311, configured to determine multiple original candidate points according to the starting position and the remaining mileage parameter;
选择子单元1312,用于从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为可达备选点;The selection subunit 1312 is configured to select an original candidate point reachable by the vehicle from the multiple original candidate points as the reachable candidate point;
目标点确定子单元1313,用于将所述可达备选点确定为目标点。The target point determining subunit 1313 is configured to determine the reachable candidate point as a target point.
其中,原始点确定子单元1311、选择子单元1312、目标点确定子单元1313的具体功能实现方式可以参见上述图3b对应实施例中的步骤S201-步骤S203,这里不再进行赘述。Among them, the specific functional implementation of the original point determining subunit 1311, the selecting subunit 1312, and the target point determining subunit 1313 can be referred to step S201 to step S203 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
请参见图12,原始点确定子单元1311可以包括:区域确定子单元13111、第一划分子单元13112。Referring to FIG. 12, the original point determining subunit 1311 may include: an area determining subunit 13111 and a first dividing subunit 13112.
区域确定子单元13111,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定原始续航区域;An area determination subunit 13111, configured to determine an original cruising area in the map display interface according to the starting position and the remaining mileage parameter;
第一划分子单元13112,用于将所述原始续航区域划分为至少一个单位原始续航区域,并在每个单位原始续航区域内分别确定原始备选点。The first division subunit 13112 is configured to divide the original battery life area into at least one unit original battery life area, and determine the original candidate points in each unit original battery life area.
其中,区域确定子单元13111、第一划分子单元13112的具体功能实现方式可以参见上述图3b对应实施例中的步骤S202,这里不再进行赘述。For specific functional implementations of the area determining sub-unit 13111 and the first dividing sub-unit 13112, refer to step S202 in the corresponding embodiment of FIG. 3b, and details are not described herein again.
请参见图12,目标点确定子单元1313可以包括:第一确定子单元13131、第二确 定子单元13132。Referring to Fig. 12, the target point determining subunit 1313 may include: a first determining subunit 13131 and a second determining subunit 13132.
第一确定子单元13131,用于从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点;The first determining subunit 13131 is configured to select the reachable candidate point with the largest distance from the starting position from the reachable candidate points in the original cruising area of each unit as the candidate point corresponding to the original cruising area of the unit The target point to be determined;
第二确定子单元13132,用于将所有单位原始续航区域对应的待确定目标点作为所述目标点。The second determining subunit 13132 is configured to use the target points to be determined corresponding to the original range of all units as the target points.
其中,第一确定子单元13131、第二确定子单元13132的具体功能实现方式可以参见上述图3b对应实施例中的步骤S203,这里不再进行赘述。For the specific functional implementation of the first determining sub-unit 13131 and the second determining sub-unit 13132, reference may be made to step S203 in the embodiment corresponding to FIG. 3b, which will not be repeated here.
请参见图12,选择子单元1312可以包括:第一获取子单元13121、第一距离确定子单元13122;Referring to FIG. 12, the selecting subunit 1312 may include: a first obtaining subunit 13121 and a first distance determining subunit 13122;
第一获取子单元13121,用于确定每个原始备选点的备选点路网区域;The first obtaining subunit 13121 is used to determine the candidate point road network area of each original candidate point;
第一距离确定子单元13122,用于从路网数据集合中,获取所述备选点路网区域内的路网数据,作为备选点路网数据;The first distance determining subunit 13122 is configured to obtain the road network data in the candidate point road network area from the road network data set as the candidate point road network data;
所述第一距离确定子单元13122,还用于若所述备选点路网数据为非空集合,则将所述原始备选点确定为候选点;The first distance determining subunit 13122 is further configured to determine the original candidate point as a candidate point if the candidate point road network data is a non-empty set;
所述第一距离确定子单元13122,还用于根据所述路网数据集合,确定所述候选点与所述起始位置之间的路网路径距离;The first distance determining subunit 13122 is further configured to determine the road network path distance between the candidate point and the starting position according to the road network data set;
所述第一距离确定子单元13122,还用于若所述候选点与所述起始位置之间的路网路径距离小于或等于所述剩余里程参数,则将所述候选点确定为所述可达备选点。The first distance determining subunit 13122 is further configured to determine the candidate point as the candidate point if the road network path distance between the candidate point and the starting position is less than or equal to the remaining mileage parameter Can reach alternative points.
其中,第一获取子单元13121、第一距离确定子单元13122的具体功能实现方式可以参见上述图7对应实施例中的步骤S303-步骤S306,这里不再进行赘述。For specific functional implementations of the first obtaining subunit 13121 and the first distance determining subunit 13122, reference may be made to step S303 to step S306 in the embodiment corresponding to FIG. 7 above, and details are not described herein again.
请参见图12,区域确定子单元13111可以包括:第二获取子单元131111、圆周确定子单元131112。Referring to FIG. 12, the area determining sub-unit 13111 may include: a second obtaining sub-unit 131111 and a circumference determining sub-unit 131112.
第二获取子单元131111,用于获取与所述地图显示界面对应的地图比例尺系数;The second obtaining subunit 131111 is configured to obtain a map scale coefficient corresponding to the map display interface;
所述第二获取子单元131111,还用于根据所述剩余里程参数与所述地图比例尺系数,确定里程半径系数;The second obtaining subunit 131111 is further configured to determine the mileage radius coefficient according to the remaining mileage parameter and the map scale coefficient;
圆周确定子单元131112,用于在所述地图显示界面中,以所述起始位置为圆心,所述里程半径系数为半径,生成里程圆周,将所述里程圆周在所述地图显示界面中对应的区域确定为所述原始续航区域。The circle determination subunit 131112 is used to generate a mileage circle in the map display interface, using the starting position as the center of the circle and the mileage radius coefficient as the radius, and corresponding the mileage circle in the map display interface The area of is determined as the original battery life area.
其中,第二获取子单元131111、圆周确定子单元131112的具体功能实现方式可以参见上述图3b对应实施例中的步骤S201,这里不再进行赘述。For the specific functional implementation of the second obtaining subunit 131111 and the circumference determining subunit 131112, refer to step S201 in the embodiment corresponding to FIG. 3b, and will not be repeated here.
请参见图12,第一划分子单元13112可以包括:第三获取子单元131121、第二划分子单元131122。Referring to FIG. 12, the first dividing subunit 13112 may include: a third obtaining subunit 131121 and a second dividing subunit 131122.
第三获取子单元131121,用于获取极角间隔系数,根据所述极角间隔系数将所述 原始续航区域划分为所述至少一个单位原始续航区域;The third obtaining subunit 131121 is configured to obtain a polar angle interval coefficient, and divide the original endurance area into the at least one unit original endurance area according to the polar angle interval coefficient;
第二划分子单元131122,用于将每个单位原始续航区域划分为至少一个单位原始续航子区域;每个单位原始续航子区域的区域边长与第一长度阈值之间的差值小于差异阈值;The second division subunit 131122 is used to divide each unit original battery life area into at least one unit original battery life sub-areas; the difference between the area side length of each unit original battery life sub-areas and the first length threshold is less than the difference threshold ;
所述第二划分子单元131122,还用于在所述地图显示界面中,将所述每个单位原始续航子区域的顶点作为所述原始备选点。The second division subunit 131122 is further configured to use the vertex of the original battery life subregion of each unit as the original candidate point in the map display interface.
其中,第三获取子单元131121、第二划分子单元131122的具体功能实现方式可以参见上述图3b对应实施例中的步骤S201,这里不再进行赘述。For the specific functional implementation of the third acquiring subunit 131121 and the second dividing subunit 131122, refer to step S201 in the embodiment corresponding to FIG. 3b, and details are not described herein again.
请参见图12,第一获取子单元13121可以包括:第四获取子单元131211、查找子单元131212。Referring to FIG. 12, the first obtaining subunit 13121 may include: a fourth obtaining subunit 131211 and a searching subunit 131212.
第四获取子单元131211,用于获取所述原始备选点的经纬度信息,从多个路网数据块中查找与所述经纬度信息对应的目标路网数据块;所述路网数据集合对应所述多个路网数据块;每个路网数据块包括多个单位路网数据块;The fourth acquisition subunit 131211 is used to acquire the longitude and latitude information of the original candidate point, and search for the target road network data block corresponding to the longitude and latitude information from multiple road network data blocks; the road network data set corresponds to the Multiple road network data blocks; each road network data block includes multiple unit road network data blocks;
查找子单元131212,用于从所述目标路网数据块对应的多个单位路网数据块中,查找与所述经纬度信息对应的第一单位路网数据块;The searching subunit 131212 is configured to search for the first unit road network data block corresponding to the longitude and latitude information from the multiple unit road network data blocks corresponding to the target road network data block;
所述第四获取子单元131211,还用于获取第二长度阈值,根据所述第二长度阈值确定与所述第一单位路网数据块相邻的第二单位路网数据块;The fourth obtaining subunit 131211 is further configured to obtain a second length threshold, and determine a second unit road network data block adjacent to the first unit road network data block according to the second length threshold;
所述第四获取子单元131211,还用于将与所述第一单位路网数据块对应的路网区域,以及与所述第二单位路网数据块对应的路网区域作为所述原始备选点的备选点路网区域。The fourth acquiring subunit 131211 is further configured to use the road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block as the original backup The optional point road network area of the selected point.
其中,第四获取子单元131211、查找子单元131212的具体功能实现方式可以参见上述图7对应实施例中的步骤S303,这里不再进行赘述。For the specific functional implementation of the fourth acquiring subunit 131211 and the searching subunit 131212, refer to step S303 in the embodiment corresponding to FIG. 7 above, and details are not described herein again.
请参见图12,第一确定子单元13131可以包括:第二距离确定子单元131311、第三确定子单元131312。Referring to FIG. 12, the first determining sub-unit 13131 may include: a second distance determining sub-unit 131311 and a third determining sub-unit 131312.
第二距离确定子单元131311,用于确定所述单位原始续航区域内的可达备选点与所述起始位置在所述地图显示界面中的地图距离;The second distance determining subunit 131311 is configured to determine the map distance between the reachable candidate point in the original range of the unit and the starting position in the map display interface;
第三确定子单元131312,用于将具有最大地图距离的可达备选点作为与所述单位原始续航区域对应的待确定目标点。The third determining subunit 131312 is configured to use the reachable candidate point with the largest map distance as the target point to be determined corresponding to the original range of the unit.
其中,第二距离确定子单元131311、第三确定子单元131312的具体功能实现方式可以参见上述图3b对应实施例中的步骤S203,这里不再进行赘述。For the specific functional implementation of the second distance determining sub-unit 131311 and the third determining sub-unit 131312, refer to step S203 in the embodiment corresponding to FIG. 3b, which will not be repeated here.
请参见图12,第一确定子单元13131还可以包括:第三距离确定子单元131313、第四确定子单元131314。Referring to FIG. 12, the first determining subunit 13131 may further include: a third distance determining subunit 131313 and a fourth determining subunit 131314.
第三距离确定子单元131313,用于确定所述单位原始续航区域内的可达备选点与所述起始位置之间的路网路径距离,作为候选路网路径距离;The third distance determining subunit 131313 is configured to determine the road network path distance between the reachable candidate point in the original range of the unit and the starting position as a candidate road network path distance;
第四确定子单元131314,用于将具有最大候选路网路径距离的可达备选点作为与所述单位原始续航区域对应的待确定目标点。The fourth determining subunit 131314 is configured to use the reachable candidate point with the largest candidate road network path distance as the target point to be determined corresponding to the unit's original cruising area.
其中,第三距离确定子单元131313、第四确定子单元131314的具体功能实现方式可以参见上述图7对应实施例中的步骤S303,这里不再进行赘述。For specific functional implementations of the third distance determining sub-unit 131313 and the fourth determining sub-unit 131314, refer to step S303 in the corresponding embodiment of FIG. 7 above, and details are not described herein again.
请参见图12,连接单元132可以包括:连接子单元1321、删除子单元1322。Referring to FIG. 12, the connection unit 132 may include: a connection subunit 1321, a deletion subunit 1322.
连接子单元1321,用于按照顺时针顺序或者逆时针顺序连接每个所述目标点,得到候选封闭圈;The connecting subunit 1321 is used to connect each of the target points in a clockwise order or a counterclockwise order to obtain a candidate closed circle;
删除子单元1322,用于从所述候选封闭圈中删除满足位置突变条件的目标点;The deletion subunit 1322 is configured to delete the target point that meets the position mutation condition from the candidate closed circle;
所述连接子单元1321,还用于在所述地图显示界面中,按照所述顺时针顺序或者所述逆时针顺序连接剩余的目标点,得到所述目标续航区域。The connection subunit 1321 is further configured to connect the remaining target points in the clockwise sequence or the counterclockwise sequence in the map display interface to obtain the target cruising area.
其中,连接子单元1321、删除子单元1322的具体功能实现方式可以参见上述图3b对应实施例中的步骤S204,这里不再进行赘述。For the specific functional implementation of the connection subunit 1321 and the deletion subunit 1322, please refer to step S204 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
请参见图12,目标点包括第一可达点、第二可达点和第三可达点;在所述候选封闭圈中,所述第二可达点与所述第一可达点相邻,且所述第二可达点与所述第三可达点相邻;Referring to Figure 12, the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point is relative to the first reachable point. Adjacent, and the second reachable point is adjacent to the third reachable point;
图像处理装置1可以包括:第一获取模块11、第二获取模块12、目标区域确定模块13;还可以包括:第一连接模块14、夹角确定模块15。The image processing apparatus 1 may include: a first acquisition module 11, a second acquisition module 12, and a target area determination module 13; and may also include: a first connection module 14 and an included angle determination module 15.
第一连接模块14,用于连接所述第一可达点与所述第二可达点,得到第一连接线;The first connection module 14 is configured to connect the first reachable point and the second reachable point to obtain a first connection line;
所述第一连接模块14,还用于连接所述第二可达点与所述第三可达点,得到第二连接线;The first connection module 14 is also used to connect the second reachable point and the third reachable point to obtain a second connection line;
夹角确定模块15,用于根据所述第一连接线、所述第二连接线确定连接线夹角,若所述连接线夹角小于夹角阈值,则将所述第二可达点确定为满足所述位置突变条件的目标点。The included angle determination module 15 is configured to determine the included angle of the connecting line according to the first connecting line and the second connecting line, and if the included angle of the connecting line is less than the included angle threshold, determine the second reachable point It is the target point that meets the mutation condition of the position.
其中,第一连接模块14、夹角确定模块15的具体功能实现方式可以参见上述图3b对应实施例中的步骤S204,这里不再进行赘述。The specific functional implementation of the first connection module 14 and the included angle determination module 15 can be found in step S204 in the corresponding embodiment of FIG. 3b, which will not be repeated here.
请参见图12,目标点包括第一可达点、第二可达点和第三可达点;在所述候选封闭圈中,所述第二可达点与所述第一可达点相邻,且所述第二可达点与所述第三可达点相邻;Referring to Figure 12, the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point is relative to the first reachable point. Adjacent, and the second reachable point is adjacent to the third reachable point;
图像处理装置1可以包括:第一获取模块11、第二获取模块12、目标区域确定模块13、第一连接模块14、夹角确定模块15,还可以包括:第二连接模块16、系数确定模块17。The image processing apparatus 1 may include: a first acquisition module 11, a second acquisition module 12, a target area determination module 13, a first connection module 14, an included angle determination module 15, and may also include: a second connection module 16, a coefficient determination module 17.
第二连接模块16,用于连接所述第一可达点与所述第三可达点,得到第三连接线;The second connection module 16 is configured to connect the first reachable point and the third reachable point to obtain a third connecting line;
系数确定模块17,用于确定所述第二可达点与所述第三连接线之间的连接线距离,根据所述连接线距离与所述第三连接线的长度生成连接线比例系数;The coefficient determining module 17 is configured to determine the connection line distance between the second reachable point and the third connection line, and generate a connection line scale coefficient according to the connection line distance and the length of the third connection line;
所述系数确定模块16,还用于若所述连接线比例系数大于比例系数阈值,则将所述第二可达点确定为满足所述位置突变条件的目标点。The coefficient determining module 16 is further configured to determine the second reachable point as a target point that satisfies the location mutation condition if the scale factor of the connecting line is greater than the scale factor threshold.
其中,第二连接模块16、系数确定模块17的具体功能实现方式可以参见上述图3b对应实施例中的步骤S204,这里不再进行赘述。The specific functional implementation of the second connection module 16 and the coefficient determination module 17 can be found in step S204 in the corresponding embodiment of FIG. 3b, and details are not described herein again.
上述可知,相比根据剩余里程数据以及当前的道路情况人工估计目标续航区域,通过在地图界面上自动化地确定目标续航区域,可以更加直观地向用户展示汽车的实际可到达范围,进而可以提高后续行程规划的效率;进一步地,本申请实施例所确定的目标续航区域是由距离起点最远且可达的多个点构成,因此该目标续航区域具有高精度。It can be seen from the above that, compared to manually estimating the target endurance area based on the remaining mileage data and the current road conditions, by automatically determining the target endurance area on the map interface, the actual reachable range of the car can be more intuitively displayed to the user, which can improve the follow-up The efficiency of itinerary planning; further, the target endurance area determined by the embodiment of the present application is composed of multiple points that are farthest from the starting point and reachable, so the target endurance area has high accuracy.
进一步地,请参见图13,是本申请实施例提供的一种电子设备的结构示意图。图13中所示的电子设备1000可以为上述图3a-图11b对应实施例中的终端设备。如图13所示,所述电子设备1000可以包括:用户接口1002、处理器1004、编码器1006以及存储器1008。信号接收器1016用于经由蜂窝接口1010、WIFI接口1012、...、或NFC接口1014接收或者发送数据。编码器1006将接收到的数据编码为计算机处理的数据格式。存储器1008中存储有计算机程序,处理器1004被设置为通过计算机程序执行上述任一项方法实施例中的步骤。存储器1008可包括易失性存储器(例如,动态随机存取存储器DRAM),还可以包括非易失性存储器(例如,一次性可编程只读存储器OTPROM)。在一些实例中,存储器1008可进一步包括相对于处理器1004远程设置的存储器,这些远程存储器可以通过网络连接至电子设备1000。用户接口1002可以包括:键盘1018和显示器1020。Further, please refer to FIG. 13, which is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 1000 shown in FIG. 13 may be a terminal device in the embodiment corresponding to FIG. 3a to FIG. 11b described above. As shown in FIG. 13, the electronic device 1000 may include: a user interface 1002, a processor 1004, an encoder 1006, and a memory 1008. The signal receiver 1016 is used to receive or send data via the cellular interface 1010, the WIFI interface 1012,..., or the NFC interface 1014. The encoder 1006 encodes the received data into a data format processed by the computer. A computer program is stored in the memory 1008, and the processor 1004 is configured to execute the steps in any one of the foregoing method embodiments through the computer program. The memory 1008 may include a volatile memory (for example, a dynamic random access memory DRAM), and may also include a non-volatile memory (for example, a one-time programmable read-only memory OTPROM). In some examples, the memory 1008 may further include a memory remotely provided with respect to the processor 1004, and these remote memories may be connected to the electronic device 1000 via a network. The user interface 1002 may include a keyboard 1018 and a display 1020.
在图13所示的电子设备1000中,处理器1004可以用于调用存储器1008中存储计算机程序,以实现:In the electronic device 1000 shown in FIG. 13, the processor 1004 may be used to call a computer program stored in the memory 1008 to implement:
获取交通工具的剩余里程参数;Obtain the remaining mileage parameters of the vehicle;
获取所述交通工具在地图显示界面中的起始位置;Acquiring the starting position of the vehicle in the map display interface;
根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域;Determining a target cruising area in the map display interface according to the starting position and the remaining mileage parameter;
在所述地图显示界面中展示所述目标续航区域。The target battery life area is displayed in the map display interface.
在一个实施例中,所述处理器1004在执行根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域时,具体执行以下步骤:In one embodiment, when the processor 1004 executes the determination of the target cruising area in the map display interface according to the starting position and the remaining mileage parameter, it specifically executes the following steps:
根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定多个目标点;Determining multiple target points in the map display interface according to the starting position and the remaining mileage parameter;
在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域。In the map display interface, the multiple target points are connected to obtain the target endurance area.
在一个实施例中,所述处理器1004在执行根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定多个目标点时,具体执行以下步骤:In one embodiment, when the processor 1004 executes the determination of multiple target points in the map display interface according to the starting position and the remaining mileage parameter, it specifically executes the following steps:
根据所述起始位置和所述剩余里程参数确定多个原始备选点;Determine multiple original candidate points according to the starting position and the remaining mileage parameter;
从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为可达备选点;Selecting an original candidate point reachable by the vehicle from the multiple original candidate points as the reachable candidate point;
将所述可达备选点确定为目标点。The reachable candidate point is determined as the target point.
在一个实施例中,所述处理器1004在执行根据所述起始位置和所述剩余里程参数确定多个原始备选点时,具体执行以下步骤:In one embodiment, when the processor 1004 executes the determination of multiple original candidate points according to the starting position and the remaining mileage parameter, it specifically executes the following steps:
根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定原始续航区域;Determine the original cruising area in the map display interface according to the starting position and the remaining mileage parameter;
将所述原始续航区域划分为至少一个单位原始续航区域,并在每个单位原始续航区域内分别确定原始备选点。The original battery life area is divided into at least one unit original battery life area, and the original candidate points are respectively determined in each unit original battery life area.
在一个实施例中,所述处理器1004在执行将所述可达备选点确定为目标点时,具体执行以下步骤:In an embodiment, the processor 1004 specifically executes the following steps when determining the reachable candidate point as the target point:
从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点;From the reachable candidate points in the original cruising area of each unit, select the reachable candidate point with the largest distance from the starting position as the target point to be determined corresponding to the original cruising area of the unit;
将所有单位原始续航区域对应的待确定目标点作为所述目标点。The target point to be determined corresponding to the original cruising area of all units is taken as the target point.
在一个实施例中,所述处理器1004在执行从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为可达备选点时,具体执行以下步骤:In one embodiment, when the processor 1004 executes selecting the original candidate points reachable by the vehicle from the plurality of original candidate points as the reachable candidate points, it specifically executes the following steps:
确定每个原始备选点的备选点路网区域,并从路网数据集合中,获取所述备选点路网区域内的路网数据,作为备选点路网数据;Determine the candidate point road network area of each original candidate point, and obtain the road network data in the candidate point road network area from the road network data set as the candidate point road network data;
若所述备选点路网数据为非空集合,则将所述原始备选点确定为候选点;If the candidate point road network data is a non-empty set, determining the original candidate point as a candidate point;
根据所述路网数据集合,确定所述候选点与所述起始位置之间的路网路径距离;Determine the road network path distance between the candidate point and the starting position according to the road network data set;
若所述候选点与所述起始位置之间的路网路径距离小于或等于所述剩余里程参数,则将所述候选点确定为所述可达备选点。If the road network path distance between the candidate point and the starting position is less than or equal to the remaining mileage parameter, the candidate point is determined as the reachable candidate point.
在一个实施例中,所述处理器1004在执行根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定原始续航区域时,具体执行以下步骤:In an embodiment, the processor 1004 specifically executes the following steps when executing the determination of the original cruising area in the map display interface according to the starting position and the remaining mileage parameter:
获取与所述地图显示界面对应的地图比例尺系数;Acquiring a map scale factor corresponding to the map display interface;
根据所述剩余里程参数与所述地图比例尺系数,确定里程半径系数;Determine the mileage radius coefficient according to the remaining mileage parameter and the map scale coefficient;
在所述地图显示界面中,以所述起始位置为圆心,所述里程半径系数为半径,生成里程圆周,将所述里程圆周在所述地图显示界面中对应的区域确定为所述原始续航区域。In the map display interface, taking the starting position as the center of the circle, and the mileage radius coefficient as the radius, generate a mileage circle, and determine the area corresponding to the mileage circle in the map display interface as the original battery life area.
在一个实施例中,所述处理器1004在执行将所述原始续航区域划分为至少一个单位原始续航区域,并在每个单位原始续航区域内分别确定原始备选点时,具体执行以下步骤:In one embodiment, when the processor 1004 executes the division of the original battery life area into at least one unit original battery life area, and respectively determines the original candidate points in each unit original battery life area, specifically executes the following steps:
获取极角间隔系数,根据所述极角间隔系数将所述原始续航区域划分为所述至少一个单位原始续航区域;Acquiring a polar angle interval coefficient, and dividing the original endurance area into the at least one unit original endurance area according to the polar angle interval coefficient;
将每个单位原始续航区域划分为至少一个单位原始续航子区域;每个单位原始续 航子区域的区域边长与第一长度阈值之间的差值小于差异阈值;Divide each unit's original battery life area into at least one unit original battery life sub-areas; the difference between the area side length of each unit original battery life sub-area and the first length threshold is less than the difference threshold;
在所述地图显示界面中,将所述每个单位原始续航子区域的顶点作为所述原始备选点。In the map display interface, the vertex of the original battery life sub-region of each unit is used as the original candidate point.
在一个实施例中,所述处理器1004在执行确定每个原始备选点的备选点路网区域时,具体执行以下步骤:In an embodiment, the processor 1004 specifically executes the following steps when determining the candidate point road network area of each original candidate point:
获取所述原始备选点的经纬度信息,从多个路网数据块中查找与所述经纬度信息对应的目标路网数据块;所述路网数据集合对应所述多个路网数据块;每个路网数据块包括多个单位路网数据块;Obtain the longitude and latitude information of the original candidate point, and search for the target road network data block corresponding to the longitude and latitude information from multiple road network data blocks; the road network data set corresponds to the multiple road network data blocks; Each road network data block includes multiple unit road network data blocks;
从所述目标路网数据块对应的多个单位路网数据块中,查找与所述经纬度信息对应的第一单位路网数据块;Searching for the first unit road network data block corresponding to the latitude and longitude information from the multiple unit road network data blocks corresponding to the target road network data block;
获取第二长度阈值,根据所述第二长度阈值确定与所述第一单位路网数据块相邻的第二单位路网数据块;Acquiring a second length threshold, and determining a second unit road network data block adjacent to the first unit road network data block according to the second length threshold;
将与所述第一单位路网数据块对应的路网区域,以及与所述第二单位路网数据块对应的路网区域作为所述原始备选点的备选点路网区域。The road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block are used as the candidate point road network area of the original candidate point.
在一个实施例中,所述处理器1004在执行从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点时,具体执行以下步骤:In one embodiment, the processor 1004 selects the reachable candidate point with the largest distance from the starting position from the reachable candidate points in the original range of each unit as the When the target point to be determined corresponding to the original battery life area, perform the following steps:
确定所述单位原始续航区域内的可达备选点与所述起始位置在所述地图显示界面中的地图距离;Determining the map distance between the reachable candidate point in the original battery life area of the unit and the starting position in the map display interface;
将具有最大地图距离的可达备选点作为与所述单位原始续航区域对应的待确定目标点。The reachable candidate point with the largest map distance is taken as the target point to be determined corresponding to the original range of the unit.
在一个实施例中,所述处理器1004在执行从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点时,具体执行以下步骤:In one embodiment, the processor 1004 selects the reachable candidate point with the largest distance from the starting position from the reachable candidate points in the original range of each unit as the When the target point to be determined corresponding to the original battery life area, perform the following steps:
确定所述单位原始续航区域内的可达备选点与所述起始位置之间的路网路径距离,作为候选路网路径距离;Determine the road network path distance between the reachable candidate point in the original endurance area of the unit and the starting position as a candidate road network path distance;
将具有最大候选路网路径距离的可达备选点作为与所述单位原始续航区域对应的待确定目标点。The reachable candidate point with the largest candidate road network path distance is taken as the target point to be determined corresponding to the unit original range.
在一个实施例中,所述处理器1004在执行在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域时,具体执行以下步骤:In one embodiment, when the processor 1004 executes in the map display interface to connect the multiple target points to obtain the target endurance area, it specifically executes the following steps:
按照顺时针顺序或者逆时针顺序连接每个所述目标点,得到候选封闭圈;Connect each of the target points in a clockwise sequence or a counterclockwise sequence to obtain candidate closed circles;
从所述候选封闭圈中删除满足位置突变条件的目标点;Deleting target points that meet the position mutation condition from the candidate closed circle;
在所述地图显示界面中,按照所述顺时针顺序或者所述逆时针顺序连接剩余的目标点,得到所述目标续航区域。In the map display interface, the remaining target points are connected in the clockwise sequence or the counterclockwise sequence to obtain the target cruising area.
在一个实施例中,所述目标点包括第一可达点、第二可达点和第三可达点;在所述候选封闭圈中,所述第二可达点与所述第一可达点相邻,且所述第二可达点与所述第三可达点相邻;In one embodiment, the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point and the first reachable point Reach points are adjacent, and the second reachable point is adjacent to the third reachable point;
所述处理器1004还执行以下步骤:The processor 1004 further executes the following steps:
连接所述第一可达点与所述第二可达点,得到第一连接线;Connect the first reachable point and the second reachable point to obtain a first connection line;
连接所述第二可达点与所述第三可达点,得到第二连接线;Connect the second reachable point and the third reachable point to obtain a second connecting line;
根据所述第一连接线、所述第二连接线确定连接线夹角,若所述连接线夹角小于夹角阈值,则将所述第二可达点确定为满足所述位置突变条件的目标点。Determine the included angle of the connecting line according to the first connecting line and the second connecting line, and if the included angle of the connecting line is less than the included angle threshold, the second reachable point is determined as the one that satisfies the position mutation condition Target.
在一个实施例中,所述目标点包括第一可达点、第二可达点和第三可达点;在所述候选封闭圈中,所述第二可达点与所述第一可达点相邻,且所述第二可达点与所述第三可达点相邻;In an embodiment, the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point and the first reachable point Reach points are adjacent, and the second reachable point is adjacent to the third reachable point;
所述处理器1004还执行以下步骤:The processor 1004 further executes the following steps:
连接所述第一可达点与所述第三可达点,得到第三连接线;Connect the first reachable point and the third reachable point to obtain a third connecting line;
确定所述第二可达点与所述第三连接线之间的连接线距离,根据所述连接线距离与所述第三连接线的长度生成连接线比例系数;Determine the connection line distance between the second reachable point and the third connection line, and generate a connection line scale factor according to the connection line distance and the length of the third connection line;
若所述连接线比例系数大于比例系数阈值,则将所述第二可达点确定为满足所述位置突变条件的目标点。If the scale factor of the connecting line is greater than the scale factor threshold, the second reachable point is determined as the target point that satisfies the location mutation condition.
应当理解,本申请实施例中所描述的电子设备1000可执行前文图3a到图11b所对应实施例中对所述图像处理方法的描述,也可执行前文图12所对应实施例中对所述图像处理装置1的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。It should be understood that the electronic device 1000 described in the embodiment of the present application can execute the description of the image processing method in the foregoing embodiment corresponding to FIG. 3a to FIG. 11b, and may also execute the foregoing description of the image processing method in the foregoing embodiment corresponding to FIG. 12 The description of the image processing device 1 will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated.
此外,本申请实施例还提供了一种计算机存储介质,且所述计算机存储介质中存储有前文提及的图像处理装置1所执行的计算机程序,且所述计算机程序包括程序指令,当所述处理器执行所述程序指令时,能够执行前文图3a到图11b所对应实施例中对所述图像处理方法的描述,因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的计算机存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。In addition, the embodiments of the present application also provide a computer storage medium, and the computer storage medium stores the aforementioned computer program executed by the image processing apparatus 1, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the description of the image processing method in the foregoing embodiment corresponding to FIG. 3a to FIG. 11b, and therefore, it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the embodiments of the computer storage media involved in this application, please refer to the description of the method embodiments of this application.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本申请的实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。The above-disclosed are only the embodiments of the application, which of course cannot be used to limit the scope of rights of the application. Therefore, equivalent changes made according to the claims of the application still fall within the scope of the application.
Claims (20)
- 一种图像处理方法,由电子设备执行,包括:An image processing method, executed by an electronic device, including:获取交通工具的剩余里程参数;Obtain the remaining mileage parameters of the vehicle;获取所述交通工具在地图显示界面中的起始位置;Acquiring the starting position of the vehicle in the map display interface;根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域;Determining a target cruising area in the map display interface according to the starting position and the remaining mileage parameter;在所述地图显示界面中展示所述目标续航区域。The target battery life area is displayed in the map display interface.
- 根据权利要求1所述的方法,其中,所述根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域,包括:The method according to claim 1, wherein the determining the target cruising area in the map display interface according to the starting position and the remaining mileage parameter comprises:根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定多个目标点;Determining multiple target points in the map display interface according to the starting position and the remaining mileage parameter;在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域。In the map display interface, the multiple target points are connected to obtain the target cruising area.
- 根据权利要求2所述的方法,其中,所述根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定多个目标点,包括:The method according to claim 2, wherein the determining multiple target points in the map display interface according to the starting position and the remaining mileage parameter comprises:根据所述起始位置和所述剩余里程参数确定多个原始备选点;Determine multiple original candidate points according to the starting position and the remaining mileage parameter;从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为可达备选点;Selecting an original candidate point reachable by the vehicle from the multiple original candidate points as the reachable candidate point;将所述可达备选点确定为目标点。The reachable candidate point is determined as the target point.
- 根据权利要求3所述的方法,其中,所述根据所述起始位置和所述剩余里程参数确定多个原始备选点,包括:The method according to claim 3, wherein the determining a plurality of original candidate points according to the starting position and the remaining mileage parameter comprises:根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定原始续航区域;Determine the original cruising area in the map display interface according to the starting position and the remaining mileage parameter;将所述原始续航区域划分为至少一个单位原始续航区域,并在每个单位原始续航区域内分别确定原始备选点。The original battery life area is divided into at least one unit original battery life area, and the original candidate points are respectively determined in each unit original battery life area.
- 根据权利要求4所述的方法,其中,所述将所述可达备选点确定为目标点,包括:The method according to claim 4, wherein the determining the reachable candidate point as a target point comprises:从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点;From the reachable candidate points in the original cruising area of each unit, select the reachable candidate point with the largest distance from the starting position as the target point to be determined corresponding to the original cruising area of the unit;将所有单位原始续航区域对应的待确定目标点作为所述目标点。The target point to be determined corresponding to the original cruising area of all units is taken as the target point.
- 根据权利要求3至5任一项所述的方法,其中,所述从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为可达备选点,包括:The method according to any one of claims 3 to 5, wherein the selecting the original candidate points reachable by the vehicle from the plurality of original candidate points as the reachable candidate points comprises:确定每个原始备选点的备选点路网区域,并从路网数据集合中,获取所述备选点路网区域内的路网数据,作为备选点路网数据;Determine the candidate point road network area of each original candidate point, and obtain the road network data in the candidate point road network area from the road network data set as the candidate point road network data;若所述备选点路网数据为非空集合,则将所述原始备选点确定为候选点;If the candidate point road network data is a non-empty set, determine the original candidate point as a candidate point;根据所述路网数据集合,确定所述候选点与所述起始位置之间的路网路径距离;Determine the road network path distance between the candidate point and the starting position according to the road network data set;若所述候选点与所述起始位置之间的路网路径距离小于或等于所述剩余里程参数,则将所述候选点确定为所述可达备选点。If the road network path distance between the candidate point and the starting position is less than or equal to the remaining mileage parameter, the candidate point is determined as the reachable candidate point.
- 根据权利要求4所述的方法,其中,所述根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定原始续航区域,包括:The method according to claim 4, wherein the determining the original cruising area in the map display interface according to the starting position and the remaining mileage parameter comprises:获取与所述地图显示界面对应的地图比例尺系数;Acquiring a map scale factor corresponding to the map display interface;根据所述剩余里程参数与所述地图比例尺系数,确定里程半径系数;Determine the mileage radius coefficient according to the remaining mileage parameter and the map scale coefficient;在所述地图显示界面中,以所述起始位置为圆心,所述里程半径系数为半径,生成里程圆周,将所述里程圆周在所述地图显示界面中对应的区域确定为所述原始续航区域。In the map display interface, taking the starting position as the center of the circle and the mileage radius coefficient as the radius, generate a mileage circle, and determine the area corresponding to the mileage circle in the map display interface as the original battery life area.
- 根据权利要求4所述的方法,其中,所述将所述原始续航区域划分为至少一个单位原始续航区域,并在每个单位原始续航区域内分别确定原始备选点,包括:The method according to claim 4, wherein the dividing the original battery life area into at least one unit original battery life area, and separately determining the original candidate points in each unit original battery life area, comprises:获取极角间隔系数,根据所述极角间隔系数将所述原始续航区域划分为所述至少一个单位原始续航区域;Acquiring a polar angle interval coefficient, and dividing the original endurance area into the at least one unit original endurance area according to the polar angle interval coefficient;将每个单位原始续航区域划分为至少一个单位原始续航子区域;每个单位原始续航子区域的区域边长与第一长度阈值之间的差值小于差异阈值;Divide each unit's original battery life area into at least one unit original battery life sub-areas; the difference between the area side length of each unit original battery life sub-area and the first length threshold is less than the difference threshold;在所述地图显示界面中,将所述每个单位原始续航子区域的顶点作为所述原始备选点。In the map display interface, the vertex of the original battery life sub-region of each unit is used as the original candidate point.
- 根据权利要求6所述的方法,其中,所述确定每个原始备选点的备选点路网区域,包括:The method according to claim 6, wherein said determining the candidate point road network area of each original candidate point comprises:获取所述原始备选点的经纬度信息,从多个路网数据块中查找与所述经纬度信息对应的目标路网数据块;所述路网数据集合对应所述多个路网数据块;每个路网数据块包括多个单位路网数据块;Obtain the longitude and latitude information of the original candidate point, and search for the target road network data block corresponding to the longitude and latitude information from multiple road network data blocks; the road network data set corresponds to the multiple road network data blocks; Each road network data block includes multiple unit road network data blocks;从所述目标路网数据块对应的多个单位路网数据块中,查找与所述经纬度信息对应的第一单位路网数据块;Searching for the first unit road network data block corresponding to the latitude and longitude information from the multiple unit road network data blocks corresponding to the target road network data block;获取第二长度阈值,根据所述第二长度阈值确定与所述第一单位路网数据块相邻的第二单位路网数据块;Acquiring a second length threshold, and determining a second unit road network data block adjacent to the first unit road network data block according to the second length threshold;将与所述第一单位路网数据块对应的路网区域,以及与所述第二单位路网数据块对应的路网区域作为所述原始备选点的备选点路网区域。The road network area corresponding to the first unit road network data block and the road network area corresponding to the second unit road network data block are used as the candidate point road network area of the original candidate point.
- 根据权利要求5所述的方法,其中,所述从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点,包括:The method according to claim 5, wherein, among the reachable candidate points in the original range of each unit, the reachable candidate point with the largest distance from the starting position is selected as the The target points to be determined corresponding to the original battery life area include:确定所述单位原始续航区域内的可达备选点与所述起始位置在所述地图显示界面中的地图距离;Determining the map distance between the reachable candidate point in the original range of the unit and the starting position in the map display interface;将具有最大地图距离的可达备选点作为与所述单位原始续航区域对应的待确定目 标点。The reachable candidate point with the largest map distance is taken as the target point to be determined corresponding to the original range of the unit.
- 根据权利要求5所述的方法,其中,所述从每个单位原始续航区域内的可达备选点中,选择与所述起始位置距离最大的可达备选点,作为与所述单位原始续航区域对应的待确定目标点,包括:The method according to claim 5, wherein, among the reachable candidate points in the original range of each unit, the reachable candidate point with the largest distance from the starting position is selected as the The target points to be determined corresponding to the original battery life area include:确定所述单位原始续航区域内的可达备选点与所述起始位置之间的路网路径距离,作为候选路网路径距离;Determine the road network path distance between the reachable candidate point in the original endurance area of the unit and the starting position as a candidate road network path distance;将具有最大候选路网路径距离的可达备选点作为与所述单位原始续航区域对应的待确定目标点。The reachable candidate point with the largest candidate road network path distance is taken as the target point to be determined corresponding to the unit original range.
- 根据权利要求2所述的方法,其中,所述在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域,包括:The method according to claim 2, wherein the connecting the multiple target points in the map display interface to obtain the target endurance area comprises:按照顺时针顺序或者逆时针顺序连接每个所述目标点,得到候选封闭圈;Connect each of the target points in a clockwise sequence or a counterclockwise sequence to obtain candidate closed circles;从所述候选封闭圈中删除满足位置突变条件的目标点;Deleting target points that meet the position mutation condition from the candidate closed circle;在所述地图显示界面中,按照所述顺时针顺序或者所述逆时针顺序连接剩余的目标点,得到所述目标续航区域。In the map display interface, the remaining target points are connected in the clockwise sequence or the counterclockwise sequence to obtain the target cruising area.
- 根据权利要求12所述的方法,其中,所述目标点包括第一可达点、第二可达点和第三可达点;在所述候选封闭圈中,所述第二可达点与所述第一可达点相邻,且所述第二可达点与所述第三可达点相邻;The method according to claim 12, wherein the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point and The first reachable point is adjacent, and the second reachable point is adjacent to the third reachable point;所述方法还包括:The method also includes:连接所述第一可达点与所述第二可达点,得到第一连接线;Connect the first reachable point and the second reachable point to obtain a first connection line;连接所述第二可达点与所述第三可达点,得到第二连接线;Connect the second reachable point and the third reachable point to obtain a second connecting line;根据所述第一连接线、所述第二连接线确定连接线夹角,若所述连接线夹角小于夹角阈值,则将所述第二可达点确定为满足所述位置突变条件的目标点。Determine the included angle of the connecting line according to the first connecting line and the second connecting line. If the included angle of the connecting line is less than the included angle threshold, the second reachable point is determined as the one that satisfies the position mutation condition Target.
- 根据权利要求12所述的方法,其中,所述目标点包括第一可达点、第二可达点和第三可达点;在所述候选封闭圈中,所述第二可达点与所述第一可达点相邻,且所述第二可达点与所述第三可达点相邻;The method according to claim 12, wherein the target point includes a first reachable point, a second reachable point, and a third reachable point; in the candidate closed circle, the second reachable point and The first reachable point is adjacent, and the second reachable point is adjacent to the third reachable point;所述方法还包括:The method also includes:连接所述第一可达点与所述第三可达点,得到第三连接线;Connect the first reachable point and the third reachable point to obtain a third connecting line;确定所述第二可达点与所述第三连接线之间的连接线距离,根据所述连接线距离与所述第三连接线的长度生成连接线比例系数;Determine the connection line distance between the second reachable point and the third connection line, and generate a connection line scale factor according to the connection line distance and the length of the third connection line;若所述连接线比例系数大于比例系数阈值,则将所述第二可达点确定为满足所述位置突变条件的目标点。If the scale factor of the connecting line is greater than the scale factor threshold, the second reachable point is determined as the target point that satisfies the location mutation condition.
- 一种图像处理装置,其中,包括:An image processing device, which includes:第一获取模块,用于获取交通工具的剩余里程参数;The first obtaining module is used to obtain the remaining mileage parameters of the vehicle;第二获取模块,用于获取所述交通工具在地图显示界面中的起始位置;The second acquiring module is used to acquire the starting position of the vehicle in the map display interface;目标区域确定模块,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定目标续航区域;A target area determination module, configured to determine a target endurance area in the map display interface according to the starting position and the remaining mileage parameter;所述第一获取模块,还用于在所述地图显示界面中展示所述目标续航区域。The first acquisition module is also used to display the target battery life area in the map display interface.
- 根据权利要求15所述的装置,其中,所述目标区域确定模块包括:The apparatus according to claim 15, wherein the target area determination module comprises:目标点确定单元,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定多个目标点;A target point determining unit, configured to determine multiple target points in the map display interface according to the starting position and the remaining mileage parameter;连接单元,用于在所述地图显示界面中,连接所述多个目标点,得到所述目标续航区域。The connecting unit is configured to connect the multiple target points in the map display interface to obtain the target endurance area.
- 根据权利要求16所述的装置,其中,所述目标点确定单元包括:The apparatus according to claim 16, wherein the target point determination unit comprises:原始点确定子单元,用于根据所述起始位置和所述剩余里程参数确定多个原始备选点;An original point determination subunit, configured to determine multiple original candidate points according to the starting position and the remaining mileage parameter;选择子单元,用于从所述多个原始备选点中选择所述交通工具可达的原始备选点,作为可达备选点;The selection subunit is used to select the original candidate point reachable by the vehicle from the multiple original candidate points as the reachable candidate point;目标点确定子单元,用于将所述可达备选点确定为目标点。The target point determination subunit is used to determine the reachable candidate point as a target point.
- 根据权利要求17所述的装置,其中,所述原始点确定子单元包括:The apparatus according to claim 17, wherein the original point determination subunit comprises:区域确定子单元,用于根据所述起始位置和所述剩余里程参数在所述地图显示界面中确定原始续航区域;An area determination subunit, configured to determine an original cruising area in the map display interface according to the starting position and the remaining mileage parameter;第一划分子单元,用于将所述原始续航区域划分为至少一个单位原始续航区域,并在每个单位原始续航区域内分别确定原始备选点。The first division subunit is used to divide the original endurance area into at least one unit original endurance area, and to determine the original candidate points in each unit original endurance area.
- 一种电子设备,其中,包括:处理器和存储器;An electronic device, including: a processor and a memory;所述处理器和存储器相连,其中,所述存储器用于存储计算机程序,所述处理器用于调用所述计算机程序,以执行如权利要求1-14任一项所述的方法。The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program to execute the method according to any one of claims 1-14.
- 一种计算机存储介质,其中,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令被处理器执行时,执行如权利要求1-14任一项所述的方法。A computer storage medium, wherein the computer storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the program instructions according to any one of claims 1-14 are executed. method.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021539361A JP7313450B2 (en) | 2019-05-29 | 2020-05-19 | Image processing method and its device, electronic equipment and computer program |
EP20812740.7A EP3910292B1 (en) | 2019-05-29 | 2020-05-19 | Image processing method and apparatus, and electronic device and storage medium |
US17/378,628 US12044544B2 (en) | 2019-05-29 | 2021-07-16 | Query and display of navigation map data |
US18/673,515 US20240310184A1 (en) | 2019-05-29 | 2024-05-24 | Image processing method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910458925.3A CN110186473B (en) | 2019-05-29 | 2019-05-29 | Image processing method, device, electronic equipment and storage medium |
CN201910458925.3 | 2019-05-29 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/378,628 Continuation US12044544B2 (en) | 2019-05-29 | 2021-07-16 | Query and display of navigation map data |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020238691A1 true WO2020238691A1 (en) | 2020-12-03 |
Family
ID=67718761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/090968 WO2020238691A1 (en) | 2019-05-29 | 2020-05-19 | Image processing method and apparatus, and electronic device and storage medium |
Country Status (5)
Country | Link |
---|---|
US (2) | US12044544B2 (en) |
EP (1) | EP3910292B1 (en) |
JP (1) | JP7313450B2 (en) |
CN (1) | CN110186473B (en) |
WO (1) | WO2020238691A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110186473B (en) * | 2019-05-29 | 2023-05-02 | 腾讯科技(深圳)有限公司 | Image processing method, device, electronic equipment and storage medium |
CN110610311A (en) * | 2019-09-12 | 2019-12-24 | 昆山聚创新能源科技有限公司 | Configuration method and device of vehicle-electricity separation device |
CN113447034B (en) * | 2021-06-30 | 2024-09-24 | 北京百度网讯科技有限公司 | Road network data processing method and device, electronic equipment and readable storage medium |
CN114764243B (en) * | 2022-04-15 | 2024-12-03 | 重庆大学 | A method and system for unmanned vehicle path planning |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011029562A1 (en) * | 2009-09-11 | 2011-03-17 | Audi Ag | Range calculation for a plurality of roads |
US20130179062A1 (en) * | 2010-09-17 | 2013-07-11 | Pioneer Corporation | Travel distance estimating apparatus, travel distance estimating method, travel distance estimating program, and recording medium |
CN103292820A (en) * | 2012-03-01 | 2013-09-11 | 日立(中国)研究开发有限公司 | Equipment and method for providing precise endurance range of mobile body for user |
CN104620077A (en) * | 2012-08-02 | 2015-05-13 | 株式会社电装 | Navigation apparatus |
CN107576331A (en) * | 2016-07-04 | 2018-01-12 | 高德信息技术有限公司 | One kind can continue a journey range determining method and device |
CN108180907A (en) * | 2016-12-08 | 2018-06-19 | 高德信息技术有限公司 | One kind can continue a journey area determination method and device |
CN108253981A (en) * | 2016-12-29 | 2018-07-06 | 高德信息技术有限公司 | A kind of continuation of the journey method of determining range and device |
CN110186473A (en) * | 2019-05-29 | 2019-08-30 | 腾讯科技(深圳)有限公司 | A kind of image processing method, device, electronic equipment and storage medium |
Family Cites Families (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5243690A (en) * | 1989-11-14 | 1993-09-07 | General Electric Company | Robot targeting using transit time control |
JP3210609B2 (en) * | 1997-06-20 | 2001-09-17 | 松下電器産業株式会社 | Reachable range display |
JP4906164B2 (en) | 2007-07-19 | 2012-03-28 | アイシン・エィ・ダブリュ株式会社 | Map display device, map display method, and computer program |
DE102008037262A1 (en) * | 2008-08-11 | 2009-05-07 | Daimler Ag | Determined remaining cruising range displaying method for vehicle, involves displaying distance as polygonal closed around actual position, where area enclosed in front of polygonal is differently displayed in relation to outside area |
JP5029589B2 (en) * | 2008-12-11 | 2012-09-19 | アイシン・エィ・ダブリュ株式会社 | In-vehicle display control apparatus, in-vehicle display control method, and in-vehicle display control program |
JP5051140B2 (en) * | 2009-01-20 | 2012-10-17 | アイシン・エィ・ダブリュ株式会社 | Travel guidance device, travel guidance method, and computer program |
JP5482280B2 (en) * | 2010-02-18 | 2014-05-07 | ソニー株式会社 | Information processing apparatus, electric vehicle, and discharge management method |
TWI424381B (en) * | 2011-01-28 | 2014-01-21 | Ind Tech Res Inst | Driving assistant method and system for electric vehicle |
WO2012114381A1 (en) * | 2011-02-24 | 2012-08-30 | 三菱電機株式会社 | Map display device, navigation device and map display method |
DE102011015778A1 (en) * | 2011-04-01 | 2012-10-04 | Volkswagen Aktiengesellschaft | Method for performing route planning for vehicle, involves transmitting target sequence for route to be planned to computing unit, where computing unit is coupled with data storage |
JP5853499B2 (en) * | 2011-08-31 | 2016-02-09 | 日産自動車株式会社 | Traveling area display device |
US9389088B2 (en) * | 2011-12-12 | 2016-07-12 | Google Inc. | Method of pre-fetching map data for rendering and offline routing |
EP3133371A1 (en) * | 2012-06-29 | 2017-02-22 | TomTom Navigation B.V. | Apparatus and method for route searching |
WO2014024604A1 (en) * | 2012-08-07 | 2014-02-13 | 住友電工システムソリューション株式会社 | Drivable route calculating device, computer program, and display data generating device |
JP6025248B2 (en) * | 2012-08-07 | 2016-11-16 | 住友電工システムソリューション株式会社 | Travelable route calculation device and computer program |
WO2014034298A1 (en) * | 2012-08-30 | 2014-03-06 | 日産自動車株式会社 | Travelable distance display system |
DE102012023632A1 (en) * | 2012-12-03 | 2014-06-05 | Volkswagen Aktiengesellschaft | Device for determining active range of vehicle e.g. electric vehicle, has processor that is adapted to identify secondary system configuration having lower energy consumption if detected residual range falls below threshold value |
US9121719B2 (en) * | 2013-03-15 | 2015-09-01 | Abalta Technologies, Inc. | Vehicle range projection |
EP3091336B1 (en) * | 2014-03-06 | 2021-05-26 | Mitsubishi Heavy Industries, Ltd. | Device for providing electric-moving-body information and method for providing electric-moving-body information |
US10417665B2 (en) * | 2014-12-25 | 2019-09-17 | Honda Motor Co., Ltd. | Server, navigation device, and distribution exclusion area setting method in advertising information distribution system |
JP6047651B2 (en) | 2015-12-10 | 2016-12-21 | パイオニア株式会社 | Image processing apparatus and image processing method |
CN111542860B (en) * | 2016-12-30 | 2024-08-27 | 辉达公司 | Sign and lane creation for high definition maps of autonomous vehicles |
FR3062834B1 (en) * | 2017-02-16 | 2019-04-12 | IFP Energies Nouvelles | METHOD FOR DETERMINING AN AREA REACHABLE BY A VEHICLE USING A DYNAMIC MODEL AND AN ADDITIONAL GRAPH |
CN108917778B (en) * | 2018-05-11 | 2020-11-03 | 广州海格星航信息科技有限公司 | Navigation prompting method, navigation equipment and storage medium |
CN109186623A (en) * | 2018-09-10 | 2019-01-11 | 威马智慧出行科技(上海)有限公司 | A kind of travelable range dynamic display method and its system |
GB201901678D0 (en) * | 2019-02-07 | 2019-03-27 | Tomtom Navigation Bv | Privacy-by-design localisation profiles |
JP7238528B2 (en) | 2019-03-26 | 2023-03-14 | 株式会社アイシン | Display device and computer program |
-
2019
- 2019-05-29 CN CN201910458925.3A patent/CN110186473B/en active Active
-
2020
- 2020-05-19 JP JP2021539361A patent/JP7313450B2/en active Active
- 2020-05-19 EP EP20812740.7A patent/EP3910292B1/en active Active
- 2020-05-19 WO PCT/CN2020/090968 patent/WO2020238691A1/en unknown
-
2021
- 2021-07-16 US US17/378,628 patent/US12044544B2/en active Active
-
2024
- 2024-05-24 US US18/673,515 patent/US20240310184A1/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011029562A1 (en) * | 2009-09-11 | 2011-03-17 | Audi Ag | Range calculation for a plurality of roads |
US20130179062A1 (en) * | 2010-09-17 | 2013-07-11 | Pioneer Corporation | Travel distance estimating apparatus, travel distance estimating method, travel distance estimating program, and recording medium |
CN103292820A (en) * | 2012-03-01 | 2013-09-11 | 日立(中国)研究开发有限公司 | Equipment and method for providing precise endurance range of mobile body for user |
CN104620077A (en) * | 2012-08-02 | 2015-05-13 | 株式会社电装 | Navigation apparatus |
CN107576331A (en) * | 2016-07-04 | 2018-01-12 | 高德信息技术有限公司 | One kind can continue a journey range determining method and device |
CN108180907A (en) * | 2016-12-08 | 2018-06-19 | 高德信息技术有限公司 | One kind can continue a journey area determination method and device |
CN108253981A (en) * | 2016-12-29 | 2018-07-06 | 高德信息技术有限公司 | A kind of continuation of the journey method of determining range and device |
CN110186473A (en) * | 2019-05-29 | 2019-08-30 | 腾讯科技(深圳)有限公司 | A kind of image processing method, device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
See also references of EP3910292A4 * |
Also Published As
Publication number | Publication date |
---|---|
EP3910292A1 (en) | 2021-11-17 |
JP2022517195A (en) | 2022-03-07 |
EP3910292B1 (en) | 2024-11-27 |
EP3910292A4 (en) | 2022-02-23 |
CN110186473B (en) | 2023-05-02 |
US20240310184A1 (en) | 2024-09-19 |
JP7313450B2 (en) | 2023-07-24 |
US20210341307A1 (en) | 2021-11-04 |
US12044544B2 (en) | 2024-07-23 |
CN110186473A (en) | 2019-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020238691A1 (en) | Image processing method and apparatus, and electronic device and storage medium | |
EP3227873B1 (en) | Method and apparatus for providing point of interest information | |
EP4134630A1 (en) | Method and apparatus for providing point of interest information | |
US9909897B2 (en) | Encoded representation of route data | |
US10317233B2 (en) | Direction list | |
JP5547860B1 (en) | A user portable terminal that retrieves target geographical information using the user's current position and current azimuth and provides the user with the information | |
US20170023375A1 (en) | Providing Maneuver Indicators on a Map | |
EP2923177A1 (en) | Method of determining trajectories through one or more junctions of a transportation network | |
KR20170046675A (en) | Providing in-navigation search results that reduce route disruption | |
CN103017750B (en) | Mobile terminal air navigation aid and corresponding navigational system | |
US9622039B2 (en) | Method for retrieving tourist information based on user location | |
TW201931112A (en) | Systems and methods for determining new roads on a map | |
CN105405355B (en) | The method for carrying out information point screening on the electronic map | |
CN106323306B (en) | Navigation information processing method and electronic equipment | |
US10240940B2 (en) | Route planning system and method | |
US11726740B2 (en) | Immersive audio tours | |
CN103186528A (en) | Method, device and mobile terminal for screening geographical information | |
JP5583178B2 (en) | IMPORTANT AREA DETERMINING DEVICE, METHOD, AND PROGRAM | |
CN112529279A (en) | Method, device, computer equipment and medium for generating order receiving guidance information | |
CN119828928A (en) | Method, apparatus, device and storage medium for interaction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20812740 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2021539361 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2020812740 Country of ref document: EP Effective date: 20210812 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |