Multi-mode camera driving method and apparatus, vehicle, and storage medium
By determining the vehicle model information and generating target camera configuration files and driver functions, the problem of resource waste caused by the single driving method of vehicle cameras is solved, and unified driving of multi-mode cameras is realized, improving system performance and stability.
Patent Information
- Application Number
- PCT/CN2025/103339
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-26
- Filing Date
- 2025-06-25
- Publication Date
- 2026-01-02
AI Technical Summary
In the existing technology, the driving method of vehicle cameras is singular, which means that different driving methods are required when using the same type of deserializer chip, resulting in high driver redundancy and waste of operating system resources.
By determining the vehicle model information, and utilizing the camera mode configuration pool and driver package, target camera configuration files and driver functions are generated to achieve unified driving for cameras of different modes.
It reduces system redundancy, simplifies the operating system driver module, supports full-stack and complete control of the intelligent cockpit domain controller, and reduces system maintenance difficulty and cost.
Smart Images

Figure CN2025103339_02012026_PF_FP_ABST
Abstract
Description
Multi-mode driving method, device, vehicle and storage medium of camera
[0001] The present application claims priority to the Chinese patent application No. 202410838160.7, filed on June 26, 2024, to the Chinese Patent Office, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of cameras, for example to a multi-mode driving method, device, vehicle and storage medium of camera. BACKGROUND
[0003] With the rapid development of the automotive industry, software-defined vehicles are gradually becoming a reality. The software control of intelligent vehicles is developing towards full-stack and completeness. In the field of intelligent cockpit domain controllers, the demand for vehicle-mounted cameras is growing to support diversified and platformized intelligent functions.
[0004] Vehicle-mounted cameras are common functional devices for domain controllers. Conventional vehicle-mounted cameras include Around View Monitor (AVM) cameras, Rear View Camera (RVC), Driver Monitoring System (DMS) cameras, Occupant Monitoring System (OMS) cameras, Time of Flight (TOF) cameras, and Automatic Parking Assistant (APA) cameras, etc. Vehicle-mounted cameras have multiple mode combinations. For example, a vehicle of A car type is equipped with AVM, DMS and OMS cameras, and a vehicle of B car type is equipped with RVC, DMS and TOF cameras. Different vehicle models have diversified multi-mode driving needs of vehicle-mounted cameras. At the same time, with the trend of platformization and software-defined vehicles, the demand for multi-mode cameras, the deserializer chip used by the camera can be reused, that is, one chip supports the display of multiple cameras.
[0005] However, the conventional driving mode of vehicle-mounted cameras has a single driving method. When multiple vehicle-mounted cameras use the same type of deserializer chip, due to factors such as serializer type, resolution communication protocol, frame rate, synchronization signal, data format and lighting configuration, even if the deserializer chip is the same, different driving methods are still needed to achieve the driving of the camera, which will cause high redundancy of driving and waste of resources of the operating system. SUMMARY
[0006] The application provides a multi-mode driving method and device of a camera, a vehicle and a storage medium, to solve the problems of high redundancy and resource waste of an operating system in driving of a vehicle configured with a multi-mode camera.
[0007] In a first aspect, the application provides a multi-mode driving method of a camera, comprising:
[0008] determining vehicle model information of a current vehicle, and determining a target camera configuration file from a camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file comprises driving entry information and camera function information corresponding to a camera in the current vehicle;
[0009] determining a target driving function from a driving program package by using the target camera configuration file, wherein the driving program package comprises driving functions of cameras with different functions;
[0010] driving the camera configured in the current vehicle by using the target driving function.
[0011] In a second aspect, the application provides a multi-mode driving device of a camera, comprising:
[0012] a camera configuration file determination module configured to determine vehicle model information of a current vehicle, and determine a target camera configuration file from a camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file comprises driving entry information and camera function information corresponding to a camera in the current vehicle;
[0013] a target driving function determination module configured to determine a target driving function from a driving program package by using the target camera configuration file, wherein the driving program package comprises driving functions of cameras with different functions;
[0014] a driving module configured to drive the camera configured in the current vehicle by using the target driving function.
[0015] In a third aspect, the application provides a vehicle, comprising:
[0016] at least one processor;
[0017] and a memory in communication connection with the at least one processor;
[0018] wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the multi-mode driving method of the camera of the first aspect.
[0019] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer instructions for causing a processor to implement the multi-mode driving method of the camera according to the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0020] Fig. 1 is a flow chart of a multi-mode driving method of a camera according to an embodiment of the present application;
[0021] Fig. 2 is a flow chart of a multi-mode driving method of a camera according to another embodiment of the present application;
[0022] Fig. 3 is a flow chart of a multi-mode driving method of a vehicle-mounted camera according to the second embodiment of the present application;
[0023] Fig. 4 is a flow chart of a data transmission method of a camera according to the second embodiment of the present application;
[0024] Fig. 5 is a structural diagram of a multi-mode driving device of a camera according to a third embodiment of the present application;
[0025] Fig. 6 is a structural diagram of a vehicle according to a fourth embodiment of the present application. DETAILED DESCRIPTION
[0026] The terms "first", "second", and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. The use of such terms in the description is thus not done for the purpose of limiting potential uses of the embodiments of the present application described herein but, on the contrary, for the purpose of highlighting similar objects that are to be distinguished in suitable circumstances. The data thus used in the description can be interchanged, where appropriate, so that the embodiments of the present application described herein can be implemented in orders other than those illustrated or described herein. In the description of the present application, "a plurality of" means two or more, unless otherwise specified. The term "and / or" describes the association relationship of associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product or device.
[0027] Embodiment One
[0028] FIG. 1 is a flowchart of a multi-mode driving method of a camera according to an embodiment of the present application. The embodiment can be applied to driving cameras of different modes. The method can be executed by a multi-mode driving device of the camera, which can be implemented in hardware and / or software. The multi-mode driving device of the camera can be configured in a vehicle, and an electronic device such as a vehicle machine in the vehicle can execute the method.
[0029] As shown in FIG. 1, the multi-mode driving method of the camera according to the embodiment of the present application includes the following steps.
[0030] In S101, vehicle model information of a current vehicle is determined, and a target camera configuration file is determined from a camera mode configuration pool according to the vehicle model information. The target camera configuration file includes driving entry information and camera function information corresponding to a camera in the current vehicle.
[0031] In the embodiment, the vehicle model information of the vehicle can be determined by using a key KEY value as key information when facing different camera modes of different vehicle models. A camera mode configuration pool can be preconfigured, and the configuration pool can include a plurality of camera configuration files. The vehicle model and the camera configuration file have a corresponding relationship, and the camera configuration file corresponding to different vehicle models is different. According to the vehicle model information, a target camera configuration file matching the vehicle model of the current vehicle can be selected from the camera mode configuration pool. The driving entry information can be a deserializer chip name, and the camera function information can be camera mode information. The modes of the vehicle-mounted camera include AVM, RVC, DMS, OMS, TOF, APA, and the like. The camera function can be understood as the function corresponding to the mode of the camera.
[0032] In S102, a target driving function is determined from a driving program package by using the target camera configuration file. The driving program package includes driving functions of cameras with different functions.
[0033] In the embodiment, a plurality of camera driving programs of different modes can be packaged to obtain a driving program package. The driving programs of different camera modes are usually different. The target driving function can be determined from the driving program package by using the target camera configuration file. For example, the driving program package is called by using the driving entry information, and then the target driving function matching the camera function information is determined from the driving program package.
[0034] In S103, the camera configured in the current vehicle is driven by using the target driving function.
[0035] In the embodiment, the camera configured in the current vehicle can be driven by using the target driving function.
[0036] The multi-mode driving method of the camera provided by the embodiment of the application determines the vehicle model information of the current vehicle, and determines a target camera configuration file from a camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file comprises driving entry information and camera function information corresponding to the camera in the current vehicle, a target driving function is determined from a driving program package by using the target camera configuration file, wherein the driving program package comprises driving functions of cameras with different functions, and the camera configured in the current vehicle is driven by using the target driving function. According to the embodiment of the application, the target camera configuration file comprising camera configuration information is accurately determined according to the vehicle model, and the driving function matched with the mode of the camera in the vehicle is quickly determined from the packaged driving program by using the configuration file, the driving function is used to drive the camera with different modes, the multi-mode driving of the vehicle camera system is realized, the system redundancy is reduced, the driving module of the operating system is simplified, strong support is provided for the intelligent cockpit domain controller, the full-stack and complete control of the intelligent automobile software is promoted, and the development needs of the future automobile industry are met.
[0037] In some embodiments, the way of determining the vehicle model information of the current vehicle comprises: determining the vehicle model information of the current vehicle from the product end-of-life configuration memory of the current vehicle by using the unique part number of the current vehicle.
[0038] Specifically, the product end-of-life configuration (End-of-life Config, Eolcfg) system in the vehicle can open a piece of memory in the system, and the memory is set with specific arrangement rules. The IC number (i.e., unique part number) of the vehicle is stored in the memory of the Eolcfg. For example, 0 to 128 bytes store the unique part number information of the vehicle, the next 128 bytes store the instrument panel information, and so on. When the IC number needs to be accessed, the information in the corresponding position can be accessed based on the memory rule table of the Eolcfg, that is, the access to the IC number can be realized. After the IC number is parsed, the vehicle model information can be determined.
[0039] In some embodiments, the driving of the camera configured in the current vehicle by using the target driving function comprises: calling a target header file by using the target driving function to realize the driving of the camera configured in the current vehicle, wherein the target header file is determined according to the vehicle model information.
[0040] Specifically, the configuration difference information of the serializer / deserializer (SerDes) is usually stored in the form of different.h files (header files). The header file corresponding to the current vehicle can be determined by using the vehicle model information, the target driver function is called by using the header file, and the content corresponding to the header file is accessed in the camera driver standardization program, so that the driving of the camera, the camera data stream transmission, and the camera format setting can be realized.
[0041] Embodiment Two
[0042] FIG. 2 is a flowchart of a multi-mode driving method of a camera according to an embodiment of the present application. The technical solution of the embodiment is further optimized on the basis of the above technical solutions, and a specific way of driving multiple cameras of different modes is given.
[0043] In some embodiments, before the determination of the vehicle model information of the current vehicle, the method further includes: for each vehicle model, writing the driving entry information, the camera function configuration information, the camera configuration information, and the general-purpose input / output port (GPIO) information of the camera corresponding to the configuration of the vehicle of the current vehicle model into an initial extensible markup language (XML) file to obtain a candidate XML file; generating a camera mode configuration pool by using the candidate XML file; and determining a target camera configuration file from the camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file further includes the camera configuration information and the GPIO information of the camera in the current vehicle. In this way, the camera mode configuration pool of the XML file is generated by using the driving entry information, the camera function configuration information, the camera configuration information, and the GPIO information, which simplifies the complexity of the driving of the vehicle-mounted camera and reduces the maintenance difficulty and cost of the system. If a new demand arises, for example, a new vehicle model is added on the basis of the same platform, the content to be maintained and updated is greatly reduced, and only the XML file and the current driver package need to be updated, without the need to rebuild a set of driving method.
[0044] In some embodiments, the determination of the target driver function from the driver package by using the target camera configuration file includes: determining the driving entry of a main driver in the driver package by using the driving entry information in the target camera configuration file; and determining the target driver function from the driver package by using the driving entry and the camera function information. In this way, the driving function of the camera of different modes can be quickly determined.
[0045] In some embodiments, the driving the camera configured in the current vehicle by using the target driver includes: driving the camera configured in the current vehicle by using the target driver, the camera configuration information, and the GPIO information. In this way, the target driver, the camera configuration information, and the GPIO information can be used for each chip in various scenarios such as cross-platform, cross-vehicle factory, and cross-vehicle model, and the driving of various modes of cameras is realized.
[0046] As shown in FIG. 2, the multi-mode driving method of the camera provided in Embodiment Two of the present application specifically includes the following steps:
[0047] S201, for each vehicle of each vehicle model, write the driving entry information corresponding to the configured camera of the vehicle of the current vehicle model, the camera function configuration information, the camera configuration information, and the general-purpose input-output port (GPIO) information into an initial extensible markup language (XML) file to obtain an alternative XML file.
[0048] Specifically, the alternative XML file contains the driving entry information, the camera function configuration information, the camera configuration information, and the GPIO information. Each vehicle model corresponds to an alternative XML file. The extensible markup language is a markup language for storing data, which allows users to customize tags, so that the data structure can be defined more flexibly.
[0049] In some embodiments, the driving entry information includes deserializer chip information, the camera function configuration information includes a camera mode name, the camera configuration information includes a channel, a device address, a frame rate, a format, and a resolution, and the GPIO information includes GPIO information of a hardware platform of the current vehicle.
[0050] Specifically, the chip name can be used as a unique driver entry name, which is the driver entry information, such as ais_max96722 or ais_max96756, etc. For different modes of camera modules, as long as the Serdes chip model is the same, a set of driver entry information can be shared. The camera function configuration information is detailed information of the camera module, which can include the camera mode name, such as max96722_avm or max96722_dms, etc. When loading the alternative XML file, through the camera function configuration information, the specific module function of the camera can be realized under the same set of driver system. The camera configuration information includes channel, device address, frame rate, format, and resolution, etc. Using the camera configuration information, different camera types can be distinguished, and then a set of driver system can be used to drive multiple modes of cameras. When the system is built, there is a mapping relationship for GPIO, and different hardware corresponds to different GPIO. Therefore, using the GPIO information in the alternative XML file, the adaptation to different hardware platforms can be realized.
[0051] S202, generating a camera mode configuration pool by using the alternative XML file.
[0052] In some embodiments, the camera mode configuration pool contains alternative XML files of multiple vehicle types, and each vehicle type can be configured with multiple cameras. Different cameras corresponding to the Serdes chip need to be managed by ID. Through the I2C channel and device information, a link can be established to each camera. For example, there are 4 cameras in AVM mode, if the I2C channel is 1, and the device ID is 0, then the IDs of the four cameras are 01, 02, 03, and 04. For example, a link has only 2 cameras, and the device ID is 1, then the camera IDs are 10 and 11. When all camera IDs are allocated, the camera IDs can be allocated in a planned order in decimal, so as to realize the single-item configuration of the camera ID management.
[0053] In some embodiments, the same physical link can be used to support different camera modules, for example, a four-in-one interface physical link can support the display of DMS, OMS, TOF, and RVC. The advantage of such a setting is that it meets the operation of multi-modularization, simplifies the physical link and linking process, realizes platformization of the common board through integration of the driver, and through the standardized physical linking process, the alternative XML file is used to uniformly manage the hardware-related GPIO and camera channel configurations, and meets the demand of agile development.
[0054] S203, determining the vehicle type information of the current vehicle from the product off-line configuration memory of the current vehicle according to the unique part number of the current vehicle.
[0055] For example, FIG. 3 is a multi-mode driving flowchart of a vehicle camera. In FIG. 3, a unique part number is stored in the vehicle offline configuration module, and the vehicle model information (i.e., vehicle model item) corresponding to the unique part number is stored in the vehicle item configuration module.
[0056] S204. Determine a target camera configuration file from the candidate XML files in the camera mode configuration pool according to the vehicle model information.
[0057] The target camera configuration file includes driving entry information, camera function information, camera configuration information, and general input / output port (GPIO) information corresponding to the in-vehicle camera of the current vehicle.
[0058] Specifically, the camera application can be opened first, such as starting AVM, DMS, OMS, and RVC. Then, the target camera configuration file is determined from the candidate XML files in the camera mode configuration pool, which has been standardized and normalized. For example, if the vehicle model information is ABCD, the corresponding candidate XML file (i.e., the target camera configuration file) of ABCD can be accessed in the configuration pool. As shown in FIG. 3, the camera xml file (i.e., the target camera configuration file) corresponding to each vehicle model item (i.e., vehicle model information) can be determined from the multi-mode camera configuration pool (i.e., the camera mode configuration pool).
[0059] S205. Determine the driving entry of the main driver in the driver package using the driving entry information in the target camera configuration file.
[0060] Specifically, by loading the driving entry information in the target camera configuration file, the driving entry of the main driver in the driver package can be determined.
[0061] S206. Determine the target driving function from the driver package using the driving entry and the camera function information.
[0062] Specifically, in order to realize the normalization of cameras with different modes, i.e., to standardize and integrate the functions of different camera modules, the driving functions of each camera mode can be packaged to obtain a driver package. For example, if max96722 is a driver package, the driver package can include the driving programs of AVM, DMS, OMS, RVC, and TOF modes. By using the driving entry of the main driver, the target driving function can be determined from the driver package using the camera function information, which realizes that even if the configurations of the platform and the vehicle model are different, a single driving method can meet the driving needs of multiple modes under the condition of the same deserializer chip.
[0063] S207, driving the camera configured in the current vehicle by using the target driving function, the camera configuration information and the GPIO information.
[0064] Specifically, the target driving function can call a target header file.
[0065] In some embodiments, the image display process after driving can include: after the adaptation of multiple modes and the correct configuration of SerDes, opening the MIPI data stream, and the deserializer and the serializer working normally. The camera starts capturing images and converting them into a video stream, and the camera corresponding to the ID transmits the images to the upper-layer APP through the link.
[0066] In some embodiments, FIG. 4 is a schematic diagram of a camera data transmission process. As shown in FIG. 4, the camera data transmission process can include the following 10 steps:
[0067] 1) Camera end data transmission: the camera end transmits the video through the camera serial interface (CSI). This step is a protocol layer process, and the protocol layer data is processed in the physical layer through D-PHY (D is the Roman numeral 500, meaning 500 Mbits / s, and PHY means physical layer).
[0068] 2) Serializer adds series: the serializer (Serializer) physical layer accepts the camera data based on D-PHY, and simultaneously transmits the protocol layer based on CSI. Accordingly, the serializer converts the parallel signal into a serial signal.
[0069] 3) Tx Equalizer performs signal equalization: the path through which the SerDes signal from the sending end chip reaches the receiving end chip becomes a channel (Channel), which specifically includes chip packaging, PCB bus, via, cable and connector elements. From the frequency domain, the channel can be simplified as a low-pass filter model. If the rate of SerDes is greater than the channel cutoff frequency, the signal will be damaged to some extent. The role of the equalizer is to prevent the channel from damaging the signal.
[0070] 4) Data transmission: data transmission is performed based on low-voltage differential signaling (Low-Voltage Differential Signaling, LVDS), and the data after the serializer adds series is transmitted to the deserializer.
[0071] 5) Rx Equalizer performs signal equalization: the role of the receiving end equalizer is to prevent the channel from damaging the signal when receiving the signal, and maintain the transmission stability.
[0072] 6) Deserializer Deserialization: Deserializer physical layer accepts camera data based on D-PHY, while the protocol layer is transmitted based on CSI. Accordingly, the serializer converts the serial signal into a parallel signal.
[0073] 7) Data packaging after deserialization: The data obtained after deserialization is packaged according to the MIPI protocol and transmitted to the system on chip (SOC). As shown in FIG. 3, the camera configuration module, multi-mode camera configuration module, and Serdes (i.e., SerDes) configuration module are used to drive the SerDes and SerDes chip, and finally transmit the video data collected by the camera to the SOC. The MIPI (Mobile Industry Processor Interface) protocol can be used to standardize the interfaces inside the mobile phone, such as the camera, display screen interface, and radio frequency / baseband interface, thereby reducing the complexity of mobile phone design and increasing design flexibility.
[0074] 8) Internal MIPI data analysis of SOC: The internal MIPI module of the SOC can hard-decode MIPI data, and the signal channel transmission is performed during the analysis, and the data adaptation of the interface multiplexing is performed.
[0075] 9) Signal channel processing: Since there are multiple modes of the signal channel of the camera, the target camera configuration file can be used for configuration, different signal channels are allocated for different mounting conditions, and the difference in transmission rate is processed according to the following rate formula: mbps = (w * h * fps * blank) * bpp * numVchannel
[0076] Where Mbps is the transmission bandwidth, w is the video width, h is the video length, fps is the video frame rate per second, blank is the blank part of the frame header and frame tail, bpp is the pixel depth (bits per pixel), and numVchannel is the number of communication channels.
[0077] 10) Data saving: The data is saved in double data rate synchronous dynamic random-access memory (DDR) or static random-access memory (SRAM) for use by the upper layer and display screen output, etc.
[0078] In some embodiments, if the camera is hot-plugged (i.e., connected or disconnected while the system is running) during normal display, or the camera is in an abnormal state, such as overheating or data transmission error, appropriate measures can be taken.
[0079] The multi-mode driving method of the camera provided in the embodiment of the application simplifies the complexity of the driving of the vehicle-mounted camera, reduces the difficulty and cost of the maintenance of the system, and realizes the rapid determination of the driving function of the camera in different modes. In various scenes of cross-platform, cross-vehicle factory and cross-vehicle type, the target driving function, the camera configuration information and the GPIO information can be used for each chip to realize the driving of the camera in multiple modes, simplify the complexity of the driving method of the vehicle-mounted camera, reduce the difficulty and cost of the maintenance of the system, improve the performance of the vehicle-mounted camera system, integrate the advantages of multiple platforms, enhance the stability, replicability and portability of the system, meet the conditions of agile development, and are suitable for popularization and use.
[0080] Embodiment three
[0081] FIG. 5 is a structural schematic diagram of a multi-mode driving device of a camera provided in the embodiment three of the application. As shown in FIG. 5, the device comprises a camera configuration file determination module 301, a target driving function determination module 302 and a driving module 303, wherein:
[0082] The camera configuration file determination module is configured to determine the vehicle type information of the current vehicle, and determine a target camera configuration file from the camera mode configuration pool according to the vehicle type information, wherein the target camera configuration file comprises the driving entry information and the camera function information corresponding to the camera in the current vehicle.
[0083] The target driving function determination module is configured to determine a target driving function from a driving program package by using the target camera configuration file, wherein the driving program package comprises driving functions of cameras with different functions.
[0084] The driving module is configured to drive the camera configured in the current vehicle by using the target driving function.
[0085] The multi-mode driving device of the camera provided in the embodiment of the application accurately determines the target camera configuration file comprising the camera configuration information according to the vehicle type, rapidly determines the driving function matched with the mode of the camera in the vehicle from the packaged driving program by using the configuration file, realizes the driving of the camera in different modes by using the driving function, realizes the multi-mode driving of the vehicle-mounted camera system, reduces the system redundancy, simplifies the driving module of the operating system, provides strong support for the intelligent cockpit domain controller, promotes the full-stack and complete control of the intelligent automobile software, and meets the development needs of the future automobile industry.
[0086] In some embodiments, the apparatus further comprises:
[0087] an alternative XML file determining module configured to, before determining the vehicle model information of the current vehicle, write the drive entry information, the camera function configuration information, the camera configuration information and the general input and output port (GPIO) information corresponding to the configured camera of the vehicle of the current vehicle model into an initial extensible markup language (XML) file to obtain an alternative XML file for each vehicle model;
[0088] a configuration pool determining module configured to generate a camera mode configuration pool by using the alternative XML file.
[0089] In some embodiments, the camera configuration file determining module comprises:
[0090] a camera configuration file determining unit configured to determine a target camera configuration file from the alternative XML file of the camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file further comprises the camera configuration information and the GPIO information of the camera in the current vehicle.
[0091] In some embodiments, the drive entry information comprises de-serializer chip information, the camera function configuration information comprises camera mode name, the camera configuration information comprises channel, device address, frame rate, format and resolution, and the GPIO information comprises the GPIO information of the hardware platform of the current vehicle.
[0092] In some embodiments, the target drive function determining module comprises:
[0093] a drive entry determining unit configured to determine the drive entry of the main drive program in the drive program package by using the drive entry information in the target camera configuration file;
[0094] a target drive function determining unit configured to determine the target drive function from the drive program package by using the drive entry and the camera function information.
[0095] In some embodiments, the drive module is configured to call a target header file by using the target drive function to implement the driving of the configured camera in the current vehicle, wherein the target header file is determined according to the vehicle model information.
[0096] In some embodiments, the drive module is configured to drive the configured camera in the current vehicle by using the target drive function, the camera configuration information and the GPIO information.
[0097] In some embodiments, the manner of determining the vehicle model information of the current vehicle comprises: determining the vehicle model information of the current vehicle from a product off-line configuration memory of the current vehicle by using a unique part number of the current vehicle.
[0098] The multi-mode driving device of the camera provided in the embodiments of the present application can execute the multi-mode driving method of the camera provided in any of the embodiments of the present application, and has the function modules and beneficial effects corresponding to the execution method.
[0099] Embodiment Four
[0100] FIG. 6 shows a structural schematic diagram of the car machine 40 in the vehicle that can be used to implement the embodiments of the present application. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0101] As shown in FIG. 6, the car machine 40 of the vehicle can include at least one processor 41, and a memory such as a Read-Only Memory (ROM) 42, a Random Access Memory (RAM) 43, etc. in communication connection with the at least one processor 41, wherein the memory stores a computer program executable by the at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the ROM 42 or loaded from the storage unit 48 into the RAM 43. In the RAM 43, various programs and data required for the operation of the car machine 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An Input / Output (I / O) interface 45 is also connected to the bus 44.
[0102] A plurality of components in the car machine 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the car machine 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunications networks.
[0103] The processor 41 can be various general and / or special purpose processing components with processing and computing capabilities. The processor 41 can include a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 41 performs various methods and processes described above, such as the multi-mode driving method of the camera.
[0104] In some embodiments, the multi-mode driving method of the camera can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed onto the head unit 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded onto the RAM 43 and executed by the processor 41, one or more steps of the multi-mode driving method of the camera described above can be performed. In other embodiments, the processor 41 can be configured to perform the multi-mode driving method of the camera by any other suitable means, such as by means of firmware.
[0105] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0106] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program, when executed, cause the functions / operations specified in the flow charts and / or block diagrams to be implemented. The computer program can be executed in whole or in part on a machine, on a separate software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0107] The computer device provided above can be used to execute the multi-mode driving method of the camera provided in any of the embodiments above, and has the corresponding functions and advantages.
[0108] Embodiment five
[0109] In the context of the present application, the computer-readable storage medium can be a tangible medium, and the computer-executable instructions, when executed by a computer processor, are used to perform a multi-mode driving method of a camera, comprising:
[0110] determining the vehicle model information of the current vehicle, and determining a target camera configuration file from the camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file includes driving entry information and camera function information corresponding to the in-vehicle camera of the current vehicle;
[0111] determining a target driving function from a driving program package using the target camera configuration file, wherein the driving program package contains driving functions of cameras with different functions;
[0112] driving the camera configured in the current vehicle using the target driving function.
[0113] In the context of the present application, the computer readable storage medium can be a tangible medium that can contain or store the computer program for use by or in connection with the instruction execution system, apparatus, or device. The computer readable storage medium can include electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. The computer readable storage medium can be a machine readable signal medium. The machine readable storage medium can include one or more wire-based electrical connections, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM or flash memory), optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0114] The computer device provided above can be used to execute the multi-mode driving method of the camera provided in any of the embodiments above, and has the corresponding functions and advantages.
[0115] It is worth noting that in the above embodiments of the multi-mode driving device of the camera, each unit and module included is only divided according to the functional logic, but is not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for the convenience of mutual differentiation.
Claims
1. A method for multi-mode driving of a camera, comprising: determining a vehicle model information of a current vehicle, and determining a target camera configuration file from a camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file comprises driving entry information and camera function information corresponding to a camera configured in the current vehicle; determining a target driving function from a driver package according to the target camera configuration file, wherein the driver package comprises driving functions of cameras with different functions; driving the camera configured in the current vehicle according to the target driving function. 2.The method of claim 1, before the determining of the vehicle model information of the current vehicle, the method further comprises: writing, for each vehicle model, driving entry information, camera function configuration information, camera configuration information and general-purpose input / output (GPIO) information corresponding to a camera configured in a vehicle of the current vehicle model into an initial extensible markup language (XML) file to obtain a candidate XML file; generating the camera mode configuration pool according to the candidate XML file; wherein the determining of the target camera configuration file from the camera mode configuration pool according to the vehicle model information comprises: determining the target camera configuration file from the candidate XML file of the camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file further comprises camera configuration information and GPIO information of the camera configured in the current vehicle.
3. The method of claim 2, wherein, The driving entry information comprises de-serializer chip information, the camera function configuration information comprises a camera mode name, the camera configuration information comprises a channel, a device address, a frame rate, a format and a resolution, and the GPIO information comprises GPIO information of a hardware platform of the current vehicle.
4. The method of claim 1, wherein, The determining of the target driving function from the driver package according to the target camera configuration file comprises: determining a driving entry of a main driver in the driver package according to the driving entry information in the target camera configuration file; determining the target driving function from the driver package according to the driving entry and the camera function information.
5. The method of claim 1, wherein, The driving of the camera configured in the current vehicle according to the target driving function comprises: calling a target header file according to the target driving function to drive the camera configured in the current vehicle, wherein the target header file is determined according to the vehicle model information.
6. The method of claim 2, wherein, The driving of the camera configured in the current vehicle according to the target driving function comprises: driving the camera configured in the current vehicle according to the target driving function, the camera configuration information and the GPIO information.
7. The method of claim 1, wherein, The method for determining the vehicle model information of the current vehicle comprises: determining the vehicle model information of the current vehicle from a product off-line configuration memory of the current vehicle according to a unique part number of the current vehicle. 8.A device for multi-mode driving of a camera, comprising: The camera configuration file determination module is configured to determine the vehicle model information of the current vehicle, and determine a target camera configuration file from a camera mode configuration pool according to the vehicle model information, wherein the target camera configuration file comprises the driving interface information and the camera function information corresponding to the in-vehicle camera of the current vehicle; The target driving function determination module is configured to determine a target driving function from a driving program package by using the target camera configuration file, wherein the driving program package comprises driving functions of cameras with different functions; The driving module is configured to drive the camera configured in the current vehicle by using the target driving function.
9. A vehicle, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the multi-mode driving method of the camera according to any one of claims 1-7.
10. A computer readable storage medium, the computer readable storage medium stores computer instructions for enabling a processor to implement the multi-mode driving method of the camera according to any one of claims 1-7 when executed.
Citation Information
Patent Citations
Vehicle-mounted camera configuration method and device, electronic equipment and storage medium
CN112689083A
Camera configuration method and device and computer readable storage medium
CN114840262A
Driving method and device of vehicle-mounted camera system
CN115734070A
Multi-mode driving method and device of camera, vehicle and storage medium
CN118819668A
Onboard device upgrade method, device, system and computer storage medium
WO2018041061A1