CN115758738A - Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium - Google Patents

Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN115758738A
CN115758738A CN202211457439.8A CN202211457439A CN115758738A CN 115758738 A CN115758738 A CN 115758738A CN 202211457439 A CN202211457439 A CN 202211457439A CN 115758738 A CN115758738 A CN 115758738A
Authority
CN
China
Prior art keywords
data
information
road
line
format conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211457439.8A
Other languages
Chinese (zh)
Inventor
刘海威
顾海雷
潘晓征
刘建泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Motor Vehicle Inspection Certification and Tech Innovation Center Co Ltd
Original Assignee
Shanghai Motor Vehicle Inspection Certification and Tech Innovation Center Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Motor Vehicle Inspection Certification and Tech Innovation Center Co Ltd filed Critical Shanghai Motor Vehicle Inspection Certification and Tech Innovation Center Co Ltd
Priority to CN202211457439.8A priority Critical patent/CN115758738A/en
Publication of CN115758738A publication Critical patent/CN115758738A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

The invention relates to a traffic accident simulation test method, a data format conversion method, a system, equipment and a computer readable storage medium. The data format conversion method comprises the following steps of S1, exporting a dwg format file containing road information through CAD drawing software; s2, converting the dwg format file into an xodr format file of the opendrive simulation map software: s21, preprocessing data; s22, analyzing data; and S23, data conversion is carried out, and road attribute information of the xodr format file is generated based on the data information of the points and the lines and the road element types. The invention provides a traffic accident simulation test method, a data format conversion method, a system, equipment and a computer readable storage medium, which can improve the conversion efficiency and reduce the generation cost of simulation software data.

Description

Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium
Technical Field
The invention relates to the technical field of vehicle road simulation tests, in particular to a data format conversion method.
Background
When a traffic accident occurs, a judicial appraiser goes to the accident site to map the information of the accident road, and forms a paper record, and the paper record is usually drawn into a CAD drawing by a computer. The accident scene simulation reproduction generally draws road form and lane information in simulation software manually based on mapping data, and has the defects of low efficiency and high cost. How to convert road data contained in a CAD drawing into a map with a standard simulation format becomes a problem to be solved urgently.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a traffic accident simulation test method, a data format conversion method, a system, equipment and a computer readable storage medium, which improve the conversion efficiency and reduce the data generation cost of simulation software.
Specifically, the invention provides a data format conversion method, which comprises the following steps:
s1, exporting a dwg format file containing road information through CAD drawing software;
s2, converting the dwg format file into an xodr format file of openrive simulation map software:
s21, preprocessing data, extracting data information of points and lines in the dwg format file, and classifying according to the data information of the lines;
s22, analyzing data, and analyzing the road element class represented by the line based on the data information of the line and the classification result;
and S23, data conversion is carried out, and road attribute information of the xodr format file is generated based on the data information of the points and the lines and the road element type.
According to an embodiment of the present invention, in step S21, the data information of the extraction point includes coordinate information, and the data information of the line includes length, type, and line width of the line;
the length of the line contains data information of points, the type of the line comprises a straight line and a curve, and the classification is carried out based on the length, the type and the line width of the line.
According to an embodiment of the present invention, in step S22, the method includes reading data information of a curve, and fitting the curve by a spiral line to obtain a corresponding curvature of the road curve in the xodr format file.
According to one embodiment of the present invention, in step S23, the road attribute information includes at least a start point of road coordinates, a motor lane, a sidewalk, a crosswalk, and a lane center line.
The invention also provides a traffic accident simulation test method, which comprises the following steps:
t1, collecting road environment information of a traffic accident scene;
t2, generating a drawing of the CAD drawing software based on the road environment information;
t3, executing the data format conversion method of any one of claims 1 to 4, and converting the drawing into road attribute information of the xodr format file;
t4, importing the road attribute information into optional simulation map software;
and T5, testing and analyzing the traffic accidents.
The present invention also provides a data format conversion system, which is suitable for the data format conversion method, and the data format conversion system comprises:
the export unit is used for exporting the dwg format file containing the road information through CAD drawing software;
the preprocessing unit is used for extracting data information of points and lines in the dwg format file and classifying according to the data information of the lines;
the analysis unit analyzes the road element type represented by the line based on the data information of the line and the classification result;
and the conversion unit is used for generating the road attribute information of the xodr format file based on the data information of the points and the lines and the road element type.
The invention also provides a data format conversion device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the data format conversion method in any one of the preceding items.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data format conversion method of any of the preceding claims.
The traffic accident simulation test method, the data format conversion method, the system, the equipment and the computer readable storage medium provided by the invention have the advantages that the conversion efficiency is improved, the data generation cost of simulation software is reduced, and the automatic driving simulation test scene of a traffic accident is effectively established.
It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.
Drawings
The accompanying drawings, which are included to provide a further explanation of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.
In the drawings:
fig. 1 shows a flow diagram of a data format conversion method according to an embodiment of the present invention.
FIG. 2 is a flow diagram illustrating a traffic accident simulation test method according to an embodiment of the present invention.
Fig. 3 shows a schematic structural diagram of a data format conversion system according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as exemplary only and not as limiting. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In the description of the present application, it is to be understood that the orientation or positional relationship indicated by the directional terms such as "front, rear, upper, lower, left, right", "lateral, vertical, horizontal" and "top, bottom", etc., are generally based on the orientation or positional relationship shown in the drawings, and are used for convenience of description and simplicity of description only, and in the case of not making a reverse description, these directional terms do not indicate and imply that the device or element being referred to must have a particular orientation or be constructed and operated in a particular orientation, and therefore, should not be considered as limiting the scope of the present application; the terms "inner and outer" refer to the inner and outer relative to the profile of the respective component itself.
It should be noted that the terms "first", "second", and the like are used to define the components, and are only used for convenience of distinguishing the corresponding components, and the terms have no special meanings unless otherwise stated, and therefore, the scope of protection of the present application is not to be construed as being limited. Further, although the terms used in the present application are selected from publicly known and used terms, some of the terms mentioned in the specification of the present application may be selected by the applicant at his or her discretion, the detailed meanings of which are described in relevant parts of the description herein. Further, it is required that the present application is understood not only by the actual terms used but also by the meaning of each term lying within.
Fig. 1 shows a flow diagram of a data format conversion method according to an embodiment of the present invention. As shown in the figure, the data format conversion method provided by the invention comprises the following steps:
s1, exporting a dwg format file containing road information through CAD drawing software. CAD computer aided design software for two-dimensional drawing, detailed drawing, design documentation and basic three-dimensional design has become an internationally popular drawing tool. The method has a good user interface, and various operations can be performed through an interactive menu or command line mode. The Dwg format file is a proprietary file format used by CAD drawing software and for storing design data based on CAD drawing software. The dwg-format file here contains link information.
And S2, converting the dwg format file into an xodr format file of the openrive simulation map software. The optional simulation map software is used to describe the static road traffic network required by the autopilot simulation application and provides standard interchange format specification documents. The main task of this standard is to describe the road and the objects on it. The Opendrive simulation map software adopts the xodr format file as a basis for describing the road network, and is mainly used for describing the geometric shape of the road and relevant characteristics which can influence the logic of the road network, such as lanes, signs and the like. The invention focuses on converting a dwg-format file containing road information into an xodr-format file, the conversion comprising the steps of:
and S21, preprocessing data, extracting data information of points and lines in the dwg format file, and classifying according to the data information of the lines.
And S22, analyzing data, and analyzing the road element class represented by the line based on the data information of the line and the classification result.
And S23, data conversion is carried out, and road attribute information of the xodr format file is generated based on the data information of the points and the lines and the road element type. Data conversion is an assignment process, namely road information contained in the dwg format file is correspondingly assigned to the road attribute information of the xodr format file.
Preferably, in step S21, the data information of the extracted point includes coordinate information of the point. The data information of the line includes the length, type, line width of the line. The length of the line contains data information of the point, and the type of the line includes a straight line and a curved line. For example, for a straight line, coordinate information of a start point and an end point and a width of the line are included. The classification is based on the length, type and line width of the line. For example, a plurality of parallel stubs fall into one class, and a plurality of stubs fall into one class on the same straight line. In step S22, the plurality of parallel short lines are analyzed and recognized that the road element category is the pedestrian crossing line; the road element category is analyzed and recognized as a lane central line in the same straight line for a plurality of short lines. In step S23, these road element categories are assigned to the road attribute information of the xodr format file.
Preferably, in step S22, reading data information of the curve, the data information including coordinate information of the start point and the end point and coordinate information of a plurality of points on the curve. And fitting a curve through a spiral line to obtain the corresponding curvature of the road curve in the xodr format file. Specifically, the coordinate information of points of the curve is read, the curvature of the starting position and the curvature of the ending position of the curve are obtained by fitting the curve, and the curvature of the road curve k required by obtaining the xodr format file is solved and calculated by substituting the coordinate information of the two points into the curve. In step S22, the method further includes analyzing and identifying whether the corresponding lane is a motor lane or a sidewalk based on the type and width of the line.
Preferably, in step S23, the road attribute information includes at least a start point of the road coordinates, a motor lane, a sidewalk, a crosswalk, and a lane center line. In other words, the road element category and the road attribute information acquired in step S22 are matched with each other, thereby realizing data conversion.
FIG. 2 is a flow chart diagram of a traffic accident simulation testing method according to an embodiment of the present invention. Referring to fig. 2, a traffic accident simulation test method is characterized by comprising the following steps:
t1, collecting road environment information of a traffic accident scene;
t2, generating a drawing of the CAD drawing software based on the road environment information;
t3, executing the data format conversion method, and converting the graph paper into the road attribute information of the xodr format file;
t4, importing the road attribute information into option simulation map software;
and T5, testing and analyzing the traffic accidents.
As can be easily understood, after a traffic accident happens, a judicial appraiser goes to the accident site to map the information of the accident road, forms a paper record, and then draws the paper in the CAD drawing software by a computer. The road data (dwg-format file) is derived from the drawing information of the CAD drawing software, which contains data information of all points and lines that the road constitutes. By the data format conversion method, the dwg format file is converted into the xodr format file of standard opendrive simulation map software, so that road data coordinate points are used for supplementing road format points, a related simulation map is finally formed, an engineer can call and develop related test analysis, and a deep research report is provided. The data format conversion method can improve the conversion efficiency of the whole process of the traffic accident simulation test, can reduce the errors of manual data input, and improves the accuracy of the map.
Fig. 3 is a schematic structural diagram of a data format conversion system according to an embodiment of the present invention. As shown in the figure, the present invention further provides a data format conversion system 300, which is suitable for the aforementioned data format conversion method. The data format conversion system 300 mainly includes a derivation unit 301, a preprocessing unit 302, an analysis unit 303, and a conversion unit 304.
Wherein the deriving unit 301 is configured to derive a dwg format file containing road information by CAD drawing software.
The preprocessing unit 302 is configured to extract data information of points and lines in the dwg-format file, and classify the data information according to the data information of the lines.
The analysis unit 303 analyzes the road element category represented by the line based on the data information of the line and the classification result.
The conversion unit 304 generates road attribute information of the xodr format file based on the data information of the points and lines and the road element category.
The invention also provides a data format conversion device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of any one of the data format conversion methods when executing the computer program.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the data format conversion methods described above.
The specific implementation and technical effects based on the data format conversion system, the data format conversion device, and the computer-readable storage medium can be found in the above embodiments of the data format conversion method provided by the present invention, and are not described herein again.
The invention provides a traffic accident simulation test method, a data format conversion method, a system, equipment and a computer readable storage medium, aiming at solving the problem of data processing in the process of converting road data to a simulation scene based on a traffic accident and mainly solving the problem of conversion between a dwg format file and an xodr format file. The data format conversion method replaces the prior art that road form and lane information are manually drawn in simulation software, so that the data conversion efficiency is improved, the cost is reduced, manual errors are reduced, and the map accuracy is improved.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a web site, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk (disk) and disc (disc), as used herein, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks (disks) usually reproduce data magnetically, while discs (discs) reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
It will be apparent to those skilled in the art that various modifications and variations can be made to the above-described exemplary embodiments of the present invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.

Claims (8)

1. A data format conversion method, comprising the steps of:
s1, exporting a dwg format file containing road information through CAD drawing software;
s2, converting the dwg format file into an xodr format file of openrive simulation map software:
s21, preprocessing data, extracting data information of points and lines in the dwg format file, and classifying according to the data information of the lines;
s22, analyzing data, and analyzing the road element type represented by the line based on the data information of the line and the classification result;
and S23, data conversion is carried out, and road attribute information of the xodr format file is generated based on the data information of the points and the lines and the road element types.
2. The data format conversion method according to claim 1, wherein in step S21, the data information of the extraction point includes coordinate information, and the data information of the line includes a length, a type, a line width of the line;
the length of the line contains data information of points, the type of the line comprises a straight line and a curve, and the classification is carried out based on the length, the type and the line type width of the line.
3. The data format conversion method according to claim 2, wherein in step S22, the data information of the curve is read, and the curve is fitted by a spiral line to obtain the curvature of the road curve corresponding to the xodr format file.
4. The data format conversion method according to claim 1, wherein in step S23, the road attribute information includes at least a start point of road coordinates, a motor lane, a sidewalk, a crosswalk, and a lane center line.
5. A traffic accident simulation test method is characterized by comprising the following steps:
t1, collecting road environment information of a traffic accident scene;
t2, generating a drawing of the CAD drawing software based on the road environment information;
t3, executing the data format conversion method of any one of claims 1 to 4, and converting the drawing into road attribute information of the xodr format file;
t4, importing the road attribute information into option simulation map software;
and T5, testing and analyzing the traffic accidents.
6. A data format conversion system adapted to the data format conversion method of claim 1, the data format conversion system comprising:
the export unit is used for exporting the dwg format file containing the road information through CAD drawing software;
the preprocessing unit is used for extracting data information of points and lines in the dwg format file and classifying according to the data information of the lines;
the analysis unit analyzes the road element type represented by the line based on the data information of the line and the classification result;
and a conversion unit which generates road attribute information of the xodr format file based on the data information of the points and lines and the road element type.
7. A data format conversion device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the data format conversion method according to any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data format conversion method according to any one of claims 1 to 4.
CN202211457439.8A 2022-11-21 2022-11-21 Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium Pending CN115758738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211457439.8A CN115758738A (en) 2022-11-21 2022-11-21 Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211457439.8A CN115758738A (en) 2022-11-21 2022-11-21 Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115758738A true CN115758738A (en) 2023-03-07

Family

ID=85333781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211457439.8A Pending CN115758738A (en) 2022-11-21 2022-11-21 Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115758738A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453791A (en) * 2023-12-26 2024-01-26 福瑞升(成都)科技有限公司 Petroleum geological pattern conversion method, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453791A (en) * 2023-12-26 2024-01-26 福瑞升(成都)科技有限公司 Petroleum geological pattern conversion method, system and storage medium

Similar Documents

Publication Publication Date Title
US10824801B2 (en) Interactively predicting fields in a form
JP2018200685A (en) Forming of data set for fully supervised learning
JP2019135544A (en) Method and apparatus for identifying intersection in electronic map
CN110991489B (en) Marking method, device and system for driving data
CN110956081B (en) Method and device for identifying position relationship between vehicle and traffic marking and storage medium
JP2022552753A (en) Point cloud data labeling method, device, electronic device and computer readable storage medium
CN113657274B (en) Table generation method and device, electronic equipment and storage medium
CN109446689A (en) DC converter station electrical secondary system drawing recognition methods and system
CN115880536B (en) Data processing method, training method, target object detection method and device
CN115758738A (en) Traffic accident simulation test method, data format conversion method, system, device and computer readable storage medium
WO2024088445A1 (en) Vehicle guidance method and system based on visual semantic vector, and device and medium
CN113239227A (en) Image data structuring method and device, electronic equipment and computer readable medium
CN112308148A (en) Defect category identification and twin neural network training method, device and storage medium
KR101889007B1 (en) Method for management drawings using attributes of drawing object and drawing management system
US20200364034A1 (en) System and Method for Automated Code Development and Construction
CN116167365A (en) Flow chart generation method based on form template
CN114926842A (en) Dongba pictograph recognition method and device
Joy et al. Automation of material takeoff using computer vision
CN112132031A (en) Vehicle money identification method and device, electronic equipment and storage medium
CN103295216B (en) For identifying method and apparatus and the image processing system in the space in three-dimensional model
CN114283441B (en) Two-dimensional drawing recognition modeling method and device suitable for railway passenger station
CN117992620B (en) Foundation pit engineering evaluation method, system, storage medium and electronic equipment
CN117911970A (en) Point cloud road element target extraction method and device, electronic equipment and storage medium
CN117150692A (en) Automatic transfer realization method, storage medium and device for longitudinal beam information
CN114842495A (en) Method and device for identifying and processing clothing design pattern and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination