Image data processing method and device and electronic equipment

By dynamically adjusting the working mode of the image processor according to the shooting scene and camera mode, and image preprocessing is performed only when needed, the problem of high power consumption of the mobile phone camera external chip is solved, and power consumption is reduced and equipment performance is maintained.

CN119211710AActive Publication Date: 2024-12-27VIVO MOBILE COMM CO LTD

Patent Information

Application Number
CN202411344823.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-27
Estimated Expiration
2044-09-25

AI Technical Summary

Technical Problem

The power consumption of mobile phone camera external chips is high, which affects the battery life and performance of the device.

Method used

By dynamically setting the working mode of the image processor according to the shooting scene and camera mode, image preprocessing is performed only when needed, otherwise the image data will be directly transferred to the application processor, reducing unnecessary computing load.

Benefits of technology

It effectively reduces the power consumption of the camera's external chip and extends the battery life without affecting the camera's preview, photography and video recording functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211710A_ABST
    Figure CN119211710A_ABST
Patent Text Reader

Abstract

The invention discloses an image data processing method and device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: acquiring target parameters, wherein the target parameters comprise at least one of a shooting scene and a camera mode; according to the target parameter, a working mode of a first image processor is set, the first image processor is connected with a first camera module and a second image processor of the electronic equipment, and the working mode comprises a first working mode or a second working mode; in the first working mode, the first image processor carries out image preprocessing on image data acquired by the first camera module and sends the image data subjected to image preprocessing to the second image processor; and in the second working mode, the first image processor directly sends image data acquired by the first camera module to the second image processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology, and specifically relates to a method, device and electronic device for processing image data. Background Art

[0002] In order to improve the image quality of mobile phone camera preview and photo taking, more and more mobile phones are equipped with camera plug-in chips. The camera plug-in chip is set between the image sensor and the image signal processor in the application processor. After turning on the camera, the camera plug-in chip will also be powered on synchronously, receive the image data captured by the camera, perform image preprocessing on the image data, and then transmit the preprocessed image data to the image signal processor in the application processor. In this processing method, the power consumption of the camera plug-in chip is relatively high. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a method, device and electronic device for processing image data, which can solve the problem of how to reduce the power consumption of a camera external chip.

[0004] In a first aspect, an embodiment of the present application provides a method for processing image data, the method comprising:

[0005] Acquire a target parameter, where the target parameter includes at least one of a shooting scene and a camera mode;

[0006] According to the target parameter, setting an operating mode of a first image processor, wherein the first image processor is connected to a first camera module and a second image processor of the electronic device respectively, and the operating mode includes a first operating mode or a second operating mode;

[0007] Wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor;

[0008] In the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

[0009] In a second aspect, a device for processing image data is provided, comprising:

[0010] A first processing module, configured to obtain a target parameter, wherein the target parameter includes at least one of a shooting scene and a camera mode;

[0011] A second processing module, configured to set a working mode of a first image processor according to the target parameter, wherein the first image processor is connected to a first camera module and a second image processor of the electronic device respectively, and the working mode includes a first working mode or a second working mode;

[0012] Wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor;

[0013] In the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0017] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0018] In an embodiment of the present application, the working mode of the first image processor is set according to the shooting scene and / or the camera mode, that is, it is determined according to the shooting scene and / or the camera mode whether the first image processor is required to perform image preprocessing on the image data collected by the camera, and when image preprocessing is not required, the image data collected by the camera is directly transmitted to the second image processor, thereby effectively reducing the power consumption of the first image processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is one of the flowcharts of the method for processing image data of an embodiment of the present application;

[0020] Figure 2 is a schematic diagram of the first working mode in an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of the second working mode in an embodiment of the present application;

[0022] Figure 4 This is one of the switching diagrams between the first working mode and the second working mode in the embodiment of the present application;

[0023] Figure 5 This is the second schematic diagram of switching between the first working mode and the second working mode in the embodiment of the present application;

[0024] Figure 6 This is a second flow chart of the method for processing image data according to an embodiment of the present application;

[0025] Figure 7 is a module schematic diagram of an image data processing device according to an embodiment of the present application;

[0026] Figure 8 It is one of the structural block diagrams of the electronic device according to the embodiment of the present application;

[0027] Fig. 9 This is the second structural block diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] The following is a detailed description of the image data processing method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0031] like Figure 1 As shown, the embodiment of the present application provides a method for processing image data, including:

[0032] Step 101: Acquire target parameters, where the target parameters include at least one of a shooting scene and a camera mode.

[0033] Optionally, the shooting scenes include outdoor shooting scenes, indoor shooting scenes, character shooting scenes, landscape shooting scenes, moving object shooting scenes, etc.

[0034] Optionally, the camera mode includes a shooting mode, a video recording mode, a preview mode, etc.

[0035] In the embodiment of the present application, different shooting scenes or different camera modes can be set to correspond to different working modes. Based on the above target parameters, the shooting requirements can be determined, thereby determining whether the first image processor is required to perform image preprocessing on the image data collected by the camera.

[0036] Step 102: setting a working mode of a first image processor according to the target parameter, wherein the first image processor is connected to a first camera module and a second image processor of the electronic device respectively, and the working mode includes a first working mode or a second working mode;

[0037] Wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor;

[0038] In the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

[0039] The first image processor mentioned above can be described as a camera plug-in chip.

[0040] The second image processor includes an image signal processing module in an application processor of the electronic device. The image signal processing module can also be described as an image signal processor (ISP).

[0041] The first working mode can be described as a digital bypass (DBP) working mode. Figure 2 As shown, in the first working mode, the first camera module and the second image processor are respectively connected to the port physical layer (Port Physics Layer, PHY) of the first image processor. The first image processor performs image preprocessing on the image data sent by the first camera module through the image processing module and then sends it to the second image processor.

[0042] Optionally, the image preprocessing includes but is not limited to pixel correction and bad pixel correction of phase detection (PD) points.

[0043] The second working mode can be described as an analog bypass (ABP) working mode. Figure 3 As shown, in the second working mode, the first camera module and the second image processor are not connected to the PHY of the first image processor. At this time, the information in the double data rate (DDR) synchronous dynamic random access memory (SDRAM) and static random access memory (SRAM) inside the first image processor is not lost. Except for the CPU and the interface for maintaining communication, other peripherals and algorithm IPs stop working or enter low power consumption mode.

[0044] In an embodiment of the present application, the working mode of the first image processor is set according to the shooting scene and / or the camera mode, that is, it is determined according to the shooting scene and / or the camera mode whether the first image processor is required to perform image preprocessing on the image data collected by the camera, and when image preprocessing is not required, the image data collected by the camera is directly transmitted to the second image processor, thereby effectively reducing the power consumption of the first image processor, and there is no need to stop the image data output by the camera, and will not affect the normal preview, photo taking, and video recording of the camera.

[0045] Optionally, obtain target parameters, including:

[0046] When the first condition is met, obtaining the target parameter;

[0047] The first condition includes at least one of the following:

[0048] The first camera module of the electronic device is turned on;

[0049] The camera mode and / or shooting scene of the electronic device changes, wherein the second camera module is not connected to the camera external chip.

[0050] In an embodiment of the present application, the target parameters are acquired and the working mode of the first image processor is set based on the target parameters when it is detected that the first camera module of the electronic device is turned on and / or when it is detected that the camera mode and / or shooting scene of the electronic device has changed. Instead of acquiring the target parameters in real time, this is beneficial to energy saving of the electronic device.

[0051] Optionally, after setting the working mode of the first image processor, the method further includes:

[0052] Detecting whether the target parameter changes;

[0053] When a change in the target parameter is detected, the working mode of the first image processor is switched according to the changed target parameter.

[0054] For example, Figure 4 As shown, the working mode of the first image processor is first set to the second working mode according to the target parameters. If it is subsequently detected that the target parameters have changed, and the working mode corresponding to the changed target parameters is the first working mode, the working mode of the first image processor is switched from the second working mode to the first working mode, thereby achieving energy saving of the first image processor.

[0055] In an embodiment of the present application, the first image processor can switch between the first working mode and the second working mode according to the target parameters, rather than working in a mode of always pre-processing the image data collected by the camera module, thereby saving energy consumption of the first image processor and saving memory of the first image processor.

[0056] Optionally, switching the working mode of the first image processor includes:

[0057] A working mode switching instruction is sent to the first image processor through a driving layer of the electronic device.

[0058] In the embodiment of the present application, when the first image processor switches between the first working mode and the second working mode, Figure 5 As shown, the electronic device sends a working mode switching instruction to the driver layer, and then uses software to drive input / output operations (input / output control, ioctl) to send the working mode switching instruction to the first image signal processor. During the transmission of the working mode switching signaling, the camera module has been transmitting image data to the first image processor, that is, the above working mode switching process only needs to be performed inside the first image processor, and there is no need to stop the camera from outputting image data to the first image processor, which does not affect the normal preview, photo taking and video recording of the camera. Therefore, the above switching working mode can also be described as a seamless switching working mode.

[0059] Optionally, setting a working mode of the first image processor according to the target parameter includes:

[0060] Determine the working mode corresponding to the target parameter according to a preset corresponding relationship, wherein the preset corresponding relationship includes at least one of a first corresponding relationship and a second corresponding relationship, the first corresponding relationship is a corresponding relationship between a shooting scene and a working mode, and the second corresponding relationship is a corresponding relationship between a camera mode and a working mode;

[0061] The working mode corresponding to the target parameter is set as the working mode of the first image processor.

[0062] In the embodiment of the present application, the correspondence between different shooting scenes or different camera modes and the working modes is preset, so as to facilitate the subsequent determination of the working mode of the first image processor based on the correspondence.

[0063] Combine the following Figure 6 The overall process of the image data processing method of the embodiment of the present application is described.

[0064] like Figure 6 As shown, the processing method includes:

[0065] Step 1: Open the camera.

[0066] Step 2: Determine whether to turn on the first camera module connected to the first image processor.

[0067] Step 31: If the first camera module is turned on, determine whether the current shooting scene is a scene that requires a first image processor.

[0068] Specifically, it is determined based on the target parameters whether the first image processor is required to preprocess the image data collected by the first camera module. If necessary, it is determined that the current shooting scene is a scene requiring the first image processor. Otherwise, it is determined that the current shooting scene is not a scene requiring the first image processor.

[0069] Step 32: If the first camera module is not turned on, jump to step 5.

[0070] Step 41: If the current shooting scene is a scene that requires the first image processor, the working mode of the first image processor is set to the DBP working mode.

[0071] Step 42: If the current shooting scene is not a scene that requires the first image processor, the working mode of the first image processor is set to the ABP working mode.

[0072] Step 5: Turn on the camera preview mode.

[0073] Step 6: Determine whether the shooting scene or camera mode has changed.

[0074] Step 71: If a change occurs, jump to step 2.

[0075] Step 72: If no change occurs, maintain the current working mode.

[0076] In addition, when an instruction to exit the camera is received, the first image processor will be powered off.

[0077] In the embodiment of the present application, if the first image processor does not need to process image data in the current shooting scene, its working mode is set to the DBP mode, otherwise, it is set to the ABP working mode. Moreover, after detecting a change in the shooting scene or the camera mode, the working mode of the first image processor is reset, and seamless switching between the DBP working mode and the ABP working mode can be achieved.

[0078] The image data processing method provided in the embodiment of the present application can be executed by an image data processing device. In the embodiment of the present application, the image data processing device provided in the embodiment of the present application is described by taking the image data processing device executing the image data processing method as an example.

[0079] like Figure 7 As shown, the embodiment of the present application provides an image data processing device 700, including:

[0080] A first processing module 701 is used to obtain a target parameter, where the target parameter includes at least one of a shooting scene and a camera mode;

[0081] A second processing module 702 is used to set a working mode of a first image processor according to the target parameter, wherein the first image processor is connected to a first camera module and a second image processor of the electronic device respectively, and the working mode includes a first working mode or a second working mode;

[0082] Wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor;

[0083] In the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

[0084] Optionally, the first processing module is used to:

[0085] When the first condition is met, obtaining the target parameter;

[0086] The first condition includes at least one of the following:

[0087] The first camera module of the electronic device is turned on;

[0088] The camera mode and / or shooting scene of the electronic device changes, wherein the second camera module is not connected to the camera external chip.

[0089] Optionally, the device of the embodiment of the present application further includes:

[0090] A third processing module is used to detect whether the target parameter changes;

[0091] The fourth processing module is used to switch the working mode of the first image processor according to the changed target parameter when a change in the target parameter is detected.

[0092] Optionally, the fourth processing module is used to send a working mode switching instruction to the first image processor through a driving layer of the electronic device.

[0093] Optionally, the second processing module is used to:

[0094] Determine the working mode corresponding to the target parameter according to a preset corresponding relationship, wherein the preset corresponding relationship includes at least one of a first corresponding relationship and a second corresponding relationship, the first corresponding relationship is a corresponding relationship between a shooting scene and a working mode, and the second corresponding relationship is a corresponding relationship between a camera mode and a working mode;

[0095] The working mode corresponding to the target parameter is set as the working mode of the first image processor.

[0096] In an embodiment of the present application, the working mode of the first image processor is set according to the shooting scene and / or the camera mode, that is, it is determined according to the shooting scene and / or the camera mode whether the first image processor is required to perform image preprocessing on the image data collected by the camera, and when image preprocessing is not required, the image data collected by the camera is directly transmitted to the second image processor, thereby effectively reducing the power consumption of the first image processor, and there is no need to stop the image data output by the camera, and will not affect the normal preview, photo taking, video recording and other processing of the camera.

[0097] The image data processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0098] The image data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0099] The image processing device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0100] Alternatively, if Figure 8 As shown, an embodiment of the present application further provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned image data processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0101] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0102] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0103] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0104] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0105] Among them, processor 910 is used to obtain target parameters, and the target parameters include at least one of a shooting scene and a camera mode; according to the target parameters, the working mode of the first image processor is set, wherein the first image processor is respectively connected to the first camera module and the second image processor of the electronic device, and the working mode includes a first working mode or a second working mode; wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor; in the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

[0106] In an embodiment of the present application, the working mode of the first image processor is set according to the shooting scene and / or the camera mode, that is, it is determined according to the shooting scene and / or the camera mode whether the first image processor is required to perform image preprocessing on the image data collected by the camera, and when image preprocessing is not required, the image data collected by the camera is directly transmitted to the second image processor, thereby effectively reducing the power consumption of the first image processor, and there is no need to stop the image data output by the camera, and will not affect the normal preview, photo taking, video recording and other processing of the camera.

[0107] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0108] The memory 909 can be used to store software programs and various data. The memory 909 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 909 may include a volatile memory or a non-volatile memory, or the memory 909 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0109] The processor 910 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 910.

[0110] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned image data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0111] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0112] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0113] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0114] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image data processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0115] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0117] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for processing image data, characterized in that: include: Acquire a target parameter, where the target parameter includes at least one of a shooting scene and a camera mode; According to the target parameter, setting an operating mode of a first image processor, wherein the first image processor is connected to a first camera module and a second image processor of the electronic device respectively, and the operating mode includes a first operating mode or a second operating mode; Wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor; In the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

2. The method according to claim 1, characterized in that Get target parameters, including: When the first condition is met, obtaining the target parameter; The first condition includes at least one of the following: The first camera module of the electronic device is turned on; The camera mode and / or shooting scene of the electronic device changes.

3. The method according to claim 1 or 2, characterized in that: After setting the working mode of the first image processor, the method further includes: Detecting whether the target parameter changes; When a change in the target parameter is detected, the working mode of the first image processor is switched according to the changed target parameter.

4. The method according to claim 3, characterized in that Switching the working mode of the first image processor includes: A working mode switching instruction is sent to the first image processor through a driving layer of the electronic device.

5. The method according to claim 1, characterized in that: According to the target parameter, setting the working mode of the first image processor includes: Determine the working mode corresponding to the target parameter according to a preset corresponding relationship, wherein the preset corresponding relationship includes at least one of a first corresponding relationship and a second corresponding relationship, the first corresponding relationship is a corresponding relationship between a shooting scene and a working mode, and the second corresponding relationship is a corresponding relationship between a camera mode and a working mode; The working mode corresponding to the target parameter is set as the working mode of the first image processor.

6. An image data processing device, characterized in that: include: A first processing module, configured to obtain a target parameter, wherein the target parameter includes at least one of a shooting scene and a camera mode; A second processing module, configured to set a working mode of a first image processor according to the target parameter, wherein the first image processor is connected to a first camera module and a second image processor of the electronic device respectively, and the working mode includes a first working mode or a second working mode; Wherein, in the first working mode, the first image processor performs image preprocessing on the image data collected by the first camera module, and sends the image data after image preprocessing to the second image processor; In the second working mode, the first image processor directly sends the image data collected by the first camera module to the second image processor.

7. The device according to claim 6, characterized in that The first processing module is used for: When the first condition is met, obtaining the target parameter; The first condition includes at least one of the following: The first camera module of the electronic device is turned on; The camera mode and / or shooting scene of the electronic device changes.

8. The device according to claim 6 or 7, characterized in that Also includes: A third processing module is used to detect whether the target parameter changes; The fourth processing module is used to switch the working mode of the first image processor according to the changed target parameter when a change in the target parameter is detected.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for processing image data according to any one of claims 1 to 5 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for processing image data according to any one of claims 1 to 5 are implemented.

11. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the method for processing image data as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Image processing method and device and electronic equipment

    CN114268707A

  • Shooting method and device and electronic equipment

    CN114979453A

  • Scene map construction method and device, electronic equipment and storage medium

    CN117132726A

  • Photographing method, photographing apparatus, electronic device and readable storage medium

    WO2023160496A1

Cited By

  • Electronic device, terminal, and image information processing system and method

    WO2026184759A1