Image data processing method, device and electronic equipment
By adjusting the image processor's operating mode according to the shooting scene and camera mode, the problem of high power consumption of external camera chips is solved, and energy-saving operation of the camera is achieved.
Patent Information
- Application Number
- CN202411344823.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-09-25
AI Technical Summary
External chips for cameras consume a lot of power, which affects the energy efficiency of mobile phone cameras.
The first image processor dynamically adjusts its operating mode according to the shooting scene and camera mode, and reduces unnecessary image preprocessing steps by switching between digital bypass mode and analog bypass mode, directly transmitting image data to the second image processor.
It effectively reduced the power consumption of the first image processor, while maintaining the camera's normal preview, photo taking, and video recording functions, thus achieving energy-saving effects.
Smart Images

Figure CN119211710B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of image processing, and particularly relates to an image data processing method and device and electronic equipment. BACKGROUND
[0002] In order to improve the image effect of preview and shooting of a mobile phone camera, more and more mobile phones begin to mount a camera external chip. The camera external chip is arranged between an image sensor and an image signal processor in an application processor. After the camera is opened, the camera external chip is also powered on synchronously, receives image data captured by a camera, performs image preprocessing on the image data, and then transmits the preprocessed image data to the image signal processor in the application processor. In this processing mode, the power consumption of the camera external chip is high. SUMMARY
[0003] The embodiments of the present application aim to provide an image data processing method, device and electronic equipment, and can solve the problem of how to reduce the power consumption of a camera external chip.
[0004] In a first aspect, the embodiments of the present application provide an image data processing method, which comprises:
[0005] obtaining a target parameter, wherein the target parameter comprises at least one of a shooting scene and a camera mode;
[0006] setting a working mode of a first image processor according to the target parameter, wherein the first image processor is connected with a first camera module and a second image processor of an electronic device respectively, and the working mode comprises a first working mode or a second working mode;
[0007] wherein in the first working mode, the first image processor performs image preprocessing on 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, an image data processing device is provided, which comprises:
[0010] a first processing module configured to obtain a target parameter, wherein the target parameter comprises 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 with 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] In the first working mode, the first image processor performs image preprocessing on 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 electronic device is provided, which includes a processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the method in the first aspect.
[0015] In a fourth aspect, a readable storage medium is provided, the readable storage medium stores programs or instructions, and the programs or instructions are executed by a processor to implement the steps of the method in the first aspect.
[0016] In a fifth aspect, a chip is provided, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is configured to run programs or instructions to implement the method in the first aspect.
[0017] In a sixth aspect, a computer program product is provided, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect.
[0018] In the embodiments 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, whether the first image processor needs to perform image preprocessing on the image data collected by the camera is determined according to the shooting scene and / or the camera mode, and in the case where image preprocessing is not needed, 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 DRAWINGS
[0019] Figure 1 is one of the flow diagrams of the image data processing method of the embodiments of the present application;
[0020] Figure 2 is a schematic diagram of the first working mode in the embodiments of the present application;
[0021] Figure 3 is a schematic diagram of a second working mode in an embodiment of the present application;
[0022] Figure 4 is one of the schematic diagrams of switching between the first working mode and the second working mode in an embodiment of the present application;
[0023] Figure 5 is another of the schematic diagrams of switching between the first working mode and the second working mode in an embodiment of the present application;
[0024] Figure 6 is another of the schematic diagrams of the image data processing method in an embodiment of the present application;
[0025] Figure 7 is a module schematic diagram of the image data processing apparatus in an embodiment of the present application;
[0026] Figure 8 is one of the structural block diagrams of the electronic device in an embodiment of the present application;
[0027] Figure 9 is another of the structural block diagrams of the electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0029] The terms "first", "second", and the like 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 interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually a category, and are not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.
[0030] The image data processing method provided by the embodiments of the present application will be described in detail below with reference to the drawings, specific embodiments and application scenarios.
[0031] As shown in Figure 1 , the present application provides an image data processing method, comprising:
[0032] Step 101: obtaining a target parameter, the target parameter comprising at least one of a shooting scene and a camera mode.
[0033] Optionally, the shooting scene comprises an outdoor shooting scene, an indoor shooting scene, a person shooting scene, a landscape shooting scene, a moving object shooting scene, etc.
[0034] Optionally, the camera mode comprises a shooting mode, a video recording mode, a preview mode, etc.
[0035] In the embodiments of the present application, different shooting scenes or different camera modes can correspond to different working modes. Based on the above target parameter, the shooting requirement can be determined, so as to determine whether the first image processor is needed 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 with a first camera module and a second image processor of an electronic device respectively, and the working mode comprises a first working mode or a second working mode.
[0037] 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 above first image processor can be described as a camera external chip.
[0040] The above second image processor comprises an image signal processing module in an application processor of the electronic device, which can also be described as an image signal processor (ISP).
[0041] The above first working mode can be described as a digital bypass (DBP) working mode, as shown in Figure 2 In the first working mode, the first camera module and the second image processor are connected with the port physics layer (PHY) of the first image processor respectively, and the first image processor sends the second image processor after performing image preprocessing on the image data sent by the first camera module through the image processing module.
[0042] Optionally, the image preprocessing includes, but is not limited to, pixel correction of a phase detection (PD) point, bad point correction, and the like.
[0043] The second working mode can be described as an analog bypass (ABP) working mode, as shown in the following figure. Figure 3 In the second working mode, the first camera module and the second image processor are not connected with the PHY of the first image processor, at this time, information in a double data rate (DDR) synchronous dynamic random access memory (SDRAM) and a static random-access memory (SRAM) inside the first image processor is not lost, and all peripherals and algorithm IPs except the CPU and the interface for maintaining communication are stopped or enter a low-power mode.
[0044] In the embodiments 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, whether the first image processor needs to perform image preprocessing on the image data collected by the camera is determined according to the shooting scene and / or the camera mode, and in the case where image preprocessing is not needed, 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 without stopping the image data output by the camera, the normal preview, shooting, and video recording of the camera are not affected.
[0045] Optionally, the target parameter is obtained, including:
[0046] In the case where the first condition is met, the target parameter is obtained;
[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 the shooting scene of the electronic device changes, and the second camera module is not connected with the camera external chip.
[0050] In the embodiments of the present application, the target parameter is obtained only in the case where the first camera module of the electronic device is turned on and / or the camera mode and / or the shooting scene of the electronic device changes, and the working mode of the first image processor is set based on the target parameter, rather than obtaining the target parameter in real time, which is beneficial to the energy saving of the electronic device.
[0051] Optionally, after setting the working mode of the first image processor, the method further comprises:
[0052] detecting whether the target parameter changes;
[0053] In the case where it is detected that the target parameter changes, switching the working mode of the first image processor according to the changed target parameter.
[0054] For example, as shown in Figure 4 , first, the working mode of the first image processor is set to the second working mode according to the target parameter, and then it is detected that the target parameter changes, and the working mode corresponding to the changed target parameter is the first working mode, so the working mode of the first image processor is switched from the second working mode to the first working mode, thereby realizing energy saving of the first image processor.
[0055] In the embodiment of the application, the first image processor can be switched between the first working mode and the second working mode according to the target parameter, rather than working in a mode of always preprocessing the image data collected by the camera module, thereby saving the energy consumption of the first image processor and saving the memory of the first image processor.
[0056] Optionally, the switching processing of the working mode of the first image processor comprises:
[0057] sending a working mode switching instruction to the first image processor through the driver layer of the electronic device.
[0058] In the embodiment of the application, when the first image processor is switched between the first working mode and the second working mode, as shown in Figure 5 , the electronic device sends a working mode switching instruction to the driver layer, and then uses a software driver input / output control (ioctl) to send the working mode switching instruction to the first image signal processor. In the transmission process of the working mode switching instruction, the camera module is always transmitting image data to the first image processor, that is, only the internal process of the first image processor is needed in the above working mode switching process, and the camera does not need to stop outputting image data to the first image processor, and the normal preview, shooting and video recording processes of the camera are not affected, so the above switching of the working mode can also be described as seamless switching of the working mode.
[0059] Optionally, setting the working mode of the first image processor according to the target parameter comprises:
[0060] According to a preset correspondence relationship, a working mode corresponding to the target parameter is determined, wherein the preset correspondence relationship includes at least one of a first correspondence relationship and a second correspondence relationship, the first correspondence relationship is a correspondence relationship between a shooting scene and a working mode, and the second correspondence relationship is a correspondence 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 embodiments of the present application, the correspondence relationship between different shooting scenes or different camera modes and working modes is set in advance, so as to facilitate subsequent determination of the working mode of the first image processor based on the correspondence relationship.
[0063] The overall flow of the image data processing method of the embodiments of the present application will be described below. Figure 6
[0064] As shown in the figure, the processing method includes: Figure 6
[0065] Step 1: Turn on the camera.
[0066] Step 2: Determine whether the first camera module connected with the first image processor is turned on.
[0067] Step 31: If the first camera module is turned on, determine whether the current shooting scene is a scene requiring the first image processor.
[0068] Specifically, according to the target parameter, it is determined whether the first image processor is required to preprocess the image data collected by the first camera module, if required, 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 requiring the first image processor, set the working mode of the first image processor as the DBP working mode.
[0071] Step 42: If the current shooting scene is not a scene requiring the first image processor, set the working mode of the first image processor as the ABP working mode.
[0072] Step 5: Turn on the camera preview mode.
[0073] Step 6: Determine whether the shooting scene or the camera mode has changed.
[0074] Step 71: If changed, jump to step 2.
[0075] Step 72: if no change occurs, the current working mode is maintained.
[0076] In addition, when receiving an instruction to exit the camera, the first image processor is powered down.
[0077] In the embodiments of the present application, if the first image processor is not needed to process image data in the current shooting scene, the working mode of the first image processor is set to the DBP mode, otherwise, the working mode of the first image processor is set to the ABP working mode. Moreover, after detecting that the shooting scene or the camera mode changes, 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 realized.
[0078] The image data processing method provided in the embodiments of the present application can be executed by an image data processing device. In the embodiments of the present application, the image data processing device executing the image data processing method is taken as an example to illustrate the image data processing device provided in the embodiments of the present application.
[0079] As shown in Figure 7 The embodiments of the present application provide an image data processing device 700, which comprises:
[0080] A first processing module 701 is configured to acquire a target parameter, wherein the target parameter comprises at least one of a shooting scene and a camera mode.
[0081] A second processing module 702 is configured to set a working mode of a first image processor according to the target parameter, wherein the first image processor is connected with a first camera module and a second image processor of an electronic device respectively, and the working mode comprises a first working mode or a second working mode.
[0082] In the first working mode, the first image processor performs image preprocessing on 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 configured to:
[0085] acquire the target parameter in the case of satisfying a first condition.
[0086] The first condition comprises at least one of the following:
[0087] The first camera module of the electronic device is turned on.
[0088] The camera mode and / or the shooting scene of the electronic device changes, wherein the second camera module is not connected with the camera external chip.
[0089] Optionally, the apparatus of the embodiment of the present application further comprises:
[0090] The third processing module is configured to detect whether the target parameter changes.
[0091] The fourth processing module is configured to, in the case that the target parameter is detected to change, switch the working mode of the first image processor according to the changed target parameter.
[0092] Optionally, the fourth processing module is configured 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 configured to:
[0094] According to a preset correspondence relationship, determine the working mode corresponding to the target parameter, wherein the preset correspondence relationship comprises at least one of a first correspondence relationship and a second correspondence relationship, the first correspondence relationship is a correspondence relationship between a shooting scene and a working mode, and the second correspondence relationship is a correspondence relationship between a camera mode and a working mode.
[0095] Set the working mode corresponding to the target parameter as the working mode of the first image processor.
[0096] In the 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, whether the first image processor needs to perform image preprocessing on the image data collected by the camera is determined according to the shooting scene and / or the camera mode. In the case that image preprocessing is not needed, 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 the image data output by the camera does not need to be stopped, and the normal preview, shooting and video recording of the camera are not affected.
[0097] The image data processing apparatus in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, a self-service machine, or the like. The embodiments of the present application are not limited in this regard.
[0098] The image data processing apparatus in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems. The embodiments of the present application are not limited in this regard.
[0099] The image processing apparatus provided in the embodiments of the present application can implement Figures 1 to 6 The method embodiments implement various processes, which will not be repeated here to avoid repetition.
[0100] Optionally, as shown in Figure 8 The embodiments of the present application also provide an electronic device 800, which includes a processor 801 and a memory 802. The memory 802 stores programs or instructions that can run on the processor 801. When the programs or instructions are executed by the processor 801, various steps of the above image data processing method embodiments are implemented, and the same technical effects are achieved. To avoid repetition, these will not be repeated here.
[0101] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.
[0102] Figure 9 To implement the hardware structure of an electronic device according to 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, etc.
[0104] Those skilled in the art can understand that the electronic device 900 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 910 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.
[0105] The processor 910 is configured to obtain a target parameter, the target parameter including at least one of a shooting scene and a camera mode; and set a working mode of a first image processor according to the target parameter, the working mode including a first working mode or a second working mode, the first image processor being connected to a first camera module and a second image processor of the electronic device respectively; in the first working mode, the first image processor performs image preprocessing on image data collected by the first camera module and sends the image data after image preprocessing to the second image processor; and 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 the embodiments 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, whether the first image processor needs to perform image preprocessing on the image data collected by the camera is determined according to the shooting scene and / or the camera mode, and in the case where image preprocessing is not needed, 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 without stopping the image data output by the camera, the normal preview, shooting, and video recording of the camera are not affected.
[0107] It should be understood that in the embodiments of the present application, the input unit 904 can include a graphics processing unit (GPU) 9041 and a microphone 9042. The graphics processing unit 9041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 can include a display panel 9061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 can include two parts of a touch detection device and a touch controller. The other input devices 9072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.
[0108] The memory 909 can be used to store software programs and various data. The memory 909 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 909 can include a volatile memory or a non-volatile memory, or the memory 909 can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can 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 (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link DRAM (SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 909 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0109] The processor 910 can 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 an application program, and the modem processor mainly processes a wireless communication signal, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 910.
[0110] The embodiment of the present application further provides a readable storage medium, and the readable storage medium stores a program or instructions, the program or instructions are executed by a processor to realize each process of the image data processing method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0111] The processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0112] The embodiment of the present application further provides a chip, and the chip includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is used to run a program or instructions to realize each process of the image data processing method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0113] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system, or a system on chip, etc.
[0114] The 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 realize each process of the image data processing method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0115] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations 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 but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element. Furthermore, it is to be understood that the method and apparatus of the present application can be carried out by more than one process, method, article, or apparatus either simultaneously, concurrently, or with intervening action that are carried out at the same time, either in a simultaneous fashion or in a fashion that is interleaved in time. For example, the described methods can be performed in a different order from that described, and / or various steps can be combined or omitted, and / or additional steps can be added, without departing from the scope of the present application. Also, features described with respect to certain examples can be combined in other examples.
[0116] From the above description of the embodiments, it is apparent that the above-mentioned method can be realized by means of software and necessary universal hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solution of the present application can be embodied in the form of computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) execute the method described in various embodiments of the present application.
[0117] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, rather than limiting, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A method of processing image data, characterized by, The method comprises: obtaining a target parameter, the target parameter comprising at least one of a shooting scene and a camera mode; setting a working mode of a first image processor according to the target parameter, wherein the first image processor is connected with a first camera module and a second image processor of an electronic device respectively, and the working mode comprises a first working mode or a second working mode; wherein in the first working mode, the first image processor performs image preprocessing on 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 of claim 1, wherein, Obtaining a target parameter comprises: in the case of satisfying a first condition, obtaining a target parameter; the first condition comprises at least one of: the first camera module of the electronic device is turned on; the camera mode and / or the 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 comprises: detecting whether the target parameter changes; in the case of detecting that the target parameter changes, switching the working mode of the first image processor according to the changed target parameter.
4. The method of claim 3, wherein, Switching the working mode of the first image processor comprises: sending a working mode switching instruction to the first image processor through the driving layer of the electronic device.
5. The method of claim 1, wherein, Setting the working mode of the first image processor according to the target parameter comprises: determining the working mode corresponding to the target parameter according to a preset correspondence relationship, wherein the preset correspondence relationship comprises at least one of a first correspondence relationship and a second correspondence relationship, the first correspondence relationship is the correspondence relationship between the shooting scene and the working mode, and the second correspondence relationship is the correspondence relationship between the camera mode and the working mode; setting the working mode corresponding to the target parameter as the working mode of the first image processor.
6. An image data processing apparatus characterized by comprising: The method comprises: a first processing module, configured to obtain a target parameter, the target parameter comprising 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 with a first camera module and a second image processor of an electronic device respectively, and the working mode comprises a first working mode or a second working mode; wherein in the first working mode, the first image processor performs image preprocessing on 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 apparatus of claim 6, wherein, The first processing module is configured to: obtain a target parameter in the case of satisfying a first condition; the first condition comprises at least one of: the first camera module of the electronic device is turned on; the camera mode and / or the shooting scene of the electronic device changes.
8. The apparatus of claim 6 or 7, wherein, Further comprising: a third processing module configured to detect whether the target parameter has changed; a fourth processing module configured to, in a case where it is detected that the target parameter has changed, switch the working mode of the first image processor according to the changed target parameter.
9. An electronic device, comprising: a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions being executed by the processor to implement the steps of the image data processing method according to any one of claims 1-5.
10. A readable storage medium, characterized by, a readable storage medium storing a program or instructions, the program or instructions being executed by a processor to implement the steps of the image data processing method according to any one of claims 1-5.
11. A computer program product, characterised in that, computer instructions, the computer instructions being executed by a processor to implement the steps of the image data processing method according to any one of claims 1-5.
Citation Information
Patent Citations
Image processing method and device and electronic equipment
CN114268707A
Scene map construction method and device, electronic equipment and storage medium
CN117132726A