Sensor information loading method and device, electronic equipment and computer readable medium
By acquiring and loading image sensor information sets, the complexity and upgrade difficulties caused by multiple firmware in IPC devices are solved, and efficient binding, upgrade and maintenance of image sensors and firmware are achieved.
Patent Information
- Application Number
- CN202510655638.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-20
AI Technical Summary
In IPC devices, different product definitions have different requirements, resulting in the need for multiple firmware to meet the needs of image sensors, which increases the complexity of the device and the difficulty of firmware upgrades and maintenance.
By acquiring the image sensor information set corresponding to the target firmware, reading the sensor feature information from the register address using the communication protocol interface, and loading the sensor information and driving parameters into the target firmware after matching, the binding of the image sensor and the firmware is achieved.
It simplifies the scheduling process of image sensors, improves image acquisition efficiency, and facilitates firmware upgrades and maintenance, reducing the complexity and difficulty of upgrading caused by multiple firmware versions.
Smart Images

Figure CN123145472A_ABST
Abstract
Description
Technical Field
[0001] The embodiments disclosed herein relate to the field of computer technology, and more specifically to sensor information loading methods, apparatus, electronic devices, and computer-readable media. Background Technology
[0002] Currently, image sensors are one of the essential key components of IPC (IP CAMERA, network camera) devices, often used for image acquisition. The common method for retrieving the required image sensor is through the firmware corresponding to each sensor (i.e., each firmware has a uniquely compatible image sensor).
[0003] However, the inventors discovered that the following technical problems often arise when using the above method:
[0004] In scenarios where IPC devices require different image sensors based on different product definitions, numerous firmware files are needed to meet these requirements. A large number of firmware files often increases the complexity of the IPC device, complicates image sensor scheduling, and makes upgrades and maintenance difficult.
[0005] The information disclosed in this background section is only intended to enhance the understanding of the background of the inventive concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0007] Some embodiments of this disclosure provide sensor information loading methods, apparatuses, electronic devices, and computer-readable media to address one or more of the technical problems mentioned in the background section above.
[0008] In a first aspect, some embodiments of this disclosure provide a sensor information loading method, including: obtaining a set of image sensor information to be loaded corresponding to a target firmware; for each image sensor information in the image sensor information set, performing the following loading steps: using the communication protocol interface included in the image sensor information to read feature information under the target sensor feature from a target register address, wherein the target register address is the register address in the image sensor corresponding to the image sensor information; in response to the feature information matching the sensor feature information supported by the target firmware, loading the image sensor information and the corresponding sensor driving parameters into the target firmware.
[0009] Optionally, after loading the image sensor information and corresponding sensor driving parameters into the target firmware in response to the feature information matching the sensor feature information supported by the target firmware, the method further includes: generating information indicating that driving parameters are not loaded for the image sensor in response to the feature information not matching the sensor feature information.
[0010] Optionally, the aforementioned feature information includes: device information and origin information; and the aforementioned loading of the image sensor information and corresponding sensor driving parameters into the target firmware in response to the aforementioned feature information matching the sensor feature information supported by the target firmware includes: loading the aforementioned image sensor information and corresponding sensor driving parameters into the target firmware in response to the aforementioned device information matching the sensor device information and the aforementioned origin information matching the sensor origin information, wherein the aforementioned sensor feature information includes: the aforementioned sensor device information and the aforementioned sensor origin information.
[0011] Optionally, the above method further includes: in response to receiving a shooting requirement for a target shooting scene, determining the sensor driving parameters corresponding to the shooting requirement as target sensor driving parameters; in response to the existence of first image sensor information loaded in the target firmware that matches the target sensor driving parameters, controlling the image sensor corresponding to the first image sensor information to perform shooting processing for the target shooting scene.
[0012] Optionally, the method further includes: in response to the absence of the first image sensor information, determining whether there is second image sensor information loaded in the newly added target firmware that matches the target sensor driving parameters, wherein the image sensor information loaded in the newly added firmware is determined based on the newly added image sensor information set by performing the loading step, and the image sensors loaded in the target firmware and the newly added firmware are different; in response to determining that there is, controlling the image sensor corresponding to the second image sensor information to perform the shooting processing in the target shooting scene.
[0013] Optionally, determining the sensor driving parameters corresponding to the above shooting requirements as target sensor driving parameters includes: determining at least one shooting indicator information corresponding to the above shooting requirements; generating generation prompt information to represent the generation of sensor driving parameters based on the at least one shooting indicator information; inputting the generation prompt information into a model plugin based on a large language model to generate at least one sensor driving parameter; and obtaining the sensor driving parameter selected on the shooting page from the at least one sensor driving parameters as the target sensor driving parameter.
[0014] Optionally, the above method further includes: in response to determining that the target firmware has completed a firmware upgrade, obtaining the image sensor information set corresponding to the upgraded firmware as an image sensor update information set; filtering out unloaded image sensor information sets from the image sensor information set as unloaded image sensor information sets; removing any image sensor information from the loaded image sensor information set from the image sensor update information set to obtain a deloaded image sensor information set; fusing the unloaded image sensor information set and the deloaded image sensor information set to obtain a fused image sensor information set; and performing the above loading step according to the fused image sensor information set to realize the loading of image sensor information of the upgraded firmware.
[0015] Secondly, some embodiments of this disclosure provide a sensor information loading apparatus, including: an acquisition unit configured to acquire a set of image sensor information to be loaded corresponding to a target firmware; and an execution unit configured to perform the following loading steps for each image sensor information in the image sensor information set: using a communication protocol interface included in the image sensor information to read feature information under a target sensor feature from a target register address, wherein the target register address is a register address in the image sensor corresponding to the image sensor information; and in response to the feature information matching sensor feature information supported by the target firmware, loading the image sensor information and corresponding sensor driving parameters into the target firmware.
[0016] Optionally, the apparatus further includes: in response to a mismatch between the aforementioned feature information and the aforementioned sensor feature information, generating information indicating that driving parameters are not loaded for the aforementioned image sensor.
[0017] Optionally, the aforementioned feature information includes: device information and origin information; and the execution unit can be configured to: in response to the aforementioned device information matching the sensor device information and the aforementioned origin information matching the sensor origin information, load the aforementioned image sensor information and the corresponding sensor driving parameters into the aforementioned target firmware, wherein the aforementioned sensor feature information includes: the aforementioned sensor device information and the aforementioned sensor origin information.
[0018] Optionally, the device further includes: in response to receiving a shooting requirement for a target shooting scene, determining sensor driving parameters corresponding to the shooting requirement as target sensor driving parameters; in response to the existence of first image sensor information loaded in the target firmware that matches the target sensor driving parameters, controlling the image sensor corresponding to the first image sensor information to perform shooting processing for the target shooting scene.
[0019] Optionally, the device further includes: in response to the absence of the first image sensor information, determining whether there is second image sensor information loaded in the newly added target firmware that matches the target sensor driving parameters, wherein the image sensor information loaded in the newly added firmware is determined based on the newly added image sensor information set and the image sensors loaded in the target firmware are different from those loaded in the newly added firmware; in response to determining that there is, controlling the image sensor corresponding to the second image sensor information to perform the shooting processing in the target shooting scene.
[0020] Optionally, the device further includes: determining at least one shooting indicator information corresponding to the above shooting requirements; generating generation prompt information representing the generation of sensor driving parameters based on the at least one shooting indicator information; inputting the generation prompt information into a model plugin based on a large language model to generate at least one sensor driving parameter; and obtaining the sensor driving parameter selected on the shooting page from the at least one sensor driving parameter as the target sensor driving parameter.
[0021] Optionally, the apparatus further includes: in response to determining that the target firmware has completed a firmware upgrade, obtaining an image sensor information set corresponding to the upgraded firmware as an image sensor update information set; filtering out unloaded image sensor information sets from the image sensor information set as unloaded image sensor information sets; removing any image sensor information from the loaded image sensor information set from the image sensor update information set to obtain a deloaded image sensor information set; fusing the unloaded image sensor information set and the deloaded image sensor information set to obtain a fused image sensor information set; and performing the loading step according to the fused image sensor information set to load the image sensor information of the upgraded firmware.
[0022] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, such that when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any implementation of the first aspect.
[0023] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method as described in any implementation of the first aspect.
[0024] Fifthly, some embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
[0025] The above embodiments of this disclosure have the following beneficial effects: The sensor information loading method of some embodiments of this disclosure can quickly and efficiently load at least one image sensor information into the target firmware, facilitating subsequent image acquisition by the target firmware using at least one different type of image sensor, and aiding in firmware upgrades and maintenance. Specifically, the difficulty and complexity of upgrading and maintaining numerous firmware devices stems from the fact that in scenarios where IPC devices require different image sensors based on different product definitions, many firmware devices are needed to meet product requirements. A large number of firmware devices often increases the complexity of the IPC device, complicating image sensor scheduling, and creating the problem that multiple firmware devices are not conducive to upgrades and maintenance. Therefore, the sensor information loading method of some embodiments of this disclosure first obtains the set of image sensor information to be loaded corresponding to the target firmware. Here, by determining the image sensor information set, the information of each image sensor that the target firmware may load can be obtained as the data basis for the sensor information, enabling the target firmware to load at least one image sensor information. Then, for each image sensor information in the aforementioned image sensor information set, the following loading steps are performed: First, using the communication protocol interface included in the aforementioned image sensor information, feature information under the target sensor features is read from the target register address, where the target register address is the register address in the image sensor corresponding to the aforementioned image sensor information. Reading the feature information under the target sensor features facilitates subsequent determination of whether the image sensor is compatible with the target firmware, ensuring no abnormal issues occur during subsequent firmware deployment. Second, in response to the feature information matching the sensor feature information supported by the target firmware, the aforementioned image sensor information and corresponding sensor driver parameters are loaded into the target firmware. Here, determining that the feature information matches the sensor feature information indicates compatibility between the corresponding image sensor and the target firmware. Loading the sensor driver parameters into the target firmware facilitates subsequent image sensor calls. In summary, through the communication protocol interface, feature information under the target sensor features in the image sensor information can be read, thereby determining whether the corresponding image sensor is compatible with the target firmware. Based on this, a binding between at least one image sensor and the target firmware is achieved, allowing the target firmware to schedule at least one required image sensor based on the corresponding sensor driver description. Furthermore, it eliminates the need for numerous target firmware updates to meet various product requirements and facilitates the upgrade and maintenance of target firmware, significantly improving image acquisition efficiency. Attached Figure Description
[0026] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0027] Figure 1 This is a schematic diagram of an application scenario of a sensor information loading method according to some embodiments of the present disclosure;
[0028] Figure 2 This is a flowchart of some embodiments of the sensor information loading method according to the present disclosure;
[0029] Figure 3 This is a schematic diagram illustrating the image sensor information set;
[0030] Figure 4 These are flowcharts of other embodiments of the sensor information loading method according to this disclosure;
[0031] Figure 5 These are schematic diagrams illustrating the structure of some embodiments of the sensor information loading device according to this disclosure;
[0032] Figure 6 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation
[0033] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0034] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0035] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0036] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0037] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0038] Before performing any of the operations involving the collection, storage, or use of information (such as image sensor information) disclosed in this disclosure, the relevant organizations or individuals shall fulfill their obligations, including conducting information security impact assessments, informing the information subjects, and obtaining prior authorization and consent from the information subjects.
[0039] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0040] Figure 1 This is a schematic diagram of an application scenario of a sensor information loading method according to some embodiments of the present disclosure.
[0041] exist Figure 1 In this application scenario, firstly, the electronic device 101 can obtain the image sensor information set 103 to be loaded corresponding to the target firmware 102. In this application scenario, the target firmware 102 can be the firmware in the target network camera. Then, for each image sensor information in the image sensor information set 103, the electronic device 101 can perform the following loading steps: First, using the communication protocol interface included in the image sensor information, read the feature information under the target sensor feature from the target register address. Wherein, the target register address is the register address in the image sensor corresponding to the image sensor information. In this application scenario, for the image sensor information corresponding to image sensor 104, using the communication protocol interface A included in the image sensor information, read the feature information A under the target sensor feature from the target register address. Second, in response to the feature information matching the sensor feature information 105 supported by the target firmware, load the image sensor information and the corresponding sensor driving parameters into the target firmware 102. In this application scenario, the sensor feature information 105 can be sensor feature information B. In response to the matching of the aforementioned feature information A with the sensor feature information B supported by the aforementioned target firmware, the image sensor A information corresponding to the image sensor 104 and the corresponding sensor driving parameters A are loaded into the aforementioned target firmware 102.
[0042] It should be noted that the aforementioned electronic device 101 can be either hardware or software. When the electronic device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the electronic device is software, it can be installed in the hardware devices listed above. It can be implemented as, for example, multiple software programs or software modules used to provide distributed services, or as a single software program or software module. No specific limitations are made here.
[0043] It should be understood that Figure 1 The number of electronic devices shown is merely illustrative. Any number of electronic devices can be used depending on the implementation requirements.
[0044] Continue to refer to Figure 2 The diagram illustrates a flow 200 of some embodiments of a sensor information loading method according to the present disclosure. This sensor information loading method includes the following steps:
[0045] Step 201: Obtain the image sensor information set to be loaded corresponding to the target firmware.
[0046] In some embodiments, the execution subject of the above-described sensor information loading method (e.g.) Figure 1The electronic device 101 shown can acquire the image sensor information set corresponding to the target firmware to be loaded via wired or wireless connection. The target firmware corresponding to the image sensor is the key software controlling the sensor hardware operation, directly affecting the sensor's performance, functionality, and adaptability to application scenarios. The target firmware has, but is not limited to, the following functions: hardware control (configuring sensor register parameters (such as exposure time, gain, frame rate, pixel mode, etc.)), algorithm implementation (integrating algorithms such as denoising, automatic exposure (AE), automatic white balance (AWB), and black level correction (BLC)), data output (defining image data transmission formats (such as RAW, YUV, RGB), interface protocols (MIPI, LVDS, Sub-LVDS, etc.)), power management (optimizing sensor power consumption in different modes (such as standby, low-power acquisition, high-speed mode)), and error handling (detecting and correcting abnormalities in sensor operation (such as overheating, overexposure, communication errors)). Each image sensor information set in the image sensor information set can be the information of each image sensor for which the target firmware is to be loaded. The image sensor information can be sensor information related to the image sensor. In practice, image sensor information can be related to its operation and working principle. For example, image sensor information may include: image sensor name, image sensor type, corresponding communication protocol interface, corresponding register address, driver address, and image address. The individual image sensor information entries in the image sensor information set can be in list format.
[0047] like Figure 3 The diagram shown illustrates the image sensor information set.
[0048] Step 202: For each image sensor information in the above image sensor information set, perform the following loading steps:
[0049] Step 2021: Using the communication protocol interface included in the above image sensor information, read the feature information under the target sensor features from the target register address.
[0050] In some embodiments, the execution entity can utilize the communication protocol interface included in the image sensor information to read feature information under the target sensor features from the target register address. The target register address is the register address in the image sensor corresponding to the image sensor information. The communication protocol interface can be, but is not limited to, one of the following: I2C (Inter-Integrated Circuit) interface or SPI (Serial Peripheral Interface). The I2C interface is a two-wire synchronous serial bus interface used to connect integrated circuits. Due to its simplicity, efficiency, and flexibility, the I2C interface is widely used in the field of electronic devices. The I2C interface uses only two lines: SDA (Serial Data Line) and SCL (Serial Clock Line) to achieve full-duplex, synchronous communication between devices. The SPI interface is used for communication between microcontrollers and peripheral devices. With technological advancements, the SPI interface has become an industry standard, widely used in various embedded systems and for data transmission between microcontrollers and peripheral devices. The target sensor features can be key sensor features corresponding to the image sensor. Target sensor features can characterize whether the image sensor and the target firmware are compatible. Target sensor features can be set by relevant technical personnel based on historical experience. For example, target sensor features can be, but are not limited to, one of the following: resolution and data format, communication protocol, interface compatibility, and performance stability. Feature information can be the feature content corresponding to the target sensor features in the image sensor information.
[0051] Step 2022: In response to the above feature information matching the sensor feature information supported by the target firmware, the above image sensor information and the corresponding sensor driving parameters are loaded into the target firmware.
[0052] In some embodiments, in response to the matching of the aforementioned feature information with the sensor feature information supported by the target firmware, the executing entity can load the aforementioned image sensor information and corresponding sensor driving parameters into the target firmware. The sensor driving parameters can be key indicators controlling its operating mode and performance. In practice, sensor driving parameters can include, but are not limited to, at least one of the following: electrical parameters, timing parameters, control parameters, operating mode parameters, interface parameters, temperature-related parameters, and special function parameters. Electrical parameters can include: supply voltage, bias voltage, and current configuration. Timing parameters can include: master clock frequency (MCLK), exposure time, frame rate, and synchronization signal timing. Control parameters can include: gain setting, black and white level correction, operating mode, trigger model, and data output format. Operating mode parameters can include: resolution. Interface parameters can include: physical interface configuration, data rate, and synchronization signal polarity. Sensor feature information can be feature content predefined in the target firmware under the adapted target sensor features.
[0053] In some optional implementations of certain embodiments, after step 2022, the steps further include:
[0054] In response to a mismatch between the aforementioned feature information and the aforementioned sensor feature information, the aforementioned execution entity may generate information indicating that no driving parameters are loaded for the aforementioned image sensor.
[0055] In some optional implementations of certain embodiments, the aforementioned feature information includes: device information and origin information. The device information may be the device information corresponding to the image sensor. For example, the device information may include: device model and device brand. The origin information may be the origin information corresponding to the image sensor. For example, the origin information may include: manufacturer identifier and manufacturer address.
[0056] Optionally, in response to the above-mentioned device information matching the sensor device information and the above-mentioned source information matching the sensor source information, the above-mentioned execution entity can load the above-mentioned image sensor information and the corresponding sensor driving parameters into the above-mentioned target firmware. The above-mentioned sensor feature information includes: the above-mentioned sensor device information and the above-mentioned sensor source information. The sensor device information can be predefined device feature content adapted to the image sensor and related to the characteristics of the target sensor. The sensor source information can be predefined source feature content adapted to the image sensor and related to the characteristics of the target sensor.
[0057] In some optional implementations of certain embodiments, after step 2022, the steps further include:
[0058] The first step, in response to receiving a shooting request for the target shooting scene, is for the aforementioned executing entity to determine the sensor driving parameters corresponding to the shooting request, which will then be used as the target sensor driving parameters. The target shooting scene can be a scene being captured using an IPC device at the current time. The shooting request can be a shooting requirement. For example, the shooting requirement could be a resolution higher than a target value, brightness within a first range, image sensor operating temperature within a second range, exposure time settings, and data rate settings. The target sensor driving parameters can be the most suitable sensor driving parameters that meet the shooting requirements.
[0059] As an example, the aforementioned execution entity can determine the sensor driving parameters corresponding to the above shooting requirements by querying the driving parameter table, and use these as the target sensor driving parameters. The driving parameter table represents the parameter range for each driving parameter corresponding to the sensor.
[0060] In the second step, in response to the existence of first image sensor information loaded in the target firmware that matches the target sensor driving parameters, the execution entity can control the image sensor corresponding to the first image sensor information to perform the shooting process in the target shooting scenario.
[0061] In some optional implementations of certain embodiments, the steps further include:
[0062] The first step involves determining, in response to the absence of the aforementioned first image sensor information, whether there exists second image sensor information loaded in the newly added target firmware that matches the aforementioned target sensor driving parameters. The image sensor information loaded in the newly added firmware is determined based on the newly added image sensor information set during the loading step. The image sensors loaded in the aforementioned target firmware and the newly added firmware are different. The newly added target firmware can be newly added image sensor-related firmware based on the target firmware. The image sensor corresponding to the second image sensor information can satisfy at least one parameter specification corresponding to the target sensor driving parameters. The newly added image sensor information set can be the image sensor information set corresponding to the newly added target firmware that is to be determined whether to load.
[0063] The second step is to control the image sensor corresponding to the second image sensor information to perform the shooting process in the target shooting scene as determined by the existence of the second image sensor information.
[0064] Here, by adding new firmware, the limitation of image sensors compatible with the target firmware can be overcome. Adding new firmware, especially when the network camera doesn't have a large number of firmware options, allows multiple image sensors to be adapted to a single firmware, greatly improving the network camera's compatibility and meeting more image acquisition needs.
[0065] In some optional implementations of certain embodiments, the execution entity may determine the sensor driving parameters corresponding to the above-mentioned shooting requirements as target sensor driving parameters, including the following steps:
[0066] The first step is to determine at least one shooting indicator corresponding to the above shooting requirements. This shooting indicator information can be the specific content of the shooting indicator. For example, at least one shooting indicator may include: resolution, brightness, and temperature.
[0067] The second step is to generate a prompt message for generating sensor driving parameters based on at least one of the above-mentioned shooting index information.
[0068] The third step involves inputting the generated prompt information into a model plugin based on a large language model to generate at least one sensor-driving parameter. The large language model (LLM) can be a model pre-trained for the current sensor-driving parameter scenario generation model.
[0069] The fourth step is to obtain the sensor driving parameter from at least one of the sensor driving parameters selected on the shooting page, and use it as the target sensor driving parameter. The shooting page can be the page on the network camera that displays the shooting results and current shooting parameters. In specific scenarios, the target sensor driving parameter can be selected manually by clicking on the shooting page using the corresponding control object of the network camera.
[0070] The above embodiments of this disclosure have the following beneficial effects: The sensor information loading method of some embodiments of this disclosure can quickly and efficiently load at least one image sensor information into the target firmware, facilitating subsequent image acquisition by the target firmware using at least one different type of image sensor, and aiding in firmware upgrades and maintenance. Specifically, the difficulty and complexity of upgrading and maintaining numerous firmware devices stems from the fact that in scenarios where IPC devices require different image sensors based on different product definitions, many firmware devices are needed to meet product requirements. A large number of firmware devices often increases the complexity of the IPC device, complicating image sensor scheduling, and creating the problem that multiple firmware devices are not conducive to upgrades and maintenance. Therefore, the sensor information loading method of some embodiments of this disclosure first obtains the set of image sensor information to be loaded corresponding to the target firmware. Here, by determining the image sensor information set, the information of each image sensor that the target firmware may load can be obtained as the data basis for the sensor information, enabling the target firmware to load at least one image sensor information. Then, for each image sensor information in the aforementioned image sensor information set, the following loading steps are performed: First, using the communication protocol interface included in the aforementioned image sensor information, feature information under the target sensor features is read from the target register address, where the target register address is the register address in the image sensor corresponding to the aforementioned image sensor information. Reading the feature information under the target sensor features facilitates subsequent determination of whether the image sensor is compatible with the target firmware, ensuring no abnormal issues occur during subsequent firmware deployment. Second, in response to the feature information matching the sensor feature information supported by the target firmware, the aforementioned image sensor information and corresponding sensor driver parameters are loaded into the target firmware. Here, determining that the feature information matches the sensor feature information indicates compatibility between the corresponding image sensor and the target firmware. Loading the sensor driver parameters into the target firmware facilitates subsequent image sensor calls. In summary, through the communication protocol interface, feature information under the target sensor features in the image sensor information can be read, thereby determining whether the corresponding image sensor is compatible with the target firmware. Based on this, a binding between at least one image sensor and the target firmware is achieved, allowing the target firmware to schedule at least one required image sensor based on the corresponding sensor driver description. Furthermore, it eliminates the need for numerous target firmware updates to meet various product requirements and facilitates the upgrade and maintenance of target firmware, significantly improving image acquisition efficiency.
[0071] Further reference Figure 4 The diagram illustrates a flow 400 of another embodiment of the sensor information loading method according to the present disclosure. This sensor information loading method includes the following steps:
[0072] Step 401: Obtain the image sensor information set to be loaded corresponding to the target firmware.
[0073] Step 402: For each image sensor information in the above image sensor information set, perform the following loading steps:
[0074] Step 4021: Using the communication protocol interface included in the above image sensor information, read the feature information under the target sensor features from the target register address.
[0075] Step 4022: In response to the above feature information matching the sensor feature information supported by the target firmware, the above image sensor information and the corresponding sensor driving parameters are loaded into the target firmware.
[0076] In some embodiments, the specific implementation of steps 401-402 and the resulting technical effects can be found in [reference needed]. Figure 2 Steps 201-202 in the corresponding embodiments will not be repeated here.
[0077] Step 403: In response to determining that the target firmware has completed the firmware upgrade, obtain the image sensor information set corresponding to the upgraded firmware as the image sensor update information set.
[0078] In some embodiments, in response to determining that the target firmware has completed the firmware upgrade, the execution entity (e.g. Figure 1 The electronic device 101 shown can acquire the image sensor information set corresponding to the upgraded firmware via wired or wireless means, as the image sensor update information set. In specific scenarios, the target firmware upgrade can be for various reasons. For example, these reasons may include: vulnerability patching, compatibility enhancement, and improved device performance. The image sensor update information set can be the information of each image sensor corresponding to the upgraded firmware, whose loading status is yet to be determined.
[0079] Step 404: Select the unloaded image sensor information set from the above image sensor information set as the unloaded image sensor information set.
[0080] In some embodiments, the execution entity may filter out an unloaded set of image sensor information from the aforementioned image sensor information set as the unloaded image sensor information set. This unloaded image sensor information set may be the image sensor information loaded by the target firmware before the upgrade.
[0081] Step 405: Remove any image sensor information from the loaded image sensor information set from the above image sensor update information set to obtain the image sensor information set after removing the loaded information.
[0082] In some embodiments, the execution entity may obtain a deloaded image sensor information set from any image sensor information in the image sensor update information set that has been removed from the loaded image sensor information set.
[0083] Step 406: The unloaded image sensor information set and the unloaded image sensor information set are fused to obtain the fused image sensor information set.
[0084] In some embodiments, the execution entity may fuse the unloaded image sensor information set and the unloaded image sensor information set to obtain a fused image sensor information set.
[0085] Step 407: Based on the above-mentioned fused image sensor information set, perform the above-mentioned loading step to load the image sensor information of the upgraded firmware.
[0086] In some embodiments, the execution entity may perform the loading steps based on the fused image sensor information set to load the image sensor information of the upgraded firmware. Specific implementation details are omitted here. See the image sensor information loading process corresponding to the target firmware.
[0087] from Figure 4 It can be seen from this that, with Figure 2 Compared to the description of some corresponding embodiments, Figure 4 The sensor information loading method flow 400 in some corresponding embodiments embodies the image sensor information loading of the upgraded target firmware, so that the loaded firmware can be compatible with and load more image sensors, greatly improving the performance of the target firmware and facilitating firmware upgrade and maintenance.
[0088] Further reference Figure 5 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a sensor information loading device, which are similar to... Figure 2 Corresponding to the method embodiments shown, this sensor information loading device can be specifically applied to various electronic devices.
[0089] like Figure 5As shown, a sensor information loading device 500 includes an acquisition unit 501 and an execution unit 502. The acquisition unit 501 is configured to acquire a set of image sensor information to be loaded corresponding to the target firmware. The execution unit 502 is configured to perform the following loading steps for each image sensor information in the image sensor information set: using the communication protocol interface included in the image sensor information, reading feature information under the target sensor features from a target register address, wherein the target register address is the register address in the image sensor corresponding to the image sensor information; and in response to the feature information matching the sensor feature information supported by the target firmware, loading the image sensor information and corresponding sensor driving parameters into the target firmware.
[0090] In some optional implementations of certain embodiments, the apparatus 500 further includes a generation unit (not shown in the figure). This generation unit can be configured to generate information representing that the driving parameters are not loaded for the image sensor in response to a mismatch between the feature information and the sensor feature information.
[0091] In some optional implementations of some embodiments, the aforementioned feature information includes: device information and origin information; and the execution unit 502 may be further configured to: in response to the aforementioned device information matching the sensor device information and the aforementioned origin information matching the sensor origin information, load the aforementioned image sensor information and the corresponding sensor driving parameters into the aforementioned target firmware, wherein the aforementioned sensor feature information includes: the aforementioned sensor device information and the aforementioned sensor origin information.
[0092] In some optional implementations of certain embodiments, the device 500 further includes a first determining unit and a first controlling unit (not shown in the figure). The first determining unit may be configured to: in response to receiving a shooting request for a target shooting scene, determine sensor driving parameters corresponding to the shooting request, as target sensor driving parameters. The first controlling unit may be configured to: in response to the existence of first image sensor information loaded in the target firmware that matches the target sensor driving parameters, control the image sensor corresponding to the first image sensor information to perform shooting processing for the target shooting scene.
[0093] In some optional implementations of certain embodiments, the device 500 further includes a second determining unit and a second controlling unit (not shown in the figure). The second determining unit can be configured to: in response to the absence of the first image sensor information, determine whether second image sensor information loaded in the newly added target firmware that matches the target sensor driving parameters exists, wherein the image sensor information loaded in the newly added firmware is determined based on the newly added image sensor information set and the image sensors loaded in the target firmware and the newly added firmware are different. The second controlling unit can be configured to: in response to determining its existence, control the image sensor corresponding to the second image sensor information to perform the shooting processing in the target shooting scene.
[0094] In some optional implementations of some embodiments, the first determining unit can be configured to: determine at least one shooting indicator information corresponding to the shooting requirement; generate generation prompt information representing the generation of sensor driving parameters based on the at least one shooting indicator information; input the generation prompt information to a model plugin based on a large language model to generate at least one sensor driving parameter; and obtain the sensor driving parameter selected on the shooting page from the at least one sensor driving parameter as the target sensor driving parameter.
[0095] In some optional implementations of certain embodiments, the apparatus 500 further includes: an information acquisition unit, a filtering unit, a removal unit, a fusion unit, and a step execution unit (not shown in the figure). The information acquisition unit can be configured to: in response to determining that the target firmware has completed a firmware upgrade, acquire the image sensor information set corresponding to the upgraded firmware as the image sensor update information set. The filtering unit can be configured to: filter out unloaded image sensor information sets from the image sensor information set as unloaded image sensor information sets. The removal unit can be configured to: remove any image sensor information from the loaded image sensor information set from the image sensor update information set to obtain a deloaded image sensor information set. The fusion unit can be configured to: fuse the unloaded image sensor information set and the deloaded image sensor information set to obtain a fused image sensor information set. The step execution unit can be configured to: execute the loading step according to the fused image sensor information set to load the image sensor information of the upgraded firmware.
[0096] It is understandable that the units described in the sensor information loading device 500 are related to the reference. Figure 2The steps in the described method correspond accordingly. Therefore, the operations, features, and beneficial effects described above for the method also apply to the sensor information loading device 500 and the units contained therein, and will not be repeated here.
[0097] The following is for reference. Figure 6 It illustrates electronic devices suitable for implementing some embodiments of this disclosure (e.g., Figure 1 A schematic diagram of the structure of electronic device 101)600 in the middle. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0098] like Figure 6 As shown, the electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory 602 or a program loaded from a storage device 608 into a random access memory 603. The random access memory 603 also stores various programs and data required for the operation of the electronic device 600. The processing unit 601, the read-only memory 602, and the random access memory 603 are interconnected via a bus 604. An input / output interface 605 is also connected to the bus 604.
[0099] Typically, the following devices can be connected to the input / output interface 605: input devices 606 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 608 including, for example, magnetic tape, hard disk, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 6 Each box shown can represent a device or multiple devices as needed.
[0100] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a read-only memory 602. When the computer program is executed by the processing device 601, it performs the functions defined above in the methods of some embodiments of this disclosure.
[0101] It should be noted that, in some embodiments of this disclosure, the computer-readable medium described above may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0102] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0103] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: have an acquisition unit configured to acquire a set of image sensor information to be loaded corresponding to the target firmware; and have an execution unit configured to perform the following loading steps for each image sensor information in the aforementioned image sensor information set: using the communication protocol interface included in the aforementioned image sensor information, read feature information under the target sensor features from a target register address, wherein the target register address is the register address in the image sensor corresponding to the aforementioned image sensor information; and, in response to the feature information matching sensor feature information supported by the aforementioned target firmware, load the aforementioned image sensor information and corresponding sensor driving parameters into the aforementioned target firmware.
[0104] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0105] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0106] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including an acquisition unit and an execution unit. The names of these units do not necessarily limit the unit itself; for example, an acquisition unit may also be described as "a unit that acquires the image sensor information set to be loaded corresponding to the target firmware."
[0107] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0108] Some embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements any of the sensor information loading methods described above.
[0109] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for loading sensor information, comprising: Obtain the image sensor information set to be loaded corresponding to the target firmware; For each image sensor information in the image sensor information set, perform the following loading steps: Using the communication protocol interface included in the image sensor information, feature information under the target sensor features is read from the target register address, wherein the target register address is the register address in the image sensor corresponding to the image sensor information; In response to the feature information matching the sensor feature information supported by the target firmware, the image sensor information and the corresponding sensor driving parameters are loaded into the target firmware.
2. The method according to claim 1, wherein, After loading the image sensor information and corresponding sensor driving parameters into the target firmware in response to the feature information matching the sensor feature information supported by the target firmware, the method further includes: In response to a mismatch between the feature information and the sensor feature information, information is generated indicating that no driving parameters are loaded for the image sensor.
3. The method according to claim 1, wherein, The feature information includes: equipment information and source information; and The step of loading the image sensor information and corresponding sensor driving parameters into the target firmware in response to the feature information matching the sensor feature information supported by the target firmware includes: In response to the device information matching the sensor device information and the origin information matching the sensor origin information, the image sensor information and the corresponding sensor driving parameters are loaded into the target firmware, wherein the sensor feature information includes: the sensor device information and the sensor origin information.
4. The method according to claim 1, wherein, The method further includes: In response to receiving a shooting request for a target shooting scene, the sensor driving parameters corresponding to the shooting request are determined as target sensor driving parameters; In response to the existence of first image sensor information loaded in the target firmware that matches the target sensor driving parameters, the image sensor corresponding to the first image sensor information is controlled to perform shooting processing in the target shooting scene.
5. The method according to claim 4, wherein, The method further includes: In response to the absence of the first image sensor information, it is determined whether there is second image sensor information loaded in the newly added target firmware that matches the target sensor driving parameters, wherein the image sensor information loaded in the newly added firmware is determined based on the newly added image sensor information set when the loading step is performed, and the image sensors loaded in the target firmware and the newly added firmware are different. In response to the determination of existence, the image sensor corresponding to the second image sensor information is controlled to perform the shooting process under the target shooting scene.
6. The method according to claim 4, wherein, Determining the sensor driving parameters corresponding to the shooting requirements, as the target sensor driving parameters, includes: Determine at least one shooting indicator information corresponding to the shooting requirement; The generation of the representation generates sensor driving parameter generation prompts based on the at least one shooting index information; The generated prompt information is input into the model plugin based on the large language model to generate at least one sensor driving parameter; Obtain the sensor driving parameter from the at least one sensor driving parameter selected on the shooting page, and use it as the target sensor driving parameter.
7. The method according to claim 1, wherein, The method further includes: In response to determining that the target firmware has completed the firmware upgrade, the image sensor information set corresponding to the upgraded firmware is obtained as the image sensor update information set. The unloaded image sensor information set is selected from the image sensor information set and used as the unloaded image sensor information set. The image sensor information set after removing any image sensor information from the loaded image sensor information set is obtained from the image sensor update information set. The unloaded image sensor information set and the unloaded image sensor information set are fused to obtain the fused image sensor information set. Based on the fused image sensor information set, the loading step is executed to load the image sensor information of the upgraded firmware.
8. A sensor information loading device, comprising: The acquisition unit is configured to acquire the image sensor information set to be loaded corresponding to the target firmware; The execution unit is configured to perform the following loading steps for each image sensor information in the image sensor information set: using the communication protocol interface included in the image sensor information, read feature information under the target sensor feature from the target register address, wherein the target register address is the register address in the image sensor corresponding to the image sensor information; in response to the feature information matching the sensor feature information supported by the target firmware, load the image sensor information and the corresponding sensor driving parameters into the target firmware.
9. An electronic device, comprising: One or more processors; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.
10. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.
