Image display method and device, electronic equipment and storage medium
By determining the target camera in the multi-camera electronic device and cropping the image captured by it, the preview image and the picture-in-picture image are generated, which solves the problem of different quality of the preview image and the picture-in-picture image, achieving consistent image quality and improved display effect. .
Patent Information
- Application Number
- CN202310318061.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
In multi-camera electronic devices, when the digital zoom capability is strong, in the preview picture-in-picture function, the quality of the preview image and the picture-in-picture image is easily different, affecting the image display effect.
By determining the target camera among the multiple cameras, the original image captured by it is cropped to generate a first display image and a second display image, so that the second display image is a partial area of the original image, and the first display image is a portion of the second display image. Part of the image, including its central area, is displayed on the basis of the same camera to ensure consistent image quality.
Ensure that the preview image and the picture-in-picture image have the same image quality, improve the image display effect, and maintain the consistency of automatic exposure, automatic focus, and automatic white balance.
Smart Images

Figure CN118741017A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to an image display method, device, electronic device and storage medium. Background Art
[0002] The rear camera mode of electronic devices is generally a multi-camera working mode, and the digital zoom capabilities supported are getting higher and higher, such as 50x, 70x, 100x, 120x, etc. With such a large digital zoom capability, previewing picture-in-picture has become a common function. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an image display method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image display method, which is applied to an electronic device, wherein the electronic device includes a plurality of cameras, and the method includes:
[0005] determining a target camera among the plurality of cameras;
[0006] Determine a first display image and a second display image corresponding to the original image captured by the target camera, wherein the second display image is at least a partial area of the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image;
[0007] The first display image and the second display image are displayed.
[0008] In some embodiments, before determining the target camera among the multiple cameras, the method further includes:
[0009] Acquire the original image captured by each camera;
[0010] For each of the original images, based on first cropping information corresponding to a camera that photographed the original image, cropping the original image to determine a third display image corresponding to the original image, wherein the first cropping information indicates a first position for cropping the original image;
[0011] The determining of a first display image corresponding to the original image captured by the target camera includes:
[0012] A third display image corresponding to the original image captured by the target camera is determined as the first display image.
[0013] In some embodiments, the method further comprises:
[0014] For each of the original images, the original image is cropped based on second cropping information corresponding to a camera that photographed the original image, and a fourth display image corresponding to the original image is determined, wherein the second cropping information indicates a second position for cropping the original image.
[0015] In some embodiments, determining the second display image corresponding to the original image captured by the target camera includes:
[0016] When the second cropping information does not meet the cropping condition, cropping the fourth display image corresponding to the target camera based on the cropping condition to obtain the second display image, wherein the cropping condition indicates the position of the second display image in the original image captured by the target camera;
[0017] When the second cropping information meets the cropping condition, the fourth display image is determined as the second display image.
[0018] In some embodiments, the step of cropping the fourth display image corresponding to the target camera based on the cropping condition to obtain the second display image includes:
[0019] Determining third cropping information based on the cropping condition and the second cropping information;
[0020] The fourth display image is cropped based on the third cropping information to obtain the second display image.
[0021] In some embodiments, determining the second display image corresponding to the original image captured by the target camera includes:
[0022] Based on the cropping condition, the original image captured by the target camera is cropped to obtain the second display image, and the cropping condition indicates the position of the second display image in the original image captured by the target camera.
[0023] In some embodiments, determining a target camera among the multiple cameras includes:
[0024] The target camera is determined according to the image quality, zoom parameters and reference camera of the original image taken by each camera.
[0025] In some embodiments, displaying the first display image and the second display image includes:
[0026] The second display image is displayed on top of the first display image, and a display area of the second display image is smaller than a display area of the first display image.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided an image display device, which is configured in an electronic device, wherein the electronic device includes a plurality of cameras, and the device includes:
[0028] A camera determination module, configured to determine a target camera among the multiple cameras;
[0029] an image determination module, configured to determine a first display image and a second display image corresponding to an original image captured by the target camera, wherein the second display image is at least a partial area of the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image;
[0030] The image display module is configured to display the first display image and the second display image.
[0031] In some embodiments, the image determination module is further configured to:
[0032] Acquire the original image captured by each camera;
[0033] For each of the original images, based on first cropping information corresponding to a camera that photographed the original image, cropping the original image to determine a third display image corresponding to the original image, wherein the first cropping information indicates a first position for cropping the original image;
[0034] The image determination module is configured to determine a third display image corresponding to the original image captured by the target camera as the first display image.
[0035] In some embodiments, the image determination module is further configured to:
[0036] For each of the original images, the original image is cropped based on second cropping information corresponding to a camera that photographed the original image, and a fourth display image corresponding to the original image is determined, wherein the second cropping information indicates a second position for cropping the original image.
[0037] In some embodiments, the image determination module is configured to:
[0038] When the second cropping information does not meet the cropping condition, cropping the fourth display image corresponding to the target camera based on the cropping condition to obtain the second display image, wherein the cropping condition indicates the position of the second display image in the original image captured by the target camera;
[0039] When the second cropping information meets the cropping condition, the fourth display image is determined as the second display image.
[0040] In some embodiments, the image determination module is configured to:
[0041] Determining third cropping information based on the cropping condition and the second cropping information;
[0042] The fourth display image is cropped based on the third cropping information to obtain the second display image.
[0043] In some embodiments, the image determination module is configured to:
[0044] Based on the cropping condition, the original image captured by the target camera is cropped to obtain the second display image, and the cropping condition indicates the position of the second display image in the original image captured by the target camera.
[0045] In some embodiments, the camera determination module is configured to:
[0046] The target camera is determined according to the image quality, zoom parameters and reference camera of the original image taken by each camera.
[0047] In some embodiments, the image display module is configured to display the second display image on top of the first display image, and a display area of the second display image is smaller than a display area of the first display image.
[0048] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0049] processor;
[0050] a memory for storing processor-executable instructions;
[0051] Wherein, the processor is configured to execute the image display method as described in the first aspect of the embodiment of the present disclosure.
[0052] According to the fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the image display method as described in the first aspect of the embodiment of the present disclosure.
[0053] The above method of the present disclosure has the following beneficial effects:
[0054] The method provided by the embodiment of the present disclosure determines a target camera among the multiple cameras when the electronic device includes multiple cameras, and determines the first display image and the second display image corresponding to the original image captured by the target camera, wherein the second display image is at least a partial area in the original image, and the first display image is a partial image of the second display image, and the partial image includes the central area of the second display image. Since each camera can capture the original image, in order to avoid the difference in image quality between the first display image and the second display image, the target camera is first determined so that the displayed first display image and the second display image are determined based on the original image of the same camera, thereby ensuring that the first display image and the second display image have the same image quality and improving the image display effect.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0057] Figure 1 is a flow chart of an image display method according to an exemplary embodiment;
[0058] Figure 2 is a flow chart showing another image display method according to an exemplary embodiment;
[0059] Figure 3 is a schematic diagram of an image display interface according to an exemplary embodiment;
[0060] Figure 4 is a schematic diagram showing an image display process according to an exemplary embodiment;
[0061] Figure 5 is a device block diagram of an image display device according to an exemplary embodiment;
[0062] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0064] The image display method provided by the embodiment of the present disclosure is executed by an electronic device, which is a device including multiple cameras, for example, the electronic device is an electronic device including multiple cameras such as a mobile phone, a tablet computer, a wearable smart device, etc.
[0065] The method provided by the embodiments of the present disclosure can be applied in a variety of scenarios, for example, in the preview display scenario of preview images and picture-in-picture images, that is, when the electronic device is in the process of shooting images, especially in the process of telephoto shooting, if the user sets the digital zoom capability of the current shooting to 50 times, in order to enable the user to view the global picture and the local detail picture at the same time, the preview image (local detail picture) and the picture-in-picture image (global picture) will be displayed in the camera interface at the same time. The method provided by the embodiments of the present disclosure can be used to determine the preview image (i.e., the first display image) and the picture-in-picture image (i.e., the second display image) to be displayed, and then display the preview image and the picture-in-picture image, so as to ensure that the preview image and the picture-in-picture image are determined based on the image shot by the same camera, so that the preview image and the picture-in-picture image have the same image quality.
[0066] Figure 1 is a flowchart of an image display method according to an exemplary embodiment, which is executed by an electronic device, the electronic device including multiple cameras, see Figure 1 The method comprises the following steps S101-S103:
[0067] Step S101, determining a target camera among multiple cameras.
[0068] The target camera is any one of the multiple cameras. For example, the target camera is the camera corresponding to the image with the best image quality among the multiple images taken by the multiple cameras. The image quality may refer to the image clarity. The greater the image clarity, the better the image quality. Of course, the image brightness, image distortion, etc. may also be used to evaluate the image quality.
[0069] Step S102, determining a first display image and a second display image corresponding to an original image captured by a target camera, wherein the second display image is at least a partial area of the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image.
[0070] In the disclosed embodiment, since the electronic device has a powerful digital zoom capability, for example, it can support 50 times, 70 times, 100 times, 120 times, etc., so for the original image captured by the target camera, when previewing, the first display image and the second display image can be previewed. Among them, the second display image is at least a partial area in the original image, that is, the second display image can be an image obtained by cropping the original image, and the first display image is a partial image of the second display image, and the partial image includes the central area of the second display image. The first display image and the second display image can be regarded as two different display modes of the original image.
[0071] Step S103: displaying the first display image and the second display image.
[0072] When displaying the first display image and the second display image, the first display image and the second display image can be displayed in any form. In addition, for the display sizes of the first display image and the second display image, the display size of the first display image is larger than the display size of the second display image, that is, the first display image is displayed in more areas, so that the user can observe more detailed information through the first display image and more global information through the second display image.
[0073] The method provided by the embodiment of the present disclosure determines a target camera among the multiple cameras when the electronic device includes multiple cameras, and determines the first display image and the second display image corresponding to the original image captured by the target camera, wherein the second display image is at least a partial area in the original image, and the first display image is a partial image of the second display image, and the partial image includes the central area of the second display image. Since each camera can capture the original image, in order to avoid the difference in image quality between the first display image and the second display image, the target camera is first determined so that the displayed first display image and the second display image are determined based on the original image of the same camera, thereby ensuring that the first display image and the second display image have the same image quality and improving the image display effect.
[0074] Figure 2 is a flowchart of another image display method according to an exemplary embodiment, which is executed by an electronic device, the electronic device including multiple cameras, see Figure 2 The method comprises the following steps S201-S203:
[0075] Step S201, obtaining the original image captured by each camera.
[0076] For an electronic device, the electronic device may be provided with multiple cameras, for example, the electronic device may be provided with 3 cameras, and the shooting range or the image quality of each camera may be different. In the process of shooting images, each camera shoots its own original image respectively, and there are certain differences between different original images, for example, different original images have different image qualities, or different original images shoot scenes that are not completely the same.
[0077] Step S202: For each original image, based on the first cropping information corresponding to the camera that took the original image, the original image is cropped to determine the third display image corresponding to the original image; based on the second cropping information corresponding to the camera that took the original image, the original image is cropped to determine the fourth display image corresponding to the original image.
[0078] The first cropping information indicates the first position of cropping the original image, and the first cropping information indicates cropping the third display image, and the second cropping information indicates the second position of cropping the original image, and the second cropping information indicates cropping the fourth display image. The first cropping information and the second cropping information may be the same or different. If the first cropping information and the second cropping information are the same, then the cropped third display image and the fourth display image may need to be further cropped to obtain different first display images and second display images. If the first cropping information and the second cropping information are different, then the cropped third display image and the fourth display image may need to be further cropped or may not need to be cropped.
[0079] In some embodiments, in order to make the cropped first display image a partial image of the second display image, the second position indicated by the second cropping information includes the first position indicated by the first cropping information, so that the cropped third display image is a partial image of the fourth display image.
[0080] In some embodiments, since the size of the original image acquired by the camera may be fixed, the first position indicated by the first cropping information and the second position indicated by the second cropping information may be preset cropping areas, the area of the preset cropping area included in the first cropping information is smaller than the area of the preset cropping area included in the second cropping information, and the preset cropping area included in the second cropping information includes the preset cropping area included in the first cropping information. When cropping, the image in the preset cropping area in the original image is cropped according to the preset cropping area included in the first cropping information and the preset cropping area included in the second cropping information, respectively, as the third display image and the fourth display image. For example, if the size of the original image is 4096*2048, the first position is a cropping area with an area of 2048*1024 centered at the center point of the original image, and the second position may be a cropping area with an area of 512*256 centered at the center point of the original image.
[0081] Alternatively, the first position indicated by the first cropping information and the second position indicated by the second cropping information may be a preset area to be cropped, the area of the preset area to be cropped included in the first cropping information is larger than the area of the preset area to be cropped included in the second cropping information, and the preset area to be cropped included in the first cropping information includes the preset area to be cropped included in the second cropping information. During cropping, the image within the preset area to be cropped in the original image is cropped according to the preset area to be cropped included in the first cropping information and the preset area to be cropped included in the second cropping information, and the remaining image area is used as the third display image and the fourth display image. For example, the size of the original image is 4096*2048. The first position is to start from the upper, lower, left and right edges of the original image and crop one quarter of the length and width of the original image respectively, that is, if the length of the original image is 4096, then crop 1024 of the length on the upper side of the original image and crop 1024 of the length on the lower side. If the length of the original image is 2048, then crop 512 of the length on the left side of the original image and crop 512 of the length on the right side to obtain the remaining image area. The second position is to start from the upper, lower, left and right edges of the original image and crop two fifths of the length and width of the original image respectively, that is, if the length of the original image is 4096, then crop 1638 of the length on the upper side of the original image and crop 1638 of the length on the lower side. If the length of the original image is 2048, then crop 819 of the length on the left side of the original image and crop 819 of the length on the right side to obtain the remaining image area.
[0082] Of course, in some embodiments, the first cropping information and the second cropping information may also be in other forms. For example, the first cropping information and the second cropping information are cropping matrices, and the cropping matrix indicates the position of the display image to be cropped in the original image.
[0083] In some embodiments, after obtaining the original image, the original image may be first processed to improve the image quality of the original image, and then the original image with improved image quality may be cropped to obtain the third display image and the fourth display image. For example, a high-pass image processing unit is provided, such as the high-pass image processing unit is IPE0, and the electronic device processes the original image through the high-pass image processing unit to obtain the processed original image.
[0084] In some embodiments, a front-end path is set for each camera in the electronic device, and different front-end paths are set for obtaining the first display image and the second display image, respectively. Therefore, based on the first cropping information corresponding to the camera that took the original image, the original image is cropped to determine the third display image corresponding to the original image, including: through the front-end path for the first display image, the original image is cropped based on the first cropping information to determine the third display image corresponding to the original image; based on the second cropping information corresponding to the camera that took the original image, the original image is cropped to determine the fourth display image corresponding to the original image, including: through the front-end path for the second display image, the original image is cropped based on the second cropping information to determine the fourth display image corresponding to the original image.
[0085] It should be noted that, for different cameras, the first cropping information and the second cropping information of different cameras may be the same or different.
[0086] Step S203, determining a target camera among multiple cameras.
[0087] The target camera is any one of the multiple cameras.
[0088] In some embodiments, the target camera is determined based on the image quality, zoom parameter, and reference camera of the original image captured by each camera. The image quality is used to indicate the quality of the original image. For example, the image quality may refer to the clarity. The higher the image clarity, the better the image quality. The zoom parameter refers to the zoom multiple set by the camera application. For example, the zoom parameter is 10×, 20×, etc. The reference camera refers to a camera determined according to the shooting scene. For example, in the telephoto shooting scene, the telephoto lens is used as the reference camera.
[0089] When determining the target camera, at least one of the three factors of the image quality, zoom parameter and reference camera of the original image captured by each camera is considered. For example, if only the image quality is considered, the camera corresponding to the original image with the best image quality is determined as the target camera; or, if only the zoom parameter is considered, different zoom parameters correspond to different cameras, such as when the zoom parameter is 20×, it corresponds to camera 1, and camera 1 is determined as the target camera, and when the zoom parameter is 30×, it corresponds to camera 2, and camera 2 is determined as the target camera; or, if only the reference camera is considered, the reference camera is directly used as the target camera; or, if the image quality and the reference camera are considered, the image quality is given priority, and the camera with the best original image is used as the target camera, but if the image quality of the original images captured by camera 1 and camera 2 is the same, the reference camera is considered again, and if camera 1 is the reference camera, camera 1 is used as the target camera. Of course, the embodiments of the present disclosure only illustrate several ways of determining the target camera. In another embodiment, other ways can also be used to determine the target camera.
[0090] In some embodiments, a back-end channel is provided in the electronic device, and the third display image, the fourth display image and the original image determined by the plurality of front-end channels are sent to the back-end channel, and the back-end channel determines the target camera based on the received images.
[0091] Step S204: determining the first display image based on the third display image, and determining the second display image based on the fourth display image.
[0092] Regarding the determination of the first display image, in some embodiments, the third display image corresponding to the original image captured by the target camera is determined as the first display image.
[0093] Regarding the determination of the second display image, in some embodiments, since the fourth display image obtained by cropping the original image may not meet the requirements of the second display image, it is necessary to continue cropping the fourth display image to obtain the second display image. Determining the second display image based on the fourth display image includes: when the second cropping information does not meet the cropping condition, based on the cropping condition, cropping the fourth display image corresponding to the target camera to obtain the second display image, the cropping condition indicates the position of the second display image in the original image taken by the target camera; when the second cropping information meets the cropping condition, determining the fourth display image as the second display image.
[0094] Among them, the second cropping information meets the cropping conditions means that the second position indicated by the second cropping information is exactly the same as the position indicated by the cropping conditions; the second cropping information does not meet the cropping conditions means that the second position indicated by the second cropping information does not meet the position indicated by the cropping conditions.
[0095] In some embodiments, based on the cropping condition, the fourth display image is cropped to obtain the second display image, including: determining the third cropping information based on the cropping condition and the second cropping information; and cropping the fourth display image corresponding to the target camera based on the third cropping information to obtain the second display image. The third cropping information indicates the position of cropping the fourth display image. The position indicated by the third cropping information is expressed in a manner similar to the first position indicated by the first cropping information or the second position indicated by the second cropping information, and is not described in detail here.
[0096] It should be noted that the above-mentioned implementation method of determining the second display image is to first obtain the fourth display image, and then determine the second display image based on the fourth display image. In other embodiments, determining the second display image corresponding to the original image captured by the target camera also includes: based on the cropping condition, cropping the original image captured by the target camera to obtain the second display image, and the cropping condition indicates the position of the second display image in the original image captured by the target camera. In other words, there is no need to crop the original image through the front-end path, and the original image only needs to be cropped once based on the cropping condition through the back-end path.
[0097] In addition, in some embodiments, after obtaining the first display image and the second display image, the first display image and the second display image may continue to be processed to improve the image quality of the first display image and the second display image, so that the first display image and the second display image displayed subsequently have a better display effect. Optionally, since the display range of the first display image is larger, the user may pay more attention to the first display image than the second display image. Therefore, more algorithm processing may be performed on the first display image and less algorithm processing may be performed on the second display image, so that the first display image has a better display effect and does not affect the final overall display effect, while reducing the processing amount.
[0098] Step S205: displaying the first display image and the second display image.
[0099] When displaying the first display image and the second display image, the first display image and the second display image can be displayed in any form. In addition, for the display sizes of the first display image and the second display image, the display size of the first display image is larger than the display size of the second display image, that is, the first display image is displayed in more areas, so that the user can observe more detailed information through the first display image and more global information through the second display image.
[0100] In some embodiments, the second display image is displayed on top of the first display image, and the display area of the second display image is smaller than the display area of the first display image. Figure 3 In the schematic diagram shown, the preview image is the first display image, the picture-in-picture image is the second display image, and the image content of the central area framed in the picture-in-picture image is the same as the image content of the preview image, except that the image quality of the preview image is higher than the image quality of the central area framed in the picture-in-picture image.
[0101] The method provided by the embodiment of the present disclosure determines a target camera among the multiple cameras when the electronic device includes multiple cameras, determines a first display image and a second display image corresponding to an original image captured by the target camera, wherein the second display image is at least a partial area in the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image. Since each camera can capture an original image, in order to avoid the difference in image quality between the first display image and the second display image, the target camera is first determined so that the displayed first display image and the second display image are determined based on the original image of the same camera, thereby ensuring that the first display image and the second display image have the same image quality, and maintaining the consistency of the automatic exposure, automatic focus, and automatic white balance of the first display image and the second display image, thereby improving the image display effect.
[0102] Figure 4 is a schematic diagram showing an image display process according to an exemplary embodiment, see Figure 4 For example, an electronic device includes three cameras (sensors), which are sensor UW, sensor W and sensor T. In the front-end part, each camera corresponds to a front-end channel (realtimeline), namely realtimeline1, realtimeline2 and realtimeline3. After the three cameras collect the original images, they all need to process the image quality of the original images. Figure 4In the figure, the original image is processed by IPE0 (a high-pass image processing unit) to obtain a processed original image, and then different cropping processes are performed on the processed original image to obtain a third display image (SAT preview buffer1) and a fourth display image (SAT preview buffer2). In addition, in order to reduce the amount of calculation, the processed original image can also be processed by IPE19 (a high-pass image processing unit) to obtain a re-processed original image (SAT FD BUF), which may not be used in subsequent processes.
[0103] Then, in the back-end part, the images obtained by each front-end path are transmitted to the algorithm processing unit (SAT algo) in the back-end part. Through the algorithm processing unit, the target camera needs to be determined, and the images corresponding to other cameras are discarded. Then, the first display image (preview image) and the second display image (image) corresponding to the target camera are determined through the algorithm processing unit. For the preview image and the picture-in-picture image, in the preview path, the preview image is further optimized, such as using the Tuning update algo (adjustment update algorithm) unit to process the preview image, and then the image output by the Tuning update algo unit is processed by IPE12 (a high-pass image processing unit), and then the image output by the otherpreview algo (other preset algorithm) unit is processed, and finally the output preview image (TB_preview) is sent for display. Similarly, in the picture-in-picture path, the preset image processing algorithm (PIP process algo) unit is used to process the picture-in-picture image, and the output picture-in-picture image (TB_PIP buffer) is sent for display. It should be noted that the embodiments of the present disclosure do not limit the specific image processing algorithms used by the various algorithm processing units involved.
[0104] In the related art, the picture-in-picture image is collected by a fixed image sensor, but the sensor used by the preview image and the image sensor used by the picture-in-picture image may be inconsistent, resulting in inconsistent image quality between the preview image and the picture-in-picture image, affecting the display effect of the image. In the embodiment of the present disclosure, because the camera corresponding to the preview image and the camera corresponding to the picture-in-picture image are the same, the problem of different image quality caused by the different cameras corresponding to the picture-in-picture image and the preview image is solved, and the automatic exposure, automatic focus, and automatic white balance of the preview image and the picture-in-picture image are kept consistent, that is, the image quality of the preview image and the picture-in-picture image is kept consistent, which improves the user experience. In addition, because the preview image and the picture-in-picture image are acquired synchronously, when the preview image supports fallback (switching), the picture-in-picture image will also support fallback synchronously.
[0105] Figure 5 is a device block diagram of an image display device according to an exemplary embodiment, which is configured in an electronic device, and the electronic device includes multiple cameras, see Figure 5 , the device comprises:
[0106] A camera determination module 501 is configured to determine a target camera among multiple cameras;
[0107] The image determination module 502 is configured to determine a first display image and a second display image corresponding to an original image captured by a target camera, wherein the second display image is at least a partial area of the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image;
[0108] The image display module 503 is configured to display a first display image and a second display image.
[0109] The device provided by the embodiment of the present disclosure determines a target camera among the multiple cameras when the electronic device includes multiple cameras, and determines the first display image and the second display image corresponding to the original image captured by the target camera, wherein the second display image is at least a partial area in the original image, and the first display image is a partial image of the second display image, and the partial image includes the central area of the second display image. Since each camera can capture the original image, in order to avoid the difference in image quality between the first display image and the second display image, the target camera is first determined so that the displayed first display image and the second display image are determined based on the original image of the same camera, thereby ensuring that the first display image and the second display image have the same image quality and improving the image display effect.
[0110] In some embodiments, the image determination module 502 is further configured to:
[0111] Get the original image taken by each camera;
[0112] For each original image, based on first cropping information corresponding to a camera that photographed the original image, cropping the original image to determine a third display image corresponding to the original image, wherein the first cropping information indicates a first position for cropping the original image;
[0113] The image determination module 502 is configured to determine the third display image corresponding to the original image captured by the target camera as the first display image.
[0114] In some embodiments, the image determination module 502 is further configured to:
[0115] For each original image, the original image is cropped based on the second cropping information corresponding to the camera that photographed the original image, and a fourth display image corresponding to the original image is determined, wherein the second cropping information indicates a second position for cropping the original image.
[0116] In some embodiments, the image determination module 502 is configured to:
[0117] When the second cropping information does not meet the cropping condition, based on the cropping condition, the fourth display image corresponding to the target camera is cropped to obtain the second display image, and the cropping condition indicates the position of the second display image in the original image captured by the target camera;
[0118] When the second cropping information meets the cropping condition, the fourth display image is determined as the second display image.
[0119] In some embodiments, the image determination module 502 is configured to:
[0120] Determining third cropping information based on the cropping condition and the second cropping information;
[0121] The fourth display image is cropped based on the third cropping information to obtain a second display image.
[0122] In some embodiments, the image determination module 502 is configured to:
[0123] Based on the cropping condition, the original image captured by the target camera is cropped to obtain a second display image, and the cropping condition indicates the position of the second display image in the original image captured by the target camera.
[0124] In some embodiments, the camera determination module 501 is configured to determine the target camera according to the image quality, zoom parameters and reference camera of the original image captured by each camera.
[0125] In some embodiments, the image display module 503 is configured to display the second display image on top of the first display image, and the display area of the second display image is smaller than the display area of the first display image.
[0126] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0127] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the image display method in the above embodiment.
[0128] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment.
[0129] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0130] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0131] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0132] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0133] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0134] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0135] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0136] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0137] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0138] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0140] The embodiments of the present disclosure further provide a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the image display method in the above embodiments.
[0141] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0142] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. An image display method, characterized in that: Applied to an electronic device, the electronic device includes a plurality of cameras, and the method includes: determining a target camera among the plurality of cameras; Determine a first display image and a second display image corresponding to the original image captured by the target camera, wherein the second display image is at least a partial area of the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image; The first display image and the second display image are displayed.
2. The image display method according to claim 1, characterized in that: Before determining the target camera among the multiple cameras, the method further includes: Acquire the original image captured by each camera; For each of the original images, based on first cropping information corresponding to a camera that photographed the original image, cropping the original image to determine a third display image corresponding to the original image, wherein the first cropping information indicates a first position for cropping the original image; The determining of a first display image corresponding to the original image captured by the target camera includes: A third display image corresponding to the original image captured by the target camera is determined as the first display image.
3. The image display method according to claim 2, characterized in that: The method further comprises: For each of the original images, the original image is cropped based on second cropping information corresponding to a camera that photographed the original image, and a fourth display image corresponding to the original image is determined, wherein the second cropping information indicates a second position for cropping the original image.
4. The image display method according to claim 3, characterized in that: The determining of a second display image corresponding to the original image captured by the target camera includes: When the second cropping information does not meet the cropping condition, cropping the fourth display image corresponding to the target camera based on the cropping condition to obtain the second display image, wherein the cropping condition indicates the position of the second display image in the original image captured by the target camera; When the second cropping information meets the cropping condition, the fourth display image is determined as the second display image.
5. The image display method according to claim 4, characterized in that: The step of cropping the fourth display image corresponding to the target camera based on the cropping condition to obtain the second display image includes: Determining third cropping information based on the cropping condition and the second cropping information; Based on the third cropping information, the fourth display image corresponding to the target camera is cropped to obtain the second display image.
6. The image display method according to claim 2, characterized in that: The determining of a second display image corresponding to the original image captured by the target camera includes: Based on the cropping condition, the original image captured by the target camera is cropped to obtain the second display image, and the cropping condition indicates the position of the second display image in the original image captured by the target camera.
7. The image display method according to claim 1, characterized in that: The determining a target camera among the multiple cameras comprises: The target camera is determined according to the image quality, zoom parameters and reference camera of the original image taken by each camera.
8. The image display method according to claim 1, characterized in that: The displaying of the first display image and the second display image comprises: The second display image is displayed on top of the first display image, and a display area of the second display image is smaller than a display area of the first display image.
9. An image display device, characterized in that: The device is configured in an electronic device, wherein the electronic device includes a plurality of cameras, and the device includes: A camera determination module, configured to determine a target camera among the multiple cameras; an image determination module, configured to determine a first display image and a second display image corresponding to an original image captured by the target camera, wherein the second display image is at least a partial area of the original image, and the first display image is a partial image of the second display image, and the partial image includes a central area of the second display image; The image display module is configured to display the first display image and the second display image.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the image display method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the image display method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method, device, processor and electronic device for displaying information
CN103777865A
Preview image display method and device
CN105491284A
Image shooting method and device, storage medium and electronic equipment
CN110505411A
Image preview method and device, electronic equipment and storage medium
CN112954220A
Display method and electronic equipment
CN114466101A
