An image processing method, an electronic device, a storage medium and a program product
By generating low-resolution images from the image sensor and adapting them to the camera's FOV value, the high power consumption problem caused by the image sensor processing images from different field of view angles is solved, achieving reduced power consumption and extended battery life while ensuring image quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-11-20
- Publication Date
- 2026-05-22
AI Technical Summary
In existing technologies, image sensors do not perform targeted processing on images captured by cameras from different field of view in different scenarios, resulting in high power consumption, reduced battery life, and negatively impacting user experience.
By processing images captured by the camera at a resolution lower than the maximum resolution generated by the image sensor, the power consumption of the image sensor and image signal processor is reduced. Customized resolution is used to generate images that are adapted to the camera's FOV value, reducing the transmission of full-size maximum FOV image data.
It effectively reduces the power consumption of electronic devices, extends battery life, improves the user experience, and ensures image quality.
Smart Images

Figure CN122073640A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and more particularly to image processing methods, electronic devices, storage media, and program products. Background Technology
[0002] Currently, mobile phones have become common shooting tools for people to record wonderful moments in life. Mobile phones with shooting capabilities generally have cameras. Different focal lengths of the camera correspond to different fields of view; the longer the focal length, the smaller the field of view, and vice versa. Users can choose different focal lengths according to the scene. Currently, image sensors do not specifically process images captured by the camera from different fields of view in different scenes, resulting in high power consumption, reduced battery life, and a negative impact on user experience. Summary of the Invention
[0003] This application provides an image processing method, an electronic device, a storage medium, and a program product, which can reduce the power consumption generated by the electronic device during shooting.
[0004] The first aspect of this application provides an image processing method applied to an electronic device, the electronic device including a camera, the camera including an image sensor, characterized in that it includes...
[0005] In the first camera mode, the camera captures an image with a first FOV value, and the image sensor generates a first image. The resolution of the first image is less than the resolution of the second image generated by the image sensor, and the second image corresponds to the image with the maximum FOV value captured by the camera.
[0006] Process the first image to obtain the first preview image;
[0007] Display the first preview image.
[0008] In this method, the electronic device can capture an image with a first field of view (FOV) value using a camera in a first camera mode, and generate a first image using an image sensor. The resolution of the first image is lower than that of a second image generated by the image sensor. The second image corresponds to the image with the maximum FOV value captured by the camera. The first image is then processed to obtain a first preview image. Because the image resolution and image size are reduced during processing by the image sensor and image signal processor, the power consumption of the electronic device can be reduced, battery life can be extended, and the user experience can be improved.
[0009] In an optional embodiment of the first aspect, the method further includes the camera capturing an image with a second FOV value, the image sensor generating a third image, wherein the second FOV value is smaller than the first FOV value, and the resolution of the third image is smaller than the resolution of the first image. In this embodiment, the camera captures an image with a smaller FOV value, and the image sensor correspondingly generates an image with a lower resolution, which can further reduce the processing power consumption of the electronic device.
[0010] In one optional embodiment of the first aspect, the camera captures an image at a first FOV value, and the image sensor generates the first image by: the image sensor defaults to generating a fourth image, the fourth image having the lowest resolution, the fourth image corresponding to the image at the lowest FOV value captured by the camera; when the electronic device receives an instruction to capture an image at the first FOV value, the image sensor generates the first image. In this embodiment, by setting the image sensor to default to generating an image at the lowest resolution, power consumption of the electronic device can be avoided. The image sensor only generates the first image when it receives a user instruction to capture an image at the first FOV value, thus not affecting the imaging effect of the electronic device.
[0011] In an optional embodiment of the first aspect, the image processing method further includes, after displaying the first preview image, obtaining a target image in response to a photo-taking command, wherein the resolution of the target image is greater than the display resolution. This embodiment not only ensures reduced power consumption of the electronic device during image processing but also guarantees good image quality for the obtained target image.
[0012] In one alternative embodiment of the first aspect, in a second camera mode, the electronic device captures an image with a first field of view (FOV), and the image sensor generates a fifth image, the resolution of which is lower than that of the first image. The second camera mode is a power-consuming mode; by further reducing the resolution to obtain the fifth image, power consumption of the electronic device can be reduced, thus improving its battery life.
[0013] A second aspect of this application provides an electronic device, characterized in that the electronic device includes, in a first camera mode, a camera for capturing an image with a first field of view (FOV); an image sensor for generating a first image, wherein the resolution of the first image is less than the resolution of a second image generated by the image sensor, and the second image corresponds to an image captured by the camera at its maximum FOV value; an image signal processor for processing the first image to obtain a first preview image; and a display screen for displaying the first preview image.
[0014] In one alternative embodiment of the second aspect, the camera captures an image of a second FOV value, the image sensor generates a third image, the second FOV value is smaller than the first FOV value, and the resolution of the third image is smaller than the resolution of the first image.
[0015] In one optional embodiment of the second aspect, the camera captures an image of a first FOV value, and the image sensor generates the first image, including by default generating a fourth image, the fourth image having a minimum resolution, the fourth image corresponding to the image of the minimum FOV value captured by the camera; when the electronic device receives an instruction to capture an image of the first FOV value, the image sensor generates the first image.
[0016] In an alternative implementation of the second aspect, in the second camera mode, the camera captures an image of a first FOV value, and the image sensor generates a fifth image, the resolution of which is less than that of the first image.
[0017] A third aspect of this application provides a computer-readable storage medium, characterized in that it includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in any one of the first aspects.
[0018] A fourth aspect of this application provides a computer program product, characterized in that, when the computer program product is run on a computer, it causes the computer to perform the method described in any one of the first aspects above.
[0019] Understandably, the beneficial effects that the electronic device of the second aspect, the computer-readable storage medium of the third aspect, and the computer program product of the fourth aspect can achieve can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description
[0020] Figure 1 This is a schematic flowchart of an image processing method disclosed in an embodiment of this application;
[0021] Figure 2 This is a schematic flowchart of another image processing method disclosed in an embodiment of this application;
[0022] Figure 3 This is a schematic flowchart of another image processing method disclosed in the embodiments of this application;
[0023] Figure 4 This is a schematic flowchart of another image processing method disclosed in the embodiments of this application;
[0024] Figure 5This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] It should be noted that the terms "first," "second," "third," and "fourth" in the claims and specification of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features, nor are they used to describe a particular order. The terms "comprising" and "having," and any variations thereof, in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatuses. In the description of these embodiments, unless otherwise stated, "a plurality of" means two or more.
[0027] The technical solutions of this application can be applied to all electronic devices with cameras. These electronic devices can be mobile or fixed, such as cameras, camcorders, mobile phones, tablet personal computers, smart TVs, laptop computers, personal digital assistants (PDAs), personal computers, or wearable devices like smartwatches. This application does not limit the scope of these applications. A detailed description follows with reference to the accompanying drawings.
[0028] Please refer to Figure 1 , Figure 1 This is a schematic flowchart of an image processing method disclosed in an embodiment of this application. Figure 1 The above,
[0029] This method can be applied to the aforementioned electronic devices, and the method may include the following steps:
[0030] 101. In the first camera mode, the camera captures the image at the first FOV value, and the image sensor generates the first image. The resolution of the first image is less than the resolution of the second image generated by the image sensor. The second image corresponds to the image at the maximum FOV value captured by the camera.
[0031] It should be understood that the area that a camera can cover is called the field of view (FOV). Anything beyond this angle will not be displayed in the camera's imaging area. The field of view is usually expressed in degrees. The area covered by the visible image of the subject formed on the focal plane through the camera is called the field of view.
[0032] The camera in this application embodiment is a camera of an electronic device. In one embodiment, the camera is a front-facing camera, for example, a front-facing wide-angle camera. Optionally, the electronic device used in this application embodiment may include multiple cameras. The electronic device may pre-set a first camera as the main camera, which can capture images with different FOV values. The second camera is an auxiliary camera. When the camera function of the camera device is activated, the main camera is used by default for shooting. This application embodiment does not limit this.
[0033] Optionally, the maximum FOV value is the maximum capability value of the camera, and the first FOV value or the second FOV value is the field of view value of the camera. The first FOV value is less than the maximum FOV value, and the FOV of the camera can be adjusted between the field of view value and the maximum capability value.
[0034] It should be understood that zoom magnification refers to the optical zoom capability of a camera. A camera on an electronic device has multiple zoom levels. By increasing the zoom magnification, the user can continuously magnify the subject in the viewfinder, and by decreasing the zoom magnification, the subject can continuously shrink in the viewfinder. Therefore, users can select the zoom magnification using the zoom options on the electronic device to obtain different FOV values; alternatively, they can use gesture commands on the electronic device's display screen to select the zoom magnification and obtain different FOV values.
[0035] For example, an electronic device's camera has a maximum FOV of 100°, corresponding to a zoom ratio of 0.7; a camera FOV of 90°, corresponding to a zoom ratio of 0.9; a camera FOV of 84°, corresponding to a zoom ratio of 1; and a camera FOV of 48°, corresponding to a zoom ratio of 2.
[0036] It should be understood that different electronic devices may have different default zoom ratios. For example, some mobile phones have a zoom ratio of 1, some have a zoom ratio of 0.8, and some have a zoom ratio of 2. The default zoom ratio is the optimal zoom ratio determined by taking into account the maximum FOV value of the electronic device's camera and the user's preferences. After the default zoom ratio is determined, other zoom ratios are designed based on the maximum FOV value of the camera.
[0037] Optionally, the power consumption of the electronic device can be reduced by receiving instructions from an app in the electronic device to generate images of different resolutions when the camera captures images with different FOV values.
[0038] In one embodiment, the image sensor before the improvement generates a second image corresponding to the maximum FOV value of the camera by default. Since the second image has the highest resolution and the largest size, the image signal processor then processes and crops the large second image, which increases the power consumption of the electronic device. Therefore, the improved image sensor generates a first image with a lower resolution than the second image after receiving the first FOV value image, and no subsequent cropping or other processing is required, which can reduce the power consumption of the electronic device.
[0039] Optionally, the first camera mode can be a normal shooting mode. For example, when the camera captures an image with a maximum FOV of 100°, the resolution of the second image generated by the image sensor is 4160×3120. When the camera captures an image with a first FOV of 90°, the resolution of the first image generated by the image sensor is less than the resolution of the second image. The resolution of the first image can be 3744×2800.
[0040] 102. Process the first image to obtain the first preview image.
[0041] In this embodiment, the electronic device processes a first image to obtain a first preview image. For example, the electronic device is configured with an Image Signal Processor (ISP). The ISP processes the image transmitted from the image sensor, including image depigmentation, image noise reduction, white balance and color space transformation, color enhancement, and tone mapping. These steps can map the image transmitted from the image sensor to the sRGB (standard Red Green Blue) universal color standard, helping people obtain color images that are more consistent with the characteristics of human vision.
[0042] The processing of the first image can be set and changed as needed, and this application embodiment does not impose any restrictions on this.
[0043] 103. Display the first preview image.
[0044] In this embodiment, when using a camera, the image sensor generates a customized image with a certain resolution that is adapted to the camera's FOV value. This eliminates the need to transmit full-size maximum FOV image data, reducing the power consumption of the image sensor and image signal processor in transmitting and processing images. Consequently, it reduces the power consumption generated during shooting and extends the battery life of electronic devices.
[0045] Please see Figure 2 , Figure 2 This is a schematic flowchart of another image processing method disclosed in an embodiment of this application.
[0046] The method may include the following steps:
[0047] 201. In the first camera mode, the camera captures the image at the first FOV value, and the image sensor generates the first image. The resolution of the first image is less than the resolution of the second image generated by the image sensor. The second image corresponds to the image at the maximum FOV value captured by the camera.
[0048] 202. The camera captures the image at the second FOV value, and the image sensor generates a third image. The second FOV value is smaller than the first FOV value, and the resolution of the third image is smaller than the resolution of the first image.
[0049] In this embodiment, the camera captures an image with a second FOV value, where the second FOV value is less than the first FOV value. The image sensor generates a third image, the resolution of which is equal to or less than the resolution of the first image. When the resolution of the third image is less than the resolution of the first image, the power consumption of the electronic device can be further reduced.
[0050] Optionally, as the field of view (FOV) of the image captured by the camera decreases, the resolution of the corresponding image generated by the image signal processor decreases. For example, when the camera captures an image with a maximum FOV of 100°, the resolution of the second image generated by the image sensor is 4160×3120; when the camera captures an image with a first FOV of 90°, the resolution of the first image generated by the image sensor is 3744×2800; when the camera captures an image with a second FOV of 84°, the resolution of the third image generated by the image sensor is 3200×2400; and when the camera captures an image with a FOV of approximately 48°, the image sensor generates an image with a resolution of 1600×1200. For example, the number of pixels in the third image is reduced by approximately 40% compared to the first image, and the size of the third image is reduced by approximately 40% compared to the first image, which can reduce the power consumption of subsequent processing. Ultimately, the power consumption of the electronic device can be reduced by approximately 17%. Since different components such as image sensors exist in different electronic devices, the power consumption reduction will vary, and this example does not limit this.
[0051] 203. Process the first image to obtain the first preview image or process the third image to obtain the third preview image.
[0052] In this embodiment, the electronic device processes a first image to obtain a first preview image, or processes a third image to obtain a third preview image. For example, the electronic device is configured with an Image Signal Processor (ISP). The ISP processes the image transmitted from the image sensor, including image depigmentation, image noise reduction, white balance and color space transformation, color enhancement, and tone mapping. These steps can map the image transmitted from the image sensor to the sRGB (standard Red Green Blue) universal color standard, helping people obtain color images that are more consistent with the characteristics of human vision.
[0053] 204. Display the first preview image or display the third preview image.
[0054] It should be understood that when using the camera function of an electronic device, users may continuously adjust the camera zoom, thus changing the camera's FOV value, obtaining images with different FOV values, and ultimately determining the zoom level that best suits the person or scenery.
[0055] Please see Figure 3 , Figure 3 This is a schematic flowchart of another image processing method disclosed in an embodiment of this application.
[0056] The method may include the following steps:
[0057] 301. In the first camera mode, the image sensor generates a fourth image by default. The fourth image has the lowest resolution and corresponds to the image with the lowest FOV value captured by the camera.
[0058] For example, an electronic device has a camera with a minimum FOV of 84°. The camera captures images with a minimum FOV of 84°. The fourth image generated by the image sensor has a resolution of 3200×2400. The default setting of the image sensor to generate the fourth image ensures that the image sensor is always in a low-power state when the camera is started, which helps to reduce the power consumption of the electronic device.
[0059] 302. The camera captures an image of the first FOV value, and the image sensor generates a first image. The resolution of the first image is less than the resolution of the second image generated by the image sensor. The second image corresponds to the image of the maximum FOV value captured by the camera.
[0060] For example, when a camera captures an image with a maximum field of view (FOV) of 100°, the second image generated by the image sensor has a resolution of 4160×3120. When the camera captures an image with a first FOV of 90°, the resolution of the first image generated by the image sensor is lower than the resolution of the second image; the resolution of the first image could be 3744×2800. In this case, the resolution of the first image is higher than the resolution of the fourth image but lower than the resolution of the second image. This improves image quality while reducing the power consumption of the electronic device, achieving a balance between image quality and power saving performance requirements.
[0061] 303. Process the first image to obtain the first preview image.
[0062] In this embodiment, the electronic device processes a first image to obtain a first preview image. For example, the electronic device is configured with an Image Signal Processor (ISP). The ISP processes the image transmitted from the image sensor, including image depigmentation, image noise reduction, white balance and color space transformation, color enhancement, and tone mapping. These steps can map the image transmitted from the image sensor to the sRGB (standard Red Green Blue) universal color standard, helping people obtain color images that are more consistent with the characteristics of human vision.
[0063] Optionally, after processing the first image, the image signal processor further reduces the resolution of the first image to obtain a first preview image with reduced resolution. The reduction operation is a proportional reduction, which preserves the complete image information, and is then sent to the preview module. For example, the resolution of the first preview image is 1920×1080. By reducing the resolution of the first preview image, the power consumption of the electronic device can be further reduced without affecting the quality of the final image, thereby improving the battery life of the electronic device.
[0064] Optionally, after processing the first image, the image signal processor further sends the processed image with a resolution of 3744×2800 to the imaging module.
[0065] 304. Display the first preview image.
[0066] In one embodiment, after displaying the first preview image, the method further includes obtaining a target image in response to a photo-taking command. The target image has a resolution greater than the display resolution. For example, the first preview image and the target image are displayed on a screen. The display resolution is the resolution of the screen when displaying the first preview image and the target image. Resolution is measured in pixels, and the numerical value of the display resolution refers to the number of horizontal and vertical pixels on the entire screen. In one implementation, the user can manually set the display resolution. In another embodiment, the device information of the electronic device can be directly obtained, and the corresponding screen size or screen resolution of the electronic device can be determined based on the device information, thereby obtaining a display resolution adapted to the screen size or screen resolution. The device information may include, but is not limited to, the type, model, version number, and device number of the electronic device. Because the resolution of the target image is greater than the display resolution, it can be ensured that the target image obtained by this solution has the quality required by the user.
[0067] Please see Figure 4 , Figure 4 This is a schematic flowchart of another image processing method disclosed in the embodiments of this application.
[0068] The method may include the following steps:
[0069] 401. In the first camera mode, the camera captures an image with a first FOV value, and the image sensor generates a first image. The resolution of the first image is less than the resolution of the second image generated by the image sensor, and the second image corresponds to the image with the maximum FOV value captured by the camera.
[0070] Optionally, the first camera mode can be a normal shooting mode. For example, when the camera captures an image with a maximum FOV of 100°, the resolution of the second image generated by the image sensor is 4160×3120. When the camera captures an image with a first FOV of 84°, the resolution of the first image generated by the image sensor is less than the resolution of the second image. The resolution of the first image can be 3200×2400.
[0071] 402. In the second camera mode, the camera captures the image of the first FOV value, and the image sensor generates a fifth image, the resolution of which is less than that of the first image.
[0072] Optionally, the second camera mode is a video or live streaming mode or other camera mode with higher power consumption. For example, when the camera captures a scene with a first FOV value of 84°, the resolution of the fifth image generated by the image sensor is 1600×1200.
[0073] Optionally, the resolution of the fifth image can be obtained using a pixel-binning mode. Binning mode is primarily used to superimpose the charges of adjacent pixel units in the same column and adjacent pixel units in the same row to create a new pixel, thereby increasing the photosensitive area, improving the sensitivity to light in dark areas, and reducing the output resolution. Therefore, this embodiment can further reduce the power consumption of electronic devices and improve their battery life.
[0074] 403. Process the fifth image to obtain the fifth preview image.
[0075] In this embodiment, the electronic device processes the fifth image to obtain a fifth preview image. For example, the electronic device is configured with an Image Signal Processor (ISP). The ISP processes the image transmitted from the image sensor, including image depigmentation, image noise reduction, white balance and color space transformation, color enhancement, and tone mapping. These steps map the image transmitted from the image sensor to the sRGB (standard Red Green Blue) universal color standard, helping people obtain color images that better match the characteristics of human vision.
[0076] The processing of the fifth image can be set and changed as needed, and this application embodiment does not impose any restrictions on this.
[0077] 404. Display the fifth preview image.
[0078] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application.
[0079] like Figure 5 As shown, the electronic device 1 includes a camera 20, an image signal processor 22, and a display screen 23, wherein the camera 20 includes an image sensor 201, wherein:
[0080] In the first camera mode, camera 20 is used to capture images at the first FOV value;
[0081] Image sensor 201 is used to generate a first image. The resolution of the first image is less than the resolution of the second image generated by image sensor 201. The second image corresponds to the image captured by camera 20 at its maximum FOV value.
[0082] Image signal processor 22 is used to process the first image to obtain a first preview image;
[0083] Display screen 23 is used to display the first preview image.
[0084] Optionally, the first camera mode can be a normal shooting mode. For example, when the camera 20 captures an image with a maximum FOV of 100°, the resolution of the second image generated by the image sensor 201 is 4160×3120. When the camera 20 captures an image with a first FOV of 90°, the resolution of the first image generated by the image sensor 201 is less than the resolution of the second image. The resolution of the first image can be 3744×2800.
[0085] Optionally, the camera 20 captures an image at a second FOV value, and the image sensor 201 generates a third image, wherein the second FOV value is smaller than the first FOV value, and the resolution of the third image is smaller than the resolution of the first image.
[0086] In one embodiment, the camera 20 captures an image with a second FOV value, where the second FOV value is less than the first FOV value. The image sensor 201 generates a third image, the resolution of which is equal to or less than the resolution of the first image. When the resolution of the third image is less than the resolution of the first image, the power consumption of the electronic device 1 can be further reduced.
[0087] Optionally, as the field of view (FOV) of the image captured by the camera 20 decreases, the resolution of the corresponding image generated by the image signal processor 22 decreases. For example, when the camera 20 captures an image with a maximum FOV of 100°, the resolution of the second image generated by the image sensor 201 is 4160×3120; when the camera 20 captures an image with a first FOV of approximately 90°, the resolution of the first image generated by the image sensor 201 is 3744×2800; when the camera 20 captures an image with a second FOV of approximately 84°, the resolution of the third image generated by the image sensor 201 is 3200×2400; and when the camera 20 captures an image with a FOV of approximately 48°, the image sensor 201 generates an image with a resolution of 1600×1200. For example, the number of pixels in the third image is reduced by about 40% compared to the number of pixels in the first image, and the size of the third image is reduced by about 40% compared to the size of the first image. This can reduce the power consumption of subsequent processing, and the power consumption of the final electronic device 1 can be reduced by about 17%. Since the components such as the image sensor 201 in different electronic devices 1 are different, the power consumption that can be reduced also varies. This example does not limit this.
[0088] Optionally, the image sensor 201 generates a fourth image by default. The fourth image has the lowest resolution and corresponds to the image with the lowest FOV value captured by the camera 20. When the electronic device 1 receives the instruction to capture the first FOV value image, the image sensor 201 generates the first image.
[0089] For example, the minimum FOV of a camera 20 in electronic device 1 is 84°. The camera 20 captures images with a minimum FOV of 84°. The resolution of the fourth image generated by the image sensor 201 is 3200×2400. The default setting of the image sensor 201 to generate the fourth image ensures that the image sensor 201 is always in a low-power state when the camera 20 is started, which helps to reduce the power consumption of electronic device 1.
[0090] Optionally, in the second camera mode, the camera 20 captures the image of the first FOV value, and the image sensor 201 generates a fifth image, the resolution of which is lower than that of the first image.
[0091] Optionally, the second camera mode is a video or live streaming mode or other camera modes with higher power consumption. For example, when the camera 20 captures a frame with a first FOV value of 84°, the resolution of the fifth image generated by the image sensor 201 is 1600×1200.
[0092] Optionally, the resolution of the fifth image can be obtained using a pixel-binning mode. Binning mode is primarily used to superimpose the charges of adjacent pixel units in the same column and adjacent pixel units in the same row to create a new pixel, thereby increasing the photosensitive area, improving the sensitivity to light in dark areas, and reducing the output resolution. Therefore, this embodiment can further reduce the power consumption of electronic devices and improve their battery life.
[0093] Optionally, in response to a photographing command, the electronic device acquires a target image, the resolution of which is greater than the display resolution of the display screen 23.
[0094] For example, the target image is displayed on the display screen 23. The display resolution is the resolution of the display screen 23 when displaying the target image. Resolution is measured in pixels, and the numerical value of the display resolution refers to the number of horizontal and vertical pixels on the entire screen 23. In one embodiment, the user can manually set the display resolution of the display screen 23. In another embodiment, the device information of the electronic device 1 can be directly obtained, and the size or screen resolution of the display screen 23 corresponding to the electronic device 1 can be determined based on the device information, thereby obtaining a display resolution adapted to the size or screen resolution of the display screen 23. The device information may include, but is not limited to, the type, model, version number, and device number of the electronic device. Since the resolution of the target image is greater than the display resolution, it can be ensured that the target image obtained by this solution has the quality required by the user.
[0095] In one embodiment, electronic device 1 processes a first image to obtain a first preview image. For example, electronic device 1 is configured with an Image Signal Processor (ISP) 22. The ISP processes the image transmitted from image sensor 201, including image depigmentation, image noise reduction, white balance and color space transformation, color enhancement, and tone mapping. These steps can map the image transmitted from image sensor 201 to the sRGB (standard Red Green Blue) universal color standard, helping people obtain color images that better match the characteristics of human vision. The processing of the first image can be set and changed as needed, and this embodiment does not impose any limitations on this.
[0096] Optionally, after processing the first image, the image signal processor 22 further reduces the resolution of the first image to obtain a first preview image with reduced resolution. The reduction operation is a proportional reduction, which preserves the complete information of the image, and is then sent to the preview module. For example, the resolution of the first preview image is 1920×1080. By reducing the resolution of the first preview image, the power consumption of the electronic device can be further reduced without affecting the quality of the final image, thereby improving the battery life of the electronic device.
[0097] Optionally, after processing the first image, the image signal processor 22 further sends the processed image with a resolution of 3744×2800 to the imaging module.
[0098] It should be noted that the specific implementation process of this embodiment can be found in the specific implementation process described in the above method embodiments, and will not be described again here.
[0099] As can be seen, in this embodiment, when using the camera 20, the image sensor 201 generates a customized image with a certain resolution that is adapted to the FOV value of the camera 20, without the need to transmit full-size maximum FOV image data, thereby reducing the power consumption of the image sensor 201 and the image signal processor 22 in transmitting and processing images, and thus reducing the power consumption generated during shooting and extending the battery life of the electronic device 1.
[0100] Optionally, the electronic device 1 provided in this application embodiment may include multiple cameras 20. The electronic device may be preset to have a first camera as the main camera and a second camera as the auxiliary camera. When the camera function of the camera is activated, the main camera is used by default for shooting. This application embodiment does not limit this.
[0101] In another embodiment, the provided electronic device is capable of automatically switching between multiple cameras according to the needs of the shooting scene.
[0102] This application also discloses a computer-readable storage medium including computer instructions that, when executed on an electronic device 1, cause the electronic device 1 to perform some or all of the steps of the methods described in the above method embodiments.
[0103] This application also discloses a computer program product, which, when run on a computer, allows the computer to execute some or all of the steps of the methods described in the above method embodiments.
[0104] The foregoing has provided a detailed description of an image processing method, electronic device, storage medium, and program product disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An image processing method applied to an electronic device, the electronic device including a camera, the camera including an image sensor, characterized in that, include In the first camera mode, the camera captures an image with a first FOV value, and the image sensor generates a first image. The resolution of the first image is less than the resolution of the second image generated by the image sensor, and the second image corresponds to the image with the maximum FOV value captured by the camera. Process the first image to obtain the first preview image; Display the first preview image.
2. The image processing method according to claim 1, characterized in that, It also includes the camera capturing an image of a second FOV value, the image sensor generating a third image, the second FOV value being smaller than the first FOV value, and the resolution of the third image being smaller than the resolution of the first image.
3. The image processing method according to claim 1, characterized in that, The camera captures an image at a first FOV value, and the image sensor generates a first image including... The image sensor generates a fourth image by default, which has the lowest resolution and corresponds to the image captured by the camera with the lowest FOV value. When the electronic device receives a screen command to acquire the first FOV value, the image sensor generates the first image.
4. The image processing method according to claim 1, characterized in that, After displaying the first preview image, it also includes In response to a photo capture command, a target image is acquired, wherein the resolution of the target image is greater than the display resolution.
5. The image processing method according to claim 1, characterized in that, Also includes In the second camera mode, the camera captures an image with a first FOV value, and the image sensor generates a fifth image, the resolution of which is lower than that of the first image.
6. An electronic device, characterized in that, include In the first camera mode, the camera is used to capture images at the first FOV value; An image sensor is used to generate a first image, the resolution of which is less than the resolution of a second image generated by the image sensor, the second image corresponding to the image captured by the camera at its maximum FOV value; An image signal processor is used to process the first image to obtain a first preview image; A display screen is used to show the first preview image.
7. The electronic device according to claim 6, characterized in that, Also includes The camera captures an image at a second FOV value, and the image sensor generates a third image. The second FOV value is smaller than the first FOV value, and the resolution of the third image is smaller than the resolution of the first image.
8. The electronic device according to claim 6, characterized in that, Also includes The camera captures an image at a first FOV value, and the image sensor generates a first image including... The image sensor generates a fourth image by default, which has the lowest resolution and corresponds to the image captured by the camera with the lowest FOV value. When the electronic device receives a command to acquire the first FOV value, the image sensor generates the first image.
9. The electronic device according to claim 1, characterized in that, Also includes In the second camera mode, the camera captures an image with a first FOV value, and the image sensor generates a fifth image, the resolution of which is lower than that of the first image.
10. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 5.
11. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 5.