Data format conversion method and device, electronic equipment and storage medium
By obtaining the metadata and sensitivity coefficients of the source data file, the source signal value is automatically converted into the target data format, which solves the problem of low efficiency of data format conversion and realizes automated and efficient data format conversion.
Patent Information
- Application Number
- CN202510759501.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-09-05
AI Technical Summary
In the prior art, manual writing of format conversion scripts is required to perform data format conversion, resulting in low data format conversion efficiency.
By obtaining the metadata of the source data file, including the sensitivity coefficient and measurement unit corresponding to the channel, the source signal value is automatically converted into the signal value under the target data format, the format conversion is performed using the sensitivity coefficient and measurement unit, and the target data file is generated in combination with the field mapping information.
It realizes automatic data format conversion, improves conversion efficiency and applicability, and eliminates the need to write conversion scripts for each source data format.
Smart Images

Figure CN120597835A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data format conversion method, device, electronic device and storage medium. Background Art
[0002] During vehicle development, it's necessary to analyze test data from NVH (Noise, Vibration, Harshness) testing to optimize the vehicle's NVH performance. The test data from NVH testing comes from multiple different acquisition devices (such as vibration sensors, noise acquisition devices, and sound intensity probes). Different acquisition devices output different data formats. Prior to analyzing the experimental data, prior to analyzing the data, a format conversion script must be written for each data format to convert the test data into a unified format. This requirement for a format conversion script for each data format results in low data format conversion efficiency. Summary of the Invention
[0003] In view of this, the embodiments of the present application propose a data format conversion method, device, electronic device and storage medium to solve the problem of low data format conversion efficiency in related technologies that require manual writing of format conversion scripts to perform data format conversion.
[0004] The embodiments of the present application are implemented using the following technical solutions: In a first aspect, the present application provides a data format conversion method, comprising: Obtaining meta information of the source data file; wherein the meta information includes a sensitivity coefficient corresponding to each channel and a source measurement unit corresponding to each channel, and each channel corresponds to one physical quantity; Reading the source signal value collected for the physical quantity corresponding to each of the channels from the data segment of the source data file; According to the sensitivity coefficient and the source measurement unit corresponding to each channel, the corresponding source signal value is format-converted into the target data format to obtain the target signal value of the corresponding source signal value in the target data format.
[0005] In the present application, after obtaining the sensitivity coefficient corresponding to each channel and the source measurement unit corresponding to each channel from the metadata of the source data file, the source signal value collected for the physical quantity corresponding to each channel in the data segment of the source data file is converted to the target data format according to the sensitivity coefficient and the source measurement unit corresponding to each channel, and the target signal value of the corresponding source signal value in the target data format is obtained. In this way, it is ensured that the target signal value is a signal value represented in the target data format. In this way, the source signal value represented in the source data format in the source data file is automatically converted to a signal value represented in the target data format, and automatic data format conversion is achieved. Moreover, the solution of the present application is suitable for automatically converting source data files of multiple source data formats to the target data format. There is no need to write a format conversion script for converting to the target data format for each source data format, which can improve the efficiency and application scope of data format conversion.
[0006] In some embodiments, converting the corresponding source signal value into a target data format according to the sensitivity coefficient and the corresponding source measurement unit corresponding to each channel to obtain a target signal value of the corresponding source signal value in the target data format includes: Multiplying the sensitivity coefficient corresponding to each of the channels by the corresponding source signal value to obtain the source actual signal value corresponding to each of the channels; According to the source number system of the source signal value corresponding to each of the channels, the corresponding source actual signal value is converted into the target number system required by the target data format to obtain an intermediate signal value of the source actual signal value in the target number system; The intermediate signal value is converted according to the conversion relationship between the source measurement unit and the target measurement unit required by the target data format to obtain the target signal value of each channel corresponding to the target data format.
[0007] Using the above method, combined with the sensitivity coefficients corresponding to the channels, the source signal values are converted to ensure that the actual source signal values are measured in the source measurement units. Subsequently, conversion is performed based on the actual source signal values to ensure that the target signal values corresponding to each channel are not only expressed in the target number system required by the target data format, but also measured in the target measurement units required by the target data format.
[0008] In some embodiments, the meta information further includes a source channel identifier of each of the channels; and the method further includes: Obtaining field mapping information corresponding to a source data format; wherein the field mapping information corresponding to the source data format indicates a mapping relationship between fields in the source data format and fields in the target data format, and the source data format refers to the data format of the source data file; Determining a target channel identifier mapped to each source channel identifier in the target data format according to a mapping relationship between fields in the source data format and fields in the target data format; Associating the target channel identifier mapped to each channel in the target data format with the corresponding target signal value in the target data format to obtain conversion data corresponding to each channel; A target data file of the source data file in the target data format is generated according to the conversion data corresponding to each of the channels.
[0009] In the above embodiment, not only are the source signal values in the data segments in the source data file format converted to obtain target signal values that conform to the target data format, but the fields involved in the data segments in the source data file (fields representing channel identifiers) are also mapped to the target data format. In this way, it is ensured that the information (fields and target signal values) in the subsequent target data file can be accurately parsed, thereby ensuring that subsequent data analysis based on the target data file is accurate.
[0010] In some embodiments, after generating the target data file in the target data format according to the conversion data corresponding to each of the channels, the method further includes: A conversion log corresponding to the source data file is generated according to the source information of the source data file, the format conversion time corresponding to the source data file, and the mapping relationship between the fields in the source data format and the fields in the target data format.
[0011] The conversion log corresponding to the source data file records the source information of the source data file, the format conversion time corresponding to the source data file, and the mapping relationship between the fields in the source data format and the fields in the target data format, that is, it records the key information in the process of format conversion to the target data format. This facilitates subsequent tracing, for example, when abnormal data (such as abnormal signal values) are found in the target data file, tracing is carried out.
[0012] In some embodiments, reading the source signal value collected for the physical quantity corresponding to each of the channels from the data segment of the source data file includes: Performing data structure analysis on the data segments to determine the data offset position corresponding to each of the channels; Locating the data blocks corresponding to the channels in the data segment according to the data offset positions corresponding to the channels; From the data blocks corresponding to the channels, source signal values collected for the physical quantities corresponding to the channels at at least one time point are read.
[0013] By performing data structure analysis on the data segment, the data block where the collected data corresponding to each channel is located is located. In this way, it is ensured that the source signal value collected for the physical quantity represented by each channel can be accurately read from the data segment, reducing the situation where the source signal value corresponding to other channels is read.
[0014] In some embodiments, obtaining metadata of the source data file includes: Identifying a source data format of the source data file; Determining a target file parser suitable for the source data format based on the correspondence between the data format and the file parser; The target file parser is used to parse the source data file to obtain the meta information of the source data file.
[0015] In the above embodiment, since file parsers corresponding to different data formats are pre-set, and after the source data format of the source data file is identified, the source data file is parsed using the target file parser corresponding to the source data format, the accuracy of the parsing process can be guaranteed, thereby ensuring that the metadata of the source data file can be accurately obtained.
[0016] In some embodiments, the source data files are output by various acquisition devices during NVH testing. By converting the format of the source data files output during NVH testing, data in a unified target data format is obtained, which facilitates subsequent unified analysis.
[0017] In a second aspect, the present application provides a data format conversion device, comprising: An acquisition module, configured to acquire meta-information of a source data file; wherein the meta-information includes a sensitivity coefficient corresponding to each channel and a source measurement unit corresponding to each channel, and each channel corresponds to one physical quantity; A source signal value reading module, configured to read the source signal value collected for the physical quantity corresponding to each of the channels from the data segment of the source data file; The format conversion module is used to convert the corresponding source signal value into a target data format according to the sensitivity coefficient and the corresponding source measurement unit corresponding to each channel, so as to obtain a target signal value of the corresponding source signal value in the target data format.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory, wherein computer instructions are stored in the memory, and when the computer instructions are executed by the processor, the above-mentioned data format conversion method is implemented.
[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the above-mentioned data format conversion method is implemented.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, including computer instructions, which, when executed by a processor, implement the above-mentioned data format conversion method.
[0021] These and other aspects of the present application will become more readily apparent from the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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.
[0023] Figure 1 It is a schematic diagram of an application scenario according to an embodiment of the present application.
[0024] Figure 2 4 is a flowchart of a data format conversion method according to an embodiment of the present application.
[0025] Figure 3 FIG. 2 is a flowchart of step 210 according to an embodiment of the present application.
[0026] Figure 4 FIG. 2 is a flowchart of step 220 according to an embodiment of the present application.
[0027] Figure 5 FIG. 2 is a flowchart of step 230 according to an embodiment of the present application.
[0028] Figure 6 FIG. 4 is a flowchart of a data format conversion method according to another embodiment of the present application.
[0029] Figure 7 Schematic diagram of a process involved in a data format conversion process according to an embodiment of the present application.
[0030] Figure 8 This is a block diagram of a data format conversion device according to an embodiment of the present application.
[0031] Figure 9 This is a block diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0032] The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application.
[0033] In order to enable those skilled in the art to better understand the present invention, the following will provide a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0034] In the following description, the terms "first\second" and the like are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0035] The term "plurality" as used herein refers to two or more. "And / or" describes the association relationship between associated objects, indicating that three possible relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship. In the following description, references to "some embodiments or some embodiments" describe a subset of all possible embodiments. However, it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0036] Figure 1 is a schematic diagram of an application scenario according to an embodiment of the present application, such as Figure 1 As shown, the electronic device 120 can obtain the source data file from the acquisition device 110. Figure 1illustratively illustrates a source data file I output by a vibration sensor and a source data file II output by a noise acquisition device. Both the vibration sensor and the noise acquisition device serve as acquisition device 110, but the acquisition device is not limited thereto. Upon determining that the data format of the source data file differs from the required target data format, electronic device 120 converts the source data file according to the method of the present application to obtain a data file in the target data format.
[0037] In some embodiments, acquisition device 110 can be any acquisition device suitable for use in NVH testing, such as a device for collecting noise or vibration. The source data files collected by each acquisition device 110 during the NVH test can be converted into data files in a target data format according to the methods of this application. In some embodiments, after obtaining the data files in the target data format, software that supports data analysis in the target data format can be used to analyze the data files in the target data format, such as by performing spectrum analysis.
[0038] Figure 2 The method of the present application can be executed by an electronic device, such as a server, a terminal (such as a desktop computer, a tablet computer or other device with processing capabilities), Figure 2 As shown, the method includes steps 210 to 230, which are described in detail as follows: Step 210: Obtain meta information of the source data file; wherein the meta information includes the sensitivity coefficient corresponding to each channel and the source measurement unit corresponding to each channel, and one channel corresponds to one physical quantity.
[0039] Source data files generally refer to data files to be converted into data formats. If there are multiple data files that need to be converted into data formats, each data file can be used as a source data file in this application. A source data file can be a data file output by an acquisition device for data acquisition. In some embodiments, the source data file is output by each acquisition device during the NVH test, and the acquisition device is such as a vibration sensor, a noise acquisition device, a microphone, etc. The test objects for the NVH test can be vehicles, vehicle parts (such as engines, gearboxes, brakes, etc.), household appliances (such as refrigerators, washing machines, air conditioners), industrial equipment, medical equipment, etc., which are not specifically limited here.
[0040] A source data file may include collected data corresponding to one or more channels. The collected data corresponding to a channel includes the signal value collected for the physical quantity represented by the channel, i.e., the source signal value hereinafter. In some embodiments, the collected data corresponding to a channel includes the signal value collected at one or more time points for the physical quantity represented by the channel. For example, if the physical quantity is noise, the corresponding collected signal value is the noise value. In other words, the physical quantity represented by a channel is a physical quantity that is required to be collected.
[0041] For example, in an NVH test, a channel can represent physical quantities such as noise, vibration, and harshness. Furthermore, because NVH testing of a test object (e.g., a vehicle) may involve data collection from multiple locations within the object, different channels are associated with the same physical quantity at different locations within the same object. For example, channel 1 corresponds to noise collected at measurement point 1 within the vehicle, channel 2 corresponds to noise collected at measurement point 2 within the vehicle, and channel 3 corresponds to noise collected at measurement point 3 within the vehicle.
[0042] The sensitivity coefficient corresponding to a channel refers to the ratio of the change in the physical quantity required to be collected by the acquisition device corresponding to the channel to the change in the sensed physical quantity of the acquisition device. The sensitivity coefficient corresponding to a channel reflects the response ability of the acquisition device corresponding to the channel to the physical quantity required to be collected, that is, the value of the sensed physical quantity caused by the unit collected physical quantity.
[0043] In this application, the physical quantity that the acquisition device corresponding to a channel is required to collect is the physical quantity represented by the channel. For example, if a channel corresponds to the noise at measurement point 1 in a vehicle, the physical quantity that the acquisition device corresponding to the channel is required to collect (referred to as the required physical quantity to be collected) is the noise. The sensed physical quantity of the acquisition device corresponding to a channel refers to the physical quantity actually sensed by the acquisition device. For example, for a vibration sensor, the physical quantity it actually senses is the voltage after converting mechanical vibration into an electrical signal. Therefore, the sensed physical quantity of the vibration sensor is the voltage of the voltage signal, while the physical quantity required to be collected by the vibration sensor is vibration (such as acceleration, displacement, etc.).
[0044] In some embodiments, in the source data file, the signal value in the collected data corresponding to a channel may be the signal value of the sensed physical quantity sensed by the acquisition device corresponding to the channel. For example, if the sensed physical quantity of an acquisition device is voltage, then in the source data file, the signal value in the corresponding collected data is a voltage value.
[0045] In some embodiments, in the source data file, the signal value in the collected data corresponding to a channel may be the signal value of the physical quantity required to be collected by the collection device corresponding to the channel. In other words, in this case, before the collection device outputs data, the signal value of the actually sensed physical quantity has been converted into the signal value of the physical quantity required to be collected.
[0046] The source measurement unit corresponding to a channel is represented by the unit of each signal value (i.e., source signal value) in the acquired data collected by the physical quantity represented by the channel. It is worth noting that if the signal value in the acquired data corresponding to a channel is the signal value of the sensed physical quantity sensed by the acquisition device, then the source measurement unit is the unit of the corresponding sensed physical quantity; if the signal value in the acquired data corresponding to a channel in the source data file is the signal value of the physical quantity to be acquired, then the source measurement unit is the unit of the corresponding physical quantity to be acquired.
[0047] In some embodiments, metadata of the source data file can be obtained from its header. The metadata of the source data file describes the file content, structure, and management process of the source data file. This metadata is additional information unrelated to the data segments in the source data file. In the present application, the metadata of the source data file includes at least the channels involved in the data segments in the source data file, the sensitivity coefficients corresponding to the channels, and the source measurement units corresponding to the channels. In addition, the metadata may also include information such as the source data file's file name, author, and creation time.
[0048] In some embodiments, as Figure 3 As shown, step 210 includes the following steps 310 to 330, which are described in detail as follows: Step 310, identifying the source data format of the source data file.
[0049] The source data format refers to the data format of the source data file. In some embodiments, because data files of different data formats have different suffixes, the source data format of the source data file can be identified by the file suffix of the source data file. For example, a text-formatted data file has a file suffix of ".txt," and a CSV (Comma-Separated Values)-formatted file has a file suffix of ".csv."
[0050] In other embodiments, a magic number can be obtained from a source data file to determine the source data format of the source data file. A target file parser can then be determined based on the source data format determined based on the magic number. A magic number is a specific sequence of bytes used to identify the file format. This magic number acts as a digital signature for the data format of the data file.
[0051] Step 320: Determine a target file parser suitable for the source data format based on the correspondence between the data format and the file parser.
[0052] The target file parser refers to a parser that is suitable for parsing data files in the source data format. In some embodiments, a correspondence between different data formats and corresponding applicable file parsers can be pre-set, and a file parser corresponding to a data format refers to a parser used to parse data files in that data format.
[0053] In some embodiments, to ensure that the determined target file parser can accurately parse the current source data file, the data format of the source data file may be further confirmed. Specifically, the target file parser may be called to read a magic number from the file header of the source data file; if the data format represented by the magic number read from the source data file is the same as the source data format determined in step 310, it indicates that the determined source data format is accurate and the determined target file parser is also accurate.
[0054] In other embodiments, if the data format of the source data file is confirmed twice and it is determined that the data format represented by the magic number read from the source data file is different from the data format represented by the file suffix of the source data file, it means that the current source data file is special. The data format represented by the magic number can be determined as the source data format of the source data file, and the target file parser can be determined based on the data format represented by the magic number.
[0055] Step 330: parse the source data file through the target file parser to obtain the meta information of the source data file.
[0056] The source data file mainly consists of two parts: the file header and the data segment. In some data formats, the file header and the data segment are spliced together, while in some data formats, the file header and the data segment are stored separately.
[0057] The file header contains metadata about the source data file, such as the file version number, number of channels, channel name, sampling frequency, source measurement units, and sensitivity coefficients. By parsing the source data file with a target file parser, the metadata can be retrieved from the file header, providing a foundation for subsequent data processing. The data segment in the source data file is the main body of the data. The data segment contains the collected data for each channel. The source signal values for each channel described below are located in the data segment.
[0058] The file header is usually stored in a fixed-length format. Therefore, after parsing the starting position of the file header from the source data file, reading starts from the starting position of the file header and uses the length of the file header as the offset to read the full file header. Afterwards, the metadata is extracted from the file header according to the metadata extraction rules corresponding to the source data format.
[0059] Meta information is generally stored in the file header in the following three ways: 1) Specific delimiters are used for storage, such as using \x0D\x0A to separate attributes, and the metadata is stored as an attribute in the file header of the data file.
[0060] 2) Use other common formats (such as XML format and INI format) for storage.
[0061] 3) Use a format such as "variable-length data segment + command character (cmd char)" for storage. When the content read is a command character, execute the file offset (file offset) according to the meaning of the command character and then read the corresponding content (i.e., meta information).
[0062] In some embodiments, based on the above-mentioned storage rules of the metadata of data files of different data formats in the file header, metadata extraction rules corresponding to different data formats can be pre-set. The metadata extraction rule corresponding to a data format is determined by the storage rules of the metadata of the data file of the data format in the file header. For example, if the storage rule of the metadata of the data file corresponding to a data format in the file header is as described in method 1) above, the metadata extraction rule corresponding to the data format indicates that the metadata is extracted after a specific delimiter (such as \x0D\x0A, etc.) in the file header of the data format. In this way, after determining the source data format of the source data file, the corresponding metadata is extracted from the file header of the source data file according to the metadata extraction rule corresponding to the source data format.
[0063] In some embodiments, meta information extraction tools corresponding to various data formats may be pre-deployed. After determining the source data format of a source data file, the meta information extraction tool corresponding to the source data format may be called to extract meta information of the source data file from the source data file.
[0064] In some embodiments, if the source data format of a source data file is determined to be different from the target data format, the source data file may be format-converted according to the method provided herein. Conversely, if the data format of a source data file is the target data format, no format conversion is required. The target data format may be a data format specified as needed.
[0065] Step 220 : Read the source signal value collected for the physical quantity corresponding to each channel from the data segment of the source data file.
[0066] The data segments in the source data file are the main data content of the source data file. The target file parser can be used to parse the source data file and extract the data segments from the source data file.
[0067] In some embodiments, as Figure 4 As shown, step 220 includes steps 410 to 430, which are described in detail as follows: Step 410: Perform data structure analysis on the data segment to determine the data offset position corresponding to each channel.
[0068] To efficiently store and retrieve data (reducing disk I / O and CPU operations), acquisition devices and the analysis software running on them typically encode the collected raw data and store it as data blocks (datablocks). Therefore, a data segment contains one or more data blocks. Therefore, by analyzing the data structure of the data segment, the storage structure and encoding rules corresponding to the data segment can be determined, and the number of data blocks in the data segment, the start and end positions of the data blocks, and the encoding method of the data blocks can be determined. The encoding method of the data blocks can be understood as the number system used for the data stored, such as binary, decimal, hexadecimal, etc.
[0069] Furthermore, because a data segment includes collected data corresponding to one or more channels, the data offset position of the data block containing the collected data corresponding to each channel, i.e., the data offset position corresponding to each channel, can be determined by combining the channels involved in the source data file obtained from the metadata and performing data structure analysis on the data segment. The data offset position corresponding to a channel indicates the data block containing the collected data corresponding to the channel, and further indicates the data position of the collected data corresponding to the channel within the data segment.
[0070] In some embodiments, the data offset position corresponding to a channel may include the data start position and the data length, thereby determining the data end position based on the data position and the data length. In other embodiments, the data offset position corresponding to a channel may include the data start position and the data end position.
[0071] Step 420: Locate the data block corresponding to each channel in the data segment according to the data offset position corresponding to each channel.
[0072] The data block corresponding to a channel refers to the data block containing the collected data corresponding to the channel. Since the corresponding data start and end positions can be determined based on the data offset position corresponding to a channel, the data block from the data start position to the data end position corresponding to the channel is referred to as the data block corresponding to the channel. It is worth mentioning that if the amount of collected data corresponding to a channel is large, the collected data corresponding to the channel may occupy multiple data blocks, and the number of data blocks corresponding to the channel will be determined to be multiple.
[0073] Step 430 : Read, from the data block corresponding to each channel, the source signal value collected for the physical quantity corresponding to the channel at at least one time point.
[0074] In the data block corresponding to a channel, combined with the data offset position corresponding to the channel, the source signal values collected for the physical quantity corresponding to the channel can be sequentially read at each time point. The data in the source data file can be time domain data, that is, it includes source signal values collected at multiple time points.
[0075] Step 230 : Convert the corresponding source signal value into a target data format according to the sensitivity coefficient and the corresponding source measurement unit of each channel to obtain a target signal value of the corresponding source signal value in the target data format.
[0076] The target data format refers to the required data format. In some embodiments, a data format supported by the data analysis software may be used as the target data format based on the data analysis needs. Alternatively, based on the need for unified data formats, one data format from multiple data formats may be selected as a standard data format, with the standard data format correspondingly serving as the target data format. The method provided herein can be used to convert source data files that are not in the target data format into the target data format to unify the data formats of the data files.
[0077] The target data format at least limits the number system under the target data format and the units of each physical quantity under the target data format. In this application, the number system required by the target data format is referred to as the target number system, and the units of each physical quantity required by the target data format are referred to as target measurement units.
[0078] In some embodiments, as Figure 5 As shown, step 230 includes the following steps 510 to 530, which are described in detail as follows: Step 510: Multiply the sensitivity coefficient corresponding to each channel by the corresponding source signal value to obtain the actual source signal value corresponding to each channel.
[0079] As described above, the signal in the source data file (i.e., the source signal value) may not be the signal value of the physical quantity required to be collected, but the signal value of the sensed physical quantity sensed by the corresponding acquisition device. Therefore, if the signal value for each channel in the source data file does not correspond to the signal value of the physical quantity required to be collected, for each channel, the sensitivity coefficient corresponding to each channel is multiplied by the corresponding source signal value to obtain the actual source signal value corresponding to each channel, that is, the source signal value is converted into the signal value of the physical quantity required to be collected.
[0080] Step 520 , based on the source number system of the source signal value corresponding to each channel, convert the corresponding source actual signal value into the target number system required by the target data format to obtain the intermediate signal value of the source actual signal value in the target number system.
[0081] The source number system refers to the number system used for the source signal values in the source data file, such as binary, decimal, or hexadecimal. The target number system refers to the number system required by the target data format. When the source number system and the target number system differ, to ensure that the converted data conforms to the target data format, the actual source signal values must be expressed in the target number system. In other words, the actual source signal values must be expressed as signal values in the target number system, i.e., intermediate signal values. For example, if the source number system is binary and the target number system is decimal, the binary signal values must be converted to decimal values.
[0082] In some embodiments, conversion functions for converting different number systems to target number systems can be pre-set. Then, after determining the source number system, a target conversion function for converting the source number system to the target number system is obtained, and the target conversion function is called to convert the source actual signal value corresponding to each channel to the target number system to obtain the intermediate signal value of the source actual signal value in the target number system.
[0083] Step 530 : converting the intermediate signal value according to the conversion relationship between the source measurement unit and the target measurement unit required by the target data format to obtain the target signal value of each channel corresponding to the target data format.
[0084] In some embodiments, the conversion relationship between the source measurement unit and the target measurement unit can be represented by a unit conversion function. Therefore, the unit conversion function between different measurement units and the target measurement unit can be pre-set. Then, after determining the source measurement unit, a target unit conversion function suitable for converting the source measurement unit into the target measurement unit is obtained, and the intermediate signal value is converted to obtain the signal value of the intermediate signal value when measured in the target measurement unit, which is the target signal value corresponding to the channel in the target data format.
[0085] according to Figure 5 The conversion process shown in the figure can ensure that the target signal value of each channel is not only expressed in the target number system, but also measured in the target measurement unit required by the target data format. It can be understood that since the acquisition data corresponding to a channel may include source signal values at multiple time points, each source signal value can be converted according to the target number system. Figure 5 In some embodiments, since a source data file may involve multiple channels, for example, N channels, where N is an integer greater than 1, in order to shorten the time required to convert the data format of a source data file, N threads may be called to perform format conversion on the source signal values in the collected data corresponding to the N channels in parallel, wherein one thread is responsible for performing format conversion on the source signal values in the collected data corresponding to one channel.
[0086] In the present application, after obtaining the sensitivity coefficient corresponding to each channel and the source measurement unit corresponding to each channel from the metadata of the source data file, the source signal value collected for the physical quantity corresponding to each channel in the data segment of the source data file is converted to the target data format according to the sensitivity coefficient and the source measurement unit corresponding to each channel, and the target signal value of the corresponding source signal value under the target data format is obtained. In this way, it is ensured that the target signal value is a signal value represented in the target data format. In this way, the source signal value represented in the source data format in the source data file is automatically converted to a signal value represented in the target data format, and automatic data format conversion is realized. Moreover, the solution of the present application is suitable for automatically converting source data files of multiple source data formats to the target data format. There is no need to write a format conversion script for converting to the target data format for each source data format, which can improve the efficiency and application scope of data format conversion.
[0087] In some embodiments, the meta information also includes the source channel identifier of each channel; Figure 6 As shown, the method further includes the following steps 610 to 640: Step 610: Obtain field mapping information corresponding to the source data format; wherein the field mapping information corresponding to the source data format indicates the mapping relationship between the fields in the source data format and the fields in the target data format, and the source data format refers to the data format of the source data file.
[0088] The source channel identifier of a channel may be at least one of the channel number and channel name of the channel in the source data file. For ease of distinction, the channel number of a channel in the source data file is referred to as the source channel number. Similarly, the channel name of a channel in the source data file is referred to as the source channel name. In some embodiments, the source channel name of a channel in the source data file may be the name of the physical quantity represented by the channel in the source data file.
[0089] The same physical quantity may be represented by different fields in different data formats. Therefore, to avoid the situation where the fields in the source data file are used after the data format conversion, resulting in the inability to accurately identify the meaning of the field in the data file after the data format conversion, the fields in the source data file are also mapped.
[0090] In some embodiments, field mapping information corresponding to each data format can be pre-defined. The field mapping information corresponding to a data format indicates the fields in that data format that are mapped to the target data format. A field in a data format refers to a field that appears in a data file belonging to that data format. For example, the field mapping information corresponding to data format A can define: field K1 in data format A is mapped to field K2 in target data format B. In other words, in the data file of target data format B, field K2 is used to represent the parameter represented by field K1.
[0091] Step 620: Determine the target channel identifier to which each source channel identifier is mapped in the target data format according to the mapping relationship between the fields in the source data format and the fields in the target data format.
[0092] In the metadata of the source data file, the source channel identifier of each channel is represented by a field in the source data format. Therefore, based on the field mapping information corresponding to the source data format, the field to which the source channel identifier is mapped in the target data format can be determined, namely, the target channel identifier mapped in the target data format. For example, if in the source data file (assuming its data format is data format A), the source channel name of channel L is represented by field C1, and the field mapping information corresponding to data format A defines field C1 in data format A, and the field mapped in target data format B is field C2, then, based on this, it can be determined that the target channel identifier mapped to the source channel name of channel L in the target data format is field C2.
[0093] It can be understood that if the source channel identifier of a channel includes the channel number of the channel and the channel name of the channel, correspondingly, the target channel identifier mapped by the channel under the target data format includes the target channel number mapped by the channel under the target data format and the mapped target channel name, wherein the target channel number and the target channel name are represented by different fields under the target data format.
[0094] Step 630 : Associating the target channel identifier mapped to each channel in the target data format with the corresponding target signal value in the target data format to obtain conversion data corresponding to each channel.
[0095] In some embodiments, considering that in the source data file, the channel identifier of each channel in the acquisition data corresponding to the channel is associated with the source signal value at multiple time points, therefore, in this embodiment, the target channel identifier corresponding to each channel in the target data format is associated with the corresponding target signal value. Among them, the conversion data corresponding to a channel includes the target channel identifier corresponding to the channel and the target signal value of the channel at one or more time points. It is understandable that the number of target signal values in the conversion data corresponding to a channel is the same as the number of source signal values in the acquisition data corresponding to the channel.
[0096] By associating the target channel identifier of the channel with the corresponding target signal value in the target data format, subsequent data analysis can be performed on a channel basis, for example, inputting the conversion data corresponding to a channel into the analysis software for analysis.
[0097] In some embodiments, in the conversion data corresponding to a channel, the target channel identifier corresponding to the channel and the arrangement order of the target signal values at multiple time points are consistent with the arrangement order of the corresponding data (the field representing the source channel identifier corresponding to the channel and the source signal values at multiple time points) in the source data file.
[0098] Step 640 : Generate a target data file in a target data format based on the conversion data corresponding to each channel.
[0099] The data format of the target data file is the target data format. For example, if the target data format is CSV format, the corresponding target data file is in CSV format; if the target data format is MAT format (actually the standard format for MATLAB data storage), the corresponding target data file is in MAT format.
[0100] In some embodiments, the conversion data corresponding to multiple channels involved in the source data file may be combined to obtain a target data file of the source data file in a target data format.
[0101] In some embodiments, the target data file includes, in addition to the conversion data corresponding to the multiple channels involved in the source data file, a file header in the target data format. In this case, the file header in the source data file can be re-encoded according to the file header encoding rules corresponding to the target data format to obtain a file header in the target data format. Thereafter, according to the combination method of the file header and data segments in the target data format, the file header in the target data format and the conversion data corresponding to the multiple channels involved in the source data file are combined to obtain the target data file in the target data format of the source data file. The result of combining the conversion data corresponding to the multiple channels involved in the source data file serves as the data segments in the target data file.
[0102] Re-encoding the file header in the source data file can also be understood as mapping the fields in the metadata in the file header of the source data file to the target data format to obtain the metadata in the file header in the target data format, thereby obtaining the file header in the target data format. The fields used for the metadata in the file header in different data formats may differ.
[0103] In the above embodiment, not only are the source signal values in the data segments in the source data file format converted to obtain target signal values that conform to the target data format, but the fields involved in the data segments in the source data file (fields representing channel identifiers) are also mapped to the target data format. In this way, it is ensured that the information (fields and target signal values) in the subsequent target data file can be accurately parsed, thereby ensuring that subsequent data analysis based on the target data file is accurate.
[0104] In the above embodiment, not only are the source signal values in the data segments in the source data file converted to the target data format to obtain the target signal values in the target measurement units under the target data format, but also the content in the metadata in the file header of the source data file is converted to the target data format to obtain the file header under the target data format. In this way, it can be ensured that no information is lost during the data format conversion process and high accuracy is maintained.
[0105] In some embodiments, after step 640, the method further includes: generating a conversion log corresponding to the source data file based on the source information of the source data file, the format conversion time corresponding to the source data file, and the mapping relationship between the fields in the source data format and the fields in the target data format.
[0106] The source information of the source data file is used to indicate the acquisition device that outputs the source data file. For example, the source information of the source data file may include the device identifier of the acquisition device that outputs the source data file. The format conversion time corresponding to the source data file refers to the time when the source data file is converted to the target data format. In some embodiments, the format conversion time corresponding to the source data file may be the time when the target data file is generated, or the time when the source data file begins to be converted to the target data format.
[0107] The conversion log corresponding to the source data file records the source information of the source data file, the format conversion time corresponding to the source data file, and the mapping relationship between the fields in the source data format and the fields in the target data format. That is, it records the key information in the process of format conversion to the target data format. This facilitates subsequent tracing. For example, if abnormal data (such as abnormal signal values) is found in the target data file, tracing can be performed.
[0108] In some embodiments, the processing logic for converting data files in various source data formats into target data formats as implemented above can be encapsulated into a target data model. In this way, each time a source data file is obtained, the source data file is input into the target data model, and the target data model performs format conversion on the source data file according to the processing logic for converting the source data format into the target data format, and outputs the target data file in the target data format. It is worth mentioning that since there may be multiple source data formats that need to be format converted, the target data model includes multiple processing logics, and one processing logic represents the processing flow for converting a source data format into a target data format. One processing logic involves a field mapping process and a signal value conversion process, wherein the field mapping process is used to map the fields in the file header / meta information under the source data format to the fields under the target data format; the signal value conversion process is used to convert the source signal value in the data segment in the source data file into the target data format. The content of field mapping includes at least fields reflecting channel information, such as a field representing the channel name, a field representing the channel number, a field representing the acquisition frequency corresponding to the physical quantity represented by the channel, a field representing the sensitivity coefficient corresponding to the channel, and a field representing the source measurement unit, etc.
[0109] Figure 7 This is a processing process involved in the data format conversion process according to an embodiment of the present application, such as Figure 7 Shown, including: ① Identify the encoding rules of the source data file; that is, by identifying the source data format of the source data file, and then determining the encoding rules corresponding to the source data format as the encoding rules of the source data file, the encoding rules involve identifying the file header encoding rules of the source data file (or the encoding rules of the meta-information in the source data file, such as the fields used in the meta-information (such as the field indicating the channel identifier, the field indicating the source measurement unit, the field indicating the sensitivity coefficient, etc.), the values of each field in the meta-information), the encoding rules of the data segments in the source data file (such as the fields in the data segment, and the number system used for each source signal value in the data segment).
[0110] ② Obtain the sensitivity coefficient corresponding to each channel in the source data file. In this process, the field representing the sensitivity coefficient corresponding to each channel and the value of the field can be obtained from the metadata in the source data file, and then the value of the field representing the sensitivity coefficient corresponding to each channel is used as the sensitivity coefficient corresponding to the corresponding channel.
[0111] ③ Restore to the target number system in the target data format. Because the source data format and the target data format may use different number systems, it is necessary to convert each source signal value in the source data file to be represented in the target number system used in the target data format. The specific process is, for example, the process from steps 510 to 520 above.
[0112] ④ Restore to the target measurement unit in the target data format. The field representing the source measurement unit corresponding to each channel and the value of the field can be obtained from the metadata of the source data file. The value of the field representing the source measurement unit corresponding to each channel is used as the source measurement unit corresponding to the corresponding channel. Then, based on the conversion relationship between the source measurement unit and the target measurement unit, the source signal value corresponding to each channel in the source data file (which is the signal value measured in the source measurement unit) is converted to the target measurement unit in the target data format to obtain the signal value measured in the target measurement unit.
[0113] ⑤ Restore to the target channel identifier in the target data format. That is, map the field representing the channel identifier in the source data file to the field in the target data format to obtain the field representing the target channel identifier.
[0114] ⑥ Compatibility test. First, check whether the software of the acquisition device from which the source data file originates currently supports automatic format conversion. Second, check whether the software version of the acquisition device from which the source data file originates currently supports automatic format conversion. If these two aspects of the compatibility test are not met, a prompt may be displayed indicating that automatic format conversion cannot be performed. If these two aspects of the compatibility test are met, it indicates that automatic conversion of the current source data file to the target data format is supported.
[0115] Through the solution of this application, it is possible to automatically identify and convert the source data formats of source data files in multiple time domains, and automatically convert them into the target data format, significantly improving the automation and compatibility of data processing. Compared with traditional methods, the solution of this application not only supports the rapid and automatic data format conversion of multiple source data files, but also ensures the consistency and integrity of the data during the conversion process, providing efficient and reliable data support for the NVH performance analysis of vehicles. By automatically performing format conversion, it eliminates the need for manual conversion of the source data format to the target data format, thereby improving the efficiency of data format conversion and the efficiency of subsequent data processing and analysis.
[0116] Moreover, the solution of the present application can support the automatic identification and automatic conversion of multiple source data formats into target data formats, solving the compatibility problem caused by inconsistent multi-source data formats. In addition, through the solution of the present application, it can be ensured that no information is lost and high precision is maintained during the data format conversion process, thus avoiding the errors caused by manual data format conversion. There is no need to manually write specific scripts or rely on dedicated data format conversion software, which lowers the technical threshold for users and can improve the degree of automation. By converting multiple source data formats into a unified target data format, it is convenient for subsequent data analysis to use the same data analysis tool to analyze and process multiple data files, thereby improving data analysis efficiency.
[0117] Applying the solution of the present application to convert the data format of data files collected in vehicle NVH tests can provide an efficient and reliable data format conversion method for vehicle NVH performance analysis, significantly improving the efficiency and quality of data processing.
[0118] The following describes an embodiment of the device of the present application, which can be used to perform the method described in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the above method embodiment of the present application.
[0119] Figure 8 FIG. 1 is a block diagram of a data format conversion device according to an embodiment of the present application. Figure 8 As shown, the data format conversion device includes: An acquisition module 810 is configured to acquire meta-information of a source data file; wherein the meta-information includes a sensitivity coefficient corresponding to each channel and a source measurement unit corresponding to each channel, with one channel corresponding to one physical quantity; The source signal value reading module 820 is used to read the source signal value collected for the physical quantity corresponding to each channel from the data segment of the source data file; The format conversion module 830 is used to convert the corresponding source signal value into a target data format according to the sensitivity coefficient and the corresponding source measurement unit of each channel, so as to obtain a target signal value of the corresponding source signal value in the target data format.
[0120] In some embodiments, the format conversion module 830 includes: a source actual signal value determining unit, configured to multiply the sensitivity coefficient corresponding to each channel by the corresponding source signal value to obtain the source actual signal value corresponding to each channel; A number system conversion unit is used to convert the corresponding source actual signal value into the target number system required by the target data format according to the source number system of the source signal value corresponding to each channel, so as to obtain the intermediate signal value of the source actual signal value in the target number system; The unit conversion unit is used to convert the intermediate signal value according to the conversion relationship between the source measurement unit and the target measurement unit required by the target data format, so as to obtain the target signal value of each channel corresponding to the target data format.
[0121] In some embodiments, the meta information further includes a source channel identifier of each channel; and the data format conversion device further includes: A field mapping information acquisition module is used to acquire field mapping information corresponding to a source data format; wherein the field mapping information corresponding to the source data format indicates a mapping relationship between fields in the source data format and fields in the target data format, and the source data format refers to the data format of the source data file; A channel identifier restoration module is used to determine the target channel identifier mapped to each source channel identifier in the target data format according to the mapping relationship between the fields in the source data format and the fields in the target data format; an association module, configured to associate a target channel identifier mapped to each channel in a target data format with a corresponding target signal value in the target data format to obtain conversion data corresponding to each channel; The target data file generating module is used to generate a target data file in a target data format according to the conversion data corresponding to each channel.
[0122] In some embodiments, the data format conversion device further includes: The log generation module is used to generate a conversion log corresponding to the source data file based on the source information of the source data file, the format conversion time corresponding to the source data file, and the mapping relationship between the fields in the source data format and the fields in the target data format.
[0123] In some embodiments, the source signal value reading module 820 includes: A data structure analysis unit is used to perform data structure analysis on the data segment and determine the data offset position corresponding to each channel; A positioning unit, configured to locate the data block corresponding to each channel in the data segment according to the data offset position corresponding to each channel; The reading unit is used to read, from the data block corresponding to each channel, the source signal value collected for the physical quantity corresponding to the channel at at least one time point.
[0124] In some embodiments, the acquisition module 810 includes: an identification unit, used for identifying a source data format of a source data file; a target file parser determination unit, configured to determine a target file parser suitable for the source data format based on a correspondence between the data format and the file parser; The parsing unit is used to parse the source data file through the target file parser to obtain the meta information of the source data file.
[0125] In some embodiments, the source data files are output by various acquisition devices during NVH testing.
[0126] Figure 9 1 is a structural diagram of an electronic device according to an embodiment of the present application. The electronic device can be used to execute the data format conversion method provided by the present application. Figure 9 As shown, the electronic device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and optionally, the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally also be a storage device independent of the aforementioned processor 1001. Those skilled in the art will understand that, Figure 9 The structure of the electronic device shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0127] like Figure 9 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a program for implementing a data format conversion method.
[0128] exist Figure 9 In the electronic device shown, the network interface 1004 is mainly used to communicate with other devices, such as Figure 1 The user interface 1003 is mainly used to connect to the user terminal and perform data communication with the user terminal; and the processor 1001 can be used to call the program for implementing the data format conversion method stored in the memory 1005 and execute the steps of the data format conversion method in any of the above method embodiments.
[0129] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the data format conversion method in any of the above method embodiments is implemented.
[0130] According to one aspect of an embodiment of the present application, a computer program product is provided, which includes computer instructions. When the computer instructions are executed by a processor, the data format conversion method in any of the above method embodiments is implemented.
[0131] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.
[0132] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
[0133] Unless otherwise specified, all steps of this application may be performed sequentially or randomly. For example, "the method includes steps A and B" means that the method may include steps A and B performed sequentially, or may include steps B and A performed sequentially. For example, "the method may also include step C" means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or steps A, C, and B, or steps C, A, and B, etc.
[0134] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0135] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data format conversion method, characterized in that: include: Obtaining meta information of the source data file; wherein the meta information includes a sensitivity coefficient corresponding to each channel and a source measurement unit corresponding to each channel, and each channel corresponds to one physical quantity; Reading the source signal value collected for the physical quantity corresponding to each of the channels from the data segment of the source data file; According to the sensitivity coefficient and the source measurement unit corresponding to each channel, the corresponding source signal value is format-converted into the target data format to obtain the target signal value of the corresponding source signal value in the target data format.
2. The method according to claim 1, characterized in that The converting the corresponding source signal value into a target data format according to the sensitivity coefficient and the corresponding source measurement unit of each channel to obtain a target signal value of the corresponding source signal value in the target data format includes: Multiplying the sensitivity coefficient corresponding to each of the channels by the corresponding source signal value to obtain the source actual signal value corresponding to each of the channels; According to the source number system of the source signal value corresponding to each of the channels, the corresponding source actual signal value is converted into the target number system required by the target data format to obtain an intermediate signal value of the source actual signal value in the target number system; The intermediate signal value is converted according to the conversion relationship between the source measurement unit and the target measurement unit required by the target data format to obtain the target signal value of each channel corresponding to the target data format.
3. The method according to claim 1, characterized in that The meta information also includes a source channel identifier of each channel; The method further comprises: Obtaining field mapping information corresponding to a source data format; wherein the field mapping information corresponding to the source data format indicates a mapping relationship between fields in the source data format and fields in the target data format, and the source data format refers to the data format of the source data file; Determining a target channel identifier mapped to each source channel identifier in the target data format according to a mapping relationship between fields in the source data format and fields in the target data format; Associating the target channel identifier mapped to each channel in the target data format with the corresponding target signal value in the target data format to obtain conversion data corresponding to each channel; A target data file of the source data file in the target data format is generated according to the conversion data corresponding to each of the channels.
4. The method according to claim 3, characterized in that After generating a target data file in the target data format from the source data file according to the conversion data corresponding to each of the channels, the method further includes: A conversion log corresponding to the source data file is generated according to the source information of the source data file, the format conversion time corresponding to the source data file, and the mapping relationship between the fields in the source data format and the fields in the target data format.
5. The method according to claim 1, wherein The step of reading the source signal value collected for the physical quantity corresponding to each channel from the data segment of the source data file includes: Performing data structure analysis on the data segments to determine the data offset position corresponding to each of the channels; Locating the data blocks corresponding to the channels in the data segment according to the data offset positions corresponding to the channels; From the data blocks corresponding to the channels, source signal values collected for the physical quantities corresponding to the channels at at least one time point are read.
6. The method according to claim 1, characterized in that The step of obtaining the metadata of the source data file includes: Identifying a source data format of the source data file; Determining a target file parser suitable for the source data format based on the correspondence between the data format and the file parser; The target file parser is used to parse the source data file to obtain the meta information of the source data file.
7. The method according to any one of claims 1 to 6, characterized in that The source data files are output by various acquisition devices during the NVH test.
8. A data format conversion device, characterized in that: include: An acquisition module, configured to acquire meta-information of a source data file; wherein the meta-information includes a sensitivity coefficient corresponding to each channel and a source measurement unit corresponding to each channel, and each channel corresponds to one physical quantity; A source signal value reading module, configured to read the source signal value collected for the physical quantity corresponding to each of the channels from the data segment of the source data file; The format conversion module is used to convert the corresponding source signal value into a target data format according to the sensitivity coefficient and the corresponding source measurement unit corresponding to each channel, so as to obtain a target signal value of the corresponding source signal value in the target data format.
9. An electronic device, characterized in that: include: processor; A memory, wherein computer instructions are stored in the memory, and when the computer instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.