Image data processing method and device, vehicle-mounted equipment, storage medium and product
By providing image data processing methods in the dash recorder and calling multiple hardware components using the interface, the compatibility problem between the dash recorder software and different hardware platforms is solved, and efficient and flexible image data processing is achieved.
Patent Information
- Application Number
- CN202510038980.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-01-10
AI Technical Summary
In the prior art, the driving recorder software has compatibility problems with hardware components of different hardware platforms, making it difficult for the software to run compatible on a diverse hardware platform.
By providing an image data processing method, multiple hardware components, including components from different hardware platforms, are called using the first interface to achieve compatibility between the dash recorder software and the hardware components. The method includes receiving control instructions, obtaining image data, and calling hardware components through an interface for processing. The specific processing module may be a codec module.
The compatibility of dash recorder software with hardware components of different hardware platforms is achieved, which significantly improves processing speed, reduces latency, and improves the flexibility of image data processing.
Smart Images

Figure CN119851368A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of driving recorders, and in particular to an image data processing method, device, vehicle-mounted equipment, storage medium and product. Background Art
[0002] A driving recorder is a device that records images and sounds while a vehicle is driving. It plays an important role in assisting in the determination of accident responsibility and improving driving safety. With the development of technology, the functions of driving recorders are also constantly expanding, including but not limited to video recording and image preview.
[0003] However, with the diversification of vehicle hardware platforms, the compatibility of driving recorder software has been challenged. For example, different hardware platforms may require different software configurations, which leads to compatibility issues in driving recorder software. Summary of the invention
[0004] One of the purposes of this application is to provide an image data processing method to solve the compatibility problem between different hardware platforms and driving recorder software in the prior art; the second purpose is to provide an image data processing device; the third purpose is to provide a vehicle-mounted device; the fourth purpose is to provide a computer-readable storage medium; and the fifth purpose is to provide a computer program product.
[0005] In order to achieve the above-mentioned purpose, the technical solution adopted in this application is as follows.
[0006] In a first aspect, the present application provides an image data processing method, comprising: receiving a first control instruction, wherein the first control instruction is used to indicate a first image processing function; obtaining first image data according to the first control instruction; calling a first hardware component through a first interface according to the first image processing function to process the first image data; wherein the first interface is used to call multiple hardware components, the first hardware component is one or more of the multiple hardware components, and the multiple hardware components come from different hardware platforms.
[0007] According to the above technical means, since the first hardware component can be called through the first interface to process the first image data, and the first hardware component can be one of multiple hardware components from different hardware platforms, the driving recorder software can be compatible with hardware components of different hardware platforms.
[0008] Further, according to the first image processing function, the first hardware component is called through the first interface to process the first image data, including: according to the first image processing function, determining the first processing module, wherein the first processing module is a codec module; calling the first processing module on the first hardware component through the first interface to process the first image data.
[0009] According to the above technical means, when the first processing module corresponding to the first image processing function is a codec module, the codec module on the first hardware component can be called through the first interface to complete the processing of the first image data. In this process, the codec accelerated by the hardware component can significantly improve the processing speed and reduce the delay.
[0010] Further, according to the first control instruction, the first image data is obtained, including: according to the first control instruction, second image data is obtained, wherein the second image data is generated by one or more cameras connected to the driving recorder; according to the first image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data; wherein the second hardware component or the first software module obtains the first image data after processing the second image data; wherein the second interface is used to call multiple hardware components, the second hardware component is one or more of the multiple hardware components, and the third interface is used to call multiple software modules, the first software module is one or more of the multiple software modules.
[0011] According to the above technical means, before performing image processing on the first image data, image processing corresponding to the first image function can also be performed on the second image data generated by one or more cameras connected to the driving recorder. In this process, the image processing corresponding to the first image function can be implemented by calling the second hardware component through the second interface or calling the first software module through the third interface, so that different hardware or software resources can be selected to process the image data, thereby improving the flexibility of image data processing.
[0012] Further, according to the first image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data, including: obtaining one or more second image processing functions associated with the first image processing function, wherein the multiple second image processing functions have a first processing order; in the case where the first image processing function is associated with one second image processing function, in accordance with the second image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data; in the case where the first image processing function is associated with multiple second image processing functions, based on the first processing order, in accordance with the second image processing functions, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data.
[0013] According to the above-mentioned technical means, when the first image function is associated with one or more second image processing functions, the second image data can be processed according to the associated second image processing function, so that the image data can be gradually optimized and converted in multiple process nodes, and finally the goal of the first image processing function is achieved.
[0014] Further, according to the second image processing function, the second hardware component is called through the second interface to process the second image data, including: according to the second image processing function, determining the second processing module, wherein the second processing module is a splicing, watermarking and / or transcoding module; calling the second processing module on the second hardware component through the second interface to process the second image data.
[0015] According to the above technical means, when the second processing module corresponding to the second image processing function is a splicing, watermarking and / or transcoding module, the second processing module on the second hardware component can be called through the second interface to complete the processing of the second image data. In this process, the image processing accelerated by the hardware component can significantly improve the processing speed and reduce the delay.
[0016] Further, in the case where the second processing module is a stitching module, the second image data is processed, including: according to the second image processing function, obtaining view configuration parameters, wherein the view configuration parameters include: a first configuration parameter and a second configuration parameter, the first configuration parameter is used to indicate the number of cameras, and the second configuration parameter is used to indicate a view combination method; determining a first number of cameras corresponding to the second image data; and in the case where the first number meets the first configuration parameter, stitching the second image data according to the second configuration parameter.
[0017] According to the above technical means, the second image data can be stitched through the view configuration parameters to complete the image stitching process. In this process, the image processing flow based on the configuration parameters ensures the flexibility and scalability of the system, allowing adjustment according to different application scenarios and hardware configurations. Especially in a multi-camera system, image stitching is crucial for generating seamless panoramic images or multi-view video streams.
[0018] Further, obtaining the second image data according to the first control instruction includes: obtaining the second image data through the fourth interface according to the first control instruction, and performing format conversion on the second image data.
[0019] According to the above technical means, the second image data generated by one or more cameras can be uniformly obtained through the fourth interface, and the format of the second image data can be kept uniform. This process ensures that the image data is input into the system and provides uniform image data for subsequent image processing.
[0020] In a second aspect, the present application provides an image data processing device, comprising: a first processing module, used to receive a first control instruction, wherein the first control instruction is used to indicate a first image processing function; a second processing module, used to obtain first image data according to the first control instruction; a third processing module, used to call a first hardware component through a first interface according to the first image processing function to process the first image data; wherein the first interface is used to call multiple hardware components, the first hardware component is one or more of the multiple hardware components, and the multiple hardware components come from different hardware platforms.
[0021] In a third aspect, the present application also provides a vehicle-mounted device, which includes a memory and one or more processors, and a computer program is stored in the memory. When the computer program is executed by the vehicle-mounted device, an image data processing method as described in any one of the first aspects is implemented.
[0022] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the readable storage medium stores executable instructions, wherein when the executable instructions are executed by a processor, an image data processing method as described in any one of the first aspects is implemented.
[0023] In a fifth aspect, the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the image data processing method as described in any one of the first aspects.
[0024] It should be noted that the technical effects of the second to fifth aspects can refer to the detailed description of the first aspect above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a first optional flow chart of the image data processing method provided in an embodiment of the present application;
[0026] Figure 2 A schematic diagram of a first optional structure of a driving recorder system provided in an embodiment of the present application;
[0027] Figure 3 A second optional flow chart of the image data processing method provided in the embodiment of the present application;
[0028] Figure 4 A third optional flow chart of the image data processing method provided in the embodiment of the present application;
[0029] Figure 5 A fourth optional flow chart of the image data processing method provided in the embodiment of the present application;
[0030] Figure 6A fifth optional flow chart of the image data processing method provided in the embodiment of the present application;
[0031] Figure 7 A sixth optional flow chart of the image data processing method provided in the embodiment of the present application;
[0032] Figure 8 A second optional structural diagram of the driving recorder system provided in the embodiment of the present application;
[0033] Fig. 9 A third optional structural diagram of the driving recorder system provided in the embodiment of the present application;
[0034] Fig.10 A seventh optional flow chart of the image data processing method provided in the embodiment of the present application;
[0035] Fig.11 An eighth optional flow chart of the image data processing method provided in the embodiment of the present application;
[0036] Fig.12 A schematic diagram of an optional structure of an image data processing device provided in an embodiment of the present application;
[0037] Fig.13 An optional structural diagram of the vehicle-mounted device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0039] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be 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.
[0040] In the following description, the terms "first\second\third" are used only as examples to distinguish different objects, and do not represent a specific order for the objects, nor do they have a limitation on the order of precedence. It is understandable that "first\second\third" can be interchanged with a specific order or order of precedence 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.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0042] The embodiments of the present application provide an image data processing method, apparatus, device, storage medium and computer program product. In practical applications, the image data processing method can be implemented by an image data processing apparatus, and each functional entity in the image data processing apparatus can be collaboratively implemented by hardware resources of the electronic device, such as computing resources such as a processor, and communication resources (such as for supporting various communication methods such as optical cables and cellular).
[0043] The following describes various embodiments of the image data processing method, apparatus, device, storage medium, and computer program product provided in the embodiments of the present application.
[0044] In the first aspect, the embodiment of the present application provides an image data processing method. The function implemented by the method can be implemented by calling program code by a processor in a vehicle-mounted device, and of course the program code can be stored in a computer storage medium. It can be seen that the vehicle-mounted device at least includes a processor and a storage medium.
[0045] In some possible implementations, the vehicle-mounted device may be a driving recorder.
[0046] Below, taking a driving recorder as an example of an execution subject, the image data processing provided in an embodiment of the present application is explained.
[0047] In a first aspect, an embodiment of the present application proposes an image data processing method. Figure 1 A first optional flow chart of the image data processing method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the image data processing method may include steps S101 to S103.
[0048] Step S101, receiving a first control instruction. It can be understood that the driving recorder can receive the first control instruction.
[0049] In some embodiments, after receiving the first control instruction, the driving recorder may parse the first control instruction, thereby determining that the first control instruction instructs to start the first image processing function.
[0050] In one embodiment, the first image processing function may be a function that can be realized by a driving recorder, such as preview, recording, and the like.
[0051] Step S102: obtaining first image data according to a first control instruction.
[0052] It can be understood that after determining that the first control instruction indicates the first image processing function, the driving recorder can obtain the first image data corresponding to the first image processing function.
[0053] In some embodiments, the first image data may be data generated after the driving recorder performs image preprocessing. In some embodiments, the first image data may be data generated after the driving recorder performs image preprocessing corresponding to the first image processing function.
[0054] It is understandable that in order to realize the image processing function, the driving recorder can set a multi-level, sequential image processing process. Among them, the first image processing function corresponds to the first image processing process. The first image data can be image data generated by a process node in the first image processing process, rather than image data generated by the final node in the first image processing process.
[0055] Step S103: According to the first image processing function, the first hardware component is called through the first interface to process the first image data.
[0056] It can be understood that after obtaining the first image data, the driving recorder can call the first hardware component through the first interface to perform image processing corresponding to the first image processing function on the first image data through the first hardware component.
[0057] In some embodiments, the first interface is used to call multiple hardware components, the first hardware component is one or more of the multiple hardware components, and the multiple hardware components are from different hardware platforms. Here, the different hardware platforms can be various types of central processing units and chips. These central processing units and chips can run different operating systems.
[0058] It is understandable that the hardware platforms configured on the vehicle are various, and different hardware platforms provide different hardware components. The first interface can be a universal, abstract interface, so that any hardware component can be called through the first interface. In this process, the functional modules on the upper layer of the first interface do not need to care about the specific implementation of the hardware platform, and the image data processing is realized across hardware platforms.
[0059] It can be understood that the dashcam is cross-hardware platform through the first interface, thereby allowing the dashcam system to run on different hardware platforms without modifying the original code. After the dashcam system is cross-hardware platform, it can be independent of a specific operating system or hardware environment, so that the dashcam system can operate on terminals with different operating systems or different hardware architectures.
[0060] In some embodiments, after receiving the first control instruction, the function module corresponding to the first image processing function in the driving recorder can call the first hardware component through the first interface, and then use the first hardware component to perform image processing corresponding to the first image processing function on the first image data.
[0061] In one example, Figure 2 A first optional structural diagram of the driving recorder system provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the driving recorder system includes: an application layer 201, a framework layer 202 and a hardware layer 203. The framework layer 202 includes: a function layer 2021 and a hardware adapter interface 2022. Here, the function layer 2021 has a function module corresponding to the first image processing function. The first interface can be an interface in the hardware adapter interface 2022. It can be seen that the first interface is located between the function module and the hardware layer, and the first interface is used to implement the call of different hardware platforms.
[0062] It can be understood that the functional module in the framework layer 202 can receive the first control instruction sent by the application layer 201, so as to call the first hardware component in the hardware layer 203 through the hardware adaptation interface 2022 to perform image processing corresponding to the first image function on the first image data.
[0063] In the embodiment of the present application, since the first hardware component can be called through the first interface to process the first image data, and the first hardware component can be one of multiple hardware components from different hardware platforms, the driving recorder software can be compatible with hardware components of different hardware platforms.
[0064] In some possible implementations, Figure 3 A second optional flow chart of the image data processing method provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, step S103 may include: step S301 to step S302.
[0065] Step S301: determining a first processing module according to a first image processing function.
[0066] It can be understood that the driving recorder can determine the first processing module capable of implementing the first image processing function according to the first image processing function.
[0067] In some embodiments, the first image processing function may be a recording function, and the first processing module may be a coding module.
[0068] It can be understood that the first processing module can be a codec module responsible for compressing and encoding the image data for storage and transmission. The first processing module processes the first image data to realize the first image processing function.
[0069] In some embodiments, the first image processing function corresponds to the first image processing flow, and the driving recorder can determine that the next flow node is the encoding and decoding flow according to the progress of the first image processing flow, and then determine the first processing module corresponding to the encoding and decoding flow.
[0070] Step S302: calling a first processing module on a first hardware component through a first interface to process first image data.
[0071] It can be understood that after the driving recorder determines the first processing module, it can call the first processing module on the first hardware component through the first interface to process the first image data.
[0072] It can be understood that, since the first interface is used to call multiple hardware components, the corresponding first hardware component can be determined according to the first processing module.
[0073] It should be noted that, in the process of calling the first processing module on the first hardware component through the first interface, the data and parameters required by the first processing module will be passed during the call. And, after the first processing module completes the image processing, it will return the result to the first interface. These are all common steps in the calling process, and the implementation of this application will not be further explained.
[0074] In some embodiments, the first processing module processing the first image data may include: the first processing module encoding the first image data to obtain a video stream; or the first processing module decoding the first image data to restore the first image data to the original data format.
[0075] It is understandable that different hardware encoding schemes can be provided for different hardware platforms. In the embodiment of the present application, the first interface can be set according to the encoding scheme adaptation interface protocol, and different hardware components only need to be encapsulated according to the standard defined by the encoding scheme adaptation interface protocol, and any hardware component can be called using the first interface without repeated development, thereby achieving cross-platform hardware.
[0076] In one embodiment, the first interface may be an interface defined by the coding scheme adaptation interface protocol. The first interface may include three standard interfaces, namely, an open encoder interface openEncoder (encoder parameter EncodeParam), a close encoder interface closeEncoder (encoder serial number encoder), and an encoding data interface encode (encoder serial number encoder, data data). The encoder parameter EncodeParam includes the pixel type of the image, the encoding type, the length and width of the image, the encoding bit rate, and the encoding frame rate, etc. The encoder serial number encoder indicates the encoder. The data data is the image data sent to the encoder.
[0077] It can be understood that the image data encoding and decoding can be realized through the above three standard interfaces: Step 1, use the open encoder interface to open the encoder. Step 2, the encoding data interface encodes the image data and obtains the encoded image data. Step 3, when the entire encoding is completed, call the close encoder interface to close the encoder.
[0078] In the embodiment of the present application, when the first processing module corresponding to the first image processing function is a codec module, the codec module on the first hardware component can be called through the first interface to complete the processing of the first image data. In this process, the codec accelerated by the hardware component can significantly improve the processing speed and reduce the delay.
[0079] In some possible implementations, Figure 4 A third optional flow chart of the image data processing method provided in the embodiment of the present application is shown in FIG. Figure 4 As shown, step S102 may include: step S401 to step S402.
[0080] Step S401, obtaining second image data according to a first control instruction.
[0081] In one embodiment, the second image data is generated by one or more cameras connected to the driving recorder.
[0082] It is understandable that the vehicle is equipped with one or more cameras, which can generate the second image data. The one or more cameras can be connected to the driving recorder so that the driving recorder system running on the driving recorder receives the second image data, and then performs image processing on the second image data to achieve image processing functions such as recording and storage, thereby meeting the needs of users.
[0083] In some embodiments, the first control instruction may be generated by an application program connected to the driving recorder, and the application program may be configured in a smart terminal such as a vehicle computer or a computer. In one embodiment, the application program may send the first control instruction to an internal module of the driving recorder system after the user selects the first image processing function. In one embodiment, the application program may be Figure 2 The application layer 201 is shown. In one embodiment, the internal modules of the driving recorder system may be modules in the function layer 202.
[0084] Step S402: According to the first image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data.
[0085] It can be understood that after obtaining the second image data, the driving recorder can call the second hardware component through the second interface or call the first software module through the third interface, and the driving recorder can process the second image data generated by the camera according to the first image processing function.
[0086] It is understandable that the processing of the second image data by the driving recorder is different from the processing of the first image data by the driving recorder, and the two may be different image processing stages in the process of realizing the first image processing function.
[0087] In some embodiments, the second hardware component or the first software module processes the second image data to obtain the first image data.
[0088] In some embodiments, the second interface is used to call multiple hardware components, and the second hardware component is one or more of the multiple hardware components.
[0089] It is understandable that the hardware platforms configured on the vehicle are various, and different hardware platforms provide different hardware components. The second interface can be a universal, abstract interface, so that any hardware component can be called through the second interface. In this process, the functional modules on the upper layer of the second interface do not need to care about the specific implementation of the hardware platform, and the image data processing is realized across hardware platforms.
[0090] In some embodiments, the second interface and the first interface may be interfaces abstracted for different image processing functions, and the second interface is different from the first interface; in some embodiments, the second interface is the same as the first interface. This embodiment of the application does not limit this.
[0091] In some embodiments, the third interface is used to call multiple software modules, and the first software module is one or more of the multiple software modules.
[0092] It is understandable that the software modules provided on the hardware platform are various, and the third interface can call any software module. In this process, the functional modules on the upper layer of the third interface do not need to care about the specific implementation of the software module, thereby improving the versatility of the driving recorder system.
[0093] In some embodiments, the software module may be a library specifically used for image processing, which provides a wealth of functions and tools so that developers can easily perform image processing and computer vision tasks. In one embodiment, the software module may be an image processing library such as OpenCV (Open Source Computer Vision Library) and Pillow (Python Imaging Library).
[0094] In some embodiments, the third interface is set according to the graphics processor adapter interface protocol in the embodiments of the present application. It is only necessary to perform secondary packaging of different software modules according to the standards defined by the graphics processor adapter interface protocol to generate a software development kit (SDK), thereby ensuring that each SDK follows the same calling mode and implementing the third interface to call the first software module.
[0095] In the embodiment of the present application, before performing image processing on the first image data, image processing corresponding to the first image function may also be performed on the second image data generated by one or more cameras connected to the driving recorder. In this process, the image processing corresponding to the first image function may be implemented by calling the second hardware component through the second interface or calling the first software module through the third interface, so that different hardware or software resources may be selected to process the image data, thereby improving the flexibility of image data processing.
[0096] In some possible implementations, Figure 5 A fourth optional flow chart of the image data processing method provided in the embodiment of the present application is shown in FIG. Figure 5 As shown, step S402 may include: step S501 to step S503.
[0097] Step S501: obtaining one or more second image processing functions associated with a first image processing function.
[0098] It can be understood that the driving recorder can obtain a second image processing function or multiple second image processing functions associated with the first processing function based on the first image processing function.
[0099] In some embodiments, the second image processing function is a function different from the first image processing function. In the process of implementing the first image processing function, the image data needs to be processed by one or more processing modules corresponding to the second image processing function.
[0100] In some embodiments, the plurality of second image processing functions have a first processing order. The first processing order is used to indicate the transmission order of the needle image data in the plurality of processing modules corresponding to the plurality of second image processing functions. In one embodiment, the first processing order can be set according to demand, and the embodiment of the present application does not limit this.
[0101] In some embodiments, the first image processing function corresponds to a first image processing flow, and the first image processing flow includes a plurality of flow nodes. The plurality of flow nodes may be nodes corresponding to one or more second image processing functions, and in this case, the one or more second image processing functions may be considered to be associated with the first image processing function.
[0102] Exemplarily, the first image processing function may be video recording. The first processing flow may include sending the image data to the video recording processing via the splicing processing module, the watermark processing module, and the transcoding processing module. Then, the second image processing function associated with the first image processing function may be splicing, watermarking, and transcoding. Exemplarily, the first image processing function may be transcoding. The first processing flow may include sending the image data to the transcoding processing module via the splicing processing module and the watermark processing module. Then, the second image processing function associated with the first image processing function may be splicing and watermarking.
[0103] Step S502: When the first image processing function is associated with a second image processing function, according to the second image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data.
[0104] It can be understood that when the driving recorder determines that the first image processing function is associated with only one second image processing function, it can perform image processing on the second image data by calling a hardware component or a software module according to the second image processing function.
[0105] Step S503, when the first image processing function is associated with multiple second image processing functions, based on the first processing order, the second hardware component is called through the second interface or the first software module is called through the third interface in sequence according to the second image processing functions to process the second image data.
[0106] It is understandable that the driving recorder can obtain a first processing order of the plurality of second image processing functions when determining that the first image processing function is associated with the plurality of second image processing functions, and then call the second hardware component through the second interface or call the first software module through the third interface in accordance with each image processing function in turn according to the first processing order to perform image processing on the second image data.
[0107] It can be understood that, for multiple second image processing functions, after each second image processing function performs image processing on the second image data, the processed data can be sent to the next second image processing function for image processing.
[0108] In an embodiment of the present application, when a first image function is associated with one or more second image processing functions, image processing can be performed on the second image data according to the associated second image processing function, so that the image data can be gradually optimized and converted in multiple process nodes, ultimately achieving the goal of the first image processing function.
[0109] In some possible implementations, Figure 6 A fifth optional flow chart of the image data processing method provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, in step S502 or step S503, calling the second hardware component through the second interface according to the second image processing function to process the second image data may include: step S601 to step S602.
[0110] Step S601: determine a second processing module according to a second image processing function.
[0111] It can be understood that the driving recorder can determine the second processing module capable of implementing the second image processing function according to the second image processing function.
[0112] In some embodiments, the second image processing function may be stitching, watermarking and / or transcoding, and the second processing module is a stitching module, a watermarking module and / or a transcoding module;
[0113] In one embodiment, the stitching module may stitch multiple images seamlessly or as seamlessly as possible into a wide-viewing angle or longer image. The stitching module may combine image data captured by multiple cameras.
[0114] In one embodiment, the watermark module can embed specific information (such as a watermark) into the image data, which is usually used for copyright protection, content authentication or other security purposes. The watermark module can also embed vehicle information into the image data captured by the camera.
[0115] In one embodiment, the transcoding module may convert image data from one format to another format.
[0116] Step S602: calling a second processing module on a second hardware component through a second interface to process second image data.
[0117] It can be understood that after the driving recorder determines the second processing module, it can call the first processing module on the first hardware component through the second interface to process the first image data.
[0118] It can be understood that, since the second interface is used to call multiple hardware components, the corresponding second hardware component can be determined according to the second processing module.
[0119] In some embodiments, the second processing module processing the second image data may include: the second processing module performing splicing processing on the second image data to obtain spliced image data; or, the second processing module performing watermark processing on the second image data to obtain watermarked image data; or, the second processing module performing transcoding processing on the second image data to obtain transcoded image data.
[0120] In some embodiments, watermarking the second image data includes: acquiring watermark data of the vehicle, wherein the watermark data is used to represent vehicle information; and splicing the watermark data with the image data.
[0121] It can be understood that the second interface can flexibly call different image processing functions to meet the image processing requirements corresponding to the second image processing function.
[0122] In the embodiment of the present application, when the second processing module corresponding to the second image processing function is a splicing, watermarking and / or transcoding module, the second processing module on the second hardware component can be called through the second interface to complete the processing of the second image data. In this process, the image processing accelerated by the hardware component can significantly improve the processing speed and reduce the delay.
[0123] In some possible implementations, Figure 7 A sixth optional flow chart of the image data processing method provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, when the second processing module is a stitching module, processing the second image data may include steps S701 to S703.
[0124] Step S701: Obtain view configuration parameters according to the second image processing function.
[0125] It can be understood that when the second processing module is a splicing module, the second image processing function is a splicing function. In order to realize the splicing function, the driving recorder can obtain the view configuration parameters.
[0126] In some embodiments, the view configuration parameter may be a parameter indicating a view corresponding to the image data. The view configuration parameter is used to achieve stitching of views corresponding to the image data.
[0127] In one embodiment, the view configuration parameter includes: a first configuration parameter and a second configuration parameter, wherein a first parameter value of the first configuration parameter is used to indicate the number of cameras, and a second parameter value of the second configuration parameter is used to indicate a view combination mode.
[0128] In some embodiments, the driving recorder may obtain view configuration parameters according to view configuration information set by the application layer.
[0129] In some embodiments, the driving recorder system is provided with a fifth interface, which is an application adaptation interface. The application layer calls the fifth interface and inputs the view configuration information to the fifth interface, so that the driving recorder system obtains the view configuration parameters.
[0130] It can be understood that the fifth interface can configure the view configuration parameters so that the lower layer module processes the image data to be processed according to the view configuration parameters.
[0131] It is understandable that in the process of image data processing of the dash cam, configuring view configuration parameters is an important step. After configuring the view configuration parameters, the user is allowed to adjust and optimize the display mode of the image as needed. In the embodiment of the present application, configuring the view configuration parameters at least includes configuring the number of cameras and configuring the view combination mode. This design allows the dash cam to adjust the display mode of the image according to different needs and conditions, improving the user experience and the customizability of the system.
[0132] In one embodiment, the fifth interface may be an application adapter interface that defines an application layer adapter interface protocol. The fifth interface may be a view setting interface setPreview (view configuration ViewType). Among them, the view configuration ViewType includes the following parameters: col: the number of horizontal camera images, row: the number of vertical camera images, totalWidth: the total width of the view (the number of horizontal pixels), totalHeight: the total height of the view (the number of vertical pixels) and cameraIDs: an array that stores the serial number of the camera. Here, the size of the array must be equal to col*row. When the dash cam receives the image data for splicing processing, it will splice the image data corresponding to each camera according to the size of this array in the order from 0-n according to col*row.
[0133] In one example, the application adaptation interface may be located between the application layer and the functional layer. Figure 8 A second optional structural diagram of the driving recorder system provided in the embodiment of the present application is shown in FIG. Figure 8 As shown, Figure 2In contrast, the framework layer 202 further includes: an application adaptation interface 2023, and the application adaptation interface 2023 is located between the function layer 2021 and the application layer 201. The fifth interface may be an interface in the application adaptation interface 2023. It can be seen that the fifth interface realizes decoupling the application layer 201 from the function layer 2021.
[0134] Understandably, using Figure 8 In the structure shown, the application layer no longer cares about how to configure the view configuration parameters in the fifth interface, so that the application layer can be decoupled from the underlying implementation details, improving the maintainability and scalability of the code. In addition, when the number of cameras needs to be changed or the view combination method needs to be changed, the application layer only needs to call the fifth interface to update the view configuration.
[0135] Step S702: determine a first number of cameras corresponding to the second image data.
[0136] It can be understood that the driving recorder can determine the first number of cameras corresponding to the second image data after obtaining the second image data.
[0137] In one embodiment, the second image data may be generated by one camera. In one embodiment, the second image data may be generated by multiple cameras. It is understandable that the second image data generated by each camera carries the identification of the camera, so that the image data to be processed generated by different cameras can be distinguished.
[0138] In one embodiment, the second image data generated by one camera is stored in an array, and the number of cameras can be obtained according to the number of arrays.
[0139] Step S703: When the first number meets the first configuration parameter, the second image data is spliced according to the second configuration parameter.
[0140] It can be understood that when the number of cameras (ie, the first number) meets the first configuration parameter, that is, meets the configured number of cameras, the driving recorder can splice the second image data according to the view combination corresponding to the second configuration parameter.
[0141] In one embodiment, the second configuration parameter may at least indicate the number of horizontal cameras and the number of vertical cameras, thereby determining the second number of second image data arranged horizontally and the third number of second image data arranged vertically. The second image data may be spliced according to the second number and the third number.
[0142] In one example, the first configuration parameter may be 4, indicating that images captured by four cameras are configured in one view; the second configuration parameter may be 2*2, indicating that images captured by two cameras are arranged horizontally and images captured by two cameras are arranged vertically.
[0143] In some embodiments, the second image data is spliced according to the view combination method corresponding to the second configuration parameter to obtain the first image data.
[0144] In some embodiments, when the first number does not meet the first configuration parameter, the driving recorder can output a configuration failure prompt message.
[0145] In the embodiment of the present application, the second image data can be spliced through the view configuration parameters to complete the image splicing process. In this process, the image processing flow based on the configuration parameters ensures the flexibility and scalability of the system, allowing adjustment according to different application scenarios and hardware configurations. In particular, in a multi-camera system, image splicing is crucial for generating seamless panoramic images or multi-view video streams.
[0146] In some possible implementations, step S401 includes: obtaining second image data through a fourth interface according to the first control instruction, and performing format conversion on the second image data.
[0147] It is understandable that the driving recorder can obtain the second image data through the fourth interface according to the first control instruction. The fourth interface is used to receive the second image data generated by one or more cameras and convert the format of the second image data so that the lower-level functional modules obtain the second image data in a unified format.
[0148] It can be understood that the fourth interface is an application adaptation interface. The application adaptation interface is located between the application layer and the function layer.
[0149] In one embodiment, the fourth interface may be an application adapter interface that defines an application layer adapter interface protocol. The fourth interface may be a data input interface updateFrame (array Data). The array Data stores image data collected by one or more cameras in real time, the number of cameras is equal to the value of the array Data, and the image data collected by one or more cameras may be put into the array in the order of the camera sequence number.
[0150] It can be understood that the fourth interface is a data input interface for receiving image data collected by one or more cameras in real time. Each element in the array Data represents image data collected by a camera. This design pattern allows image data from one or more cameras to be processed in a unified manner.
[0151] For example, see Figure 8As shown, the fourth interface may be an application adapter interface 2023. It can be seen that the fourth interface realizes decoupling the application layer 201 from the functional layer 2021. It can be understood that the application layer does not care about the functional implementation inside the fourth interface, thereby improving the modularity of the software, decoupling the application layer from the underlying implementation details, and improving the maintainability and scalability of the code.
[0152] In the embodiment of the present application, the second image data generated by one or more cameras can be uniformly obtained through the fourth interface, and the format of the second image data can be kept uniform. This process ensures that the image data is input into the system and provides uniform image data for subsequent image processing.
[0153] The following is a specific example of the image data processing method in this application.
[0154] first, Fig. 9 A third optional structural diagram of the driving recorder system provided in the embodiment of the present application is shown in FIG. Fig. 9 As shown, the driving recorder system includes: an application layer 201, a framework layer 202 and a hardware layer 203. The application layer 201 can adapt to a variety of camera configuration schemes, such as a 4-camera configuration scheme, a 5-camera configuration scheme, a 6-camera configuration scheme and an n-camera configuration scheme. Here, n can be any positive integer. The framework layer 202 includes: an application adaptation interface 2023, a function layer 2021 and a hardware adaptation interface 2022. The hardware layer 203 includes hardware components of multiple different hardware platforms, such as hardware component 1, hardware component 2 and hardware component 3.
[0155] In one embodiment, the application adaptation interface 2023 may include at least a data input interface, a view setting interface, an encoding parameter configuration interface, and a function switch interface. The function layer 2021 may include a preview module 503, a watermark module 504, a camera module 505, a recording module 506, a splicing module 507, and a transcoding module 508. It can be understood that the preview module 503, the watermark module 504, the camera module 505, the recording module 506, the splicing module 507, and the transcoding module 508 are all standard interfaces abstracted from the graphics processing function.
[0156] In one embodiment, the hardware adaptation interface 2022 includes at least a coding adaptation interface (i.e., a first interface) and a graphics processor adaptation interface (i.e., a third interface). The coding adaptation interface includes an open encoder interface, a close encoder interface, and a coding data interface. The coding adaptation interface can call multiple programs, such as program 1 and program 2. The image processor adaptation interface can call multiple image libraries, such as library 1 and library 2.
[0157] In one embodiment, the application layer 201 calls the data input interface (ie, the fourth interface) in the application adaptation interface 2023, and the driving recorder system can obtain the second image data.
[0158] In one embodiment, the application layer 201 provides any number of camera configuration schemes, such as a 4-camera configuration scheme, a 5-camera configuration scheme, and an 8-camera configuration scheme, etc., all of which configure view configuration parameters through the view setting interface (i.e., the fifth interface) in the application adapter interface 2023, so that a set of driving recorder system can support any number of camera configurations.
[0159] Then, combine Fig. 9 The structure shown, Fig.10 A seventh optional flow chart of the image data processing method provided in the embodiment of the present application is as follows: Fig.10 As shown, the image data processing method may include: step S1001 to step S1009.
[0160] Step S1001, start the driving recorder.
[0161] Step S1002: configure view configuration parameters.
[0162] It is understandable that the view configuration parameters can be configured through the view setting interface (ie, the fifth interface). The view configuration can include configuring the number of horizontal camera images, the number of vertical camera images, the total horizontal width, the total vertical height, and the camera sequence array.
[0163] Step S1003: save the view configuration parameters.
[0164] In the embodiment of the present application, through steps S1001 to S1003, the view setting interface can be called to pre-set the number of cameras and view configuration.
[0165] Step S1004, start the recording image processing function.
[0166] Step S1005: input second image data.
[0167] It can be understood that the second image data can be input through the data input interface (ie, the fourth interface).
[0168] Step S1006, determining whether the first number of cameras corresponding to the second image data is equal to the number of cameras indicated by the view configuration parameter. If yes, executing step S1007, if not, returning to executing step S1005.
[0169] Step S1007 : splicing the second image data according to the view configuration parameters to generate the first image data.
[0170] It can be understood that the first software module can be called through the third interface to process the second image data.
[0171] In the embodiment of the present application, through steps S1004 to S1007, it is possible to determine whether the number of camera data is equal to the preset number of cameras, and directly return failure if it is not equal. If the number is equal, the camera data is spliced according to the configured view combination method.
[0172] Step S1008: encode the first image data.
[0173] It can be understood that the first hardware component can be called through the first interface to process the first image data.
[0174] Step S1009: storing the encoded first image data.
[0175] Step S1010, ending the recording image processing function.
[0176] Then, combine Fig. 9 The structure shown, Fig.11 The eighth optional flow chart of the image data processing method provided in the embodiment of the present application is as follows: Fig.11 As shown, the image data processing method may include: steps S1101 to S1106.
[0177] Step S1101, start the driving recorder.
[0178] Step S1102, create an encoder by calling the open encoder interface.
[0179] Step S1103: transferring the first image data to the encoder by calling the encoding data interface to start image encoding.
[0180] Step S1104 , obtaining the encoded first image data, and packaging the encoded first image data to generate a video file.
[0181] Step S1105, calling the encoder close interface to close the encoder.
[0182] Step S1106, end image processing.
[0183] In an embodiment of the present application, the driving recorder can call hardware components of different hardware platforms through a hardware adaptation interface (i.e., the first interface) to implement function recording, and can achieve compatibility between the driving recorder software and hardware components of different hardware platforms.
[0184] In a second aspect, an embodiment of the present application provides an image data processing device, which is deployed in a vehicle device. Fig.12 This is an optional structural diagram of an image data processing device provided in an embodiment of the present application, see Fig.12 As shown, the image data processing device 1200 may include: a first processing module 1201, a second processing module 1202 and a third processing module 1203. Among them: the first processing module 1201 is used to receive a first control instruction, wherein the first control instruction is used to indicate a first image processing function; the second processing module 1202 is used to obtain first image data according to the first control instruction; the third processing module 1203 is used to call a first hardware component through a first interface according to the first image processing function to process the first image data; wherein the first interface is used to call multiple hardware components, the first hardware component is one or more of the multiple hardware components, and the multiple hardware components are from different hardware platforms.
[0185] In some embodiments, the third processing module 1203 is further used to determine the first processing module according to the first image processing function, wherein the first processing module is a codec module; and call the first processing module on the first hardware component through the first interface to process the first image data.
[0186] In some embodiments, the second processing module 1202 is also used to obtain second image data according to the first control instruction, wherein the second image data is generated by one or more cameras connected to the driving recorder; according to the first image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data; wherein the second hardware component or the first software module obtains the first image data after processing the second image data; wherein the second interface is used to call multiple hardware components, the second hardware component is one or more of the multiple hardware components, and the third interface is used to call multiple software modules, the first software module is one or more of the multiple software modules.
[0187] In some embodiments, the second processing module 1202 is also used to obtain one or more second image processing functions associated with the first image processing function, wherein the multiple second image processing functions have a first processing order; when the first image processing function is associated with one second image processing function, according to the second image processing function, the second hardware component is called through the second interface or the first software module is called through the third interface to process the second image data; when the first image processing function is associated with multiple second image processing functions, based on the first processing order, the second hardware component is called through the second interface or the first software module is called through the third interface in sequence according to the second image processing functions to process the second image data.
[0188] In some embodiments, the second processing module 1202 is also used to determine the second processing module according to the second image processing function, wherein the second processing module is a splicing, watermark and / or transcoding module; and call the second processing module on the second hardware component through the second interface to process the second image data.
[0189] In some embodiments, the second processing module 1202 is further used to obtain view configuration parameters according to the second image processing function, wherein the view configuration parameters include: a first configuration parameter and a second configuration parameter, the first configuration parameter is used to indicate the number of cameras, and the second configuration parameter is used to indicate the view combination method; determine the first number of cameras corresponding to the second image data; and when the first number meets the first configuration parameter, splice the second image data according to the second configuration parameter.
[0190] In some embodiments, the second processing module 1202 is further configured to obtain the second image data through the fourth interface according to the first control instruction, and perform format conversion on the second image data.
[0191] It should be noted that the modules included in the image data processing device provided in the embodiment of the present application can be implemented by a processor in an electronic device; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) or a field programmable gate array (FPGA, Field-Programmable Gate Array), etc.
[0192] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0193] It should be noted that in the embodiments of the present application, if the above-mentioned image data processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the image data processing method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0194] In a third aspect, an embodiment of the present application provides a vehicle-mounted device, comprising at least a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the image data processing method provided in the above embodiment are implemented.
[0195] Fig.13 An optional structural diagram of the vehicle-mounted device provided in the embodiment of the present application is shown below in combination with Fig.13 The in-vehicle device 1300 shown will be used to explain the structure of the in-vehicle device.
[0196] In one example, if Fig.13 As shown, the vehicle-mounted device 1300 includes: a processor 1301, at least one communication bus 1302, at least one external communication interface 1303 and a memory 1304. The communication bus 1302 is configured to realize connection and communication between these components. The external communication interface 1303 may include a standard wired interface and a wireless interface.
[0197] The memory 1304 is configured to store instructions and applications executable by the processor 1301, and can also cache data to be processed or processed by the processor 1301 and various modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0198] In another example, the vehicle-mounted device may be a driving recorder. The vehicle device or controller is used to execute the steps in the image data processing method provided in the above embodiment.
[0199] In a fourth aspect, the present application further provides a storage medium, on which a readable storage medium stores executable instructions, wherein when the executable instructions are executed by a processor, the steps in the image data processing method provided in an embodiment of the present application are implemented.
[0200] In a fifth aspect, the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in the above-mentioned image data processing method.
[0201] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0202] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0203] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0204] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0205] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0206] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0207] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0208] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the image data processing method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0209] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for processing image data, characterized in that: include: receiving a first control instruction, wherein the first control instruction is used to indicate a first image processing function; According to the first control instruction, obtaining first image data; According to the first image processing function, calling a first hardware component through a first interface to process the first image data; The first interface is used to call multiple hardware components, the first hardware component is one or more of the multiple hardware components, and the multiple hardware components are from different hardware platforms.
2. The method according to claim 1, characterized in that The calling a first hardware component through a first interface according to the first image processing function to process the first image data includes: According to the first image processing function, determining a first processing module, wherein the first processing module is a coding and decoding module; The first processing module on the first hardware component is called through the first interface to process the first image data.
3. The method according to claim 1, characterized in that The step of obtaining first image data according to the first control instruction includes: According to the first control instruction, second image data is obtained, wherein the second image data is generated by one or more cameras connected to the driving recorder; According to the first image processing function, calling a second hardware component through a second interface or calling a first software module through a third interface to process the second image data; wherein the second hardware component or the first software module processes the second image data to obtain the first image data; The second interface is used to call multiple hardware components, and the second hardware components are one or more of the multiple hardware components. The third interface is used to call multiple software modules, and the first software module is one or more of the multiple software modules.
4. The method according to claim 3, characterized in that: The calling of the second hardware component through the second interface or the calling of the first software module through the third interface according to the first image processing function to process the second image data includes: Obtaining one or more second image processing functions associated with the first image processing function, wherein the plurality of second image processing functions have a first processing order; In the case where the first image processing function is associated with a second image processing function, in accordance with the second image processing function, calling a second hardware component through a second interface or calling a first software module through a third interface to process the second image data; In the case where the first image processing function is associated with multiple second image processing functions, based on the first processing order, the second hardware component is called through the second interface or the first software module is called through the third interface in sequence according to the second image processing functions to process the second image data.
5. The method according to claim 4, characterized in that According to the second image processing function, calling a second hardware component through a second interface to process the second image data includes: According to the second image processing function, determining a second processing module, wherein the second processing module is a splicing, watermarking and / or transcoding module; The second processing module on the second hardware component is called through the second interface to process the second image data.
6. The method according to claim 5, characterized in that In the case where the second processing module is a splicing module, the processing of the second image data includes: According to the second image processing function, obtaining view configuration parameters, wherein the view configuration parameters include: a first configuration parameter and a second configuration parameter, the first configuration parameter is used to indicate the number of cameras, and the second configuration parameter is used to indicate a view combination mode; Determine a first number of cameras corresponding to the second image data; When the first number meets the first configuration parameter, the second image data is spliced according to the second configuration parameter.
7. The method according to claim 3, characterized in that The step of obtaining the second image data according to the first control instruction includes: According to the first control instruction, the second image data is obtained through a fourth interface, and the format of the second image data is converted.
8. An image data processing device, characterized in that: include: A first processing module, configured to receive a first control instruction, wherein the first control instruction is used to indicate a first image processing function; A second processing module, used for obtaining first image data according to the first control instruction; a third processing module, configured to call a first hardware component through a first interface according to the first image processing function to process the first image data; The first interface is used to call multiple hardware components, the first hardware component is one or more of the multiple hardware components, and the multiple hardware components are from different hardware platforms.
9. A vehicle-mounted device, characterized in that: The vehicle-mounted device comprises a memory and one or more processors. A computer program is stored in the memory. When the computer program is executed by the vehicle-mounted device, the image data processing method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores executable instructions, wherein when the executable instructions are executed by a processor, the image data processing method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program or instructions, characterized in that: When the computer program or instruction is executed by a processor, the image data processing method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Application program development method and system for spanning hardware platforms based on Android system
CN103164207A
Hardware interface calling method and electronic equipment
CN112214294A
Method and device for supporting different display screens through same hardware display interface
CN113781944A
Middleware and device for data display and control method
CN115454422A
Image processing architecture, image processing method, device and storage medium
CN115883948A