Image data processing method and device, vehicle-mounted equipment, storage medium and product
By defining abstract interfaces to call hardware components and software modules, the compatibility issues of dashcam software across different hardware platforms are resolved, achieving cross-platform compatibility and speed improvement in image data processing, and supporting seamless panoramic image generation for multi-camera systems.
Patent Information
- Application Number
- CN202510038980.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2045-01-10
AI Technical Summary
Existing dashcam software suffers from compatibility issues across different hardware platforms, leading to compatibility difficulties.
By defining abstract interfaces to call hardware components, cross-hardware platform image data processing is achieved, including accelerated processing of hardware components such as encoding/decoding modules, stitching modules, watermarking modules, and transcoding modules. Combined with flexible calls to software modules, the flexibility and compatibility of image data processing are ensured.
It improves image data processing speed, reduces latency, and achieves compatibility and flexibility of dashcams on different hardware platforms, supporting seamless panoramic image generation and multi-view video streaming for multi-camera systems.
Smart Images

Figure CN119851368B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of driving recorders, in particular to an image data processing method and device, a vehicle-mounted equipment, a storage medium and a product. BACKGROUND
[0002] A driving recorder is a device that records the video and audio during the driving of a vehicle, which plays an important role in identifying the responsibility of an accident and improving driving safety. With the development of technology, the functions of the driving recorder are continuously expanding, including but not limited to video recording and image preview.
[0003] However, with the diversification of vehicle hardware platforms, the compatibility of the driving recorder software is challenged. For example, different hardware platforms may require different software configurations, which leads to compatibility problems of the driving recorder software. SUMMARY
[0004] One of the purposes of the present application is to provide an image data processing method to solve the compatibility problem between different hardware platforms and the 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 equipment. The fourth purpose is to provide a computer-readable storage medium. The fifth purpose is to provide a computer program product.
[0005] In order to achieve the above purposes, the technical solution adopted by the present 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 a plurality of hardware components, the first hardware component is one or more of the plurality of hardware components, and the plurality of 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 the plurality of hardware components from different hardware platforms, the compatibility of the driving recorder software with the hardware components of different hardware platforms can be achieved.
[0008] Further, calling the first hardware component through the first interface according to the first image processing function to process the first image data comprises: determining a first processing module according to the first image processing function, wherein the first processing module is a codec module; and calling the first processing module on the first hardware component through the first interface to process the first image data.
[0009] According to the technical means described above, 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, so as 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, the second image data is obtained, wherein the second image data is generated by one or more cameras connected with 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 processes the second image data to obtain the first image data; wherein the second interface is used to call a plurality of hardware components, the second hardware component is one or more of the plurality of hardware components, the third interface is used to call a plurality of software modules, and the first software module is one or more of the plurality of software modules.
[0011] According to the technical means described above, before the first image data is processed, the second image data generated by one or more cameras connected with the driving recorder can also be processed according to the first image function. In this process, the second hardware component can be called through the second interface or the first software module can be called through the third interface to realize the image processing corresponding to the first image function, so that different hardware or software resources can be selected to process the image data, and the flexibility of image data processing can be improved.
[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 plurality of second image processing functions have a first processing order; in the case that 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; in the case that the first image processing function is associated with a plurality of second image processing functions, 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 in turn based on the first processing order.
[0013] According to the above technical means, in the case that 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 functions, so that the image data can be gradually optimized and converted in multiple flow nodes, and finally the target of the first image processing function can be 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 a 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 process 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 that the second processing module is a splicing module, processing the second image data includes: according to the second image processing function, obtaining a view configuration parameter, wherein the view configuration parameter includes: 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 mode; determining the first number of cameras corresponding to the second image data; in the case that the first number meets the first configuration parameter, the second image data is spliced according to the second configuration parameter.
[0017] According to the above technical means, the second image data can be spliced through the view configuration parameter, and then the image splicing processing is completed. In this process, the image processing flow based on the configuration parameter 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 splicing is crucial for generating seamless panoramic images or multi-view video streams.
[0018] Further, according to the first control instruction, the second image data is obtained, including: according to the first control instruction, the second image data is obtained through the fourth interface, and the format of the second image data is converted.
[0019] According to the above technical means, the second image data generated by one or more cameras can be obtained through the fourth interface, and the format of the second image data is unified. 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 apparatus, comprising: 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 configured to obtain first image data according to the first control instruction; and a third processing module configured to call a first hardware component through a first interface according to the first image processing function, so as to process the first image data, wherein the first interface is used to call a plurality of hardware components, the first hardware component is one or more of the plurality of hardware components, and the plurality of hardware components are from different hardware platforms.
[0021] In a third aspect, the present application further provides a vehicle-mounted device, which comprises a memory and one or more processors, and the memory stores a computer program, and when the computer program is executed by the vehicle-mounted device, the image data processing method according to any one of the first aspect is implemented.
[0022] In a fourth aspect, the present application further provides a computer readable storage medium, which stores executable instructions, and when the executable instructions are executed by a processor, the image data processing method according to any one of the first aspect is implemented.
[0023] In a fifth aspect, the present application further provides a computer program product, which comprises a computer program or instructions, and when the computer program or instructions are executed by a processor, the image data processing method according to any one of the first aspect is implemented.
[0024] It should be noted that the technical effects of the second aspect to the fifth aspect can refer to the detailed description of the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 A first optional flowchart of the image data processing method provided by the embodiments of the present application is shown in the following figure;
[0026] Figure 2 A first optional structure diagram of the vehicle event data recorder system provided by the embodiments of the present application is shown in the following figure;
[0027] Figure 3 A second optional flowchart of the image data processing method provided by the embodiments of the present application is shown in the following figure;
[0028] Figure 4 A third optional flowchart of the image data processing method provided by the embodiments of the present application is shown in the following figure;
[0029] Figure 5 A fourth optional flowchart of the image data processing method provided by the embodiments of the present application is shown in the following figure;
[0030] Figure 6A fifth optional flowchart of the image data processing method provided by the embodiment of the present application is shown in FIG. 7;
[0031] Figure 7 A sixth optional flowchart of the image data processing method provided by the embodiment of the present application is shown in FIG. 8;
[0032] Figure 8 A second optional structural diagram of the vehicle event data recorder system provided by the embodiment of the present application is shown in FIG. 5;
[0033] Figure 9 A third optional structural diagram of the vehicle event data recorder system provided by the embodiment of the present application is shown in FIG. 6;
[0034] Figure 10 A seventh optional flowchart of the image data processing method provided by the embodiment of the present application is shown in FIG. 11;
[0035] Figure 11 An eighth optional flowchart of the image data processing method provided by the embodiment of the present application is shown in FIG. 12;
[0036] Figure 12 An optional structural diagram of the image data processing device provided by the embodiment of the present application is shown in FIG. 13;
[0037] Figure 13 An optional structural diagram of the vehicle-mounted device provided by the embodiment of the present application is shown in FIG. 14. DETAILED DESCRIPTION
[0038] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the specific technical solutions of the present application with reference to the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but not to limit the scope of the present application.
[0039] In the following description, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subset of all possible embodiments, and can be combined with each other without conflict.
[0040] In the following description, the terms "first\second\third" are only used to distinguish different objects, and do not represent a specific order of the objects, and do not have a limitation of sequence. It can be understood that "first\second\third" can be interchanged in a specific order or sequence as allowed, 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 commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to be limiting of this application.
[0042] Embodiments of the present application provide an image data processing method, device, equipment, storage medium and computer program product. In practical application, the image data processing method can be realized by an image data processing device. Each functional entity in the image data processing device can be realized by hardware resources of an electronic device, such as computing resources (e.g., a processor) and communication resources (e.g., for supporting various communication modes such as optical cable and cellular).
[0043] In the following, each embodiment of the image data processing method, device, equipment, storage medium and computer program product provided by the embodiments of the present application will be described.
[0044] In a first aspect, the embodiments of the present application provide an image data processing method. The function realized by the method can be realized by calling program code by a processor in a vehicle-mounted device. Of course, the program code can be saved in a computer storage medium. Therefore, the vehicle-mounted device at least includes a processor and a storage medium.
[0045] In some possible implementations, the vehicle-mounted device can be a driving recorder.
[0046] In the following, the image data processing provided by the embodiments of the present application will be described by taking a driving recorder as an execution subject.
[0047] In a first aspect, the embodiments of the present application provide an image data processing method, Figure 1 For the first optional flowchart of the image data processing method provided by the embodiments of the present application, referring to Figure 1 As shown in the figure, the image data processing method can include steps S101 to S103.
[0048] In step S101, a first control instruction is received. It can be understood that the driving recorder can receive the first control instruction.
[0049] In some embodiments, after the driving recorder receives the first control instruction, the driving recorder can analyze the first control instruction, so as to determine that the first control instruction indicates to start a first image processing function.
[0050] In an embodiment, the first image processing function can be a function that can be realized by the driving recorder, such as a preview function, a recording function, etc.
[0051] In step S102, first image data is obtained according to the first control instruction.
[0052] It can be understood that the driving recorder can obtain the first image data corresponding to the first image processing function after determining that the first control instruction indicates the first image processing function.
[0053] In some embodiments, the first image data can be data generated after the driving recorder performs image preprocessing. In some embodiments, the first image data can be data generated after the driving recorder performs image preprocessing corresponding to the first image processing function.
[0054] It can be understood that in order to implement the image processing function, the driving recorder can set a multi-level and sequential image processing flow. Among them, the first image processing function corresponds to the first image processing flow. The first image data can be image data generated by a flow node in the first image processing flow, rather than image data generated by the final node in the first image processing flow.
[0055] Step S103, according to the first image processing function, calling the first hardware component through the first interface to process the first image data.
[0056] It can be understood that after the driving recorder obtains the first image data, the first hardware component can be called through the first interface to process the first image data through the first hardware component corresponding to the first image processing function.
[0057] In some embodiments, the first interface is used to call a plurality of hardware components, the first hardware component is one or more of the plurality of hardware components, and the plurality of hardware components come 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 can be understood that the hardware platforms configured on the vehicle are various, and different hardware platforms provide different hardware components. The first interface can be a general and abstract interface, so that any hardware component can be called through the first interface. In this process, the function module on the upper layer of the first interface does not need to care about the specific implementation of the hardware platform, and the image data processing across hardware platforms is realized.
[0059] It can be understood that the driving recorder crosses the hardware platform through the first interface, thereby allowing the driving recorder system to run on different hardware platforms without modifying the original code. After the driving recorder system realizes cross-hardware platform, it can be independent of a specific operating system or hardware environment, so that the driving recorder system can operate on terminals with different operating systems or different hardware architectures.
[0060] In some embodiments, after the function module corresponding to the first image processing function in the driving recorder receives the first control instruction, the first hardware component can be called through the first interface, and then the first image data is processed by the first image processing function through the first hardware component.
[0061] In an example, Figure 2 A first alternative structural diagram of the driving recorder system provided by the embodiments of the present application is shown in FIG. 2. Figure 2 As shown in FIG. 2, 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 adaptation 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 adaptation interface 2022. As can be seen, the first interface is located between the function module and the hardware layer, and the first interface is used to call different hardware platforms.
[0062] As can be understood, the function module in the framework layer 202 can receive the first control instruction issued 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 process the first image data according to the first image processing function.
[0063] In the embodiments of the present application, 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 a plurality of hardware components from different hardware platforms, so that the driving recorder software can be compatible with hardware components of different hardware platforms.
[0064] In some possible implementations, Figure 3 A second alternative flow diagram of the image data processing method provided by the embodiments of the present application is shown in FIG. 3. Figure 3 As shown in FIG. 3, step S103 can include steps S301 to S302.
[0065] In step S301, a first processing module is determined according to a first image processing function.
[0066] As can be understood, 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 can be a recording function, and the first processing module can be a codec module.
[0068] As can be understood, the first processing module can be a codec module responsible for compressing and encoding image data for storage and transmission. The first image data is processed by the first processing module, and the first image processing function can be implemented.
[0069] In some embodiments, the first image processing function corresponds to a first image processing flow, and the dashcam can determine, according to the progress of the first image processing flow, that the next flow node is a coding flow, and further determine that the first processing module corresponds to the coding flow.
[0070] In step S302, the first processing module on the first hardware component is called through the first interface to process the first image data.
[0071] It can be understood that after the dashcam determines the first processing module, the first processing module on the first hardware component can be called 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 are passed when calling. After the first processing module completes the image processing, the result is returned to the first interface. These are common steps in the calling process, and the present application will not further describe them.
[0074] In some embodiments, the first processing module processing the first image data can 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 an original data format.
[0075] It can be understood that different hardware platforms can provide different hardware coding schemes. In the present embodiment, the first interface can be set according to the coding scheme adaptive interface protocol, and different hardware components can be packaged according to the standard defined by the coding scheme adaptive interface protocol, so that the first interface can be used to call any hardware component without repeated development, achieving hardware cross-platform.
[0076] In an embodiment, the first interface can be an interface defined by a coding scheme adaptation interface protocol. The first interface can include three standard interfaces, namely an open encoder interface openEncoder (an encoder parameter EncodeParam), a close encoder interface closeEncoder (an encoder serial number encoder), and an encode data interface encode (an encoder serial number encoder, data data). The encoder parameter EncodeParam includes a pixel type of an image, a coding type, a length and width of the image, a bit rate of coding, and a frame rate of coding, etc. The encoder serial number encoder indicates an encoder. The data data is image data input to the encoder.
[0077] It can be understood that the image data coding can be realized through the above three standard interfaces: first, the open encoder interface is used to open the encoder. Second, the encode data interface is used to code the image data and obtain the coded image data. Third, when the entire coding is completed, the close encoder interface is called to close the encoder.
[0078] In an embodiment of the present application, when the first processing module corresponding to the first image processing function is a coding and decoding module, the coding and decoding module on the first hardware component can be called through the first interface, so that the first image data is processed. In this process, the coding and decoding 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 flowchart of an image data processing method provided in an embodiment of the present application is shown in FIG. 4. Figure 4 As shown in FIG. 4, step S102 can include steps S401 to S402.
[0080] In step S401, the second image data is obtained according to the first control instruction.
[0081] In an embodiment, the second image data is generated by one or more cameras connected with the driving recorder.
[0082] It can be understood that one or more cameras are configured on the vehicle, and the one or more cameras can generate the second image data. The one or more cameras can be connected with 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 realize image processing functions such as recording and storage, thereby meeting the needs of users.
[0083] In some embodiments, the first control instruction can be generated by an application connected with the driving recorder, which can be configured in a smart terminal such as an in-vehicle infotainment (IVI), a computer, or the like. In an embodiment, the application can send the first control instruction to an internal module of the driving recorder system after a user selects the first image processing function. In an embodiment, the application can be configured in an application layer 201 as shown in FIG. 2. In an embodiment, the internal module of the driving recorder system can be a module in a function layer 202. Figure 2
[0084] At step S402, the second image data is processed according to the first image processing function by calling the second hardware component through the second interface or calling the first software module through the third interface.
[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 can be understood 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. The two can be different image processing stages in the process of implementing 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 a plurality of hardware components, and the second hardware component is one or more of the plurality of hardware components.
[0089] It can be understood that the hardware platform configured on the vehicle is various, and different hardware platforms provide different hardware components. The second interface can be a general and abstract interface, so that any hardware component can be called through the second interface. In this process, the function module of the upper layer of the second interface does not need to care about the specific implementation of the hardware platform, and the image data processing is realized across the hardware platforms.
[0090] In some embodiments, the second interface and the first interface can be interfaces abstracted for different image processing functions, and the second interface is different from the first interface; in some embodiments, the second interface and the first interface are the same. The embodiments of the present application do not limit this.
[0091] In some embodiments, the third interface is used to call a plurality of software modules, and the first software module is one or more of the plurality of software modules.
[0092] It can be understood that the software modules provided on the hardware platform are various, and the third interface can call any one of the software modules. In this process, the function module on the upper layer of the third interface does not need to care about the specific implementation of the software module, thereby improving the universality of the driving recorder system.
[0093] In some embodiments, the software module can be a library specially used for image processing, which provides rich functions and tools so that the developer can easily perform image processing and computer vision tasks. In an embodiment, the software module can be an image processing library such as OpenCV (Open Source Computer Vision Library), Pillow (Python Imaging Library), etc.
[0094] In some embodiments, the third interface is set according to a graphics processor adaptation interface protocol in the embodiments of the present application, and only the secondary packaging of different software modules according to the standards defined by the graphics processor adaptation interface protocol is needed to generate a software development kit (SDK), so as to ensure that each SDK follows the same calling mode and realizes the calling of the first software module by the third interface.
[0095] In the embodiments of the present application, before the image processing of the first image data, the second image data generated by one or more cameras connected with the driving recorder can also be subjected to image processing corresponding to the first image function. In this process, the image processing corresponding to the first image function can be realized by calling the second hardware component through the second interface or by 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.
[0096] In some possible implementations, Figure 5 A fourth optional flowchart of the image data processing method provided in the embodiments of the present application is shown in FIG. 5. Figure 5 As shown in FIG. 5, step S402 can include steps S501 to S503.
[0097] In step S501, one or more second image processing functions associated with the first image processing function are obtained.
[0098] It can be understood that the driving recorder can obtain one second image processing function or a plurality of second image processing functions associated with the first processing function according to 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 realizing the first image processing function, the image data needs to be subjected to image processing by one or more processing modules corresponding to the second image processing function.
[0100] In some embodiments, the plurality of second image processing functions has a first processing order. The first processing order is used to indicate the transmission order of the hand image data in the plurality of processing modules corresponding to the plurality of second image processing functions. In an embodiment, the first processing order can be set according to requirements, and the embodiments of the present application do 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. One or more of the plurality of flow nodes can be a node corresponding to one or more second image processing functions, and at this time, the one or more second image processing functions can be considered to be associated with the first image processing function.
[0102] For example, the first image processing function can be video recording. The first processing flow can include that the image data is sent to the video recording processing through the splicing processing module, the watermark processing module, and the transcoding processing module. Then, the second image processing functions associated with the first image processing function can be splicing, watermarking, and transcoding. For example, the first image processing function can be transcoding. The first processing flow can include that the image data is sent to the transcoding processing module through the splicing processing module and the watermark processing module. Then, the second image processing functions associated with the first image processing function can be splicing and watermarking.
[0103] Step S502, in the case where the first image processing function is associated with one 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 according to the second image processing function to process the second image data.
[0104] It can be understood that in the case where the first image processing function is determined to be associated with only one second image processing function, the hardware component or the software module can be called according to the second image processing function to process the second image data.
[0105] Step S503, in the case where the first image processing function is associated with a plurality of 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 according to the second image processing function based on the first processing order to process the second image data.
[0106] It can be understood that in the case where the first image processing function is determined to be associated with a plurality of second image processing functions, the first processing order of the plurality of second image processing functions can be obtained. Then, the second hardware component is called through the second interface or the first software module is called through the third interface according to each image processing function according to the first processing order to process 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 the embodiments of the present application, in the case that 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 functions, so that the image data can be gradually optimized and converted in multiple flow nodes, and finally the target of the first image processing function can be achieved.
[0109] In some possible implementations, Figure 6 A fifth optional flow diagram of the image data processing method provided by the embodiments of the present application is shown in FIG. 5. Figure 6 As shown in FIG. 5, the step S502 or the step S503 of processing the second image data according to the second image processing function through the second interface can include steps S601 to S602.
[0110] In step S601, a second processing module is determined according to the second image processing function.
[0111] It can be understood that the dashcam 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 can be splicing, watermarking and / or transcoding, and the second processing module is a splicing module, a watermarking module and / or a transcoding module.
[0113] In an embodiment, the splicing module can seamlessly or as seamlessly as possible splice multiple images into one image with a wide viewing angle or longer. The splicing module can combine image data captured by multiple cameras.
[0114] In an embodiment, the watermarking module can embed specific information (such as a watermark) into image data, which is usually used for copyright protection, content authentication or other security purposes. The watermarking module can also embed vehicle information into image data captured by the camera.
[0115] In an embodiment, the transcoding module can convert image data from one format to another format.
[0116] In step S602, the second processing module on the second hardware component is called through the second interface to process the second image data.
[0117] It can be understood that after the dashcam determines the second processing module, the first processing module on the first hardware component can be called through the second interface to process the first image data.
[0118] It can be understood that, since the second interface is used to call the plurality of hardware components, the corresponding second hardware component can be determined according to the second processing module.
[0119] In some embodiments, the processing of the second image data by the second processing module can include: the second processing module performing stitching processing on the second image data to obtain stitched 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, the watermark processing on the second image data includes: obtaining watermark data of the vehicle, wherein the watermark data is used to represent vehicle information; and stitching 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 embodiments of the present application, when the second processing module corresponding to the second image processing function is a stitching module, a watermark module and / or a transcoding module, the second processing module on the second hardware component can be called through the second interface, so as 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 implementation manners, Figure 7 A sixth optional flowchart of the image data processing method provided by the embodiments of the present application is shown in FIG. 7. Figure 7 As shown in FIG. 7, when the second processing module is a stitching module, the processing of the second image data can include steps S701 to S703.
[0124] In step S701, view configuration parameters are obtained according to the second image processing function.
[0125] It can be understood that, when the second processing module is a stitching module, the second image processing function is a stitching function. In order to realize the stitching function, the vehicle event data recorder can obtain the view configuration parameters.
[0126] In some embodiments, the view configuration parameters can be parameters indicating the view corresponding to the image data. The view configuration parameters are used to realize the stitching of the view corresponding to the image data.
[0127] In an embodiment, the view configuration parameter includes a first configuration parameter and a second configuration parameter, a first parameter value of the first configuration parameter is used to represent the number of cameras, and a second parameter value of the second configuration parameter is used to represent the view combination mode.
[0128] In some embodiments, the vehicle-mounted camera can obtain the view configuration parameter according to the view configuration information set by the application layer.
[0129] In some embodiments, the vehicle-mounted camera system is provided with a fifth interface, which is an application adaptation interface. The application layer can obtain the view configuration parameter by calling the fifth interface and inputting the view configuration information to the fifth interface.
[0130] It can be understood that the fifth interface can configure the view configuration parameter, so that the lower-level module processes the to-be-processed image data according to the view configuration parameter.
[0131] It can be understood that configuring the view configuration parameter is an important link in the image data processing process of the vehicle-mounted camera. After configuring the view configuration parameter, the user can adjust and optimize the display mode of the image according to the needs. In the embodiments of the present application, configuring the view configuration parameter at least includes configuring the number of cameras and configuring the view combination mode. This design enables the vehicle-mounted camera to adjust the display mode of the image according to different needs and conditions, thereby improving the user experience and the customizability of the system.
[0132] In an embodiment, the fifth interface can be an application adaptation interface defining an application layer adaptation interface protocol. The fifth interface can be a view setting interface setPreview (view configuration ViewType). 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 storing the serial numbers of the cameras. Here, the size of the array must be equal to col*row. When the vehicle-mounted camera receives the image data for splicing processing, it will splice the image data corresponding to each camera in the order from 0-n according to the size of this array.
[0133] In an example, the application adaptation interface can be located between the application layer and the function layer. Figure 8 A second alternative structural diagram of the vehicle-mounted camera system provided by the embodiments of the present application is shown in Figure 8 as shown, and Figure 2In comparison, the framework layer 202 further comprises an application adaptation interface 2023 located between the function layer 2021 and the application layer 201. The fifth interface can be an interface in the application adaptation interface 2023. It can be seen that the fifth interface realizes decoupling of the application layer 201 and the function layer 2021.
[0134] It can be understood that, by using the structure shown in the figure, the application layer no longer cares about how the view configuration parameters are configured inside the fifth interface, so that the application layer can be decoupled from the underlying implementation details, improving the maintainability and scalability of the code. Moreover, 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. Figure 8
[0135] Step S702: Determine the 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 an embodiment, the second image data can be generated by one camera. In an embodiment, the second image data can be generated by multiple cameras. It can be understood 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 an embodiment, the second image data generated by one camera is stored in an array. The number of cameras can be obtained according to the number of arrays.
[0139] Step S703: In the case where 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 (i.e. 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 method corresponding to the second configuration parameter.
[0141] In an embodiment, the second configuration parameter can at least indicate the number of horizontal cameras and the number of vertical cameras, so as to determine the second number of second image data arranged horizontally and the third number of second image data arranged vertically. The second image data can be spliced according to the second number and the third number.
[0142] In an example, the first configuration parameter can be 4, indicating that four cameras are configured to shoot images in one view; the second configuration parameter can be 2*2, indicating that two cameras are arranged horizontally to shoot images and two cameras are arranged vertically to shoot images.
[0143] In some embodiments, the second image data can be spliced according to the view combination manner corresponding to the second configuration parameter, so as to obtain the first image data.
[0144] In some embodiments, in the case that the first quantity does not meet the first configuration parameter, the driving recorder can output a configuration failure prompt information.
[0145] In the embodiments of the present application, the second image data can be spliced through the view configuration parameter, and then the image splicing process is completed. In this process, the image processing flow based on the configuration parameter 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 splicing is crucial for generating seamless panoramic images or multi-view video streams.
[0146] In some possible implementation manners, the step S401 comprises: obtaining the second image data through the fourth interface according to the first control instruction, and performing format conversion on the second image data.
[0147] It can be understood 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 perform format conversion on the second image data, so that the lower function module obtains 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 an embodiment, the fourth interface can be an application adaptation interface defining an application layer adaptation interface protocol. The fourth interface can be a data input interface updateFrame(array Data). Wherein, the array Data stores the image data collected by one or more cameras in real time, and the number of cameras is equal to the value of the array Data. The image data collected by one or more cameras can be placed in the array in the order of camera serial number.
[0150] It can be understood that the fourth interface is a data input interface, which is used to receive the image data collected by one or more cameras in real time. Each element in the array Data represents the image data collected by a camera. This design mode allows the image data from one or more cameras to be processed in a unified manner.
[0151] For example, Figure 8As shown, the fourth interface can be an application adaptation interface 2023. It can be seen that the fourth interface decouples the application layer 201 from the function layer 2021. It can be understood that the application layer does not care about the internal function implementation of the fourth interface, thereby improving the modularity of the software, decoupling the application layer from the bottom layer 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 obtained through the fourth interface, and the format of the second image data is unified. This process ensures that the image data is input into the system and provides uniform image data for subsequent image processing.
[0153] Next, the image data processing method in the present application is described with a specific embodiment.
[0154] First, Figure 9 A third alternative structure diagram of the dashcam system provided in the embodiment of the present application is shown in FIG. 3. Figure 9 As shown, the dashcam system includes an application layer 201, a framework layer 202, and a hardware layer 203. The application layer 201 can adapt to various 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 an embodiment, the application adaptation interface 2023 can 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 can include a preview module 503, a watermark module 504, a photographing 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 photographing module 505, the recording module 506, the splicing module 507, and the transcoding module 508 are all standard interfaces abstracted on the basis of graphics processing functions.
[0156] In an embodiment, the hardware adaptation interface 2022 includes at least an encoding adaptation interface (i.e., a first interface) and a graphics processor adaptation interface (i.e., a third interface). The encoding adaptation interface includes an open encoder interface, a close encoder interface, and an encoding data interface. The encoding adaptation interface can call multiple programs, such as program 1 and program 2. The graphics processor adaptation interface can call multiple image libraries, such as library 1 and library 2.
[0157] In an embodiment, the application layer 201 calls a data input interface (i.e., the fourth interface) in the application adaptation interface 2023, and the driving recorder system can obtain the second image data.
[0158] In an 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, and configures view configuration parameters through a view setting interface (i.e., the fifth interface) in the application adaptation interface 2023, so that a set of driving recorder systems can support any number of cameras.
[0159] Then, combined with Figure 9 the structure shown in the figure, Figure 10 A seventh optional flow diagram of the image data processing method provided by the embodiments of the present application is shown in FIG. 10. Figure 10 The image data processing method can include steps S1001 to S1009.
[0160] Step S1001, starting the driving recorder.
[0161] Step S1002, configuring view configuration parameters.
[0162] It can be understood that the view configuration parameters can be configured through the view setting interface (i.e., the fifth interface). The view configuration can include configuring the number of horizontal camera images, the number of vertical camera images, the total width of the horizontal direction, the total height of the vertical direction, and the serial number array of the cameras.
[0163] Step S1003, saving the view configuration parameters.
[0164] In the embodiments of the present application, steps S1001 to S1003 can realize the calling of the view setting interface to pre-set the number of cameras and the view configuration.
[0165] Step S1004, starting the recording image processing function.
[0166] Step S1005, inputting the second image data.
[0167] It can be understood that the second image data can be input through the data input interface (i.e., 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 parameters. If yes, step S1007 is executed, and if no, step S1005 is returned.
[0169] Step S1007, splicing the second image data according to the view configuration parameters to generate the first image data.
[0170] Understandably, the first software module can be called through the third interface to process the second image data.
[0171] In this embodiment, steps S1004 to S1007 determine whether the number of camera data points is equal to the preset number of cameras; if they are not equal, a failure is returned directly. If the numbers are equal, the camera data is stitched together according to the configured view combination method.
[0172] Step S1008: Encode the first image data.
[0173] Understandably, the first hardware component can be invoked through the first interface to process the first image data.
[0174] Step S1009: Store the encoded first image data.
[0175] Step S1010: End the image recording and processing function.
[0176] Then, combine Figure 9 The structure shown, Figure 11 This is an eighth optional flowchart illustrating the image data processing method provided in the embodiments of this application, as shown below. Figure 11 As shown, the image data processing method may include steps S1101 to S1106.
[0177] Step S1101: Start the dashcam.
[0178] Step S1102: Create an encoder by calling the Open Encoder interface.
[0179] Step S1103: The first image data is passed to the encoder by calling the encoding data interface to start image encoding.
[0180] Step S1104: Obtain the encoded first image data and encapsulate the encoded first image data to generate a video file.
[0181] Step S1105: Call the encoder shutdown interface to shut down the encoder.
[0182] Step S1106: End image processing.
[0183] In this embodiment of the application, the dashcam can call hardware components of different hardware platforms through the hardware adapter interface (i.e., the first interface) to realize the recording function, which can realize the compatibility of dashcam software with hardware components of different hardware platforms.
[0184] Secondly, embodiments of this application propose an image data processing apparatus deployed in vehicle equipment.Figure 12 An optional structure diagram of the image data processing apparatus provided by the embodiments of the present application is shown in FIG. 12. As shown in FIG. 12, the image data processing apparatus 1200 can include a first processing module 1201, a second processing module 1202, and a third processing module 1203. The first processing module 1201 is configured to receive a first control instruction, where the first control instruction is used to indicate a first image processing function. The second processing module 1202 is configured to obtain first image data according to the first control instruction. The third processing module 1203 is configured to call a first hardware component through a first interface according to the first image processing function, so as to process the first image data. The first interface is used to call a plurality of hardware components, and the first hardware component is one or more of the plurality of hardware components, which are from different hardware platforms. Figure 12 The third processing module 1203 is configured to determine a first processing module according to the first image processing function, where the first processing module is a codec module. The first processing module on the first hardware component is called through the first interface, so as to process the first image data.
[0185] In some embodiments, the third processing module 1203 is further configured to determine a first processing module according to the first image processing function, where the first processing module is a codec module. The first processing module on the first hardware component is called through the first interface, so as to process the first image data.
[0186] In some embodiments, the second processing module 1202 is further configured to obtain second image data according to the first control instruction, where the second image data is generated by one or more cameras connected with the driving recorder. The second hardware component is called through the second interface or the first software module is called through the third interface according to the first image processing function, so as to process the second image data. The second hardware component or the first software module obtains the first image data after processing the second image data. The second interface is used to call a plurality of hardware components, and the second hardware component is one or more of the plurality of hardware components. The third interface is used to call a plurality of software modules, and the first software module is one or more of the plurality of software modules.
[0187] In some embodiments, the second processing module 1202 is further configured to obtain one or more second image processing functions associated with the first image processing function, where the plurality of second image processing functions have a first processing order. In the case that the first image processing function is associated with one 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 according to the second image processing function, so as to process the second image data. In the case that the first image processing function is associated with a plurality of 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 according to the second image processing function in sequence based on the first processing order, so as to process the second image data.
[0188] In some embodiments, the second processing module 1202 is further configured to determine the second processing module according to the second image processing function, wherein the second processing module is a stitching module, a watermark module, and / or a 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 configured to obtain a view configuration parameter according to the second image processing function, wherein the view configuration parameter comprises a first configuration parameter and a second configuration parameter, the first configuration parameter is used to indicate a number of cameras, and the second configuration parameter is used to indicate a view combination manner; determine a first number of cameras corresponding to the second image data; and in a case that the first number is consistent with the first configuration parameter, stitch 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 and perform format conversion on the second image data according to the first control instruction.
[0191] It should be noted that each module included in the image data processing apparatus provided by the embodiments of the present application can be implemented by a processor in an electronic device, and of course can also be implemented by a specific logic circuit. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
[0192] The above description of the device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0193] It should be noted that, in the embodiments of the present application, if the image data processing method described above 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 solutions of the embodiments of the present application can be embodied in the form of a software product in essence or the part that contributes to the related art, and the computer software product is stored in a storage medium, including a plurality of instructions for causing 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 the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (Read Only Memory, ROM), a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.
[0194] In a third aspect, the embodiments of the present application provide a vehicle-mounted device, which at least includes a memory and a processor, the memory stores a computer program capable of running on the processor, and the processor implements the steps of the image data processing method provided in the above embodiments when executing the program.
[0195] Figure 13 An optional structure diagram of the vehicle-mounted device provided by the embodiments of the present application is shown in Figure 13 The structure of the vehicle-mounted device is described below with reference to the vehicle-mounted device 1300 shown in
[0196] In an example, as shown in Figure 13 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 the connection and communication between the components. The external communication interface 1303 can include standard wired interfaces and wireless interfaces.
[0197] The memory 1304 is configured to store instructions and applications executable by the processor 1301, and can also cache data to be processed by the processor 1301 and modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data) that have been processed or have been processed. It can be realized by FLASH or Random Access Memory (RAM).
[0198] In another example, the vehicle-mounted device can be a dashcam. The vehicle device or controller is used to execute the steps of the image data processing method provided in the above embodiments.
[0199] In a fourth aspect, the present application provides a storage medium, wherein the storage medium stores executable instructions, and the executable instructions are executed by a processor to implement the steps of the image data processing method provided by the embodiments of the present application.
[0200] In a fifth aspect, the present application provides a computer program product, comprising a computer program or instructions, and the computer program or instructions are executed by a processor to implement the steps of the image data processing method.
[0201] It should be noted that the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
[0202] It should be understood that the term “one embodiment” or “an embodiment” mentioned throughout the specification means that the 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 does not necessarily mean 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 serial number of each process does not mean the execution order, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The serial number of the above embodiments of the present application is only for description, not representing the advantages and disadvantages of the embodiments.
[0203] It should be noted that in this document, the term “including”, “containing” or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement “including a…” does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0204] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The above described device embodiments are merely exemplary. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed coupling, or direct coupling or communication connection between the components can be indirect coupling or communication connection through some interfaces, devices, or units, and can be electrical, mechanical, or in other forms.
[0205] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units; they can be located in one place, or distributed on multiple network units; and some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0206] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be realized in the form of hardware or in the form of hardware plus software functional units.
[0207] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned method embodiments can be completed by a program instructing related hardware, and the foregoing program can be stored in a computer readable storage medium, and the program executes the steps of the above-mentioned method embodiments when executed; and the foregoing storage medium includes mobile storage devices, read-only memories (ROM), magnetic discs or optical discs, and various storage media that can store program codes.
[0208] Alternatively, the integrated units of the present application, if implemented in the form of software functional modules and sold or used as independent products, can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing 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 the embodiments of the present application. The foregoing storage medium includes mobile storage devices, ROM, magnetic discs or optical discs, and various storage media that can store program codes.
[0209] The above merely provides the implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the change or replacement within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An image data processing method, characterized in that, include: Receive a first control instruction, wherein the first control instruction is used to instruct a first image processing function; According to the first control command, second image data is obtained, wherein the second image data is generated by one or more cameras connected to the dashcam; 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 processes the second image data to obtain the first image data; wherein, the second interface is used to call multiple hardware components, the second hardware component being one or more of the multiple hardware components, and the third interface is used to call multiple software modules, the first software module being one or more of the multiple software modules; According to the first image processing function, the first hardware component is called through the first interface to process the first image data; The first interface is used to call multiple hardware components, where the first hardware component is one or more of the multiple hardware components, and the multiple hardware components come from different hardware platforms.
2. The method according to claim 1, characterized in that, The step of processing the first image data by calling the first hardware component through the first interface according to the first image processing function includes: According to the first image processing function, a first processing module is determined, wherein the first processing module is an encoding / decoding module; The first processing module on the first hardware component is invoked through the first interface to process the first image data.
3. The method according to claim 1, characterized in that, The step of processing the second image data by calling the second hardware component through the second interface or the first software module through the third interface according to the first image processing function includes: Obtain 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; When the first image processing function is associated with a second image processing function, the second image data is processed by calling the second hardware component through the second interface or calling the first software module through the third interface, according to the second image processing function. When the first image processing function is associated with multiple second image processing functions, based on the first processing order, the second image data is processed by calling the second hardware component through the second interface or calling the first software module through the third interface in sequence according to the second image processing function.
4. The method according to claim 3, characterized in that, According to the second image processing function, the second hardware component is invoked through the second interface to process the second image data, including: According to the second image processing function, a second processing module is determined, wherein the second processing module is a splicing, watermarking and / or transcoding module; The second processing module on the second hardware component is invoked through the second interface to process the second image data.
5. The method according to claim 4, characterized in that, When the second processing module is a stitching module, the processing of the second image data includes: According to the second image processing function, view configuration parameters are obtained, wherein the view configuration parameters include: a first configuration parameter and a second configuration parameter, the first configuration parameter is used to represent the number of cameras, and the second configuration parameter is used to represent the view combination method; Determine the first number of cameras corresponding to the second image data; If the first quantity meets the first configuration parameters, the second image data is stitched together according to the second configuration parameters.
6. The method according to claim 1, characterized in that, The step of obtaining the second image data according to the first control command includes: According to the first control instruction, the second image data is obtained through the fourth interface, and the format of the second image data is converted.
7. An image data processing apparatus, characterized in that, include: A first processing module is configured to receive a first control instruction, wherein the first control instruction is configured to instruct a first image processing function; The second processing module is configured 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 dashcam; and to process the second image data by calling a second hardware component through a second interface or a first software module through a third interface according to the first image processing function; wherein the second hardware component or the first software module processes the second image data to obtain the first image data; wherein the second interface is used to call multiple hardware components, the second hardware component being one or more of the multiple hardware components, and the third interface is used to call multiple software modules, the first software module being one or more of the multiple software modules; The third processing module is used to call the first hardware component through the first interface to process the first image data according to the first image processing function; The first interface is used to call multiple hardware components, where the first hardware component is one or more of the multiple hardware components, and the multiple hardware components come from different hardware platforms.
8. A vehicle-mounted device, characterized in that, The vehicle-mounted device includes a memory and one or more processors, the memory storing a computer program that, when executed by the vehicle-mounted device, implements the image data processing method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The readable storage medium stores executable instructions, wherein when executed by a processor, the executable instructions implement the image data processing method as claimed in any one of claims 1 to 6.
10. A computer program product, comprising a computer program or instructions, characterized in that, When a computer program or instruction is executed by a processor, it implements the image data processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Middleware and device for data display and control method
CN115454422A
Image processing method and device and storage medium
CN116419062A