A camera compatible method, device, vehicle and readable storage medium
By acquiring the recognition data of the panoramic camera and matching the driver identifier, the multimedia host can be made compatible with a variety of panoramic cameras, solving the problem of replaceability and compatibility between panoramic cameras and the multimedia host, and reducing maintenance time and debugging workload.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING CHANGAN AUTOMOBILE CO LTD
- Filing Date
- 2023-06-05
- Publication Date
- 2026-07-07
AI Technical Summary
In the existing technology, the panoramic camera and the multimedia host are not interchangeable, which leads to the need to find the same type of parts during maintenance, increasing the time cost, and the workload of installation and debugging is large.
By acquiring the recognition data from each camera, and if the recognition data is consistent, the corresponding driver identifier and driver software are matched and installed, enabling the multimedia host to be compatible with multiple panoramic cameras.
This solution addresses the issues of poor replaceability and compatibility between multimedia hosts and panoramic cameras, enabling multimedia hosts to be compatible with a variety of panoramic cameras and reducing maintenance time and debugging workload.
Smart Images

Figure CN116709001B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and more specifically to a camera-compatible method, apparatus, vehicle, and readable storage medium. Background Technology
[0002] With the development of the automotive and camera industries, panoramic cameras have been applied to vehicles. Panoramic cameras provide drivers with a bird's-eye view of the vehicle, allowing them to view the surrounding environment and make informed driving decisions. Typically, achieving panoramic vehicle photography requires multiple cameras working together to capture images of the vehicle's surroundings from various angles, and then accurately stitching the images together. Panoramic camera manufacturers usually develop corresponding driver software for their cameras, using this software to drive the cameras and stitch the images together. Panoramic cameras are usually connected to the vehicle's multimedia head unit, which handles camera control and image processing. Currently, panoramic cameras and multimedia head units often have a one-to-one correspondence, resulting in poor replaceability. If a panoramic camera or multimedia head unit fails, for driving safety reasons, it's necessary to find a replacement of the same type. However, compatible parts are often unavailable at repair shops, requiring sourcing from the manufacturer, significantly increasing repair time and causing considerable inconvenience to users. Furthermore, dedicated cameras or multimedia head units often require a lengthy setup and debugging process after installation, resulting in a significant workload. Summary of the Invention
[0003] One objective of this invention is to provide a camera compatibility method to solve the problems of poor replaceability caused by the one-to-one correspondence between multimedia host and panoramic camera in the prior art, as well as the large workload of installation and debugging of dedicated cameras or multimedia hosts; a second objective is to provide a camera compatibility device; a third objective is to provide a vehicle; and a fourth objective is to provide a readable storage medium.
[0004] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0005] This invention provides a camera-compatible method for use in vehicles, the method comprising:
[0006] Acquire recognition data from each camera;
[0007] If the recognition data from each of the cameras are consistent, a first driving identifier that matches the recognition data is obtained;
[0008] Based on the first driver identifier, the first driver corresponding to the first driver identifier is invoked; the first driver is used to drive each of the cameras.
[0009] Install the first driver to ensure compatibility with each of the cameras.
[0010] Based on the above technical means, a panoramic camera compatibility method has been added to the existing multimedia host system, so that a multimedia host can be compatible with multiple panoramic cameras, thus solving the technical problems of poor substitutability and poor compatibility between multimedia hosts and panoramic cameras.
[0011] Optionally, the method further includes:
[0012] From the recognition data of each of the cameras, determine any one of the recognition data as template recognition data;
[0013] The identification data other than the template identification data in the identification data of each camera are compared with the template identification data to obtain the first comparison result corresponding to each of the other identification data.
[0014] If the first comparison results are all consistent, it is determined that the recognition of each camera is consistent.
[0015] Optionally, the installation of the first driver includes:
[0016] Obtain the second driver identifier of the second driver already installed in the camera driver installation location;
[0017] The first driver identifier is compared with the second driver identifier to obtain a second comparison result;
[0018] If the second comparison result is different, the first driver corresponding to the first driver identifier is installed at the camera driver installation position.
[0019] Optionally, the method further includes:
[0020] If the comparison results are the same, the second driver already installed in the camera driver installation location is run, and the camera is driven by the second driver.
[0021] Optionally, the method further includes:
[0022] Obtain the corresponding calibration parameters based on the identification data;
[0023] The images captured by each camera are stitched together based on the calibration parameters to obtain a panoramic image.
[0024] Optionally, obtaining the corresponding calibration parameters based on the identification data includes:
[0025] The identification data is sent to the application layer so that the application layer can generate and send a calling instruction based on the identification data;
[0026] In response to the call command, the corresponding calibration parameters in the algorithm package are obtained; wherein the algorithm package includes calibration parameters corresponding to several types of cameras.
[0027] Optionally, the identification data includes supplier information for each camera and sensor information within each camera, and the method further includes:
[0028] If the first comparison results are inconsistent, the first supplier information of each camera is obtained; the first supplier information is the same supplier information in the recognition data of each camera.
[0029] If the first supplier information is obtained, the first sensor information is obtained; the first sensor information is the same sensor information in the recognition data of each camera.
[0030] If the first sensor information is obtained, a third driving identifier is obtained based on the first supplier information and the first sensor information;
[0031] Obtain the third driver corresponding to the third driver identifier, and install the third driver to ensure compatibility with each camera.
[0032] This invention also proposes a camera-compatible device, the device comprising:
[0033] The first acquisition module is used to acquire the recognition data from each camera;
[0034] The second acquisition module is used to acquire a first driving identifier that matches the recognition data when the recognition data of each camera is consistent.
[0035] The third acquisition module is used to acquire a first driver corresponding to the first driver identifier based on the first driver identifier; the first driver is used to drive each camera.
[0036] An installation module is used to install the first driver, thereby ensuring compatibility with each of the cameras.
[0037] This invention also proposes a vehicle including the camera-compatible device as described above, for performing the camera-compatible method as described above.
[0038] This invention also proposes a readable storage medium that, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the aforementioned camera-compatible method.
[0039] The beneficial effects of the present invention are as follows: In the process of adapting a multimedia host to a panoramic camera, the present invention obtains the recognition data of each camera. When the recognition data of each camera is consistent, a first driver identifier matching the recognition data is obtained. Based on the recognition data, a matching first driver is obtained and installed. This solves the problems of poor replaceability and compatibility between the multimedia host and the panoramic camera, and achieves the technical effect of a multimedia host being compatible with multiple panoramic cameras. Attached Figure Description
[0040] Figure 1 A flowchart illustrating a camera compatibility method provided by the present invention;
[0041] Figure 2 A flowchart illustrating another camera compatibility method provided by the present invention;
[0042] Figure 3 A logic block diagram of a camera-compatible device provided by the present invention;
[0043] Figure 4 A schematic diagram of the dimensions of a camera provided by the present invention;
[0044] Figure 5 A schematic diagram of the structure of an electronic device provided by the present invention;
[0045] Figure 6 This is a schematic diagram of a camera-compatible system provided by the present invention. Detailed Implementation
[0046] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0047] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0048] In the embodiments provided by the present invention, Figure 1 A flowchart illustrating a camera compatibility method applied to a multimedia host is shown. The method may include:
[0049] Step 101: Obtain the recognition data from each camera.
[0050] In embodiments of the present invention, when the multimedia host is connected to the physical circuit of the panoramic camera, it can read the recognition data inside the camera through a reading program stored in the internal chip of the multimedia host. The recognition data inside the camera can be written into the flash memory inside the camera by the camera supplier at the time of manufacture and can be stored in a fixed address of the flash memory. For example, supplier name information can be stored at address 000000H in the camera's flash memory, and this information can occupy one byte of memory; sensor category information can be stored at address 000001H in the camera's flash memory, and this information can occupy one byte of memory. If there is free space in this address space, this space can be reserved, as shown in Table 1 below.
[0051]
[0052] Table 1
[0053] In this context, Address refers to the memory address of the camera's flash memory, Hex indicates that the address is a hexadecimal string, Size refers to the memory size corresponding to the address, and Byte means byte, with 1 Byte being 1 byte. Parameter refers to the parameter type, which includes Supplier Name and Sensor Type. Supplier Name is the vendor name, and Sensor Type is the sensor type. Description is a detailed description of the parameter type. For example, in the description 0x01: Supplier 1, 0x01 refers to the bit information of the memory address, and Supplier 1 is a vendor name stored in this bit. Reserved means reserved; even if this bit contains no information, its memory location is still retained. Correspondingly, Sensor 1 refers to sensor type information stored in 0x01.
[0054] Step 102: If the recognition data of each camera is consistent, obtain a first driving identifier that matches the recognition data.
[0055] In embodiments of the present invention, panoramic cameras are generally composed of multiple cameras. Therefore, the acquired camera identification data often consists of multiple sets, the number of which corresponds one-to-one with the number of cameras. Thus, these identification data sets can be compared to determine whether they are consistent. If the identification data sets are consistent, a first driving identifier matching these identification data sets can be obtained. The first driving identifier may include information such as the name, size, and supplier of the first driving device.
[0056] Step 103: Based on the first driver identifier, call the first driver corresponding to the first driver identifier; the first driver is used to drive each camera.
[0057] In an embodiment of the present invention, after obtaining the first driver identifier, the first driver software corresponding to the various information contained in the first driver identifier can be matched in the driver library of the multimedia host. Then, the multimedia host can obtain the first driver software. The driver library can be used to store driver software corresponding to various cameras, and the driver library can be stored in the storage area of the multimedia host.
[0058] Step 104: Install the first driver to make the cameras compatible.
[0059] In an embodiment of the present invention, the multimedia host can install the first driver software at a predetermined location where the camera driver is installed. After installing the first driver software and completing the configuration, the multimedia host can acquire the camera's captured images.
[0060] Compared to existing methods for ensuring multimedia hosts are compatible with panoramic cameras, this invention achieves the technical effect of ensuring multimedia hosts are compatible with multiple panoramic cameras by acquiring the recognition data of each camera. When the recognition data of each camera is consistent, a first driver identifier matching the recognition data is acquired. Based on the first driver identifier, a first driver corresponding to the first driver identifier is called and configured for installation. This solves the problems of poor substitutability and compatibility between multimedia hosts and panoramic cameras.
[0061] In an embodiment of the present invention, Figure 2 A flowchart illustrating another camera compatibility method is shown, which may include:
[0062] Step 201: After the vehicle is started, acquire the recognition data from each camera.
[0063] In an embodiment of the present invention, the multimedia host in the vehicle can be powered on immediately after the vehicle is started. Once powered on and operational, the multimedia host can begin acquiring recognition data from the in-vehicle panoramic camera. This recognition data may include the camera's supplier name and sensor type, etc. This data can be stored in the camera's flash memory address and can be actively accessed and read by the multimedia host after a circuit connection is established. It should be noted that the installation location of the panoramic camera in the vehicle can be determined by the multimedia host's input / output ports, thereby ensuring the correct acquisition of a panoramic image—that is, a panoramic view of the vehicle's surrounding environment—in subsequent steps.
[0064] Step 202: Determine any one of the recognition data from the recognition data of each camera as template recognition data.
[0065] In embodiments of the present invention, to confirm whether each panoramic camera can be driven by the same driver software, it is necessary to confirm whether the recognition data of each camera is consistent. Therefore, the recognition data of one camera can be used as template recognition data for subsequent comparison. The method for selecting template recognition data can be random, or the first acquired recognition data can be selected as template recognition data, or the last acquired recognition data can be selected as template data.
[0066] Step 203: Compare the recognition data of each camera other than the template recognition data with the template recognition data to obtain the first comparison result corresponding to each of the other recognition data.
[0067] In embodiments of the present invention, after confirming the template identification data, the remaining identification data can be compared with the template identification data to obtain a first comparison result. The first comparison result may include both identical and different results. When only identical results are found in the first comparison result, it can be confirmed that all first comparison results are consistent; when at least one different result is found in the first comparison result, it can be confirmed that the first comparison results are inconsistent.
[0068] Step 204: If the first comparison results are all consistent, obtain the first driving identifier that matches the identification data.
[0069] In embodiments of the present invention, when all the first comparison results are consistent, the multimedia host can match the corresponding first driver identifier based on the identification data. Since all the first comparison results are consistent, the identification data used for matching can be any set of identification data. In the multimedia host, each type of identification data can correspond to a driver identifier, but different types of identification data can also have the same driver identifier. That is, a certain driver identifier can correspond to different types of identification data. Specifically, when the identifier data used for matching includes all the identifier data stored in the camera's flash memory, a driver identifier with the best compatibility can be matched; when the identifier data used for matching only includes a portion of the identifier data stored in the camera's flash memory, multiple applicable driver identifiers can be matched.
[0070] For example, a camera stores four vendor names (Vendor 1, Vendor 2, Vendor 3, and Vendor 4) and two sensor types (Sensor 1 and Sensor 2) in its flash memory. When the identification data used for matching includes all four vendor information and the two sensor type information, a driver identifier with the best compatibility can be precisely matched. When the identification data used for matching only includes partial information, such as Vendor 1 and the two sensor type information, multiple driver identifiers can be fuzzily matched. The driver software corresponding to these driver identifiers can all be used to drive the camera. The difference between these two matching methods is that the driver corresponding to the precisely matched driver identifier can implement all the functions of the camera, while the driver corresponding to the fuzzily matched driver identifier can implement some of the functions of the camera. The driver corresponding to the fuzzily matched driver identifier can include the driver corresponding to the precisely matched driver identifier.
[0071] In an embodiment of the present invention, by determining any one of the recognition data from the recognition data of each camera as template recognition data, and comparing the other recognition data in the recognition data of each camera other than the template recognition data with the template recognition data respectively, a first comparison result corresponding to each of the other recognition data is obtained. If the first comparison results are all consistent, a first driver identifier matching the recognition data is obtained. This can accurately determine whether each camera meets the compatibility conditions and can match the driver identifier of the corresponding driver when the compatibility conditions are met. This refines the compatibility conditions of the cameras, thereby enabling each camera to quickly achieve compatibility when the conditions are met.
[0072] Step 205: Based on the first driver identifier, obtain the first driver corresponding to the first driver identifier and configure and install it.
[0073] In embodiments of the present invention, after obtaining the first driver identifier, the first driver software corresponding to the first driver identifier can be invoked for installation and configuration. The installation and configuration process can be performed automatically within the chip of the multimedia host, and the first driver software can be installed at a preset camera driver installation location within the multimedia host. The configuration process can be performed and completed based on configuration-related programs included in the first driver software.
[0074] Specifically, step 205 may include the following sub-steps:
[0075] Sub-step 2051: Obtain the second driver identifier of the second driver already installed in the camera driver installation location.
[0076] In embodiments of the present invention, the multimedia host may have a pre-installed camera driver, referred to as the second driver. The second driver may be installed during any power-on operation of the multimedia host, or it may be installed at the factory. The multimedia host can obtain the driver identifier of the installed second driver through a program stored in its internal chip for subsequent comparison.
[0077] Sub-step 2052: Compare the first driver identifier with the second driver identifier to obtain a second comparison result.
[0078] In an embodiment of the present invention, after obtaining the driver identifier of the second driver, the second driver identifier can be compared with the previously obtained first driver identifier to obtain a second comparison result. The second comparison result can include two cases: the same and different. The second comparison result can be one of these two cases.
[0079] Sub-step 2053: If the second comparison result is different, install the first driver corresponding to the first driver identifier to the camera driver installation position.
[0080] In an embodiment of the present invention, if the second comparison result is different, in order for the camera to work properly, a first driver corresponding to the first driver identifier can be installed, thereby overwriting the already installed second driver. Specifically, the multimedia host can uninstall the installed second driver, and then call the first driver software corresponding to the first driver identifier, thereby installing the first driver software in the preset installation location of the camera driver in the multimedia host, so that the first driver can overwrite the already installed second driver.
[0081] Sub-step 2054: If the second comparison result is the same, run the second driver that has been installed in the camera driver installation location, and drive the camera through the second driver.
[0082] In an embodiment of the present invention, if the second comparison result is the same, the panoramic camera can be used normally without the need for a new driver installation. At this time, the images captured by the panoramic camera can be acquired using the already installed second driver.
[0083] It should be noted that only one of sub-step 2053 and sub-step 2054 may appear in a single compatibility process.
[0084] In an embodiment of the present invention, a first driver corresponding to the first driver identifier is obtained and configured for installation based on the first driver identifier. Furthermore, the second driver identifier of the second driver already installed in the camera driver installation location is obtained, and the first driver identifier is compared with the second driver identifier to obtain a second comparison result. If the second comparison result is different, the first driver corresponding to the first driver identifier is installed in the camera driver installation location. If the second comparison result is the same, the second driver already installed in the camera driver installation location is run, and the camera is driven by the second driver. This refines the conditions for installing the corresponding driver when each camera meets compatibility requirements, avoiding unnecessary installation actions, reducing camera startup time, and facilitating rapid compatibility between the multimedia host and the panoramic camera.
[0085] Step 206: Obtain the corresponding calibration parameters based on the identification data.
[0086] In an embodiment of the present invention, after the camera driver is installed, the currently installed driver can be verified. Specifically, the multimedia host can obtain the calibration parameters of the camera corresponding to the identification data. The calibration parameters can be used to stitch together the images captured by the camera, so that the vehicle can obtain a panoramic view of the vehicle's surrounding environment in various scenarios.
[0087] Specifically, step 206 may include the following sub-steps:
[0088] Sub-step 2061: Send the identification data to the application layer so that the application layer can generate and send a calling instruction based on the identification data.
[0089] In an embodiment of the present invention, the program stored in the multimedia host chip can send the acquired camera recognition data to the multimedia host application layer. After acquiring the recognition data, the multimedia host application layer can send a command to the multimedia host to call the calibration parameters of the panoramic camera. Upon receiving the command from the multimedia host application layer, the multimedia host can respond to the command by retrieving the corresponding calibration parameters from the panoramic algorithm package stored in the chip.
[0090] Sub-step 2062: In response to the call instruction, obtain the corresponding calibration parameters in the algorithm package; wherein the algorithm package includes calibration parameters corresponding to several types of cameras.
[0091] In an embodiment of the present invention, after the multimedia host chip obtains the calibration parameters corresponding to the identification data, it can respond to the calling instruction of the multimedia host application layer and send the calibration parameters to the multimedia application layer for use by the multimedia host application layer.
[0092] Step 207: Based on the calibration parameters, stitch together the images captured by each camera to obtain a panoramic image.
[0093] In an embodiment of the present invention, after obtaining the calibration parameters, the multimedia host application layer can stitch together the images captured by the panoramic camera according to the calibration parameters to obtain a panoramic image. Specifically, as shown... Figure 4 As shown, the shape, size, and installation location of each panoramic camera can be defined by specific data. Based on this, when all panoramic cameras are correctly installed, the multimedia host can stitch together the images captured by these cameras using calibration parameters to obtain a panoramic image. The panoramic image can be retrieved from the panoramic cameras according to the actual usage scenario. For example, when the vehicle is changing lanes, a panoramic view of the surrounding environment can be retrieved for the driver's reference. When the vehicle is reversing, the image captured by the panoramic camera behind the vehicle can be stitched together to provide the driver with information about the environment behind the vehicle.
[0094] In embodiments of the present invention, by obtaining corresponding calibration parameters based on the identification data, and stitching together the images captured by each camera based on the calibration parameters to obtain a panoramic image, the effect of the multimedia host being compatible with the camera can be verified, ensuring the reliability of camera compatibility.
[0095] Step 208: If the first comparison results are inconsistent, obtain the first supplier information for each camera.
[0096] In embodiments of the present invention, if the first comparison results are inconsistent, first supplier information for each camera can be obtained. This first supplier information can be the same supplier information found in the recognition data of each camera. Specifically, the recognition data contained in each camera can consist of various combinations of supplier information and sensor information; these combinations constitute a portion of the recognition data and can be used as recognition sub-data for fuzzy matching. Furthermore, if the first comparison results are inconsistent, a prompt message can be sent to allow the driver to address the malfunction promptly.
[0097] Step 209: If the first supplier information is obtained, the first sensor information is obtained.
[0098] In an embodiment of the present invention, after obtaining the first supplier information, the first sensor information can be obtained. The first sensor information may be the same sensor information found in the recognition data of each camera.
[0099] Step 210: If the first sensor information is obtained, obtain the third driving identifier based on the first supplier information and the first sensor information.
[0100] In embodiments of the present invention, after obtaining the first supplier information and the first sensor information, a third driving identifier can be obtained based on the first supplier information and the first sensor information. The first supplier information can be combined with the first sensor information as identification sub-data, thereby enabling the matching of the relevant third driving identifier.
[0101] Step 211: Obtain the third driver corresponding to the third driver identifier, and install the third driver to ensure compatibility with each camera.
[0102] In an embodiment of the present invention, a third driver software can be obtained from the driver package of the multimedia host according to the third driver identifier, and then the third driver software can be installed at a preset position where the camera of the multimedia host is installed.
[0103] It should be noted that, in this scenario, even if a third-drive system is matched, it often only performs a portion of the functions of the current panoramic camera. Therefore, for driving safety and convenience, this solution can be considered as an alternative, and when conditions permit, the panoramic camera with the same identification information can be replaced promptly.
[0104] In an embodiment of the present invention, when the first comparison results are inconsistent, first supplier information of each camera is obtained; when the first supplier information is obtained, first sensor information is obtained; when the first sensor information is obtained, a third driver identifier is obtained based on the first supplier information and the first sensor information; a third driver corresponding to the third driver identifier is obtained; and the third driver is installed, thereby making the cameras compatible. This allows for finding current compatible alternatives when the cameras do not meet the compatibility conditions, maximizing the functionality of each camera in incompatible situations, and improving the usability of the cameras in incompatible situations.
[0105] This invention provides another method for camera compatibility, comprising: after vehicle startup, acquiring recognition data from each camera; determining any recognition data as template recognition data from the recognition data of each camera; comparing other recognition data from each camera (excluding the template recognition data) with the template recognition data to obtain a first comparison result corresponding to each of the other recognition data; if the first comparison results are consistent, acquiring a first drive identifier matching the recognition data; acquiring a first drive corresponding to the first drive identifier based on the first drive identifier; installing the first drive to achieve compatibility with each camera; acquiring corresponding calibration parameters based on the identifier data; stitching together the images captured by each camera based on the calibration parameters to obtain a panoramic image; if the first comparison results are inconsistent, acquiring first supplier information for each camera; acquiring first sensor information if the first supplier information is acquired; acquiring a third drive identifier based on the first supplier information and the first sensor information if the first sensor information is acquired; acquiring a third drive corresponding to the third drive identifier and installing the third drive to achieve compatibility with each camera. By using the above methods, the compatibility conditions of the camera can be refined, unnecessary installation actions can be avoided, the computing resources of the multimedia host can be saved, the reliability of camera compatibility can be guaranteed, and some functions of the panoramic camera can be realized in emergency situations, thereby improving the availability of the camera and enabling the multimedia host to have a greater camera compatibility effect.
[0106] In an embodiment of the present invention, Figure 3 A logic block diagram of a camera-compatible device 300 is shown, which may include:
[0107] The first acquisition module 301 is used to acquire the recognition data of each camera;
[0108] The second acquisition module 302 is used to acquire a first driving identifier that matches the recognition data when the recognition data of each camera is consistent.
[0109] The first installation module 303 is used to call and configure the installation of the first driver corresponding to the first driver identifier based on the first driver identifier; the first driver is used to drive each camera.
[0110] Optionally, the device 300 further includes:
[0111] The first confirmation module is used to determine one set of recognition data as template recognition data from the recognition data of each camera.
[0112] The comparison module is used to compare the recognition data of each camera with the template recognition data to obtain a first comparison result;
[0113] The second confirmation module is used to determine that the configuration data of each camera is consistent if the first comparison results are consistent.
[0114] Optionally, the first mounting module 303 includes:
[0115] The first acquisition submodule is used to acquire the identifier of the second driver that has been installed in the camera driver installation location;
[0116] The comparison submodule is used to compare the first driver identifier with the second driver identifier to obtain a second comparison result;
[0117] The installation submodule is used to install the first driver corresponding to the first driver identifier to the camera driver installation position when the second comparison result is different.
[0118] Optionally, the device 300 further includes:
[0119] The running module is used to run the second driver already installed in the camera driver installation location when the comparison results are the same, and drive the camera through the second driver.
[0120] Optionally, the device 300 further includes:
[0121] The third acquisition module is used to acquire the corresponding calibration parameters based on the identification data;
[0122] The calibration module is used to stitch together the images captured by each camera based on the calibration parameters to obtain a panoramic image.
[0123] Optionally, the third acquisition module includes:
[0124] The first sending submodule is used to send the identification data to the application layer;
[0125] The second acquisition submodule is used to acquire the invocation instruction from the application layer; the invocation instruction is sent by the application layer based on the identification data.
[0126] The second sending submodule is used to send the corresponding calibration parameters in the algorithm package based on the calling instruction.
[0127] Optionally, the device 300 further includes:
[0128] The third confirmation module is used to determine the third driving identifier corresponding to the configuration data of each camera when at least one of the configuration data is inconsistent with the template configuration data.
[0129] The second installation module is used to call and configure the installation of the third driver corresponding to the third driver identifier when the third driver identifiers of each camera are consistent.
[0130] This invention provides a camera compatibility device, comprising: a first acquisition module for acquiring recognition data from various cameras; a second acquisition module for acquiring a first driver identifier matching the recognition data when the recognition data from the various cameras are consistent; and a first installation module for calling and configuring the installation of a first driver corresponding to the first driver identifier based on the first driver identifier; the first driver is used to drive the various cameras. The device achieves the technical effect of a multimedia host being compatible with multiple panoramic cameras, solving the problems of poor substitutability and compatibility between multimedia hosts and panoramic cameras.
[0131] This invention also provides a vehicle including a camera-compatible device as described in the foregoing embodiments, for executing the camera-compatible method as described in the foregoing embodiments.
[0132] This invention also provides a readable storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform the aforementioned camera-compatible method.
[0133] This invention also provides an electronic device 500, see [link to previous document]. Figure 5 The electronic device 500 includes: a processor 501, a memory 502, and a computer program 5021 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the program, it implements the camera compatibility method of the foregoing embodiments.
[0134] This invention also provides a camera-compatible system 600, see [link to documentation]. Figure 6The camera-compatible system 600 includes: a multimedia host 601, a panoramic camera 604, a serializer 603, and a deserializer 602. The system-on-chip (SOC) 601 of the multimedia host 601 is connected to the deserializer 602, the image sensor of the panoramic camera 604 is connected to the serializer 603, and the serializer 603 is connected to the deserializer 602. The serializer 603 and deserializer 602 form a fixed, corresponding combination. Communication between the multimedia host 601 and the panoramic camera 604 is achieved through the combination of the serializer 603 and the deserializer 602. After acquiring image information, the sensor of the panoramic camera 604 converts the image signal into an electrical signal and sends it to the serializer 603. The serializer 603 encodes the electrical signal and then transmits it to the deserializer 602. The deserializer 602 then decodes the encoded electrical signal and transmits the decoded electrical signal to the system-on-chip 6011 of the multimedia host 601. The flash memory of the panoramic camera 604 is connected to the sensor. When the system-on-a-chip 6011 of the multimedia host 601 needs to access the flash memory of the panoramic camera 604, the sensor can send the content to be accessed in the flash memory to the serializer 603, and then send it to the system-on-a-chip 6011 through a combination of the serializer 603 and the deserializer 602. Through the above system, the camera compatibility method of the aforementioned embodiment can be realized.
[0135] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. The structure required to construct such a system is readily apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the invention.
[0136] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0137] Similarly, it should be understood that, in order to simplify the invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.
[0138] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0139] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the sorting device according to the present invention. The present invention can also be implemented as a device or apparatus program for performing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0140] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
[0141] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0142] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0143] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
[0144] It should be noted that the various data-related processes in the embodiments of the present invention are carried out in compliance with the relevant data protection laws and policies of the country where the location is located, and with the authorization granted by the owner of the corresponding device.
[0145] The above embodiments are merely preferred embodiments provided to fully illustrate the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention.
Claims
1. A camera compatibility method, characterized in that, The method includes: Acquire the recognition data of each camera; the recognition data includes the supplier information of each camera and the sensor information inside each camera; If the recognition data from each of the cameras are consistent, a first driving identifier that matches the recognition data is obtained; Based on the first driver identifier, a first driver corresponding to the first driver identifier is obtained; the first driver is used to drive each of the cameras. Install the first driver to ensure compatibility with each of the cameras; The method further includes: From the recognition data of each camera, any one recognition data is determined as template recognition data; the other recognition data in the recognition data of each camera, excluding the template recognition data, are compared with the template recognition data to obtain the first comparison result corresponding to each of the other recognition data. If the first comparison results are all consistent, it is determined that the recognition data of each camera is consistent. If the first comparison results are inconsistent, the first supplier information of each camera is obtained; the first supplier information is the same supplier information in the recognition data of each camera. If the first supplier information is obtained, the first sensor information is obtained; the first sensor information is the same sensor information in the recognition data of each camera. If the first sensor information is obtained, a third driving identifier is obtained based on the first supplier information and the first sensor information; Obtain the third driver corresponding to the third driver identifier, and install the third driver to ensure compatibility with each camera.
2. The method according to claim 1, characterized in that, The installation of the first driver includes: Obtain the second driver identifier of the second driver already installed in the camera driver installation location; The first driver identifier is compared with the second driver identifier to obtain a second comparison result; If the second comparison result is different, the first driver corresponding to the first driver identifier is installed at the camera driver installation position.
3. The method according to claim 2, characterized in that, The method further includes: If the second comparison result is the same, the second driver already installed in the camera driver installation location is run, and the camera is driven by the second driver.
4. The method according to claim 1 or 3, characterized in that, The method further includes: Based on the identification data, obtain the corresponding calibration parameters; The images captured by each camera are stitched together based on the calibration parameters to obtain a panoramic image.
5. The method according to claim 4, characterized in that, The step of obtaining the corresponding calibration parameters based on the identification data includes: The identification data is sent to the application layer so that the application layer can generate and send a calling instruction based on the identification data; In response to the call command, the corresponding calibration parameters in the algorithm package are obtained; wherein the algorithm package includes calibration parameters corresponding to several types of cameras.
6. A camera-compatible device, characterized in that, The device includes: The first acquisition module is used to acquire the recognition data of each camera; the recognition data includes the supplier information of each camera and the sensor information inside each camera. The second acquisition module is used to acquire a first driving identifier that matches the recognition data when the recognition data of each camera is consistent. An installation module is used to obtain a first driver corresponding to the first driver identifier based on the first driver identifier; the first driver is used to drive each camera; the first driver is installed to ensure compatibility with each camera; The device further includes: The first confirmation module is used to determine any one of the recognition data from the recognition data of each camera as template recognition data; The comparison module is used to compare the recognition data of each camera, excluding the template recognition data, with the template recognition data to obtain a first comparison result. The second confirmation module is used to determine that the recognition data of each camera is consistent if the first comparison results are consistent. The third confirmation module is used to obtain first supplier information for each camera when the first comparison result is inconsistent; the first supplier information is the same supplier information in the recognition data of each camera; when the first supplier information is obtained, first sensor information is obtained; the first sensor information is the same sensor information in the recognition data of each camera; when the first sensor information is obtained, a third driving identifier is obtained based on the first supplier information and the first sensor information. The second installation module is used to obtain the third driver corresponding to the third driver identifier and install the third driver to ensure compatibility with each camera.
7. A vehicle, characterized in that, Includes the apparatus as described in claim 6, for performing the camera-compatible method as described in any one of claims 1-5.
8. A readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device performs the camera-compatible method as described in any one of claims 1-5.