Data transmission method and device, chip, electronic equipment and traffic equipment

By writing the identifier at the preset position of the memory frame and ensuring its coverage, the problem of errors in discrimination of parity field image data types in interlaced technology is solved, and the correct synthesis and display of image data is achieved, thereby avoiding image quality degradation.

CN119172487APending Publication Date: 2024-12-20BEIJING SEMIDRIVE TECHNOLOGY LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411216104.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In interlaced scanning technology, the identification of parity field image data may be lost or marked incorrectly, causing the application to fail to correctly distinguish the image data type, resulting in problems such as image aliasing, flickering, motion distortion and artifacts.

Method used

By writing a preset identifier at the preset position of the memory frame, it is ensured that the odd field image data does not overwrite the identifier, while the even field image data will overwrite. The application determines the parity field type of the image data based on the identifier and synthesizes the complete image data.

Benefits of technology

It effectively avoids aliasing, flickering, motion distortion and artifact problems of image data, and ensures the stability and accuracy of image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172487A_ABST
    Figure CN119172487A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, a chip, electronic equipment and traffic equipment, and is applied to a system, the system comprises a driving program and an application program, and the method comprises the following steps: the driving program reads image data collected by a camera; the drive program writes a preset identifier into a preset position of the memory frame; the driving program writes image data into the memory frame and sends the memory frame to the application program, and the preset identifier at the preset position is covered by the even field image data but not covered by the odd field image data; the application program determines an odd-even field type of the image data based on a preset identifier; and the application program synthesizes and displays complete image data based on the received odd field image data and even field image data of the same frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data transmission and image processing, and in particular to a data transmission method, device, chip, electronic equipment and transportation equipment. Background Art

[0002] Interlaced scanning is a camera scanning technology commonly used in analog cameras. Unlike progressive scanning, interlaced scanning divides a complete image into two fields, each field scanning half of the image. In interlaced scanning, the first field scans odd lines (such as lines 1, 3, 5...), and the second field scans even lines (such as lines 2, 4, 6...), thereby obtaining odd field image data and even field image data. Then it is transmitted to the application and synthesized into a complete image for display or storage. When the driver transmits the odd field image data and even field image data to the application, the application can only distinguish whether the image data sent by the driver is odd field image data or even field image data through the independent odd and even field identifiers transmitted by the driver. However, since the independent odd and even field identifiers transmitted may be lost or marked incorrectly, the application cannot correctly distinguish whether the image data is odd field image data or even field image data, resulting in image aliasing, flickering, motion distortion, noise and artifacts in the image data sent for display. Summary of the invention

[0003] The present application provides a data transmission method, device, chip, electronic equipment and transportation equipment.

[0004] An embodiment of the present application provides a data transmission method, which is applied to a system, wherein the system includes a driver and an application program, and the method includes:

[0005] The driver program reads the image data collected by the camera;

[0006] The driver program writes a preset identifier into a preset position of the memory frame;

[0007] The driver writes the image data into the memory frame and sends the memory frame to the application program, and the preset mark at the preset position is overwritten by the even field image data but not by the odd field image data;

[0008] The application determines the odd and even field type of the image data based on the preset identifier;

[0009] The application program synthesizes complete image data based on the received odd-field image data and even-field image data of the same frame and displays the synthesized complete image data.

[0010] Wherein, the reading of the image data collected by the camera includes:

[0011] The driver program reads the image data collected by the camera when determining the memory frame and receiving the read notification sent by the camera, wherein the memory frame is determined by the driver program based on the address space sent by the application program.

[0012] The method further comprises:

[0013] The application program releases the memory of the memory frame where the image data after being sent for display is located;

[0014] The application stores the address space of the memory frame into a shared memory area, so that the driver program reads the address space of the memory frame from the shared memory area.

[0015] Wherein, determining the odd and even field type of the image data based on the preset identifier includes:

[0016] The application determines that the preset identifier exists in the memory frame, and then determines that the image data in the memory frame is odd-field image data;

[0017] The application determines that the preset mark does not exist in the memory frame, and then determines that the image data in the memory frame is even field image data.

[0018] Wherein, the preset identifier also includes an even field image data identifier, and the method further includes:

[0019] When the application determines that the image data in the memory frame is odd field image data, the application obtains an even field image data identifier in the memory frame;

[0020] The application determines the even field image data of the same frame as the odd field image data based on the even field image data identifier.

[0021] Another aspect of the present application provides a data transmission device, the device comprising:

[0022] A transmission module, used to read image data collected by the camera;

[0023] A processing module, configured to write a preset identifier to a preset position of a memory frame; write the image data to the memory frame, and send the memory frame to an application program, wherein the preset identifier at the preset position will be overwritten by the even field image data but will not be overwritten by the odd field image data; and determine the odd and even field type of the image data based on the preset identifier;

[0024] The display module is used to synthesize complete image data based on the received odd-field image data and even-field image data of the same frame and send the synthesized image data for display.

[0025] Another aspect of the present application provides a chip, the chip comprising a processor, and the processor can execute the data transmission method.

[0026] Another aspect of the present application provides an electronic device, the electronic device includes a component, the component includes a chip, and the chip can execute the data transmission method.

[0027] Another aspect of the present application provides a traffic device, which includes a chip, and the chip can execute the data transmission method.

[0028] On the other hand, the present application provides a computer-readable storage medium storing executable instructions for implementing the data transmission method when executed by a processor.

[0029] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0031] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0032] Figure 1 A flow chart of a data transmission method according to an embodiment of the present application is shown;

[0033] Figure 2 A schematic diagram showing a data transmission method according to an embodiment of the present application is shown;

[0034] Figure 3 A schematic diagram showing a memory frame, a memory frame for writing odd field image data, and a memory frame for writing even field image data according to an embodiment of the present application;

[0035] Figure 4 A flow chart of a data transmission method according to another embodiment of the present application is shown;

[0036] Figure 5 A schematic diagram showing a data transmission method according to another embodiment of the present application is shown;

[0037] Figure 6 A flow chart of a data transmission method according to another embodiment of the present application is shown;

[0038] Figure 7 A flow chart of a data transmission method according to another embodiment of the present application is shown;

[0039] Figure 8 A schematic diagram showing a data transmission method according to another embodiment of the present application is shown;

[0040] Fig. 9 A schematic diagram of the structure of a data transmission device according to an embodiment of the present application is shown;

[0041] Fig.10 A schematic diagram of the chip hardware composition structure according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions 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. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0043] In order to prevent the loss or marking error of the odd and even field identification, which causes the application to be unable to correctly distinguish whether the image data is odd field image data or even field image data, thereby causing the image data sent for display to have image aliasing (odd field image data and even field image data are misaligned and overlapped, resulting in image quality degradation, blurred details, and severe jagged image effects), flicker (image flickering, interfering with the viewing experience, and may cause user eye fatigue and discomfort), motion distortion (due to the time difference between odd field image data and even field image data, moving objects may have tailing or geometric deformation, etc., affecting the clarity and accuracy of the image), the presence of noise and artifacts (due to the mismatch between odd field image data and even field image data, resulting in image quality degradation) and other problems, an embodiment of the present application provides a data transmission method, which is applied to a system, and the system includes a driver and an application. The system includes but is not limited to a vehicle system, a security system, a terminal system, a monitoring system, etc. The system includes one or more operating systems installed on an electronic device, and the system can run in a single chip or in multiple chips. One operating system or a combination of multiple operating systems of the system can support image acquisition and display.

[0044] In this embodiment, the operating system may be Android Auto (a Linux-based system), CarLife (a Linux-based system), AliOS (a Linux-based system), etc. In other implementations, the operating system may be any other operating system.

[0045] The system includes a driver layer and an application layer. The driver layer runs a driver program, and the application layer runs an application program.

[0046] In this embodiment, the driver may be a video capture driver, a camera driver, an ISP driver (Image Signal Processor Driver), etc. In other implementations, the driver may also be any driver that can read camera image data and send it to an application.

[0047] In this embodiment, the application may be a reverse camera system, an around view monitor (AVM), a dashcam application, a driver assistance system, etc. In other implementations, the application may also be any application that can receive image data sent by a driver, synthesize and display it.

[0048] like Figure 1 As shown, the method includes:

[0049] Step 101: the driver program reads image data collected by the camera.

[0050] like Figure 2 As shown, in the system, the driver and the application program are running, the driver belongs to the driver layer, and the application program belongs to the application layer. The driver reads the image data collected by the camera from the camera.

[0051] In this embodiment, the image data may be selected from digital interface standards such as HDMI (High-Definition Multimedia Interface, a digital video and audio interface standard) and SDI (Serial Digital Interface, a digital video interface standard), or may be selected from analog television standards such as PAL (Phase Alteration Line) and NTSC (National Television Standards Committee). In other implementations, the image data may also be selected from any image standard that can be recognized and processed by the system.

[0052] Step 102: The driver program writes a preset identifier into a preset position of the memory frame.

[0053] like Figure 2 As shown, the driver writes a preset identifier to a preset position of the memory frame. The preset position is determined based on the type or format of the image data.

[0054] In this embodiment, the memory frame (frame buffer or frame cache) is an area that the application applies to the operating system or memory for storing data. For example, the application applies to the operating system for a memory frame of size 10,000 bytes, and obtains the address space "0x10000000" of the memory frame, which is the starting address of the memory frame. When it is necessary to read the image data in the memory frame, the starting address of the memory frame is determined by the address space "0x10000000", and the end address of the memory frame is determined to be "0x10002710" by the address space "0x10000000" and the memory frame size 10,000 bytes. Then the data at the position "0x10000000" to "0x10002710" in the memory is read.

[0055] The preset position is determined based on the type or format of the image data.

[0056] For example, the image data of a certain image format has 199 lines of odd-field image data and 200 lines of even-field image data. Since the memory frame is opened according to the largest image data, the space of the memory frame can store 200 lines of image data. After the odd-field image data is written into the memory frame, the last line of space in the memory frame will not be occupied, while after the even-field image data is written into the memory frame, the last line of space in the memory frame will be occupied. Therefore, at this time, the last line of space in the memory frame is set to the preset position.

[0057] Step 103: the driver writes the image data into the memory frame and sends the memory frame to the application program. The preset mark at the preset position will be overwritten by the even field image data but will not be overwritten by the odd field image data.

[0058] like Figure 2 As shown, after the driver writes the preset mark to the preset position of the memory frame, it continues to write the image data read from the camera to the memory frame. After writing the image data, the memory frame is sent to the application.

[0059] The preset mark written into the preset position in the memory frame will be overwritten by the even-field image data in the image data, but will not be overwritten by the odd-field image data in the image data.

[0060] For example, Figure 3 As shown, based on Figure 3 The format of image data in the format has 233 valid rows of odd field image data. The format has 234 valid rows of even field image data. Therefore, the corresponding memory frame is set to a size that can store 234 rows of data, and the last row of the memory frame is set to a preset position. When writing the even field image data, the preset mark is first written into the last row of the memory frame, and then the even field image data is written into the memory frame. Since the valid number of rows of the even field image data is 234 rows, the preset mark in the last row of the memory frame will be overwritten. When writing the odd field image data, the preset mark is first written into the last row of the memory frame, and then the odd field image data is written into the memory frame. Since the valid number of rows of the odd field image data is 233 rows, the preset mark in the last row of the memory frame will be retained.

[0061] In this embodiment, the preset identifier is set to a fixed string, and the application program and the driver can determine whether the preset identifier exists in the memory frame by verifying the string. In other embodiments, the preset identifier can also be set to other types of identifiers.

[0062] Step 104: The application determines the odd and even field type of the image data based on the preset identifier.

[0063] like Figure 2 As shown, after receiving the memory frame sent by the driver, the application determines the odd and even field type of the image data in the memory frame by determining whether there is a preset mark at a preset position in the memory frame.

[0064] Step 105: the application program synthesizes complete image data based on the received odd-field image data and even-field image data of the same frame and sends the synthesized image data for display.

[0065] like Figure 2As shown, the application synthesizes the received odd-field image data and even-field image data of the same frame to obtain complete image data and send it for display.

[0066] The application can determine the odd field image data and the even field image data of the same frame by determining the adjacent odd field image data and the even field image data as the same frame, or can determine the odd field image data and the even field image data of the same frame by adding frame number information to the memory frame.

[0067] In this embodiment, the odd field image data and the even field image data can be synthesized into complete image data by interlaced scanning synthesis. Specifically, it is necessary to first open a memory frame of the size of the complete image data, and then alternately write each line of data in the odd field image data and the even field image data. After the writing is completed, the complete image data is synthesized. In other implementations, any other method that can synthesize the odd field image data and the even field image data into complete image data can also be used.

[0068] In the above scheme, a preset identifier is written to a preset position of a memory frame by a driver. Due to the difference between odd field image data and even field image data, when writing odd field image data and even field image data to the memory frame, the preset identifier at the preset position will be overwritten by the even field image data, but will not be overwritten by the odd field image data. Therefore, after receiving the memory frame sent by the driver, the application can determine the odd and even field type of the image data based on the preset identifier at the preset position in the memory frame. Moreover, since the preset identifier is written inside the memory frame instead of being sent independently to the application, no loss or marking error will be found. The application can accurately distinguish whether the image data is odd field image data or even field image data based on the preset identifier, thereby avoiding problems such as image aliasing, flickering, motion distortion, noise and artifacts in the image data sent for display.

[0069] In an example of the present application, a data transmission method is also provided, wherein the reading of the image data collected by the camera comprises:

[0070] The driver program reads the image data collected by the camera when determining the memory frame and receiving the read notification sent by the camera, wherein the memory frame is determined by the driver program based on the address space sent by the application program.

[0071] When the application needs to obtain image data, it sends the address space of the memory frame to the driver. The driver determines the memory frame by receiving the address space of the memory frame. When the driver determines the memory frame and receives the read notification sent by the camera, it reads the image data collected by the camera.

[0072] In an example of the present application, a data transmission method is also provided, such as Figure 4 As shown, the method also includes:

[0073] Step 201: the application releases the memory of the memory frame where the image data after display is located.

[0074] like Figure 5 As shown, after sending the image data for display, the application releases the memory of the memory frame where the image data is located (the memory frame where the odd-field image data and the even-field image data corresponding to the image data for display are located).

[0075] Step 202: The application program stores the address space of the memory frame into a shared memory area, so that the driver program reads the address space of the memory frame from the shared memory area.

[0076] like Figure 5 As shown, the application stores the address space of the memory frame after releasing the memory into the shared memory area, and the driver reads the address space from the shared memory area to determine the memory frame.

[0077] Shared memory area is a kind of inter-process communication (IPC) mechanism, which allows multiple processes to access the same physical memory so that they can read and write data to each other. The application can apply for a shared memory area from the operating system or memory in advance, which is used for data transmission and communication with other processes (such as other applications or drivers). It should be pointed out that in the present embodiment, the shared memory area needs to open the permission of reading and writing data to other processes. Because the shared memory area is an efficient inter-process communication mechanism. It is very useful in application scenarios that require fast data transmission and low latency. Therefore, by performing data transmission between the application and the driver through the shared memory area, the consistency and correctness of the transmitted data can be guaranteed.

[0078] In an example of the present application, a data transmission method is also provided, such as Figure 6 As shown, the determining the odd and even field type of the image data based on the preset identifier includes:

[0079] Step 301: The application determines that the preset identifier exists in the memory frame, and then determines that the image data in the memory frame is odd-field image data.

[0080] For example, an application receives a Figure 3 The memory frame shown in FIG. 1 has a preset mark and odd-field image data written therein, and if it is detected that there is a preset mark in the last row (preset position) of the memory frame, it is determined that the image data in the memory frame is odd-field image data.

[0081] Step 302: If the application determines that the preset mark does not exist in the memory frame, the image data in the memory frame is determined to be even field image data.

[0082] For example, an application receives a Figure 3 In the memory frame shown in FIG. 1 , in which the preset mark and even field image data have been written, if it is detected that there is no preset mark in the last row (preset position) of the memory frame, it is determined that the image data in the memory frame is even field image data.

[0083] In the above scheme, by writing a preset identifier to a preset position of a memory frame in a driver, due to the difference between odd field image data and even field image data, when writing odd field image data and even field image data to the memory frame, the preset identifier at the preset position will be overwritten by the even field image data, but will not be overwritten by the odd field image data. This enables the application to accurately determine the odd and even field type of the image data based on the preset identifier at the preset position in the memory frame after receiving the memory frame sent by the driver.

[0084] In an example of the present application, a data transmission method is also provided, wherein the preset identifier also includes an even field image data identifier, such as Figure 7 As shown, the method also includes:

[0085] Step 401: When the application determines that the image data in the memory frame is odd field image data, the application obtains an even field image data identifier in the memory frame.

[0086] Step 402: the application determines the even field image data of the same frame as the odd field image data based on the even field image data identifier.

[0087] The even field image data in the same frame as the odd field image data may also be determined by adding an even field image data identifier in the memory frame.

[0088] For example, the preset identifier is set to a size of half of the space at the preset position of the memory frame, and the other half of the space at the preset position can be used to write the even field image data identifier.

[0089] The even field image data identifier may be a segment of data in the even field image data, and is used to be compared with the even field image data to determine the even field image data of the same frame as the odd field image data.

[0090] In the above scheme, by writing the even field image data identifier at a preset position of the memory frame to determine the even field image data of the same frame as the odd field image data, image problems caused by synthesizing and displaying odd and even field image data of different frames can be further avoided.

[0091] In an example of the present application, a data transmission method is also provided, such as Figure 8 As shown, the method includes:

[0092] When the application needs to obtain image data or after displaying the previous frame of image data, the application releases the memory of the memory frame and sends the address space of the memory frame to the driver.

[0093] The driver obtains the address space of the memory frame and reads the image data from the camera after receiving the read notification sent by the camera.

[0094] The driver writes a preset identifier to a preset location of the memory frame.

[0095] The driver writes the image data to the memory frame and sends the address space of the memory frame to the application.

[0096] The application obtains the address space of the memory frame and reads the image data from the memory frame.

[0097] When the application determines that there is a preset mark in the memory frame, the image data to be read is determined to be odd field image data. When the application determines that there is no preset mark in the memory frame, the image data to be read is determined to be even field image data.

[0098] The application combines the odd-field image data and the even-field image data of the same frame into complete image data and sends them for display.

[0099] The following combination Figure 3 The above data transmission method is illustrated by using the memory frame shown in , the memory frame for writing odd field image data, and the memory frame for writing even field image data.

[0100] Each line of image data is 100 bytes, the odd field image data is 233 lines, and the even field image data is 234 lines. Therefore, the size of the complete image data is 46700 bytes, the size of the odd field image data is 23300 bytes, and the size of the even field image data is 23400 bytes.

[0101] The application requests a memory frame of 23400 bytes from the operating system and obtains the address space of the memory frame as "0x10000000". After displaying the image data in the memory frame, the application releases the memory of the memory frame and sends the address space of the memory frame to the driver.

[0102] The driver obtains the address space of the memory frame sent by the application, and reads the image data collected by the camera from the camera after receiving the read notification sent by the camera.

[0103] The driver writes a preset identifier to the 234th row of the memory frame (i.e., the space with the starting address "0x10005B04" and the ending position "0x10005B68" in the memory). Then write the image data to the memory frame. When writing odd field image data, odd field image data is written to rows 1 to 233 of the memory frame (i.e., the space with the starting address "0x10000000" and the ending position "0x10005B04" in the memory). When writing even field image data, even field image data is written to rows 1 to 234 of the memory frame (i.e., the space with the starting address "0x10000000" and the ending position "0x10005B68" in the memory). Therefore, writing odd field image data will not overwrite the preset identifier in the preset position of the memory frame, while writing even field data will overwrite the preset identifier in the preset position of the memory frame. It should be noted that the preset mark can be written into the preset position of the memory frame only before writing the odd field image data, and there is no need to write the preset mark into the preset position of the memory frame before writing the even field image data. The preset mark can also be written into the preset position of the memory frame before writing the odd field image data and before writing the even field image data. The specific decision can be based on specific needs and settings.

[0104] The driver sends the address space of the memory frame where the image data is written to the application.

[0105] The application obtains the address space of the memory frame sent by the driver and reads the image data from the memory frame based on the address space.

[0106] When the application determines that there is a preset mark in the memory frame, the image data to be read is determined to be odd field image data. When the application determines that there is no preset mark in the memory frame, the image data to be read is determined to be even field image data.

[0107] The application combines the odd-field image data and the even-field image data of the same frame to obtain complete image data containing 467 lines of data, and sends the complete image data for display.

[0108] In order to implement the above data transmission method, Fig. 9 As shown, an example of the present application provides a data transmission device, including:

[0109] The transmission module 10 is used to read the image data collected by the camera;

[0110] The processing module 20 is used to write a preset mark to a preset position of a memory frame; write the image data to the memory frame, and send the memory frame to an application program, wherein the preset mark at the preset position will be overwritten by the even field image data but will not be overwritten by the odd field image data; and determine the odd and even field type of the image data based on the preset mark;

[0111] The display module 30 is used to synthesize complete image data based on the received odd-field image data and even-field image data of the same frame and send the synthesized image data for display.

[0112] The transmission module 10 is further configured to read the image data collected by the camera when the memory frame is determined and a read notification sent by the camera is received, and the memory frame is determined by the driver based on the address space sent by the application.

[0113] The processing module 20 is further used to release the memory of the memory frame where the image data after display is located; and store the address space of the memory frame into the shared memory area so that the driver can read the address space of the memory frame from the shared memory area.

[0114] Among them, the processing module 20 is also used to determine that the image data in the memory frame is odd field image data when it is determined that the preset mark exists in the memory frame; and when it is determined that the preset mark does not exist in the memory frame, determine that the image data in the memory frame is even field image data.

[0115] Among them, the processing module 20 is also used to obtain the even field image data identifier in the memory frame when it is determined that the image data in the memory frame is odd field image data; and determine the even field image data of the same frame as the odd field image data based on the even field image data identifier.

[0116] The hardware structure diagram of the chip provided in the embodiment of the present application is as follows: Fig.10 As shown, the chip 500 includes at least one processor 510, a user interface 530, a memory 550 and a bus 540; the various components in the chip 500 are coupled together through the bus 540. It can be understood that the bus 540 is used to realize the connection and communication between these components. In addition to the data bus, the bus 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus 540.

[0117] The processor 510 can be built into a system on chip or an application specific integrated circuit (ASIC), or the processor 510 can be located on an independent semiconductor chip and has signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), a microprocessor, a microcontroller unit (MCU), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0118] The user interface 530 is used for interacting and exchanging information with the user.

[0119] The memory 550 stores executable instructions for implementing the data transmission method provided in the embodiment of the present application; the memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drive, optical disk drive, etc. The memory 550 may optionally include one or more storage devices that are physically far away from the processor 510.

[0120] In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof.

[0121] In some embodiments, the chip 500 may further include:

[0122] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, application layer, etc., for implementing various basic services and processing hardware-based tasks;

[0123] The network communication module 552 is used to reach other computing devices via one or more (wired or wireless) network interfaces 620. Exemplary network interfaces 520 include: Bluetooth, Wireless LAN (WiFi), and Universal Serial Bus (USB).

[0124] An embodiment of the present application also provides an electronic device, the electronic device includes components, the components include a chip, and the chip can execute the data transmission method provided by the embodiment of the present application.

[0125] In some optional embodiments, the component may be a chassis, a door, a main board, a dashboard, etc.

[0126] An embodiment of the present application also provides a transportation device, which includes a chip, and the chip can execute the data transmission method provided in the embodiment of the present application.

[0127] An embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the data transmission method provided by the embodiment of the present application.

[0128] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0129] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0130] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0131] An embodiment of the present application provides a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the data transmission method described in the present application is implemented.

[0132] The above are only embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A data transmission method, applied to a system, the system comprising a driver and an application program, the method include: The driver program reads the image data collected by the camera; The driver program writes a preset identifier into a preset position of the memory frame; The driver writes the image data into the memory frame and sends the memory frame to the application program, and the preset mark at the preset position is overwritten by the even field image data but not by the odd field image data; The application determines the odd and even field type of the image data based on the preset identifier; The application program synthesizes complete image data based on the received odd-field image data and even-field image data of the same frame and displays the synthesized complete image data.

2. The method according to claim 1, wherein the reading of the image data collected by the camera comprises: include: The driver program reads the image data collected by the camera when determining the memory frame and receiving the read notification sent by the camera, wherein the memory frame is determined by the driver program based on the address space sent by the application program.

3. The method according to claim 2, further comprising: include: The application program releases the memory of the memory frame where the image data after being sent for display is located; The application stores the address space of the memory frame into a shared memory area, so that the driver program reads the address space of the memory frame from the shared memory area.

4. The method according to claim 1, wherein the odd and even field types of the image data are determined based on the preset identifier. include: The application determines that the preset identifier exists in the memory frame, and then determines that the image data in the memory frame is odd-field image data; The application determines that the preset mark does not exist in the memory frame, and then determines that the image data in the memory frame is even field image data.

5. The method according to claim 1, wherein the preset mark also includes an even field image data mark, and the method further include: When the application determines that the image data in the memory frame is odd field image data, the application obtains an even field image data identifier in the memory frame; The application determines the even field image data of the same frame as the odd field image data based on the even field image data identifier.

6. A data transmission device, the device include: A transmission module, used to read image data collected by the camera; A processing module, used for writing a preset mark into a preset position of a memory frame; Writing the image data into the memory frame and sending the memory frame to an application program, the preset mark at the preset position will be overwritten by the even field image data but will not be overwritten by the odd field image data; and determining the odd and even field type of the image data based on the preset identifier; The display module is used to synthesize complete image data based on the received odd-field image data and even-field image data of the same frame and send the synthesized image data for display.

7. A chip, comprising a processor, wherein the processor is capable of executing the data transmission method according to any one of claims 1 to 5.

8. An electronic device, comprising a component, wherein the component comprises a chip, and the chip can execute the data transmission method according to any one of claims 1 to 5.

9. A transportation device, comprising a chip, wherein the chip can execute the data transmission method according to any one of claims 1 to 5.

10. A computer-readable storage medium storing executable instructions for implementing the data transmission method according to any one of claims 1 to 5 when executed by a processor.