A high-precision map automatic extraction tool configuration management method and system
By automating the generation of configuration files and record management, the problems of tedious manual configuration and difficulty in traceability in high-precision map production are solved, achieving efficient production and management.
Patent Information
- Application Number
- CN202111576050.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2041-12-21
AI Technical Summary
In the process of creating high-precision maps, manually configuring production configuration files is tedious, resource-intensive, and difficult to trace.
By obtaining production configuration information based on a pre-defined configuration page, generating configuration files and adding production records, overwriting the production configuration files in the high-precision map automated extraction tool, and reorganizing key information into production records and saving them to the database, automated management is achieved.
Reduce manual intervention, improve production efficiency, lower the probability of errors, facilitate production record retrieval and traceability, and improve production management efficiency.
Smart Images

Figure CN114445569B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer applications, and in particular relates to a configuration management method and system for a high-precision map automated extraction tool. Background Technology
[0002] In the process of high-precision map production, the automatic generation of intermediate data for high-precision maps using high-precision map extraction tools with the intervention of artificial intelligence algorithms is a crucial step. Generally, automated high-precision map extraction tools for producing intermediate data require manual configuration of production profiles, a cumbersome process that consumes significant manpower and resources. Furthermore, the lack of monitoring throughout the entire production cycle makes it difficult to trace and track production data. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a high-precision map automated extraction tool configuration management method and system to solve the problems of cumbersome, labor-intensive, and difficult-to-trace process of manually configuring production files for extraction tools.
[0004] In a first aspect of the present invention, a configuration management method for a high-precision map automated extraction tool is provided, comprising:
[0005] Based on the pre-defined configuration page, the system obtains the input production configuration information and generates the corresponding configuration file or adds the corresponding production record on the server.
[0006] The generated configuration file is overridden in the high-precision map automated extraction tool;
[0007] Extract key information from the configuration file, reorganize it into production records, and save it to the database;
[0008] View production record information on the system page and export the production record information.
[0009] In a second aspect of the present invention, a configuration management system for a high-precision map automated extraction tool is provided, comprising:
[0010] The client is used to input production configuration information through a pre-defined configuration page, view production record information on the system page, and export production record information.
[0011] The system service module obtains the input production configuration information, generates the corresponding configuration file or adds the corresponding production record on the server based on the production configuration information, and extracts the key information in the configuration file to reorganize it into a production record.
[0012] The database is used to store production records;
[0013] An extraction tool used to overwrite the production configuration file in a high-precision map automated extraction tool based on the generated configuration file.
[0014] In a third aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor executes the computer program to implement the steps of the method as described in the first aspect of the present invention.
[0015] In a fourth aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method provided in the first aspect of the present invention.
[0016] In this embodiment of the invention, by automatically generating configuration files, manual intervention is reduced, labor costs are saved, production efficiency is improved, and the probability of errors is reduced. Based on the query and export of production records, production configuration data can be traced and tracked, which facilitates the management of the production process of the high-precision map automatic extraction tool configuration. This can improve production management efficiency and overcome the problems of cumbersome production process, high manpower consumption, and difficulty in data traceability of the high-precision map automatic extraction tool production process. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 A flowchart illustrating a configuration management method for an automated high-precision map extraction tool according to an embodiment of the present invention;
[0019] Figure 2 A schematic diagram illustrating the principle of a configuration management method for a high-precision map automated extraction tool provided in one embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the structure of a configuration management system for a high-precision map automated extraction tool provided in one embodiment of the present invention;
[0021] Figure 4 This is a schematic diagram of the structure of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0022] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0023] It should be understood that the terms "comprising" and other similar expressions in the specification, claims, and accompanying drawings of this invention are intended to cover a non-exclusive inclusion, such as a process, method, system, or apparatus that includes a series of steps or units and is not limited to the listed steps or units. Furthermore, "first" and "second" are used to distinguish different objects and are not intended to describe a specific order.
[0024] Understandably, traditional high-precision map creation (extraction) tools are industrial application software that require human-computer interaction during the creation process. The extraction of map elements is done manually and then created into digital data in the software, thus completing one step in the high-precision map creation process. In contrast, the automated high-precision map extraction tool is based on artificial intelligence algorithms to automatically identify map elements and then convert them into digital data, thus completing one step in the high-precision map creation process.
[0025] Please see Figure 1 The present invention provides a flowchart illustrating a configuration management method for a high-precision map automated extraction tool, comprising:
[0026] S101. Obtain the input production configuration information based on the pre-defined configuration page, and generate the corresponding configuration file or add the corresponding production record on the server according to the production configuration information.
[0027] The pre-configuration page is used by technicians to input production configuration information, which includes production server, batch, database name, original data path, intermediate data path, signboard, map elements, etc.
[0028] The pre-configured page is requested by the interface provided by the backend server through the request method in the Flask framework, and rendered by the render function of the Flask framework.
[0029] Enter the relevant information on the configuration page. The configuration page is requested by the add_config interface provided by the system backend service through the get method of flask.request, and the page is rendered to the browser by the render_template() function of the Flask framework.
[0030] Preferably, the system calls the backend server's API to request the submitted production configuration information, verifies and filters the production configuration information, and automatically extracts the element values from the production configuration information. Alternatively, the system calls the `add_config` API of the backend service to request the submitted configuration information via the `flask.request` POST method, and then verifies and filters the configuration information.
[0031] Among these, the version number of the precision map automatic extraction tool, the production server, the station information, the database to be written, the original data path, the intermediate data path, the graphics card, and the extracted features must not be empty values.
[0032] The production configuration information includes corresponding user options for selecting whether to generate a configuration file or add production records to the current configuration, or both simultaneously. Specifically, the user is determined based on the options corresponding to the configuration file in the production configuration information: generate only the configuration file, add only production records to the database, or perform both configuration file generation and production record addition simultaneously.
[0033] The generated configuration file includes:
[0034] An XML file is created using the `createDocument` function from Python's `minidom` module. The production configuration information, based on the requirements of the high-precision map automatic extraction tool configuration file, is then written into the XML file using the `open` function. Specifically, the `getDOMImplementation().createDocument()` function from Python's `xml.dom.minidom` module creates an XML file and writes the configuration information according to the requirements of the automatic extraction tool configuration file into it.
[0035] S102. Override the production configuration file in the high-precision map automated extraction tool based on the generated configuration file;
[0036] The newly generated configuration file can directly overwrite the original production configuration file in the high-precision map automated extraction tool, and the map data extraction and production can be carried out through the overwritten automated extraction tool.
[0037] Overwrite the config.xml configuration file in the high-precision map automatic extraction tool, and the high-precision map automatic extraction tool can then start production.
[0038] S103. Extract key information from the configuration file, reorganize it into production records, and save it to the database;
[0039] The information in the configuration file is selectively extracted, and the log record information related to the production of high-precision maps is selected to obtain the production record.
[0040] Specifically, the form information is assembled, unnecessary information is removed from the form, and the MySQL database is connected using the connect() function in the pymysql module of Python. Production records are then inserted and stored in the database for later querying, backup, and export.
[0041] S104. View the production record information on the system page and export the production record information.
[0042] Specifically, production record information is retrieved from the database via the `get_pro_info` interface provided by the system backend server, and then rendered to the browser using the `render_template()` function of the Flask framework. Similarly, production results are retrieved from the database via the `get_result_info` interface provided by the system backend service, and then rendered to the browser using the `render_template()` function of the Flask framework.
[0043] The production record export includes:
[0044] The system calls the interface provided by the backend server to obtain the time period information to be exported, connects to the database through the connect function in the pymysql module, queries the log records to be exported, creates a table document through the Wordbook function in the xlwt module, creates the corresponding table, writes the log record data to the table file and saves it, and renders the table file path for download and use.
[0045] After selecting the time period to be exported, the system obtains the time period information by calling the export_pro_log interface of the system backend service. It then connects to the database using the connect() function in the pymysql module of Python, queries the log records or result data to be exported, creates an xls document using the Wordbook() function in the xlwt module of Python, creates a sheet using the add_sheet() function, writes the data to the xls file and saves it, and renders the file path using render_template() for download and use.
[0046] This embodiment reduces manual intervention, improves the configuration efficiency of automated extraction tools, and thus increases the efficiency of high-precision map production. Simultaneously, it facilitates the querying and tracing of map production records, simplifying the management of the production configuration process.
[0047] In another embodiment, such as Figure 2As shown, after the staff inputs the production configuration information on the client, they start the high-precision map automatic extraction tool. The backend management server can generate a configuration file and assemble the production record information based on the configuration information. The configuration file is sent to the high-precision map automatic extraction tool, overwriting the existing configuration file, and the generated records are sent to the MySQL database for storage. The MySQL database can provide production record query and export services for the client.
[0048] The high-precision map automatic extraction tool is used to extract features from the input field measurement and collection data, such as extracting road lane lines based on collected laser point clouds, video images, etc.
[0049] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0050] Figure 3 This invention provides a schematic diagram of a configuration management system for a high-precision map automated extraction tool, comprising:
[0051] Client 310 is used to input production configuration information through the pre-defined configuration page, view production record information on the system page, and export production record information;
[0052] The pre-configured page is requested by the interface provided by the backend server through the request method in the Flask framework, and rendered by the render function of the Flask framework.
[0053] The system service module 320 obtains the input production configuration information, generates the corresponding configuration file or adds the corresponding production record on the server based on the production configuration information, and extracts the key information in the configuration file to reorganize it into a production record.
[0054] Specifically, the system service module includes a generation unit and an extraction and recombination unit: the generation unit is used to generate corresponding configuration files or add corresponding production records on the server according to the production configuration information; the extraction and recombination unit is used to extract key information from the configuration files and recombine them into production records.
[0055] The process involves calling the backend server's interface to request the submitted production configuration information, verifying and filtering the production configuration information, and then automatically extracting the element values from the production configuration information.
[0056] Among them, the options corresponding to the configuration file in the production configuration information are used to determine whether to generate only the configuration file, add only the production record to the database, or generate the configuration file and add the production record at the same time.
[0057] Specifically, an XML file is created using the createDocument function in Python's minidom module, and the production configuration information is written into the XML file according to the configuration file requirements of the high-precision map automatic extraction tool using the open function.
[0058] Database 330 is used to store production records;
[0059] Extraction tool 340 is used to overwrite the production configuration file in the high-precision map automated extraction tool based on the generated configuration file.
[0060] The process involves calling the interface provided by the system's backend server to obtain the time period information to be exported, connecting to the database through the connect function in the pymysql module, querying the log records to be exported, creating a table document through the Wordbook function in the xlwt module, creating the corresponding table, writing the log record data into the table file and saving it, and rendering the table file path for download and use.
[0061] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the systems and modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0062] Figure 4 This is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device is used for the configuration and management of a high-precision map automated extraction tool. Figure 4 As shown, the electronic device 4 in this embodiment includes a memory 410, a processor 420, and a system bus 430. The memory 410 includes an executable program 4101 stored thereon. As those skilled in the art will understand, Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0063] The following combination Figure 4 A detailed introduction to each component of the electronic device:
[0064] The memory 410 can be used to store software programs and modules. The processor 320 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 410. The memory 410 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as cached data), etc. In addition, the memory 410 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0065] The memory 410 contains an executable program 4101 for a sign extraction method. This executable program 4101 can be divided into one or more modules / units, which are stored in the memory 410 and executed by the processor 420 to achieve configuration management of automated extraction tools, etc. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, describing the execution process of the computer program 4101 in the electronic device 4. For example, the computer program 4101 can be divided into a generation unit and an extraction and recombination unit.
[0066] Processor 420 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in memory 410, and by calling data stored in memory 410, it performs various functions and processes data, thereby monitoring the overall status of the electronic device. Optionally, processor 420 may include one or more processing units; preferably, processor 420 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, application programs, etc., and the modem processor mainly handles wireless communication. It is understood that the aforementioned modem processor may not be integrated into processor 420.
[0067] The system bus 430 is used to connect various functional components inside the computer, transmitting data, address, and control information. Its type can be, for example, a PCI bus, an ISA bus, or a VESA bus. Instructions from the processor 420 are transmitted to the memory 410 via the bus, and the memory 410 sends data back to the processor 420. The system bus 430 is responsible for data and instruction exchange between the processor 420 and the memory 410. Of course, the system bus 430 can also connect to other devices, such as network interfaces and display devices.
[0068] In this embodiment of the invention, the executable program executed by the processing 420 of the electronic device includes:
[0069] Based on the pre-defined configuration page, the system obtains the input production configuration information and generates the corresponding configuration file or adds the corresponding production record on the server.
[0070] The generated configuration file is overridden in the high-precision map automated extraction tool;
[0071] Extract key information from the configuration file, reorganize it into production records, and save it to the database;
[0072] View production record information on the system page and export the production record information.
[0073] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0074] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0075] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A configuration management method for a high-precision map automated extraction tool, characterized in that, include: Based on the pre-defined configuration page, the system obtains the input production configuration information and generates the corresponding configuration file or adds the corresponding production record on the server. The generated configuration file is overridden in the high-precision map automated extraction tool; Extract key information from the configuration file, reorganize it into production records, and save it to the database; View production record information on the system page and export the production record information; The specific steps for viewing and exporting production record information on the system page are as follows: The system calls the interface provided by the backend server to obtain the time period information to be exported, connects to the database through the connect function in the pymysql module, queries the log records to be exported, creates a table document through the Wordbook function in the xlwt module, creates the corresponding table, writes the log record data to the table file and saves it, and renders the table file path for download and use.
2. The method according to claim 1, characterized in that, The pre-configured page is requested by the interface provided by the backend server through the request method in the Flask framework, and rendered by the render function of the Flask framework.
3. The method according to claim 1, characterized in that, The production configuration information obtained from the pre-defined configuration page includes: The system calls the backend server's interface to request the submitted production configuration information, verifies and filters the production configuration information, and automatically extracts the element values from the production configuration information.
4. The method according to claim 1, characterized in that, The step of generating the corresponding configuration file or adding the corresponding production record on the server based on the production configuration information includes: Based on the options corresponding to the configuration file in the production configuration information, it can be determined whether to generate only the configuration file, add only the production record to the database, or generate both the configuration file and add the production record simultaneously.
5. The method according to claim 1, characterized in that, The step of generating the corresponding configuration file or adding the corresponding production record on the server based on the production configuration information includes: An XML file is created using the `createDocument` function in Python's `minidom` module. The production configuration information, based on the configuration file requirements of the high-precision map automatic extraction tool, is then written into the XML file using the `open` function.
6. A configuration and management system for a high-precision map automated extraction tool, characterized in that, include: The client is used to input production configuration information through a pre-defined configuration page, view production record information on the system page, and export production record information. The system service module obtains the input production configuration information, generates the corresponding configuration file or adds the corresponding production record on the server based on the production configuration information, and extracts the key information in the configuration file to reorganize it into a production record. The database is used to store production records; Extraction tools are used to overwrite the production configuration file in the high-precision map automated extraction tool based on the generated configuration file; The specific steps for viewing and exporting production record information on the system page are as follows: The system calls the interface provided by the backend server to obtain the time period information to be exported, connects to the database through the connect function in the pymysql module, queries the log records to be exported, creates a table document through the Wordbook function in the xlwt module, creates the corresponding table, writes the log record data to the table file and saves it, and renders the table file path for download and use.
7. The system according to claim 6, characterized in that, The pre-configured page is requested by the interface provided by the backend server through the request method in the Flask framework, and rendered by the render function of the Flask framework.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the configuration management method for a high-precision map automated extraction tool as described in any one of claims 1 to 5.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed, it implements the steps of the configuration management method for a high-precision map automated extraction tool as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Form filling method and device based on configuration file and computer equipment
CN111737963A