Method for displaying a thumbnail image and electronic device

By separating the shooting operation in an electronic device and pre-generating thumbnail images in the album application, the problem of not being able to quickly display thumbnail images in the prior art is solved, and the shooting response speed and user experience are improved.

CN118433524BActive Publication Date: 2025-05-30HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410418568.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2025-05-30
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

Existing electronic devices cannot quickly display thumbnail images when they detect that the user pops up the shooting control, resulting in a long wait time for shooting and affecting the user's shooting experience.

Method used

By dividing the shooting operation into the operation of clicking the shooting control and the operation of popping up the shooting control, when the operation of clicking the shooting control is detected, the electronic device is triggered to save the fake thumbnail image in the album application and generate a real thumbnail image, and quickly display the fake thumbnail image when the operation of popping up the shooting control is detected.

Benefits of technology

It realizes the quick display of thumbnail images at the moment when the shooting control is detected, reducing the user's shooting waiting time and improving the shooting experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433524B_ABST
    Figure CN118433524B_ABST
Patent Text Reader

Abstract

This application relates to the field of terminals, and provides a method for displaying thumbnail images and an electronic device. The method includes: displaying a first display interface at a first moment, where the first display interface includes a first control, a thumbnail display area, and a first preview image; detecting a first operation on the first control, where the first operation is used to indicate the start of shooting; in response to the first operation, saving the first thumbnail image in the album application and generating a second thumbnail image; detecting a second operation on the first control, where the second operation is used to indicate the end of shooting; in response to the second operation, sequentially displaying the first thumbnail image, the second thumbnail image, and a third thumbnail image in the thumbnail display area, where the image quality of the third thumbnail image is better than that of the second thumbnail image. Based on the technical solution of this application, the problem of long shooting response time of the electronic device can be solved, enabling the electronic device to quickly display thumbnail images.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a Chinese patent application submitted to the National Intellectual Property Administration on November 22, 2022, with an application number of 202211467867.9 and an application title of "Method and Electronic Device for Displaying Thumbnail Images". Technical Field

[0002] This application relates to the field of terminals, and specifically, to a method and an electronic device for displaying thumbnail images. Background Art

[0003] With the development of the camera function in electronic devices, camera applications are becoming more and more widely used in electronic devices. In the camera application, when an electronic device completes a shot, a thumbnail image will be displayed in the shooting interface; users usually regard the thumbnail image displayed by the electronic device as the end of a shot; among them, the image content in the thumbnail image is the same as the image content of the actual shot this time, and the image corresponding to the thumbnail image stored in the album can be found according to the thumbnail image; currently, after the electronic device detects the operation of the user lifting the shooting control, the electronic device will be triggered to generate a thumbnail image and a shooting image; resulting in the electronic device being unable to display the thumbnail image instantly when detecting the lifting of the shooting control, that is, the time duration between the electronic device detecting the lifting of the shooting control and displaying the thumbnail image is too long; resulting in a long shooting waiting time for the user and a poor shooting experience for the user.

[0004] Therefore, how to quickly display the thumbnail image and shorten the shooting waiting duration has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a method and an electronic device for displaying thumbnail images, which can quickly display the thumbnail images and improve the shooting experience.

[0006] In a first aspect, a method for displaying thumbnail images is provided, which is applied to an electronic device and includes:

[0007] Display a first display interface at a first moment, where the first display interface includes a first control, a thumbnail display area, and a first preview image. Among them, the first control is a control for indicating shooting; the thumbnail display area is used to display the thumbnail image, and the first preview image is an image generated after preview processing of a first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment;

[0008] Detect a first operation on the first control, where the first operation is used to indicate the start of shooting;

[0009] In response to the first operation, a first thumbnail image is saved in the album application, and a second thumbnail image is generated; wherein, the first thumbnail image is a thumbnail image generated by subjecting the first image to a first image processing; the second thumbnail image is a thumbnail image generated by subjecting the first image to a second image processing, and the first image processing is different from the second image processing;

[0010] A second operation on the first control is detected, and the second operation is used to indicate the end of shooting;

[0011] In response to the second operation, the first thumbnail image, the second thumbnail image, and a third thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0012] In a possible implementation manner, the first operation may be an operation of clicking the shooting control, or the first operation may also be an operation of indicating shooting by voice; or an operation of indicating the start of shooting by other instructions; this application does not make any limitation thereto.

[0013] In a possible implementation manner, the second operation is an operation of bouncing up the shooting control; or an operation of indicating the end of shooting by voice; or an operation of ending shooting by other instructions.

[0014] It should be understood that the operation of bouncing up the shooting control may refer to an operation in which the electronic device detects that the user's finger leaves the shooting control; or an operation in which the electronic device detects that the user's finger releases the shooting control, etc.

[0015] In a possible implementation manner, the image quality may include image detail information, image texture information, image brightness, or an image quality evaluation result obtained by any image quality evaluation algorithm; this application does not make any limitation thereto.

[0016] In the embodiments of this application, the shooting operation is divided into a first operation (for example, an operation of clicking the shooting control) and a second operation (for example, an operation of bouncing up the shooting control); when the electronic device detects the first operation, the electronic device is triggered to save a first thumbnail image (for example, a false thumbnail image) in the camera application and generate a second thumbnail image (for example, a true thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image, and a third thumbnail image (for example, a thumbnail image obtained based on the captured image) are sequentially displayed in the display area of the display interface; since the display of the first thumbnail image is quickly triggered after the second operation is detected; the thumbnail image can be displayed instantly when the electronic device detects the second operation, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0017] It should be noted that in the embodiments of the present application, the first thumbnail image, the second thumbnail image, and the third thumbnail image may correspond to the same shooting by the user; for the same shooting, the display of the first thumbnail image, the second thumbnail image, and the third thumbnail image is mutually exclusive; for example, if the first thumbnail image is displayed in the display interface of the camera application, the second thumbnail image and the third thumbnail image will not be displayed in the display interface; if the second thumbnail image is displayed in the display interface of the camera application, the first thumbnail image and the third thumbnail image will not be displayed in the display interface; if the third thumbnail image is displayed in the display interface of the camera application, the first thumbnail image and the second thumbnail image will not be displayed in the display interface; for example, at time T1, the first thumbnail image is displayed; at time T2, the second thumbnail image is displayed; at time T3, the third thumbnail image is displayed; time T1 is earlier than time T2; time T2 is earlier than time T3.

[0018] In combination with the first aspect, in some implementation manners of the first aspect, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

[0019] In a possible implementation manner, the first image processing may include partial processing of downsampling processing or ISP processing; the second image processing may include multi-frame image fusion processing, ISP processing, and other software algorithms of image processing.

[0020] It should be understood that in the embodiments of the present application, the duration required for the first image processing is less than the duration required for the second image processing.

[0021] In some implementation manners of the first aspect, the first thumbnail image is generated by performing thumbnail processing on the first preview image. For example, the first preview image is scaled based on the size of the thumbnail display area to generate the first thumbnail image.

[0022] In combination with the first aspect, in some implementation manners of the first aspect, it further includes:

[0023] In response to the second operation, a first captured image is generated;

[0024] The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.

[0025] It should be understood that the third thumbnail image is obtained by scaling the first captured image based on the thumbnail display area; compared with the second thumbnail image, the first captured image does not need to be downsampled; in addition, the first captured image may be an image after multi-frame Raw image fusion processing; therefore, the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0026] In an embodiment of the present application, when the electronic device detects an operation of the pop-up shooting control, the electronic device is triggered to generate a first shooting image, and the first shooting image can be a real captured image; by performing a scaling process on the first captured image, a third thumbnail image, that is, a thumbnail image of the first shooting image, can be obtained.

[0027] Combined with the first aspect, in some implementation manners of the first aspect, the electronic device includes a storage module, and the storage module includes a first storage area, and further includes:

[0028] When the electronic device generates the second thumbnail image and does not generate the first shooting image, the first thumbnail image in the first storage area is replaced by the second thumbnail image;

[0029] When the electronic device generates the first shooting image, the second thumbnail image in the first storage area is replaced by the first shooting image.

[0030] In an embodiment of the present application, after generating the second thumbnail image (for example, a real thumbnail image), the first thumbnail image (for example, a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image; after generating the first shooting image (for example, a captured image), the second thumbnail image (for example, a real thumbnail image) stored in the electronic device is directly replaced by the first shooting image; directly performing the replacement process in the embodiment of the present application for storing the first thumbnail image, the second thumbnail image and the first thumbnail image can reduce the storage space of the electronic device occupied by the thumbnail images.

[0031] In a possible implementation manner, the first preview image is scaled to generate the first thumbnail image.

[0032] It should be understood that in an embodiment of the present application, since the second thumbnail image is a thumbnail image obtained by performing image processing on a Raw image; and the first thumbnail image is a thumbnail image directly obtained by scaling a preview image; since the resolution of the preview image is usually lower than that of the Raw image collected by the image sensor, the image quality of the second thumbnail image is better than that of the first thumbnail image.

[0033] In an embodiment of the present application, after the electronic device detects an operation of clicking the shooting control, the process of saving a false thumbnail image in the album application can be triggered; so that when the electronic device detects the pop-up shooting control, the false thumbnail image can be quickly displayed in the display interface to respond to the user's shooting operation; reducing the waiting time of the user for shooting and improving the user's shooting experience.

[0034] In combination with the first aspect, in some implementations of the first aspect, it further includes:

[0035] Obtain the time information when the first operation is detected; select the first image from the zero-second delay queue in the electronic device based on the time information.

[0036] In a possible implementation, the time information when the first operation is detected and the first moment can be the same moment.

[0037] In combination with the first aspect, in some implementations of the first aspect, the second image processing includes first algorithm processing and second algorithm processing. The first algorithm is an algorithm in the first color space, and the second algorithm is an algorithm for converting an image in the first color space into an image in the second color space. The generation of the first captured image includes:

[0038] Perform the first algorithm processing on the first image to obtain an image in the first color space;

[0039] Perform fusion processing on at least two frames of images in the first color space to obtain a fused image;

[0040] Perform the second algorithm processing on the fused image to generate the first captured image.

[0041] In a possible implementation, the first algorithm is an algorithm in the Raw color space; the second algorithm is an algorithm for converting a Raw image to the YUV color space.

[0042] It should be understood that the first captured image can refer to a real image generated by a single photo-taking operation; compared with the generation of the second thumbnail image, the first captured image does not require downsampling processing; in addition, the first captured image can be an image obtained by fusing multiple frames of Raw images; therefore, the image quality of the first captured image is better than that of the second thumbnail image; in addition, the image quality of the third thumbnail image obtained by performing scaling processing based on the first captured image is better than that of the second thumbnail image.

[0043] In combination with the first aspect, in some implementations of the first aspect, the first operation is an operation of clicking the first control; the second operation is an operation of releasing the first control.

[0044] In combination with the first aspect, in some implementations of the first aspect, the image quality includes image texture information or image brightness information.

[0045] A second aspect provides a method for displaying a thumbnail image, which is applied to an electronic device and includes:

[0046] At a first moment, a first display interface is shown. The first display interface includes a first control, a thumbnail display area, and a first preview image. Among them, the first control is a control for indicating shooting; the thumbnail display area is used to display thumbnail images; the first preview image is an image generated after preview processing of a first image collected by the electronic device, and the first image is an image collected in real time by the electronic device at the first moment.

[0047] A first operation on the first control is detected, and the first operation is used to indicate the start of shooting.

[0048] In response to the first operation, a first thumbnail image is saved in the album application, and a second thumbnail image is generated. Among them, the first thumbnail image is a thumbnail image generated by performing first image processing on the first image; the second thumbnail image is a thumbnail image generated by performing second image processing on the first image, and the first image processing is different from the second image processing.

[0049] A second operation on the first control is detected, and the second operation is used to indicate the end of shooting.

[0050] In response to the second operation, the first thumbnail image and the second thumbnail image are sequentially shown in the thumbnail display area; and a third thumbnail image is generated, and the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0051] Before generating the third thumbnail image, a third operation on the first control is detected, and the third operation is used to indicate the start of shooting.

[0052] In response to the third operation, a fourth thumbnail image is saved in the album application, and a fifth thumbnail image is generated. Among them, the fourth thumbnail image is a thumbnail image generated by performing first image processing on a second image; the fifth thumbnail image is a thumbnail image generated by performing second image processing on the second image; the second image is an image collected in real time by the electronic device at a second moment, and the second moment is later than the first moment.

[0053] A fourth operation on the first control is detected, and the fourth operation is used to indicate the end of shooting.

[0054] In response to the fourth operation, the fourth thumbnail image, the fifth thumbnail image, and a sixth thumbnail image are sequentially shown in the thumbnail display area, where the image quality of the sixth thumbnail image is better than that of the fifth thumbnail image.

[0055] It should be understood that the first thumbnail image, the second thumbnail image, and the third thumbnail image correspond to the first photographing operation; the fourth thumbnail image, the fifth thumbnail image, and the sixth thumbnail image correspond to the second photographing operation; the photographing moments of the two photographing operations are different; among them, the first thumbnail image may be a false thumbnail image of the first photographing operation; the second thumbnail image is the true thumbnail image of the first photographing operation; the third thumbnail image is a thumbnail image generated based on the actually captured image of the first photographing operation; the fourth thumbnail image may be a false thumbnail image of the second photographing operation; the fifth thumbnail image is the true thumbnail image of the second photographing operation; the sixth thumbnail image is a thumbnail image generated based on the actually captured image of the second photographing operation.

[0056] In combination with the second aspect, in some implementation manners of the second aspect, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

[0057] In combination with the second aspect, in some implementation manners of the second aspect, the generating of the third thumbnail image includes:

[0058] In response to the second operation, a first captured image is generated;

[0059] The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.

[0060] In combination with the second aspect, in some implementation manners of the second aspect, it further includes:

[0061] In response to the fourth operation, a second captured image is generated;

[0062] The second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.

[0063] In combination with the second aspect, in some implementation manners of the second aspect, the electronic device includes a storage module, and the storage module includes a first storage area and a second storage area. The first storage area is used to store the first thumbnail image, the second thumbnail image, or the first captured image; the second storage area is used to store the fourth thumbnail image, the fifth thumbnail image, or the second captured image; the first storage area and the second storage area are different storage areas in the storage module.

[0064] In the embodiments of the present application, for one photographing, there is one corresponding storage area in the storage module of the electronic device. After a false thumbnail image, a true thumbnail image, or a captured image of one photographing is generated, it is only replaced and stored in the storage area corresponding to this photographing; different photographings correspond to different storage areas in the cache module.

[0065] In combination with the second aspect, in some implementations of the second aspect, it further includes:

[0066] In the case where the second thumbnail image is generated and the first captured image is not generated, the first thumbnail image in the first storage area is replaced by the second thumbnail image;

[0067] In the case where the first captured image is generated, the second thumbnail image in the first storage area is replaced by the first captured image.

[0068] In combination with the second aspect, in some implementations of the second aspect, it further includes:

[0069] In the case where the fifth thumbnail image is generated and the second captured image is not generated, the fourth thumbnail image in the second storage area is replaced by the fifth thumbnail image;

[0070] In the case where the second captured image is generated, the fifth thumbnail image in the second storage area is replaced by the second captured image.

[0071] In combination with the second aspect, in some implementations of the second aspect, the first operation and the third operation are operations of clicking the first control; the second operation and the fourth operation are operations of releasing the first control.

[0072] In combination with the second aspect, in some implementations of the second aspect, the image quality includes image texture information or image brightness information.

[0073] In a third aspect, an electronic device is provided. The electronic device includes one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code. The computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform:

[0074] Display a first display interface at a first moment. The first display interface includes a first control, a thumbnail display area, and a first preview image; wherein, the first control is a control for indicating shooting; the thumbnail display area is used to display thumbnail images; the first preview image is an image generated by previewing the first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment;

[0075] Detect a first operation on the first control, and the first operation is used to indicate the start of shooting;

[0076] In response to the first operation, a first thumbnail image is saved in the album application, and a second thumbnail image is generated; wherein, the first thumbnail image is a thumbnail image generated by performing first image processing on the first image; the second thumbnail image is a thumbnail image generated by performing second image processing on the first image, and the first image processing is different from the second image processing.

[0077] A second operation on the first control is detected, and the second operation is used to indicate the end of shooting.

[0078] In response to the second operation, the first thumbnail image, the second thumbnail image, and a third thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0079] In combination with the third aspect, in some implementation manners of the third aspect, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

[0080] In combination with the third aspect, in some implementation manners of the third aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0081] In response to the second operation, a first captured image is generated.

[0082] Based on the size of the thumbnail display area, the first captured image is scaled to generate the third thumbnail image.

[0083] In combination with the third aspect, in some implementation manners of the third aspect, the electronic device includes a storage module, and the storage module includes a first storage area. The one or more processors call the computer instructions to cause the electronic device to execute:

[0084] When the electronic device generates the second thumbnail image and does not generate the first captured image, the first thumbnail image in the first storage area is replaced with the second thumbnail image.

[0085] When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced with the first captured image.

[0086] In combination with the third aspect, in some implementation manners of the third aspect, the one or more processors call the computer instructions to cause the electronic device to execute:

[0087] Obtain the time information when the first operation is detected.

[0088] Select the first image from the zero-second delay queue in the electronic device based on the time information.

[0089] In combination with the third aspect, in some implementations of the third aspect, the second image processing includes first algorithm processing and second algorithm processing, and the one or more processors call the computer instructions to cause the electronic device to perform:

[0090] Perform first algorithm processing on the first image to obtain an image in the first color space;

[0091] Perform fusion processing on at least two frames of the images in the first color space to obtain a fused image;

[0092] Perform second algorithm processing on the fused image to generate the first captured image.

[0093] In combination with the third aspect, in some implementations of the third aspect, the first operation is an operation of clicking the first control; the second operation is an operation of releasing the first control.

[0094] In combination with the third aspect, in some implementations of the third aspect, the image quality includes image texture information or image brightness information.

[0095] In a fourth aspect, an electronic device is provided. The electronic device includes one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code. The computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to perform:

[0096] Display a first display interface at a first moment. The first display interface includes a first control, a thumbnail display area, and a first preview image; wherein, the first control is a control for indicating shooting; the thumbnail display area is used to display thumbnail images; the first preview image is an image generated by preview processing of a first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment;

[0097] Detect a first operation on the first control, and the first operation is used to indicate the start of shooting;

[0098] In response to the first operation, save a first thumbnail image in the album application and generate a second thumbnail image; wherein, the first thumbnail image is a thumbnail image generated by first image processing of the first image; the second thumbnail image is a thumbnail image generated by second image processing of the first image, and the first image processing is different from the second image processing;

[0099] A second operation on the first control is detected, and the second operation is used to indicate the end of shooting;

[0100] In response to the second operation, the first thumbnail image and the second thumbnail image are sequentially displayed in the thumbnail display area; and a third thumbnail image is generated, and the image quality of the third thumbnail image is better than that of the second thumbnail image;

[0101] Before generating the third thumbnail image, a third operation on the first control is detected, and the third operation is used to indicate the start of shooting;

[0102] In response to the third operation, a fourth thumbnail image is saved in the album application, and a fifth thumbnail image is generated; wherein, the fourth thumbnail image is a thumbnail image generated by performing first image processing on the second image; the fifth thumbnail image is a thumbnail image generated by performing second image processing on the second image; the second image is an image captured in real time by the electronic device at a second moment, and the second moment is later than the first moment;

[0103] A fourth operation on the first control is detected, and the fourth operation is used to indicate the end of shooting;

[0104] In response to the fourth operation, the fourth thumbnail image, the fifth thumbnail image, and a sixth thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the sixth thumbnail image is better than that of the fifth thumbnail image.

[0105] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

[0106] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to perform:

[0107] In response to the second operation, a first captured image is generated;

[0108] Based on the size of the thumbnail display area, the first captured image is scaled to generate the third thumbnail image.

[0109] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to perform:

[0110] In response to the fourth operation, a second captured image is generated;

[0111] Scale the second captured image based on the size of the thumbnail display area to generate the sixth thumbnail image.

[0112] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the electronic device includes a storage module, and the storage module includes a first storage area and a second storage area. The first storage area is used to store the first thumbnail image, the second thumbnail image, or the first captured image; the second storage area is used to store the fourth thumbnail image, the fifth thumbnail image, or the second captured image; the first storage area and the second storage area are different storage areas in the storage module.

[0113] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to perform:

[0114] In the case where the second thumbnail image is generated and the first captured image is not generated, perform a replacement process on the first thumbnail image in the first storage area with the second thumbnail image;

[0115] In the case where the first captured image is generated, perform a replacement process on the second thumbnail image in the first storage area with the first captured image.

[0116] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to perform:

[0117] In the case where the fifth thumbnail image is generated and the second captured image is not generated, perform a replacement process on the fourth thumbnail image in the second storage area with the fifth thumbnail image;

[0118] In the case where the second captured image is generated, perform a replacement process on the fifth thumbnail image in the second storage area with the second captured image.

[0119] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the first operation and the third operation are operations of clicking the first control; the second operation and the fourth operation are operations of releasing the first control.

[0120] In combination with the fourth aspect, in some implementation manners of the fourth aspect, the image quality includes image texture information or image brightness information.

[0121] In a fifth aspect, there is provided an electronic device including a module / unit for executing the method of displaying a thumbnail image in the first aspect or any one of the implementation manners in the first aspect.

[0122] In a sixth aspect, an electronic device is provided, including a module / unit configured to execute the method for displaying a thumbnail image in the second aspect or any one implementation manner of the second aspect.

[0123] In a seventh aspect, an electronic device is provided, the electronic device includes one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method for displaying a thumbnail image in any aspect or any one implementation manner of any aspect.

[0124] In an eighth aspect, a chip system is provided, the chip system is applied to an electronic device, the chip system includes one or more processors, and the processors are used to call computer instructions to cause the electronic device to execute the method for displaying a thumbnail image in any aspect or any one implementation manner thereof.

[0125] In a ninth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores computer program code, and when the computer program code is run by an electronic device, the electronic device is caused to execute the method for displaying a thumbnail image in any aspect or any one implementation manner of any aspect.

[0126] In a tenth aspect, a computer program product is provided, the computer program product includes: computer program code, and when the computer program code is run by an electronic device, the electronic device is caused to execute the method for displaying a thumbnail image in any aspect or any one implementation manner of any aspect.

[0127] In an embodiment of the present application, the shooting operation is divided into a first operation (for example, an operation of clicking a shooting control) and a second operation (for example, an operation of releasing the shooting control); when the electronic device detects the first operation, the electronic device is triggered to save a first thumbnail image (for example, a false thumbnail image) in the camera application and generate a second thumbnail image (for example, a true thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image, and a third thumbnail image (for example, a thumbnail image obtained based on the captured image) are sequentially displayed in the display area of the display interface; since the display of the first thumbnail image is quickly triggered after the second operation is detected, a thumbnail image can be displayed at the moment when the electronic device detects the second operation, the shooting response speed is improved; the shooting waiting time of the user is reduced, and the shooting experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0128] Figure 1 is a schematic diagram of a hardware system of an electronic device applicable to the present application;

[0129] Figure 2 It is a schematic diagram applicable to the application scenario of the embodiments of the present application;

[0130] Figure 3 It is a schematic flowchart of a method for displaying thumbnail images provided by the embodiments of the present application;

[0131] Figure 4 It is a schematic flowchart of another method for displaying thumbnail images provided by the embodiments of the present application;

[0132] Figure 5 It is a schematic diagram of a software architecture provided by the embodiments of the present application;

[0133] Figure 6 It is a schematic diagram of a graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0134] Figure 7 It is a schematic diagram of another graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0135] Figure 8 It is a schematic diagram of yet another graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0136] Figure 9 It is a schematic diagram of another software architecture provided by the embodiments of the present application;

[0137] Figure 10 It is a schematic diagram of a graphical user interface applicable to the embodiments of the present application;

[0138] Figure 11 It is a schematic diagram of another graphical user interface applicable to the embodiments of the present application;

[0139] Figure 12 It is a schematic diagram of yet another graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0140] Figure 13 It is a schematic diagram of yet another graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0141] Figure 14 It is a schematic diagram of yet another graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0142] Figure 15 It is a schematic diagram of yet another graphical user interface applicable to the embodiments of the present application provided by the embodiments of the present application;

[0143] Figure 16It is another schematic diagram of a graphical user interface applicable to the embodiments of the present application;

[0144] Figure 17 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0145] Figure 18 It is a schematic structural diagram of another electronic device provided by an embodiment of the present application. Detailed implementation manners

[0146] In the embodiments of the present application, the following terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise stated, the meaning of "a plurality" is two or more.

[0147] For the convenience of understanding the embodiments of the present application, the relevant concepts involved in the embodiments of the present application are briefly described first.

[0148] 1. Thumbnail image

[0149] A thumbnail image refers to an image with a relatively small resolution cached in an electronic device. The image quality of a thumbnail image is worse than that of a captured image; compared with the captured image in the electronic device, the resolution of the thumbnail image is smaller; optionally, the actual captured image in the album can be indexed through the thumbnail image on the shooting interface.

[0150] 2. Zero shutter lag (ZSL) queue

[0151] Before an electronic device takes a photo, it usually displays an image of the scene to be photographed on the electronic device; these displayed images are also called preview images; among them, the electronic device caches the preview images and the actual captured images in an image queue in chronological order, and this image queue is called a ZSL queue.

[0152] Optionally, the images in the ZSL queue can be Raw images.

[0153] Figure 1 Shows a hardware system of an electronic device applicable to the present application.

[0154] The electronic device 100 can be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, etc. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device 100.

[0155] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0156] It should be noted that Figure 1 the structure shown does not constitute a specific limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than Figure 1 those shown, or the electronic device 100 may include a combination of some of the components Figure 1 shown, or the electronic device 100 may include sub-components of some of the components Figure 1 shown. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.

[0157] Exemplarily, the processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated devices. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.

[0158] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0159] In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and a USB interface.

[0160] Exemplarily, in an embodiment of the present application, the processor 110 may be used to execute the method for displaying a thumbnail image provided in the embodiment of the present application. For example, at a first moment, a first display interface is displayed, and the first display interface includes a first control, a thumbnail display area, and a first preview image. The first control is a control for indicating shooting. The thumbnail display area is used to display thumbnail images. The first preview image is an image generated by preview processing of a first image collected by the electronic device, and the first image is an image collected in real time by the electronic device at the first moment. Detect a first operation on the first control, where the first operation is used to indicate the start of shooting, and the shooting may include taking a photo. In response to the first operation, save the first thumbnail image in the album application and generate a second thumbnail image. The first thumbnail image is a thumbnail image generated by performing a first image process on the first image. The second thumbnail image is a thumbnail image generated by performing a second image process on the first image, and the first image process is different from the second image process. Detect a second operation on the first control, where the second operation is used to indicate the end of shooting. In response to the second operation, sequentially display the first thumbnail image, the second thumbnail image, and a third thumbnail image in the thumbnail display area, where the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0161] Figure 1 The connection relationships shown between the various modules are only illustrative and do not constitute a limitation on the connection relationships between the modules of the electronic device 100. Optionally, the various modules of the electronic device 100 may also adopt a combination of various connection methods in the above embodiments.

[0162] The wireless communication function of the electronic device 100 may be implemented by devices such as antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, and baseband processor.

[0163] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0164] The electronic device 100 may implement the display function through the GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0165] The display screen 194 can be used to display images or videos.

[0166] Optionally, the display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a Micro OLED, or a quantum dot light emitting diode (QLED). In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0167] Exemplarily, the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor, etc.

[0168] Exemplarily, the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the camera to the camera sensor, where the optical signal is converted into an electrical signal. The camera sensor transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can perform algorithm optimization on the noise, brightness, and color of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be provided in the camera 193.

[0169] Exemplarily, the camera 193 (which can also be referred to as a lens) is used to capture still images or videos. It can be triggered to turn on through application instructions to implement the photographing function, such as capturing images of any scene. The camera may include components such as an imaging lens, a filter, and an image sensor. The light emitted or reflected by an object enters the imaging lens, passes through the filter, and finally converges on the image sensor. The imaging lens is mainly used to converge and form an image of the light emitted or reflected by all objects in the photographing perspective (which can also be referred to as the scene to be photographed, the target scene, or can also be understood as the scene image that the user expects to photograph); the filter is mainly used to filter out the excess light waves in the light (such as light waves other than visible light, such as infrared); the image sensor can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The image sensor is mainly used to perform photoelectric conversion on the received optical signal, convert it into an electrical signal, and then transfer the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard formats such as RGB and YUV.

[0170] Exemplarily, the digital signal processor is used to process digital signals. In addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform and the like on the frequency point energy.

[0171] Exemplarily, the video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0172] Exemplarily, the gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x-axis, the y-axis, and the z-axis) can be determined through the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake during photographing. For example, when the shutter is pressed, the gyroscope sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and makes the lens offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used in scenarios such as navigation and motion-sensing games.

[0173] Exemplarily, the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally the x-axis, y-axis, and z-axis). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 180E can also be used to identify the posture of the electronic device 100 and serve as an input parameter for application programs such as horizontal and vertical screen switching and pedometers.

[0174] Exemplarily, the distance sensor 180F is used to measure distance. The electronic device 100 can measure distance through infrared or laser. In some embodiments, for example, in a shooting scenario, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focus.

[0175] Exemplarily, the ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance during photography. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.

[0176] Exemplarily, the fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement functions such as unlocking, accessing the application lock, taking pictures, and answering incoming calls.

[0177] Exemplarily, the touch sensor 180K, also known as a touch control device. The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch panel. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100 and be disposed at a different position from the display screen 194.

[0178] Currently, after the electronic device detects the operation of the user bouncing the shooting control, it will trigger the electronic device to generate a real thumbnail image and a shooting image (for example, the real picture taken); resulting in the electronic device being unable to display the thumbnail image instantly when detecting the bouncing of the shooting control, that is, the time duration between the electronic device detecting the bouncing of the shooting control and displaying the thumbnail image is too long; resulting in a longer shooting waiting time for the user and a poor shooting experience for the user.

[0179] In view of this, embodiments of the present application provide a method and an electronic device for displaying thumbnail images; in the embodiments of the present application, the shooting operation is divided into an operation of clicking the shooting control and an operation of releasing the shooting control. When the electronic device detects the operation of clicking the shooting control, the electronic device is triggered to save a false thumbnail image in the album application and generate a true thumbnail image; wherein, the false thumbnail image refers to a thumbnail image obtained by scaling the preview image; the true thumbnail image refers to a thumbnail image generated after performing image processing on the original image data; when the electronic device detects the operation of the user releasing the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed instantly when the electronic device detects the operation of releasing the shooting control, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0180] In addition, when detecting the release of the shooting control, the generation of the captured image is triggered; after the true thumbnail image is generated, the false thumbnail image can be replaced by the true thumbnail image; after the captured image is generated, the true thumbnail image can be replaced by a thumbnail image obtained by scaling the captured image; it can ensure the image quality of the thumbnail image while improving the shooting response speed.

[0181] Figure 2 It is a schematic diagram of an application scenario of the method for displaying thumbnail images provided by the embodiments of the present application.

[0182] Exemplarily, after the electronic device runs the camera application, a preview interface 201 is displayed, as shown in (a) of Figure 2 ; the preview interface 201 includes a preview image, a thumbnail display control 202 and a shooting control 203, wherein the thumbnail display control 203 is used to display the thumbnail image of the last captured image; at the first moment, the electronic device detects the operation of clicking the shooting control 203, as shown in (b) of Figure 2 ; at the second moment, the electronic device detects the operation of the user releasing the shooting control 203, and a display interface 204 is displayed, as shown in (c) of Figure 2 ; the thumbnail image displayed in the thumbnail display control 202 in the display interface 204 is still the thumbnail image of the last captured image; at the third moment, the electronic device displays a display interface 205, and the thumbnail image displayed in the thumbnail display control 203 in the display interface 205 is the thumbnail image of the current captured image, as shown in (d) of Figure 2 .

[0183] It should be understood that users usually regard the thumbnail image of the current captured image displayed in the display interface as the completion of the current shooting. Therefore, since the electronic device cannot display the thumbnail image instantly when detecting the release of the shooting control, the user thinks that the shooting response is too slow and the shooting experience is poor.

[0184] In an embodiment of the present application, a method and an electronic device for displaying a thumbnail image are provided; the method for displaying a thumbnail image according to the embodiment of the present application can solve the problem of long shooting response time of the electronic device, enabling the electronic device to quickly display the thumbnail image.

[0185] Optionally, the method for displaying a thumbnail in the embodiment of the present application can be applied to the shooting mode of the camera application; alternatively, the method for displaying a thumbnail in the embodiment of the present application can be applied to the quick shooting mode of the camera application.

[0186] It should be noted that the method for displaying a thumbnail image in the embodiment of the present application can be applied to night scene shooting in the shooting mode, but is not applicable to the night scene shooting mode; because in the night scene shooting mode, each frame of image obtained by the electronic device is obtained by fusing a long exposure image, a normal exposure image, and a short exposure image; because in the embodiment of the present application, when detecting a click on the shooting control, the electronic device is triggered to generate a false thumbnail image and a real thumbnail image, and when detecting the shooting control being released, the false thumbnail image is displayed; after the false thumbnail image is displayed on the electronic device, if the user believes that the current shooting is completed, the user may move the electronic device; however, at this time, the short exposure image and the long exposure image may not have been generated yet; after moving the electronic device, the content in the short exposure image, the long exposure image, and the normal exposure image will be different, resulting in poor image quality; therefore, the method for displaying a thumbnail image provided in the embodiment of the present application is not applicable to the night scene mode.

[0187] It should be understood that the above is an example illustration of the application scenario and does not impose any limitation on the application scenario of the present application.

[0188] Next, in combination with Figures 3 to 16 a detailed description of the method for displaying a thumbnail image provided in the embodiment of the present application will be given.

[0189] Figure 3 is a schematic flowchart of a method for displaying a thumbnail image provided in an embodiment of the present application. The method 300 can be executed by Figure 1 the electronic device shown; the method 300 includes S310 to S350, and the following will give a detailed description of S310 to S350 respectively.

[0190] S310. Display a first display interface at a first moment.

[0191] Among them, the first display interface includes a first control, a thumbnail display area, and a first preview image; among them, the first control is a control for indicating shooting; the thumbnail display area is used to display a thumbnail image; the first preview image is an image generated after preview processing of the first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment.

[0192] Optionally, as Figure 5 shown, the camera module may send the first image collected at the first moment to the preview storage module and the ZSL queue storage module respectively; wherein, the preview storage module is used to store preview images, and the preview images are images generated by previewing the images collected by the camera module; the images stored in the ZSL queue storage module are used to generate actual captured images for taking pictures.

[0193] Exemplarily, the first display interface may be as Figure 6 shown in (a) of Figure 6 ; the first control may refer to the control 612 shown in (a) of Figure 6 ; the display area may refer to the area where the control 613 shown in (a) of

[0194] Optionally, the camera application may be run before S310.

[0195] Exemplarily, the user may instruct the electronic device to run the camera application by clicking on the icon of the "Camera" application.

[0196] Exemplarily, when the electronic device is in the locked screen state, the user may instruct the electronic device to run the camera application by swiping right on the display screen of the electronic device. Or, when the electronic device is in the locked screen state and the locked screen interface includes the icon of the camera application, the user may instruct the electronic device to run the camera application by clicking on the icon of the camera application. Or, when the electronic device is running other applications and the application has the permission to call the camera application; the user may instruct the electronic device to run the camera application by clicking on the corresponding control. For example, when the electronic device is running an instant messaging application, the user may instruct the electronic device to run the camera application by selecting the control for the camera function, etc.

[0197] It should be understood that the above are examples of operations for running the camera application; the electronic device may also be instructed to run the camera application through voice instructions or other operations; the present application does not make any limitations in this regard.

[0198] It should also be understood that running the camera application may refer to starting the camera application.

[0199] S320, detecting a first operation on the first control.

[0200] Wherein, the first operation is used to indicate the start of shooting. The shooting may include taking pictures.

[0201] Optionally, the shooting operation may be a taking picture operation.

[0202] Exemplarily, as Figure 6As shown in (c) therein, the first operation may be a click operation on the control 612.

[0203] Optionally, in the embodiments of the present application, the above is described by way of example with the first operation being a click operation; in the embodiments of the present application, the first operation may also be an operation of taking a photo by voice instruction; or, an operation of starting to take a photo by other instructions; the present application does not make any limitation thereto.

[0204] S330. In response to the first operation, save the first thumbnail image in the album application and generate a second thumbnail image.

[0205] Wherein, the first thumbnail image is a thumbnail image generated by the first image processing of the first image; the second thumbnail image is a thumbnail image generated by the second image processing of the first image, and the first image processing is different from the second image processing.

[0206] In a possible implementation manner, the first image processing may include partial processing of downsampling processing or ISP processing; the second image processing may include multi-frame image fusion processing, ISP processing and other software algorithms of image processing.

[0207] It should be understood that, in the embodiments of the present application, the duration required for the first image processing is less than the duration required for the second image processing.

[0208] Exemplarily, the first thumbnail image may be the thumbnail image displayed in the control 613 as shown in (a) of Figure 7 ; the second thumbnail image may be the thumbnail image displayed in the control 613 as shown in (c) of Figure 7 .

[0209] In a possible implementation manner, generating the first thumbnail image includes:

[0210] Performing a scaling process on the first preview image to generate the first thumbnail image. The specific implementation manner may refer to the relevant description of the first process 430 in the following Figure 4 , and details are not described herein again.

[0211] In the embodiments of the present application, after the electronic device detects an operation of clicking the shooting control, it may trigger a process of saving a false thumbnail image in the album application; so that when the electronic device detects the shooting control being released, it can quickly display the false thumbnail image on the display interface to respond to the user's shooting operation; reduce the waiting time of the user for shooting and improve the user's shooting experience.

[0212] Optionally, it further includes:

[0213] In response to a second operation, a first captured image is generated; the first captured image is scaled based on the size of the thumbnail display area to generate a third thumbnail image.

[0214] It should be understood that the third thumbnail image is obtained by scaling the first captured image based on the thumbnail display area; compared with the second thumbnail image, the first captured image does not need to be downsampled; in addition, the first captured image can be an image obtained by fusing multiple frames of Raw images; therefore, the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0215] In an embodiment of the present application, when the electronic device detects an operation of bouncing the shooting control, the electronic device is triggered to generate a first captured image, and the first captured image can be a real captured image; by scaling the first captured image, a third thumbnail image, that is, a thumbnail image of the first captured image, can be obtained.

[0216] Optionally, the second image processing includes a first algorithm processing and a second algorithm processing. The first algorithm is an algorithm in a first color space, and the second algorithm is an algorithm for converting an image in the first color space into an image in a second color space. Generating the first captured image includes:

[0217] Performing a first algorithm processing on a first image to obtain an image in the first color space; performing a fusion processing on at least two frames of images in the first color space to obtain a fused image; performing a second algorithm processing on the fused image to generate the first captured image.

[0218] Optionally, the specific implementation manner can refer to the relevant description of the subsequent Figure 4 second process 440 shown, which will not be elaborated here.

[0219] Exemplarily, the first image can be original image data, that is, the first image can be a Raw image; the first algorithm can include an algorithm in the Raw color space.

[0220] For example, the algorithm in the Raw color space can include, but is not limited to: algorithms such as Black Level Correction (BLC) and Lens Shading Correction (LSC).

[0221] Among them, the black level correction process is used to correct the black level. The black level refers to the video signal level where there is no light output in a display device that has undergone certain calibration. The reason for performing black level correction is as follows: on the one hand, due to the dark current in the image sensor, there is a problem that pixels have voltage output even without light; on the other hand, due to insufficient accuracy during the analog-to-digital conversion of the image sensor. Lens Shading Correction (LSC) is used to eliminate the problem that the color and brightness around the image are inconsistent with the center of the image due to the lens optical system.

[0222] For example, the second algorithm includes an algorithm for converting a Raw image into the YUV color space.

[0223] Optionally, it further includes:

[0224] Obtain the time information when the first operation is detected; select the first image from the zero-second delay queue in the electronic device based on the time information.

[0225] In the embodiments of the present application, when detecting an operation of clicking the shooting control, the electronic device can be triggered to generate a second thumbnail image, that is, a real thumbnail image; compared with the existing solution where the process of generating a real thumbnail image is triggered after detecting the release of the shooting operation, in the embodiments of the present application, the time for triggering the electronic device to generate a real thumbnail image is advanced, thereby reducing the response time of the electronic device to shooting; reducing the waiting time of the user for shooting and improving the shooting experience of the user.

[0226] S340. Detect a second operation on the first control.

[0227] Among them, the second operation is used to indicate the end of shooting.

[0228] Exemplarily, the second operation can be an operation of releasing the shooting control, as shown in (a) of Figure 7 .

[0229] It should be understood that the operation of releasing the shooting control can refer to the operation where the electronic device detects that the user's finger leaves the shooting control; or the operation where the electronic device detects that the user's finger releases the shooting control, etc.

[0230] Optionally, the above is an example description of the second operation; in the embodiments of the present application, the second operation can also be an operation of indicating the end of shooting through voice; or an operation of indicating the end of shooting through other instructions; the present application does not make any limitation on this.

[0231] S350. In response to the second operation, display the first thumbnail image, the second thumbnail image, and the third thumbnail image in sequence in the thumbnail display area.

[0232] Among them, the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0233] In a possible implementation, the image quality may include image detail information, image texture information, image brightness, or an image quality evaluation result obtained by any image quality evaluation algorithm; the present application does not make any limitation thereto.

[0234] It should be noted that, in the embodiments of the present application, the first thumbnail image, the second thumbnail image, and the third thumbnail image may correspond to the same shooting by the user; for the same shooting, the display of the first thumbnail image, the second thumbnail image, and the third thumbnail image is mutually exclusive; for example, if the first thumbnail image is displayed in the display interface of the camera application, the second thumbnail image and the third thumbnail image will not be displayed in the display interface; if the second thumbnail image is displayed in the display interface of the camera application, the first thumbnail image and the third thumbnail image will not be displayed in the display interface; if the third thumbnail image is displayed in the display interface of the camera application, the first thumbnail image and the second thumbnail image will not be displayed in the display interface; for example, at time T1, the first thumbnail image is displayed; at time T2, the second thumbnail image is displayed; at time T3, the third thumbnail image is displayed; time T1 is earlier than time T2; time T2 is earlier than time T3.

[0235] Optionally, the electronic device includes a storage module, and the storage module includes a first storage area, and further includes:

[0236] When the electronic device generates the second thumbnail image and does not generate the first captured image, the first thumbnail image in the first storage area is replaced by the second thumbnail image;

[0237] When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced by the first captured image.

[0238] In the embodiments of the present application, after generating the second thumbnail image (for example, a real thumbnail image), the first thumbnail image (for example, a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image; after generating the first captured image (for example, a captured image), the second thumbnail image (for example, a real thumbnail image) stored in the electronic device is directly replaced by the first captured image; compared with storing the first thumbnail image, the second thumbnail image, and the first thumbnail image, directly performing the replacement process in the embodiments of the present application can reduce the storage space of the electronic device occupied by the thumbnail images.

[0239] In an embodiment of the present application, the shooting operation is divided into a first operation (for example, an operation of clicking on a shooting control) and a second operation (for example, an operation of lifting the shooting control); when the electronic device detects the first operation, the electronic device is triggered to save a first thumbnail image (for example, a false thumbnail image) in the camera application and generate a second thumbnail image (for example, a true thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image, and a third thumbnail image (for example, a thumbnail image obtained based on the captured image) are sequentially displayed in the display area of the display interface; since the first thumbnail image is quickly triggered to be displayed after the second operation is detected, a thumbnail image can be displayed at the moment when the electronic device detects the second operation, improving the shooting response speed; reducing the shooting waiting time of the user and enhancing the shooting experience.

[0240] Example 1

[0241] For one shooting operation detected by the electronic device, that is, the electronic device detects one first operation and one second operation; for example, the electronic device detects one operation of clicking on a shooting control and one operation of lifting the shooting control.

[0242] Exemplarily, for one shooting, as shown in (a) of Figure 7 , a first thumbnail image, that is, a false thumbnail image, is displayed in the thumbnail control 613 at time T(12); as shown in (c) of Figure 7 , a second thumbnail image, that is, a true thumbnail image, is displayed in the thumbnail control 613 at time T(13); as shown in (a) of Figure 8 , a third thumbnail image, that is, a thumbnail image of the captured image, is displayed in the thumbnail control 613 at time T(14), where time T(12) is earlier than time T(13), and time T(13) is earlier than time T(14).

[0243] Optionally, if the electronic device detects one first operation and one second operation, the first thumbnail image, the second thumbnail image, and the third thumbnail image include a first shooting object.

[0244] Optionally, it further includes:

[0245] In response to the second operation, a first image is generated; the first image is scaled to generate a third thumbnail image.

[0246] Exemplarily, the implementation manner of generating the first image can refer to the relevant description of the third process 470 in the subsequent Figure 4 , which will not be elaborated here; the implementation manner of generating the third thumbnail image can refer to the relevant description of S480 in the subsequent Figure 4 , which will not be elaborated here.

[0247] In an embodiment of the present application, when the electronic device detects an operation of popping up the shooting control, the electronic device is triggered to generate a first image. The first image may refer to a captured image, that is, a real captured image. By performing a scaling process on the first image, a third thumbnail image, that is, a thumbnail image of the captured image, can be obtained.

[0248] Optionally, generating the first image includes:

[0249] Performing a first algorithm process on a second image to obtain an image in a first color space; performing a fusion process on at least two frames of images in the first color space to obtain a fused image; performing a second algorithm process on the fused image to generate the first image.

[0250] Exemplarily, time information when the first operation is detected can be obtained; based on the time information, a second image is selected from the zero-second delay queue in the electronic device; performing an algorithm process on the second image in the Raw color space to obtain a processed Raw image; performing a fusion process on at least two frames of the processed Raw images to obtain the first image.

[0251] It should be understood that the first image may refer to a real image generated by a single capture; compared with the second thumbnail image, the first image does not need to be downsampled; in addition, the first image may be an image obtained by fusing multiple frames of Raw images; therefore, the image quality of the first image is better than that of the second thumbnail image; in addition, the image quality of the third thumbnail image obtained by performing a scaling process on the first image is better than that of the second thumbnail image.

[0252] Optionally, the electronic device includes a storage module, and the storage module includes a first storage area, and further includes:

[0253] When the electronic device generates a first thumbnail image and does not generate a second thumbnail image, the first thumbnail image is stored in the first storage area;

[0254] When the electronic device generates a second thumbnail image and does not generate a first image, the first thumbnail image in the first storage area is replaced by the second thumbnail image;

[0255] When the electronic device generates a first image, the second thumbnail image in the first storage area is replaced by the first image.

[0256] Exemplarily, as shown in (b) of Figure 7 , the album application of the electronic device may include a cache module; at time T(12), the first storage location in the cache module is used to store the first thumbnail image (for example, false thumbnail image 1); as Figure 7As shown in (d) therein, at time T(13), the first storage area in the cache module is used to store the second thumbnail image (e.g., the real thumbnail image 11); for example, at time T(13), the fake thumbnail image can be replaced by the real thumbnail image, the fake thumbnail image can be deleted and the real thumbnail image can be stored in the same storage area; at time T(14), the first storage area in the cache module is used to store the first image (e.g., the captured image); for example, at the third moment, the real thumbnail image can be replaced by the captured image, the real thumbnail image can be deleted and the captured image can be stored in the same storage space.

[0257] It should be understood that the above-mentioned fake thumbnail image, real thumbnail image and captured image correspond to the same shooting of the user; in other words, the above-mentioned fake thumbnail image, real thumbnail image and captured image correspond to the user's same operation of clicking the shooting control and bouncing the shooting control; in addition, for the same shooting, the display of the fake thumbnail image, the display of the real thumbnail image and the display of the thumbnail image of the captured image are mutually exclusive; for example, if the fake thumbnail image is displayed in the display interface of the camera application, the real thumbnail image and the thumbnail image of the captured image will not be displayed in the display interface; if the real thumbnail image is displayed in the display interface of the camera application, the fake thumbnail image and the thumbnail image of the captured image will not be displayed in the display interface; if the thumbnail image of the captured image is displayed in the display interface of the camera application, the fake thumbnail image and the real thumbnail image will not be displayed in the display interface.

[0258] In the embodiment of the present application, after the second thumbnail image (e.g., the real thumbnail image) is generated, the first thumbnail image (e.g., the fake thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image; after the first image (e.g., the captured image) is generated, the second thumbnail image (e.g., the real thumbnail image) stored in the electronic device is directly replaced by the first image; compared with storing the first thumbnail image, the second thumbnail image and the first thumbnail image, directly performing the replacement process in the embodiment of the present application can reduce the storage space of the electronic device occupied by the thumbnail image.

[0259] Example 2

[0260] For the electronic device detecting at least two shooting operations, that is, the electronic device detecting at least two first operations and at least two second operations; for example, the electronic device detects the operation of clicking the shooting control for the first time and the operation of bouncing the shooting control for the first time; before the captured image of the first shooting is generated, the electronic device detects the operation of clicking the shooting control for the second time and the operation of bouncing the shooting control for the second time.

[0261] Optionally, when the electronic device detects a first operation and a second operation, it detects a shooting operation; if the number of shooting operations detected by the electronic device is greater than one, the first shooting object is included in the first thumbnail image and the second thumbnail image, and the second shooting object is included in the third thumbnail image, and the first shooting object is different from the second shooting object.

[0262] Exemplarily, the first shooting object included in the first thumbnail image and the second thumbnail image, such as Figure 10 the shooting object 811 shown in (c) of Figure 11 ; the second shooting object included in the third thumbnail image, such as

[0263] Optionally, the electronic device includes a storage module, and the storage module includes a first storage area and a second storage area, and further includes:

[0264] When the electronic device generates the first thumbnail image and does not generate the second thumbnail image, the first thumbnail image is stored in the first storage area;

[0265] When the electronic device generates the second thumbnail image, the first thumbnail image in the first storage area is replaced by the second thumbnail image;

[0266] When the electronic device generates the third thumbnail image, the third thumbnail image is stored in the second storage area.

[0267] Exemplarily, as Figure 11 shown in (b) of Figure 11 the album application of the electronic device may include a cache module; at time T(22), the electronic device generates a first thumbnail, and the first storage location in the cache module is used to store the first thumbnail image (for example, the false thumbnail image 1); as Figure 12 shown in (d) of

[0268] Optionally, it further includes:

[0269] In response to the second operation, a third image of the first shooting object is generated; the second thumbnail image in the first storage area is replaced with the third image, and the image quality of the third image is better than that of the second thumbnail image.

[0270] Exemplarily, the third image may refer to the captured image of the first shooting; as Figure 13 shown in (b) of [], after the electronic device generates the captured image of the first shooting, the second thumbnail image (for example, the real thumbnail image 11) stored in the cache module can be replaced with the captured image.

[0271] Optionally, after the third thumbnail image is displayed in the display area, it further includes:

[0272] A fourth thumbnail image is displayed in the display area, the fourth thumbnail image is the thumbnail image of the second shooting object, and the image quality of the fourth thumbnail image is better than that of the third thumbnail image.

[0273] Exemplarily, the fourth thumbnail image may refer to the real thumbnail image of the second shooting, and the real thumbnail image of the second shooting may be the thumbnail image shown in the control 813 in (c) of Figure 13 [].

[0274] Optionally, it further includes:

[0275] The third thumbnail image in the second storage area is replaced with the fourth thumbnail image.

[0276] Exemplarily, as Figure 13 shown in (b) of [] and Figure 13 shown in (d) of [], after the electronic device generates the fourth thumbnail image (for example, the real thumbnail image 22) of the second shooting, the third thumbnail image (for example, the false thumbnail image 2) in the cache module can be replaced with the real thumbnail image 22.

[0277] Optionally, it further includes:

[0278] Obtain a second preview image of the second shooting object, the second preview image is stored in the camera application of the electronic device; perform a scaling process on the second preview image to generate a third thumbnail image.

[0279] Exemplarily, after the electronic device detects the operation of clicking the shooting control for the second time, the process of generating the false thumbnail image of the second shooting can be triggered; so that when the electronic device detects that the shooting control is bounced up for the second time, the false thumbnail image can be quickly displayed in the display interface to respond to the user's shooting operation; reduce the waiting time of the user for shooting, and improve the shooting experience of the user.

[0280] In an embodiment of the present application, the shooting operation is divided into a first operation (e.g., an operation of clicking on the shooting control) and a second operation (e.g., an operation of lifting the shooting control); when the electronic device detects the first operation, the electronic device is triggered to generate a first thumbnail image (e.g., a false thumbnail image) and a second thumbnail image (e.g., a true thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image, and a third thumbnail image (e.g., a thumbnail image obtained based on the captured image) are sequentially displayed in the display area of the display interface; since the first thumbnail image is quickly triggered to be displayed after the second operation is detected, a thumbnail image can be displayed at the moment when the electronic device detects the second operation, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0281] The following combines Figures 4 to 14 to describe in detail the implementation manner of the embodiment of the present application.

[0282] Implementation method 1

[0283] Exemplarily, when the electronic device detects a shooting operation once (e.g., an operation of clicking on the shooting control and an operation of lifting the shooting control), the electronic device sequentially generates a false thumbnail image, a true thumbnail image, and a captured image; the false thumbnail image, the true thumbnail image, and the thumbnail image of the captured image are sequentially displayed in the thumbnail display control in the shooting interface.

[0284] Figure 4 is a schematic flowchart of another method for displaying thumbnail images provided by an embodiment of the present application. This method 400 can be executed by Figure 1 the electronic device shown; this method includes S410 to S480, and S410 to S480 will be described in detail below.

[0285] It should be noted that S410 to S480 are illustrated by taking one shooting process detected by the electronic device as an example; that is, the processing flow of displaying thumbnail images when the electronic device detects an operation of a user clicking on the shooting control and an operation of lifting the shooting control once.

[0286] S401. Run the camera application.

[0287] Exemplarily, the user can indicate the electronic device to run the camera application by clicking on the icon of the "Camera" application. Or, when the electronic device is in the locked screen state, the user can indicate the electronic device to run the camera application by means of a gesture of swiping right on the display screen of the electronic device. Or, when the electronic device is in the locked screen state and the locked screen interface includes the icon of the camera application, the user can indicate the electronic device to run the camera application by clicking on the icon of the camera application. Or, when the electronic device is running other applications and the application has the permission to call the camera application; the user can indicate the electronic device to run the camera application by clicking on the corresponding control. For example, when the electronic device is running an instant messaging application, the user can indicate the electronic device to start the camera application by selecting the control for the camera function, etc.

[0288] It should be understood that the above description is an example of the operation of running the camera application; the electronic device can also be indicated to run the camera application through voice instructions or other operations; the present application does not make any limitation in this regard.

[0289] S420. Detect an operation of clicking the shooting control.

[0290] Optionally, in S420, the operation of clicking the shooting control is taken as an example; in S420, it can also be detecting an operation indicating the start of shooting; for example, indicating the electronic device to start shooting through voice or other indication information.

[0291] It should be understood that in the embodiments of the present application, the shooting operation can include: an operation indicating the start of shooting and an operation indicating the end of shooting; for example, the shooting operation can include: an operation of clicking the shooting control and an operation of lifting the shooting control.

[0292] It should be noted that the operation of lifting the shooting control can refer to the operation that the electronic device detects the user's finger leaving the shooting control; or, the operation that the electronic device detects the user's finger releasing the shooting control, etc.

[0293] In the embodiments of the present application, when the electronic device detects the operation of the user on the shooting control, the first process 430 and the second process 440 can be triggered simultaneously; the first process 430 is the process for the electronic device to generate a false thumbnail image; the second process 440 is the process for the electronic device to generate a real thumbnail image; wherein, the process for generating a real thumbnail image can be any existing algorithm for generating a thumbnail image.

[0294] Optionally, when the electronic device detects the operation of clicking the shooting control, the first process and the second process can be triggered simultaneously; that is, the process for generating a fast thumbnail image and the process for generating a real thumbnail image are triggered.

[0295] Exemplarily, the first process 430 includes S431 and S432; S431 and S432 will be described in detail below.

[0296] S431. Obtain a preview image.

[0297] It should be understood that the preview image is an image obtained from the storage module of the electronic device.

[0298] Exemplarily, the preview image can be an image stored in the pre-storage module of the camera application, as Figure 5 shown.

[0299] Optionally, the preview image can be in JPEG format, JPG format or other formats.

[0300] S432. Process the preview image to generate a fake thumbnail image.

[0301] Exemplarily, the preview image can be a processed JPEG-format image; the JPEG-format image can be scaled to obtain a fake thumbnail image.

[0302] It should be understood that in the embodiments of the present application, the fake thumbnail image is an image directly obtained by scaling the preview image; therefore, the process of generating the fake thumbnail image takes a short time and can quickly generate a fake thumbnail image in a short time.

[0303] Exemplarily, the second process 440 includes S441 and S442; S441 and S442 will be described in detail below.

[0304] S441. Select an image frame from the ZSL queue.

[0305] Optionally, an image frame can be selected from the ZSL queue according to time information, where the time information can be obtained when it is detected in S420 that the shooting control is clicked; for example, a timestamp is obtained when the shooting operation is detected.

[0306] Exemplarily, when the electronic device detects that the shooting control is clicked, the obtained time information is time identifier 1; the ZSL queue includes: time identifier 1 - image frame 1, time identifier 2 - image frame 2, time identifier 3 - image frame 3; based on time identifier 1, the electronic device can select image frame 1 from the ZSL queue.

[0307] Optionally, the image frames stored in the ZSL queue can be Raw images; where the Raw image refers to the raw image data collected by the image sensor.

[0308] S442. Process the selected image frame to generate a real thumbnail image.

[0309] Exemplarily, the selected Raw image can be processed to convert the Raw image into a YUV image; the YUV image can be converted into an RGB image for display; in addition, the YUV image can be converted into other formats (such as JPEG format (JPG format), GIF format, DNG format, or RAW format, etc.) for storage.

[0310] It should be understood that since the real thumbnail image is the thumbnail image obtained after image processing based on the Raw image; while the fake thumbnail image is the thumbnail image obtained by directly scaling the preview image stored in the electronic device; therefore, the timeliness of generating the fake thumbnail image is higher than that of generating the real thumbnail image.

[0311] Optionally, the electronic device can first generate a fast thumbnail image and then generate a real thumbnail image.

[0312] It should also be understood that since the real thumbnail image is the thumbnail image obtained after image processing based on the Raw image; while the fake thumbnail image is the thumbnail image obtained by directly scaling the preview image; since the resolution of the preview image is usually lower than that of the Raw image captured by the image sensor, the image quality of the real thumbnail image is better than that of the fake thumbnail image.

[0313] Optionally, S442 includes but is not limited to the following steps:

[0314] 1. Perform downsampling on the selected Raw image to obtain the downsampled Raw image;

[0315] 2. Execute Raw domain algorithms on the downsampled Raw image to obtain the processed Raw image; where the Raw domain algorithms include but are not limited to: black level correction processing, lens shading correction and other algorithms;

[0316] Among them, the black level correction processing is used to correct the black level. The black level refers to the video signal level where there is no light output in a display device after a certain calibration; the reason for performing black level correction is: on the one hand, due to the dark current of the image sensor, there is a problem that pixels have voltage output even without light; on the other hand, due to insufficient accuracy during the analog-to-digital conversion of the image sensor. Lens Shading Correction (LSC) is used to eliminate the problem that the color and brightness around the image are inconsistent with the center of the image due to the lens optical system.

[0317] 3. Convert the processed Raw image to the YUV color space to obtain the downsampled YUV image; that is, obtain the real thumbnail image.

[0318] 4. Convert the downsampled YUV image into an RGB image, and the RGB image is used for display on the display screen of the electronic device; in addition, convert the downsampled YUV image into an image in other storage formats, and the image in other storage formats is used for storage in the electronic device.

[0319] S450. Detect an operation of bouncing the shooting control.

[0320] It should be understood that the operation of bouncing the shooting control may include the electronic device detecting that the user's finger leaves the shooting control; or, the electronic device detecting that the user's finger releases the shooting control, etc.

[0321] Optionally, S450 above may also refer to detecting an operation indicating the end of shooting; for example, detecting a voice instruction or other instructions indicating the end of shooting.

[0322] In an embodiment of the present application, when the electronic device detects an operation of bouncing the shooting control, it may trigger the execution of the third process 470 and display a false thumbnail image; wherein, the third process 470 is a process of generating a shooting image; optionally, the process of generating a shooting image may be any existing algorithm for generating a shooting image.

[0323] Optionally, when the electronic device detects an operation of bouncing the shooting control, it may trigger the simultaneous execution of the third process 470 and display a false thumbnail image.

[0324] S461. At a first moment, display a false thumbnail image.

[0325] Exemplarily, a schematic diagram of the interface for displaying a false thumbnail image at the first moment is as shown in (a) below. Figure 6 as shown in (a).

[0326] Optionally, while displaying the false thumbnail image, the false thumbnail image may be stored in the electronic device.

[0327] Exemplarily, at the moment when the electronic device detects an operation of bouncing the shooting control, it may send an instruction; store the false thumbnail image in the gallery and display the false thumbnail image on the electronic device.

[0328] In an embodiment of the present application, after the electronic device detects an operation of bouncing the shooting control, the electronic device can quickly display a false thumbnail image in the shooting interface; when the user takes a photo, the user usually regards the display of the thumbnail image in the shooting interface as the completion of a shooting process; in an embodiment of the present application, since the electronic device can quickly display a false thumbnail image in the shooting interface within a short time after the user bounces the shooting control; in other words, the electronic device can respond to the user's shooting operation within a short time, so that the user perceives that the shooting is completed, thereby improving the user's shooting experience.

[0329] It should be understood that when a false thumbnail image is displayed, the true thumbnail image may not have been generated yet; at this time, the false thumbnail image can be displayed on the shooting interface first; after the true thumbnail image is generated, the false thumbnail image can be replaced with the true thumbnail image, and the true thumbnail image can be displayed on the shooting interface.

[0330] S462. At the second moment, display the true thumbnail image.

[0331] Wherein, the second moment is after the first moment.

[0332] Exemplarily, a schematic diagram of the interface for displaying the true thumbnail image at the second moment is as shown in (a) below Figure 7 as shown.

[0333] Optionally, when the true thumbnail image is displayed, the true thumbnail image can be stored in the electronic device.

[0334] Optionally, the album application of the electronic device may include a cache module; at the first moment, the first storage space in the cache module is used to store the false thumbnail image; at the second moment, the first storage space in the cache module is used to store the true thumbnail image; for example, at the second moment, the false thumbnail image can be replaced with the true thumbnail image, the false thumbnail image can be deleted and the true thumbnail image can be stored in the same storage space.

[0335] In the embodiments of the present application, after the true thumbnail image is generated, the false thumbnail image stored in the electronic device is directly replaced with the true thumbnail image; compared with storing the false thumbnail image and the true thumbnail image, directly performing the replacement process in the embodiments of the present application can reduce the storage space of the electronic device occupied by the thumbnail image.

[0336] Exemplarily, the third process 470 includes S471 and S472; S471 and S472 will be described in detail below.

[0337] S471. Select an image frame from the ZSL queue.

[0338] Optionally, an image frame can be selected from the ZSL queue according to the time information of the operation of detecting the click on the shooting control.

[0339] It should be understood that when the user takes a picture, they usually hope to obtain the image at the moment of clicking the shooting control; therefore, when generating the captured image, the electronic device can select an image frame from the ZSL queue according to the time information of the operation of detecting the click on the shooting control.

[0340] Exemplarily, when the electronic device detects an operation of clicking the shooting control, the obtained time information is time identifier 1; the ZSL queue includes: time identifier 1 - image frame 1, time identifier 2 - image frame 2, time identifier 3 - image frame 3; based on time identifier 1, the electronic device can select image frame 1 from the ZSL queue.

[0341] Optionally, the image frames stored in the ZSL queue can be Raw images; where the Raw image refers to the original image data collected by the image sensor.

[0342] Optionally, the image frames for generating the captured image can be directly obtained from the second process 440.

[0343] S472. Generate a captured image based on the selected image frame.

[0344] Exemplarily, the selected Raw image can be processed to convert the Raw image into a YUV image; the YUV image can be converted into an RGB image for display; in addition, the YUV image can be converted into other formats (such as JPEG format, JPG format, GIF format, etc.) for storage.

[0345] It should be understood that the difference between the captured image and the real thumbnail image is that usually the resolution and image quality of the captured image are better than those of the real thumbnail image.

[0346] Exemplarily, the selected Raw image can be processed to convert the Raw image into a YUV image; the YUV image can be converted into an RGB image for display; in addition, the YUV image can be converted into other formats (such as JPEG format, JPG format, GIF format, etc.) for storage.

[0347] Optionally, S472 includes but is not limited to the following steps:

[0348] 1. Perform Raw domain algorithms on the selected Raw image to obtain a processed Raw image; where the Raw domain algorithms include but are not limited to: black level correction processing, lens shading correction and other algorithms;

[0349] 2. Perform fusion processing on multiple frames of the processed Raw images to obtain a fused Raw image;

[0350] Exemplarily, perform fusion processing on the long-exposure Raw image, short-exposure Raw image and normal-exposure Raw image to obtain a fused processed Raw image.

[0351] 3. Convert the fused Raw image to the YUV color space to obtain a YUV image; that is, obtain the captured image;

[0352] 4. Convert the YUV image into an RGB image, and scale the RGB image to obtain a thumbnail image corresponding to the captured image;

[0353] Optionally, the YUV image can be scaled to obtain a small-sized YUV image; the small-sized YUV image is converted into a small-sized RGB image; the small-sized RGB image is displayed.

[0354] 5. Convert the YUV image into an image in another storage format, and the image in another storage format is used for storage in the electronic device. Optionally, the above is an example for illustrating the entity manner of S472; S472 can refer to any existing algorithm for generating a captured image, and the present application does not make any limitation thereto.

[0355] S480. At the third moment, display the thumbnail image of the captured image.

[0356] Among them, the third moment is after the second moment.

[0357] Exemplarily, a schematic diagram of the interface for displaying the thumbnail image of the captured image at the third moment is as shown in (a) in the following Figure 8 .

[0358] Optionally, the thumbnail image of the captured image may refer to the thumbnail image obtained by scaling the captured image after the captured image is generated.

[0359] It should be understood that assuming the image size of the false thumbnail image is the first size, the image size of the true thumbnail image is the second size, and the image size of the captured image is the third size; among them, the first size is the same as the second size; the third size is greater than the first size, or the third size is greater than the second size.

[0360] It should be understood that the captured image may refer to a real image generated by one-time image capture; compared with the true thumbnail image, the captured image does not need to be downsampled; in addition, the captured image may be an image obtained by fusing multiple frames of Raw images; therefore, the image quality of the captured image is better than the image quality of the true thumbnail image.

[0361] It should be noted that after the electronic device generates the captured image, a thumbnail image obtained by scaling the captured image can be displayed in the display interface of the camera application, as shown in (a) in Figure 8 ; at this time, the captured image is stored in the album application, such as the image 111 shown in (b) in Figure 8 .

[0362] Exemplarily, for the same captured object, the false thumbnail is as shown in 1 in Figure 4 ; the true thumbnail is as shown in Figure 4as shown in 11 therein; the captured image is as Figure 4 shown in 111 therein.

[0363] Optionally, store the captured image in the album application of the electronic device; when storing the captured image, the real thumbnail image can be directly replaced by the captured image.

[0364] Exemplarily, the album application of the electronic device may include a cache module; at a first moment, a first storage space in the cache module is used to store a false thumbnail image; at a second moment, the first storage space in the cache module is used to store a real thumbnail image; for example, at the second moment, the false thumbnail image can be replaced by the real thumbnail image, the false thumbnail image is deleted and the real thumbnail image is stored in the same storage space; at a third moment, the first storage space in the cache module is used to store the captured image; for example, at the third moment, the real thumbnail image can be replaced by the captured image, the real thumbnail image is deleted and the captured image is stored in the same storage space.

[0365] It should be understood that the above false thumbnail image, real thumbnail image and captured image correspond to the same shooting of the user; in other words, the above false thumbnail image, real thumbnail image and captured image correspond to the user's same click on the shooting control and release of the shooting control; in addition, for the same shooting, the display of the false thumbnail image, the display of the real thumbnail image and the display of the thumbnail image of the captured image are mutually exclusive; for example, if the false thumbnail image is displayed in the display interface of the camera application, the real thumbnail image and the thumbnail image of the captured image will not be displayed in the display interface; if the real thumbnail image is displayed in the display interface of the camera application, the false thumbnail image and the thumbnail image of the captured image will not be displayed in the display interface; if the thumbnail image of the captured image is displayed in the display interface of the camera application, the false thumbnail image and the real thumbnail image will not be displayed in the display interface.

[0366] Optionally, in the embodiments of the present application, for one shooting, the time required for the electronic device to generate a false thumbnail image is less than the time required to generate a real thumbnail image; the time required for the electronic device to generate a real thumbnail image is less than the time required to generate the thumbnail image of the captured image.

[0367] In the embodiments of the present application, after the captured image is generated, the real thumbnail image stored in the electronic device is directly replaced by the captured image; compared with the captured image and the real thumbnail image, directly performing the replacement process in the embodiments of the present application can reduce the storage space of the electronic device occupied by the thumbnail image.

[0368] In an embodiment of the present application, by dividing the shooting operation into an operation of clicking the shooting control and an operation of releasing the shooting control, when the electronic device detects the operation of clicking the shooting control, the electronic device is triggered to generate a false thumbnail image and a true thumbnail image; wherein, the false thumbnail image refers to a thumbnail image obtained by scaling the preview image; the true thumbnail image refers to a thumbnail image generated after processing the original image data; when the electronic device detects the operation of the user releasing the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed instantly when the electronic device detects the operation of releasing the shooting control, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0369] In addition, when detecting the release of the shooting control, the generation of the shooting image is triggered; after the true thumbnail image is generated, the false thumbnail image can be replaced by the true thumbnail image; after the shooting image is generated, the true thumbnail image can be replaced by a thumbnail image obtained by scaling the shooting image; it can ensure the image quality of the thumbnail image while improving the shooting response speed.

[0370] Figure 5 It is a software architecture diagram provided by an embodiment of the present application.

[0371] As Figure 5 shown, the software architecture provided by an embodiment of the present application may include an application layer, an application framework layer, a hardware abstraction layer, and a hardware layer.

[0372] Exemplarily, the application layer may include a series of application packages. As Figure 5 shown, the application packages may include a camera application and an album application.

[0373] For example, as Figure 5 shown, the camera application may include a preview storage module; the preview storage module is used to store the preview image.

[0374] Exemplarily, the application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0375] For example, as Figure 5 shown, in an embodiment of the present application, the application framework layer may include a click shooting control detection mode, a false thumbnail image generation module, a release shooting control detection module, and a thumbnail image display module. The functions of each module will be described in detail in subsequent embodiments and will not be elaborated here.

[0376] Exemplarily, the hardware abstraction layer can provide an interface between other modules and the hardware layer.

[0377] For example, as Figure 5 shown, the hardware abstraction layer may include a real thumbnail image generation module, a ZSL queue storage module, an image frame selection module, and a captured image generation mode. The functions of each module will be described in detail in the following embodiments and will not be elaborated here.

[0378] Exemplarily, the hardware layer may include a series of hardware modules. As Figure 5 shown, the hardware layer may include a camera module.

[0379] Next, taking the detection of a user's single shooting operation as an example, in combination with the above Figure 5 shown software architecture diagram, the interaction process between each module in the electronic device will be described in detail.

[0380] S511. The camera application sends an instruction to the camera module to capture an image.

[0381] Exemplarily, after the camera application runs, the camera application can send an instruction to the camera module to capture an image.

[0382] It should be understood that after the camera module obtains the instruction to capture an image, two data streams can be generated; among them, one data stream is used by the user to generate a preview image; the other data stream is used to generate a captured image subsequently.

[0383] S512. The camera module sends an image frame to the preview storage module.

[0384] Exemplarily, the image frame sent by the camera module to the preview storage module is used to generate a preview image.

[0385] S513. The camera module sends an image frame to the ZSL queue storage module.

[0386] Exemplarily, the image frame sent by the camera module to the preview storage module is used to generate a captured image.

[0387] Optionally, S513 and S512 can be executed simultaneously. For example, when the click shooting control detection module detects an operation of clicking the shooting control, steps S513 and S514 are triggered.

[0388] S514. The shooting control in the camera application is clicked, triggering a shooting event; the click shooting module detects the operation of clicking the shooting control.

[0389] Specifically, for the relevant description of the module detecting the operation of clicking the shooting control, reference can be made to the relevant content in the foregoing step S420 and will not be elaborated here.

[0390] S515. The click-to-shoot detection module sends information to the fake thumbnail image generation module, and this information may include the time information when it is detected that the shooting control is clicked.

[0391] S516. The fake thumbnail image generation module is used to obtain a preview image from the preview storage module according to the time information; perform a scaling process on the preview image to generate a fake thumbnail image.

[0392] Optionally, the implementation method of generating the fake thumbnail image may refer to the relevant description of the first process 430 as shown in Figure 4 and will not be elaborated here.

[0393] S517. The click-to-shoot detection module sends information to the image frame selection module, and this information may include the time information when it is detected that the shooting control is clicked.

[0394] S518. The image frame selection module is used to obtain the original image data from the ZSL queue storage module according to the time information.

[0395] S519. The real thumbnail image generation module is used to perform image processing on the original image data sent by the image rotation module to generate a real thumbnail image.

[0396] Optionally, the implementation method of generating the real thumbnail image may refer to the relevant description of the second process 440 as shown in Figure 4 and will not be elaborated here.

[0397] S520. The shoot-control-up detection module is used to detect the operation of bouncing up the shooting control in the camera application.

[0398] Optionally, when the shoot-control-up detection module detects the operation of bouncing up the shooting control, steps S521 and S525 may be triggered.

[0399] S521. The shoot-control-up detection sends an instruction to the thumbnail image display module, and this instruction is used to instruct the thumbnail image display module to display the thumbnail image.

[0400] S522. The thumbnail image display module obtains the fake thumbnail image in the fake thumbnail image generation module.

[0401] S523. The camera application obtains the fake thumbnail image sent by the thumbnail image display module and displays the fake thumbnail image.

[0402] S524. The album application obtains the fake thumbnail image sent by the thumbnail image display module, displays and stores the fake thumbnail image.

[0403] S525. The bounce shooting control detection control is used to send an instruction to the captured image generation module, and this instruction is used to instruct the captured image generation module to obtain an image frame to generate a captured image.

[0404] S526. The captured image generation module is used to obtain the image frames in the ZSL queue storage module and process the image frames to generate a captured image.

[0405] Optionally, the implementation manner of generating the captured image can refer to the relevant description of the third process 470 as shown, which will not be elaborated here. Figure 4 Shown in the relevant description of the third process 470 as shown, which will not be elaborated here.

[0406] S527. The real thumbnail image generation module is used to send the real thumbnail image to the thumbnail image display module after generating the real thumbnail image.

[0407] S528. The camera application obtains the real thumbnail image sent by the thumbnail image display module and displays the real thumbnail image.

[0408] S529. The album application obtains the real thumbnail image sent by the thumbnail image display module, displays the real thumbnail image and replaces the stored false thumbnail image with the real thumbnail image.

[0409] S530. The captured image generation module is used to send the captured image to the thumbnail image display module after generating the captured image.

[0410] S531. The camera application is used to obtain the captured image sent by the thumbnail image display module and display the thumbnail image of the captured image.

[0411] S532. The album application is used to obtain the captured image sent by the thumbnail image display module, display the captured image and replace the stored real thumbnail image with the captured image.

[0412] In the embodiments of the present application, by dividing the shooting operation into the operation of clicking the shooting control and the operation of bouncing the shooting control, when the electronic device detects the operation of clicking the shooting control, the electronic device is triggered to generate a false thumbnail image and a real thumbnail image; wherein, the false thumbnail image refers to the thumbnail image obtained by scaling the preview image; the real thumbnail image refers to the thumbnail image generated after selecting the original image data for image processing; when the electronic device detects the operation of the user bouncing the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed at the moment when the electronic device detects the operation of bouncing the shooting control, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0413] In addition, when the pop-up shooting control is detected, a shooting image is generated; after the real thumbnail image is generated, the false thumbnail image can be replaced with the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced with the thumbnail image obtained by scaling the shooting image; this can improve the shooting response speed while ensuring the image quality of the thumbnail image.

[0414] The following combines Figure 6 with Figure 7 , and takes the schematic diagram of the interface when the electronic device detects a shooting operation once as an example for illustration.

[0415] Exemplarily, at time T(10), the electronic device detects the running of the camera application. As shown in (a) of Figure 6 , the preview interface 610 of the camera application is shown; in the preview interface 610, there are a first shooting object 611, a shooting control 612, and a thumbnail display control 613; among them, the thumbnail image displayed in the thumbnail display control 613 is the thumbnail image of the previous shooting image. Figure 6 As shown in (b) of

[0416] is a schematic diagram of the album application. In the album display interface 620, there are a first shooting image 621 and a second shooting image 622; secondly, in the album application, there is a cache module 630, and the cache module 630 includes the first shooting image 621 and the second shooting image 622. Figure 6 For example, as can be seen from (a) of Figure 6 and (b) of

[0417] the thumbnail image displayed in the thumbnail control 612 in the preview interface 610 is the thumbnail image corresponding to the first shooting image 621; if the electronic device detects an operation of clicking the thumbnail control 612, it can index to the first shooting image 621 in the album application and display the first shooting image 621.

[0418] It should be understood that the cache module 630 is not displayed in the display interface 620 of the camera application; the cache module 630 is a module in the electronic device for storing images. Figure 6 Exemplarily, at time T(11), the electronic device detects an operation of clicking the shooting control 612, as shown in (c) of Figure 6as shown in (d); at time T(12), the electronic device detects an operation of the pop-up shooting control 612, and displays a false thumbnail image of the first shooting object in the display interface 614; wherein, the shooting interface 614 includes a second shooting object 615, and the thumbnail image displayed in the thumbnail display control 613 is a false thumbnail image of the first shooting object 611, such as Figure 7 as shown in (a); at this time, the display interface 620 of the album application includes a false thumbnail image 1 of the first shooting object, a first shooting image 621 and a second shooting image 622; the cache module 630 includes a false thumbnail image of the first shooting object, a first shooting image and a second shooting image; at time T(13), after the electronic device generates a real thumbnail image, the display interface 616 is displayed, and the display interface 616 includes a second shooting object 615, a thumbnail display control 612 and a shooting control 612, and the real thumbnail image of the first shooting object is displayed in the thumbnail display control 613, such as Figure 7 as shown in (c); at this time, the display interface 624 displayed by the camera application includes a real thumbnail image 11 of the first shooting object, a first shooting image 621 and a second shooting image 622; the cache module 630 stores the real thumbnail image of the first shooting object, the first shooting image 621 and the second shooting image 622.

[0419] It should be noted that after the real thumbnail image of the first shooting object is generated in the electronic device, the real thumbnail image is displayed in the display interface, and the false thumbnail image of the first shooting object is replaced by the real thumbnail image of the first shooting object in the album application.

[0420] Optionally, the implementation manner of generating the false thumbnail image of the first shooting object can refer to Figure 4 the first process 430 shown, which will not be elaborated here.

[0421] Optionally, the implementation manner of generating the real thumbnail image of the first shooting object can refer to Figure 4 the second process 440 shown, which will not be elaborated here.

[0422] Exemplarily, at time T(14), after the electronic device generates a shooting image of the first shooting object, the display interface 617 is displayed, and the display interface 617 includes a second shooting object 615, a thumbnail display control 613 and a shooting control 612; a thumbnail image of the shooting image of the first shooting object is displayed in the thumbnail display control 613, such as Figure 8as shown in (a) of ; at this time, the camera application displays the display interface 625, and the display interface 625 includes the captured image 111 of the first captured object, the first captured image 621, and the second captured image 622; the cache module 630 stores the captured image of the first captured object, the first captured image, and the second captured image.

[0423] It should be noted that after the captured image of the first captured object is generated in the electronic device, a thumbnail image of the captured image is displayed in the display interface, and in the album application, the real thumbnail image of the first captured object is replaced by the captured image of the first captured object.

[0424] Optionally, the implementation manner of generating the captured image of the first captured object can refer to Figure 4 the third process 470 shown in , which will not be elaborated here.

[0425] In the embodiments of the present application, by dividing the shooting operation into an operation of clicking the shooting control and an operation of bouncing the shooting control, when the electronic device detects the operation of clicking the shooting control, the electronic device is triggered to generate a false thumbnail image and a real thumbnail image; wherein, the false thumbnail image refers to a thumbnail image obtained by scaling the preview image; the real thumbnail image refers to a thumbnail image generated after processing the original image data; when the electronic device detects the operation of the user bouncing the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed instantly when the electronic device detects the operation of bouncing the shooting control, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0426] In addition, when detecting the bouncing of the shooting control, the generation of the captured image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the captured image is generated, the real thumbnail image can be replaced by a thumbnail image obtained by scaling the captured image; it can ensure the image quality of the thumbnail image while improving the shooting response speed.

[0427] Implementation method two

[0428] Optionally, the electronic device detects two shooting operations; for example, the electronic device sequentially detects: the first click of the shooting control, the first bounce of the shooting control, the second click of the shooting control, and the second bounce of the shooting control.

[0429] Example one

[0430] Optionally, when the electronic device generates the false thumbnail image of the second shooting, the electronic device has generated the false thumbnail image of the first shooting, the real thumbnail image of the first shooting, and has not generated the captured image of the first shooting.

[0431] For example, the order in which the electronic device generates images is as follows: the first captured fake thumbnail image 1, the first captured real thumbnail image 11, the second captured fake thumbnail image 2, the first captured captured image 111, the second captured real thumbnail image 22, and the captured image 222 captured the second time.

[0432] Figure 9 It is a software architecture diagram provided by an embodiment of the present application.

[0433] Such as Figure 9 As shown, the software architecture provided by an embodiment of the present application may include an application layer, an application framework layer, a hardware abstraction layer, and a hardware layer.

[0434] Exemplarily, the application layer may include a series of application packages. Such as Figure 9 As shown, the application packages may include a camera application and an album application.

[0435] For example, as Figure 9 As shown, the camera application may include a preview storage module; the preview storage module is used to store preview images.

[0436] Exemplarily, the application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0437] For example, as Figure 9 As shown, in an embodiment of the present application, the application framework layer may include a click shooting control detection mode, a fake thumbnail image generation module, a pop-up shooting control detection module, and a thumbnail image display module. The functions of each module will be described in detail in subsequent embodiments and will not be elaborated here.

[0438] Exemplarily, the hardware abstraction layer may provide an interface between other modules and the hardware layer.

[0439] For example, as Figure 9 As shown, the hardware abstraction layer may include a real thumbnail image generation module, a ZSL queue storage module, an image frame selection module, and a captured image generation mode. The functions of each module will be described in detail in subsequent embodiments and will not be elaborated here.

[0440] Exemplarily, the hardware layer may include a series of hardware modules. Such as Figure 9 As shown, the hardware layer may include a camera module.

[0441] Next, taking the above situation one as an example, in combination with the above Figure 9The software architecture diagram shown details the interaction process between modules in an electronic device.

[0442] S711. The camera application sends an instruction to the camera module to capture an image.

[0443] Exemplarily, after the camera application runs, it can send an instruction to the camera module to capture an image.

[0444] It should be understood that after the camera module receives the instruction to capture an image, it can generate two data streams; among them, one data stream is used to generate a preview image by the user; the other data stream is used to generate a captured image subsequently.

[0445] S712. The camera module sends an image frame to the preview storage module.

[0446] Exemplarily, the image frame sent by the camera module to the preview storage module is used to generate a preview image.

[0447] S713. The camera module sends an image frame to the ZSL queue storage module.

[0448] Exemplarily, the image frame sent by the camera module to the preview storage module is used to generate a captured image.

[0449] Optionally, S713 and S712 can be executed simultaneously.

[0450] S714. The shooting control in the camera application is clicked, triggering a shooting event; the click shooting module detects the operation of the shooting control being clicked; for example, it detects the operation of the shooting control being clicked for the first time.

[0451] Specifically, for the relevant description of the module detecting the operation of the shooting control being clicked, reference can be made to the relevant description in the foregoing step S420, which will not be elaborated here.

[0452] S715. The click shooting detection module sends a first piece of information to the fake thumbnail image generation module, and this first piece of information may include the time information 1 when it detects the shooting control being clicked for the first time.

[0453] S716. The fake thumbnail image generation module is used to obtain preview image 1 from the preview storage module according to the time information 1; perform a scaling process on preview image 1 to generate a fake thumbnail image 1.

[0454] For example, the fake thumbnail image generation module is used to obtain a preview Figure 1 according to the time information 1 when it first detects the shooting control being clicked, from the preview storage module; perform a scaling process on preview image 1 to generate a fake thumbnail image 1.

[0455] Exemplarily, for the implementation of generating the fake thumbnail image 1, reference can be made to the relevant description of the first process 430 in Figure 4 , which will not be elaborated here.

[0456] S717. The click-to-shoot detection module sends the second information to the image frame selection module, and the second information may include the time information 1 when the first click-to-shoot control is detected.

[0457] S718. The image frame selection module is used to obtain the original image data 1 from the ZSL queue storage module according to the time information 1.

[0458] S719. The real thumbnail image generation module is used to perform image processing on the original image data 1 sent by the image selection module to generate the real thumbnail image 11.

[0459] S720. The lift-to-shoot control detection module is used to detect the operation of lifting the shoot control in the camera application.

[0460] Exemplarily, the lift-to-shoot control detection module detects the operation of the first lift of the shoot control.

[0461] Optionally, in the embodiments of the present application, the lift-to-shoot control detection module and the click-to-shoot control detection module may be the same module; the present application makes no limitation in this regard.

[0462] Optionally, when the lift-to-shoot control detection module detects the operation of the first lift of the shoot control, it may trigger the processes of displaying the fake thumbnail image 1 (for example, S721 to S724) and generating the captured image of the first shoot (for example, S725 and S726).

[0463] Exemplarily, the processes of displaying the fake thumbnail image and generating the captured image of the first shoot may be triggered simultaneously.

[0464] S721. The lift-to-shoot control detection sends the first instruction to the thumbnail image display module, and the first instruction is used to instruct the thumbnail image display module to display the thumbnail image.

[0465] S722. The thumbnail image display module obtains the fake thumbnail image 1 in the fake thumbnail image generation module.

[0466] S723. The camera application obtains the fake thumbnail image 1 sent by the thumbnail image display module and displays the fake thumbnail image 1.

[0467] S724. The album application obtains the fake thumbnail image 1 sent by the thumbnail image display module, displays and stores the fake thumbnail image 1.

[0468] S725. The bounce shooting control detection control is used to send a second instruction to the captured image generation module, and the second instruction is used to instruct the captured image generation module to obtain an image frame to generate the captured image 111.

[0469] S726. The captured image generation module is used to obtain the image frames in the ZSL queue storage module and process the image frames to generate the captured image 111.

[0470] Exemplarily, for the implementation manner of generating the captured image 111, reference can be made to Figure 4 the relevant description of the third process 470 therein, which will not be elaborated here.

[0471] S727. The real thumbnail image generation module is used to generate the real thumbnail image 11, and send the real thumbnail image 11 to the thumbnail image display module after generating the real thumbnail image 11.

[0472] Exemplarily, for the implementation manner of generating the real thumbnail image 11, reference can be made to Figure 4 the relevant description of the second process 440 therein, which will not be elaborated here.

[0473] S728. The camera application obtains the real thumbnail image 11 sent by the thumbnail image display module and displays the real thumbnail image 11.

[0474] S729. The album application obtains the real thumbnail image 11 sent by the thumbnail image display module, displays the real thumbnail image, and replaces the stored fake thumbnail image 1 with the real thumbnail image 11.

[0475] S730. The click shooting module detects an operation of clicking the shooting control; for example, it detects an operation of clicking the shooting control for the second time.

[0476] S731. The fake thumbnail image generation module is used to obtain the time information 2 of clicking the shooting control for the second time from the click shooting detection module.

[0477] S732. The fake thumbnail image generation module is used to obtain the preview image 2 from the preview storage module according to the time information 2 of detecting the click of the shooting control for the second time; perform a scaling process on the preview image 2 to generate the fake thumbnail image 2.

[0478] For example, the fake thumbnail image generation module is used to obtain the preview Figure 2 from the preview storage module according to the time information 2 of detecting the click of the shooting control for the second time; perform a scaling process on the preview image 2 to generate the fake thumbnail image 2.

[0479] Exemplarily, for the implementation manner of generating the fake thumbnail image 2, reference can be made to Figure 4The relevant description of the first process 430 in [reference] will not be elaborated here.

[0480] S733. The fake thumbnail image generation module is used to send the fake thumbnail image 2 to the thumbnail image display module after generating the fake thumbnail image 2.

[0481] Exemplarily, the implementation method of generating the fake thumbnail image 2 can refer to Figure 4 The relevant description of the first process 430 in [reference] will not be elaborated here.

[0482] S734. The shooting control button pop-up detection module is used to detect the operation of the shooting control button in the camera application when it pops up.

[0483] For example, the shooting control button pop-up module detects the operation of the shooting control button when it pops up for the second time.

[0484] Optionally, when the shooting control button pop-up detection module detects the operation of the shooting control button when it pops up for the second time, it can trigger the process of displaying the fake thumbnail image 2 and generating the shooting image for the second shooting.

[0485] S735. The shooting control button pop-up detection module is used to send a third instruction to the thumbnail image display module, and the third instruction is used to instruct the thumbnail image display module to display the thumbnail image 2.

[0486] S736. The camera application is used to receive the fake thumbnail image 2 sent by the thumbnail image display module and display the fake thumbnail image 2.

[0487] S737. The album application is used to receive the fake thumbnail image 2 sent by the thumbnail image display module, display and store the fake thumbnail image 2.

[0488] S738. The shooting image generation module is used to send the shooting image 111 to the thumbnail image display module after generating the shooting image 111 for the first shooting.

[0489] It should be noted that since the time information 2 of the second click on the shooting control button is later than the time information 1 of the first click on the shooting control button; in the camera application, the thumbnail image closest to the current moment is usually displayed according to the time information; therefore, after the fake thumbnail image 2 for the second shooting is displayed in the camera application, the electronic device will no longer display the thumbnail image of the shooting image 111 for the first shooting.

[0490] S739. The album application is used to receive the shooting image sent by the thumbnail image display module, display the shooting image and perform replacement processing on the stored real thumbnail image with the shooting image.

[0491] S740. The image frame selection module is used to obtain the time information 2 of the second click on the shooting control from the click shooting module.

[0492] S741. The image frame selection module is used to obtain the original image data 2 from the ZSL queue storage module according to the time information 2.

[0493] S742. The real thumbnail image generation module is used to perform image processing on the original image data 2 sent by the image selection module to generate a real thumbnail image 22.

[0494] S743. The shooting control bounce detection module is used to detect the operation of the shooting control in the camera application when it bounces.

[0495] Exemplarily, the shooting control bounce detection module is used to detect the operation of the shooting control in the camera application when it bounces for the second time.

[0496] S744. The shooting control bounce detection control is used to send a fourth instruction to the captured image generation module, and this fourth instruction is used to instruct the captured image generation module to obtain an image frame to generate a captured image 222 of the second shooting.

[0497] S745. The captured image generation module is used to obtain the image frame in the ZSL queue storage module and process the image frame to generate a captured image 222.

[0498] Exemplarily, the implementation method of generating the captured image 222 can refer to Figure 4 the relevant description of the third process 470 therein, which will not be elaborated here.

[0499] S746. The real thumbnail image generation module is used to generate a real thumbnail image 22 of the second shooting, and send the real thumbnail image 22 to the thumbnail image display module after generating the real thumbnail image 22.

[0500] Exemplarily, the implementation method of generating the real thumbnail image 22 can refer to Figure 4 the relevant description of the second process 440 therein, which will not be elaborated here.

[0501] S747. The camera application obtains the real thumbnail image 22 sent by the thumbnail image display module and displays the real thumbnail image 22.

[0502] S748. The album application is used to receive the real thumbnail image 22 sent by the thumbnail image display module, display the real thumbnail image 22; and perform replacement processing on the stored false thumbnail image 2 with the real thumbnail image 22.

[0503] S749. The captured image generation module is used to send the captured image 222 to the thumbnail image display module after generating the captured image 222.

[0504] The S750 camera application is used to receive the captured image 222 sent by the thumbnail image display module and display the thumbnail image of the captured image 222.

[0505] The S751 album application is used to receive the captured image 222 sent by the thumbnail image display module, display the captured image 222, and perform a replacement process on the stored real thumbnail image 22 with the captured image 222.

[0506] Optionally, Figure 9 The click shooting control detection module and the lift shooting control detection module shown in Figure 9 can be the same module or different modules, and the present application does not make any limitation on this.

[0507] In the embodiments of the present application, by dividing the shooting operation into the operation of clicking the shooting control and the operation of lifting the shooting control, when the electronic device detects the operation of clicking the shooting control, the electronic device is triggered to generate a false thumbnail image and a real thumbnail image. Among them, the false thumbnail image refers to the thumbnail image obtained by scaling the preview image; the real thumbnail image refers to the thumbnail image generated after performing image processing on the selected original image data. When the electronic device detects the operation of the user lifting the shooting control, the false thumbnail image is triggered to be displayed, so that the thumbnail image can be displayed instantly when the electronic device detects the operation of lifting the shooting control, improving the shooting response speed, reducing the shooting waiting time of the user, and improving the shooting experience.

[0508] In addition, when detecting the lifting of the shooting control, the generation of the captured image is triggered. After the real thumbnail image is generated, the false thumbnail image can be replaced with the real thumbnail image. After the captured image is generated, the real thumbnail image can be replaced with the thumbnail image obtained by scaling the captured image, which can ensure the image quality of the thumbnail image while improving the shooting response speed.

[0509] Next, in combination with Figures 10 to 14 , an example is given to illustrate the interface schematic diagram of the above Example 1.

[0510] Exemplarily, at time T(20), the electronic device detects the running of the camera application. As shown in (a) of Figure 10 , the preview interface 810 of the camera application is shown. The preview interface 810 includes a first shooting object 811, a shooting control 812, and a thumbnail display control 813. Among them, the thumbnail image displayed in the thumbnail display control 813 is the thumbnail image of the previous captured image. Figure 10 ​​As shown in (b) therein, the display interface 820 of the album application is presented. The display interface 820 includes the first captured image 821. Secondly, the album application includes a cache module 830, and the cache module 830 includes the first captured image 821.

[0511] For example, as can be seen from Figure 10 (a) therein and Figure 10 (b) therein, the thumbnail image displayed in the thumbnail control 812 in the preview interface 810 is the thumbnail image corresponding to the first captured image 821. If the electronic device detects an operation of clicking on the thumbnail control 812, it can index to the first captured image 821 in the album application and display the first captured image 821.

[0512] It should be understood that the cache module 830 is not displayed in the display interface 820 of the camera application. The cache module 830 is a module in the electronic device for storing images.

[0513] Exemplarily, at time T(21), the electronic device detects an operation of clicking on the capture control 812. For example, it detects the first operation of clicking on the capture control 812, as Figure 10 (c) therein shows. At this time, the thumbnail image displayed in the thumbnail display control 813 is the thumbnail image of the previously captured image (for example, the thumbnail image of the first captured image 821). When the electronic device detects that the user clicks on the capture control 812, the display interface of the album application is as Figure 10 (d) therein shows. At time T(22), the electronic device detects an operation of releasing the capture control 812 and displays the display interface 814. For example, it detects the first operation of releasing the capture control 812 and displays the display interface 814. Among them, the display interface 814 includes the second captured object 815 and the thumbnail display control 813, and the thumbnail image displayed in the thumbnail display control 813 is a false thumbnail image of the first captured object 811, as Figure 11 (a) therein shows. At this time, as Figure 11 (b) therein shows, the display interface 823 of the album application includes a false thumbnail image 1 of the first captured object and the first captured image 821. The cache module 830 includes a false thumbnail image of the first captured object and the first captured image. At time T(23), after the electronic device generates a true thumbnail image of the first captured object, it displays the display interface 816. The display interface 816 includes the second captured object 815, the thumbnail display control 813, and the capture control 812. The true thumbnail image of the first captured object is displayed in the thumbnail display control 8613, as Figure 11 (c) therein shows. At this time, as Figure 11As shown in (d) therein, the camera application displays a real thumbnail image 11 of a first shooting object and a first captured image 821 in a display interface 824; the real thumbnail image of the first shooting object and the first captured image are stored in a cache module 830.

[0514] It should be noted that after a real thumbnail image of a first shooting object is generated in an electronic device, the real thumbnail image of the first shooting object is displayed in a display interface, and a false thumbnail image 1 of the first shooting object is replaced by the real thumbnail image 11 of the first shooting object in an album application.

[0515] Optionally, the implementation manner of generating a false thumbnail image of a first shooting object can refer to Figure 4 the first process 430 shown therein, which will not be elaborated here.

[0516] Optionally, the implementation manner of generating a real thumbnail image of a first shooting object can refer to Figure 4 the second process 440 shown therein, which will not be elaborated here.

[0517] Exemplarily, at time T(24), the electronic device detects an operation of clicking a shooting control 812 and displays a display interface 816; for example, it detects a second operation of clicking the shooting control 812, as Figure 12 shown in (a) therein; a second shooting object 815 and a thumbnail display control 813 are included in the display interface 816, and the real thumbnail image of a first shooting object 811 is displayed in the thumbnail display control 813; at this time, as Figure 12 shown in (b) therein, a real thumbnail image 11 of a first shooting object and a first captured image 821 are included in a display interface 824 of the album application; the real thumbnail image of the first shooting object and the first captured image are included in a cache module 830. At time T(25), the electronic device detects an operation of lifting the shooting control 812 and displays a display interface 817; for example, it detects a second operation of lifting the shooting control 812 and displays the display interface 817; wherein, a third shooting object and the thumbnail display control 813 are included in the display interface 817, and the thumbnail image displayed in the thumbnail display control 813 is a false thumbnail image of the second shooting object 815, as Figure 12 shown in (c) therein; at this time, as Figure 12 shown in (d) therein, a false thumbnail image 2 of the second shooting object, a real thumbnail image 11 of the first shooting object and a first captured image 821 are included in a display interface 825 of the album application; the false thumbnail image of the second shooting object, the real thumbnail image of the first shooting object and the first captured image are included in the cache module 830.

[0518] It should be understood that at time T(24) and time T(25), the electronic device has not generated a captured image of the first captured object yet, and a second shooting operation has been detected.

[0519] Exemplarily, at time T(26), as Figure 13 shown in (a) of [], after the electronic device generates a captured image of the first captured object, the display interface 817 includes a third captured object, a shooting control 812, and a thumbnail display control 813; at this time, as Figure 13 shown in (b) of [], the display interface 826 of the album application includes a false thumbnail image 2 of the second captured object, a captured image 111 of the first captured object, and a first captured image 821; the cache module 830 includes a false thumbnail image of the second captured object, a real image of the first captured object, and a first captured image.

[0520] Optionally, after a captured image of the first captured object is generated in the electronic device, the real thumbnail image of the first captured object is replaced by the captured image of the first captured object in the album application.

[0521] Optionally, the implementation manner of generating a captured image of the first captured object can refer to Figure 4 the third process 470 shown in [], which will not be elaborated here.

[0522] It should be understood that since the second shooting operation is later than the first shooting; therefore, after the electronic device displays the thumbnail image of the second captured object, even if the electronic device generates a captured image of the first captured object, the thumbnail image of the captured image of the first captured object will not be displayed in the thumbnail display control in the display interface of the camera application; therefore, the display interfaces of the camera application at time T(26) and time T(25) are the same.

[0523] It should also be understood that the second shooting and the first shooting are two independent shooting processes; therefore, in the cache module of the camera application, during the same shooting process, the previously generated thumbnail image will be replaced by the subsequently generated real thumbnail image; the previously generated real image will be replaced by the subsequently generated captured image; however, the image of the second shooting will not replace the image of the first shooting.

[0524] Exemplarily, at time T(27), the electronic device generates a real thumbnail image of the second captured object and displays the display interface 818, as Figure 13 shown in (c) of []; wherein, the display interface 818 includes a third captured object and a thumbnail display control 813, and the real thumbnail image of the second captured object is displayed in the thumbnail display control 813; at this time, as Figure 13As shown in (d), the display interface 827 of the album application includes the real thumbnail image 22 of the second photographed object, the photographed image 111 of the first photographed object, and the first photographed image 821; the real thumbnail image of the second photographed object, the photographed image of the first photographed object, and the first photographed image in the cache module 830.

[0525] Exemplarily, at time T(28), the electronic device generates a real image of the second photographed object and displays the display interface 819, as Figure 14 shown in (a); wherein, the display interface 819 includes the third photographed object and the thumbnail display control 813, and the thumbnail displayed in the thumbnail display control 813 is the thumbnail image of the photographed image of the second photographed object 815; at this time, as Figure 14 shown in (b), the display interface 828 of the album application includes the photographed image 222 of the second photographed object, the photographed image 111 of the first photographed object, and the first photographed image 821; the photographed image of the second photographed object, the photographed image of the first photographed object, and the first photographed image in the cache module 830.

[0526] It should be noted that after the photographed image is generated, the photographed image is stored in the album application, and the thumbnail image obtained by scaling the photographed image is displayed in the camera application; after the electronic device generates a real thumbnail image or a false thumbnail image, the real thumbnail image or the false thumbnail image is stored in the album application, and the real thumbnail image or the false thumbnail image is displayed in the camera application.

[0527] Optionally, the implementation manner of generating the photographed image of the second photographed object can refer to Figure 4 the third process 470 shown, which will not be elaborated here.

[0528] Example Two

[0529] Optionally, when the electronic device generates a false thumbnail image of the second photographing, the electronic device has generated a false thumbnail image of the first photographing, a real thumbnail image of the first photographing, and a photographed image of the first photographing. The specific implementation process can refer to the relevant description in Example One, which will not be elaborated here.

[0530] Example Three

[0531] Optionally, when the electronic device generates a false thumbnail image of the second photographing, the electronic device has generated a false thumbnail image of the first photographing, and has not generated a real thumbnail image of the first photographing and a photographed image of the first photographing. The specific implementation process can refer to the relevant description in Example One, which will not be elaborated here.

[0532] In an embodiment of the present application, by dividing the shooting operation into an operation of clicking the shooting control and an operation of lifting the shooting control, when the electronic device detects the operation of clicking the shooting control, the electronic device is triggered to generate a false thumbnail image and a true thumbnail image; wherein, the false thumbnail image refers to a thumbnail image obtained by scaling the preview image; the true thumbnail image refers to a thumbnail image generated after performing image processing on the original image data; when the electronic device detects the operation of the user lifting the shooting control, the false thumbnail image is triggered to be displayed; so that a thumbnail image can be displayed at the moment when the electronic device detects the operation of lifting the shooting control, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0533] In addition, when detecting the lifting of the shooting control, generating a shooting image is triggered; after the true thumbnail image is generated, the false thumbnail image can be replaced by the true thumbnail image; after the shooting image is generated, the true thumbnail image can be replaced by a thumbnail image obtained by scaling the shooting image; it can ensure the image quality of the thumbnail image while improving the shooting response speed.

[0534] The following combines Figure 15 with Figure 16 to describe the interface schematic diagram for enabling the display of the false thumbnail image in the electronic device, that is, the method for displaying the thumbnail image according to the embodiment of the present application.

[0535] In one example, after the electronic device detects the operation of clicking the intelligent control 840 as shown in (b) of Figure 15 , the method for displaying the thumbnail image provided by the embodiment of the present application is executed.

[0536] Exemplarily, after the electronic device runs the camera application, a preview interface as shown in (a) of Figure 15 is displayed; in the preview interface, a preview image and an intelligent control 840 are included; the electronic device detects the operation of clicking the intelligent control 840, as shown in (b) of Figure 15 ; after the electronic device detects the operation of clicking the intelligent control 840, the method for displaying the thumbnail image provided by the embodiment of the present application is executed.

[0537] In one example, after the electronic device detects the operation of clicking the control 851 as shown in (d) of Figure 16 , the method for displaying the thumbnail image provided by the embodiment of the present application is executed.

[0538] Exemplarily, after the camera application runs in the electronic device, a preview interface as shown in (a) of Figure 16 can be displayed; the preview interface includes a preview image and a setting control 850; the electronic device detects the operation of clicking the setting control 850, as shown in Figure 16as shown in (b) of [the figure]; after the electronic device detects an operation of clicking the setting control 850, a setting interface is displayed, such as Figure 16 as shown in (c) of [the figure]; the setting interface includes a control 851 for a quick thumbnail image; the electronic device detects an operation of clicking the control 851 for the quick thumbnail image, such as Figure 16 as shown in (d) of [the figure]; after the electronic device detects an operation of the control 851 for the quick thumbnail image, the method for displaying a thumbnail image provided in the embodiments of the present application is executed.

[0539] In the embodiments of the present application, by dividing the shooting operation into an operation of clicking the shooting control and an operation of lifting the shooting control, when the electronic device detects an operation of clicking the shooting control, the electronic device is triggered to generate a false thumbnail image and a true thumbnail image; wherein, the false thumbnail image refers to a thumbnail image obtained by performing a scaling process on a preview image; the true thumbnail image refers to a thumbnail image generated by selecting original image data for image processing; when the electronic device detects an operation of the user lifting the shooting control, the false thumbnail image is triggered to be displayed; so that a thumbnail image can be displayed at the moment when the electronic device detects an operation of lifting the shooting control, improving the shooting response speed; reducing the shooting waiting time of the user and improving the shooting experience.

[0540] In addition, when detecting the lifting of the shooting control, generating a shooting image is triggered; after the true thumbnail image is generated, the false thumbnail image can be replaced by the true thumbnail image; after the shooting image is generated, the true thumbnail image can be replaced by a thumbnail image obtained by performing a scaling process on the shooting image; it can ensure the image quality of the thumbnail image while improving the shooting response speed.

[0541] It should be noted that the above is an example description of the display interface of the electronic device applied to the camera scenario, and the present application makes no limitation thereto.

[0542] It should be understood that the above example description is to help those skilled in the art understand the embodiments of the present application, rather than to limit the embodiments of the present application to the specific values or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or changes according to the above example description, and such modifications or changes also fall within the scope of the embodiments of the present application.

[0543] As described above in combination with Figures 1 to 16 the method for displaying a thumbnail image provided in the embodiments of the present application is described in detail; hereinafter, the device embodiments of the present application will be described in detail in combination with Figures 17 to 18 It should be understood that the device in the embodiments of the present application can execute various methods of the foregoing embodiments of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the foregoing method embodiments.

[0544] Figure 17 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 900 includes a display module 910 and a processing module 920.

[0545] In one implementation, the display module 910 is used to display a first display interface at a first moment. The first display interface includes a first control, a thumbnail display area, and a first preview image. Among them, the first control is a control for indicating shooting; the thumbnail display area is used to display thumbnail images; the first preview image is an image generated by preview processing of a first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment. The processing module 920 is used to detect a first operation on the first control. The first operation is used to indicate the start of shooting, and the shooting may include taking a photo. In response to the first operation, save a first thumbnail image in the album application and generate a second thumbnail image. Among them, the first thumbnail image is a thumbnail image generated by performing first image processing on the first image; the second thumbnail image is a thumbnail image generated by performing second image processing on the first image, and the first image processing is different from the second image processing. Detect a second operation on the first control. The second operation is used to indicate the end of shooting. The display module 910 is further used to, in response to the second operation, sequentially display the first thumbnail image, the second thumbnail image, and a third thumbnail image in the thumbnail display area, where the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0546] Optionally, as an embodiment, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

[0547] Optionally, as an embodiment, the processing module 920 is further used to:

[0548] Generate a first captured image in response to the second operation;

[0549] Perform scaling processing on the first captured image based on the size of the thumbnail display area to generate the third thumbnail image.

[0550] Optionally, as an embodiment, the electronic device includes a storage module, and the storage module includes a first storage area. The processing module 920 is further used to:

[0551] When the electronic device generates the second thumbnail image and has not generated the first captured image, perform replacement processing on the first thumbnail image in the first storage area with the second thumbnail image;

[0552] When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced with the first captured image.

[0553] Optionally, as an embodiment, the processing module 920 is specifically configured to:

[0554] Obtain the time information when the first operation is detected;

[0555] Select the first image from the zero-second delay queue in the electronic device based on the time information.

[0556] Optionally, as an embodiment, the second image processing includes a first algorithm processing and a second algorithm processing. The first algorithm is an algorithm in a first color space, and the second algorithm is an algorithm for converting an image in the first color space into an image in a second color space. The processing module 920 is specifically configured to:

[0557] Perform the first algorithm processing on the first image to obtain an image in the first color space;

[0558] Perform a fusion processing on at least two frames of the images in the first color space to obtain a fused image;

[0559] Perform the second algorithm processing on the fused image to generate the first captured image.

[0560] Optionally, as an embodiment, the first operation is an operation of clicking the first control; the second operation is an operation of releasing the first control.

[0561] Optionally, as an embodiment, the image quality includes image texture information or image brightness information.

[0562] In one implementation, the display module 910 is configured to display a first display interface at a first moment. The first display interface includes a first control, a thumbnail display area, and a first preview image. The first control is a control for indicating shooting. The thumbnail display area is used to display thumbnail images. The first preview image is an image generated by preview processing of a first image collected by the electronic device. The first image is an image collected by the electronic device in real time at the first moment. The processing module 920 is configured to detect a first operation on the first control. The first operation is used to indicate the start of shooting, and the shooting may include taking a photo. In response to the first operation, save a first thumbnail image in the album application and generate a second thumbnail image. The first thumbnail image is a thumbnail image generated by performing a first image processing on the first image. The second thumbnail image is a thumbnail image generated by performing a second image processing on the first image. The first image processing is different from the second image processing. Detect a second operation on the first control. The second operation is used to indicate the end of shooting. The display module 910 is configured to, in response to the second operation, sequentially display the first thumbnail image and the second thumbnail image in the thumbnail display area. And generate a third thumbnail image. The image quality of the third thumbnail image is better than that of the second thumbnail image. The processing module 920 is configured to, before generating the third thumbnail image, detect a third operation on the first control. The third operation is used to indicate the start of shooting. In response to the third operation, save a fourth thumbnail image in the album application and generate a fifth thumbnail image. The fourth thumbnail image is a thumbnail image generated by performing a first image processing on a second image. The fifth thumbnail image is a thumbnail image generated by performing a second image processing on the second image. The second image is an image collected by the electronic device in real time at a second moment, and the second moment is later than the first moment. Detect a fourth operation on the first control. The fourth operation is used to indicate the end of shooting. The display module 910 is configured to, in response to the fourth operation, sequentially display the fourth thumbnail image, the fifth thumbnail image, and a sixth thumbnail image in the thumbnail display area. The image quality of the sixth thumbnail image is better than that of the fifth thumbnail image.

[0563] Optionally, as an embodiment, the first image processing includes downsampling processing. The algorithm complexity of the second image processing is higher than that of the first image processing.

[0564] Optionally, as an embodiment, the processing module 920 is specifically configured to:

[0565] In response to the second operation, generate a first captured image.

[0566] Scale the first captured image based on the size of the thumbnail display area to generate the third thumbnail image.

[0567] Optionally, as an embodiment, the processing module 920 is further configured to:

[0568] Generate a second captured image in response to the fourth operation;

[0569] Scale the second captured image based on the size of the thumbnail display area to generate the sixth thumbnail image.

[0570] Optionally, as an embodiment, the electronic device includes a storage module, and the storage module includes a first storage area and a second storage area. The first storage area is used to store the first thumbnail image, the second thumbnail image, or the first captured image; the second storage area is used to store the fourth thumbnail image, the fifth thumbnail image, or the second captured image; the first storage area and the second storage area are different storage areas in the storage module.

[0571] Optionally, as an embodiment, the processing module 920 is further configured to:

[0572] In the case where the second thumbnail image is generated and the first captured image is not generated, replace the first thumbnail image in the first storage area with the second thumbnail image;

[0573] In the case where the first captured image is generated, replace the second thumbnail image in the first storage area with the first captured image.

[0574] Optionally, as an embodiment, the processing module 920 is further configured to:

[0575] In the case where the fifth thumbnail image is generated and the second captured image is not generated, replace the fourth thumbnail image in the second storage area with the fifth thumbnail image;

[0576] In the case where the second captured image is generated, replace the fifth thumbnail image in the second storage area with the second captured image.

[0577] Optionally, as an embodiment, the first operation and the third operation are operations of clicking the first control; the second operation and the fourth operation are operations of releasing the first control.

[0578] Optionally, as an embodiment, the image quality includes image texture information or image brightness information.

[0579] It should be noted that the above-mentioned electronic device 900 is embodied in the form of functional modules. The term "module" here can be implemented in software and / or hardware forms, and no specific limitation is made thereto.

[0580] For example, a "module" can be a software program, a hardware circuit, or a combination of both that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group of processors, etc.) for executing one or more software or firmware programs, a memory, a merged logic circuit, and / or other suitable components that support the described functions.

[0581] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0582] Figure 18 The structural schematic diagram of an electronic device provided by the present application is shown. Figure 18 The dashed line in [the figure] indicates that the unit or the module is optional; the electronic device 1100 can be used to implement the method of displaying a thumbnail image described in the above method embodiments.

[0583] The electronic device 1000 includes one or more processors 1001, and the one or more processors 1001 can support the electronic device 1000 to implement the method of displaying a thumbnail image in the method embodiments. The processor 1001 can be a general-purpose processor or a dedicated processor. For example, the processor 1001 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gate, transistor logic devices, or discrete hardware components.

[0584] Optionally, the processor 1001 can be used to control the electronic device 1000, execute software programs, and process the data of the software programs. The electronic device 1000 can also include a communication unit 1005 for implementing the input (receiving) and output (sending) of signals.

[0585] For example, the electronic device 1000 may be a chip, and the communication unit 1005 may be the input and / or output circuit of the chip. Alternatively, the communication unit 1005 may be the communication interface of the chip, and the chip may be a component of a terminal device or other electronic devices.

[0586] As another example, the electronic device 1000 may be a terminal device, and the communication unit 1005 may be the transceiver of the terminal device. Alternatively, the communication unit 1005 may... One or more memories 1002 may be included in 1000, and a program 1004 is stored thereon. The program 1004 can be run by the processor 1001 to generate instructions 1003, such that the processor 1001 executes the method of displaying a thumbnail image described in the above method embodiments according to the instructions 1003.

[0587] Optionally, data may also be stored in the memory 1002.

[0588] Optionally, the processor 1001 may also read the data stored in the memory 1002. The data may be stored at the same storage address as the program 1004, or may be stored at a different storage address from the program 1004.

[0589] Optionally, the processor 1001 and the memory 1002 may be provided separately or integrated together. For example, they may be integrated on a system on chip (SOC) of a terminal device.

[0590] Exemplarily, the memory 1002 can be used to store the relevant program 1004 of the method for displaying thumbnail images provided in the embodiments of the present application. The processor 1001 can be used to call the relevant program 1004 of the method for displaying thumbnail images stored in the memory 1002 when executing the method for displaying thumbnail images, and execute the method for displaying thumbnail images in the embodiments of the present application. For example, at a first moment, a first display interface is displayed. The first display interface includes a first control, a thumbnail display area, and a first preview image. Among them, the first control is a control for indicating shooting; the thumbnail display area is used to display thumbnail images; the first preview image is an image generated by preview processing of the first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment. Detect a first operation on the first control. The first operation is used to indicate the start of shooting, and shooting can include taking a photo. In response to the first operation, the first thumbnail image is saved in the album application, and a second thumbnail image is generated. Among them, the first thumbnail image is a thumbnail image generated by the first image through the first image processing; the second thumbnail image is a thumbnail image generated by the first image through the second image processing, and the first image processing is different from the second image processing. Detect a second operation on the first control. The second operation is used to indicate the end of shooting. In response to the second operation, the first thumbnail image, the second thumbnail image, and the third thumbnail image are sequentially displayed in the thumbnail display area, where the image quality of the third thumbnail image is better than that of the second thumbnail image.

[0591] Optionally, the present application further provides a computer program product. When the computer program product is executed by the processor 1001, it implements the method for displaying thumbnail images in any method embodiment of the present application.

[0592] For example, the computer program product can be stored in the memory 1002, such as the program 1004. The program 1004 is finally converted into an executable target file that can be executed by the processor 1001 through processes such as preprocessing, compilation, assembly, and linking.

[0593] Optionally, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer, it implements the method for displaying thumbnail images in any method embodiment of the present application. The computer program can be a high-level language program or an executable target program.

[0594] For example, the computer-readable storage medium is, for example, the memory 1002. The memory 1002 may be a volatile memory or a non-volatile memory, or the memory 1002 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).

[0595] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0596] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here.

[0597] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the embodiments of the electronic device described above are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in an electrical, mechanical, or other form.

[0598] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0599] In addition, in each embodiment of the present application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0600] It should be understood that in various embodiments of the present application, the magnitude of the sequence numbers of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0601] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0602] If a function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0603] The above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims. In short, the above is only a preferred embodiment of the technical solution of this application and is not used to limit the protection scope of this application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.

Claims

1. A method for displaying thumbnail images, characterized in that, applied to an electronic device, including: displaying a first display interface at a first moment, the first display interface including a first control, a thumbnail display area and a first preview image, wherein the first control is a control for indicating shooting, the thumbnail display area is used for displaying thumbnail images, and the first preview image is an image generated by preview processing of a first image collected by the electronic device, and the first image is an image collected in real time by the electronic device at the first moment; detecting a first operation on the first control, the first operation being used to indicate the start of shooting; after the first operation, saving a first thumbnail image in an album application and generating a second thumbnail image; wherein the first thumbnail image is a thumbnail image generated by performing first image processing on the first image; the second thumbnail image is a thumbnail image generated by performing second image processing on the first image, and the first image processing is different from the second image processing; detecting a second operation on the first control, the second operation being used to indicate the end of shooting; after the second operation, sequentially displaying the first thumbnail image and the second thumbnail image in the thumbnail display area.

2. The method according to claim 1, characterized in that, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

3. The method according to claim 2, characterized in that, further including: generating a first captured image in response to the second operation; performing scaling processing on the first captured image based on the size of the thumbnail display area to generate a third thumbnail image.

4. The method according to claim 3, characterized in that, the electronic device includes a storage module, and the storage module includes a first storage area, and further includes: when the electronic device generates the second thumbnail image and does not generate the first captured image, replacing the first thumbnail image in the first storage area with the second thumbnail image; when the electronic device generates the first captured image, replacing the second thumbnail image in the first storage area with the first captured image.

5. The method according to claim 3 or 4, characterized in that, further including: acquiring time information when the first operation is detected; selecting the first image from a zero-second delay queue in the electronic device based on the time information.

6. The method according to claim 5, characterized in that, the second image processing includes a first algorithm process and a second algorithm process, the first algorithm is an algorithm in a first color space, the second algorithm is an algorithm for converting an image in the first color space into an image in a second color space, and the generating of the first captured image includes: performing the first algorithm process on the first image to obtain an image in the first color space; performing fusion processing on at least two frames of the images in the first color space to obtain a fused image; Perform the second algorithm processing on the fused image to generate the first captured image.

7. The method according to any one of claims 1 to 4 and 6, wherein, the first operation is an operation of clicking the first control; the second operation is an operation of releasing the first control.

8. A method for displaying a thumbnail image, wherein, applied to an electronic device, including: displaying a first display interface at a first moment, the first display interface including a first control, a thumbnail display area, and a first preview image; wherein, the first control is a control for indicating shooting; the thumbnail display area is used for displaying thumbnail images; the first preview image is an image generated by preview processing of a first image collected by the electronic device, and the first image is an image collected by the electronic device in real time at the first moment; detecting a first operation on the first control, the first operation being used to indicate the start of shooting; after the first operation, saving a first thumbnail image in an album application, and generating a second thumbnail image; wherein, the first thumbnail image is a thumbnail image generated by performing first image processing on the first image; the second thumbnail image is a thumbnail image generated by performing second image processing on the first image, and the first image processing is different from the second image processing; detecting a second operation on the first control, the second operation being used to indicate the end of shooting; after the second operation, sequentially displaying the first thumbnail image and the second thumbnail image in the thumbnail display area; and generating a third thumbnail image, the image quality of the third thumbnail image being better than that of the second thumbnail image; before generating the third thumbnail image, detecting a third operation on the first control, the third operation being used to indicate the start of shooting; after the third operation, saving a fourth thumbnail image in an album application, and generating a fifth thumbnail image; wherein, the fourth thumbnail image is a thumbnail image generated by performing first image processing on a second image; the fifth thumbnail image is a thumbnail image generated by performing second image processing on the second image; the second image is an image collected by the electronic device in real time at a second moment, and the second moment is later than the first moment; detecting a fourth operation on the first control, the fourth operation being used to indicate the end of shooting; after the fourth operation, sequentially displaying the fourth thumbnail image and the fifth thumbnail image in the thumbnail display area.

9. The method according to claim 8, wherein, the first image processing includes downsampling processing; the algorithm complexity of the second image processing is higher than that of the first image processing.

10. The method according to claim 9, wherein, generating the third thumbnail image includes: responding to the second operation to generate a first captured image; performing scaling processing on the first captured image based on the size of the thumbnail display area to generate the third thumbnail image.

11. The method according to claim 10, wherein, further includes: In response to the fourth operation, a second captured image is generated; Based on the size of the thumbnail display area, the second captured image is scaled to generate a sixth thumbnail image.

12. The method according to claim 11, wherein, the electronic device includes a storage module, and the storage module includes a first storage area and a second storage area. The first storage area is used to store the first thumbnail image, the second thumbnail image, or the first captured image; the second storage area is used to store the fourth thumbnail image, the fifth thumbnail image, or the second captured image; the first storage area and the second storage area are different storage areas in the storage module.

13. The method according to claim 12, wherein, further comprising: In the case where the second thumbnail image is generated and the first captured image is not generated, the first thumbnail image in the first storage area is replaced with the second thumbnail image; In the case where the first captured image is generated, the second thumbnail image in the first storage area is replaced with the first captured image.

14. The method according to claim 12 or 13, wherein, further comprising: In the case where the fifth thumbnail image is generated and the second captured image is not generated, the fourth thumbnail image in the second storage area is replaced with the fifth thumbnail image; In the case where the second captured image is generated, the fifth thumbnail image in the second storage area is replaced with the second captured image.

15. The method according to any one of claims 8 to 13, wherein, the first operation and the third operation are operations of clicking the first control; the second operation and the fourth operation are operations of releasing the first control.

16. The method according to any one of claims 8 to 13, wherein, the image quality includes image texture information or image brightness information.

17. An electronic device, wherein, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code. The computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method according to any one of claims 1 to 7, or 8 to 16.

18. A chip system, wherein, the chip system is applied to an electronic device, and the chip system includes one or more processors. The processors are used to call computer instructions to cause the electronic device to execute the method according to any one of claims 1 to 7, or 8 to 16.

19. A computer-readable storage medium, wherein, the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 7, or 8 to 16.

Citation Information

Patent Citations

  • Image processing apparatus and image processing method

    CN102236881A

  • Shooting interface display method and device, electronic equipment and medium

    CN113093968A