A method and device for collecting road target samples
By obtaining the real-time location and visual road conditions information of the floating vehicle terminal, and automatically determining whether to issue a collection task, the problem of obtaining road target sample data in different visual states in the prior art is solved, and efficient and low-cost data collection is achieved.
Patent Information
- Application Number
- CN202111515192.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-12-10
AI Technical Summary
The prior art is difficult to effectively obtain a large number of actual road target sample data in different road sections under different visual states, and the collection cost is relatively high.
By obtaining the real-time location and real-time visual road condition information of the floating vehicle terminal, we can determine whether to issue a collection task to the floating vehicle terminal, so that the floating vehicle terminal only needs to collect tasks according to the instructions, without judging the visual road condition, and the load is light.
The floating vehicle terminal can quickly and conveniently obtain a large number of road target sample data under different visual road conditions, reducing labor cost consumption and economic cost investment.
Smart Images

Figure CN114254896B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of big data, and particularly to a method and device for collecting road target samples. Background Art
[0002] In recent years, with the progress of technology and the development of society, the application of artificial intelligence has advanced by leaps and bounds in many fields. Automobile automation and intelligent technologies such as driverless are constantly improving, and a large number of samples of road target states under different visual conditions are required for learning and testing in the process of technology improvement.
[0003] Currently, the sample data used in machine learning mainly uses publicly available data sets or is obtained by setting up fixed camera devices by oneself; among them, the number of samples in the publicly available data sets is limited and cannot better meet the actual needs of machine learning, and the samples collected by the fixed camera devices set up have fixed positions, which not only has a large construction cost, but also cannot obtain the actual road state samples in different road sections under different visual states. Therefore, how to obtain a large number of actual road state samples in different road sections under different visual states at a reduced cost has become an urgent problem to be solved. Summary of the Invention
[0004] The technical problem to be solved by the present invention is: to provide a method and device for collecting road target samples, which determine whether to issue a collection task to a floating vehicle terminal by obtaining the real-time position and real-time visual road condition information of the floating vehicle terminal, so that the floating vehicle terminal only needs to perform task collection according to the instruction without judging the visual road condition, with a light load, and at the same time enables the floating vehicle terminal to obtain a large number of road target sample data under different visual road conditions more quickly and conveniently, reducing the consumption of labor costs and the investment of economic costs.
[0005] To solve the above technical problem, the present invention provides a method for collecting road target samples, including:
[0006] Obtain and configure tasks for multiple floating vehicle terminals according to the road target sample collection task;
[0007] Traverse the multiple floating vehicle terminals in sequence and detect the task execution status of the multiple floating vehicle terminals;
[0008] When it is detected that the task execution status of the current floating vehicle terminal is not executed, obtain and retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal, and at the same time, combine the sample category collection quantity and sample collection quota corresponding to the current floating vehicle terminal to determine whether to issue a collection task;
[0009] When a collection task is issued, control the current floating vehicle terminal to execute the collection task, and in real-time obtain and update the collection quantity of the sample category, the task execution status of the current floating vehicle terminal, and the sample collection quota according to the road target sample data collected by the current floating vehicle terminal, and return to the step of "sequentially traversing the multiple floating vehicle terminals" until the road target sample collection task is completed.
[0010] Further, obtaining and performing task configuration on multiple floating vehicle terminals according to the road target sample collection task specifically includes:
[0011] Obtain the road target sample collection task, where the road target sample collection task includes the sample category and the collection quantity of the sample category corresponding to the sample category.
[0012] According to the sample category and the collection quantity of the sample category, configure multiple floating vehicle terminals as needed, and perform task configuration on the multiple floating vehicle terminals so that each floating vehicle terminal is set with a corresponding sample category and sample collection quota.
[0013] Further, obtaining and according to the real-time position of the current floating vehicle terminal, retrieving the visual road condition information of the real-time position, and at the same time combining the sample collection quantity and sample collection quota corresponding to the current floating vehicle terminal to determine whether to issue a collection task, specifically:
[0014] Obtain and according to the real-time position of the current floating vehicle terminal, calculate the section where the current floating vehicle terminal is located, and retrieve the current visual road condition information of the section.
[0015] At the same time, obtain the sample collection quantity and sample collection quota corresponding to the current floating vehicle terminal; determine whether the sample collection quantity meets the preset sample collection quantity, and whether the sample collection quota of the current floating vehicle meets the preset sample collection quota.
[0016] If the sample collection quantity does not meet the preset sample collection data, and at the same time the sample collection quota of the current floating vehicle does not meet the preset sample collection quota, determine whether the current visual road condition information meets the collection conditions. When the collection conditions are met, output the judgment result as issuing a collection task.
[0017] Further, after detecting the task execution status of the multiple floating vehicle terminals, it further includes:
[0018] When it is detected that the task execution status of the current floating vehicle terminal is being executed, obtain and according to the real-time position of the current floating vehicle terminal, retrieve the visual road condition information of the real-time position.
[0019] Determine whether the road condition information at the real-time position meets the acquisition condition. If it meets the acquisition condition, send an acquisition termination instruction to cause the floating vehicle terminal to terminate the acquisition task;
[0020] Obtain and update the sample category acquisition quantity, the task execution status of the current floating vehicle terminal, and the sample acquisition quota according to the road target sample data uploaded by the floating vehicle terminal.
[0021] Further, the task distribution module is used to control the current floating vehicle terminal to execute the acquisition task when distributing the acquisition task. Specifically:
[0022] Send the acquisition task to the current floating vehicle terminal by calling the floating vehicle terminal interface, where the acquisition task includes the first task duration and the upload frame rate;
[0023] Judge whether the task duration of the current floating vehicle terminal meets the first task duration according to the first task duration;
[0024] When it is satisfied, control the current floating vehicle terminal to stop the acquisition task; when it is not satisfied, control the current floating vehicle terminal to start executing the acquisition task.
[0025] Further, the present invention also provides a device for collecting road target samples, including: a configuration module, a status detection module, a judgment module, and a task distribution module;
[0026] Among them, the configuration module is used to obtain and configure tasks for multiple floating vehicle terminals according to the road target sample acquisition task;
[0027] The status detection module is used to sequentially traverse the multiple floating vehicle terminals and detect the task execution status of the multiple floating vehicle terminals;
[0028] The judgment module is used to, when detecting that the task execution status of the current floating vehicle terminal is not executed, obtain and retrieve the visual road condition information at the real-time position according to the real-time position of the current floating vehicle terminal, and at the same time, in combination with the sample category acquisition quantity and the sample acquisition quota corresponding to the current floating vehicle terminal, judge whether to issue an acquisition task;
[0029] The task distribution module is used to control the current floating vehicle terminal to execute the acquisition task when distributing the acquisition task, obtain and update the sample category acquisition quantity, the task execution status of the current floating vehicle terminal, and the sample acquisition quota in real time according to the road target sample data collected by the current floating vehicle terminal, and return to the step of "sequentially traversing the multiple floating vehicle terminals" until the road target sample acquisition task is completed.
[0030] Further, the configuration module is used to obtain and, according to the road target sample collection task, configure tasks for multiple floating vehicle terminals, specifically as follows:
[0031] Obtain the road target sample collection task, where the road target sample collection task includes sample categories and the corresponding sample category collection quantities for the sample categories;
[0032] According to the sample categories and the sample category collection quantities, configure multiple floating vehicle terminals as needed and configure tasks for the multiple floating vehicle terminals, so that each floating vehicle terminal is set with corresponding sample categories and sample collection quotas.
[0033] Further, the judgment module is used to obtain and, according to the real-time position of the current floating vehicle terminal, retrieve the visual road condition information of the real-time position, and at the same time, in combination with the sample collection quantity and sample collection quota corresponding to the current floating vehicle terminal, judge whether to issue a collection task, specifically as follows:
[0034] Obtain and, according to the real-time position of the current floating vehicle terminal, calculate the section where the current floating vehicle terminal is located and retrieve the current visual road condition information of the section;
[0035] At the same time, obtain the sample category collection quantity and sample collection quota corresponding to the current floating vehicle terminal; judge whether the sample category collection quantity meets the preset sample category collection quantity and whether the sample collection quota of the current floating vehicle meets the preset sample collection quota;
[0036] If the sample category collection quantity does not meet the preset sample category collection quantity and at the same time the sample collection quota of the current floating vehicle does not meet the preset sample collection quota, judge whether the current visual road condition information meets the collection conditions. When the collection conditions are met, output the judgment result as issuing a collection task.
[0037] Further, the road target sample collection device further includes: a task termination module;
[0038] When it is detected that the task execution status of the current floating vehicle terminal is being executed, obtain and, according to the real-time position of the current floating vehicle terminal, retrieve the visual road condition information of the real-time position;
[0039] Judge whether the road condition information of the real-time position meets the collection conditions. If the collection conditions are met, send a collection termination instruction to enable the floating vehicle terminal to terminate the collection task;
[0040] Obtain and, according to the road target sample data uploaded by the floating vehicle terminal, update the sample category collection quantity, the task execution status of the current floating vehicle terminal, and the sample collection quota.
[0041] Further, the task distribution module is used to control the current floating vehicle terminal to execute the collection task when distributing the collection task, specifically as follows:
[0042] The collection task is distributed to the current floating vehicle terminal by calling the floating vehicle terminal interface, where the collection task includes a first task duration and an upload frame rate;
[0043] According to the first task duration, it is judged whether the task duration of the current floating vehicle terminal meets the first task duration;
[0044] When it is satisfied, the current floating vehicle terminal is controlled to stop the collection task; when it is not satisfied, the current floating vehicle terminal is controlled to start executing the collection task.
[0045] Compared with the prior art, the method and device for collecting road target samples according to the embodiments of the present invention have the following beneficial effects:
[0046] Based on the obtained road target sample collection task, task configuration is performed on multiple floating vehicle terminals, and the terminals are installed on floating vehicles, so that the collection range is larger, and more real and diverse road samples are obtained than fixed devices; by detecting the task execution status of multiple floating vehicle terminals; when it is detected that the task execution status of the current floating vehicle terminal is not executed, the road condition information of the real-time position is retrieved according to the real-time position of the current floating vehicle terminal, and at the same time, in combination with the collection quantity of the sample categories corresponding to the current floating vehicle terminal and the sample collection quota, it is judged whether to distribute the collection task; when distributing the collection task, the current floating vehicle terminal is controlled to execute the collection task; the collection quantity of the sample categories, the task execution status of the current floating vehicle terminal, and the sample collection quota are updated in real time according to the road target sample data collected by the current floating vehicle terminal until the road target sample collection task is completed. Compared with the prior art, the present invention judges whether to distribute the collection task to the floating vehicle terminal by obtaining the real-time position and real-time visual road condition information of the floating vehicle terminal, so that the floating vehicle terminal only needs to perform task collection according to the instruction without judging the visual road condition, with a light load, and at the same time enables the floating vehicle terminal to obtain a large number of road target sample data under different visual road conditions more quickly and conveniently, reducing the consumption of labor costs and the investment of economic costs. Description of the Drawings
[0047] Figure 1 is a schematic flowchart of an embodiment of a method for collecting road target samples provided by the present invention;
[0048] Figure 2 is a schematic structural diagram of an embodiment of a device for collecting road target samples provided by the present invention;
[0049] Figure 3It is a schematic diagram of the communication process between the floating vehicle terminal and the server in an embodiment of a method for collecting road target samples provided by the present invention;
[0050] Figure 4 It is a schematic diagram of the sample collection process of the floating vehicle terminal in an embodiment of a method for collecting road target samples provided by the present invention. Detailed implementation manners
[0051] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.
[0052] Embodiment 1
[0053] See Figure 1 , Figure 1 It is a schematic diagram of the process of an embodiment of a method for collecting road target samples provided by the present invention. As Figure 1 shown, the method includes Step 101 - Step 104, which are specifically as follows:
[0054] Step 101: Obtain and configure tasks for multiple floating vehicle terminals according to the road target sample collection task.
[0055] In this embodiment, the server obtains the road target sample collection task. Among them, the road target sample collection task includes the sample category and the corresponding sample collection quantity for the sample category; the sample category includes but is not limited to vehicles, pedestrians, roads, and traffic signs; according to the sample category and the corresponding sample collection quantity for the sample category, increase or decrease the number of floating vehicle terminals to achieve the on-demand configuration of multiple floating vehicle terminals. At the same time, for each floating vehicle terminal, set information such as its corresponding model, name, and real-time upload frequency.
[0056] In this embodiment, the server also configures floating vehicle terminals for each sample category according to the sample category in the road target sample collection task. At the same time, based on the corresponding sample collection quantity for the sample category, set the corresponding sample collection quota for the floating vehicle terminals under this sample category to achieve the task configuration for multiple floating vehicle terminals, so that each floating vehicle terminal is set with the corresponding sample category and sample collection quota.
[0057] In this embodiment, using floating vehicle terminals to collect road target samples enables a larger collection range and a larger number of road targets to be collected. Compared with fixed devices, more real and diverse road target sample data can be obtained.
[0058] Step 102: Traverse the multiple floating vehicle terminals in sequence, and detect the task execution status of the multiple floating vehicle terminals.
[0059] In this embodiment, the floating vehicle terminal communicates with the server by sending messages regularly according to the set real-time upload frequency, and periodically reports the real-time position information to the server, so that the server can obtain the real-time position of the current floating vehicle terminal in real time. The floating vehicle terminal maintains the link communication with the server by sending the reported information regularly, so that the server can monitor the task execution status of the floating vehicle terminal in real time. Among them, the communication timing diagram between the floating vehicle terminal and the server is as Figure 3 shown.
[0060] In this embodiment, traverse the multiple floating vehicle terminals in sequence, detect the current task execution status of each floating vehicle terminal, and update the task execution status of each floating vehicle terminal to the server in real time, so as to realize the real-time query of the floating vehicle terminal status.
[0061] Step 103: When it is detected that the task execution status of the current floating vehicle terminal is not executed, obtain and retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal, and at the same time, combine the collected quantity of the sample category corresponding to the current floating vehicle terminal and the sample collection quota, and judge whether to issue a collection task.
[0062] In this embodiment, when it is detected that the task execution status of the current floating vehicle terminal is not executed, according to the communication connection relationship between the floating vehicle terminal and the server, the real-time position of the floating vehicle terminal is obtained in real time, the road section information where the floating vehicle terminal is currently located is calculated according to the real-time position, and at the same time, according to the calculated road section information, the current visual road condition information of this road section is retrieved, such as lighting, meteorology, paving, etc.
[0063] In this embodiment, obtain the collected quantity of the sample category corresponding to the current floating vehicle terminal and the sample collection quota; judge whether the collected quantity of the sample category corresponding to the current floating vehicle terminal meets the preset collected quantity of the sample category, where the preset collected quantity of the sample category is the total collection quantity of this sample category in the road target sample collection task.
[0064] In this embodiment, if the collected quantity of the sample category corresponding to the current floating vehicle terminal meets the preset collected quantity of the sample category, no collection task is issued to the current floating vehicle terminal, and it is directly skipped to traverse the next floating vehicle terminal; if the collected quantity of the sample category corresponding to the current floating vehicle terminal does not meet the preset collected quantity of the sample category, continue to judge whether the sample collection quota of the current floating vehicle meets the preset sample collection quota; where the preset sample collection quota is the total collection quota of this sample category assigned to the current floating vehicle terminal according to the road target sample collection task.
[0065] In this embodiment, if the sample collection quota of the current floating vehicle meets the preset sample collection quota, it is considered that the sample collection quota of the current floating vehicle terminal has been completed, and no collection task is issued to this floating vehicle terminal. Instead, it is directly skipped and the next floating vehicle terminal is traversed. If the sample collection quota of the current floating vehicle does not meet the preset sample collection quota, based on the obtained current visual road condition information, it is judged whether the current visual road condition information meets the collection conditions. When the collection conditions are met, the judgment result is to issue a collection task. Among them, the current visual road condition information includes the meteorological and light prediction values of the current section of the road.
[0066] In this embodiment, based on the meteorological and light prediction values of the current section of the road, the first task duration and frame rate of this collection task are calculated. As an example in this embodiment, the light prediction value changes according to time. When it reaches the light threshold, the collection ends, and this time period is the first task duration. The frame rate is obtained from the set "meteorology - light range table".
[0067] As a preferred solution in this embodiment, when it is detected that the task execution status of the current floating vehicle terminal is being executed, no collection task is issued to this floating terminal. At the same time, the real-time position of the floating vehicle terminal is obtained in real time, the road section information where the floating vehicle terminal is currently located is calculated based on the real-time position, and at the same time, according to the calculated road section information, the current visual road condition information of this road section is retrieved. By comparing the real-time visual road condition information of the current floating vehicle terminal with the visual road condition information at the time of issuing the collection task, if the real-time visual road condition information of the current floating vehicle terminal has changed, such as a change in the light condition or a change in the meteorological condition, it is judged that the real-time road condition information of the current floating vehicle terminal does not meet the collection conditions. The server side sends a collection task termination instruction by calling the in-vehicle terminal interface, so that after the floating vehicle terminal receives the task termination instruction, it terminates the current sample collection task and uploads the road target sample data already collected in this sample collection task to the server side. The server side stores the road target strict non-data in the sample library according to the road target sample data obtained from the current floating vehicle terminal and uploaded by the floating vehicle terminal, accumulates the sample category collection quantity, updates the task execution status of the current floating vehicle terminal, and at the same time accumulates the sample collection quota of the current floating vehicle terminal.
[0068] In this embodiment, the server side can start or stop the sample collection task according to the real-time position of the in-vehicle terminal and analyze the real-time visual road condition information, making the collection of road detection target samples more automatic and convenient.
[0069] Step 104: When the collection task is issued, control the current floating vehicle terminal to execute the collection task, and in real time obtain and update the collection quantity of the sample category, the task execution status of the current floating vehicle terminal, and the sample collection quota according to the road target sample data collected by the current floating vehicle terminal. Then return to the step of "sequentially traversing the multiple floating vehicle terminals" until the road target sample collection task is completed.
[0070] In this embodiment, the server side issues the collection task by calling the floating vehicle terminal interface, and issues collection task information such as the first task duration and frame rate to the current floating vehicle terminal, so as to control the floating vehicle terminal to receive the collection task command and start the collection task. The current floating vehicle terminal collects samples according to the first task duration and frame rate of the issued collection task to determine whether the current collection task duration is full. If it is full, the collection task is stopped; if it is still within the collection duration, the sample collection task continues to be executed. Finally, by calling the reporting interface of the server side, the collected road target sample data is reported to the server side, and the road target sample data is stored in the sample library. At the same time, the server side updates the collection quantity of the sample category and the sample collection quota of the current floating vehicle terminal according to the reported road target sample data collected by the current floating vehicle terminal, and updates the task execution status of the vehicle-mounted terminal in the server side queue. In this embodiment, the process of the floating vehicle terminal collecting samples is as Figure 4 shown.
[0071] In this embodiment, for the road target sample data collected by the floating vehicle terminal received by the server side, the server side performs label processing on the received road target sample data by combining task collection information, road condition information, etc., and manages all reported road target sample data through labels.
[0072] In this embodiment, after the server side updates the information of the current floating vehicle terminal, it returns to step 102 to continue traversing multiple floating vehicle terminals downward until the road target sample collection tasks are all issued, so that multiple floating vehicle terminals complete their respective corresponding collection tasks.
[0073] As an example in this embodiment, to view and maintain the status, real-time location, task situation, sample collection situation, and collected sample data of the floating vehicle terminal, it can be done by establishing a sample collection APP or a sample collection official account.
[0074] In this embodiment, functions such as sample category, sample collection task configuration, real-time visual road condition information analysis of the floating vehicle terminal, and start / stop of the collection task are all implemented on the server side. The floating vehicle terminal is only used to collect road target sample data according to the instructions of the server side, without the need to judge the visual road conditions, and has a light load.
[0075] See Figure 2 ,Figure 2 This is a schematic flowchart of an embodiment of a device for collecting road target samples provided by the present invention. As Figure 2 shown, the device includes a configuration module 201, a status detection module 202, a judgment module 203, and a task distribution module 204, specifically as follows:
[0076] The configuration module 201 is used to obtain and configure tasks for multiple floating vehicle terminals according to the road target sample collection task.
[0077] In this embodiment, the server obtains the road target sample collection task. Among them, the road target sample collection task includes the sample category and the corresponding sample collection quantity for the sample category; the sample category includes, but is not limited to, vehicles, pedestrians, roads, and traffic signs; according to the sample category and the corresponding sample collection quantity for the sample category, the number of floating vehicle terminals is increased or decreased to achieve the on-demand configuration of multiple floating vehicle terminals. At the same time, information such as the model, name, and real-time upload frequency of each floating vehicle terminal is set for each floating vehicle terminal.
[0078] In this embodiment, the server also configures floating vehicle terminals for each sample category according to the sample category in the road target sample collection task to execute the sample collection task for that sample category. At the same time, based on the sample collection quantity corresponding to the sample category, a corresponding sample collection quota is set for the floating vehicle terminals under that sample category to achieve the task configuration for multiple floating vehicle terminals, so that each floating vehicle terminal is set with the corresponding sample category and sample collection quota.
[0079] In this embodiment, the use of floating vehicle terminals for road target sample collection enables a larger collection range and a greater number of road targets collected. Compared with fixed devices, more real and diverse road target sample data can be obtained.
[0080] The status detection module 202 is used to sequentially traverse the multiple floating vehicle terminals and detect the task execution status of the multiple floating vehicle terminals.
[0081] In this embodiment, the floating vehicle terminal periodically sends messages to communicate with the server according to the set real-time upload frequency, and periodically reports the real-time position information to the server so that the server can obtain the real-time position of the current floating vehicle terminal in real time. The floating vehicle terminal maintains the link communication with the server by periodically sending the reported information so that the server can monitor the task execution status of the floating vehicle terminal in real time. Among them, the communication timing diagram between the floating vehicle terminal and the server is as Figure 3 shown.
[0082] In this embodiment, multiple floating vehicle terminals are traversed in sequence, the current task execution status of each floating vehicle terminal is detected, and the task execution status of each floating vehicle terminal is updated to the server in real time, so as to realize real-time query of the status of the floating vehicle terminals.
[0083] The judgment module 203 is configured to, when it is detected that the task execution status of the current floating vehicle terminal is not executed, obtain and retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal, and at the same time, in combination with the collected quantity of sample categories corresponding to the current floating vehicle terminal and the sample collection quota, judge whether to issue a collection task.
[0084] In this embodiment, when it is detected that the task execution status of the current floating vehicle terminal is not executed, according to the communication connection relationship between the floating vehicle terminal and the server, the real-time position of the floating vehicle terminal is obtained in real time, the road section information where the floating vehicle terminal is currently located is calculated according to the real-time position, and at the same time, according to the calculated road section information, the current visual road condition information of this road section is retrieved, such as illumination, meteorology, paving, etc.
[0085] In this embodiment, the collected quantity of sample categories corresponding to the current floating vehicle terminal and the sample collection quota are obtained; it is judged whether the collected quantity of sample categories corresponding to the current floating vehicle terminal meets the preset collected quantity of sample categories, where the preset collected quantity of sample categories is the total collection quantity of this sample category in the road target sample collection task.
[0086] In this embodiment, if the collected quantity of sample categories corresponding to the current floating vehicle terminal meets the preset collected quantity of sample categories, no collection task is issued to the current floating vehicle terminal, and it is directly skipped to traverse the next floating vehicle terminal; if the collected quantity of sample categories corresponding to the current floating vehicle terminal does not meet the preset collected quantity of sample categories, it is continued to judge whether the sample collection quota of the current floating vehicle meets the preset sample collection quota; where the preset sample collection quota is the total collection quota of this sample category allocated to the current floating vehicle terminal according to the road target sample collection task.
[0087] In this embodiment, when the sample collection quota of the current floating vehicle meets the preset sample collection quota, it is considered that the sample collection quota of the current floating vehicle terminal has been completed, and no collection task is issued to this floating vehicle terminal, and it is directly skipped to traverse the next floating vehicle terminal; when the sample collection quota of the current floating vehicle does not meet the preset sample collection quota, according to the obtained current visual road condition information, it is judged whether the current visual road condition information meets the collection conditions, and when the collection conditions are met, the judgment result is output as issuing a collection task; where the current visual road condition information includes the meteorological and illumination prediction values of the current road section.
[0088] In this embodiment, according to the predicted meteorological and light values of the current road section, the first task duration and frame rate of this acquisition task are calculated. As an example in this embodiment, the predicted light value changes according to time, and the acquisition ends when it reaches the light threshold, and this time period is the first task duration; the frame rate is obtained from the set "meteorology - light range table".
[0089] As a preferred solution in this embodiment, when it is detected that the task execution status of the current floating vehicle terminal is being executed, no acquisition task is sent to the floating terminal; at the same time, the real-time position of the floating vehicle terminal is obtained in real time, the road section information where the floating vehicle terminal is currently located is calculated according to the real-time position, and at the same time, according to the calculated road section information, the current visual road condition information of this road section is retrieved. By comparing the real-time visual road condition information of the current floating vehicle terminal with the visual road condition information at the time of sending the acquisition task, if the real-time visual road condition information of the current floating vehicle terminal has changed, such as a change in the light condition or a change in the meteorological condition, it is determined that the real-time road condition information of the current floating vehicle terminal does not meet the acquisition conditions, and the server side sends an acquisition task termination instruction by calling the in-vehicle terminal interface, so that after the floating vehicle terminal receives the task termination instruction, it terminates the current sample acquisition task and uploads the road target sample data already collected in this sample acquisition task to the server side; the server side stores the road target strict data in the sample library according to the road target sample data obtained by the current floating vehicle terminal and uploaded by the floating vehicle terminal, accumulates the sample category acquisition quantity, updates the task execution status of the current floating vehicle terminal, and at the same time accumulates the sample acquisition quota of the current floating vehicle terminal.
[0090] In this embodiment, the server side can start or stop the sample acquisition task according to the real-time position of the in-vehicle terminal and analyze the real-time visual road condition information, making the acquisition of road detection target samples more automatic and convenient.
[0091] The task sending module 204 is used to control the current floating vehicle terminal to execute the acquisition task when sending the acquisition task, obtain and update the sample category acquisition quantity, the task execution status of the current floating vehicle terminal, and the sample acquisition quota according to the road target sample data collected by the current floating vehicle terminal in real time, and return to the step of "sequentially traversing the multiple floating vehicle terminals" until the road target sample acquisition task is completed.
[0092] In this embodiment, the server issues a collection task by calling the floating vehicle terminal interface, and sends collection task information such as the first task duration and frame rate to the current floating vehicle terminal, so that the controlled floating vehicle terminal receives the collection task command and starts the collection task. The current floating vehicle terminal collects samples according to the first task duration and frame rate of the issued collection task to determine whether the current collection task duration is full. If it is satisfied, the collection task is stopped; if it is still within the collection duration, the sample collection task is continued; finally, by calling the reporting interface of the server, the collected road target sample data is reported to the server, and the road target sample data is stored in the sample library. At the same time, the server updates the sample category collection quantity and the sample collection quota of the current floating vehicle terminal according to the reported road target sample data collected by the current floating vehicle terminal, and updates the task execution status of the vehicle-mounted terminal in the server queue. In this embodiment, the process of the floating vehicle terminal collecting samples is as Figure 4 shown.
[0093] In this embodiment, for the road target sample data collected by the floating vehicle terminal received by the server, the received road target sample data is marked and tagged by combining task collection information, road condition information, etc., and all reported road target sample data is managed through tags.
[0094] In this embodiment, after the server updates the information of the current floating vehicle terminal, it returns to the status detection module 202 and continues to traverse multiple floating vehicle terminals downward until the road target sample collection tasks are all issued, so that multiple floating vehicle terminals complete their respective corresponding collection tasks.
[0095] As an example in this embodiment, to view and maintain the status, real-time location, task status, sample collection status, and collected sample data of the floating vehicle terminal, it can be done by establishing a sample collection APP or a sample collection official account.
[0096] In this embodiment, functions such as sample category, sample collection task configuration, real-time visual road condition information analysis of the floating vehicle terminal, and start / stop of the collection task are all implemented on the server side. The floating vehicle terminal is only used to collect road target sample data according to the instructions of the server side without judging the visual road conditions, and has a light load.
[0097] In summary, for a method and device for collecting road target samples according to the present invention, a task configuration is performed on multiple floating vehicle terminals through the obtained road target sample collection task, and the multiple floating vehicle terminals are sequentially traversed to detect the task execution status of the multiple floating vehicle terminals; when it is detected that the task execution status of the current floating vehicle terminal is not executed, the road condition information of the real-time position is retrieved according to the real-time position of the current floating vehicle terminal, and at the same time, in combination with the collection quantity of the sample categories corresponding to the current floating vehicle terminal and the sample collection quota, it is determined whether to issue a collection task; when a collection task is issued, the current floating vehicle terminal is controlled to execute the collection task; the collection quantity of the sample categories, the task execution status of the current floating vehicle terminal, and the sample collection quota are updated in real time according to the road target sample data collected by the current floating vehicle terminal, and the step of "sequentially traversing the multiple floating vehicle terminals" is returned until the road target sample collection task is completed. Compared with the prior art, the present invention determines whether to issue a collection task to the floating vehicle terminal by obtaining the real-time position and real-time visual road condition information of the floating vehicle terminal, so that the floating vehicle terminal only needs to perform task collection according to the instruction without judging the visual road condition, with a light load, and at the same time enables the floating vehicle terminal to obtain a large number of road target sample data under different visual road conditions more quickly and conveniently, reducing the consumption of labor costs and the investment of economic costs.
[0098] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the technical principle of the present invention, several improvements and substitutions can be made, and these improvements and substitutions should also be regarded as the protection scope of the present invention.
Claims
1. A method for collecting road target samples, characterized in that, Including: Obtain and configure tasks for multiple floating vehicle terminals according to the road target sample collection task, where the target sample collection task includes sample categories and the number of samples to be collected for each category; Traverse the multiple floating vehicle terminals in sequence and detect the task execution status of the multiple floating vehicle terminals; When it is detected that the task execution status of the current floating vehicle terminal is not executed, obtain and retrieve the visual road condition information of the real-time location according to the real-time location of the current floating vehicle terminal, and at the same time, combine the number of samples to be collected for the sample category corresponding to the current floating vehicle terminal and the sample collection quota to determine whether to issue a collection task; When a collection task is issued, control the current floating vehicle terminal to execute the collection task, obtain and update the number of samples to be collected for the sample category, the task execution status of the current floating vehicle terminal, and the sample collection quota in real time according to the road target sample data collected by the current floating vehicle terminal, and return to the step of "traversing the multiple floating vehicle terminals in sequence" until the road target sample collection task is completed; Among them, obtaining and retrieving the visual road condition information of the real-time location according to the real-time location of the current floating vehicle terminal, and at the same time, combining the number of samples to be collected for the sample category corresponding to the current floating vehicle terminal and the sample collection quota to determine whether to issue a collection task is specifically: obtaining and calculating the section where the current floating vehicle terminal is located according to the real-time location of the current floating vehicle terminal, and retrieving the current visual road condition information of the section; at the same time, obtaining the number of samples to be collected for the sample category corresponding to the current floating vehicle terminal and the sample collection quota; determining whether the number of samples to be collected for the sample category meets the preset number of samples to be collected for the sample category, and whether the sample collection quota of the current floating vehicle meets the preset sample collection quota; if the number of samples to be collected for the sample category does not meet the preset number of samples to be collected for the sample category, and at the same time the sample collection quota of the current floating vehicle does not meet the preset sample collection quota, determine whether the current visual road condition information meets the collection conditions, and when it meets the collection conditions, output the judgment result as issuing a collection task, where the current visual road condition information includes the meteorological and light prediction values of the current section; Calculate the first task duration and frame rate of the current collection task according to the meteorological and light prediction values of the current section. Among them, when a collection task is issued, controlling the current floating vehicle terminal to execute the collection task is specifically: issuing the collection task to the current floating vehicle terminal by calling the floating vehicle terminal interface, where the collection task includes the first task duration and the upload frame rate; according to the first task duration, determining whether the task duration of the current floating vehicle terminal meets the first task duration; when it meets, controlling the current floating vehicle terminal to stop the collection task; when it does not meet, controlling the current floating vehicle terminal to start executing the collection task; When it is detected that the task execution status of the current floating vehicle terminal is being executed, no collection task is issued to this floating terminal; at the same time, the real-time position of the floating vehicle terminal is obtained in real time, the road section information where the floating vehicle terminal is currently located is calculated based on the real-time position, and at the same time, according to the calculated road section information, the current visual road condition information of this road section is retrieved. By comparing the real-time visual road condition information of the current floating vehicle terminal with the visual road condition information at the time of issuing the collection task, if the real-time visual road condition information of the current floating vehicle terminal has changed, it is determined that the real-time road condition information of the current floating vehicle terminal does not meet the collection conditions, and the server side sends a collection task termination instruction by calling the in-vehicle terminal interface, so that after the floating vehicle terminal receives the task termination instruction, the current sample collection task is terminated.
2. The method for collecting road target samples according to claim 1, characterized in that, The obtaining and task configuration of multiple floating vehicle terminals according to the road target sample collection task are specifically as follows: Obtain the road target sample collection task, where the road target sample collection task includes the sample category and the collection quantity corresponding to the sample category; According to the sample category and the collection quantity of the sample category, configure multiple floating vehicle terminals as needed, and perform task configuration on the multiple floating vehicle terminals, so that each floating vehicle terminal is set with the corresponding sample category and sample collection quota.
3. The method for collecting road target samples according to claim 1, wherein After detecting the task execution status of the multiple floating vehicle terminals, it further includes: When it is detected that the task execution status of the current floating vehicle terminal is being executed, obtain and retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal; Judge whether the road condition information of the real-time position meets the collection conditions. If it meets the collection conditions, send a collection termination instruction to make the floating vehicle terminal terminate the collection task; Obtain and update the collection quantity of the sample category, the task execution status of the current floating vehicle terminal, and the sample collection quota according to the road target sample data uploaded by the floating vehicle terminal.
4. A collecting device for road target samples, characterized in that, It includes: A configuration module, a status detection module, a judgment module, and a task issuing module; Among them, the configuration module is used to obtain and perform task configuration on multiple floating vehicle terminals according to the road target sample collection task, where the target sample collection task includes the sample category and the collection quantity of the sample category; The status detection module is used to sequentially traverse the multiple floating vehicle terminals and detect the task execution status of the multiple floating vehicle terminals; The judgment module is used to, when it is detected that the task execution status of the current floating vehicle terminal is not executed, obtain and retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal, and at the same time, in combination with the collection quantity of the sample category and the sample collection quota corresponding to the current floating vehicle terminal, judge whether to issue a collection task; The task distribution module is used to control the current floating vehicle terminal to execute the acquisition task when distributing the acquisition task, and to update the acquisition quantity of the sample category, the task execution status of the current floating vehicle terminal, and the sample acquisition quota in real time according to the road target sample data collected by the current floating vehicle terminal, and return to the step of "sequentially traversing the multiple floating vehicle terminals" until the road target sample acquisition task is completed; Among them, to retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal, and at the same time, in combination with the sample acquisition quantity and the sample acquisition quota corresponding to the current floating vehicle terminal, to determine whether to distribute the acquisition task. Specifically: retrieve the current visual road condition information of the section where the current floating vehicle terminal is located by calculating the section where the current floating vehicle terminal is located according to the real-time position of the current floating vehicle terminal; at the same time, obtain the sample category acquisition quantity and the sample acquisition quota corresponding to the current floating vehicle terminal; determine whether the sample category acquisition quantity meets the preset sample category acquisition quantity, and whether the sample acquisition quota of the current floating vehicle meets the preset sample acquisition quota; if the sample category acquisition quantity does not meet the preset sample category acquisition quantity and the sample acquisition quota of the current floating vehicle does not meet the preset sample acquisition quota, determine whether the current visual road condition information meets the acquisition condition. When the acquisition condition is met, the judgment result is output as distributing the acquisition task, where the current visual road condition information includes the meteorological and light prediction values of the current section. Calculate the first task duration and frame rate of this acquisition task according to the meteorological and light prediction values of the current section. Among them, when distributing the acquisition task, to control the current floating vehicle terminal to execute the acquisition task, specifically: send the acquisition task to the current floating vehicle terminal by calling the floating vehicle terminal interface, where the acquisition task includes the first task duration and the upload frame rate; according to the first task duration, determine whether the task duration of the current floating vehicle terminal meets the first task duration; when it meets, control the current floating vehicle terminal to stop the acquisition task; when it does not meet, control the current floating vehicle terminal to start executing the acquisition task. When it is detected that the task execution status of the current floating vehicle terminal is being executed, no acquisition task is distributed to this floating terminal; at the same time, the real-time position of the floating vehicle terminal is obtained in real time, the section information where the floating vehicle terminal is currently located is calculated according to the real-time position, and at the same time, according to the calculated section information, the current visual road condition information of this section is retrieved. By comparing the real-time visual road condition information of the current floating vehicle terminal with the visual road condition information at the time of distributing the acquisition task, if the real-time visual road condition information of the current floating vehicle terminal has changed, it is determined that the real-time road condition information of the current floating vehicle terminal does not meet the acquisition condition, and the server sends an acquisition task termination instruction by calling the vehicle-mounted terminal interface, so that after the floating vehicle terminal receives the task termination instruction, the current sample acquisition task is terminated.
5. The acquisition device of a road target sample according to claim 4, characterized in that, The configuration module is used to configure tasks for multiple floating vehicle terminals according to the road target sample acquisition task, specifically: Obtain a road target sample collection task, where the road target sample collection task includes a sample category and the corresponding sample category collection quantity; According to the sample category and the sample category collection quantity, configure multiple floating vehicle terminals as needed, and configure tasks for the multiple floating vehicle terminals so that each floating vehicle terminal is set with a corresponding sample category and sample collection quota.
6. The acquisition device of a road target sample according to claim 4, characterized in that, It further includes: A task termination module; When it is detected that the task execution status of the current floating vehicle terminal is being executed, obtain and retrieve the visual road condition information of the real-time position according to the real-time position of the current floating vehicle terminal; Judge whether the road condition information of the real-time position meets the collection conditions. If the collection conditions are met, send a collection termination instruction to cause the floating vehicle terminal to terminate the collection task; Obtain and update the sample category collection quantity, the task execution status of the current floating vehicle terminal, and the sample collection quota according to the road target sample data uploaded by the floating vehicle terminal.
Citation Information
Patent Citations
Visual positioning network training method and device and unmanned equipment control method and device
CN111524190A
Driving assistance data acquisition method and system
CN111845728A