Image processing method and system, storage medium and electronic equipment
By encapsulating instantiation interfaces and white balance functions, unified management and invocation of algorithms in the image processing system are achieved, solving the problem of inconsistent interfaces among multi-source heterogeneous algorithm modules, improving the system's scalability and adaptability, and reducing development and maintenance difficulty.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-04-10
AI Technical Summary
In existing image processing systems, the calling interfaces of multi-source heterogeneous algorithm modules are inconsistent, resulting in high development costs, difficult maintenance, poor system scalability, and difficulty in quickly adapting to market changes.
By pre-encapsulating instantiation interfaces and white balance functions, unified management and invocation of different algorithms are achieved, including steps such as obtaining chip instances, parsing image parameters, and merging mode data, ensuring that the system can adapt to multiple algorithms without modifying the main program.
It reduces development complexity and workload, improves system stability, compatibility and flexibility, supports hot-swappable module replacement, and enhances system scalability and adaptability.
Smart Images

Figure CN121842340A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of image processing, in particular to an image processing method, system, storage medium and electronic device. BACKGROUND
[0002] In an image processing system, a multi-source heterogeneous algorithm module plays a key role, which needs to use algorithm packages provided by different manufacturers; however, the parameter types, parameter quantities and calling processes of algorithm packages of different manufacturers are different, and even two different algorithms provided by the same manufacturer may have great differences; this results in the need to design an independent calling interface for each algorithm when designing a calling interface.
[0003] The existing system design often adopts a "one-to-one" customized solution, that is, different calling interfaces need to be written for each algorithm call; this mode not only has high development cost and needs to invest a large amount of human and time resources for development and maintenance, but also is difficult to maintain; with the continuous increase in the number of algorithms, the complexity of the code also increases exponentially, and the maintenance personnel need to spend a lot of effort to understand and modify the code; more seriously, when a new algorithm is added, the main program needs to be modified, which not only easily causes new problems, but also seriously restricts the scalability of the system, making it difficult for the system to quickly adapt to market changes and technological development. SUMMARY
[0004] The present application provides an image processing method, system, storage medium and electronic device to solve the above technical problems.
[0005] Specifically, the present application provides an image processing method, which is pre-packaged with an instantiation interface and a white balance function; the image processing method comprises the following steps: acquiring an image configuration file, and calling an instantiation interface based on the image configuration file to obtain a chip instance; calling a white balance function to obtain standard mode data from the chip instance based on the image configuration file; and determining whether target mode data needs to be obtained based on the image configuration file, if so, calling the white balance function again and obtaining target mode data from the chip instance based on the image configuration file to output final mode data according to the standard mode data and the target mode data; otherwise, directly outputting final mode data according to the standard mode data.
[0006] In the technical solution, the commonality of different algorithm operations is abstracted and encapsulated through the encapsulation instantiation interface and the white balance function, so that any algorithm can be operated through the unified steps and interface, thereby avoiding the development of control logic and parameter processing flow for each algorithm, and reducing the development complexity and workload; meanwhile, as long as the algorithm can adapt to the unified interface, the algorithm can be called without modifying the main program.
[0007] Further, the chip instance is obtained by receiving the image configuration file through the instantiation interface to determine whether the image configuration file includes a set path, if yes, obtaining a chip type according to the image configuration file, and creating a corresponding chip instance according to the chip type; otherwise, ending the process.
[0008] In the technical solution, invalid operations caused by missing key information in the image configuration file are avoided, the possibility of system error is reduced, and the stability of the system in the chip instance obtaining stage is ensured.
[0009] Further, the image configuration file further includes image parameters to be processed; the standard mode data is obtained by analyzing and splitting the image parameters to be processed through the white balance function, and obtaining image parameters in a standard mode from the chip instance according to the split image parameters to be processed as the standard mode data.
[0010] Further, the target mode data is obtained by analyzing and splitting the image parameters to be processed through the white balance function, and obtaining image parameters in a target mode from the chip instance according to the split image parameters to be processed as the target mode data.
[0011] In the technical solution, the unified processing flow makes the acquisition operations of different mode data consistent, and reduces the difficulty of development and maintenance.
[0012] Further, a data merging function is also encapsulated in advance; after the target mode data is obtained, it further includes judging whether a set configuration item is enabled based on the image configuration file, if yes, concatenating the target mode data and the standard mode data based on a preset character, and taking the concatenation result as the final mode data; otherwise, calling the data merging function to merge the target mode data and the standard mode data, and taking the data merging result as the final mode data.
[0013] Further, the directly outputting the final mode data according to the standard mode data comprises: judging whether a setting configuration item is enabled based on the image configuration file, if the setting configuration item is enabled, directly taking the standard mode data as the final mode data; otherwise, calling the data merging function to perform data merging on the standard mode data, and taking a data merging result as the final mode data.
[0014] In the technical solution, the encapsulation of the data merging function can ensure the consistency of the output format; and the different data processing modes are selected by judging the setting configuration item, so that the system can dynamically adjust the processing strategy according to the actual situation, and the adaptability and flexibility of the system to different business requirements are enhanced.
[0015] Further, the data inversion parameter is set in the image configuration file in advance based on the firmware type; and when the white balance function or the data merging function is used, the current data inversion parameter is obtained, and the standard mode data or the final mode data is processed by data inversion based on the data inversion parameter and output.
[0016] In the technical solution, different firmware types can be adapted, and the compatibility and universality of the system are enhanced.
[0017] Based on the same concept, the present application further provides an image processing system, which comprises: an acquisition module configured to acquire an image configuration file, and call an instantiation interface based on the image configuration file to acquire a chip instance; a first calling module configured to call a white balance function to acquire standard mode data from the chip instance based on the image configuration file; a judgment module configured to judge whether target mode data needs to be acquired based on the image configuration file; a second calling module configured to, when the target mode data needs to be acquired, call the white balance function again, and acquire the target mode data from the chip instance based on the image configuration file; and an output module configured to output final mode data according to the standard mode data and the target mode data, or directly output the final mode data according to the standard mode data.
[0018] In the technical solution, the chip class and the abstract algorithm interface are introduced, the unified management and calling of the multi-source heterogeneous algorithm module are realized, and the problem of inconsistent algorithm interfaces and poor expansibility in the traditional system is solved; meanwhile, the system has high universality and can be flexibly applied to various software systems.
[0019] Based on the same concept, the present application further provides a storage medium, which stores a computer program, wherein the computer program is set to execute the image processing method when running.
[0020] Based on the same concept, the present application also provides an electronic device, which comprises a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, which are loaded and executed by the processor to implement the image processing method.
[0021] Compared with the prior art, the present application has the following advantages: The present application can avoid developing control logic and parameter processing flow for each algorithm separately, thereby reducing development complexity and workload; meanwhile, as long as the algorithm can adapt to the unified interface, the algorithm can be called without modifying the main program. BRIEF DESCRIPTION OF DRAWINGS
[0022] Figure 1 A flowchart of the image processing method according to the present application.
[0023] Figure 2 A framework diagram of the image processing system according to the present application. DETAILED DESCRIPTION
[0024] The image processing method, system, storage medium and electronic device according to the present application will be described in further detail below in combination with specific embodiments and drawings.
[0025] Please refer to Figure 1 The present application provides an image processing method, which is pre-packaged with an instantiation interface and a white balance function; the image processing method comprises the following steps S100-S300.
[0026] In some embodiments, the unified instantiation interface of each chip class is implemented, for example, by a createChip(chip_type) factory method, which supports dynamically loading algorithm modules of different chips; and preferably, all chip class initialization parameters are unified as a DLL path (i.e. the setting path described below) to ensure that the main flow does not need to be modified when a new chip is accessed; further, the white balance algorithm is packaged as a callDLL method, which has compatible parameter specifications with the main white balance algorithm and a unified output format of a one-dimensional three-element array (RGB Gamma data).
[0027] Among them, for example, DDL (Dynamic Link Library) is a library including code and data that can be used by multiple programs at the same time, and the DLL path refers to the location information where the dynamic link library file is stored; the initialization and related operations of different chips are encapsulated in the corresponding DLL file, which includes the code and logic required for interaction with a specific chip; the main program is usually only responsible for some general flow control, while the specific chip operation is left to the DLL to complete, and the main program interacts with the chip by loading the DLL and calling the interface function therein, so that the main program does not need to care about the specific implementation details of the chip, and only needs to know how to call the function in the DLL, and the program runs according to the input DLL path to dynamically load the corresponding DLL file, when a new chip is connected, only the DLL file corresponding to the new chip needs to be placed in the specified location, and the path of the DLL file is passed as a parameter to the main program, and the main program can load the new DLL file at runtime, thereby realizing the initialization of the new chip class.
[0028] Specifically, by encapsulating ALL_CHIP_CALL as a unified intermediate layer interface, a cross-call mode compatibility framework is constructed, which not only supports automatic script execution driven by command line parameters, but also seamlessly connects graphical interface operations, and realizes multi-scene collaborative work; the intermediate layer automatically instantiates the corresponding chip driver class according to the chip type through a dynamic loading mechanism, effectively improving the expansibility and maintainability of the system, supporting hot plug module replacement, without changing the main system, and facilitating iterative upgrade; by abstracting algorithm parameters to realize a general interface method, all white balance algorithm interfaces follow a unified interface specification, greatly reducing the differences between algorithms and improving system compatibility.
[0029] In a feasible implementation manner, when a user uses the intelligent display, the user can input an image configuration file to the system through the setting interface of the display or an external device (such as a computer or a mobile phone), and the image configuration file is a file containing multiple image parameters and mode settings, such as color modes (standard mode, eye protection mode, game mode, etc.) and specific parameter values in different modes; the system calls a pre-encapsulated instantiation interface based on the read image configuration file, for example, when the system calls the instantiation interface, it sends specific request information to the chip, and the chip returns an instance object representing itself after receiving the request; then a pre-encapsulated white balance function is called to obtain standard mode data such as a Gamma curve from the chip instance according to the information in the image configuration file; further, whether target mode data needs to be obtained is judged according to the settings in the image configuration file.
[0030] If the system determines that target mode data needs to be acquired, the white balance function is called again, and this time, the white balance function reads image parameters in the target mode from the chip instance according to the parameter settings of the target mode in the image configuration file, such as color adjustment parameters in the eye protection mode and contrast enhancement parameters in the game mode. According to whether the target mode data is acquired, the system outputs different final mode data. If the target mode data is not acquired, the system directly outputs the final mode data according to the standard mode data. If the target mode data is acquired, the system comprehensively processes the standard mode data and the target mode data to obtain final image data that meets the requirements of the target mode. Finally, the system sends the output final mode data to the display for display. The display adjusts and displays the input image according to the received final mode data, thereby presenting the optimized image to the user.
[0031] Step S100: Acquire an image configuration file, and call an instantiation interface based on the image configuration file to acquire a chip instance.
[0032] The acquisition of the chip instance includes receiving the image configuration file through the instantiation interface to determine whether the image configuration file includes a set path. If yes, the chip type is acquired according to the image configuration file, and the corresponding chip instance is created according to the chip type. Otherwise, the process is ended.
[0033] In some embodiments, a DOC file (i.e., the image configuration file) is read to record configuration information, for example, whether the target mode is enabled, whether the set configuration item is enabled, and the like. After the configuration information is read, the createChip function (i.e., the instantiation interface) is called to create a chip instance, and subsequent operations are based on the chip instance. The chip type (chip_type) in the image configuration file is received, and the createChip function finds the corresponding class according to the chip type, and then creates an instance object of the class, i.e., the chip instance.
[0034] It should be noted that the chip instance is an abstract representation, for example, and the chip instance can be used to interact with the chip and acquire related data.
[0035] In the above technical solution, invalid operations caused by the absence of key information in the image configuration file are avoided, the possibility of system errors is reduced, and the stability of the system in the acquisition of the chip instance is ensured.
[0036] Step S200: Call a white balance function to acquire standard mode data from the chip instance based on the image configuration file.
[0037] The image configuration file further includes to-be-processed image parameters; the obtaining of the standard mode data includes: analyzing and splitting the to-be-processed image parameters by using the white balance function, and obtaining image parameters in a standard mode from the chip instance according to the split to-be-processed image parameters as the standard mode data.
[0038] In some embodiments, a callDLL function is called, which obtains Gamma data (i.e., the image parameters) in a standard mode from the chip instance. The Gamma data is usually a set of data used to adjust color and brightness of a display. In addition, the output format of the callDLL function is uniformly specified in advance, for example, a one-dimensional three-element array is used to store the Gamma data. Inside the callDLL function, the incoming picture data is automatically analyzed and split, because the picture data has been strictly defined as a two-dimensional array, and the order is RGB+gray level increment, and the one-dimensional form is stored in the form of (x, y, Lv). In this way, the parameter ambiguity problem caused by inconsistent data order or variable definition is avoided.
[0039] For example, (x, y) represents the coordinates of a pixel point in a picture, and Lv represents the gray level value of the pixel point. The callDLL function can accurately identify the coordinates and gray level value of each pixel point according to the two-dimensional array format. Then the callDLL function finds the Gamma data in the standard mode from the chip instance according to the processed data.
[0040] It should be noted that a large number of image parameters related to different modes are stored in the chip instance, and the callDLL function can accurately locate the corresponding Gamma data in the standard mode according to the characteristics represented by the incoming picture data. In this embodiment, it is required to execute the standard mode first, and then call the remaining target modes, to ensure the consistency of the algorithm execution order.
[0041] Step S300: determining whether target mode data needs to be obtained based on the image configuration file. If so, the white balance function is called again, and target mode data is obtained from the chip instance based on the image configuration file, so as to output final mode data according to the standard mode data and the target mode data. Otherwise, the final mode data is directly output according to the standard mode data.
[0042] In some embodiments, if the configuration information includes enabling a target mode, it means that the target mode data needs to be obtained. The target mode is, for example, an eye protection mode, a game mode, a cinema mode, etc. Those skilled in the art can also extend more modes according to actual application requirements, which are not listed here. For example, the target mode is an eye protection mode, and the eye protection color coordinates are also included in the configuration information.
[0043] The obtaining the target mode data comprises: analyzing and splitting the to-be-processed image parameters by using the white balance function, and obtaining image parameters in a target mode from the chip instance as the target mode data according to the split to-be-processed image parameters.
[0044] In some embodiments, it is assumed that the target mode is an eye protection mode at this time, and the callDLL function is called again with the eye protection color coordinates. After receiving the eye protection color coordinates, the callDLL function performs searching and extracting operations in the chip instance. The chip instance stores image-related data in various modes, including Gamma data corresponding to different color coordinates. The callDLL function locates the corresponding Gamma data according to the eye protection color coordinates and returns the Gamma data to the caller.
[0045] In the above technical solution, the unified processing flow makes the obtaining operations of different mode data consistent, and reduces the difficulty of development and maintenance.
[0046] Further, the data merging function is also pre-packaged. After obtaining the target mode data, the method further comprises: determining whether the set configuration item is enabled based on the image configuration file. If the set configuration item is enabled, the target mode data and the standard mode data are spliced based on the preset character, and the spliced result is taken as the final mode data. Otherwise, the data merging function is called to perform data merging on the target mode data and the standard mode data, and the data merging result is taken as the final mode data.
[0047] In some embodiments, for example, the OnlyGammaData configuration item (i.e., the set configuration item) is supported. When the configuration information describes that the configuration item is enabled, the system skips the data merging step. If target mode data is obtained at this time, the two sets of Gamma data can be spliced by, for example, “,” (i.e., the preset character). If the OnlyGammaData configuration item is not enabled, the target mode data and the standard mode data are merged by, for example, the mergeWBData method.
[0048] Further, the directly outputting the final mode data according to the standard mode data comprises: determining whether the set configuration item is enabled based on the image configuration file. If the set configuration item is enabled, the standard mode data is directly taken as the final mode data. Otherwise, the data merging function is called to perform data merging on the standard mode data, and the data merging result is taken as the final mode data.
[0049] In some embodiments, if the target mode is not enabled but the OnlyGammaData configuration item is enabled, the callDLL function is not called again, and the standard mode data is directly output; if the OnlyGammaData configuration item is not enabled, the Gamma data in the standard mode and the target mode are merged, and then the merged data is output.
[0050] In the technical solution, the encapsulation of the data merging function ensures the consistency of the output format; by judging the set configuration item to select different data processing modes, the system can dynamically adjust the processing strategy according to the actual situation, and the adaptability and flexibility of the system to different business requirements are enhanced.
[0051] Further, the data inversion parameter is set in the image configuration file in advance based on the firmware type; when the white balance function or the data merging function is used, the current data inversion parameter is obtained, the standard mode data or the final mode data is processed by data inversion based on the data inversion parameter, and the processed data is output.
[0052] In some embodiments, the parameter such as “reversed” (i.e., the data inversion parameter) is supported in the callDLL, mergeWBData and other methods, which can control whether the data is inverted to be compatible with the data analysis requirements of the forward / reverse firmware; for example, if the firmware is reverse, the reversed parameter is set to the corresponding value, and the method will perform inversion processing on the data, so that the data of different types of firmware can be correctly analyzed and processed.
[0053] In the technical solution, different firmware types can be adapted, and the compatibility and universality of the system are enhanced.
[0054] In summary, the image processing method can abstract and encapsulate the common parts of different algorithm operations by encapsulating the instantiation interface and the white balance function, so that any algorithm can be operated through this set of unified steps and interfaces, thereby avoiding the development of control logic and parameter processing procedures for each algorithm, reducing the development complexity and workload; at the same time, as long as the algorithm can adapt to this unified interface, it can be called without modifying the main program.
[0055] Based on the same concept, please refer to Figure 2The application further provides an image processing system, which comprises: an acquisition module, configured to acquire an image configuration file and call an instantiation interface based on the image configuration file to acquire a chip instance; a first calling module, configured to call a white balance function to acquire standard mode data from the chip instance based on the image configuration file; a judgment module, configured to judge whether target mode data needs to be acquired based on the image configuration file; a second calling module, configured to call the white balance function again and acquire target mode data from the chip instance based on the image configuration file when the target mode data needs to be acquired; and an output module, configured to output final mode data according to the standard mode data and the target mode data or directly output final mode data according to the standard mode data.
[0056] It should be noted that the image processing system and the image processing method are based on the same concept and have the same specific implementation, and thus will not be described here.
[0057] In the above technical solution, a chip class and an abstract algorithm interface are introduced, the unified management and calling of multi-source heterogeneous algorithm modules are realized, and the problem of inconsistent algorithm interfaces and poor expansibility in traditional systems is solved; meanwhile, the system has high universality and can be flexibly applied to various software systems, such as an AI platform, an automatic test framework, an intelligent terminal operating system and any software system that needs to integrate various algorithms or services.
[0058] Based on the same concept, the application further provides a storage medium, which stores a computer program, wherein the computer program is set to execute the image processing method when running.
[0059] In some embodiments, the storage medium stores a plurality of computer programs to enable a device to execute all or part of the steps of the method according to various embodiments of the application. The medium can include a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk and various media that can store program codes.
[0060] Based on the same concept, the application further provides an electronic device, which comprises a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to realize the image processing method.
[0061] In some embodiments, the memory and the processor are connected with each other through a bus; the processor can be one or more CPUs, in the case of the processor being a CPU, the CPU can be a single-core CPU or a multi-core CPU, the processor is configured to control various functional modules of the vehicle terminal and process signals. The memory includes but is not limited to a RAM (Random Access Memory), a ROM (Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a CD-ROM (Compact Disc Read-Only Memory), the memory is configured to store a computer program, an operating system, various applications and data, such as a computer program for implementing the image processing method.
[0062] Although the example embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the above-described example embodiments are merely illustrative and not intended to limit the scope of the present application. Various changes and modifications can be made thereto by those of ordinary skill in the art without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of the present application as defined by the appended claims.
[0063] Those of ordinary skill in the art can be aware that, in combination with the embodiments disclosed in the specification, units and algorithm steps of each example described in the embodiments can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0064] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the above-described device embodiments are merely illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be omitted or not executed.
[0065] Various component embodiments of the present application can be implemented in hardware, or as software modules running in one or more processors, or in combinations thereof. As will be appreciated by persons skilled in the art, a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the functions of some of the modules according to the embodiments of the present application. The present application can also be implemented as a program for executing the part or all of the methods described herein on a computer (for example, a computer program and a computer program product). Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0066] It is to be noted that, in the present document, the terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Also, the terms "comprising", "containing", or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements in the list, but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element defined by the phrase "comprising a" does not exclude the existence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0067] Although the present application has been described in connection with the above specific embodiments, it will be readily apparent to those skilled in the art that numerous substitutions, modifications and changes can be made thereto without departing from the spirit and scope of the application as set forth in the appended claims.
Claims
1. An image processing method, characterized in that, The image processing method includes the following steps: It pre-encapsulates an instantiation interface and a white balance function. Obtain the image configuration file, and call the instantiation interface based on the image configuration file to obtain the chip instance; Invoke the white balance function to obtain standard mode data from the chip instance based on the image profile; Furthermore, based on the image configuration file, it is determined whether target mode data needs to be obtained. If so, the white balance function is called again, and target mode data is obtained from the chip instance based on the image configuration file, so as to output the final mode data according to the standard mode data and the target mode data; otherwise, the final mode data is directly output according to the standard mode data.
2. The image processing method according to claim 1, characterized in that, The acquisition of chip instances includes: The image configuration file is received through the instantiation interface to determine whether the image configuration file includes a set path. If it does, the chip type is obtained according to the image configuration file, and a corresponding chip instance is created according to the chip type; otherwise, the process ends.
3. The image processing method according to claim 2, characterized in that, The image configuration file also includes parameters of the image to be processed; the acquisition of standard mode data includes: The white balance function is used to parse and split the parameters of the image to be processed, and the image parameters in standard mode are obtained from the chip instance based on the split image parameters as standard mode data.
4. The image processing method according to claim 3, characterized in that, The acquisition of target pattern data includes: The white balance function is used to parse and split the parameters of the image to be processed, and the image parameters of the target mode are obtained from the chip instance based on the split image parameters of the image to be processed, as the target mode data.
5. The image processing method according to claim 4, characterized in that, It also includes a pre-packaged data merging function; after obtaining the target pattern data, it also includes: Based on the image configuration file, it is determined whether the setting configuration item is enabled. If it is enabled, the target mode data and standard mode data are concatenated based on preset characters, and the concatenation result is used as the final mode data; otherwise, the data merging function is called to merge the target mode data and standard mode data, and the data merging result is used as the final mode data.
6. The image processing method according to claim 4, characterized in that, The step of directly outputting the final pattern data based on the standard pattern data includes: Based on the image configuration file, it is determined whether the setting configuration item is enabled. If it is enabled, the standard mode data is directly used as the final mode data; otherwise, the data merging function is called to merge the standard mode data, and the merged result is used as the final mode data.
7. The image processing method according to claim 6, characterized in that, Data inversion parameters are pre-set in the image configuration file based on the firmware type; When using white balance functions or data merging functions, the following are also included: Obtain the current data inversion parameters, and perform data inversion processing on the standard mode data or final mode data based on the data inversion parameters and output the data.
8. A system employing the image processing method as described in any one of claims 1-7, characterized in that, The system includes: The acquisition module is used to acquire an image configuration file and call the instantiation interface based on the image configuration file to acquire a chip instance; A single-call module is used to invoke the white balance function to obtain standard mode data from the chip instance based on the image profile; The judgment module is used to determine whether it is necessary to obtain target mode data based on the image configuration file; The secondary call module is used to call the white balance function a second time when it is necessary to obtain target mode data, and obtain target mode data from the chip instance based on the image configuration file; The output module is used to output the final mode data based on the standard mode data and the target mode data; or to output the final mode data directly based on the standard mode data.
9. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the image processing method as described in any one of claims 1-7 when it is run.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the image processing method as described in any one of claims 1-7.