Method, system, device and equipment for establishing virtual traffic scene

By analyzing road mining data on vehicle roads and reinjecting virtual traffic scenes, it solves the problems of high verification costs and unrealistic scenes for driverless vehicles, and achieves highly realistic virtual traffic scene simulations.

CN117634135BActive Publication Date: 2024-08-27GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311340236.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-16
Publication Date
2024-08-27
Estimated Expiration
2043-10-16

AI Technical Summary

Technical Problem

In the existing technology, actual vehicle verification of purely driverless vehicles is costly and dangerous, and cannot effectively simulate real traffic scenarios, resulting in unrealistic verification data.

Method used

By obtaining road mining data of vehicles on the road, analyzing movement patterns and characteristic data, and reinjecting virtual traffic scenes, including using data mining operators and rendering engines to generate initial virtual traffic maps, and combining 3D vehicle models to establish virtual traffic scenes, and respond to The creation instructions of the virtual HMI platform integrate the target pictures and sounds to match the virtual HMI platform.

Benefits of technology

The generated virtual traffic scene is closer to the real scene, reducing verification costs and risks, and improving the authenticity and security of verification data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117634135B
    Figure CN117634135B
Patent Text Reader

Abstract

The present application discloses a method, system, device, electronic device and storage medium for establishing a virtual traffic scene. The method for establishing a virtual traffic scene includes: obtaining road sampling data collected by a vehicle on a driving road within a preset time period, wherein the road sampling data includes motion data of traffic elements on the driving road; obtaining the motion laws corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements based on the road sampling data, wherein the characteristic data includes shape, size, color or material; based on the road sampling data with motion laws and characteristic data, re-injecting to obtain a virtual traffic scene. This method directly needs to obtain the motion laws and characteristic data of the road sampling data when re-injecting the virtual traffic scene using the road sampling data, so that the re-injected virtual traffic scene is closer to the real traffic scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle virtual simulation, and more specifically, to a method, system, device, electronic device and storage medium for establishing a virtual traffic scene. Background Art

[0002] Due to limitations in sensor technology, high-precision maps, ethical regulations, etc., purely driverless vehicles require a lot of experimental verification before they can enter people's lives.

[0003] Real vehicle verification is costly and time-consuming, and verifying dangerous scenarios may cause personal accidents. The relevant vehicle verification scheme will use virtual traffic scenarios. Therefore, the verification data obtained from virtual traffic scenarios that are closer to actual traffic scenarios are more realistic. Summary of the invention

[0004] In view of the above problems, the present application proposes a method, system, device, electronic device and storage medium for establishing a virtual traffic scene.

[0005] In a first aspect, an embodiment of the present application provides a method for establishing a virtual traffic scene, the method comprising: obtaining road sampling data obtained by collecting data on a driving road by a vehicle within a preset time period, wherein the road sampling data includes motion data of traffic elements on the driving road; based on the road sampling data, obtaining motion laws corresponding to the traffic elements on the driving road and feature data of the traffic elements, the feature data including shape, size, color or material; based on the road sampling data having motion laws and feature data, re-injecting to obtain a virtual traffic scene.

[0006] In an optional embodiment, the virtual traffic scene is obtained by injecting back the road sampling data with motion patterns and characteristic data, including: obtaining an initial virtual traffic map corresponding to the vehicle on the driving road based on the road sampling data with motion patterns; rendering the initial virtual traffic map to obtain a virtual traffic map consistent with real traffic elements; obtaining a 3D vehicle model replicated according to size parameters and shape parameters of the actual vehicle; and establishing the virtual traffic scene according to the virtual traffic map and the 3D vehicle model.

[0007] In an optional embodiment, the method of obtaining an initial virtual traffic map corresponding to the current road traveled by the vehicle based on the road sampling data includes: using a data mining operator to feed the road sampling data back into the initial virtual traffic map; the method of rendering the initial virtual traffic map to obtain a virtual traffic map consistent with real traffic elements includes: using a rendering engine to render the colors and materials of scene elements in the initial virtual traffic map to obtain the virtual traffic map.

[0008] In an optional embodiment, after the virtual traffic scene is obtained by re-injecting the road data with motion rules and characteristic data, the method further includes: establishing a virtual HMI platform in the virtual traffic scene in response to an instruction to establish a virtual HMI platform.

[0009] In an optional embodiment, the establishing of the virtual HMI platform in the virtual traffic scene in response to the establishment instruction of the virtual HMI platform includes: in response to the establishment instruction of the virtual HMI platform, obtaining a target picture and a target sound corresponding to the establishment instruction, wherein the establishment instruction carries description information related to the picture and the sound; converting the target picture into a target sprite picture, and performing fragmentation integration processing on the target sound to obtain a sound clip corresponding to the target sound; matching the target sprite picture with a canvas file of the virtual HMI platform, and if a match is found, obtaining a target display picture obtained by combining the target sprite picture with the canvas file; obtaining a matching result between the target display picture and the sound clip, and using the sound clip matching the target display picture as the target sound clip; and establishing a virtual HMI platform for displaying the target display picture and playing the target sound clip corresponding to the target display picture.

[0010] In a second aspect, an embodiment of the present application provides a virtual traffic scene simulation system, the system comprising: a data acquisition unit, the data acquisition unit being used to collect and obtain road data; a cloud-based big data platform, the cloud-based big data platform being communicatively connected to the data acquisition unit, the cloud-based big data platform being used to obtain the road data in the data acquisition unit; a host, the host comprising a virtual scene establishment unit, the virtual scene establishment unit being communicatively connected to the cloud-based big data platform to obtain the road data and establish a virtual traffic scene based on the road data, the virtual traffic scene establishment unit being used to execute the virtual traffic scene establishment method provided in the first aspect to establish the virtual traffic scene; and a virtual display device, the virtual display device comprising a display unit and a communication unit, the display unit being communicatively connected to the communication unit, the communication unit being communicatively connected to the host, the display unit being used to display the virtual traffic scene and the virtual HMI platform.

[0011] In an optional embodiment, the virtual scene establishment unit in the host also includes: a data re-injection unit, which communicates with the cloud big data platform to obtain the road sampling data; a scene restoration unit, which is used to automatically generate an initial virtual traffic scene based on the road sampling data obtained by the re-injection; and a rendering unit, which renders the initial virtual traffic scene to obtain the virtual traffic scene consistent with the real scene.

[0012] In a third aspect, an embodiment of the present application provides a device for establishing a virtual traffic scene, the device comprising: a road sampling data acquisition module, for acquiring road sampling data collected by a vehicle on a driving road within a preset time period, wherein the road sampling data includes motion data of traffic elements on the driving road; a road sampling data acquisition module, for obtaining motion laws corresponding to traffic elements on the driving road and feature data of traffic elements according to the road sampling data, wherein the feature data includes shape, size, color or material; a virtual traffic scene establishment module, for obtaining a virtual traffic scene based on the road sampling data having motion laws and feature data.

[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method for establishing a virtual traffic scene provided in the first aspect above.

[0014] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the method for establishing a virtual traffic scene provided in the first aspect above.

[0015] The solution provided in the present application directly needs to obtain the movement patterns and characteristic data of the road sampling data when using the road sampling data to feed back into the virtual traffic scene, so that the virtual traffic scene obtained by feeding back is closer to the real traffic scene. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 A schematic flow chart of a method for establishing a virtual traffic scene provided in an embodiment of the present application is shown.

[0018] Figure 2 A schematic flow chart of a method for establishing a virtual traffic scene provided in another embodiment of the present application is shown.

[0019] Figure 3 A schematic flow chart of a method for establishing a virtual traffic scene provided in yet another embodiment of the present application is shown.

[0020] Figure 4 A schematic diagram of the process of establishing a virtual HMI platform provided in yet another embodiment of the present application is shown.

[0021] Figure 5 A structural schematic diagram of a virtual traffic scene simulation system provided in an embodiment of the present application is shown.

[0022] Figure 6 A structural block diagram of a device for establishing a virtual traffic scene provided in an embodiment of the present application is shown.

[0023] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application for executing a method for establishing a virtual traffic scene according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0025] In response to the technical problems raised by the background technology, the inventor proposed a method, system, device, electronic device and storage medium for establishing a virtual traffic scene. When using road sampling data to feed back into a virtual traffic scene, it is necessary to directly obtain the movement laws and characteristic data of the road sampling data, so that the virtual traffic scene obtained by feeding back is closer to the real traffic scene.

[0026] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for establishing a virtual traffic scene provided by an embodiment of the present application. Figure 6 The virtual traffic scene creation device 300 shown in FIG. Figure 7 The electronic device 100 shown is equipped with the device 300 for establishing the virtual traffic scene.

[0027] The following will focus on Figure 1 The process shown in FIG. 1 is described in detail, and the method for establishing the virtual traffic scene may specifically include the following steps:

[0028] Step S110: Acquire road data collected by the vehicle on the driving road within a preset time period, wherein the road data includes movement data of traffic elements on the driving road.

[0029] Road data collection refers to all traffic elements in the lane where the vehicle is located, which are collected by the collection device on the vehicle. Traffic elements include but are not limited to vehicles, pedestrians, green belts, traffic lights and other traffic elements. The collection device can be a device with data collection such as a camera.

[0030] Obtaining the motion data of traffic elements on the road within a preset duration can be performed by analyzing the change values ​​of traffic elements within adjacent unit durations, and the corresponding motion patterns of traffic elements can be obtained. For example, adjacent vehicles travel forward within adjacent unit durations, and the acceleration corresponding to the adjacent vehicles within the adjacent unit durations can be obtained through the travel distance and the unit duration, thereby obtaining the motion patterns of the adjacent vehicles. The unit duration and the preset duration are set by the user and are not specifically limited here.

[0031] The collection device continuously collects all traffic elements on the road the vehicle is currently traveling on, so as to obtain real-time road data on the road the vehicle is traveling on within a preset time period.

[0032] For example, the distance traveled by the adjacent vehicles on the current driving road within 5 minutes is collected, and the movement pattern of the adjacent vehicles can be obtained according to the distance and the collection time.

[0033] Step S120: According to the road sampling data, the movement patterns corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements are obtained, and the characteristic data includes shape, size, color or material.

[0034] The movement law refers to the movement data of traffic elements on the road being driven being analyzed according to time. The analysis method can be to analyze the movement data using a trained neural network model or to analyze the movement data using an analysis algorithm to obtain the movement law of the movement data. The analysis method of the movement data is not specifically limited here.

[0035] The characteristic data includes the shape, size, color or material of the traffic element. For example, if the traffic element is a traffic light, one or more of the shape, size, color or material of the traffic light on the driving road is obtained.

[0036] Acquiring the motion laws and corresponding feature data of traffic elements on the driving road can make the motion laws and feature data corresponding to the virtual traffic elements in the virtual traffic scene closer to the real traffic elements on the driving road.

[0037] Step S130: Based on the road data with motion rules and characteristic data, a virtual traffic scene is obtained by re-injecting.

[0038] Reinjection refers to simulating data, and reinjection includes direct reinjection and model reinjection. Direct reinjection means giving the data directly to the algorithm without processing it. In this mode, the parameters of the vehicle and scene cannot be adjusted. For example, data collected from a certain model can only be used for simulation tests of the same model. Model reinjection means processing the data first, and the parameters of the vehicle and scene are adjustable. For example, data collected from a certain model can be used for simulation tests not limited to the same model. The type of reinjection used in the embodiments of the present application is not specifically limited here.

[0039] The road data with motion rules and characteristic data are processed through reinjection to obtain a virtual traffic scene, so that the virtual traffic scene obtained by reinjection is closer to the actual traffic scene.

[0040] In the embodiment of the present application, when using the road sampling data to feed back into a virtual traffic scene, it is directly necessary to obtain the movement patterns and characteristic data of the road sampling data, so that the virtual traffic scene obtained by feeding back is closer to the real traffic scene.

[0041] See also Figure 2 , Figure 2 A schematic diagram of a flow chart of a method for establishing a virtual traffic scene provided by another embodiment of the present application is shown. The method for establishing a virtual traffic scene may specifically include the following steps:

[0042] Step S210: Acquire road data collected by the vehicle on the driving road within a preset time period, wherein the road data includes movement data of traffic elements on the driving road.

[0043] Step S220: According to the road sampling data, the movement patterns corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements are obtained, and the characteristic data includes shape, size, color or material.

[0044] For detailed description of steps S210 to S220 , please refer to steps S110 to S120 , which will not be repeated here.

[0045] Step S230: Based on the road sampling data with motion patterns, an initial virtual traffic map corresponding to the road the vehicle is traveling on is obtained.

[0046] Virtual display software or a neural network model with scene establishment is used to reconstruct the traffic map corresponding to the current driving road based on road sampling data with motion rules to obtain an initial virtual traffic map.

[0047] In some implementations, the road collection data is fed back into the initial virtual traffic map using a data mining operator.

[0048] The data mining operator refers to the operator in the mining algorithm, and the mining algorithm performs operator mapping on the collected road data, thereby re-injecting the road data from data information into virtual traffic map information, thereby forming an initial traffic map. The mining algorithm is not specifically limited here.

[0049] Step S240: Rendering the initial virtual traffic map to obtain a virtual traffic map consistent with real traffic elements.

[0050] Rendering mainly refers to coloring the model. Each traffic element model in the initial traffic map is rendered so that each traffic element in the initial traffic map is consistent with the traffic elements in the road collection data.

[0051] In some implementations, a rendering engine is used to render the colors and materials of scene elements in the initial virtual traffic map to obtain the virtual traffic map.

[0052] The rendering engine may be Arnold, Redshift, or Octane. In the embodiment of the present application, the rendering engine is preferably the fourth version of Unreal Engine, referred to as UE4 engine, and the rendering engine selection is not specifically limited here.

[0053] The rendering engine renders the model in the initial traffic map according to the size and material of the traffic elements, so that the traffic elements in the initial traffic map are consistent with the traffic elements in the road sampling data.

[0054] Step S250: Obtain a 3D vehicle model that is replicated based on the size parameters and shape parameters of the actual vehicle.

[0055] The modeling software is used to perform 3D vehicle modeling based on the actual vehicle size information in the road sampling data to obtain a 3D vehicle model. The actual vehicle size information can be obtained by proportionally enlarging the vehicle size in the road sampling data to obtain the actual vehicle size, or by obtaining the models of multiple vehicles in the initial traffic map from the road sampling data, and searching the cloud for corresponding vehicle parameters based on the vehicle model to obtain the actual vehicle size. The method for obtaining the actual vehicle size is not specifically limited here. The 3D vehicle model can be established using Blender software.

[0056] Step S260: establishing the virtual traffic scene according to the virtual traffic map and the 3D vehicle model.

[0057] In the embodiment of the present application, based on the established virtual traffic map and 3D vehicle model, the 3D vehicle model is made to restore the actual movement law in the virtual traffic map, thereby obtaining a virtual traffic scene consistent with the real traffic scene.

[0058] See also Figure 3 , Figure 3 A flow chart of a method for establishing a virtual traffic scene provided by another embodiment of the present application is shown. The method for establishing a virtual traffic scene may specifically include the following steps:

[0059] Step S310: Acquire road data collected by the vehicle on the driving road within a preset time period, wherein the road data includes movement data of traffic elements on the driving road.

[0060] It communicates with the host and receives in real time the virtual traffic scene, target display picture and target sound clip established by the host based on the road data collected by the collection device on the vehicle.

[0061] Step S320: According to the road sampling data, the movement patterns corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements are obtained, and the characteristic data includes shape, size, color or material.

[0062] Step S330: Based on the road data with motion rules and characteristic data, a virtual traffic scene is obtained by re-injecting.

[0063] For detailed description of steps S310 to S330 , please refer to steps S110 to S130 , which will not be repeated here.

[0064] Step S340: in response to the creation instruction of the virtual HMI platform, obtaining a target image and a target sound corresponding to the creation instruction, wherein the creation instruction carries description information related to the image and the sound.

[0065] The creation instruction may be a creation command input by the user. The creation instruction may be a text command or a voice command. The creation instruction may be a creation instruction generated based on the user's opening operation of a creation button. The creation instruction may also be a creation instruction generated by the user's clicking operation on a creation control in a virtual traffic scene. The type of creation instruction and the method of obtaining it are not specifically limited herein.

[0066] Acquiring the target image and the target sound according to the target instruction may be to perform keyword analysis on the target instruction to obtain specific description information about the image and the sound, and then obtain the target image and the target sound corresponding to the description information from the cloud or the search engine. For example, if the target instruction is "search for pictures with rain and rain sounds", the target instruction is analyzed by keywords to obtain the target sounds corresponding to "rainy day pictures" and "rain sounds", and "rainy day pictures" are searched in the search engine to obtain one or more pictures corresponding to "rainy day pictures". The acquisition of the target instruction may be issued by the user based on the terminal device, or it may be a default instruction set in the virtual HM platform simulation system. The acquisition of the target instruction is not specifically limited here.

[0067] The target image and the target sound can be obtained according to the target instruction by inputting the target instruction into the deep learning network model, and obtaining the corresponding target image or the target sound through the deep learning network model. For example, if the target instruction is "search for images with snowflakes", the target instruction is input into the Chat Generative Pre-trained Transformer (ChatGPT) model to obtain one or more images corresponding to the "snowflake image".

[0068] Step S350: converting the target image into a target sprite image, performing fragmentation integration processing on the target sound, and obtaining a sound clip corresponding to the target sound.

[0069] Sprite images are a common user interface (UI) component. All images in two dimensions can be called sprite images. Common sprite images include background images on UI interfaces.

[0070] A sound clip is a virtual container for one or more complete sound information obtained by integrating multiple sound fragments.

[0071] Specifically, the target sound is fragmented to obtain a plurality of sound fragments corresponding to the target sound. The plurality of sound fragments are integrated to obtain the sound clip corresponding to the target sound. For example, if the target sound is rain mixed with thunder, the target sound is fragmented to obtain thunder fragments and rain fragments, all thunder fragments are integrated to obtain a sound clip corresponding to thunder, and all rain fragments are integrated to obtain a sound clip corresponding to rain.

[0072] The target image is converted into a target sprite image according to a preset size, a preset image format and a preset image definition. The target sound is fragmented and integrated to obtain one or more sound clips with complete sound information, so as to segment one or more information expressed by the target sound.

[0073] See also Figure 4 , Figure 4 A schematic diagram of the establishment process of a virtual HMI platform provided by another embodiment of the present application is shown. In response to a target instruction, a target image and a target sound corresponding to the target instruction are obtained, and a virtual HMI display in a virtual traffic scene and a canvas file corresponding to the virtual HMI display are obtained. The target image is converted into a sprite image by a clearance image conversion method, and the format and size of the sprite image are matched with the canvas file. While the sprite image is matched with the canvas file, the target sound is fragmented and integrated to obtain a sound clip. If the sprite image is successfully matched with the canvas file, and after the match is successful, the target display image obtained by combining the sprite image and the canvas image is successfully matched with the sound clip, by writing a control code for the sound clip and the target display image, it is realized that while displaying the target display image, the sound clip corresponding to the target display image is played, thereby completing the establishment of the virtual traffic scene. The matching of the target display image and the sound clip is performed manually.

[0074] When the sprite image does not match the canvas file, the format and / or size of the sprite image is adjusted in real time to obtain an adjusted sprite image, and then the adjusted sprite image is matched with the canvas file to obtain a sprite image that matches the canvas file.

[0075] When the target display image does not match the sound clip, the sound clip is fragmented and integrated again to obtain a new sound clip, and the new sound clip is manually matched with the target display image. If they do not match, the above operation is performed again until the target display image and the sound clip are successfully matched.

[0076] Step S360: Match the target sprite image with the canvas file of the virtual HMI platform. If they match, obtain a target display image obtained by combining the target sprite image with the canvas file.

[0077] The virtual HMI platform is modeled and rendered according to the size and material of the virtual HMI platform inside the actual vehicle.

[0078] The canvas file refers to the actual display area of ​​the virtual HMI platform.

[0079] By matching the target sprite image with the canvas file, the successfully matched sprite image and the canvas file can be combined to obtain the target display image.

[0080] Specifically, the target sprite image is matched with the canvas file according to its format and size. If the match is successful, the target display image obtained by combining the target sprite image with the canvas file is obtained. If the match is unsuccessful, the target sprite image is adjusted in real time, the adjusted target sprite image is obtained, and the canvas file is re-matched according to the format and size of the adjusted target sprite image until the match is successful.

[0081] The format and size corresponding to the target sprite are matched with the format and size of the canvas file. When the match is successful, the target sprite image is combined with the canvas file, and the target display image is obtained. When the match is unsuccessful, the format and / or size of the target sprite image is adjusted so that the format and size corresponding to the target sprite image match the canvas file, and the target display image is finally obtained. For example, the format of the target sprite image is png format and the size is 300*560mm. The format of the canvas file is sprite format and the size is 260*300mm. The target sprite image is matched with the canvas file. When the format and / or size do not match, the format of the target sprite image is converted to sprite format, the size is adjusted to 260*300mm, and it is matched with the canvas file again. After the match is successful, the target sprite image is combined with the canvas file to form the target display image. The format and size of the canvas file are not specifically limited here.

[0082] Step S370: Obtain the matching result between the target display picture and the sound clip, and use the sound clip that matches the target display picture as the target sound clip.

[0083] The matching result may be a manual matching result, or it may be a matching result of inputting the target display image and the sound clip into a deep learning model. In the embodiment of the present application, a manual matching result is preferred.

[0084] Specifically, the target display image and the sound clip are output for manual matching. The manual matching result of the target display image and the sound clip is obtained. If the matching is successful, the sound clip is used as the target sound clip. If the matching is unsuccessful, the sound clip is disassembled and assembled to obtain a new sound clip. The manual matching result of the new sound clip and the target display image is obtained again until the matching is successful.

[0085] The target display picture and the sound clip are matched by the user. When the matching result is a successful match, the sound clip is used as the target sound clip. When the matching result is an unsuccessful match, one or more sound clips obtained from the target sound are fragmented and integrated again, and one or more new sound clips are obtained, and then manually matched with the target display picture. Repeat the matching steps until the sound clip corresponding to the target sound matches the target display picture. For example, the target display picture is a "traffic light picture", and the target sound is "There is a traffic light 50 meters ahead, slow down", and the sound clip corresponding to the target sound can be "There is a traffic light 50 meters ahead" and "Slow down". Match the sound clip with the target display picture, and determine that the sound clip corresponding to "There is a traffic light 50 meters ahead" is the target sound clip.

[0086] Step S380: establishing a virtual HMI platform for displaying the target display image and playing the target sound clip corresponding to the target display image.

[0087] The virtual HMI platform and the target display image in the virtual HMI platform are displayed on the virtual display device, and the target sound clip corresponding to the target display image is played during the display process. The virtual reality device can be a head-mounted VR glasses, and the head-mounted VR glasses are provided with a sound playback device. When the virtual traffic scene is displayed to the user, the corresponding target sound clip is played through the sound playback device, so that the user can immersively experience the traffic scene of the unmanned vehicle.

[0088] In the solution provided by the present application, the establishment and modification of the virtual HMI platform are based on the virtual traffic scene. Therefore, the modification and establishment of the virtual HMI platform are all performed through pure software, which reduces the cost issues and development cycle caused by using the real HMI platform. Moreover, the virtual traffic scene can quickly respond to the user's instructions for optimization, so that the optimized virtual traffic scene is more in line with user needs and improves the user experience.

[0089] See also Figure 5 , Figure 5A virtual traffic scene simulation system provided by an embodiment of the present application is shown. The virtual traffic scene simulation system can be based on the GACsim simulation engine, and the simulation system 200 includes: a data acquisition unit 210, a cloud big data platform 220, a host 230 and a virtual display device 240. The data acquisition unit 210 is used to collect and obtain road sampling data. The cloud big data platform 220 is communicatively connected with the data acquisition unit 210, and the cloud big data platform 220 is used to obtain the road sampling data in the data acquisition unit 210. The host 230 includes a virtual scene establishment unit 231 and a virtual traffic scene establishment unit 232, and the virtual scene establishment unit 231 is communicatively connected with the cloud big data platform 220 to obtain the road sampling data, and establish a virtual traffic scene according to the road sampling data, and the virtual traffic scene establishment unit 232 is used to execute the virtual traffic scene establishment method provided in any of the above embodiments to establish a virtual traffic scene. The virtual display device 240 includes a display unit 241 and a communication unit 242 that are communicatively connected to each other, the communication unit 242 is communicatively connected to the host 230, and the display unit 241 is used to display the virtual traffic scene and the virtual traffic scene.

[0090] In the specific implementation process, the data acquisition unit 210 first collects all traffic elements on the road on which the vehicle is currently traveling in real time to obtain road data. Since the traffic elements are collected in real time, the motion laws corresponding to the traffic elements can be obtained in adjacent unit times. The road data with motion laws are forwarded to the cloud big data platform 220 for multiple hosts to obtain the road data. After the host 230 obtains the road data with motion laws from the cloud big data platform 220, the virtual scene establishment unit 231 establishes a virtual traffic scene based on the road data, and according to the motion laws and a 3D vehicle model with the same size as the real vehicle, the established virtual traffic scene is consistent with the real traffic scene. On the basis of the establishment of the virtual traffic scene, the virtual traffic scene establishment unit 232 establishes the virtual traffic scene according to the virtual traffic scene establishment method provided in any of the above embodiments to obtain a virtual HMI platform, a target display picture, and a target sound clip. The obtained virtual traffic scene, virtual traffic scene, target display picture and target sound clip are transmitted to the virtual display device 240, and the display unit 241 displays the virtual traffic scene, virtual traffic scene and target display picture, and plays the target sound clip corresponding to the target display picture. The communication unit 242 includes a spatial positioning tracker 2421, which transmits the user's location to the virtual display controller 2422. The virtual display controller 2422 is located in the host, and through the communication connection with the virtual scene establishment unit 231, the user's location is sent to the virtual scene establishment unit 231, so that the virtual scene establishment unit 231 can update the virtual scene in real time according to the user's location. In addition, the communication unit 242 also includes a controller 2423, which is used for the interaction between the user and the virtual traffic scene, so that the user using the display unit 241 can experience the virtual traffic scene immersively. The host 230 can also be connected to the display, keyboard and mouse through cables. The user can manually match through the display, keyboard and mouse, or observe the virtual traffic scene and the specific establishment of the virtual traffic scene from the display, and use the keyboard and mouse to make real-time adjustments to the established virtual traffic scene and the virtual traffic scene.

[0091] In some embodiments, the virtual scene establishment unit 231 also includes: a data re-injection unit 2313, which communicates with the cloud big data platform 220 to obtain the road sampling data; a scene restoration unit 2312, which is used to automatically generate an initial virtual traffic scene based on the road sampling data obtained by the re-injection; and a rendering unit 2311, which renders the initial virtual traffic scene to obtain the virtual traffic scene consistent with the real scene.

[0092] The data re-injection unit 2313 is to use the data mining operator to re-inject the acquired road data to obtain a traffic scene model, and the scene restoration unit 2312 can establish an initial virtual traffic scene based on the traffic scene model obtained by the data re-injection unit 2311. Then, the rendering unit 2311 renders the initial virtual traffic scene to obtain a virtual traffic scene consistent with the real traffic scene.

[0093] See also Figure 6 , which shows a structural block diagram of a virtual traffic scene establishment device 300 provided in an embodiment of the present application. The virtual traffic scene establishment device 300 is applied to an electronic device 100, and the virtual traffic scene establishment device 300 includes: a road sampling data acquisition module 310, which is used to obtain road sampling data collected by a vehicle on a driving road within a preset time period, wherein the road sampling data includes motion data of traffic elements on the driving road; a road sampling data acquisition module 320, which is used to obtain the motion law corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements according to the road sampling data, wherein the characteristic data includes shape, size, color or material; a virtual traffic scene establishment module 330, which is used to obtain a virtual traffic scene based on the road sampling data with motion law and characteristic data.

[0094] In some embodiments of the present application, the virtual traffic scene establishment module 330 includes: an initial virtual traffic map acquisition module, which is used to obtain an initial virtual traffic map corresponding to the vehicle on the driving road based on the road sampling data with motion rules; a virtual traffic map acquisition module, which is used to render the initial virtual traffic map to obtain a virtual traffic map consistent with real traffic elements; a 3D vehicle model acquisition module, which is used to obtain a 3D vehicle model replicated according to the size parameters and shape parameters of the actual vehicle; a virtual traffic scene establishment module based on the virtual traffic map and the 3D vehicle model, which is used to establish the virtual traffic scene based on the virtual traffic map and the 3D vehicle model.

[0095] In some embodiments of the present application, the initial virtual traffic map acquisition module includes: a data re-injection module, which uses a data mining operator to re-inject the road data into the initial virtual traffic map; the virtual traffic map acquisition module includes a data rendering module, which uses a rendering engine to render the color and material of the scene elements in the initial virtual traffic map to obtain the virtual traffic map.

[0096] In some embodiments of the present application, the virtual traffic scene establishing device 300 further includes: a virtual HMI platform establishing module, which is used to establish a virtual HMI platform in the virtual traffic scene in response to an instruction to establish the virtual HMI platform.

[0097] In some embodiments of the present application, the virtual HMI platform establishment module includes: a target image and target sound acquisition module, which is used to use a data mining operator to respond to the establishment instruction of the virtual HMI platform to obtain the target image and target sound corresponding to the establishment instruction, wherein the establishment instruction carries description information related to the image and the sound; a sound clip acquisition module, which is used to convert the target image into a target sprite image, and fragment and integrate the target sound to obtain a sound clip corresponding to the target sound; a target display image acquisition module, which is used to match the target sprite image with the canvas file of the virtual HMI platform, and if matched, obtain the target display image obtained by combining the target sprite image and the canvas file; a target sound clip determination module, which is used to obtain the matching result between the target display image and the sound clip, and use the sound clip matching the target display image as the target sound clip; a platform establishment module, which is used to establish a virtual HMI platform for displaying the target display image and playing the target sound clip corresponding to the target display image.

[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0099] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0100] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0101] Please refer to Figure 7 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 can be a switch, a computer, or a control unit with data transmission. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0102] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0103] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0104] A computer-readable storage medium is also provided in an embodiment of the present application. A program code is stored in the computer-readable storage medium. The program code can be called by a processor to execute the method described in the above method embodiment.

[0105] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.

[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements 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 application.

Claims

1. A method for establishing a virtual traffic scene, characterized in that: The method comprises: Acquire road data collected by the vehicle on the driving road within a preset time period, wherein the road data includes movement data of traffic elements on the driving road; According to the road sampling data, the movement law corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements are obtained, wherein the characteristic data includes shape, size, color or material; Based on the road data with motion rules and characteristic data, the virtual traffic scene is obtained by re-injection; In response to a virtual HMI platform establishment instruction, a target image and a target sound corresponding to the establishment instruction are obtained, wherein the establishment instruction carries description information related to the image and the sound; the target image is converted into a target sprite image, and the target sound is fragmented and integrated to obtain a sound clip corresponding to the target sound, wherein the sprite image includes a background image of a user interface, and the sound clip is a virtual container for sound information; the target sprite image is matched with a canvas file of the virtual HMI platform, and if matched, a target display image obtained by combining the target sprite image with the canvas file is obtained; a matching result between the target display image and the sound clip is obtained, and the sound clip matching the target display image is used as a target sound clip; and a virtual HMI platform for displaying the target display image and playing the target sound clip corresponding to the target display image is established.

2. The method according to claim 1, characterized in that The method of obtaining a virtual traffic scene based on road data with motion rules and characteristic data includes: Based on the road sampling data with motion rules, an initial virtual traffic map corresponding to the vehicle on the driving road is obtained; Rendering the initial virtual traffic map to obtain a virtual traffic map consistent with real traffic elements; Obtain a 3D vehicle model that is replicated based on the size parameters and shape parameters of the actual vehicle; The virtual traffic scene is established according to the virtual traffic map and the 3D vehicle model.

3. The method according to claim 2, characterized in that The step of obtaining an initial virtual traffic map corresponding to the current road traveled by the vehicle based on the road sampling data includes: Using a data mining operator, injecting the road collection data back into the initial virtual traffic map; The rendering of the initial virtual traffic map to obtain a virtual traffic map consistent with real traffic elements includes: The rendering engine is used to render the colors and materials of the scene elements in the initial virtual traffic map to obtain the virtual traffic map.

4. The method according to claim 1, characterized in that After the virtual traffic scene is obtained by injecting the road data with motion rules and feature data, the method further includes: In response to the instruction to establish the virtual HMI platform, a virtual HMI platform is established in the virtual traffic scene.

5. A virtual traffic scene simulation system, characterized in that: The system comprises: A data collection unit, the data collection unit is used to collect and obtain road data; A cloud-based big data platform, the cloud-based big data platform is in communication connection with the data acquisition unit, and the cloud-based big data platform is used to obtain the road acquisition data in the data acquisition unit; A host, the host comprising a virtual scene establishment unit, the virtual scene establishment unit being communicatively connected with the cloud big data platform to obtain the road sampling data and establish a virtual traffic scene according to the road sampling data, the virtual traffic scene establishment unit being used to execute the virtual traffic scene establishment method according to any one of claims 1 to 4 to establish a virtual traffic scene; and A virtual display device, the virtual display device includes a display unit and a communication unit, the display unit and the communication unit are communicatively connected, the communication unit is communicatively connected to the host, and the display unit is used to display the virtual traffic scene and the virtual HMI platform.

6. The system according to claim 5, characterized in that The virtual scene establishing unit in the host also includes: A data re-injection unit, the data re-injection unit is connected to the cloud big data platform for communication to obtain the road collection data; A scene restoration unit, the scene restoration unit is used to automatically generate an initial virtual traffic scene according to the road sampling data obtained by the re-injection; and A rendering unit is used to render the initial virtual traffic scene to obtain the virtual traffic scene that is consistent with the real scene.

7. A device for establishing a virtual traffic scene, characterized in that: include: A road data acquisition module is a module used to acquire road data collected by a vehicle on a driving road within a preset time period, wherein the road data includes movement data of traffic elements on the driving road; A road sampling data acquisition module, used to obtain the movement law corresponding to the traffic elements on the driving road and the characteristic data of the traffic elements according to the road sampling data, wherein the characteristic data includes shape, size, color or material; A virtual traffic scene establishment module is used to obtain a virtual traffic scene based on road sampling data with motion rules and characteristic data; A target sound acquisition module is used to respond to a virtual HMI platform establishment instruction and acquire a target image and a target sound corresponding to the establishment instruction, wherein the establishment instruction carries description information related to the image and the sound; a sound clip acquisition module is used to convert the target image into a target sprite image, and perform fragmentation integration processing on the target sound to obtain a sound clip corresponding to the target sound, wherein the sprite image includes a background image of a user interface, and the sound clip is a virtual container for sound information; a target display image acquisition module is used to match the target sprite image with a canvas file of the virtual HMI platform, and if they match, to obtain a target display image obtained by combining the target sprite image with the canvas file; a target sound clip determination module is used to obtain a matching result between the target display image and the sound clip, and use the sound clip matching the target display image as the target sound clip; and a platform establishment module is used to establish a virtual HMI platform for displaying the target display image and playing the target sound clip corresponding to the target display image.

8. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 4.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 4.