Adaptive method and system of image sensor

By obtaining and matching the manufacturer and equipment identification codes of the image sensor, and using the preset configuration list to confirm and load the adapted image sensor, the complexity of sensor adaptation of different manufacturers is solved, self-identification and self-loading are realized, and maintenance costs are reduced.

CN120475252APending Publication Date: 2025-08-12SHENZHEN ADDX INNOVATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510638408.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

In the prior art, due to the differences in image sensor hardware parameters and drivers of different manufacturers, the number of firmware increases, which occupies storage resources and increases maintenance complexity, and it is difficult to recognize and adapt image sensors.

Method used

By selecting the firmware that is adapted to the target image sensor, traversing the configuration list, obtaining the manufacturer and device identification code, using the preset configuration list to match, confirm and load the corresponding image sensor.

Benefits of technology

The same firmware supports self-identification and self-loading of multiple different image sensors, reducing maintenance and upgrade costs and simplifying the equipment adaptation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120475252A_ABST
    Figure CN120475252A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a self-adaption method and system of an image sensor, and the method comprises the steps: selecting firmware for adapting to a target image sensor, and traversing a configuration list of each image sensor, so as to obtain a manufacturer identification code and an equipment identification code of each image sensor, comparing the firmware with a manufacturer identification code and an equipment identification code in a preset configuration list to judge whether the firmware is matched with the manufacturer identification code and the equipment identification code, and if so, acquiring a manufacturer identification code register address and an equipment identification code register address in the preset configuration list according to the manufacturer identification code and the equipment identification code to confirm an image sensor matched with the firmware; and the adaptive image sensor is loaded. According to the image sensor self-adaption method provided by the embodiment of the invention, the manufacturer identification code and the equipment identification code are obtained for adaption, and the same firmware is adopted to support a plurality of different image sensors, so that self-recognition and self-loading of the image sensors are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent cameras, and in particular to an adaptive method and system for an image sensor. Background Art

[0002] In modern network cameras, image sensors, as the core device for image acquisition, are essential components for their proper operation. Due to varying product positioning and diverse requirements, network cameras often require the use of image sensors from different manufacturers in actual production.

[0003] These image sensors from different manufacturers not only differ in hardware parameters like resolution, but also in their driver programs. If dedicated firmware is developed for each image sensor, the number of firmware copies will increase significantly as the variety of image sensors used in network cameras increases. Excessive firmware not only consumes significant storage resources but also complicates and cumbersome device upgrades and maintenance, increasing upgrade and maintenance costs and reducing efficiency. This severely restricts the technological development and optimization of network camera image acquisition capabilities.

[0004] Furthermore, current image sensors typically connect to network camera devices using I2C or SPI interfaces. Furthermore, the image sensor's manufacturer and device identification codes are typically stored in specific register addresses within the sensor, but these addresses vary depending on the sensor model and manufacturer. Although sensor datasheets or specifications detail these register addresses and their functions, in practice, the diversity of register addresses still makes it difficult for devices to identify and adapt to different image sensors, further complicating network camera adaptation. Summary of the Invention

[0005] The embodiments of the present application provide an image sensor adaptation method and system, which can effectively solve the complexity problem of adapting different image sensors caused by the need to develop dedicated firmware when using image sensors from different manufacturers in the prior art.

[0006] In one aspect, the present application provides an image sensor self-adaptation method, which is applied to a network camera. The method includes:

[0007] Selecting firmware for adapting a target image sensor, wherein the target image sensor matching the firmware is configured with a preset configuration list, wherein the preset configuration list includes at least one of a manufacturer identification code register address, a device identification code register address, a manufacturer identification code, and a device identification code;

[0008] Traversing the stored configuration list of each image sensor, and obtaining the manufacturer identification code and the device identification code in the configuration list;

[0009] Comparing the obtained manufacturer identification code and device identification code with the manufacturer identification code and device identification code in the preset configuration list;

[0010] If the obtained manufacturer identification code and device identification code match those in the preset configuration list, the matching image sensor is confirmed according to the manufacturer identification code register address and the device identification code register address in the preset configuration list, and the image sensor adapted to the firmware is loaded.

[0011] In some embodiments provided in the present application, if the obtained manufacturer identification code and the obtained device identification code do not match those in the preset configuration list, the step of traversing the stored configuration list of each graphics sensor to obtain the manufacturer identification code and the obtained device identification code in the configuration list is performed.

[0012] In some embodiments provided herein, the step of traversing the list includes:

[0013] Constructing an information list containing parameters and configuration information of each of the image sensors, wherein each information element in the information list represents a configuration of the image sensor;

[0014] Initialize traversal variables, where the traversal variables are the manufacturer identification code and the device identification code;

[0015] According to the traversal variable, obtain a configuration list of the current image sensor from the information list;

[0016] Obtain the manufacturer identification code and the device identification code from the current information list;

[0017] The obtained manufacturer identification code and device identification code are compared with the actual identification code of the currently connected image sensor to determine whether they match.

[0018] In some embodiments provided herein, the step of obtaining the manufacturer identification code and the device identification code in the configuration list includes:

[0019] Obtain a list of register addresses, where the list of register addresses is obtained from a data sheet or specification sheet of each image sensor, where the register addresses at least include the manufacturer identification code register address and the device identification code register address;

[0020] Select a communication interface, and select a communication interface that matches the target image sensor;

[0021] Obtain the corresponding register address according to the protocol.

[0022] In some embodiments provided herein, the step of obtaining the corresponding register address according to the protocol includes:

[0023] The corresponding register address is obtained using a list protocol, or the corresponding register address is obtained based on the I2C protocol and / or the SPI protocol, the corresponding manufacturer identification code is obtained in the manufacturer identification code register address, and the corresponding device identification code is obtained in the device identification code register address.

[0024] In some embodiments provided herein, the step of selecting firmware for adapting a target image sensor includes:

[0025] Collecting information about each image sensor, including: the name, type, protocol, driver address and image address of the image sensor, hardware parameters, function parameters and performance parameters of the image sensor;

[0026] Build a fixed library and annotate firmware information, including applicable image sensor models, supported hardware parameter ranges, firmware version numbers, release dates, and functional features;

[0027] Matching the image sensor information with the firmware library, selecting the firmware with matching functions according to the functional requirements of the application scenario, evaluating and verifying the function and stability of the selected firmware, and determining the firmware.

[0028] According to a second aspect of the present application, an adaptive system for an image sensor is provided, which is applied to a network camera. The system includes:

[0029] a configuration firmware module, configured to select firmware adapted for a target sensor, the configuration firmware module including a preset configuration list module, the preset configuration list module including a preset configuration list of the image sensor that matches the firmware, the preset configuration list including at least one of a manufacturer identification code register address, a device identification code register address, a manufacturer identification code, and a device identification code;

[0030] A traversal list module, configured to traverse the stored configuration list module of each image sensor, and obtain the manufacturer identification code and the device identification code in the configuration list module by using the traversal list module;

[0031] a comparison module, configured to compare the manufacturer identification code and the device identification code obtained in the traversal list module with the manufacturer identification code and the device identification code in the preset configuration list;

[0032] A firmware loading module, if the obtained manufacturer identification code and the device identification code match those in the preset configuration list, the firmware loading module confirms the matching image sensor according to the manufacturer identification code register address and the device identification code register address in the preset configuration list, and loads the image sensor adapted to the firmware.

[0033] In some embodiments provided herein, the traversal list module includes:

[0034] a list determination module, configured to obtain a list of the register addresses, wherein the list determination module obtains the list of each register address and its function from a data sheet or specification sheet of each image sensor, wherein the register address includes at least the manufacturer identification code register address and the device identification code register address;

[0035] A communication interface selection module, configured to select a communication interface that matches the target image sensor;

[0036] The address acquisition module is used to acquire the corresponding register address according to the protocol.

[0037] In some embodiments provided in this application, the address acquisition module includes:

[0038] A list protocol acquisition module, configured to acquire the corresponding register address using the list protocol; or

[0039] A communication protocol acquisition module, configured to acquire the corresponding register address based on the I2C protocol and / or the SPI protocol;

[0040] The list protocol acquisition module or the communication protocol acquisition module can acquire the corresponding manufacturer identification code from the manufacturer identification code register address and can acquire the corresponding device identification code from the device identification code register address.

[0041] In a third aspect, the present application provides a smart camera, characterized by comprising:

[0042] Image sensor;

[0043] at least one memory for storing a program;

[0044] at least one processor, configured to execute the computer program stored in the memory;

[0045] The processor executes the above-mentioned image sensor self-adaptation method when calling the computer program in the memory.

[0046] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The computer program is loaded by a processor to execute the above-mentioned adaptive method of the image sensor.

[0047] The adaptive method for image sensors provided in the embodiment of the present application selects the firmware for adapting the target image sensor and traverses the configuration list of each image sensor to obtain the manufacturer identification code and the device identification code of each image sensor, and compares the obtained manufacturer identification code and the device identification code with the manufacturer identification code and the device identification code in the preset configuration list to determine whether the obtained manufacturer identification code and the device identification code match the preset configuration list of the target image sensor. If they match, the manufacturer identification code register address and the device identification code register address in the preset configuration list are obtained based on the manufacturer identification code and the device identification code to confirm the image sensor that matches the firmware, and load the adapted image sensor. The adaptive method for image sensors provided in the embodiment of the present application adapts by obtaining the manufacturer identification code and the device identification code, uses the same firmware to support multiple different image sensors, realizes self-identification and self-loading of image sensors, greatly reduces maintenance and upgrade costs, and makes it more convenient to specify product specifications and policies. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 is a schematic diagram of the structure of the terminal provided in an embodiment of the present application;

[0050] Figure 2 is a flowchart of an adaptive method for an image sensor provided by an embodiment of the present application;

[0051] Figure 3 This is a flowchart of an adaptive method for an image sensor provided by another embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0053] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0054] Please refer to Figure 2 In one aspect, the present application provides an adaptive method for an image sensor, which is applied to a network camera. The adaptive method includes:

[0055] Selecting firmware for adapting a target image sensor, wherein the target image sensor matching the firmware is configured with a preset configuration list, wherein the preset configuration list includes at least one of a manufacturer identification code register address, a device identification code register address, a manufacturer identification code, and a device identification code;

[0056] Traversing the stored configuration list of each image sensor, and obtaining the manufacturer identification code and the device identification code in the configuration list;

[0057] Comparing the obtained manufacturer identification code and device identification code with the manufacturer identification code and device identification code in the preset configuration list;

[0058] If the obtained manufacturer identification code and device identification code match those in the preset configuration list, the matching image sensor is confirmed according to the manufacturer identification code register address and the device identification code register address in the preset configuration list, and the image sensor adapted to the firmware is loaded.

[0059] The adaptive method for an image sensor provided in an embodiment of the present application selects firmware for adapting a target image sensor, and traverses a stored configuration list of each image sensor to obtain the manufacturer identification code and the device identification code of each image sensor. The obtained manufacturer identification code and the device identification code are compared with the manufacturer identification code and the device identification code in a preset configuration list to determine whether the obtained manufacturer identification code and the device identification code match those in the preset configuration list of the target image sensor. If they match, the manufacturer identification code register address and the device identification code register address in the preset configuration list are obtained based on the manufacturer identification code and the device identification code to confirm the image sensor that matches the firmware, and the adapted image sensor is loaded.

[0060] The adaptive method for image sensors provided in the embodiments of the present application adapts by obtaining the manufacturer identification code and the device identification code, uses the same firmware to support multiple different image sensors, realizes self-identification and self-loading of image sensors, greatly reduces maintenance and upgrade costs, and makes it more convenient to specify product specifications and policies.

[0061] In this embodiment, if the acquired vendor identification code and device identification code do not match those in the preset configuration list, the method executes the step of traversing the stored configuration list for each image sensor to retrieve the vendor identification code and device identification code in the configuration list. If the acquired vendor identification code and device identification code do not match those in the preset configuration list, the method returns to the traversal step until a matching list is found, and then loads the matching list. This greatly simplifies the running program and enables a single firmware to support multiple different image sensors, significantly reducing maintenance and upgrade costs.

[0062] In this embodiment, the configuration list of the image sensor is initialized as follows:

[0063] / / Initialize the list of different image sensors

[0064] ImageSensor sensor_list[] = {

[0065] {

[0066] "SonyIMX219",

[0067] "CMOS",

[0068] "I2C",

[0069] 0x0000,

[0070] 0x0001,

[0071] 0x13,

[0072] 0x0219,

[0073] "config / IMX219 / sensor.ko",

[0074] "config / IMX219 / sensor_param.conf"

[0075] },

[0076] {

[0077] "OmniVision OV5647",

[0078] "CMOS",

[0079] "I2C",

[0080] 0x300A,

[0081] 0x300B,

[0082] 0x56,

[0083] 0x5647,

[0084] "config / OV5647 / sensor.ko",

[0085] "config / OV5647 / sensor_param.conf"

[0086] },

[0087] {

[0088] "ON Semi MT9M001",

[0089] "CMOS",

[0090] "I2C",

[0091] 0x0000,

[0092] 0x0001,

[0093] 0x20,

[0094] 0x1519,

[0095] "config / MT9M001 / sensor.ko",

[0096] "config / MT9M001 / sensor_param.conf"

[0097] }

[0098] };

[0099] In some embodiments provided herein, the step of traversing the list includes:

[0100] Constructing an information list containing parameters and configuration information of each image sensor, wherein each information element in the information list represents the configuration of one image sensor; the list includes at least the manufacturer identification code and the device identification code;

[0101] Initialize traversal variables, where the traversal variables are the manufacturer identification code and the device identification code;

[0102] According to the traversal variable, obtain a configuration list of the current image sensor from the configuration information list;

[0103] The manufacturer identification code and the device identification code are obtained from the current information list; specifically, according to the traversal variable, the configuration list of the current image sensor is obtained from the configuration information list, and the manufacturer identification code and the device identification code are obtained from the configuration of the current image sensor.

[0104] Compare the acquired vendor and device identification codes with the actual identification code of the currently connected image sensor to determine if they match. If a match is found, perform the corresponding operations, such as loading the corresponding driver and setting sensor parameters.

[0105] By looping through the list, the image sensor can be automatically identified and configured and initialized accordingly until the conditions are met. For example, if all elements in the configuration list have been visited, the traversal will naturally end. If a matching configuration item is found and the corresponding operation is completed, the loop can be terminated early to improve program efficiency.

[0106] Please refer to Figure 2 and Figure 3 In some embodiments provided herein, the step of obtaining the manufacturer identification code and the device identification code in the configuration list includes:

[0107] Obtaining a list of the register addresses, where the list of each register address is obtained from a data sheet or specification sheet of each image sensor, wherein the register addresses at least include the manufacturer identification code register address and the device identification code register address;

[0108] Select a communication interface, and select a communication interface that matches the target image sensor;

[0109] Obtain the corresponding register address according to the protocol.

[0110] Please refer to Figure 2 and Figure 3 In some embodiments provided herein, the step of obtaining the corresponding register address according to the protocol includes:

[0111] The corresponding register address is obtained using a list protocol, or the corresponding register address is obtained based on the I2C protocol and / or the SPI protocol, the corresponding manufacturer identification code is obtained in the manufacturer identification code register address, and the corresponding device identification code is obtained in the device identification code register address.

[0112] In the step of obtaining the corresponding register address according to the protocol provided in the embodiment of the present application, the corresponding register address can be obtained using the list protocol, specifically including:

[0113] Determine a corresponding register address list, for example, each image sensor has a register for obtaining the manufacturer identification code and the device identification code, and each register has a corresponding address, for example, the manufacturer identification code register address and the device identification code register address;

[0114] Select a communication interface, and select a suitable communication interface according to the hardware design of the image sensor. Different interfaces have different communication protocols.

[0115] Write acquisition code according to the protocol specifications. For example, when acquiring a register address based on the I2C protocol, first send the corresponding register address and then acquire the data at that address. The acquired data needs to be further converted and processed. When acquiring a register address based on the SPI protocol, you need to set parameters such as clock polarity and phase, construct an acquisition instruction, and receive data.

[0116] In some embodiments provided herein, the step of selecting firmware for adapting a target image sensor includes:

[0117] Collecting information about each image sensor, including: the name, type, protocol, driver address and image address of the image sensor, hardware parameters, function parameters and performance parameters of the image sensor;

[0118] Build a fixed library and annotate firmware information, including applicable image sensor models, supported hardware parameter ranges, firmware version numbers, release dates, and functional features;

[0119] Matching the image sensor information with the firmware library, selecting the firmware with matching functions according to the functional requirements of the application scenario, evaluating and verifying the function and stability of the selected firmware, and determining the firmware.

[0120] In this embodiment, the collected information of each image sensor is initialized into a preset configuration list of the image sensor, such that the preset configuration list of the image sensor also includes the name, type, protocol, driver address and image address of the image sensor, hardware parameters, functional parameters and performance parameters of the image sensor. The hardware parameters of the image sensor include parameters such as resolution, frame rate, pixel format, color depth, etc. These parameters determine the basic performance and data output format of the image sensor; the functional parameters and new features of the image sensor include parameters such as whether to support autofocus, auto exposure, wide dynamic range, etc. These parameters affect the functions of the required firmware.

[0121] In this embodiment, the step of matching the image sensor with the firmware further includes:

[0122] Perform a preliminary screening in the firmware library based on the manufacturer identification code and device identification code of the image sensor to find a firmware list that matches the current image sensor;

[0123] Checking whether the hardware parameter range of the image sensor supported by the firmware matches the actual hardware parameters of the current image sensor, for example, whether the parameters such as the resolution and frame rate supported by the firmware are consistent with or compatible with the actual parameters of the image sensor;

[0124] Select firmware with corresponding functions based on the functional requirements of the actual application scenario. For example, if the application requires the image sensor to support autofocus, select firmware that includes this function.

[0125] To ensure that the image sensor can adaptively select the appropriate firmware and maintain operational stability and efficiency, further firmware evaluation and verification are required to determine the final firmware. During this process, firmware stability and feature updates are typically assessed, and the firmware is tested and verified through simulations or real-world scenarios.

[0126] Based on the same inventive concept, embodiments of the present application also provide an adaptive system for an image sensor, and an adaptive system for implementing the aforementioned adaptive method. The implementation solution provided by this system is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of the embodiments of the adaptive system for an image sensor provided below can be found in the above-mentioned limitations on the adaptive method, and the specific limitations will not be repeated here.

[0127] According to a second aspect of the present application, an adaptive system for an image sensor is provided, which is applied to a network camera. The adaptive system includes:

[0128] a configuration firmware module, configured to select firmware adapted for a target sensor, the configuration firmware module including a preset configuration list module, the preset configuration list module including a preset configuration list of the image sensor that matches the firmware, the preset configuration list including at least one of a manufacturer identification code register address, a device identification code register address, a manufacturer identification code, and a device identification code;

[0129] A traversal list module, configured to traverse the stored configuration list module of each image sensor, and obtain the manufacturer identification code and the device identification code in the configuration list module by using the traversal list module;

[0130] a comparison module, configured to compare the manufacturer identification code and the device identification code obtained in the traversal list module with the manufacturer identification code and the device identification code in the preset configuration list;

[0131] A firmware loading module, if the obtained manufacturer identification code and the device identification code match those in the preset configuration list, the firmware loading module confirms the matching image sensor according to the manufacturer identification code register address and the device identification code register address in the preset configuration list, and loads the image sensor adapted to the firmware.

[0132] In some embodiments provided in the present application, the system further includes a firmware matching module, configured to determine whether the manufacturer identification code and the device identification code in the comparison module match a preset configuration list.

[0133] In some embodiments provided herein, the traversal list module includes:

[0134] a list determination module, configured to obtain a list of the register addresses, wherein the list determination module obtains the list of each register address and its function from a data sheet or specification sheet of each image sensor, wherein the register address includes at least the manufacturer identification code register address and the device identification code register address;

[0135] A communication interface selection module, configured to select a communication interface that matches the target image sensor;

[0136] The address acquisition module is used to acquire the corresponding register address according to the protocol.

[0137] In some embodiments provided in this application, the address acquisition module includes:

[0138] A list protocol acquisition module, configured to acquire the corresponding register address using the list protocol; or

[0139] A communication protocol acquisition module, configured to acquire the corresponding register address based on the I2C protocol and / or the SPI protocol;

[0140] The list protocol acquisition module or the communication protocol acquisition module can acquire the corresponding manufacturer identification code from the manufacturer identification code register address and can acquire the corresponding device identification code from the device identification code register address.

[0141] In a third aspect, the present application provides a smart camera, characterized by comprising:

[0142] Image sensor;

[0143] at least one memory for storing a program;

[0144] at least one processor, configured to execute the computer program stored in the memory;

[0145] The processor executes the above-mentioned image sensor self-adaptation method when calling the computer program in the memory.

[0146] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The computer program is loaded by a processor to execute the above-mentioned adaptive method of the image sensor.

[0147] Please refer to Figure 1 , the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the server, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.

[0148] The processor is the server's control center, connecting all parts of the server using various interfaces and circuits. By running or executing software programs and / or modules stored in memory and accessing data stored in memory, it performs various server functions and processes data, thereby providing overall server monitoring. Optionally, the processor may include one or more processing cores; alternatively, the processor may integrate an application processor and a modem processor, with the application processor primarily handling the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor.

[0149] In the above-described embodiments of the image sensor adaptive method, computer-readable storage medium, and smart camera, the descriptions of each embodiment have different focuses. For portions not described in detail in one embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for ease and brevity of description, the specific operating processes and beneficial effects of the computer-readable storage medium, smart camera, and their corresponding units described above can be referred to in the description of the image sensor adaptive method in the above embodiments, and the details will not be repeated here.

[0150] The above is a detailed introduction to the adaptive method of an image sensor and its system, camera device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An adaptive method for an image sensor, applied to a network camera, characterized in that: The method comprises: Selecting firmware for adapting a target image sensor, wherein the target image sensor matching the firmware is configured with a preset configuration list, wherein the preset configuration list includes at least one of a manufacturer identification code register address, a device identification code register address, a manufacturer identification code, and a device identification code; Traversing the stored configuration list of each image sensor, and obtaining the manufacturer identification code and the device identification code in the configuration list; Comparing the obtained manufacturer identification code and device identification code with the manufacturer identification code and device identification code in the preset configuration list; If the obtained manufacturer identification code and device identification code match those in the preset configuration list, the matching image sensor is confirmed according to the manufacturer identification code register address and the device identification code register address in the preset configuration list, and the image sensor adapted to the firmware is loaded.

2. The image sensor self-adaptation method according to claim 1, characterized in that: If the acquired manufacturer identification code and the acquired device identification code do not match those in the preset configuration list, the step of traversing the stored configuration list of each image sensor to acquire the manufacturer identification code and the acquired device identification code in the configuration list is performed.

3. The adaptive method of the image sensor according to claim 1, characterized in that: The steps to traverse the list include: Constructing an information list containing parameters and configuration information of each of the image sensors, wherein each information element in the information list represents a configuration of the image sensor; Initialize traversal variables, where the traversal variables are the manufacturer identification code and the device identification code; According to the traversal variable, obtain a configuration list of the current image sensor from the information list; Obtain the manufacturer identification code and the device identification code from the current information list; The obtained manufacturer identification code and device identification code are compared with the actual identification code of the currently connected image sensor to determine whether they match.

4. The adaptive method of the image sensor according to claim 1, characterized in that: The step of obtaining the manufacturer identification code and the device identification code in the configuration list includes: Obtain a list of register addresses, where the list of register addresses is obtained from a data sheet or specification sheet of each image sensor, where the register addresses at least include the manufacturer identification code register address and the device identification code register address; Select a communication interface, and select a communication interface that matches the target image sensor; Obtain the corresponding register address according to the protocol.

5. The adaptive method of the image sensor according to claim 4, characterized in that: The step of obtaining the corresponding register address according to the protocol includes: The corresponding register address is obtained using a list protocol, or the corresponding register address is obtained based on the I2C protocol and / or the SPI protocol, the corresponding manufacturer identification code is obtained in the manufacturer identification code register address, and the corresponding device identification code is obtained in the device identification code register address.

6. The image sensor self-adaptation method according to any one of claims 1 to 5, characterized in that: The step of selecting firmware for adapting the target image sensor includes: Collecting information about each image sensor, including: the name, type, protocol, driver address and image address of the image sensor, hardware parameters, function parameters and performance parameters of the image sensor; Build a fixed library and annotate firmware information, including applicable image sensor models, supported hardware parameter ranges, firmware version numbers, release dates, and functional features; Matching the image sensor information with the firmware library, selecting the firmware with matching functions according to the functional requirements of the application scenario, evaluating and verifying the function and stability of the selected firmware, and determining the firmware.

7. An adaptive system for an image sensor, used in a network camera, characterized in that: The system includes: a configuration firmware module, configured to select firmware adapted for a target sensor, the configuration firmware module including a preset configuration list module, the preset configuration list module including a preset configuration list of the image sensor that matches the firmware, the preset configuration list including at least one of a manufacturer identification code register address, a device identification code register address, a manufacturer identification code, and a device identification code; A traversal list module, configured to traverse the stored configuration list module of each image sensor, and obtain the manufacturer identification code and the device identification code in the configuration list module by using the traversal list module; a comparison module, configured to compare the manufacturer identification code and the device identification code obtained in the traversal list module with the manufacturer identification code and the device identification code in the preset configuration list; A firmware loading module, if the obtained manufacturer identification code and the device identification code match those in the preset configuration list, the firmware loading module confirms the matching image sensor according to the manufacturer identification code register address and the device identification code register address in the preset configuration list, and loads the image sensor adapted to the firmware.

8. The adaptive system of the image sensor according to claim 7, characterized in that: The traversal list module includes: a list determination module, configured to obtain a list of the register addresses, wherein the list determination module obtains the list of each register address and its function from a data sheet or specification sheet of each image sensor, wherein the register address includes at least the manufacturer identification code register address and the device identification code register address; A communication interface selection module, configured to select a communication interface that matches the target image sensor; The address acquisition module is used to acquire the corresponding register address according to the protocol.

9. The adaptive system of the image sensor according to claim 8, characterized in that: The address acquisition module includes: A list protocol acquisition module, configured to acquire the corresponding register address using the list protocol; or A communication protocol acquisition module, configured to acquire the corresponding register address based on the I2C protocol and / or the SPI protocol; The list protocol acquisition module or the communication protocol acquisition module can acquire the corresponding manufacturer identification code from the manufacturer identification code register address and can acquire the corresponding device identification code from the device identification code register address.

10. A smart camera, characterized in that: include: Image sensor; at least one memory for storing a program; at least one processor, configured to execute the computer program stored in the memory; When the processor calls the computer program in the memory, the adaptive method for the image sensor according to any one of claims 1 to 6 is executed.

11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the adaptive method of the image sensor according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for automatically identifying image sensor model number by mobile phone

    CN101409741A

  • Starting method of camera with firmware compatible with multiple sensors

    CN115858035A

  • Sensor drive loading method, device, equipment, medium and program product

    CN118900361A

  • Platform, image processing system and image processing system operation method for changing settings of image sensor

    US20240292084A1