Data acquisition method and device, vehicle and storage medium
By obtaining collection rules and map data, determining the target road section, and generating collection plans, the problem of scarcity of intelligent driving data is solved and vehicle computing resources are saved.
Patent Information
- Application Number
- CN202410020622.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, there are limitations in the collection of specific scenarios of intelligent driving data, resulting in scarce data and occupies a large number of vehicle computing resources.
By obtaining the acquisition rules, the acquisition area and map data, the target road section is determined, and the acquisition plan is generated based on the current location and time of the vehicle, and the data is collected according to the plan.
It solves the problem of scarce driving data in specific scenarios and saves the computing resources of the vehicle.
Smart Images

Figure CN120255386A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicles, and particularly to a data acquisition method, a data acquisition device, a vehicle, and a computer-readable storage medium. Background Art
[0002] Currently, with the development of intelligent vehicles, intelligent driving has become more and more mature. And a vast amount of intelligent driving data is the core of intelligent driving. However, at present, the driving data in some specific scenarios in intelligent driving data is relatively scarce. There are certain limitations in the acquisition of driving data in specific scenarios in the related art, and it requires a large amount of vehicle computing resources, and the problem of scarce driving data in specific scenarios cannot be fundamentally solved. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a data acquisition method, a data acquisition device, a vehicle, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0004] To solve the above problems, in a first aspect, an embodiment of the present invention discloses a data acquisition method, which is applied to a vehicle. The method includes:
[0005] Obtain an acquisition rule, where the acquisition rule is determined according to the acquisition requirements of a target acquisition scenario;
[0006] Obtain an acquisition area and map data corresponding to the acquisition area; the acquisition area is determined according to the target acquisition scenario;
[0007] Determine a target road section that meets the acquisition rule according to the map data corresponding to the acquisition area;
[0008] Obtain the current position and acquisition time of the vehicle, and generate an acquisition plan according to the current position of the vehicle and the target road section; the acquisition time is determined according to the target acquisition scenario;
[0009] Collect data according to the acquisition plan.
[0010] Optionally, the vehicle is connected to a cloud server; the target acquisition scenario includes at least one of a scenario description, an acquisition time, a weather condition, a road surface condition, and a light condition; the obtaining of the acquisition rule, where the acquisition rule is determined according to the acquisition requirements of the target acquisition scenario, includes:
[0011] Obtain the acquisition rule sent by the cloud server; the acquisition rule is determined by the cloud server according to the acquisition requirements of the target acquisition scenario; the acquisition requirements are determined by the cloud server according to the target acquisition scenario.
[0012] Optionally, the acquisition rule includes the map element screening condition; determining a target road section that meets the acquisition rule according to the map data corresponding to the acquisition area includes:
[0013] Obtain the map elements in the acquisition area from the map data;
[0014] Among the map elements in the acquisition area, determine the target map elements that meet the map element screening condition, and determine the road section containing the target map elements as the target road section.
[0015] Optionally, the acquisition plan includes an acquisition route and an execution time; the acquisition route includes multiple target road sections; obtaining the current position of the vehicle and the acquisition time, and generating an acquisition plan according to the current position of the vehicle and the target road section includes:
[0016] Obtain the acquisition time, and determine the execution time according to the acquisition time;
[0017] Obtain the current position of the vehicle, and determine the starting point and the ending point according to the current position of the vehicle, and use the target road section as a passing point;
[0018] Generate an acquisition route according to the starting point, the ending point, and the passing point.
[0019] Optionally, collecting data according to the acquisition plan includes:
[0020] When the current time reaches the execution time, drive according to the acquisition route, and when the vehicle reaches the target road section, set the acquisition status of the target road section to the in - progress acquisition status, and start collecting data;
[0021] When the vehicle drives out of the target road section, set the acquisition status of the target road section to the acquisition completed status, and stop collecting data until the data of multiple target road sections is collected.
[0022] Optionally, the target acquisition scenario is determined by the cloud server according to the historical data of multiple acquired scenarios accumulated.
[0023] Optionally, obtaining the acquisition area and the map data corresponding to the acquisition area includes:
[0024] Obtain the acquisition area corresponding to the target acquisition scenario sent by the cloud server, and obtain the map data corresponding to the acquisition area from the preset map.
[0025] In a second aspect, an embodiment of the present invention discloses a data acquisition device, which is applied to a vehicle. The device includes:
[0026] A first acquisition module, configured to acquire an acquisition rule, where the acquisition rule is determined according to the acquisition requirements of a target acquisition scenario;
[0027] A second acquisition module, configured to acquire an acquisition area and map data corresponding to the acquisition area; the acquisition area is determined according to the target acquisition scenario;
[0028] A determination module, configured to determine a target road section that meets the acquisition rule according to the map data corresponding to the acquisition area;
[0029] A generation module, configured to acquire the current position and acquisition time of the vehicle, and generate an acquisition plan according to the current position of the vehicle and the target road section; the acquisition time is determined according to the target acquisition scenario;
[0030] An acquisition module, configured to acquire data according to the acquisition plan.
[0031] Optionally, the vehicle is connected to a cloud server; the target acquisition scenario includes at least one of a scenario description, an acquisition time, a weather condition, a road surface condition, and a light condition; the first acquisition module includes:
[0032] A first acquisition sub-module, configured to acquire the acquisition rule sent by the cloud server; the acquisition rule is determined by the cloud server according to the acquisition requirements of the target acquisition scenario; the acquisition requirements are determined by the cloud server according to the target acquisition scenario.
[0033] Optionally, the acquisition rule includes the map element screening condition; the determination module includes:
[0034] A second acquisition sub-module, configured to acquire map elements in the acquisition area from the map data;
[0035] A determination sub-module, configured to determine target map elements that meet the map element screening condition among the map elements in the acquisition area, and determine the road section containing the target map elements as the target road section.
[0036] Optionally, the acquisition plan includes an acquisition route and an execution time; the acquisition route includes a plurality of the target road sections; the generation module includes:
[0037] A third acquisition sub-module, configured to acquire the acquisition time and determine the execution time according to the acquisition time;
[0038] A fourth acquisition sub-module, configured to acquire the current position of the vehicle, and determine a starting point and an ending point according to the current position of the vehicle, and use the target road section as a passing point;
[0039] A generation sub-module, configured to generate a collection route according to the starting point, the ending point, and the passing points.
[0040] Optionally, the collection module includes:
[0041] A first setting module, configured to, when the current time reaches the execution time, drive along the collection route, and when the vehicle arrives at the target road section, set the collection status of the target road section to the in-collection status, and start collecting data;
[0042] A second setting module, configured to, when the vehicle drives out of the target road section, set the collection status of the target road section to the collection-completed status, and stop collecting data until the data of multiple target road sections is collected.
[0043] Optionally, the target collection scenario is determined by the cloud server according to the historical data of multiple collection scenarios obtained cumulatively.
[0044] Optionally, the second acquisition module includes:
[0045] A fifth acquisition sub-module, configured to acquire the collection area corresponding to the target collection scenario sent by the cloud server, and acquire the map data corresponding to the collection area from a preset map.
[0046] In a third aspect, the present invention discloses a vehicle, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the above data collection method are implemented.
[0047] In a fourth aspect, the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above data collection method are implemented.
[0048] The embodiments of the present invention have the following advantages:
[0049] In the embodiments of the present invention, a collection rule is obtained, where the collection rule is determined according to the collection requirements of the target collection scenario. Then, a collection area and the map data corresponding to the collection area are obtained, where the collection area is determined according to the target collection scenario. Then, according to the map data corresponding to the collection area, target road sections that meet the collection rule are determined. Then, the current position and collection time of the vehicle are obtained, and according to the current position of the vehicle and the target road sections, a collection plan is generated, where the collection time is determined according to the target collection scenario. Finally, data is collected according to the collection plan. Thereby, data corresponding to the target collection scenario is collected, solving the problem of scarce driving data in specific scenarios, and collecting data according to the generated collection plan can save the computing resources of the vehicle. Description of the Drawings
[0050] Figure 1 is a flowchart of the steps of a data collection method provided by an embodiment of the present invention;
[0051] Figure 2 is a structural block diagram of a data collection device provided by an embodiment of the present invention. Detailed implementation manners
[0052] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners.
[0053] In the related art, there are certain limitations in the collection of driving data for specific scenarios, and a large amount of vehicle computing resources are required, and the problem of scarce driving data for specific scenarios cannot be fundamentally solved. To solve the above technical problems, the present invention provides a data collection method. The core idea is to obtain a collection rule, where the collection rule is determined according to the collection requirements of the target collection scenario, and then obtain the collection area and the map data corresponding to the collection area, where the collection area is determined according to the target collection scenario, and then determine the target road section that meets the collection rule according to the map data corresponding to the collection area, and then obtain the current position and collection time of the vehicle, and generate a collection plan according to the current position of the vehicle and the target road section, where the collection time is determined according to the target collection scenario, and finally collect data according to the collection plan. Thereby, the data corresponding to the target collection scenario is collected, the problem of scarce driving data for specific scenarios is solved, and collecting data according to the generated collection plan can save the computing resources of the vehicle.
[0054] Referring to Figure 1 , which shows a flowchart of the steps of a data collection method provided by an embodiment of the present invention. The method is applied to a vehicle, and the method may specifically include the following steps:
[0055] Step 101, obtain a collection rule, where the collection rule is determined according to the collection requirements of the target collection scenario.
[0056] In an embodiment of the present invention, the vehicle can obtain a collection rule, where the collection rule can be determined according to the collection requirements of the target collection scenario.
[0057] In one embodiment, the target collection scenario may include at least one of a scenario description, a collection time, a weather condition, a road surface condition, and a light condition. The vehicle can be connected to a cloud server to obtain a collection rule. The collection rule is determined according to the collection requirements of the target collection scenario, and may include: obtaining the collection rule sent by the cloud server; the collection rule is determined by the cloud server according to the collection requirements of the target collection scenario; the collection requirements are determined by the cloud server according to the target collection scenario.
[0058] For example, if the target acquisition scenario includes a scenario description, and the scenario description is data on road congestion, that is, the target acquisition scenario is data on road congestion, then the cloud server can determine the acquisition requirements based on this target acquisition scenario. The acquisition requirements are to demand some data on road congestion. Then, the cloud server can determine the acquisition rules based on this requirement. The acquisition rules are to acquire the sections with road congestion.
[0059] For another example, if the target acquisition scenario includes an acquisition time, and the acquisition time is data at night, that is, the target acquisition scenario is night data, then the cloud server can determine the acquisition requirements based on this target acquisition scenario. The acquisition requirements are to demand some night data. Then, the cloud server can determine the acquisition rules based on this requirement. The acquisition rules are to acquire the sections at night.
[0060] For another example, if the target acquisition scenario includes weather conditions, and the weather conditions are data on snowy days, that is, the target acquisition scenario is snowy day data, then the cloud server can determine the acquisition requirements based on this target acquisition scenario. The acquisition requirements are to demand some snowy day data. Then, the cloud server can determine the acquisition rules based on this requirement. The acquisition rules are the sections on snowy days.
[0061] For another example, if the target acquisition scenario includes road surface conditions, and the road surface conditions are data on poor roads, that is, the target acquisition scenario is data on poor roads, then the cloud server can determine the acquisition requirements based on this target acquisition scenario. The acquisition requirements are to demand some data on poor roads. Then, the cloud server can determine the acquisition rules based on this requirement. The acquisition rules are the sections with poor roads.
[0062] For another example, if the target acquisition scenario includes light conditions, and the light conditions are data on tunnels with insufficient light, that is, the target acquisition scenario is data on tunnels with insufficient light, then the cloud server can determine the acquisition requirements based on this target acquisition scenario. The acquisition requirements are to demand some data on tunnels with insufficient light. Then, the cloud server can determine the acquisition rules based on this requirement. The acquisition rules are the tunnel sections.
[0063] For another example, if the target acquisition scenario includes light conditions, and the light conditions are data on tunnels with insufficient light, that is, the target acquisition scenario is data on tunnels with insufficient light, then the cloud server can determine the acquisition requirements based on this target acquisition scenario. The acquisition requirements are to demand some data on tunnels with insufficient light. Then, the cloud server can determine the acquisition rules based on this requirement. The acquisition rules are the tunnel sections.
[0064] It should be noted that the target acquisition scenario in the present invention not only includes the above several scenarios, but may also include more scenarios. The specific target acquisition scenario can be determined according to the actual situation, and the present invention does not make specific limitations here.
[0065] In one embodiment, the target acquisition scenario can be determined by the cloud server based on the historical data of multiple acquisition scenarios accumulated. For example, for the multiple acquisition scenarios accumulated in the cloud server, if it is determined that some specific acquisition scenarios are missing in the cloud server at this time, then the missing specific acquisition scenarios can be determined as the target acquisition scenarios, and data can be acquired according to the target acquisition scenarios to complete the data corresponding to the missing specific acquisition scenarios.
[0066] In another embodiment, the target acquisition scenario can also be determined by the acquisition personnel based on specific acquisition scenarios, and the acquisition rules can be sent by the acquisition personnel to the vehicle through the vehicle's central control or other interaction methods. If the target acquisition scenario in the embodiment of the present invention is determined by the acquisition personnel, then the acquisition requirements and acquisition rules can also be determined by the acquisition personnel.
[0067] Step 102, obtain the acquisition area and the map data corresponding to the acquisition area; the acquisition area is determined according to the target acquisition scenario.
[0068] In the embodiment of the present invention, after the vehicle obtains the acquisition rules, it can further obtain the acquisition area and the map data corresponding to the acquisition area, where the acquisition area can be determined according to the target acquisition scenario. For example: if the acquisition area determined according to the target acquisition scenario is Area 1 of City A, then the map data corresponding to Area 1 of City A can be obtained. In the present invention, a preset map can be provided in advance in the vehicle, and the map data corresponding to the acquisition area can be obtained from the preset map.
[0069] In one embodiment, obtaining the acquisition area and the map data corresponding to the acquisition area may include: obtaining the acquisition area corresponding to the target acquisition scenario sent by the cloud server, and obtaining the map data corresponding to the acquisition area from the preset map. The preset map can be OpenStreetMap (abbreviated as OSM, OpenStreetMap, which is an online map collaboration project with the goal of creating a world map with free content and editable by everyone. Its OSM data is open source and can be freely downloaded and used). In the present invention, the preset map can also be other maps, and the present invention does not make specific limitations here. For example: if the acquisition area corresponding to the target acquisition scenario sent by the cloud server is Area 1 of City A, then the map data corresponding to Area 1 of City A can be obtained from OpenStreetMap.
[0070] In another embodiment, it is also possible to obtain the acquisition area input by the acquisition user and the map data corresponding to the acquisition area. For example: if the acquisition area output by the acquisition user is Area 1 of City A, then the map data corresponding to Area 1 of City A can be obtained from the preset map.
[0071] Step 103, determine the target road section that meets the acquisition rules according to the map data corresponding to the acquisition area.
[0072] In an embodiment of the present invention, after the vehicle obtains the collection area and the map data corresponding to the collection area, it can determine a target road section that meets the collection rules according to the map data corresponding to the collection area.
[0073] In one embodiment, the collection rules may include map element screening conditions. Determining a target road section that meets the collection rules according to the map data corresponding to the collection area may include: obtaining map elements in the collection area from the map data; determining target map elements that meet the map element screening conditions among the map elements in the collection area, and determining the road section containing the target map elements as the target road section.
[0074] For example: The collection rule is a tunnel road section, that is, the map element screening condition is to screen map elements for road sections whose road names contain the tunnel field. The collection area determined according to the target collection scenario is Area 1 of City A. Then the vehicle can obtain the road names of all road sections in the collection area of Area 1 of City A from the map data, and determine the road sections that meet the condition that the road name contains the tunnel field through the method of text keyword extraction, that is, determine the tunnel road sections, and determine the determined road sections as the target road sections.
[0075] Step 104, obtain the current position and collection time of the vehicle, and generate a collection plan according to the current position of the vehicle and the target road section; the collection time is determined according to the target collection scenario.
[0076] In an embodiment of the present invention, after determining the target road section that meets the collection rules, the current position and collection time of the vehicle can be obtained, where the collection time can be determined according to the target collection scenario, and then a collection plan can be generated according to the current position of the vehicle and the target road section.
[0077] In one embodiment, the collection plan may include a collection route and an execution time. The collection route may include multiple target road sections. Obtaining the current position and collection time of the vehicle, and generating a collection plan according to the current position of the vehicle and the target road section may include: obtaining the collection time and determining the execution time according to the collection time; obtaining the current position of the vehicle and determining the starting point and ending point according to the current position of the vehicle, and using the target road section as a passing point; generating a collection route according to the starting point, ending point and passing point.
[0078] For example, if the acquired collection time is at night, then the execution time can be determined as 9:00 p.m. based on this collection time. Then, the current position of the vehicle is obtained, and the current position of the vehicle is determined as the starting point and the ending point, that is, the vehicle starts from the current position for data collection and finally returns to the origin. Then, the target road segments are used as waypoints. There can be multiple target road segments, so there are also multiple waypoints. Finally, a collection route is generated based on the starting point, the ending point, and the waypoints. Among them, the collection route can be generated based on a path planning algorithm, and the generated collection route is the optimal collection route.
[0079] Step 105: Collect data according to the collection plan.
[0080] In the embodiment of the present invention, after the collection plan is generated, data can be collected according to the collection plan.
[0081] In one embodiment, the collection plan may include a collection route and an execution time. Collecting data according to the collection plan may include: when the current time reaches the execution time, driving according to the collection route, and when the vehicle reaches the target road segment, setting the collection status of the target road segment to the in - collection status and starting to collect data; when the vehicle exits the target road segment, setting the collection status of the target road segment to the collected - completed status and stopping collecting data until the data of multiple target road segments are collected.
[0082] For example: The execution time is 9:00 p.m. and the target road segment is a tunnel segment. Then, when the current time is 9:00 p.m., the vehicle can drive according to the collection route. When the vehicle reaches the tunnel segment, set the collection status of the tunnel segment to the in - collection status and start to collect data. When the vehicle exits the tunnel segment, set the collection status of the tunnel segment to the collected - completed status and stop collecting data until the data of multiple target road segments in the collection route are collected. In the present invention, it is not necessary to collect all the data on the collection route, but only to collect data for the target road segments, thus not occupying a large amount of vehicle computing resources.
[0083] In the present invention, the vehicle can be equipped with multiple different sensors. When starting to collect data, the multiple different sensors can start working to collect data. The data collected can be the driving data of the vehicle, the environmental data of the road, or other data. Specifically, the data collected is set according to the actual situation, and the present invention does not make specific limitations here.
[0084] In the embodiment of the present invention, after the data collection is completed, the collected data can also be packaged and stored. Among them, each target road segment corresponds to a data packet, and then the data packets are uploaded to the cloud server for storage, so that the cloud server stores the data corresponding to a specific scenario.
[0085] In an embodiment of the present invention, a collection rule is obtained, and the collection rule is determined according to the collection requirements of a target collection scenario; a collection area and map data corresponding to the collection area are obtained; the collection area is determined according to the target collection scenario; according to the map data corresponding to the collection area, a target road section that meets the collection rule is determined; the current position and collection time of the vehicle are obtained, and according to the current position of the vehicle and the target road section, a collection plan is generated; the collection time is determined according to the target collection scenario; data is collected according to the collection plan. Thereby, data corresponding to the target collection scenario is collected, solving the problem of scarce driving data in a specific scenario, and collecting data according to the generated collection plan can save the computing resources of the vehicle.
[0086] It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0087] Referring to Figure 2 , a structural block diagram of a data collection device provided by an embodiment of the present invention is shown. The device is applied to a vehicle and specifically may include the following modules:
[0088] A first acquisition module 201, configured to acquire a collection rule, where the collection rule is determined according to the collection requirements of a target collection scenario;
[0089] A second acquisition module 202, configured to acquire a collection area and map data corresponding to the collection area; the collection area is determined according to the target collection scenario;
[0090] A determination module 203, configured to determine a target road section that meets the collection rule according to the map data corresponding to the collection area;
[0091] A generation module 204, configured to acquire the current position and collection time of the vehicle, and generate a collection plan according to the current position of the vehicle and the target road section; the collection time is determined according to the target collection scenario;
[0092] A collection module 205, configured to collect data according to the collection plan.
[0093] In an embodiment, the vehicle is connected to a cloud server; the target collection scenario includes at least one of a scenario description, a collection time, a weather condition, a road surface condition, and a light condition; the first acquisition module 201 includes:
[0094] The first acquisition sub-module is configured to acquire the collection rules sent by the cloud server; the collection rules are determined by the cloud server according to the collection requirements of the target collection scenario; the collection requirements are determined by the cloud server according to the target collection scenario.
[0095] In one embodiment, the collection rules include the map element screening conditions; the determination module 203 includes:
[0096] The second acquisition sub-module is configured to acquire the map elements in the collection area from the map data.
[0097] The determination module is configured to determine the target map elements that meet the map element screening conditions among the map elements in the collection area, and determine the road section containing the target map elements as the target road section.
[0098] In one embodiment, the collection plan includes a collection route and an execution time; the collection route includes a plurality of the target road sections; the generation module 204 includes:
[0099] The third acquisition sub-module is configured to acquire the collection time and determine the execution time according to the collection time.
[0100] The fourth acquisition sub-module is configured to acquire the current position of the vehicle, and determine the starting point and the ending point according to the current position of the vehicle, and use the target road section as a passing point.
[0101] The generation sub-module is configured to generate a collection route according to the starting point, the ending point and the passing point.
[0102] In one embodiment, the collection module 205 includes:
[0103] The first setting module is configured to drive according to the collection route when the current time reaches the execution time, and set the collection status of the target road section to the in-progress collection status when the vehicle arrives at the target road section, and start collecting data.
[0104] The second setting module is configured to set the collection status of the target road section to the collection completed status when the vehicle drives out of the target road section, and stop collecting data until the data collection of multiple target road sections is completed.
[0105] In one embodiment, the target collection scenario is determined by the cloud server according to the historical data of multiple collection scenarios acquired cumulatively.
[0106] In one embodiment, the second acquisition module 202 includes:
[0107] A fifth acquisition sub-module, configured to acquire the acquisition area corresponding to the target acquisition scenario sent by the cloud server, and acquire the map data corresponding to the acquisition area from a preset map.
[0108] In an embodiment of the present invention, a first acquisition module is configured to acquire an acquisition rule, where the acquisition rule is determined according to the acquisition requirements of the target acquisition scenario; a second acquisition module is configured to acquire an acquisition area and the map data corresponding to the acquisition area; the acquisition area is determined according to the target acquisition scenario; a determination module is configured to determine a target road section that meets the acquisition rule according to the map data corresponding to the acquisition area; a generation module is configured to acquire the current position of the vehicle and the acquisition time, and generate an acquisition plan according to the current position of the vehicle and the target road section; the acquisition time is determined according to the target acquisition scenario; and an acquisition module is configured to acquire data according to the acquisition plan. Thereby, the data corresponding to the target acquisition scenario is acquired, the problem of scarce driving data in a specific scenario is solved, and acquiring data according to the generated acquisition plan can save the computing resources of the vehicle.
[0109] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiment.
[0110] An embodiment of the present invention further provides a vehicle, including:
[0111] It includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements each process of the above data acquisition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0112] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above data acquisition method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0113] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other.
[0114] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention can take the form of all-hardware embodiments, all-software embodiments, or embodiments combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0115] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate a device for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks.
[0116] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device that implements the functions specified in Figure 1 one or more of the flows Figure 1 or blocks.
[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, such that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks.
[0118] Although the preferred embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0119] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or terminal device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.
[0120] The above has introduced in detail a data acquisition method, a data acquisition device, a vehicle and a computer-readable storage medium provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A data acquisition method, characterized in that, The method is applied to a vehicle, and the method includes: Obtaining a collection rule, where the collection rule is determined according to the collection requirements of a target collection scenario; Obtaining a collection area and map data corresponding to the collection area; the collection area is determined according to the target collection scenario; Determining a target road section that meets the collection rule according to the map data corresponding to the collection area; Obtaining the current position and collection time of the vehicle, and generating a collection plan according to the current position of the vehicle and the target road section; the collection time is determined according to the target collection scenario; Collecting data according to the collection plan.
2. The data acquisition method according to claim 1, wherein The vehicle is connected to a cloud server; the target collection scenario includes at least one of a scenario description, a collection time, a weather condition, a road surface condition, and a light condition; the obtaining of the collection rule, where the collection rule is determined according to the collection requirements of the target collection scenario, includes: Obtaining the collection rule sent by the cloud server; the collection rule is determined by the cloud server according to the collection requirements of the target collection scenario; the collection requirements are determined by the cloud server according to the target collection scenario.
3. The data acquisition method according to claim 1, characterized in that, The collection rule includes the map element screening condition; The determining of the target road section that meets the collection rule according to the map data corresponding to the collection area includes: Obtaining map elements in the collection area from the map data; Determining target map elements that meet the map element screening condition among the map elements in the collection area, and determining the road section containing the target map elements as the target road section.
4. The data acquisition method according to claim 2, wherein The collection plan includes a collection route and an execution time; the collection route includes multiple target road sections; The obtaining of the current position and collection time of the vehicle, and generating a collection plan according to the current position of the vehicle and the target road section, includes: Obtaining the collection time, and determining the execution time according to the collection time; Obtaining the current position of the vehicle, and determining a starting point and an ending point according to the current position of the vehicle, and using the target road section as a waypoint; Generating a collection route according to the starting point, the ending point, and the waypoint.
5. The data acquisition method according to claim 4, wherein The collecting of data according to the collection plan includes: When the current time reaches the execution time, driving according to the collection route, and setting the collection status of the target road section to the in - collection status when the vehicle arrives at the target road section, and starting to collect data; Setting the collection status of the target road section to the collection - completed status when the vehicle drives out of the target road section, and stopping collecting data until the data of multiple target road sections is collected.
6. The data acquisition method according to claim 2, wherein The target collection scenario is determined by the cloud server according to the historical data of multiple collected scenarios obtained cumulatively.
7. The data acquisition method according to claim 2, wherein The obtaining of the collection area and the map data corresponding to the collection area includes: Obtaining the collection area corresponding to the target collection scenario sent by the cloud server, and obtaining the map data corresponding to the collection area from a preset map.
8. A data acquisition device, characterized in that, The device is applied to a vehicle, and the device includes: A first obtaining module, configured to obtain a collection rule, where the collection rule is determined according to the collection requirements of a target collection scenario; A second acquisition module, configured to acquire an acquisition area and map data corresponding to the acquisition area; the acquisition area is determined according to the target acquisition scenario; A determination module, configured to determine a target road section that meets the acquisition rule according to the map data corresponding to the acquisition area; A generation module, configured to acquire the current position and acquisition time of the vehicle, and generate an acquisition plan according to the current position of the vehicle and the target road section; the acquisition time is determined according to the target acquisition scenario; An acquisition module, configured to acquire data according to the acquisition plan.
9. A vehicle, characterized in that, Comprising: A processor, a memory, and a computer program stored on the memory and capable of running on the processor, where when the computer program is executed by the processor, the steps of the data acquisition method according to any one of claims 1-7 are implemented.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data acquisition method according to any one of claims 1-7 are implemented.