WO2024109207A1 - 显示缩略图像的方法和电子设备 - Google Patents

显示缩略图像的方法和电子设备 Download PDF

Info

Publication number
WO2024109207A1
WO2024109207A1 PCT/CN2023/114173 CN2023114173W WO2024109207A1 WO 2024109207 A1 WO2024109207 A1 WO 2024109207A1 CN 2023114173 W CN2023114173 W CN 2023114173W WO 2024109207 A1 WO2024109207 A1 WO 2024109207A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
thumbnail
thumbnail image
electronic device
shooting
Prior art date
Application number
PCT/CN2023/114173
Other languages
English (en)
French (fr)
Inventor
许集润
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024109207A1 publication Critical patent/WO2024109207A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Definitions

  • the present application relates to the field of terminals, and in particular, to a method and electronic device for displaying thumbnail images.
  • the electronic device when the electronic device completes a shooting, a thumbnail image will be displayed in the shooting interface; users usually regard the display of the thumbnail image by the electronic device as the end of a shooting; wherein, the image content in the thumbnail image is consistent with the image content of the image actually shot this time, and the image corresponding to the thumbnail image stored in the album can be found according to the thumbnail image; because currently the electronic device will trigger the electronic device to generate thumbnail images and shot images only after the electronic device detects the user's operation of popping up the shooting control; the electronic device cannot display the thumbnail image at the moment of detecting the pop-up shooting control, that is, the time between the electronic device detecting the pop-up shooting control and displaying the thumbnail image is too long; the user's shooting waiting time is long, making the user's shooting experience poor.
  • the present application provides a method and electronic device for displaying thumbnail images, which can quickly display thumbnail images and improve shooting experience.
  • a method for displaying a thumbnail image is provided, which is applied to an electronic device, comprising:
  • the first display interface including a first control, a thumbnail display area and a first preview image
  • the first control is a control for instructing 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 captured by the electronic device
  • the first image is an image captured in real time by the electronic device at the first moment
  • a first thumbnail image is saved in an album application, and a second thumbnail image is generated; wherein the first thumbnail image is a thumbnail image generated by the first image after a first image processing; the second thumbnail image is a thumbnail image generated by the first image after a second image processing, and the first image processing is different from the second image processing;
  • the first thumbnail image, the second thumbnail image and the 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.
  • the first operation may be an operation of clicking a shooting control, or the first operation may be an operation of instructing shooting through voice; or an operation of instructing to start shooting through other instructions; this application does not impose any limitation on this.
  • the second operation is an operation of popping up a shooting control; or an operation of ending shooting by voice instruction; or an operation of ending shooting by other instructions.
  • the operation of popping up the shooting control may refer to the operation of the electronic device detecting that the user's finger leaves the shooting control; or the operation of the electronic device detecting that the user's finger releases the shooting control, etc.
  • the image quality may include image detail information, image texture information, image brightness, or an image quality assessment result obtained by any image quality assessment algorithm; the present application does not impose any limitation on this.
  • a 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 popping up a 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 a camera application and generate a second thumbnail image (for example, a real thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image, and the third thumbnail image (for example, a thumbnail image obtained based on the captured image) are displayed in sequence in a display area of a display interface; after the second operation is detected, the first thumbnail image is quickly triggered to be displayed; the thumbnail image can be displayed at the moment the electronic device detects the second operation, thereby improving the shooting response speed; reducing the user's shooting waiting time, and improving the shooting experience.
  • a first operation for example, an operation of clicking a shooting control
  • a second operation for example, an operation of popping up a shooting control
  • the first thumbnail image, the second thumbnail image and the third thumbnail image may correspond to the same shooting of the user; for the same shooting, the display of the first thumbnail image, the second thumbnail image and the third thumbnail image are mutually exclusive; for example, if the first thumbnail image is displayed in the display interface in 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 in 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 in 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.
  • the first image processing includes downsampling processing; and the algorithm complexity of the second image processing is higher than the algorithm complexity of the first image processing.
  • the first image processing may include downsampling processing or part of ISP processing; the second image processing may include multi-frame image fusion processing, ISP processing and other software algorithms of image processing.
  • the time required for the first image processing is shorter than the time required for the second image processing.
  • the first thumbnail image is generated by performing thumbnail processing on the first preview image.
  • the first preview image is scaled based on the size of the thumbnail display area to generate the first thumbnail image.
  • the method further includes:
  • the first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
  • 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 after fusion processing based on multiple frames of Raw images; therefore, the image quality of the third thumbnail image is better than that of the second thumbnail image.
  • the electronic device when the electronic device detects the operation of popping up a shooting control, it triggers the electronic device to generate a first captured image, and the first captured image can be a real image taken; by scaling the first captured image, a third thumbnail image can be obtained, that is, a thumbnail image of the first captured image.
  • the electronic device includes a storage module, the storage module includes a first storage area, and further includes:
  • the second thumbnail image in the first storage area is replaced by the first captured image.
  • the first thumbnail image (e.g., a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image.
  • the second thumbnail image (e.g., a real thumbnail image) stored in the electronic device is directly replaced by the first captured image; and the first thumbnail image, the second thumbnail image and the first thumbnail image are directly replaced in an embodiment of the present application, which can reduce the storage space of the electronic device occupied by the thumbnail images.
  • scaling is performed on the first preview image to generate the first thumbnail image.
  • the second thumbnail image is a thumbnail image obtained after image processing based on the Raw image
  • the first thumbnail image is a thumbnail image obtained by directly scaling the preview image
  • the preview image since the preview image usually has a lower resolution than the Raw image captured by the image sensor, the image quality of the second thumbnail image is better than the image quality of the first thumbnail image.
  • the electronic device after the electronic device detects the operation of clicking a shooting control, it can trigger a process of saving a false thumbnail image in an album application; thereby, when the electronic device detects the pop-up shooting control, it can quickly display a false thumbnail image in the display interface to respond to the user's shooting operation; thereby reducing the time the user waits for shooting and improving the user's shooting experience.
  • the method further includes:
  • the time information when the first operation is detected and the first moment may be the same moment.
  • the second image processing includes first algorithm processing and second algorithm processing
  • the first algorithm is an algorithm of 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
  • the generating of the first captured image includes:
  • the fused image is processed by the second algorithm to generate the first captured image.
  • the first algorithm is an algorithm for the Raw color space; the second algorithm converts the Raw image Like the algorithm for converting to YUV color space.
  • the first captured image may refer to a true image generated by a single photographing operation; compared with generating 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 fusion processing based on multiple frames of Raw images; therefore, the image quality of the first captured image is better than the image quality of the second thumbnail image; in addition, the image quality of the third thumbnail image obtained by scaling the first captured image is better than the image quality of the second thumbnail image.
  • the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
  • the image quality includes image texture information or image brightness information.
  • a method for displaying a thumbnail image which is applied to an electronic device and includes:
  • 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 instructing 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 captured by the electronic device, and the first image is an image captured in real time by the electronic device at the first moment;
  • a first thumbnail image is saved in an album application, and a second thumbnail image is generated; wherein the first thumbnail image is a thumbnail image generated by the first image after a first image processing; the second thumbnail image is a thumbnail image generated by the first image after a second image processing, and the first image processing is different from the second image processing;
  • a fourth thumbnail image is saved in the photo album application, and a fifth thumbnail image is generated; wherein the fourth thumbnail image is a thumbnail image generated by processing the second image through the first image; the fifth thumbnail image is a thumbnail image generated by processing the second image through 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;
  • the fourth thumbnail image, the fifth thumbnail image and the 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.
  • 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 times of the two photographing operations are different; wherein the first thumbnail image may be a false thumbnail image of the first photographing operation; the second thumbnail image is a real thumbnail image of the first photographing operation; the third thumbnail image is a thumbnail image generated based on the actual photographed 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 a real thumbnail ...
  • the sixth thumbnail image is a real thumbnail image of the second photographing operation; and the sixth thumbnail image is a thumbnail image generated based on the actual photographed image of the second photographing operation.
  • the first image processing includes downsampling processing; and the algorithm complexity of the second image processing is higher than the algorithm complexity of the first image processing.
  • generating the third thumbnail image includes:
  • the first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
  • the method further includes:
  • the second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
  • the electronic device includes a storage module, 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.
  • a storage module in an electronic device corresponds to one storage area for one shooting. After a false thumbnail image, a real thumbnail image or a shot image of one shooting is generated, replacement storage is performed only in the storage area corresponding to the shooting; different shootings correspond to different storage areas in the cache module.
  • the present invention further includes:
  • the second thumbnail image in the first storage area is replaced by the first photographed image.
  • the method further includes:
  • the fifth thumbnail image in the second storage area is replaced by the second photographed image.
  • the first operation and the third operation are operations of clicking the first control; and the second operation and the fourth operation are operations of popping up the first control.
  • the image quality includes image texture information or image brightness information.
  • an electronic device comprising 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 comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute:
  • a first display interface is displayed at a first moment, wherein 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 for displaying thumbnail images; the first preview image is an image generated by preview processing of the first image captured by the electronic device, and the first image is an image captured in real time by the electronic device at the first moment;
  • a first thumbnail image is saved in an album application, and a second thumbnail image is generated; wherein the first thumbnail image is a thumbnail image generated by the first image after a first image processing; the second thumbnail image is a thumbnail image generated by the first image after a second image processing, and the first image processing is different from the second image processing;
  • the first thumbnail image, the second thumbnail image and the 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.
  • the first image processing includes downsampling processing; and the algorithm complexity of the second image processing is higher than the algorithm complexity of the first image processing.
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
  • the electronic device includes a storage module, the storage module includes a first storage area, and the one or more processors call the computer instructions to cause the electronic device to execute:
  • the second thumbnail image in the first storage area is replaced by the first captured image.
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the first image is selected from a zero-second delay queue in the electronic device based on the time information.
  • the second image processing includes a first algorithm processing and a second algorithm processing
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the fused image is processed by a second algorithm to generate the first captured image.
  • the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
  • the image quality includes image texture information or image brightness information.
  • an electronic device comprising 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 comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute:
  • 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 instructing 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 captured by the electronic device, and the first image is an image captured in real time by the electronic device at the first moment;
  • a first thumbnail image is saved in an album application, and a second thumbnail image is generated; wherein the first thumbnail image is a thumbnail image generated by the first image after a first image processing; the second thumbnail image is a thumbnail image generated by the first image after a second image processing, and the first image processing is different from the second image processing;
  • 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 processing the second image through the first image; the fifth thumbnail image is a thumbnail image generated by processing the second image through 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;
  • the fourth thumbnail image, the fifth thumbnail image and the 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.
  • the first image processing includes downsampling processing; and the algorithm complexity of the second image processing is higher than the algorithm complexity of the first image processing.
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
  • the electronic device includes a storage module.
  • 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.
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the second thumbnail image in the first storage area is replaced by the first photographed image.
  • the one or more processors call the computer instructions to cause the electronic device to execute:
  • the fifth thumbnail image in the second storage area is replaced by the second photographed image.
  • the first operation and the third operation are operations of clicking the first control; and the second operation and the fourth operation are operations of popping up the first control.
  • the image quality includes image texture information or image brightness information.
  • an electronic device comprising a module/unit for executing the method for displaying thumbnail images according to the first aspect or any one of the implementations of the first aspect.
  • an electronic device comprising a module/unit for executing the method for displaying thumbnail images in the second aspect or any one of the implementations of the second aspect.
  • an electronic device comprising 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 comprises computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method for displaying thumbnail images in any aspect or any implementation of any aspect.
  • a chip system which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute any aspect or any one of the methods for displaying thumbnail images in any aspect.
  • a computer-readable storage medium stores a computer program code.
  • the computer program code is executed by an electronic device, the electronic device executes the method for displaying thumbnail images in any aspect or any implementation of any aspect.
  • a computer program product comprising: a computer program code, which, when executed by an electronic device, enables the electronic device to execute the method for displaying thumbnail images in any aspect or any implementation of any aspect.
  • the shooting operation is divided into a first operation (for example, the operation of clicking the shooting control) and a second operation (for example, the operation of popping up the shooting control); when the electronic device detects the first operation, the trigger
  • the electronic device saves a first thumbnail image (e.g., a false thumbnail image) in a camera application and generates a second thumbnail image (e.g., a real thumbnail image); when the electronic device detects a second operation, the first thumbnail image, the second thumbnail image, and the third thumbnail image (e.g., thumbnail images obtained based on captured images) are sequentially displayed in a display area of the display interface; after the second operation is detected, the first thumbnail image is quickly triggered to be displayed; the thumbnail image can be displayed at the moment the electronic device detects the second operation, thereby improving the speed of shooting response; reducing the user's shooting waiting time and improving the shooting experience.
  • a first thumbnail image e.g., a false thumbnail image
  • a second thumbnail image e.g., a real thumbnail image
  • FIG1 is a schematic diagram of a hardware system of an electronic device applicable to the present application.
  • FIG2 is a schematic diagram of an application scenario applicable to an embodiment of the present application.
  • FIG3 is a schematic flow chart of a method for displaying thumbnail images provided in an embodiment of the present application.
  • FIG4 is a schematic flow chart of another method for displaying thumbnail images provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a software architecture provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of a graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG7 is a schematic diagram of another graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG8 is a schematic diagram of another graphical user interface provided by an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG9 is a schematic diagram of another software architecture provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of a graphical user interface applicable to an embodiment of the present application.
  • FIG11 is a schematic diagram of another graphical user interface applicable to an embodiment of the present application.
  • FIG12 is a schematic diagram of another graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG13 is a schematic diagram of another graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG14 is a schematic diagram of another graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG15 is a schematic diagram of another graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG16 is a schematic diagram of another graphical user interface provided in an embodiment of the present application and applicable to an embodiment of the present application;
  • FIG17 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 18 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
  • first, second, etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
  • “multiple” means two or more.
  • a thumbnail image refers to an image with a smaller resolution cached in an electronic device.
  • the image quality of a thumbnail image is poorer than that of a captured image.
  • the resolution of the thumbnail image is smaller.
  • the thumbnail image in the shooting interface can be indexed to the actual captured image in the album.
  • an electronic device Before taking a picture, an electronic device usually displays an image of the picture to be taken in the electronic device; these displayed images are also called preview images; wherein the electronic device caches the preview images and the actual taken images in chronological order in an image queue, which is called a ZSL queue.
  • the images in the ZSL queue may be Raw images.
  • FIG. 1 shows a hardware system of an electronic device suitable for the present application.
  • 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.
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • projector etc.
  • the embodiment of the present application does not impose any restrictions on the specific type of the electronic device 100.
  • 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, an earphone interface 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.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air 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.
  • the structure shown in FIG1 does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in FIG1, or the electronic device 100 may include a combination of some of the components shown in FIG1, or the electronic device 100 may include sub-components of some of the components shown in FIG1.
  • the components shown in FIG1 may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processor (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).
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units may be independent devices or integrated devices.
  • the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • 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 Mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM interface, and USB interface.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile Mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM interface SIM interface
  • USB interface USB interface
  • the processor 110 may be used to execute a method for displaying thumbnail images provided by an embodiment of the present application; for example, a first display interface is displayed 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 to display thumbnail images; the first preview image is an image generated by preview processing of a first image captured by the electronic device, and the first image is an image captured in real time by the electronic device at the first moment; a first operation on the first control is detected, the first operation is used to indicate starting shooting, and the shooting may include taking a photo; in response to the first operation, the first thumbnail image is saved in an album application, and a second thumbnail image is generated; wherein the first thumbnail image is a thumbnail image generated by the first image after first image processing; the second thumbnail image is a thumbnail image generated by the first image after second image processing, and the first image processing is different from the second image processing; a second
  • connection relationship between the modules shown in Fig. 1 is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 100.
  • the modules of the electronic device 100 may also adopt a combination of multiple connection modes in the above embodiments.
  • the wireless communication function of the electronic device 100 can be implemented through components such as the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the electronic device 100 can realize the display function through the GPU, the display screen 194 and the application processor.
  • the GPU is a microprocessor for image processing, which connects 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.
  • Display screen 194 may be used to display images or videos.
  • 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).
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • 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.
  • the ISP is used to process the data fed back by the camera 193.
  • the shutter is opened, and light is transmitted to the camera photosensitive element through the camera, and the light signal is converted into an electrical signal.
  • the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
  • the ISP can perform algorithmic optimization on the noise, brightness and color of the image, and the ISP can also optimize the exposure and color temperature of the shooting scene and other parameters.
  • the ISP can be set in the camera 193.
  • the camera 193 (also referred to as a lens) is used to capture static images or videos. It can be triggered to start by an application program instruction to realize the photo function, such as taking an image 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 the object enters the imaging lens, passes through the filter, and finally converges on the image sensor.
  • the imaging lens is mainly used to converge the light emitted or reflected by all objects in the photographing angle (also referred to as the scene to be photographed, the target scene, or the scene image that the user expects to shoot) to form an image;
  • the filter is mainly used to filter out the redundant light waves in the light (for example, light waves other than visible light, such as infrared);
  • the image sensor may be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the image sensor is mainly used to perform photoelectric conversion on the received light signal, convert it into an electrical signal, and then transmit the electrical signal to the ISP to convert it 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 a standard RGB, YUV, etc. format.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals.
  • the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • a video codec is used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
  • MPEG Moving Picture Experts Group
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes i.e., the x-axis, the y-axis, and the z-axis
  • the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used in scenarios such as navigation and somatosensory games.
  • 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 as an input parameter for applications such as horizontal and vertical screen switching and pedometers.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, for example, in a shooting scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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 perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touch.
  • 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 application locks, taking photos, and answering calls.
  • the touch sensor 180K is also called a touch control device.
  • the touch sensor 180K can be set on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch control screen.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor 180K can transmit the detected touch operation to the touch screen.
  • the touch sensor 180K is passed to the application processor to determine the type of touch event.
  • a visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K can also be arranged on the surface of the electronic device 100 and at a different position from the display screen 194.
  • the electronic device is triggered to generate a real thumbnail image and a captured image (for example, a real image) only after it detects that the user has popped up a shooting control.
  • the electronic device is unable to display the thumbnail image at the moment when the shooting control is detected to have been popped up, that is, the time between the electronic device detecting that the shooting control has been popped up and displaying the thumbnail image is too long.
  • the user's shooting waiting time is long, resulting in a poor shooting experience for the user.
  • an embodiment of the present application provides a method and an electronic device for displaying thumbnail images; in an embodiment of the present application, by dividing the shooting operation into an operation of clicking a shooting control and an operation of popping up the shooting control, when the electronic device detects the operation of clicking the shooting control, it triggers the electronic device to save a false thumbnail image in an album application and generate 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 selecting the original image data for image processing; when the electronic device detects the operation of the user popping up the shooting control, it triggers the display of the false thumbnail image; so that the thumbnail image can be displayed at the moment the electronic device detects the operation of popping up the shooting control, thereby improving the shooting response speed; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • FIG. 2 is a schematic diagram of an application scenario of the method for displaying thumbnail images provided in an embodiment of the present application.
  • the electronic device displays a preview interface 201, as shown in (a) in FIG. 2 ;
  • the preview interface 201 includes a preview image, a thumbnail display control 202 and a shooting control 203, wherein the thumbnail display control 202 is used to display a thumbnail image of the image that was captured last time;
  • the electronic device detects an operation of clicking the shooting control 203, as shown in (b) in FIG. 2 ;
  • the electronic device detects an operation of the user popping up the shooting control 203, and displays a display interface 204, as shown in (c) in FIG.
  • the thumbnail image displayed in the thumbnail display control 202 in the display interface 204 is still the thumbnail image of the image that was captured last time; at a third moment, the electronic device displays a display interface 205, and the thumbnail display control 202 in the display interface 205 displays a thumbnail image of the image that was captured this time, as shown in (d) in FIG. 2 .
  • a method for displaying thumbnail images and an electronic device are provided; the method for displaying thumbnail images provided according to the embodiment of the present application can solve the problem of long shooting response time of the electronic device, so that the electronic device can quickly display thumbnail images.
  • the method for displaying thumbnails in the embodiment of the present application can be applied to the shooting mode of the camera application; or, the method for displaying thumbnails in the embodiment of the present application can be applied to the quick shooting mode of the camera application.
  • the method for displaying thumbnail images in the embodiment of the present application can be applied to night scene shooting in shooting mode, but is not applicable to night scene shooting mode; because in night scene shooting mode, each image obtained by the electronic device A frame of image is obtained by fusing a long exposure image, a normal exposure image and a short exposure image; in an embodiment of the present application, when a click on the shooting control is detected, the electronic device is triggered to generate a false thumbnail image and a real thumbnail image, and when a pop-up shooting control is detected; after the false thumbnail image is displayed in the electronic device, the user may move the electronic device if he thinks that the shooting is completed; however, the short exposure image and the long exposure image may not have been generated at this time; after moving the electronic device, there will be differences in the contents of the short exposure image, the long exposure image and the normal exposure image, resulting in poor image quality; therefore, the method for displaying thumbnail images provided in the embodiment of the present application is not suitable for night scene mode.
  • Fig. 3 is a schematic flow chart of a method for displaying thumbnail images provided by an embodiment of the present application.
  • the method 300 may be executed by the electronic device shown in Fig. 1; the method 300 includes S310 to S350, and S310 to S350 are described in detail below.
  • S310 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 after preview processing of the first image captured by the electronic device, and the first image is an image captured in real time by the electronic device at the first moment.
  • the camera module can send the first image captured 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, which are images generated by preview processing of the images captured by the camera module; the images stored in the ZSL queue storage module are used to generate actual captured images for taking photos.
  • the first display interface may be as shown in (a) of FIG. 6 ; the first control may refer to the control 612 shown in (a) of FIG. 6 ; and the display area may refer to the area where the control 613 shown in (a) of FIG. 6 is located.
  • a camera application may be run before S310 .
  • the user may instruct the electronic device to run the camera application by clicking the icon of the “Camera” application.
  • the user can instruct the electronic device to run the camera application by sliding the gesture to the right on the display screen of the electronic device.
  • the electronic device is in the lock screen state, and the lock screen interface includes an icon of the camera application.
  • the user instructs the electronic device to run the camera application by clicking the icon of the camera application.
  • the application has the permission to call the camera application; the user can instruct the electronic device to run the camera application by clicking the corresponding control.
  • the electronic device is running an instant messaging application, the user can instruct the electronic device to run the camera application by selecting the control of the camera function.
  • running the camera application may refer to launching the camera application.
  • the first operation is used to instruct to start shooting.
  • the shooting may include taking a photo.
  • the shooting operation may be a photo taking operation.
  • the first operation may be a click operation on the control 612 .
  • the above description is given by taking the first operation as a click operation as an example; in an embodiment of the present application, the first operation may also be an operation of shooting through voice instructions; or, an operation of starting shooting through other instructions; the present application does not impose any limitation on this.
  • S330 In response to the first operation, save the first thumbnail image in the photo 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, and the first image processing is different from the second image processing.
  • the first image processing may include downsampling processing or part of ISP processing; the second image processing may include multi-frame image fusion processing, ISP processing and other software algorithms of image processing.
  • the time required for the first image processing is shorter than the time required for the second image processing.
  • the first thumbnail image may be the thumbnail image displayed in the control 613 in (a) of FIG. 7 ;
  • the second thumbnail image may be the thumbnail image displayed in the control 613 in (c) of FIG. 7 .
  • generating the first thumbnail image includes:
  • the first preview image is scaled to generate a first thumbnail image.
  • the specific implementation method can refer to the related description of the first process 430 in the subsequent FIG. 4, which will not be repeated here.
  • the electronic device after the electronic device detects the operation of clicking a shooting control, it can trigger a process of saving a false thumbnail image in the album application; thereby, when the electronic device detects the pop-up shooting control, it can quickly display a false thumbnail image in the display interface to respond to the user's shooting operation; thereby reducing the time the user waits for shooting and improving the user's shooting experience.
  • it also includes:
  • a first captured image is generated; and the first captured image is scaled based on the size of the thumbnail display area to generate a third thumbnail image.
  • 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 based on the fusion of multiple frames of Raw images; therefore, the image quality of the third thumbnail image is better than that of the second thumbnail image.
  • the electronic device when the electronic device detects the operation of popping up a shooting control, it triggers the electronic device to generate a first captured image, and the first captured image can be a real image taken; by scaling the first captured image, a third thumbnail image can be obtained, that is, a thumbnail image of the first captured image.
  • the second image processing includes a first algorithm processing and a second algorithm processing
  • the first algorithm is an algorithm of the first color space
  • the second algorithm is an algorithm for converting an image in the first color space into an image in the second color space
  • generating the first captured image includes:
  • the first image is processed by a first algorithm to obtain an image in a first color space; at least two frames of images in the first color space are fused to obtain a fused image; and the fused image is processed by a second algorithm to generate a first captured image.
  • the specific implementation method can refer to the related description of the second process 440 shown in the subsequent FIG. 4, which will not be described here. Elaborate.
  • the first image may be original image data, that is, the first image may be a Raw image; and the first algorithm may include an algorithm in a Raw color space.
  • the algorithms of the Raw color space may include but are not limited to: black level correction (Black Level Correction, BLC), lens shading correction (Lens Shading Correction, LSC) and other algorithms.
  • black level correction is used to correct the black level.
  • Black level refers to the video signal level without a line of light output on a calibrated display device.
  • the reason for black level correction is: on the one hand, due to the dark current of the image sensor, there is a problem of voltage output of the pixel even in the absence of light; on the other hand, due to the insufficient accuracy of the image sensor when performing analog-to-digital conversion.
  • Lens Shading Correction is used to eliminate the problem of inconsistent color and brightness around the image and the center of the image caused by the lens optical system.
  • the second algorithm includes an algorithm for converting a Raw image into a YUV color space.
  • it also includes:
  • Acquire time information when a first operation is detected ; and select a first image from a zero-second delay queue in the electronic device based on the time information.
  • the electronic device when an operation of clicking a shooting control is detected, the electronic device can be triggered to generate a second thumbnail image, i.e., a real thumbnail image; compared with the existing scheme, in which the process of generating a real thumbnail image is triggered after a pop-up shooting operation is detected, in an embodiment of the present application, the time for triggering the electronic device to generate a real thumbnail image is advanced, thereby reducing the time it takes for the electronic device to respond to shooting; reducing the time the user waits for shooting, and improving the user's shooting experience.
  • a second thumbnail image i.e., a real thumbnail image
  • the time for triggering the electronic device to generate a real thumbnail image is advanced, thereby reducing the time it takes for the electronic device to respond to shooting; reducing the time the user waits for shooting, and improving the user's shooting experience.
  • the second operation is used to indicate the end of shooting.
  • the second operation may be an operation of popping up a shooting control, as shown in (a) of FIG. 7 .
  • the operation of popping up the shooting control may refer to the operation of the electronic device detecting that the user's finger leaves the shooting control; or the operation of the electronic device detecting that the user's finger releases the shooting control, etc.
  • the second operation may also be an operation of ending shooting through voice instructions; or, an operation of ending shooting through other instructions; the present application does not impose any limitation on this.
  • 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.
  • the image quality of the third thumbnail image is better than that of the second thumbnail image.
  • the image quality may include image detail information, image texture information, image brightness, or an image quality assessment result obtained by any image quality assessment algorithm; the present application does not impose any limitation on this.
  • the first thumbnail image, the second thumbnail image and the third thumbnail image may correspond to the same shooting of the user; for the same shooting, the display of the first thumbnail image, the second thumbnail image and the third thumbnail image are mutually exclusive; for example, if the first thumbnail image is displayed in the display interface in 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 in 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 in 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; the second thumbnail image is displayed at time T2; and the third thumbnail image is displayed at time T3. Image; time T1 is earlier than time T2; time T2 is earlier than time T3.
  • the electronic device includes a storage module, the storage module includes a first storage area, and further includes:
  • the electronic device 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;
  • the second thumbnail image in the first storage area is replaced by the first captured image.
  • the first thumbnail image (e.g., a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image.
  • the second thumbnail image (e.g., a real thumbnail image) stored in the electronic device is directly replaced by the first captured image; and the first thumbnail image, the second thumbnail image and the first thumbnail image are directly replaced in an embodiment of the present application, which can reduce the storage space of the electronic device occupied by the thumbnail images.
  • a 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 popping up a 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 a camera application and generate a second thumbnail image (for example, a real thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image, and the third thumbnail image (for example, a thumbnail image obtained based on the captured image) are displayed in sequence in a display area of a display interface; after the second operation is detected, the first thumbnail image is quickly triggered to be displayed; the thumbnail image can be displayed at the moment the electronic device detects the second operation, thereby improving the shooting response speed; reducing the user's shooting waiting time, and improving the shooting experience.
  • a first operation for example, an operation of clicking a shooting control
  • a second operation for example, an operation of popping up a shooting control
  • the electronic device detects a shooting operation, that is, the electronic device detects a first operation and a second operation; for example, the electronic device detects an operation of clicking a shooting control and an operation of popping up the shooting control.
  • the first thumbnail image is displayed in the thumbnail control 613, i.e. a false thumbnail image is displayed;
  • the second thumbnail image is displayed in the thumbnail control 613, i.e. a real thumbnail image is displayed;
  • the third thumbnail image is displayed in the thumbnail control 613, i.e. a thumbnail image of the captured image is displayed, wherein time T(12) is earlier than time T(13), and time T(13) is earlier than time T(14).
  • the electronic device detects the first operation once and the second operation once, the first thumbnail image, the second thumbnail image, and the third thumbnail image include a first photographed object.
  • it also includes:
  • a first image is generated; and scaling processing is performed on the first image to generate a third thumbnail image.
  • the implementation method 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 repeated here; the implementation method of generating the third thumbnail image can refer to the relevant description of S480 in the subsequent Figure 4, which will not be repeated here.
  • the electronic device when the electronic device detects the operation of popping up a shooting control, it triggers the electronic device to generate a first image, and the first image may refer to a captured image, that is, a real image taken; by scaling the first image, a third thumbnail image, that is, a thumbnail image of the captured image, can be obtained.
  • generating a first image includes:
  • the second image is processed by the first algorithm to obtain an image in the first color space; at least two frames of images in the first color space are fused to obtain a fused image; and the fused image is processed by the second algorithm to generate the first image.
  • time information when the first operation is detected can be obtained; based on the time information, a second image is selected from a zero-second delay queue in the electronic device; the second image is processed by an algorithm in a Raw color space to obtain a processed Raw image; and at least two frames of processed Raw images are fused to obtain a first image.
  • the first image may refer to a true image generated by taking an image once; compared with the second thumbnail image, the first image does not need to be downsampled; in addition, the first image may be an image after fusion processing based on multiple frames of Raw images; therefore, the image quality of the first image is better than the image quality of the second thumbnail image; in addition, the image quality of the third thumbnail image obtained by scaling the first image is better than the image quality of the second thumbnail image.
  • the electronic device includes a storage module, the storage module includes a first storage area, and further includes:
  • the electronic device When the electronic device generates the second thumbnail image but does not generate the first image, the first thumbnail image in the first storage area is replaced by the second thumbnail image;
  • the second thumbnail image in the first storage area is replaced by the first image.
  • a cache module may be included in the album application of the electronic device; at time T(12), the first storage location in the cache module is used to store a first thumbnail image (e.g., a false thumbnail image 1); as shown in (d) of FIG.
  • a first thumbnail image e.g., a false thumbnail image 1
  • the first storage area in the cache module is used to store a second thumbnail image (e.g., a real thumbnail image 11); for example, at time T(13), the false thumbnail image may be replaced by the real thumbnail image, the false thumbnail image may be deleted and the real thumbnail image may be stored in the same storage area; at time T(14), the first storage area in the cache module is used to store a first image (e.g., a captured image); for example, at a third time, the real thumbnail image may be replaced by the captured image, the real thumbnail image may be deleted and the captured image may be stored in the same storage space.
  • a second thumbnail image e.g., a real thumbnail image 11
  • the false thumbnail image may be replaced by the real thumbnail image
  • the false thumbnail image may be deleted and the real thumbnail image may be stored in the same storage area
  • the first storage area in the cache module is used to store a first image (e.g., a captured image)
  • the real thumbnail image may be replaced by the captured image
  • the real thumbnail image may be deleted and
  • the above-mentioned false thumbnail images, real thumbnail images and captured images correspond to the same shooting of the user; in other words, the above-mentioned false thumbnail images, real thumbnail images and captured images correspond to the same time of the user clicking the shooting control and popping up the shooting control; in addition, for the same shooting, displaying false thumbnail images, displaying real thumbnails and displaying thumbnail images of captured images are mutually exclusive; for example, if a 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.
  • the first thumbnail image e.g., a false thumbnail image
  • the second thumbnail image e.g., a real thumbnail image
  • directly performing replacement processing in an embodiment of the present application can reduce the storage space of the electronic device occupied by the thumbnail images.
  • the electronic device For the electronic device detecting at least two shooting operations, that is, the electronic device detects 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 popping up the shooting control for the first time; before generating the captured image of the first shot, the electronic device detects the operation of clicking the shooting control for the second time and the operation of popping up the shooting control for the second time.
  • the electronic device detects a first operation and a second operation once, which means that the electronic device detects a shooting operation; if the number of shooting operations detected by the electronic device is greater than once, the first thumbnail image and the second thumbnail image include the first shooting object, the third thumbnail image includes the second shooting object, and the first shooting object is different from the second shooting object.
  • the first subject included in the first thumbnail image and the second thumbnail image is the subject 811 shown in (c) of FIG. 10 ; the second subject included in the third thumbnail image is the subject 815 shown in (a) of FIG. 11 .
  • the electronic device includes a storage module, the storage module includes a first storage area and a second storage area, and further includes:
  • the electronic device 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;
  • the third thumbnail image is stored in the second storage area.
  • 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 (e.g., false thumbnail image 1); as shown in (d) of FIG. 11 , at time T(23), the electronic device generates a second thumbnail image, and the first storage area in the cache module is used to store the second thumbnail image (e.g., real thumbnail image 11); for example, at time T(23), the false thumbnail image can be replaced by the real thumbnail image, the false thumbnail image can be deleted and the real thumbnail image can be stored in the same storage area; as shown in (d) of FIG.
  • a third thumbnail image is generated, that is, a false thumbnail image taken for the second time is generated; the second storage area in the cache module is used to store the third image (e.g., false thumbnail image 2 taken for the second time).
  • it also includes:
  • a third image of the first photographed object is generated; the second thumbnail image in the first storage area is replaced by the third image, and the image quality of the third image is better than that of the second thumbnail image.
  • the third image may refer to a photographic image taken for the first time; as shown in (b) in FIG. 13 , after the electronic device generates a photographic image taken for the first time, the second thumbnail image (for example, the real thumbnail image 11) stored in the cache module may be replaced by the photographic image.
  • the second thumbnail image for example, the real thumbnail image 11
  • the method further includes:
  • a fourth thumbnail image is displayed in the display area, the fourth thumbnail image is a thumbnail image of the second photographed object, and the image quality of the fourth thumbnail image is better than that of the third thumbnail image.
  • the fourth thumbnail image may refer to a real thumbnail image photographed for the second time
  • the real thumbnail image photographed for the second time may be a thumbnail image as shown in the control 813 in (c) of FIG. 13 .
  • it also includes:
  • the third thumbnail image in the second storage area is replaced by the fourth thumbnail image.
  • the electronic device after the electronic device generates a fourth thumbnail image (e.g., the real thumbnail image 22) taken for the second time, the third thumbnail image (e.g., the false thumbnail image 2) in the cache module can be replaced by the real thumbnail image 22.
  • a fourth thumbnail image e.g., the real thumbnail image 22
  • the third thumbnail image e.g., the false thumbnail image 2 in the cache module
  • it also includes:
  • a second preview image of the second photographed object is obtained, and the second preview image is stored in a camera application of the electronic device; and the second preview image is scaled to generate a third thumbnail image.
  • the process of generating a false thumbnail image of the second shot can be triggered; thereby, when the electronic device detects the shooting control popping up for the second time, a false thumbnail image can be quickly displayed in the display interface to respond to the user's shooting operation; thereby reducing the time the user waits to shoot and improving the user's shooting experience.
  • 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 popping up a shooting control); when the electronic device detects the first operation, the electronic device is triggered to generate a first thumbnail image (for example, a false thumbnail image) and a second thumbnail image (for example, a real thumbnail image); when the electronic device detects the second operation, the first thumbnail image, the second thumbnail image and the third thumbnail image (for example, thumbnail images obtained based on the shot image) are sequentially displayed in the display area of the display interface; after the second operation is detected, the first thumbnail image is quickly triggered to be displayed; the thumbnail image can be displayed at the moment the electronic device detects the second operation, thereby improving the shooting response speed; reducing the user's shooting waiting time and improving the shooting experience.
  • a first operation for example, an operation of clicking a shooting control
  • a second operation for example, an operation of popping up a shooting control
  • the electronic device when the electronic device detects a shooting operation (for example, the operation of clicking a shooting control and the operation of popping up the shooting control), the electronic device generates a false thumbnail image, a real thumbnail image and a shot image in sequence; and displays the false thumbnail image, the real thumbnail image and a thumbnail image of the shot image in sequence in the thumbnail display control in the shooting interface.
  • a shooting operation for example, the operation of clicking a shooting control and the operation of popping up the shooting control
  • Fig. 4 is a schematic flow chart of another method for displaying thumbnail images provided by an embodiment of the present application.
  • the method 400 may be executed by the electronic device shown in Fig. 1; the method includes S410 to S480, and S410 to S480 are described in detail below.
  • S410 to S480 are described by taking the electronic device detecting a user's shooting process as an example; that is, when the electronic device detects a user clicking and popping up operation of the shooting control, the processing flow of displaying thumbnail images.
  • a user can instruct an electronic device to run a camera application by clicking on the icon of the "Camera" application.
  • the electronic device when the electronic device is in a lock screen state, the user can instruct the electronic device to run a camera application by sliding to the right on the display screen of the electronic device.
  • the electronic device is in a lock screen state, and the lock screen interface includes an icon of a camera application, and the user instructs the electronic device to run the camera application by clicking on the icon of the camera application.
  • the application has the permission to call the camera application; the user can instruct the electronic device to run the camera application by clicking on the corresponding control.
  • the electronic device when the electronic device is running an instant messaging application, the user can instruct the electronic device to turn on the camera application by selecting the control of the camera function.
  • S420 is illustrated by the operation of clicking a shooting control; S420 may also be an operation of detecting an instruction to start shooting; for example, instructing the electronic device to start shooting through voice or other instruction information.
  • the shooting operation may include: an operation of indicating the start of shooting and an operation of ending shooting; for example, the shooting operation may include: an operation of clicking a shooting control and an operation of popping up a shooting control.
  • the operation of popping up the shooting control may refer to the operation of the electronic device detecting that the user's finger leaves the shooting control; or the operation of the electronic device detecting that the user's finger releases the shooting control, etc.
  • the first process 430 and the second process 440 can be triggered simultaneously; the first process 430 is a process for the electronic device to generate a false thumbnail image; the second process 440 is a 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 thumbnail images.
  • the first process and the second process may be triggered simultaneously; that is, the process of triggering the generation of a quick thumbnail image and the process of triggering the generation of a real thumbnail image.
  • the first process 430 includes S431 and S432; S431 and S432 are described in detail below.
  • the preview image is an image acquired from a storage module of the electronic device.
  • the preview image may be an image stored in a pre-storage module in the camera application, as shown in FIG5 .
  • the preview image may be in JPEG format, JPG format or other formats.
  • S432 Process the preview image to generate a false thumbnail image.
  • the preview image may be a frame of processed image in JPEG format; the image in JPEG format may be scaled to obtain a false thumbnail image.
  • the false thumbnail image is an image obtained by directly scaling the preview image; therefore, the process of generating the false thumbnail image takes a shorter time, and the false thumbnail image can be generated quickly in a shorter time.
  • the second process 440 includes S441 and S442; S441 and S442 are described in detail below.
  • an image frame may be selected in the ZSL queue according to time information, wherein the time information may be acquired when an operation of clicking a capture control is detected in S420; for example, a timestamp may be acquired when a click-to-capture operation is detected.
  • the time information obtained is time marker 1;
  • the ZSL queue includes: time marker 1-image frame 1, time marker 2-image frame 2, time marker 3-image frame 3; based on time marker 1, the electronic device can select image frame 1 in the ZSL queue.
  • the image frames stored in the ZSL queue may be Raw images; wherein the Raw images refer to original image data collected by the image sensor.
  • S442 Process the selected image frame to generate a real thumbnail image.
  • the selected Raw image can be processed and converted 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 (for example, JPEG format (JPG format), GIF format, DNG format or RAW format, etc.) for storage.
  • JPEG format JPG format
  • GIF format GIF format
  • DNG format DNG format
  • RAW format RAW format
  • the real thumbnail image is a thumbnail image obtained after image processing based on the Raw image
  • the false thumbnail image is a thumbnail image obtained by directly scaling the preview image stored in the electronic device; therefore, the timeliness of generating the false thumbnail image is higher than that of generating the real thumbnail image.
  • the electronic device may first generate a quick thumbnail image and then generate a real thumbnail image.
  • the real thumbnail image is a thumbnail image obtained after image processing based on the Raw image
  • the false thumbnail image is a thumbnail image obtained by directly scaling the preview image
  • the preview image usually has a lower resolution than the Raw image captured by the image sensor, the image quality of the real thumbnail image is better than that of the false thumbnail image.
  • S442 includes but is not limited to the following steps:
  • black level correction is used to correct the black level.
  • Black level refers to the video signal level without a line of light output on a calibrated display device.
  • the reason for black level correction is: on the one hand, due to the dark current of the image sensor, there is a problem of voltage output of the pixel even in the absence of light; on the other hand, due to the insufficient accuracy of the image sensor when performing analog-to-digital conversion.
  • Lens Shading Correction is used to eliminate the problem of inconsistent color and brightness around the image and the center of the image caused by the lens optical system.
  • the operation of popping up the shooting control may include the operation of the electronic device detecting that the user's finger leaves the shooting control; or the operation of the electronic device detecting that the user's finger releases the shooting control, etc.
  • the above S450 may also refer to detecting an operation indicating the end of shooting; for example, detecting a voice instruction or other operation indicating the end of shooting.
  • the electronic device when it detects the operation of popping up a shooting control, it can trigger the execution of the third process 470 and the display of a false thumbnail image; wherein the third process 470 is a process for generating a captured image; optionally, the process for generating a captured image can be any existing algorithm for generating a captured image.
  • the electronic device when it detects the operation of popping up the shooting control, it can trigger the simultaneous execution of the third process 470 and the display of the false thumbnail image.
  • FIG. 6 Exemplarily, a schematic diagram of an interface for displaying a false thumbnail image at the first moment is shown in (a) of the subsequent FIG. 6 .
  • the false thumbnail image may be stored in the electronic device.
  • an instruction can be sent; the false thumbnail image is stored in the gallery, and the false thumbnail image is displayed in the electronic device.
  • the electronic device can quickly display a false thumbnail image in the shooting interface; when the user is shooting, he usually looks at the thumbnail image displayed in the shooting interface.
  • the operation is to complete 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 when the user pops up the shooting control; in other words, the electronic device can respond to the user's shooting operation in a short time, so that the user perceives that the shooting is completed, thereby improving the user's shooting experience.
  • the real thumbnail image may not have been generated yet; in this case, the false thumbnail image can be displayed in the shooting interface first; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image and the real thumbnail image can be displayed in the shooting interface.
  • the second moment is after the first moment.
  • FIG. 7 Exemplarily, a schematic diagram of an interface for displaying a real thumbnail image at the second moment is shown in (a) of the subsequent FIG. 7 .
  • the real thumbnail image may be stored in the electronic device while the real thumbnail image is displayed.
  • a cache module may be included in the album application of the electronic device; at a first moment, the first storage space in the cache module is used to store false thumbnail images; at a second moment, the first storage space in the cache module is used to store real thumbnail images; for example, at the second moment, the false thumbnail images can be replaced by real thumbnail images, the false thumbnail images can be deleted and the real thumbnail images can be stored in the same storage space.
  • the direct replacement process in the embodiment of the present application can reduce the storage space of the electronic device occupied by the thumbnail image.
  • the third process 470 includes S471 and S472; S471 and S472 are described in detail below.
  • an image frame may be selected from the ZSL queue according to time information of detecting an operation of clicking the shooting control.
  • the electronic device can select an image frame in the ZSL queue based on the time information of detecting the operation of clicking the shooting control.
  • the time information obtained is time marker 1;
  • the ZSL queue includes: time marker 1-image frame 1, time marker 2-image frame 2, time marker 3-image frame 3; based on time marker 1, the electronic device can select image frame 1 in the ZSL queue.
  • the image frames stored in the ZSL queue may be Raw images; wherein the Raw images refer to original image data collected by the image sensor.
  • the image frame used to generate the captured image may be directly acquired from the second process 440 .
  • S472 Generate a captured image based on the selected image frame.
  • the selected Raw image can be processed and converted 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 (for example, JPEG format, JPG format, GIF format, etc.) for storage.
  • a YUV image can be converted into an RGB image for display; in addition, the YUV image can be converted into other formats (for example, JPEG format, JPG format, GIF format, etc.) for storage.
  • the selected Raw image can be processed and converted 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 (for example, JPEG format, JPG format, GIF format, etc.) for storage.
  • a YUV image can be converted into an RGB image for display; in addition, the YUV image can be converted into other formats (for example, JPEG format, JPG format, GIF format, etc.) for storage.
  • S472 includes but is not limited to the following steps:
  • a fusion process is performed on a long-exposure Raw image, a short-exposure Raw image, and a normal-exposure Raw image to obtain a fused Raw image.
  • the fused Raw image is converted to the YUV color space to obtain a YUV image; that is, the captured image is obtained;
  • the YUV image may be scaled to obtain a small-sized YUV image; the small-sized YUV image may be converted into a small-sized RGB image; and the small-sized RGB image may be displayed.
  • the third moment is after the second moment.
  • FIG. 8 Exemplarily, a schematic diagram of an interface for displaying thumbnail images of captured images at the third moment is shown in (a) of the subsequent FIG. 8 .
  • the thumbnail image of the captured image may refer to a thumbnail image obtained by scaling the captured image after the captured image is generated.
  • the image size of the false thumbnail image is a first size
  • the image size of the real thumbnail image is a second size
  • the image size of the captured image is a third size
  • the first size is the same as the second size
  • the third size is larger than the first size, or the third size is larger than the second size.
  • the captured image may refer to a true image generated by capturing an image once; compared with a real thumbnail image, the captured image does not need to be downsampled; in addition, the captured image may be an image based on the fusion processing of multiple frames of Raw images; therefore, the image quality of the captured image is better than the image quality of the real thumbnail 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 image 111 shown in (b) in Figure 8.
  • the false thumbnail is shown as 1 in FIG. 4 ; the real thumbnail is shown as 11 in FIG. 4 ; and the photographed image is shown as 111 in FIG. 4 .
  • the captured image is stored in an album application of the electronic device; when the captured image is stored, the real thumbnail image can be directly replaced by the captured image.
  • a cache module may be included in an album application of an electronic device; at a first moment, a first storage space in the cache module is used to store false thumbnail images; at a second moment, the first storage space in the cache module is used to store real thumbnail images; for example, at the second moment, the false thumbnail images can be replaced by real thumbnail images, the false thumbnail images can be deleted and the real thumbnail images can be stored in the same storage space; at a third moment, the first storage space in the cache module is used to store captured images; for example, at the third moment, the real thumbnail images can be replaced by captured images, the real thumbnail images can be deleted and the captured images can be stored in the same storage space.
  • the above-mentioned false thumbnail image, the real thumbnail image and the photographed image correspond to the same photographing of the user;
  • the above-mentioned false thumbnail images, real thumbnail images and captured images correspond to the same click of the user on the shooting control and the pop-up shooting control;
  • displaying false thumbnail images, displaying real thumbnails and displaying thumbnail images of captured images are mutually exclusive; for example, if a 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.
  • 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 a thumbnail image of the shot image.
  • 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, direct replacement processing is performed in an embodiment of the present application, which can reduce the storage space of the electronic device occupied by the thumbnail image.
  • the electronic device by dividing the shooting operation into an operation of clicking a shooting control and an operation of popping up 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 selecting the original image data for image processing; when the electronic device detects the operation of the user popping up the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed at the moment the electronic device detects the operation of popping up the shooting control, thereby improving the speed of the shooting response; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • FIG5 is a software architecture diagram provided in an embodiment of the present application.
  • the software architecture provided in the embodiment of the present application may include an application layer, an application framework layer, a hardware abstraction layer and a hardware layer.
  • the application layer may include a series of application packages.
  • the application package may include a camera application and a photo album application.
  • the camera application may include a preview storage module; the preview storage module is used to store preview images.
  • the application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a click shooting control detection mode, a false thumbnail image generation module, a pop-up shooting control detection module, and a thumbnail image display module.
  • a click shooting control detection mode may include a click shooting control detection mode, a false 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 repeated here.
  • the hardware abstraction layer may provide an interface between other modules and the hardware layer.
  • 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.
  • a real thumbnail image generation module 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 subsequent embodiments. I won’t go into details about this.
  • the hardware layer may include a series of hardware modules. As shown in FIG5 , the hardware layer may include a camera module.
  • the camera application sends an instruction for capturing an image to the camera module.
  • the camera application may send an instruction to capture an image to the camera module.
  • the camera module sends the image frame to the preview storage module.
  • the image frames sent by the camera module to the preview storage module are used to generate a preview image.
  • the camera module sends the image frame to the ZSL queue storage module.
  • the image frames sent by the camera module to the preview storage module are used to generate captured images.
  • S513 and S512 may be performed simultaneously.
  • steps S513 and S514 are triggered.
  • S514 A shooting control in the machine application is clicked, triggering a photo event; the click shooting module detects the operation of the shooting control being clicked.
  • step S420 for the description of the block detecting the operation of clicking the shooting control, reference may be made to the related description in the aforementioned step S420, which will not be repeated here.
  • the click-to-shoot detection module sends information to the false thumbnail image generation module, where the information may include time information when the click of the shooting control is detected.
  • the false thumbnail image generating module is used to obtain a preview image from the preview storage module according to the time information; and perform scaling processing on the preview image to generate a false thumbnail image.
  • the implementation method of generating the false thumbnail image may refer to the related description of the first process 430 shown in FIG. 4 , which will not be described in detail here.
  • the click-to-shoot detection module sends information to the image frame selection module.
  • the information may include time information when the click of the shooting control is detected.
  • the image frame selection module is used to obtain the original image data from the ZSL queue storage module according to the time information.
  • 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.
  • the implementation method of generating the real thumbnail image may refer to the relevant description of the second process 440 shown in FIG. 4 , which will not be repeated here.
  • a pop-up shooting control detection module is used to detect an operation of popping up a shooting control in a camera application.
  • step S521 and step S525 may be triggered.
  • a pop-up shooting control is detected and an instruction is sent to a thumbnail image display module, where the instruction is used to instruct the thumbnail image display module to display a thumbnail image.
  • the thumbnail image display module obtains the false thumbnail image in the false thumbnail image generation module.
  • S523 The camera application obtains the false thumbnail image sent by the thumbnail image display module and displays the false thumbnail image. picture.
  • the photo album application obtains the false thumbnail image sent by the thumbnail image display module, and displays and stores the false thumbnail image.
  • the pop-up shooting control detection control is used to send an instruction to the shooting image generation module, where the instruction is used to instruct the shooting image generation module to acquire an image frame to generate a shooting image.
  • 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 captured images.
  • the implementation method of generating the captured image may refer to the relevant description of the third process 470 shown in FIG. 4 , which will not be repeated here.
  • 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.
  • the camera application obtains the real thumbnail image sent by the thumbnail image display module, and displays the real thumbnail image.
  • the photo 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.
  • the captured image generation module is used to send the captured image to the thumbnail image display module after generating the captured image.
  • 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.
  • the photo 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.
  • the electronic device by dividing the shooting operation into an operation of clicking a shooting control and an operation of popping up the shooting control, when the electronic device detects the operation of clicking the shooting control, it triggers the electronic device 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 selecting the original image data for image processing; when the electronic device detects the operation of the user popping up the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed at the moment the electronic device detects the operation of popping up the shooting control, thereby improving the speed of the shooting response; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • the electronic device detects that a camera application is running, as shown in (a) of FIG6 , which is a preview interface 610 of the camera application; the preview interface 610 includes a first photographed object 611, a photographing control 612, and a thumbnail display control 613; wherein the thumbnail image displayed in the thumbnail display control 613 is a thumbnail image of the last photographed image; (b) of FIG6 is a schematic diagram of an album application, wherein the album display interface 620 includes a first photographed image 621 and a second photographed image 622; secondly, the album application includes a cache module 630, and the cache module 630 includes the first photographed image 621 and the second photographed image 622.
  • thumbnail control in the preview interface 610 The thumbnail image displayed in the thumbnail control 612 is the thumbnail image corresponding to the first captured image 621; if the electronic device detects the operation of clicking the thumbnail control 612, it can index to the first captured image 621 in the album application and display the first captured image 621.
  • 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.
  • the electronic device detects the operation of clicking the shooting control 612, as shown in (c) of FIG. 6 ; at this time, the thumbnail image displayed in the thumbnail display control 613 is the thumbnail image of the last completed shooting image (for example, the thumbnail image of the first shot image 621); when the electronic device detects the operation of the user clicking the shooting control 612, the display interface of the album application is as shown in (d) of FIG.
  • the electronic device detects the operation of popping up the 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 the second shooting object 615, and the thumbnail image displayed in the thumbnail display control 613 is the false thumbnail image of the first shooting object 611, as shown in (a) of FIG.
  • the display interface 620 of the album application includes a false thumbnail image 1 of the first photographed object, a first photographed image 621 and a second photographed image 622; the cache module 630 includes a false thumbnail image of the first photographed object, the first photographed image and the second photographed image; at time T(13), after the electronic device generates a real thumbnail image, a display interface 616 is displayed, and the display interface 616 includes the second photographed object 615, a thumbnail display control 612 and a shooting control 612, and the thumbnail display control 613 displays the real thumbnail image of the first photographed object, as shown in (c) of Figure 7; at this time, the camera application displays a display interface 624 including the real thumbnail image 11 of the first photographed object, the first photographed image 621 and the second photographed image 622; the cache module 630 stores the real thumbnail image of the first photographed object, the first photographed image 621 and the second photographed image 622.
  • the real thumbnail image of the first subject is generated in the electronic device, the real thumbnail image is displayed in the display interface, and the false thumbnail image of the first subject is replaced by the real thumbnail image of the first subject in the album application.
  • the implementation method of generating a false thumbnail image of the first photographed object may refer to the first process 430 shown in FIG. 4 , which will not be described in detail here.
  • the implementation method of generating a real thumbnail image of the first photographed object can refer to the second process 440 shown in FIG. 4 , which will not be described in detail here.
  • a display interface 617 is displayed, wherein the display interface 617 includes a second photographed object 615, a thumbnail display control 613, and a photographing control 612; a thumbnail image of the photographed image of the first photographed object is displayed in the thumbnail display control 613, as shown in (a) in FIG8 ; at this time, the camera application displays a display interface 625, wherein the display interface 625 includes a photographed image 111 of the first photographed object, a first photographed image 621, and a second photographed image 622; and the cache module 630 stores the photographed image of the first photographed object, the first photographed image, and the second photographed image.
  • thumbnail image of the captured image is displayed in the display interface, and the real thumbnail image of the first subject is replaced by the captured image of the first subject in the album application.
  • the implementation method of generating the captured image of the first captured object may refer to the third process 470 shown in FIG. 4 , which will not be described in detail here.
  • the shooting operation is divided into the operation of clicking the shooting control and the operation of popping up the shooting control.
  • 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.
  • a thumbnail image wherein, a false thumbnail image refers to a thumbnail image obtained by scaling the preview image; a real thumbnail image refers to a thumbnail image generated after selecting the original image data for image processing; when the electronic device detects that the user pops up 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 that the shooting control is popped up, thereby improving the shooting response speed; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • the electronic device detects two shooting operations; for example, the electronic device detects in sequence: a first click on the shooting control, a first pop-up of the shooting control, a second click on the shooting control, and a second pop-up of the shooting control.
  • the electronic device when the electronic device generates the false thumbnail image of the second shot, the electronic device has generated the false thumbnail image of the first shot and the real thumbnail image of the first shot, but has not generated the photographed image of the first shot.
  • the order in which the electronic device generates images is: a false thumbnail image 1 taken for the first time, a real thumbnail image 11 taken for the first time, a false thumbnail image 2 taken for the second time, an image 111 taken for the first time, a real thumbnail image 22 taken for the second time, and an image 222 taken for the second time.
  • FIG. 9 is a software architecture diagram provided in an embodiment of the present application.
  • the software architecture provided in the embodiment of the present application may include an application layer, an application framework layer, a hardware abstraction layer and a hardware layer.
  • the application layer may include a series of application packages.
  • the application package may include a camera application and a photo album application.
  • the camera application may include a preview storage module; the preview storage module is used to store preview images.
  • the application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a click shooting control detection mode, a false thumbnail image generation module, a pop-up shooting control detection module, and a thumbnail image display module.
  • a click shooting control detection mode may include a click shooting control detection mode, a false 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 the subsequent embodiments, and will not be repeated here.
  • the hardware abstraction layer may provide an interface between other modules and the hardware layer.
  • 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.
  • a real thumbnail image generation module 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 repeated here.
  • the hardware layer may include a series of hardware modules. As shown in FIG9 , the hardware layer may include a camera module.
  • the camera application sends an instruction to capture an image to the camera module.
  • the camera application may send a captured image to the camera module. instruction.
  • the camera module sends the image frame to the preview storage module.
  • the image frames sent by the camera module to the preview storage module are used to generate a preview image.
  • the camera module sends the image frame to the ZSL queue storage module.
  • the image frames sent by the camera module to the preview storage module are used to generate captured images.
  • S713 and S712 may be executed simultaneously.
  • S714 The shooting control in the machine application is clicked, triggering a photo event; the click shooting module detects the operation of clicking the shooting control; for example, the operation of clicking the shooting control for the first time is detected.
  • step S420 for the description of detecting the operation of clicking the shooting control, please refer to the description in the aforementioned step S420, which will not be repeated here.
  • the click-to-shoot detection module sends first information to the false thumbnail image generation module.
  • the first information may include time information 1 when the first click on the shooting control is detected.
  • the false thumbnail image generation module is used to obtain the preview image 1 from the preview storage module according to the time information 1 ; and perform scaling processing on the preview image 1 to generate a false thumbnail image 1 .
  • the false thumbnail image generation module is used to obtain a preview image 1 from the preview storage module according to the time information 1 when the shooting control is first detected to be clicked; and to perform scaling processing on the preview image 1 to generate a false thumbnail image 1.
  • the implementation method of generating the false thumbnail image 1 can refer to the relevant description of the first process 430 in FIG. 4 , which will not be described in detail here.
  • the click-to-shoot detection module sends second information to the image frame selection module.
  • the second information may include time information 1 when the first click on the shooting control is detected.
  • 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.
  • 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 a real thumbnail image 11.
  • a pop-up shooting control detection module is used to detect an operation of popping up a shooting control in a camera application.
  • the pop-up shooting control detection module detects the first pop-up shooting control operation.
  • the pop-up shooting control detection module and the click shooting control detection module may be the same module; the present application does not impose any limitation on this.
  • the pop-up shooting control detection module when it detects the first pop-up shooting control operation, it can trigger the process of displaying a false thumbnail image 1 (for example, S721 to S724) and generating a first shot image (for example, S725 and S726).
  • a false thumbnail image 1 for example, S721 to S724
  • a first shot image for example, S725 and S726
  • the process of displaying a false thumbnail image and generating a captured image of the first capture may be triggered simultaneously.
  • Pop-up shooting control detection sends a first instruction to the thumbnail image display module, where the first instruction is used to instruct the thumbnail image display module to display a thumbnail image.
  • the thumbnail image display module obtains the false thumbnail image 1 in the false thumbnail image generation module.
  • the camera application obtains the false thumbnail image 1 sent by the thumbnail image display module, and displays the false thumbnail image 1 .
  • the album application obtains the false thumbnail image 1 sent by the thumbnail image display module, and displays and stores the false thumbnail image 1 .
  • the pop-up shooting control detection control is used to send a second instruction to the shot image generation module, where the second instruction is used to instruct the shot image generation module to acquire an image frame to generate a shot image 111 .
  • 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.
  • the implementation method of generating the captured image 111 can refer to the relevant description of the third process 470 in FIG. 4 , which will not be repeated here.
  • the real thumbnail image generating module is used to generate the real thumbnail image 11 , and after generating the real thumbnail image 11 , send the real thumbnail image 11 to the thumbnail image display module.
  • the implementation method of generating the real thumbnail image 11 can refer to the relevant description of the second process 440 in FIG. 4 , which will not be described in detail here.
  • the camera application obtains the real thumbnail image 11 sent by the thumbnail image display module, and displays the real thumbnail image 11 .
  • 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 false thumbnail image 1 with the real thumbnail image 11 .
  • the click shooting module detects an operation of clicking on the shooting control; for example, detecting an operation of clicking on the shooting control for the second time.
  • the false thumbnail image generation module is used to obtain time information 2 of the second click on the capture control from the click capture detection module.
  • the false thumbnail image generation module is used to obtain the preview image 2 from the preview storage module according to the time information 2 of the second detection of clicking the shooting control; and perform scaling processing on the preview image 2 to generate a false thumbnail image 2.
  • the false thumbnail image generation module is used to obtain a preview image 2 from the preview storage module according to the time information 2 of the second detection of clicking the shooting control; and to perform scaling processing on the preview image 2 to generate a false thumbnail image 2.
  • the implementation method of generating the false thumbnail image 2 can refer to the relevant description of the first process 430 in FIG. 4 , which will not be described in detail here.
  • the false thumbnail image generating module is used to send the false thumbnail image 2 to the thumbnail image display module after generating the false thumbnail image 2.
  • the implementation method of generating the false thumbnail image 2 can refer to the relevant description of the first process 430 in FIG. 4 , which will not be described in detail here.
  • the pop-up shooting control detection module is used to detect the operation of popping up the shooting control in the camera application.
  • the pop-up shooting control module detects the second pop-up shooting control operation.
  • the pop-up shooting control detection module when the pop-up shooting control detection module detects the second pop-up shooting control operation, it can trigger the process of displaying the false thumbnail image 2 and generating the second shooting image.
  • the pop-up shooting control detection module is used to send a third instruction to the thumbnail image display module, where the third instruction is used to instruct the thumbnail image display module to display thumbnail image 2 .
  • the camera application is used to receive the false thumbnail image 2 sent by the thumbnail image display module, and display the false thumbnail image 2 .
  • the album application is used to receive the false thumbnail image 2 sent by the thumbnail image display module, display and store Fake thumbnail image 2.
  • the captured image generation module is used to send the captured image 111 to the thumbnail image display module after generating the captured image 111 captured for the first time.
  • the camera application since the time information 2 of the second click on the shooting control is later than the time information 1 of the first click on the shooting control, the camera application usually displays the thumbnail image closest to the current moment based on the time information; therefore, after displaying the false thumbnail image 2 of the second shot in the camera application, the electronic device will no longer display the thumbnail image of the first shot image 111.
  • the camera application is used to receive 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.
  • the image frame selection module is used to obtain the time information 2 of the second click of the shooting control from the click shooting module.
  • 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.
  • 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 .
  • the pop-up shooting control detection module is used to detect the operation of popping up the shooting control in the camera application.
  • the pop-up shooting control detection module is used to detect the operation of popping up the shooting control in the camera application for the second time.
  • the pop-up shooting control detection control is used to send a fourth instruction to the shooting image generation module, where the fourth instruction is used to instruct the shooting image generation module to obtain an image frame to generate a second shooting image 222.
  • 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 222.
  • the implementation method of generating the captured image 222 can refer to the relevant description of the third process 470 in FIG. 4 , which will not be repeated here.
  • the captured image generation module is used to generate a real thumbnail image 22 captured for the second time, and after generating the real thumbnail image 22, send the real thumbnail image 22 to the thumbnail image display module.
  • the implementation method of generating the real thumbnail image 22 can refer to the relevant description of the second process 440 in FIG. 4 , which will not be described in detail here.
  • the camera application obtains the real thumbnail image 22 sent by the thumbnail image display module, and displays the real thumbnail image 22 .
  • 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 replace the stored false thumbnail image 2 with the real thumbnail image 22 .
  • 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.
  • the camera application is used to receive the captured image 222 sent by the thumbnail image display module, and display a thumbnail image of the captured image 222 .
  • the photo album application is used to receive the captured image 222 sent by the thumbnail image display module, display the captured image 222 , and replace the stored real thumbnail image 22 with the captured image 222 .
  • the click-to-shoot control detection module and the pop-up-to-shoot control detection module shown in FIG9 may be the same module; or they may be different modules, and this application does not impose any limitation on this.
  • the electronic device by dividing the shooting operation into an operation of clicking a shooting control and an operation of popping up the shooting control, when the electronic device detects the operation of clicking the shooting control, it triggers the electronic device 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 selecting the original image data for image processing; when the electronic device detects the operation of the user popping up the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed at the moment the electronic device detects the operation of popping up the shooting control, thereby improving the speed of the shooting response; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • the electronic device detects that a camera application is running, as shown in (a) of FIG10 , which is a preview interface 810 of the camera application; the preview interface 810 includes a first photographed object 811, a photographing control 812, and a thumbnail display control 813; wherein the thumbnail image displayed in the thumbnail display control 813 is a thumbnail image of the last photographed image; (b) of FIG10 shows a display interface 820 of an album application, and the display interface 820 includes a first photographed image 821; secondly, the album application includes a cache module 830, and the cache module 830 includes the first photographed image 821.
  • 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 the operation of clicking the thumbnail control 812, it can index to the first captured image 821 in the album application and display the first captured image 821.
  • 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.
  • the electronic device detects an operation of clicking on the shooting control 812; for example, the first operation of clicking on the shooting control 812 is detected, as shown in (c) in FIG. 10; at this time, the thumbnail image displayed in the thumbnail display control 813 is a thumbnail image of the last completed image shooting (for example, a thumbnail image of the first shot image 821); when the electronic device detects an operation of the user clicking on the shooting control 812, the display interface of the photo album application is shown in (d) in FIG.
  • the electronic device detects an operation of popping up the shooting control 812 and displays a display interface 814; for example, the first operation of popping up the shooting control 812 is detected and the display interface 814 is displayed; wherein the display interface 814 includes a second shooting object 815 and a thumbnail display control 813, and the thumbnail image displayed in the thumbnail display control 813 is a false thumbnail of the first shooting object 811 11(a); at this time, as shown in (b) of FIG11, the display interface 823 of the album application includes a false thumbnail image 1 of the first photographed object and the first photographed image 821; the cache module 830 includes the false thumbnail image of the first photographed object and the first photographed image; at time T(23), after the electronic device generates a real thumbnail image of the first photographed object, the display interface 816 is displayed; the display interface 816 includes the second photographed object 815, the thumbnail display control 813 and the shooting control 812, and the thumbnail display control 8613 displays the real thumbnail image of the first photographed object, as shown in (c)
  • the real thumbnail image of the first subject is generated in the electronic device, the real thumbnail image of the first subject is displayed in the display interface, and the false thumbnail image 1 of the first subject is replaced by the real thumbnail image 11 of the first subject in the album application.
  • the implementation method of generating a false thumbnail image of the first photographed object may refer to the first process 430 shown in FIG. 4 , which will not be described in detail here.
  • the implementation method of generating a real thumbnail image of the first photographed object can refer to the second process 440 shown in FIG. 4 , which will not be described in detail here.
  • the electronic device detects an operation of clicking the shooting control 812 and displays a display interface 816; for example, an operation of clicking the shooting control 812 for the second time is detected, as shown in (a) in FIG. 12 ; the display interface 816 includes a second shooting object 815 and a thumbnail display control 813, and the thumbnail display control 813 displays a real thumbnail image of the first shooting object 811; at this time, as shown in (b) in FIG. 12 , the display interface 824 of the album application includes a real thumbnail image 11 of the first shooting object and a first shooting image 821; the cache module 830 includes a real thumbnail image of the first shooting object and the first shooting image.
  • the electronic device detects the operation of popping up the shooting control 812 and displays the display interface 817; for example, the operation of popping up the shooting control 812 for the second time is detected and the display interface 817 is displayed; wherein the display interface 817 includes a third shooting object and a thumbnail display control 813, and the thumbnail image displayed in the thumbnail display control 813 is a false thumbnail image of the second shooting object 815, as shown in (c) in FIG. 12; at this time, as shown in (d) in FIG.
  • the display interface 825 of the book application includes a false thumbnail image 2 of the second shooting object, a real thumbnail image 11 of the first shooting object and the first shooting image 821;
  • the cache module 830 includes a false thumbnail image of the second shooting object, a real thumbnail image of the first shooting object and the first shooting image.
  • the electronic device has not yet generated the first captured image of the subject, and has detected the second capturing operation.
  • a display interface 817 including a third subject, a shooting control 812 and a thumbnail display control 813 is displayed; the display interface 817 includes At this time, as shown in (b) in FIG. 13 , the display interface 826 of the album application includes a false thumbnail image 2 of the second subject, a captured image 111 of the first subject and the first captured image 821; the cache module 830 includes a false thumbnail image of the second subject, a real image of the first subject and the first captured image.
  • the real thumbnail image of the first subject is replaced by the captured image of the first subject in the album application.
  • the implementation method of generating the captured image of the first captured object may refer to the third process 470 shown in FIG. 4 , which will not be described in detail here.
  • the display interface in the camera application will not display the thumbnail image of the photographed image of the first photographed object in the thumbnail display control; therefore, the display interface of the camera application at time T(26) is the same as that at time T(25).
  • the second shooting and the first shooting are two independent shooting processes; therefore, in the cache module in the camera application, in the same shooting process, the thumbnail image generated earlier will be replaced by the real thumbnail image generated later; the real thumbnail image generated earlier will be replaced by the shooting image generated later; however, the image captured for the second time will not replace the image captured for the first time.
  • the electronic device generates a real thumbnail image of the second photographed object and displays a display interface 818, as shown in (c) in FIG. 13 ; wherein the display interface 818 includes a third photographed object and a thumbnail display control 813, and the thumbnail display control 813 displays a real thumbnail image of the second photographed object; at this time, as shown in (d) in FIG. 13 , the display interface 827 of the album application includes a real thumbnail image 22 of the second photographed object, a photographed image 111 of the first photographed object, and a first photographed image 821; and 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.
  • the electronic device generates a real image of the second photographed object and displays a display interface 819, as shown in (a) in FIG. 14 ; wherein the display interface 819 includes a third photographed object and a thumbnail display control 813, and the thumbnail display control 813 displays a thumbnail image of the photographed image of the second photographed object 815; at this time, as shown in (b) in FIG. 14 , 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; and 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.
  • the captured image is stored in the album application, and a thumbnail image of the captured image after scaling is displayed in the camera application; and 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.
  • the implementation method of generating the captured image of the second captured object may refer to the third process 470 shown in FIG. 4 , which will not be described in detail here.
  • the electronic device when the electronic device generates the false thumbnail image of the second shot, the electronic device has generated the false thumbnail image of the first shot, the real thumbnail image of the first shot and the photographed image of the first shot.
  • the specific implementation process can be referred to the relevant description of Example 1, which will not be repeated here.
  • the electronic device when the electronic device generates the false thumbnail image of the second shot, the electronic device has generated the false thumbnail image of the first shot, and has not generated the real thumbnail image of the first shot and the photographed image of the first shot.
  • the specific implementation process can be referred to the relevant description of Example 1, which will not be repeated here.
  • the electronic device by dividing the shooting operation into an operation of clicking a shooting control and an operation of popping up the shooting control, when the electronic device detects the operation of clicking the shooting control, it triggers the electronic device 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 selecting the original image data for image processing; when the electronic device detects the operation of the user popping up the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed at the moment the electronic device detects the operation of popping up the shooting control, thereby improving the speed of the shooting response; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • FIG. 15 and FIG. 16 a schematic diagram of an interface for enabling display of a false thumbnail image in an electronic device, that is, executing the method for displaying thumbnail images according to an embodiment of the present application.
  • the electronic device detects the operation of clicking the smart control 840 as shown in (b) of FIG. 15 , the method for displaying thumbnail images provided in an embodiment of the present application is executed.
  • a preview interface as shown in (a) of FIG. 15 is displayed; the preview interface includes a preview image and a smart control 840; the electronic device detects an operation of clicking the smart control 840, as shown in (b) of FIG. 15; after the electronic device detects the operation of clicking the smart control 840, the method for displaying a thumbnail image provided in an embodiment of the present application is executed.
  • a preview interface as shown in (a) of FIG. 16 may be displayed; the preview interface includes a preview image and a setting control 850; the electronic device detects an operation of clicking the setting control 850, as shown in (b) of FIG. 16; after the electronic device detects the operation of clicking the setting control 850, the setting interface is displayed, as shown in (c) of FIG. 16; the setting interface includes a control 851 for quickly thumbnailing images; the electronic device detects an operation of clicking the control 851 for quickly thumbnailing images, as shown in (d) of FIG. 16; after the electronic device detects the operation of clicking the control 851 for quickly thumbnailing images, the method for displaying thumbnail images provided in an embodiment of the present application is executed.
  • the electronic device by dividing the shooting operation into an operation of clicking a shooting control and an operation of popping up the shooting control, when the electronic device detects the operation of clicking the shooting control, it triggers the electronic device 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 selecting the original image data for image processing; when the electronic device detects the operation of the user popping up the shooting control, the false thumbnail image is triggered to be displayed; so that the thumbnail image can be displayed at the moment the electronic device detects the operation of popping up the shooting control, thereby improving the speed of the shooting response; reducing the user's shooting waiting time and improving the shooting experience.
  • the generation of the shooting image is triggered; after the real thumbnail image is generated, the false thumbnail image can be replaced by the real thumbnail image; after the shooting image is generated, the real thumbnail image can be replaced by the thumbnail image obtained by scaling the shooting image; it can improve the shooting response speed while ensuring the image quality of the thumbnail image.
  • FIG17 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • the electronic device 900 includes a display module 910 and a processing module 920 .
  • the display module 910 is used to display a first display interface at a first moment, wherein 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 a thumbnail image; and the first preview image is a first image captured by the electronic device.
  • the processing module 920 is used to detect a first operation on the first control, the first operation being used to indicate the start of shooting, and the shooting may 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; wherein the first thumbnail image is a thumbnail image generated by the first image after the first image processing; the second thumbnail image is a thumbnail image generated by the first image after the second image processing, and the first image processing is different from the second image processing; a second operation on the first control is detected, the second operation being used to indicate the end of shooting; the display module 910 is also used to display the first thumbnail image, the second thumbnail image and the third thumbnail image in sequence in the thumbnail display area in response to the second operation, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.
  • the first image processing includes downsampling processing; and the algorithm complexity of the second image processing is higher than the algorithm complexity of the first image processing.
  • processing module 920 is further configured to:
  • the first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
  • the electronic device includes a storage module
  • the storage module includes a first storage area
  • the processing module 920 is further used to:
  • the second thumbnail image in the first storage area is replaced by the first captured image.
  • the processing module 920 is specifically configured to:
  • the first image is selected from a zero-second delay queue in the electronic device based on the time information.
  • the second image processing includes a first algorithm processing and a second algorithm processing
  • the first algorithm is an algorithm of 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
  • the processing module 920 is specifically used for:
  • the fused image is processed by a second algorithm to generate the first captured image.
  • the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
  • the image quality includes image texture information or image brightness information.
  • the display module 910 is used to display a first display interface at a first moment, wherein 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 a thumbnail image; the first preview image is an image generated by preview processing of a first image captured by the electronic device, and the first image is an image captured in real time by the electronic device at the first moment; the processing module 920 is used to detect a first operation on the first control, wherein the first operation is used to indicate starting shooting, and the shooting may include taking a photo; in response to the first operation, A first thumbnail image is saved in an album application, and a second thumbnail image is generated; wherein the first thumbnail image is a thumbnail image generated by the first image through a first image processing; the second thumbnail image is a thumbnail image generated by the first image through a second image processing, and the first image processing is different from the second image processing; a second operation on the first control is detected, and the first control is
  • the first image processing includes downsampling processing; and the algorithm complexity of the second image processing is higher than the algorithm complexity of the first image processing.
  • the processing module 920 is specifically configured to:
  • the first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
  • processing module 920 is further configured to:
  • the second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
  • the electronic device includes a storage module, 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.
  • processing module 920 is further configured to:
  • the second thumbnail image in the first storage area is replaced by the first photographed image.
  • processing module 920 is further configured to:
  • the second storage area is The fifth thumbnail image is replaced.
  • the first operation and the third operation are operations of clicking the first control; the second operation and the fourth operation are operations of popping up the first control.
  • the image quality includes image texture information or image brightness information.
  • module can be implemented in the form of software and/or hardware, and is not specifically limited to this.
  • a “module” can be a software program, a hardware circuit, or a combination of the two 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 processor, etc.) and memory for executing one or more software or firmware programs, a combined logic circuit, and/or other suitable components that support the described functions.
  • ASIC application specific integrated circuit
  • processor such as a shared processor, a dedicated processor, or a group processor, etc.
  • memory for executing one or more software or firmware programs, a combined logic circuit, and/or other suitable components that support the described functions.
  • 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
  • Fig. 18 shows a schematic diagram of the structure of an electronic device provided by the present application.
  • the dotted lines in Fig. 18 indicate that the unit or the module is optional; the electronic device 1000 can be used to implement the method for displaying thumbnail images described in the above method embodiment.
  • the electronic device 1000 includes one or more processors 1001, which can support the method of displaying thumbnail images in the method embodiment of the electronic device 1000.
  • the processor 1001 can be a general-purpose processor or a special-purpose processor.
  • 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 gates, transistor logic devices or discrete hardware components.
  • the processor 1001 may be used to control the electronic device 1000, execute software programs, and process data of the software programs.
  • the electronic device 1000 may also include a communication unit 1005 to implement input (reception) and output (transmission) of signals.
  • the electronic device 1000 may be a chip
  • the communication unit 1005 may be an input and/or output circuit of the chip
  • the communication unit 1005 may be a communication interface of the chip
  • the chip may be a component of a terminal device or other electronic devices.
  • the electronic device 1000 may be a terminal device, and the communication unit 1005 may be a transceiver of the terminal device, or the communication unit 1005 may include one or more memories 1002 in 1000, on which a program 1004 is stored.
  • the program 1004 may be executed by the processor 1001 to generate instructions 1003, so that the processor 1001 executes the method for displaying thumbnail images described in the above method embodiment according to the instructions 1003.
  • data may also be stored in the memory 1002 .
  • the processor 1001 may also read 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 .
  • the processor 1001 and the memory 1002 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of a terminal device.
  • SOC system on chip
  • the memory 1002 may be used to store information related to the method for displaying thumbnail images provided in the embodiments of the present application.
  • Program 1004 the processor 1001 can be used to call the related 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 embodiment of the present application; for example, 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 to display thumbnail images; the first preview image is an image generated by the preview processing of the 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 is used to indicate the start of shooting, and shooting may include taking a photo; in response to the first operation, a first thumbnail image is saved in the album application, and a second thumbnail image is generated;
  • the present application further provides a computer program product, which, when executed by the processor 1001, implements the method for displaying thumbnail images in any method embodiment of the present application.
  • the computer program product may be stored in the memory 1002 , such as program 1004 , which is converted into an executable target file that can be executed by the processor 1001 after preprocessing, compilation, assembly, and linking.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method for displaying thumbnail images in any method embodiment of the present application is implemented.
  • the computer program can be a high-level language program or an executable target program.
  • the computer-readable storage medium is, for example, memory 1002.
  • Memory 1002 may be a volatile memory or a nonvolatile memory, or memory 1002 may include both a volatile memory and a nonvolatile memory.
  • the nonvolatile 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.
  • RAM synchronous RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous link DRAM
  • DR RAM direct rambus RAM
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the size of the serial number 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 on the implementation process of the embodiments of the present application.
  • the 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.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及终端领域,提供了一种显示缩略图像的方法和电子设备,该方法包括:在第一时刻显示第一显示界面,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;检测到对第一控件的第一操作,第一操作用于指示开始拍摄;响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;检测到对第一控件的第二操作,第二操作用于指示结束拍摄;响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像,其中,第三缩略图像的图像质量优于第二缩略图像。基于本申请的技术方案,能够解决电子设备的拍摄响应时长较长的问题,使得电子设备能够快速地显示缩略图像。

Description

显示缩略图像的方法和电子设备
本申请要求于2022年11月22日提交国家知识产权局、申请号为202211467867.9、申请名称为“显示缩略图像的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,具体地,涉及一种显示缩略图像的方法和电子设备。
背景技术
随着电子设备中拍照功能的发展,相机应用程序在电子设备中的应用越来越广泛。在相机应用中,当电子设备完成一次拍摄后,会在拍摄界面中显示缩略图像;用户通常以电子设备显示缩略图像看作是一次拍摄结束;其中,缩略图像中的图像内容是与本次实际拍摄图像的图像内容一致,根据该缩略图像可以查找到相册中存储的该缩略图像对应的图像;由于目前在电子设备检测到用户弹起拍摄控件的操作之后,才会触发电子设备生成缩略图像与拍摄图像;导致电子设备无法在检查到弹起拍摄控件的瞬间显示缩略图像,即电子设备检测到弹起拍摄控件与显示缩略图像之间的时长过长;导致用户的拍摄等待时间较长,使得用户的拍摄体验较差。
因此,如何快速地显示缩略图像,缩短拍摄等待时长成为一个亟需解决的问题。
发明内容
本申请提供了一种显示缩略图像的方法和电子设备,能够快速地显示缩略图像,提高拍摄体验。
第一方面,提供了一种显示缩略图像的方法,应用于电子设备,包括:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像,其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像,所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。
在一种可能的实现方式中,第一操作可以为点击拍摄控件的操作,或者,第一操作也可以为通过语音指示拍摄的操作;或者,通过其他指令指示开始拍摄的操作;本申请对此不作任何限定。
在一种可能的实现方式中,第二操作为弹起拍摄控件的操作;或者,语音指示结束拍摄的操作;或者,通过其他指令结束拍摄的操作。
应理解,弹起拍摄控件的操作可以是指电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。
在一种可能的实现方式中,图像质量可以包括图像细节信息、图像纹理信息、图像亮度或者通过任意图像质量评估算法得到的图像质量评估结果;本申请对此不作任何限定。
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发电子设备在相机应用程序中保存第一缩略图像(例如,虚假缩略图像)并生成第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
需要说明的是,在本申请的实施例中,第一缩略图像、第二缩略图像与第三缩略图像可以对应于用户的同一次拍摄;对于同一次拍摄,显示第一缩略图像、第二缩略图与第三缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示第一缩略图像,则显示界面中不会显示第二缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第二缩略图像,则显示界面中不会显示第一缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第三缩略图像,则显示界面中不会显示第一缩略图与第二缩略图像;例如,在T1时刻,显示第一缩略图像;在T2时刻显示第二缩略图像;在T3时刻显示第三缩略图像;T1时刻早于T2时刻;T2时刻早于T3时刻。
结合第一方面,在第一方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
在一种可能的实现方式中,第一图像处理可以包括下采样处理或者ISP处理中的部分处理;第二图像处理可以包括多帧图像融合处理、ISP处理与图像处理的其他软件算法。
应理解,在本申请的实施例中,第一图像处理所需的时长小于第二图像处理所需的时长。
在第一方面的某些实现方式中,通过对第一预览图像进行缩略处理,生成第一缩略图像。例如,基于缩略图显示区域的尺寸对第一预览图像进行缩放处理,生成第一缩略图像。
结合第一方面,在第一方面的某些实现方式中,还包括:
响应于所述第二操作,生成第一拍摄图像;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
应理解,第三缩略图像为基于缩略图显示区域对第一拍摄图像进行缩放处理后得到的; 与第二缩略图像相比,第一拍摄图像无需进行下采样处理;此外,第一拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,第三缩略图像的图像质量优于第二缩略图像的图像质量。
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,触发电子设备生成第一拍摄图像,第一拍摄图像可以是拍摄的真图;通过对第一拍摄图像进行缩放处理,可以得到第三缩略图像,即第一拍摄图像的缩略图像。
结合第一方面,在第一方面的某些实现方式中,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,还包括:
在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
在本申请的实施例中,在生成第二缩略图像(例如,真实缩略图像)之后,通过第二缩略图像对电子设备中存储的第一缩略图像(例如,虚假缩略图像)进行直接替换在生成第一拍摄图像(例如,拍摄图像)之后,通过第一拍摄图像对电子设备中存储的第二缩略图像(例如,真实缩略图像)进行直接替换;与存储第一缩略图像、第二缩略图像与第一缩略图像,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。
在一种可能的实现方式中,对所述第一预览图像进行缩放处理,生成所述第一缩略图像。
应理解,在本申请的实施例中,由于第二缩略图像是基于Raw图像进行图像处理后得到的缩略图像;而第一缩略图像是直接对预览图像进行缩放处理得到的缩略图像;由于预览图像通常的分辨率通常低于图像传感器采集的Raw图像,因此第二缩略图像的图像质量优于第一缩略图像的图像质量。
在本申请的实施例中,在电子设备检测到点击拍摄控件的操作后,可以触发在相册应用程序中保存虚假缩略图像的流程;从而使得在电子设备检测到弹起拍摄控件时,能够快速在显示界面中显示虚假缩略图像,以响应用户的拍摄操作;减少用户等待拍摄的时长,提高用户的拍摄体验。
结合第一方面,在第一方面的某些实现方式中,还包括:
获取检测到所述第一操作的时间信息;基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。
在一种可能的实现方式中,检测到第一操作的时间信息与第一时刻可以为相同时刻。
结合第一方面,在第一方面的某些实现方式中,所述第二图像处理包括第一算法处理与第二算法处理,所述第一算法为第一颜色空间的算法,所述第二算法为将所述第一颜色空间的图像转换为第二颜色空间的图像的算法,所述生成第一拍摄图像,包括:
对所述第一图像进行所述第一算法处理,得到所述第一颜色空间的图像;
对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;
对所述融合图像进行所述第二算法处理,生成所述第一拍摄图像。
在一种可能的实现方式中,第一算法为Raw颜色空间的算法;第二算法为将Raw图 像转换至YUV颜色空间的算法。
应理解,第一拍摄图像可以是指一次拍照操作生成的真图;与生成第二缩略图像相比,第一拍摄图像无需进行下采样处理;此外,第一拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,第一拍摄图像的图像质量优于第二缩略图像的图像质量;此外,基于第一拍摄图像进行缩放处理得到的第三缩略图像的图像质量优于第二缩略图像的图像质量。
结合第一方面,在第一方面的某些实现方式中,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。
结合第一方面,在第一方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。
第二方面,提供了一种显示缩略图像的方法,应用于电子设备,包括:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;
在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;
响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;
检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;
响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。
应理解,第一缩略图像、第二缩略图像与第三缩略图像对应第一拍照操作;第四缩略图像、第五缩略图像与第六缩略图像对应第二拍照操作;两次拍照操作的拍照时刻不同;其中,第一缩略图像可以为第一拍照操作的虚假缩略图像;第二缩略图像为第一拍照操作的真实缩略图像;第三缩略图像为基于第一拍照操作的实际拍摄图像生成的缩略图像;第四缩略图像可以为第二拍照操作的虚假缩略图像;第五缩略图像为 第二拍照操作的真实缩略图像;第六缩略图像为基于第二拍照操作的实际拍摄图像生成的缩略图像。
结合第二方面,在第二方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
结合第二方面,在第二方面的某些实现方式中,所述生成第三缩略图像,包括:
响应于所述第二操作,生成第一拍摄图像;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
结合第二方面,在第二方面的某些实现方式中,还包括:
响应于所述第四操作,生成第二拍摄图像;
基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。
结合第二方面,在第二方面的某些实现方式中,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。
在本申请的实施例中,电子设备中的存储模块中对于一次拍摄而言对应一个存储区域,在一次拍摄的虚假缩略图像、真实缩略图像或者拍摄图像生成后,仅在该次拍摄对应的存储区域中进行替换存储;不同次拍摄对应缓存模块中的不同存储区域。
结合第二方面,在第二方面的某些实现方式中,还包括:
在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
结合第二方面,在第二方面的某些实现方式中,还包括:
在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;
在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域的所述第五缩略图像进行替换处理。
结合第二方面,在第二方面的某些实现方式中,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。
结合第二方面,在第二方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。
第三方面,提供了一种电子设备,电子设备包括一个或多个处理器与存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域 用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。
结合第三方面,在第三方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
结合第三方面,在第三方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
响应于所述第二操作,生成第一拍摄图像;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
结合第三方面,在第三方面的某些实现方式中,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
结合第三方面,在第三方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
获取检测到所述第一操作的时间信息;
基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。
结合第三方面,在第三方面的某些实现方式中,所述第二图像处理包括第一算法处理与第二算法处理,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
对所述第一图像进行第一算法处理,得到第一颜色空间的图像;
对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;
对所述融合图像进行第二算法处理,生成所述第一拍摄图像。
结合第三方面,在第三方面的某些实现方式中,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。
结合第三方面,在第三方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。
第四方面,提供了一种电子设备,电子设备包括一个或多个处理器与存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;
在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;
响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;
检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;
响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。
结合第四方面,在第四方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
响应于所述第二操作,生成第一拍摄图像;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
响应于所述第四操作,生成第二拍摄图像;
基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。
结合第四方面,在第四方面的某些实现方式中,所述电子设备中包括存储模块, 所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:
在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;
在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域的所述第五缩略图像进行替换处理。
结合第四方面,在第四方面的某些实现方式中,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。
结合第四方面,在第四方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。
第五方面,提供了一种电子设备,包括用于执行第一方面或者第一方面中的任意一种实现方式中的显示缩略图像的方法的模块/单元。
第六方面,提供了一种电子设备,包括用于执行第二方面或者第二方面中的任意一种实现方式中的显示缩略图像的方法的模块/单元。
第七方面,提供一种电子设备,所述电子设备包括一个或多个处理器和存储器与;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行任一方面或者任一方面中的任意一种实现方式中的显示缩略图像的方法。
第八方面,提供了一种芯片***,所述芯片***应用于电子设备,所述芯片***包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行任一方面或任一方面中的任一种显示缩略图像的方法。
第九方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序代码,当所述计算机程序代码被电子设备运行时,使得该电子设备执行任一方面或者任一方面中的任意一种实现方式中的显示缩略图像的方法。
第十方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码被电子设备运行时,使得该电子设备执行任一方面或者任一方面中的任意一种实现方式中的显示缩略图像的方法。
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发 电子设备在相机应用程序中保存第一缩略图像(例如,虚假缩略图像)并生成第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
附图说明
图1是一种适用于本申请的电子设备的硬件***的示意图;
图2是一种适用于本申请实施例的应用场景的示意图;
图3是本申请实施例提供的一种显示缩略图像的方法的示意性流程图;
图4是本申请实施例提供的另一种显示缩略图像的方法的示意性流程图;
图5是本申请实施例提供的一种软件架构示意图;
图6是本申请实施例提供的一种适用于本申请实施例的图形用户界面的示意图;
图7是本申请实施例提供的另一种适用于本申请实施例的图形用户界面的示意图;
图8是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;
图9是本申请实施例提供的另一种软件架构示意图;
图10是一种适用于本申请实施例的图形用户界面的示意图;
图11是另一种适用于本申请实施例的图形用户界面的示意图;
图12是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;
图13是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;
图14是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;
图15是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;
图16是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;
图17是本申请实施例提供的一种电子设备的结构示意图;
图18是本申请实施例提供的另一种电子设备的结构示意图。
具体实施方式
在本申请的实施例中,以下术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
为了便于对本申请实施例的理解,首先对本申请实施例中涉及的相关概念进行简要说明。
1.缩略图像
缩略图像是指电子设备中缓存的分辨率较小的图像,缩略图像与拍摄图像相比图像质量较差;与电子设备中的拍摄图像相比,缩略图像的分辨率较小;可选地,通过拍摄界面的缩略图像可以索引到相册中的实际的拍摄图像。
2.零秒延迟(zero shutter lag,ZSL)队列
电子设备在进行拍摄之前,通常会在电子设备中显示待拍摄画面的图像;这些显示的图像也被称为预览图像;其中,电子设备将预览图像和实际的拍摄图像按时间顺序依次缓存在一个图像队列中,该图像队列被称为ZSL队列。
可选地,ZSL队列中的图像可以为Raw图像。
图1示出了一种适用于本申请的电子设备的硬件***。
电子设备100可以是手机、智慧屏、平板电脑、可穿戴电子设备、车载电子设备、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、投影仪等等,本申请实施例对电子设备100的具体类型不作任何限制。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
需要说明的是,图1所示的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图1所示的部件更多或更少的部件,或者,电子设备100可以包括图1所示的部件中某些部件的组合,或者,电子设备100可以包括图1所示的部件中某些部件的子部件。图1示的部件可以以硬件、软件、或软件和硬件的组合实现。
示例性地,处理器110可以包括一个或多个处理单元。例如,处理器110可以包括以下处理单元中的至少一个:应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、神经网络处理器(neural-network processing unit,NPU)。其中,不同的处理单元可以是独立的器件,也可以是集成的器件。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。例如,处理器110可以包括以下接口中的至少一个:内部集成电路(inter-integrated circuit,I2C)接口、内部集成电路音频(inter-integrated circuit sound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步接收传输器(universal asynchronous receiver/transmitter,UART)接口、移 动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口、SIM接口、USB接口。
示例性地,在本申请的实施例中,处理器110可以用于执行本申请实施例提供的显示缩略图像的方法;例如,在第一时刻显示第一显示界面,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,第一控件为指示拍摄的控件;缩略图显示区域用于显示缩略图像;第一预览图像为电子设备采集的第一图像经过预览处理生成的图像,第一图像为电子设备在第一时刻实时采集的图像;检测到对第一控件的第一操作,第一操作用于指示开始拍摄,所述拍摄可以包括拍照;响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,第一缩略图像为第一图像经过第一图像处理生成的缩略图像;第二缩略图像为第一图像经过第二图像处理生成的缩略图像,第一图像处理与第二图像处理不同;检测到对第一控件的第二操作,第二操作用于指示结束拍摄;响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像,其中,第三缩略图像的图像质量优于第二缩略图像。
图1所示的各模块间的连接关系只是示意性说明,并不构成对电子设备100的各模块间的连接关系的限定。可选地,电子设备100的各模块也可以采用上述实施例中多种连接方式的组合。
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等器件实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
电子设备100可以通过GPU、显示屏194以及应用处理器实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194可以用于显示图像或视频。
可选地,显示屏194可以用于显示图像或视频。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体(active-matrix organic light-emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、迷你发光二极管(mini light-emitting diode,Mini LED)、微型发光二极管(micro light-emitting diode,Micro LED)、微型OLED(Micro OLED)或量子点发光二极管(quantum dot light emitting diodes,QLED)。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
示例性地,电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
示例性地,ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过摄像头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP可以对图像的噪点、亮度和色彩进行算法优化,ISP还可以优化拍摄场景的曝光和色温等参数。在一些实施例中,ISP可以设置在摄像头193中。
示例性地,摄像头193(也可以称为镜头)用于捕获静态图像或视频。可以通过应用程序指令触发开启,实现拍照功能,如拍摄获取任意场景的图像。摄像头可以包括成像镜头、滤光片、图像传感器等部件。物体发出或反射的光线进入成像镜头,通过滤光片,最终汇聚在图像传感器上。成像镜头主要是用于对拍照视角中的所有物体(也可以称为待拍摄场景、目标场景,也可以理解为用户期待拍摄的场景图像)发出或反射的光汇聚成像;滤光片主要是用于将光线中的多余光波(例如除可见光外的光波,如红外)滤去;图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器主要是用于对接收到的光信号进行光电转换,转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。
示例性地,数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
示例性地,视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3和MPEG4。
示例性地,陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x轴、y轴和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。例如,当快门被按下时,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航和体感游戏等场景。
示例性地,加速度传感器180E可检测电子设备100在各个方向上(一般为x轴、y轴和z轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。加速度传感器180E还可以用于识别电子设备100的姿态,作为横竖屏切换和计步器等应用程序的输入参数。
示例性地,距离传感器180F用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,例如在拍摄场景中,电子设备100可以利用距离传感器180F测距以实现快速对焦。
示例性地,环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
示例性地,指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现解锁、访问应用锁、拍照和接听来电等功能。
示例性地,触摸传感器180K,也称为触控器件。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,触摸屏也称为触控屏。触摸传感器180K用于检测作用于其上或其附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传 递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,并且与显示屏194设置于不同的位置。
目前,在电子设备检测到用户弹起拍摄控件的操作之后,才会触发电子设备生成真实缩略图像与拍摄图像(例如,拍摄的真图);导致电子设备无法在检查到弹起拍摄控件的瞬间显示缩略图像,即电子设备检测到弹起拍摄控件与显示缩略图像之间的时长过长;导致用户的拍摄等待时间较长,使得用户的拍摄体验较差。
有鉴于此,本申请的实施例提供了一种显示缩略图像的方法和电子设备;在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备在相册应用程序中保存虚假缩略图像并生成真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
图2是本申请实施例提供的显示缩略图像的方法的应用场景的示意图。
示例性地,电子设备运行相机应用程序后,显示预览界面201,如图2中的(a)所示;预览界面201中包括预览图像、缩略图显示控件202与拍摄控件203,其中,缩略图显示控件202中用于显示上一次完成拍摄图像的缩略图像;在第一时刻,电子设备检测到点击拍摄控件203的操作,如图2中的(b)所示;在第二时刻,电子设备检测到用户弹起拍摄控件203的操作,显示显示界面204,如图2中的(c)所示;在显示界面204中缩略图显示控件202中显示的缩略图像依然为上一次完成拍摄图像的缩略图像;在第三时刻,电子设备显示显示界面205,显示界面205中缩略图显示控件202中显示的为本次拍摄图像的缩略图像,如图2中的(d)所示。
应理解,用户通常以显示界面中显示本次拍摄图像的缩略图像看作是完成本次拍摄,因此由于电子设备无法在检测到弹起拍摄控件的瞬间显示缩略图像,导致用户认为拍摄的响应过慢,拍摄体验较差。
在本申请的实施例中,提供了一种显示缩略图像的方法和电子设备;根据本申请实施例提供显示缩略图像的方法能够解决电子设备的拍摄响应时长较长的问题,使得电子设备能够快速地显示缩略图像。
可选地,本申请实施例中的显示缩略图的方法可以应用于相机应用程序的拍摄模式;或者,本申请实施例中的显示缩略图的方法可以应用于相机应用程序的快速拍照模式。
需要说明的是,本申请实施例中的显示缩略图像的方法可以应用于拍摄模式下的夜景拍摄,但是不适用于夜景拍摄模式;由于在夜景拍摄模式下,电子设备获取的每 一帧图像是由长曝光图像、正常曝光图像与短曝光图像进行融合得到的;由于在本申请的实施例中,在检测到点击拍摄控件时触发电子设备生成虚假缩略图像与真实缩略图像,在检测到弹起拍摄控件时显示虚假缩略图像;在电子设备中显示虚假缩略图像后,用户认为本次拍摄完成则可能移动电子设备;但是,此时短曝光图像与长曝光图像可能还未生成;移动电子设备后,会使得短曝光图像与长曝光图像与正常曝光图像中的内容存在差异,导致图像质量较差;因此,本申请实施例中提供的显示缩略图像的方法不适用于夜景模式。
应理解,上述为对应用场景的举例说明,并不对本申请的应用场景作任何限定。
下面结合图3至图16对本申请实施例提供的显示缩略图像的方法进行详细地描述。
图3是本申请实施例提供的一种显示缩略图像的方法的示意性流程图。该方法300可以由图1所示的电子设备执行;该方法300包括S310至S350,下面分别对S310至S350进行详细的描述。
S310、在第一时刻显示第一显示界面。
其中,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,第一控件为指示拍摄的控件;缩略图显示区域用于显示缩略图像;第一预览图像为电子设备采集的第一图像经过预览处理生成的图像,第一图像为电子设备在第一时刻实时采集的图像。
可选地,如图5所示,相机模组可以将在第一时刻采集的第一图像分别发送至预览存储模块与ZSL队列存储模块;其中,预览存储模块用于存储预览图像,预览图像为对相机模组采集的图像进行预览处理生成的图像;ZSL队列存储模块中存储的图像用于生成拍照的实际拍摄图像。
示例性地,第一显示界面可以如图6中的(a)所示;第一控件可以是指图6中的(a)所示的控件612;显示区域可以是指如图6中的(a)所示的控件613所在的区域。
可选地,在S310之前可以运行相机应用程序。
示例性地,用户可以通过单击“相机”应用程序的图标,指示电子设备运行相机应用。
示例性地,电子设备处于锁屏状态时,用户可以通过在电子设备的显示屏上向右滑动的手势,指示电子设备运行相机应用。又或者,电子设备处于锁屏状态,锁屏界面上包括相机应用程序的图标,用户通过点击相机应用程序的图标,指示电子设备运行相机应用程序。又或者,电子设备在运行其他应用时,该应用具有调用相机应用程序的权限;用户通过点击相应的控件可以指示电子设备运行相机应用程序。例如,电子设备正在运行即时通信类应用程序时,用户可以通过选择相机功能的控件,指示电子设备运行相机应用程序等。
应理解,上述为对运行相机应用程序的操作的举例说明;还可以通过语音指示操作,或者其它操作的指示电子设备运行相机应用程序;本申请对此不作任何限定。
还应理解,运行相机应用程序可以是指启动相机应用程序。
S320、检测到对第一控件的第一操作。
其中,第一操作用于指示开始拍摄。所述拍摄可以包括拍照。
可选地,拍摄操作可以为拍照操作。
示例性地,如图6中的(c)所示,第一操作可以为对控件612的点击操作。
可选地,在本申请的实施例中,上述通过对第一操作为点击操作进行举例描述;在本申请的实施例中,第一操作也可以为通过语音指示拍摄的操作;或者,通过其他指令指示开始拍摄的操作;本申请对此不作任何限定。
S330、响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像。
其中,第一缩略图像为第一图像经过第一图像处理生成的缩略图像;第二缩略图像为第一图像经过第二图像处理生成的缩略图像,第一图像处理与第二图像处理不同。
在一种可能的实现方式中,第一图像处理可以包括下采样处理或者ISP处理中的部分处理;第二图像处理可以包括多帧图像融合处理、ISP处理与图像处理的其他软件算法。
应理解,在本申请的实施例中,第一图像处理所需的时长小于第二图像处理所需的时长。
示例性地,第一缩略图像可以为如图7中的(a)中控件613中显示的缩略图像;第二缩略图像可以为如图7中的(c)中控件613中显示的缩略图像。
在一种可能的实现方式中,生成第一缩略图像包括:
对第一预览图像进行缩放处理,生成第一缩略图像。具体实现方式可以参见后续图4中的第一流程430的相关描述,此处不再赘述。
在本申请的实施例中,在电子设备检测到点击拍摄控件的操作后,可以触发在相册应程序中保存虚假缩略图像的流程;从而使得在电子设备检测到弹起拍摄控件时,能够快速在显示界面中显示虚假缩略图像,以响应用户的拍摄操作;减少用户等待拍摄的时长,提高用户的拍摄体验。
可选地,还包括:
响应于第二操作,生成第一拍摄图像;基于缩略图显示区域的尺寸对第一拍摄图像进行缩放处理,生成第三缩略图像。
应理解,第三缩略图像为基于缩略图显示区域对第一拍摄图像进行缩放处理后得到的;与第二缩略图像相比,第一拍摄图像无需进行下采样处理;此外,第一拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,第三缩略图像的图像质量优于第二缩略图像的图像质量。
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,触发电子设备生成第一拍摄图像,第一拍摄图像可以是拍摄的真图;通过对第一拍摄图像进行缩放处理,可以得到第三缩略图像,即第一拍摄图像的缩略图像。
可选地,第二图像处理包括第一算法处理与第二算法处理,第一算法为第一颜色空间的算法,第二算法为将第一颜色空间的图像转换为第二颜色空间的图像的算法,生成第一拍摄图像,包括:
对第一图像进行第一算法处理,得到第一颜色空间的图像;对至少两帧第一颜色空间的图像进行融合处理,得到融合图像;对融合图像进行第二算法处理,生成第一拍摄图像。
可选地,具体实现方式可以参见后续图4所示的第二流程440的相关描述,此处不再 赘述。
示例性地,第一图像可以为原始图像数据,即第一图像可以为Raw图像;第一算法可以包括Raw颜色空间的算法。
例如,Raw颜色空间的算法可以包括但不限于:黑电平矫正处理(Black Level Correction,BLC)、镜头阴影校正(Lens Shading Correction,LSC)等算法。
其中,黑电平矫正处理用于对黑电平进行校正处理,黑电平是指在经过一定校准的显示装置上,没有一行光亮输出的视频信号电平;进行黑电平校正的原因在于:一方面由于图像传感器存在暗电流,导致在没有光照的情况下像素也存在电压输出的问题;另一方面,由于图像传感器进行模数转换时精度不够。镜头阴影校正(Lens Shading Correction,LSC)用于消除由于镜头光学***原因造成的图像四周颜色以及亮度与图像中心不一致的问题。
例如,第二算法包括将Raw图像转换为YUV颜色空间的算法。
可选地,还包括:
获取检测到第一操作的时间信息;基于时间信息在所述电子设备中的零秒延迟队列中选取第一图像。
在本申请的实施例中,在检测到点击拍摄控件的操作时,可以触发电子设备生成第二缩略图像即真实缩略图像;与现有方案,在检测到弹起拍摄操作后,触发生成真实缩略图像的流程相比,在本申请的实施例中,提前了触发电子设备生成真实缩略图像的时间,从而能够减少电子设备响应拍摄的时长;减少用户等待拍摄的时长,提高用户的拍摄体验。
S340、检测到对第一控件的第二操作。
其中,第二操作用于指示结束拍摄。
示例性地,第二操作可以为弹起拍摄控件的操作,如图7中的(a)所示。
应理解,弹起拍摄控件的操作可以是指电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。
可选地,上述是对第二操作的举例描述;在本申请的实施例中,第二操作也可以为通过语音指示结束拍摄的操作;或者,通过其他指令指示结束拍摄的操作;本申请对此不作任何限定。
S350、响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像。
其中,第三缩略图像的图像质量优于第二缩略图像。
在一种可能的实现方式中,图像质量可以包括图像细节信息、图像纹理信息、图像亮度或者通过任意图像质量评估算法得到的图像质量评估结果;本申请对此不作任何限定。
需要说明的是,在本申请的实施例中,第一缩略图像、第二缩略图像与第三缩略图像可以对应于用户的同一次拍摄;对于同一次拍摄,显示第一缩略图像、第二缩略图与第三缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示第一缩略图像,则显示界面中不会显示第二缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第二缩略图像,则显示界面中不会显示第一缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第三缩略图像,则显示界面中不会显示第一缩略图与第二缩略图像;例如,在T1时刻,显示第一缩略图像;在T2时刻显示第二缩略图像;在T3时刻显示第三缩略 图像;T1时刻早于T2时刻;T2时刻早于T3时刻。
可选地,电子设备中包括存储模块,存储模块中包括第一存储区域,还包括:
在电子设备生成第二缩略图像且未生成第一拍摄图像时,通过第二缩略图像对第一存储区域的第一缩略图像进行替换处理;
在电子设备生成第一拍摄图像时,通过第一拍摄图像对第一存储区域的第二缩略图像进行替换处理。
在本申请的实施例中,在生成第二缩略图像(例如,真实缩略图像)之后,通过第二缩略图像对电子设备中存储的第一缩略图像(例如,虚假缩略图像)进行直接替换在生成第一拍摄图像(例如,拍摄图像)之后,通过第一拍摄图像对电子设备中存储的第二缩略图像(例如,真实缩略图像)进行直接替换;与存储第一缩略图像、第二缩略图像与第一缩略图像,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发电子设备在相机应用程序中保存第一缩略图像(例如,虚假缩略图像)并生成第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
示例一
对于电子设备检测到一次拍摄操作,即电子设备检测到一次第一操作与一次第二操作;例如,电子设备检测到一次点击拍摄控件的操作与一次弹起拍摄控件的操作。
示例性地,对于一次拍摄而言如图7中的(a)所示,在T(12)时刻显示缩略图控件613中显示第一缩略图像,即显示虚假缩略图像;如图7中的(c)所示,在T(13)时刻显示缩略图控件613中显示第二缩略图像,即显示真实缩略图像;如图8中的(a)所示,在T(14)时刻显示缩略图控件613中显示第三缩略图像,即显示拍摄图像的缩略图像,其中,T(12)时刻早于T(13)时刻,T(13)时刻早于T(14)时刻。
可选地,若电子设备检测到一次所述第一操作与一次所述第二操作,则所述第一缩略图像、所述第二缩略图像与所述第三缩略图像包括第一拍摄对象。
可选地,还包括:
响应于第二操作,生成第一图像;对第一图像进行缩放处理,生成第三缩略图像。
示例性地,生成第一图像的实现方式可以参见后续图4中第三流程470的相关描述,此处不再赘述;生成第三缩略图像的实现方式可以参见后续图4中的S480的相关描述,此处不再赘述。
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,触发电子设备生成第一图像,第一图像可以是指拍摄图像即拍摄的真图;通过对第一图像进行缩放处理,可以得到第三缩略图像,即拍摄图像的缩略图像。
可选地,生成第一图像,包括:
对第二图像进行第一算法处理,得到第一颜色空间的图像;对至少两帧第一颜色空间的图像进行融合处理,得到融合图像;对融合图像进行第二算法处理,生成第一图像。
示例性地,可以获取检测到第一操作的时间信息;基于时间信息在电子设备中的零秒延迟队列中选取第二图像;对第二图像进行Raw颜色空间的算法处理,得到处理后的Raw图像;对至少两帧处理后的Raw图像进行融合处理,得到第一图像。
应理解,第一图像可以是指一次拍摄图像生成的真图;与第二缩略图像相比,第一图像无需进行下采样处理;此外,第一图像可以是基于多帧Raw图像融合处理后的图像;因此,第一图像的图像质量优于第二缩略图像的图像质量;此外,基于第一图像进行缩放处理得到的第三缩略图像的图像质量优于第二缩略图像的图像质量。
可选地,电子设备中包括存储模块,存储模块中包括第一存储区域,还包括:
在电子设备生成第一缩略图像且未生成第二缩略图像时,在第一存储区域存储第一缩略图像;
在电子设备生成第二缩略图像且未生成第一图像时,通过第二缩略图像对第一存储区域的第一缩略图像进行替换处理;
在电子设备生成第一图像时,通过第一图像对第一存储区域的第二缩略图像进行替换处理。
示例性地,如图7中的(b)所示,电子设备的相册应用程序中可以包括缓存模块;在T(12)时刻,缓存模块中的第一存储位置用于存储第一缩略图像(例如,虚假缩略图像1);如图7中的(d)所示,在T(13)时刻,缓存模块中的第一存储区域用于存储第二缩略图像(例如,真实缩略图像11);例如,在T(13)时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储区域存储真实缩略图像;在T(14)时刻,缓存模块中的第一存储区域用于存储第一图像(例如,拍摄图像);例如,在第三时刻,可以通过拍摄图像对真实缩略图像进行替换处理,删除真实缩略图像并在相同的存储空间存储拍摄图像。
应理解,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次拍摄;换而言之,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次点击拍摄控件与弹起拍摄控件;此外,对于同一次拍摄,显示虚假缩略图像、显示真实缩略图与显示拍摄图像的缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示虚假缩略图像,则显示界面中不会显示真实缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示真实缩略图像,则显示界面中不会显示虚假缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示拍摄图像的缩略图像,则显示界面中不会显示虚假缩略图与真实缩略图像。
在本申请的实施例中,在生成第二缩略图像(例如,真实缩略图像)之后,通过第二缩略图像对电子设备中存储的第一缩略图像(例如,虚假缩略图像)进行直接替换在生成第一图像(例如,拍摄图像)之后,通过第一图像对电子设备中存储的第二缩略图像(例如,真实缩略图像)进行直接替换;与存储第一缩略图像、第二缩略图像与第一缩略图像,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。
示例二
对于电子设备检测到至少两次拍摄操作,即电子设备检测到至少两次第一操作与至少两次第二操作;例如,电子设备检测到第一次点击拍摄控件的操作与第一次弹起拍摄控件的操作;在生成第一次拍摄的拍摄图像之前,电子设备检测到第二次点击拍摄控件的操作与第二次弹起拍摄控件的操作。
可选地,电子设备检测到一次第一操作与一次第二操作为电子设备检测到一次拍摄操作;若电子设备检测到的拍摄操作的次数大于一次,则第一缩略图像与第二缩略图像中包括第一拍摄对象,第三缩略图像中包括第二拍摄对象,第一拍摄对象与第二拍摄对象不同。
示例性地,第一缩略图像与第二缩略图像中包括的第一拍摄对象,如图10中的(c)所示的拍摄对象811;第三缩略图像中包括的第二拍摄对象,如图11中的(a)所示的拍摄对象815。
可选地,电子设备中包括存储模块,存储模块中包括第一存储区域与第二存储区域,还包括:
在电子设备生成第一缩略图像且未生成第二缩略图像时,在第一存储区域存储第一缩略图像;
在电子设备生成第二缩略图像时,通过第二缩略图像对第一存储区域的第一缩略图像进行替换处理;
在电子设备生成第三缩略图像时,在第二存储区域存储第三缩略图像。
示例性地,如图11中的(b)所示,电子设备的相册应用程序中可以包括缓存模块;在T(22)时刻,电子设备生成第一缩略图,缓存模块中的第一存储位置用于存储第一缩略图像(例如,虚假缩略图像1);如图11中的(d)所示,在T(23)时刻,电子设备生成第二缩略图像,缓存模块中的第一存储区域用于存储第二缩略图像(例如,真实缩略图像11);例如,在T(23)时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储区域存储真实缩略图像;如图12中的(d)所示,在T(25)时刻,生成第三缩略图像,即生成第二次拍摄的虚假缩略图像;在缓存模块中的第二存储区域用于存储第三图像(例如,第二次拍摄的虚假缩略图像2)。
可选地,还包括:
响应与第二操作,生成第一拍摄对象的第三图像;通过第三图像对第一存储区域的第二缩略图像进行替换处理,第三图像的图像质量优于第二缩略图像。
示例性地,第三图像可以是指第一次拍摄的拍摄图像;如图13中的(b)所示,电子设备生成第一次拍摄的拍摄图像后,可以通过拍摄图像对存储在缓存模块中的第二缩略图像(例如,真实缩略图像11)进行替换处理。
可选地,在显示区域显示第三缩略图像之后,还包括:
在显示区域显示第四缩略图像,第四缩略图像为第二拍摄对象的缩略图像,第四缩略图像的图像质量优于第三缩略图像。
示例性地,第四缩略图像可以是指第二次拍摄的真实缩略图像,第二次拍摄的真实缩略图像可以为如图13中的(c)中控件813中所示的缩略图像。
可选地,还包括:
通过第四缩略图像对第二存储区域的第三缩略图像进行替换处理。
示例性地,如图13中的(b)与图13中的(d)所示,在电子设备生成第二次拍摄的第四缩略图像(例如,真实缩略图像22)后,可以通过真实缩略图像22对缓存模块中的第三缩略图像(例如,虚假缩略图像2)进行替换处理。
可选地,还包括:
获取第二拍摄对象的第二预览图像,第二预览图像存储在电子设备的相机应用程序中;对第二预览图像进行缩放处理,生成第三缩略图像。
示例性地,在电子设备检测到第二次点击拍摄控件的操作后,可以触发生成第二次拍摄的虚假缩略图像的流程;从而使得在电子设备检测到第二次弹起拍摄控件时,能够快速在显示界面中显示虚假缩略图像,以响应用户的拍摄操作;减少用户等待拍摄的时长,提高用户的拍摄体验。
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发电子设备生成第一缩略图像(例如,虚假缩略图像)与第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
下面结合图4至图14对本申请实施例的实现方式进行详细描述。
实现方式一
示例性地,在电子设备检测到一次拍摄操作(例如,点击拍摄控件的操作与弹起拍摄控件的操作),电子设备依次生成虚假缩略图像、真实缩略图像与拍摄图像;在拍摄界面中的缩略图显示控件中依次显示虚假缩略图像、真实缩略图像以及拍摄图像的缩略图像。
图4是本申请实施例提供的另一种显示缩略图像的方法的示意性流程图。该方法400可以由图1所示的电子设备执行;该方法包括S410至S480,下面分别对S410至S480进行详细的描述。
需要说明的是,S410至S480以电子设备检测到用户的一次拍摄过程进行举例说明;即电子设备检测到一次用户点击拍摄控件的操作与弹起拍摄控件的操作时,显示缩略图像的处理流程。
S401、运行相机应用程序。
示例性地,用户可以通过单击“相机”应用程序的图标,指示电子设备运行相机应用。或者,电子设备处于锁屏状态时,用户可以通过在电子设备的显示屏上向右滑动的手势,指示电子设备运行相机应用程序。又或者,电子设备处于锁屏状态,锁屏界面上包括相机应用程序的图标,用户通过点击相机应用程序的图标,指示电子设备运行相机应用程序。又或者,电子设备在运行其他应用时,该应用具有调用相机应用程序的权限;用户通过点击相应的控件可以指示电子设备运行相机应用程序。例如,电子设备正在运行即时通信类应用程序时,用户可以通过选择相机功能的控件,指示电子设备开启相机应用程序等。
应理解,上述描述为对运行相机应用程序的操作的举例说明;还可以通过语音指 示操作,或者其它操作的指示电子设备运行相机应用程序;本申请对此不作任何限定。
S420、检测到点击拍摄控件的操作。
可选地,S420中以点击拍摄控件的操作进行举例说明;S420中还可以为检测到指示开始拍摄的操作;例如,通过语音或者其他指示信息指示电子设备开始拍摄。
应理解,在本申请的实施例中,拍摄操作可以包括:指示开始拍摄的操作和结束拍摄的操作;例如,拍摄操作可以包括:点击拍摄控件的操作与弹起拍摄控件的操作。
需要说明的是,弹起拍摄控件的操作可以是指电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。
在本申请的实施例中,在电子设备检测到用户的拍摄控件的操作,可以同时触发第一流程430与第二流程440;第一流程430为电子设备生成虚假缩略图像的流程;第二流程440为电子设备生成真实缩略图像的流程;其中,生成真实缩略图像的流程可以为现有的任意一个生成缩略图像的算法。
可选地,在电子设备检测到点击拍摄控件的操作时,可以同时触发第一流程与第二流程;即触发生成快速缩略图像的流程与触发生成真实缩略图像的流程。
示例性地,第一流程430包括S431与S432;下面分别对S431与S432进行详细说明。
S431、获取预览图像。
应理解,预览图像为电子设备的存储模块中获取的图像。
示例性地,预览图像可以为存储在相机应用程序中的预先存储模块中的图像,如图5所示。
可选地,预览图像可以为JPEG格式,JPG格式或者其他格式。
S432、对预览图像进行处理,生成虚假缩略图像。
示例性地,预览图像可以为一帧处理后的JPEG格式的图像;可以对JPEG格式的图像进行缩放处理,得到虚假缩略图像。
应理解,在本申请的实施例中,虚假缩略图像是在预览图像的基础上直接进行缩放处理得到的图像;因此,生成虚假缩略图像的过程所需时间较短,能够在较短时间内生成快速生成虚假缩略图像。
示例性地,第二流程440包括S441与S442;下面分别对S441与S442进行详细说明。
S441、在ZSL队列中选取图像帧。
可选地,可以根据时间信息在ZSL队列中选择图像帧,其中,可以在S420检测到点击拍摄控件的操作时获取时间信息;例如,在检测到点击拍摄操作时获取时间戳。
示例性地,电子设备检测到点击拍摄控件的操作时,获取的时间信息为时间标识1;ZSL队列中包括:时间标识1-图像帧1、时间标识2-图像帧2、时间标识3-图像帧3;基于时间标识1,电子设备可以在ZSL队列中选取图像帧1。
可选地,ZSL队列中存储的图像帧可以为Raw图像;其中,Raw图像是指图像传感器采集的原始图像数据。
S442、对选取的图像帧进行处理,生成真实缩略图像。
示例性地,可以对选取的Raw图像进行处理,将Raw图像转换为YUV图像;将YUV图像可以转换为RGB图像用于显示;此外,可以将YUV图像转换为其他格式(例如,JPEG格式(JPG格式)、GIF格式、DNG格式或者RAW格式等)用于存储。
应理解,由于真实缩略图像是根据Raw图像进行图像处理后得到的缩略图像;而虚假缩略图像为直接对电子设备中存储的预览图像进行缩放处理得到的缩略图像;因此,生成虚假缩略图像的时效性高于生成真实缩略图像。
可选地,电子设备可以先生成快速缩略图像再生成真实缩略图像。
还应理解,由于真实缩略图像是基于Raw图像进行图像处理后得到的缩略图像;而虚假缩略图像是直接对预览图像进行缩放处理得到的缩略图像;由于预览图像通常的分辨率通常低于图像传感器采集的Raw图像,因此真实缩略图像的图像质量优于虚假缩略图像的图像质量。
可选地,S442包括但不限于以下步骤:
1.对选取的Raw图像进行下采样处理,得到下采样处理后的Raw图像;
2.对下采样处理后的Raw图像执行Raw域算法,得到处理后的Raw图像;其中,Raw域算法包括但不限于:黑电平矫正处理、镜头阴影校正等算法;
其中,黑电平矫正处理用于对黑电平进行校正处理,黑电平是指在经过一定校准的显示装置上,没有一行光亮输出的视频信号电平;进行黑电平校正的原因在于:一方面由于图像传感器存在暗电流,导致在没有光照的情况下像素也存在电压输出的问题;另一方面,由于图像传感器进行模数转换时精度不够。镜头阴影校正(Lens Shading Correction,LSC)用于消除由于镜头光学***原因造成的图像四周颜色以及亮度与图像中心不一致的问题。
3.将处理后的Raw图像转换至YUV颜色空间,得到下采样的YUV图像;即得到真实缩略图像。
4.将下采样的YUV图像转换为RGB图像,RGB图像用于在电子设备的显示屏中显示;此外,将下采样的YUV图像转换为其他存储格式的图像,其他存储格式的图像用于在电子设备中存储。
S450、检测到弹起拍摄控件的操作。
应理解,弹起拍摄控件的操作可以包括电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。
可选地,上述S450中还可以是指检测到指示结束拍摄的操作;例如,检测到语音指示或者其他指示结束拍摄的操作。
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,可以触发执行第三流程470与显示虚假缩略图像;其中,第三流程470为生成拍摄图像的流程;可选地,生成拍摄图像的流程可以为现有的任意一种生成拍摄图像的算法。
可选地,在电子设备检测到弹起拍摄控件的操作时,可以触发同时执行第三流程470与显示虚假缩略图像。
S461、在第一时刻,显示虚假缩略图像。
示例性地,在第一时刻显示虚假缩略图像的界面示意图如后续图6中的(a)所示。
可选地,在显示虚假缩略图像的同时,可以将虚假缩略图像存储在电子设备中。
示例性地,在电子设备检测到弹起拍摄控件的操作的瞬间,可以发送指令;将虚假缩略图像存储在图库中,并在电子设备中显示虚假缩略图像。
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作后,电子设备可以快速地在拍摄界面中显示虚假缩略图像;用户在拍摄时,通常以拍摄界面中显示缩略图像时看 作是完成一次拍摄过程;在本申请的实施例中,由于在用户弹起拍摄控件的较短时间内,电子设备能够在拍摄界面中快速地显示虚假缩略图像;换而言之,电子设备可以在较短时间内响应于用户的拍摄操作,使得用户感知到拍摄完成,从而提高用户的拍摄体验。
应理解,在显示虚假缩略图像时,可能真实缩略图像还未生成;此时,可以先在拍摄界面中显示虚假缩略图像;在生成真实缩略图像之后,可以通过真实缩略图像替换虚假缩略图像,在拍摄界面中显示真实缩略图像。
S462、在第二时刻,显示真实缩略图像。
其中,第二时刻在第一时刻之后。
示例性地,在第二时刻显示真实缩略图像的界面示意图如后续图7中的(a)所示。
可选地,在显示真实缩略图像的同时,可以将真实缩略图像存储在电子设备中。
可选地,电子设备的相册应用程序中可以包括缓存模块;在第一时刻,缓存模块中的第一存储空间用于存储虚假缩略图像;在第二时刻,缓存模块中的第一存储空间用于存储真实缩略图像;例如,在第二时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储空间存储真实缩略图像。
在本申请的实施例中,在生成真实缩略图像之后,通过真实缩略图像对电子设备中存储的虚假缩略图像进行直接替换;与存储虚假缩略图像与真实缩略图像相比,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。
示例性地,第三流程470包括S471与S472;下面分别对S471与S472进行详细说明。
S471、在ZSL队列中选取图像帧。
可选地,可以根据检测到点击拍摄控件的操作的时间信息,在ZSL队列中选取图像帧。
应理解,用户拍摄图像时通常是希望获取点击拍摄控件的瞬间的图像;因此,在生成拍摄图像时,电子设备可以根据检测到点击拍摄控件的操作的时间信息,在ZSL队列中选取图像帧。
示例性地,电子设备检测到点击拍摄控件的操作时,获取的时间信息为时间标识1;ZSL队列中包括:时间标识1-图像帧1、时间标识2-图像帧2、时间标识3-图像帧3;基于时间标识1,电子设备可以在ZSL队列中选取图像帧1。
可选地,ZSL队列中存储的图像帧可以为Raw图像;其中,Raw图像是指图像传感器采集的原始图像数据。
可选地,可以直接从第二流程440中获取用于生成拍摄图像的图像帧。
S472、基于选取的图像帧生成拍摄图像。
示例性地,可以对选取的Raw图像进行处理,将Raw图像转换为YUV图像;将YUV图像可以转换为RGB图像用于显示;此外,可以将YUV图像转换为其他格式(例如,JPEG格式、JPG格式、GIF格式等)用于存储。
应理解,拍摄图像与真实缩略图像的区别在于,通常情况下拍摄图像的分辨率与图像质量优于真实缩略图像。
示例性地,可以对选取的Raw图像进行处理,将Raw图像转换为YUV图像;将YUV图像可以转换为RGB图像用于显示;此外,可以将YUV图像转换为其他格式(例如,JPEG格式、JPG格式、GIF格式等)用于存储。
可选地,S472包括但不限于以下步骤:
1.对选取的Raw图像进行Raw域算法,得到处理后的Raw图像;其中,Raw域算法包括但不限于:黑电平矫正处理、镜头阴影校正等算法;
2.将多帧处理后的Raw图像进行融合处理,得到融合后的Raw图像;
示例性地,对长曝光的Raw图像、短曝光的Raw图像与正常曝光的Raw图像进行融合处理,得到融合处理后的Raw图像。
3.融合后的Raw图像转换至YUV颜色空间,得到YUV图像;即得到拍摄图像;
4.将YUV图像转换为RGB图像,对RGB图像进行缩放处理,得到拍摄图像对应的缩略图像;
可选地,可以对YUV图像进行缩放处理,得到小尺寸的YUV图像;将小尺寸的YUV图像转换为小尺寸的RGB图像;显示小尺寸的RGB图像。
5.将YUV图像转换为其他存储格式的图像,其他存储格式的图像用于在电子设备中存储。可选地,上述为举例对S472的实体方式进行举例说明;S472可以参见现有的任意一种生成拍摄图像的算法,本申请对此不作任何限定。
S480、在第三时刻,显示拍摄图像的缩略图像。
其中,第三时刻在第二时刻之后。
示例性地,在第三时刻显示拍摄图像的缩略图像的界面示意图如后续图8中的(a)所示。
可选地,拍摄图像的缩略图像可以是指在生成拍摄图像之后,对拍摄图像进行缩放处理得到的缩略图像。
应理解,假设虚假缩略图像的图像尺寸为第一尺寸,真实缩略图像的图像尺寸为第二尺寸,拍摄图像的图像尺寸为第三尺寸;其中,第一尺寸与第二尺寸相同;第三尺寸大于第一尺寸,或者,第三尺寸大于第二尺寸。
应理解,拍摄图像可以是指一次拍摄图像生成的真图;与真实缩略图像相比,拍摄图像无需进行下采样处理;此外,拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,拍摄图像的图像质量优于真实缩略图像的图像质量。
需要说明的是,在电子设备生成拍摄图像后,在相机应用程序的显示界面中可以显示对拍摄图像进行缩放处理后得到的缩略图像,如图8中的(a)所示;此时,在相册应用程序中存储的为拍摄图像,如图8中的(b)所示的图像111。
示例性地,对于同一拍摄对象,虚假缩略图如图4中的1所示;真实缩略图如图4中的11所示;拍摄图像如图4中的111所示。
可选地,在电子设备的相册应用程序中存储拍摄图像;在存储拍摄图像时,可以通过拍摄图像直接替换真实缩略图像。
示例性地,电子设备的相册应用程序中可以包括缓存模块;在第一时刻,缓存模块中的第一存储空间用于存储虚假缩略图像;在第二时刻,缓存模块中的第一存储空间用于存储真实缩略图像;例如,在第二时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储空间存储真实缩略图像;在第三时刻,缓存模块中的第一存储空间用于存储拍摄图像;例如,在第三时刻,可以通过拍摄图像对真实缩略图像进行替换处理,删除真实缩略图像并在相同的存储空间存储拍摄图像。
应理解,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次拍摄;换 而言之,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次点击拍摄控件与弹起拍摄控件;此外,对于同一次拍摄,显示虚假缩略图像、显示真实缩略图与显示拍摄图像的缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示虚假缩略图像,则显示界面中不会显示真实缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示真实缩略图像,则显示界面中不会显示虚假缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示拍摄图像的缩略图像,则显示界面中不会显示虚假缩略图与真实缩略图像。
可选地,在本申请的实施例中,对于一次拍摄而言,电子设备生成虚假缩略图像所需的时长小于生成真实缩略图像所需的时长;电子设备生成真实缩略图像的时长小于生成拍摄图像的缩略图像所需的时长。
在本申请的实施例中,在生成拍摄图像之后,通过拍摄图像对电子设备中存储的真实缩略图像进行直接替换;与拍摄图像与真实缩略图像相比,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
图5是本申请实施例提供的一种软件架构图。
如图5所示,本申请实施例提供的软件架构可以包括应用程序层、应用程序框架层、硬件抽象层与硬件层。
示例性地,应用程序层可以包括一系列应用程序包。如图5所示,应用程序包可以包括相机应用程序与相册应用程序。
例如,如图5所示,相机应用程序中可以包括预览存储模块;预览存储模块用于存储预览图像。
示例性地,应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
例如,如图5所示,在本申请实施例中,应用程序框架层可以包括点击拍摄控件检测模式、虚假缩略图像生成模块、弹起拍摄控件检测模块、缩略图像显示模块。关于各模块的功能,后续实施例中将详细描述,在此先不赘述。
示例性地,硬件抽象层可以为其他模块与硬件层之间提供接口。
例如,如图5所示,硬件抽象层可以包括真实缩略图像生成模块、ZSL队列存储模块、图像帧选取模块与拍摄图像生成模式。关于各模块的功能,后续实施例中将详细描述,在 此先不赘述。
示例性地,硬件层可以包括一系列硬件模块。如图5所示,硬件层可以包括相机模组。
接下来,以检测到用户一次拍摄操作为例,结合上述图5所示的软件架构图,详细描述电子设备中各模块之间的交互流程。
S511、相机应用程序向相机模组发送采集图像的指令。
示例性地,在运行相机应用程序之后,相机应用程序可以向相机模组发送采集图像的指令。
应理解,在相机模组获取到采集图像的指令后,可以生成两路数据流;其中,一路数据流用户生成预览图像;另一路数据流用于在后续生成拍摄图像。
S512、相机模组向预览存储模块中发送图像帧。
示例性地,相机模组向预览存储模块中发送的图像帧用于生成预览图像。
S513、相机模组向ZSL队列存储模块发送图像帧。
示例性地,相机模组向预览存储模块中发送的图像帧用于生成拍摄图像。
可选地,S513与S512可以同时执行。例如,在点击拍摄控件检测模块检测到点击拍摄控件的操作时,触发步骤S513与步骤S514。
S514、机应用程序中的拍摄控件被点击,触发拍照事件;点击拍摄模块检测到拍摄控件被点击的操作。
具体的,块检测到点击拍摄控件的操作的相关描述,可以参考前述步骤S420中的相关,在此不再赘述。
S515、点击拍摄检测模块向虚假缩略图像生成模块发送信息,该信息可以包括检测到拍摄控件被点击的时间信息。
S516、虚假缩略图像生成模块用于根据时间信息从预览存储模块中获取预览图像;对预览图像进行缩放处理,生成虚假缩略图像。
可选地,生成虚假缩略图像的实现方式可以参数图4所示的第一流程430的相关描述,此处不再赘述。
S517、点击拍摄检测模块向图像帧选取模块发送信息,该信息可以包括检测到拍摄控件被点击的时间信息。
S518、图像帧选取模块用于根据时间信息从ZSL队列存储模块中获取原始图像数据。
S519、真实缩略图像生成模块用于对图像旋转模块发送的原始图像数据进行图像处理,生成真实缩略图像。
可选地,生成真实缩略图像的实现方式可以参数图4所示的第二流程440的相关描述,此处不再赘述。
S520、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。
可选地,在弹起拍摄控件检测模块检测到弹起拍摄控件的操作时,可以触发步骤S521与步骤S525。
S521、弹起拍摄控件检测向缩略图像显示模块发送指令,该指令用于指示缩略图像显示模块显示缩略图像。
S522、缩略图像显示模块获取虚假缩略图像生成模块中的虚假缩略图像。
S523、相机应用程序获取缩略图像显示模块发送的虚假缩略图像,并显示虚假缩略图 像。
S524、相册应用程序获取缩略图像显示模块发送的虚假缩略图像,显示并存储虚假缩略图像。
S525、弹起拍摄控件检测控件用于向拍摄图像生成模块发送指令,该指令用于指示拍摄图像生成模块获取图像帧生成拍摄图像。
S526、拍摄图像生成模块用于获取ZSL队列存储模块中的图像帧,并对图像帧进行处理生成拍摄图像。
可选地,生成拍摄图像的实现方式可以参数图4所示的第三流程470的相关描述,此处不再赘述。
S527、真实缩略图像生成模块用于在生成真实缩略图像后向缩略图像显示模块发送真实缩略图像。
S528、相机应用程序获取缩略图像显示模块发送的真实缩略图像,并显示真实缩略图像。
S529、相册应用程序获取缩略图像显示模块发送的真实缩略图像,显示真实缩略图像并对通过真实缩略图像对存储的虚假缩略图像进行替换处理。
S530、拍摄图像生成模块用于在生成拍摄图像后向缩略图像显示模块发送拍摄图像。
S531、相机应用程序用于获取缩略图像显示模块发送的拍摄图像,并显示拍摄图像的缩略图像。
S532、相册应用程序用于获取缩略图像显示模块发送的拍摄图像,显示拍摄图像并对通过拍摄图像对存储的真实缩略图像进行替换处理。
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
下面结合图6与图7,以电子设备检测到一次拍摄操作的界面示意图进行举例说明。
示例性地,在T(10)时刻电子设备检测到运行相机应用程序,如图6中的(a)所示的为相机应用程序的预览界面610;在预览界面610中包括第一拍摄对象611、拍摄控件612与缩略图显示控件613;其中,缩略图显示控件613中显示的缩略图像为上一次拍摄图像的缩略图像;图6中的(b)所示的为相册应用程序的示意图,在相册显示界面620中包括第一拍摄图像621与第二拍摄图像622;其次,在相册应用程序中包括缓存模块630,缓存模块630中包括第一拍摄图像621与第二拍摄图像622。
例如,根据图6中的(a)与图6中的(b)所示可以看出,预览界面610中缩略图控 件612中显示的缩略图像为第一拍摄图像621对应的缩略图像;若电子设备检测到点击缩略图控件612的操作,则可以索引至相册应用程序中的第一拍摄图像621,并显示第一拍摄图像621。
应理解,相机应用程序的显示界面620中不显示缓存模块630;缓存模块630为电子设备中用于存储图像的模块。
示例性地,在T(11)时刻,电子设备检测到点击拍摄控件612的操作,如图6中的(c)所示;此时,缩略图显示控件613中显示的缩略图像为上一次完成拍摄图像的缩略图像(例如,第一拍摄图像621的缩略图像);在电子设备检测到用户点击拍摄控件612的操作时,相册应用程序的显示界面如图6中的(d)所示;在T(12)时刻,电子设备检测到弹起拍摄控件612的操作,显示显示界面614中显示第一拍摄对象的虚假缩略图像;其中,拍摄界面614中包括第二拍摄对象615,缩略图显示控件613中显示的缩略图像为第一拍摄对象611的虚假缩略图像,如图7中的(a)所示;此时,相册应用程序的显示界面620中包括第一拍摄对象的虚假缩略图像1、第一拍摄图像621与第二拍摄图像622;缓存模块630中包括第一拍摄对象的虚假缩略图像、第一拍摄图像与第二拍摄图像;在T(13)时刻,在电子设备生成真实缩略图像之后,显示显示界面616,显示界面616中包括第二拍摄对象615、缩略图显示控件612与拍摄控件612,缩略图显示控件613中显示第一拍摄对象的真实缩略图像,如图7中的(c)所示;此时,相机应用程序显示显示界面624中包括第一拍摄对象的真实缩略图像11、第一拍摄图像621与第二拍摄图像622;缓存模块630中存储第一拍摄对象的真实缩略图像、第一拍摄图像621与第二拍摄图像622。
需要说明的是,在电子设备中生成第一拍摄对象的真实缩略图像之后,显示界面中显示真实缩略图像,且在相册应用程序中通过第一拍摄对象的真实缩略图像对第一拍摄对象的虚假缩略图像进行替换处理。
可选地,生成第一拍摄对象的虚假缩略图像的实现方式可以参见图4所示的第一流程430,此处不再赘述。
可选地,生成第一拍摄对象的真实缩略图像的实现方式可以参见图4所示的第二流程440,此处不再赘述。
示例性地,在T(14)时刻,在电子设备生成第一拍摄对象的拍摄图像之后,显示显示界面617,显示界面617中包括第二拍摄对象615、缩略图显示控件613与拍摄控件612;缩略图显示控件613中显示第一拍摄对象的拍摄图像的缩略图像,如图8中的(a)所示;此时,相机应用程序显示显示界面625,显示界面625中包括第一拍摄对象的拍摄图像111、第一拍摄图像621与第二拍摄图像622;缓存模块630中存储第一拍摄对象的拍摄图像、第一拍摄图像与第二拍摄图像。
需要说明的是,在电子设备中生成第一拍摄对象的拍摄图像之后,显示界面中显示拍摄图像的缩略图像,且在相册应用程序中通过第一拍摄对象的拍摄图像对第一拍摄对象的真实缩略图像进行替换处理。
可选地,生成第一拍摄对象的拍摄图像的实现方式可以参见图4所示的第三流程470,此处不再赘述。
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩 略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
实现方式二
可选地,电子设备检测到两次拍摄操作;例如,电子设备依次检测到:第一次点击拍摄控件、第一次弹起拍摄控件、第二次点击拍摄控件与第二次弹起拍摄控件。
示例一
可选地,在电子设备生成第二次拍摄的虚假缩略图像时,电子设备已生成第一次拍摄的虚假缩略图像、第一拍摄的真实缩略图像且未生成第一拍摄的拍摄图像。
例如,电子设备生成图像的顺序依次为:第一次拍摄的虚假缩略图像1、第一次拍摄的真实缩略图像11、第二次拍摄的虚假缩略图像2、第一次拍摄的拍摄图像111、第二次拍摄的真实缩略图像22、与第二次拍摄的拍摄图像222。
图9是本申请实施例提供的一种软件架构图。
如图9所示,本申请实施例提供的软件架构可以包括应用程序层、应用程序框架层、硬件抽象层与硬件层。
示例性地,应用程序层可以包括一系列应用程序包。如图9所示,应用程序包可以包括相机应用程序与相册应用程序。
例如,如图9所示,相机应用程序中可以包括预览存储模块;预览存储模块用于存储预览图像。
示例性地,应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
例如,如图9所示,在本申请实施例中,应用程序框架层可以包括点击拍摄控件检测模式、虚假缩略图像生成模块、弹起拍摄控件检测模块、缩略图像显示模块。关于各模块的功能,后续实施例中将详细描述,在此先不赘述。
示例性地,硬件抽象层可以为其他模块与硬件层之间提供接口。
例如,如图9所示,硬件抽象层可以包括真实缩略图像生成模块、ZSL队列存储模块、图像帧选取模块与拍摄图像生成模式。关于各模块的功能,后续实施例中将详细描述,在此先不赘述。
示例性地,硬件层可以包括一系列硬件模块。如图9所示,硬件层可以包括相机模组。
接下来,以上述情形一为例,结合上述图9所示的软件架构图,详细描述电子设备中各模块之间的交互流程。
S711、相机应用程序向相机模组发送采集图像的指令。
示例性地,在运行相机应用程序之后,相机应用程序可以向相机模组发送采集图像的 指令。
应理解,在相机模组获取到采集图像的指令后,可以生成两路数据流;其中,一路数据流用户生成预览图像;另一路数据流用于在后续生成拍摄图像。
S712、相机模组向预览存储模块中发送图像帧。
示例性地,相机模组向预览存储模块中发送的图像帧用于生成预览图像。
S713、相机模组向ZSL队列存储模块发送图像帧。
示例性地,相机模组向预览存储模块中发送的图像帧用于生成拍摄图像。
可选地,S713与S712可以同时执行。
S714、机应用程序中的拍摄控件被点击,触发拍照事件;点击拍摄模块检测到拍摄控件被点击的操作;例如,检测到第一次点击拍摄控件的操作。
具体的,块检测到点击拍摄控件的操作的相关描述,可以参考前述步骤S420中的相关描述,在此不再赘述。
S715、点击拍摄检测模块向虚假缩略图像生成模块发送第一信息,该第一信息可以包括检测到第一次点击拍摄控件的时间信息1。
S716、虚假缩略图像生成模块用于根据时间信息1从预览存储模块中获取预览图像1;对预览图像1进行缩放处理,生成虚假缩略图像1。
例如,虚假缩略图像生成模块用于根据第一次检测到点击拍摄控件的时间信息1,从预览存储模块中获取预览图1;对预览图像1进行缩放处理,生成虚假缩略图像1。
示例性地,生成虚假缩略图像1的实现方式可以参见图4中的第一流程430的相关描述,此处不再赘述。
S717、点击拍摄检测模块向图像帧选取模块发送第二信息,该第二信息可以包括检测到第一次点击拍摄控件的时间信息1。
S718、图像帧选取模块用于根据时间信息1从ZSL队列存储模块中获取原始图像数据1。
S719、真实缩略图像生成模块用于对图像选取模块发送的原始图像数据1进行图像处理,生成真实缩略图像11。
S720、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。
示例性地,弹起拍摄控件检测模块检测到第一次弹起拍摄控件的操作。
可选地,在本申请的实施例中,弹起拍摄控件检测模块与点击拍摄控件检测模块可以为同一模块;本申请对此不作任何限定。
可选地,弹起拍摄控件检测模块检测到第一次弹起拍摄控件的操作时,可以触发显示虚假缩略图像1(例如,S721至S724)与生成第一次拍摄的拍摄图像(例如,S725与S726)的流程。
示例性地,可以同时触发显示虚假缩略图像与生成第一次拍摄的拍摄图像的流程。
S721、弹起拍摄控件检测向缩略图像显示模块发送第一指令,该第一指令用于指示缩略图像显示模块显示缩略图像。
S722、缩略图像显示模块获取虚假缩略图像生成模块中的虚假缩略图像1。
S723、相机应用程序获取缩略图像显示模块发送的虚假缩略图像1,并显示虚假缩略图像1。
S724、相册应用程序获取缩略图像显示模块发送的虚假缩略图像1,显示并存储虚假缩略图像1。
S725、弹起拍摄控件检测控件用于向拍摄图像生成模块发送第二指令,该第二指令用于指示拍摄图像生成模块获取图像帧生成拍摄图像111。
S726、拍摄图像生成模块用于获取ZSL队列存储模块中的图像帧,并对图像帧进行处理生成拍摄图像111。
示例性地,生成拍摄图像111的实现方式可以参见图4中的第三流程470的相关描述,此处不再赘述。
S727、真实缩略图像生成模块用于生成真实缩略图像11,并在生成真实缩略图像11后向缩略图像显示模块发送真实缩略图像11。
示例性地,生成真实缩略图像11的实现方式可以参见图4中的第二流程440的相关描述,此处不再赘述。
S728、相机应用程序获取缩略图像显示模块发送的真实缩略图像11,并显示真实缩略图像11。
S729、相册应用程序获取缩略图像显示模块发送的真实缩略图像11,显示真实缩略图像并对通过真实缩略图像11对存储的虚假缩略图像1进行替换处理。
S730、点击拍摄模块检测到拍摄控件被点击的操作;例如,检测到第二次点击拍摄控件的操作。
S731、虚假缩略图像生成模块用于从点击拍摄检测模块获取第二次点击拍摄控件的时间信息2。
S732、虚假缩略图像生成模块用于根据第二次检测到点击拍摄控件的时间信息2从预览存储模块中获取预览图像2;对预览图像2进行缩放处理,生成虚假缩略图像2。
例如,虚假缩略图像生成模块用于根据第二次检测到点击拍摄控件的时间信息2,从预览存储模块中获取预览图2;对预览图像2进行缩放处理,生成虚假缩略图像2。
示例性地,生成虚假缩略图像2的实现方式可以参见图4中的第一流程430的相关描述,此处不再赘述。
S733、虚假缩略图像生成模块用于在生成虚假缩略图像2之后,向缩略图像显示模块发送虚假缩略图像2。
示例性地,生成虚假缩略图像2的实现方式可以参见图4中的第一流程430的相关描述,此处不再赘述。
S734、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。
例如,弹起拍摄控件模块检测到第二次弹起拍摄控件的操作。
可选地,弹起拍摄控件检测模块检测到第二次弹起拍摄控件的操作时,可以触发显示虚假缩略图像2与生成第二次拍摄的拍摄图像的流程。
S735、弹起拍摄控件检测模块用于向缩略图像显示模块发送第三指令,该第三指令用于指示缩略图像显示模块显示缩略图像2。
S736、相机应用程序用于接收缩略图像显示模块发送的虚假缩略图像2,并显示虚假缩略图像2。
S737、相册应用程序用于接收缩略图像显示模块发送的虚假缩略图像2,显示并存储 虚假缩略图像2。
S738、拍摄图像生成模块用于在生成第一次拍摄的拍摄图像111后向缩略图像显示模块发送拍摄图像111。
需要说明的是,由于第二次点击拍摄控件的时间信息2晚于第一次点击拍摄控件的时间信息1;相机应用程序中通常会根据时间信息,显示与当前时刻最接近时刻的缩略图像;因此,在相机应用程序中显示第二次拍摄的虚假缩略图像2之后,电子设备不会再显示第一次拍摄的拍摄图像111的缩略图像。
S739、相机应用程序用于接收缩略图像显示模块发送的拍摄图像,显示拍摄图像并对通过拍摄图像对存储的真实缩略图像进行替换处理。
S740、图像帧选取模块用于从点击拍摄模块获取第二次点击拍摄控件的时间信息2。
S741、图像帧选取模块用于根据时间信息2从ZSL队列存储模块中获取原始图像数据2。
S742、真实缩略图像生成模块用于对图像选取模块发送的原始图像数据2进行图像处理,生成真实缩略图像22。
S743、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。
示例性地,弹起拍摄控件检测模块用于检测第二次弹起相机应用程序中的拍摄控件的操作。
S744、弹起拍摄控件检测控件用于向拍摄图像生成模块发送第四指令,该第四指令用于指示拍摄图像生成模块获取图像帧生成第二次拍摄的拍摄图像222。
S745、拍摄图像生成模块用于获取ZSL队列存储模块中的图像帧,并对图像帧进行处理生成拍摄图像222。
示例性地,生成拍摄图像222的实现方式可以参见图4中的第三流程470的相关描述,此处不再赘述。
S746、拍摄图像生成模块用于生成第二次拍摄的真实缩略图像22,并在生成真实缩略图像22后向缩略图像显示模块发送真实缩略图像22。
示例性地,生成真实缩略图像22的实现方式可以参见图4中的第二流程440的相关描述,此处不再赘述。
S747、相机应用程序获取缩略图像显示模块发送的真实缩略图像22,并显示真实缩略图像22。
S748、相册应用程序用于接收缩略图像显示模块发送的真实缩略图像22,显示真实缩略图像22;并对通过真实缩略图像22对存储的虚假缩略图像2进行替换处理。
S749、拍摄图像生成模块用于在生成拍摄图像222后向缩略图像显示模块发送拍摄图像222。
S750、相机应用程序用于接收缩略图像显示模块发送的拍摄图像222,并显示拍摄图像222的缩略图像。
S751、相册应用程序用于接收缩略图像显示模块发送的拍摄图像222,显示拍摄图像222;并通过拍摄图像222对存储的真实缩略图像22进行替换处理。
可选地,图9中所示的点击拍摄控件检测模块与弹起拍摄控件检测模块可以为同一个模块;也可以为不同模块,本申请对此从不作任何限定。
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
下面结合图10至图14,对上述示例一的界面示意图进行举例说明。
示例性地,在T(20)时刻电子设备检测到运行相机应用程序,如图10中的(a)所示的为相机应用程序的预览界面810;在预览界面810中包括第一拍摄对象811、拍摄控件812与缩略图显示控件813;其中,缩略图显示控件813中显示的缩略图像为上一次拍摄图像的缩略图像;图10中的(b)所示的为相册应用程序的显示界面820,在显示界面820中包括第一拍摄图像821;其次,在相册应用程序中包括缓存模块830,缓存模块830中包括第一拍摄图像821。
例如,根据图10中的(a)与图10中的(b)所示可以看出,预览界面810中缩略图控件812中显示的缩略图像为第一拍摄图像821对应的缩略图像;若电子设备检测到点击缩略图控件812的操作,则可以索引至相册应用程序中的第一拍摄图像821,并显示第一拍摄图像821。
应理解,相机应用程序的显示界面820中不显示缓存模块830;缓存模块830为电子设备中用于存储图像的模块。
示例性地,在T(21)时刻,电子设备检测到点击拍摄控件812的操作;例如,检测到第一次点击拍摄控件812的操作,如图10中的(c)所示;此时,缩略图显示控件813中显示的缩略图像为上一次完成拍摄图像的缩略图像(例如,第一拍摄图像821的缩略图像);在电子设备检测到用户点击拍摄控件812的操作时,相册应用程序的显示界面如图10中的(d)所示;在T(22)时刻,电子设备检测到弹起拍摄控件812的操作,显示显示界面814;例如,检测到第一次弹起拍摄控件812的操作,显示显示界面814;其中,显示界面814中包括第二拍摄对象815与缩略图显示控件813,缩略图显示控件813中显示的缩略图像为第一拍摄对象811的虚假缩略图像,如图11中的(a)所示;此时,如图11中的(b)所示,相册应用程序的显示界面823中包括第一拍摄对象的虚假缩略图像1与第一拍摄图像821;缓存模块830中包括第一拍摄对象的虚假缩略图像与第一拍摄图像;在T(23)时刻,在电子设备生成第一拍摄对象的真实缩略图像之后,显示显示界面816;显示界面816中包括第二拍摄对象815、缩略图显示控件813与拍摄控件812,缩略图显示控件8613中显示第一拍摄对象的真实缩略图像,如图11中的(c)所示;此时,如图11中的(d)所示,相机应用程序显示显示界面824中包括第一拍摄对象的真实缩略图像11与第一拍摄图像821;缓存模块830中存储第一拍摄对象的真实缩略图像与第一拍摄图 像。
需要说明的是,在电子设备中生成第一拍摄对象的真实缩略图像之后,显示界面中显示第一拍摄对象的真实缩略图像,且在相册应用程序中通过第一拍摄对象的真实缩略图像11对第一拍摄对象的虚假缩略图像1进行替换处理。
可选地,生成第一拍摄对象的虚假缩略图像的实现方式可以参见图4所示的第一流程430,此处不再赘述。
可选地,生成第一拍摄对象的真实缩略图像的实现方式可以参见图4所示的第二流程440,此处不再赘述。
示例性地,在T(24)时刻,电子设备检测到点击拍摄控件812的操作,显示显示界面816;例如,检测到第二次点击拍摄控件812的操作,如图12中的(a)所示;显示界面816中包括第二拍摄对象815与缩略图显示控件813,缩略图显示控件813中显示的为第一拍摄对象811的真实缩略图像;此时,如图12中的(b)所示,相册应用程序的显示界面824中包括第一拍摄对象的真实缩略图像11与第一拍摄图像821;缓存模块830中包括第一拍摄对象的真实缩略图像与第一拍摄图像。在T(25)时刻,电子设备检测到弹起拍摄控件812的操作,显示显示界面817;例如,检测到第二次弹起拍摄控件812的操作,显示显示界面817;其中,显示界面817中包括第三拍摄对象与缩略图显示控件813,缩略图显示控件813中显示的缩略图像为第二拍摄对象815的虚假缩略图像,如图12中的(c)所示;此时,如图12中的(d)所示,册应用程序的显示界面825中包括第二拍摄对象的虚假缩略图像2、第一拍摄对象的真实缩略图像11与第一拍摄图像821;缓存模块830中包括第二拍摄对象的虚假缩略图像、第一拍摄对象的真实缩略图像与第一拍摄图像。
应理解,在T(24)时刻与T(25)时刻时,电子设备还未生成第一次拍摄对象的拍摄图像,且检测到了第二次拍摄操作。
示例性地,在T(26)时刻,如图13中的(a)所示,在电子设备生成第一拍摄对象的拍摄图像后,显示显示界面817包括第三拍摄对象、拍摄控件812与缩略图显示控件813;显示界面817中包括此时,如图13中的(b)所示,相册应用程序的显示界面826中包括第二拍摄对象的虚假缩略图像2、第一拍摄对象的拍摄图像111与第一拍摄图像821;缓存模块830中包括第二拍摄对象的虚假缩略图像、第一拍摄对象的真实图像与第一拍摄图像。
可选地,在电子设备中生成第一拍摄对象的拍摄图像之后,在相册应用程序中通过第一拍摄对象的拍摄图像对第一拍摄对象的真实缩略图像进行替换处理。
可选地,生成第一拍摄对象的拍摄图像的实现方式可以参见图4所示的第三流程470,此处不再赘述。
应理解,由于第二次拍摄的操作晚于第一次拍摄;因此,在电子设备显示第二拍摄对象的缩略图像之后,即使电子设备生成第一拍摄对象的拍摄图像,相机应用程序中的显示界面中也不会在缩略图显示控件中显示第一拍摄对象的拍摄图像的缩略图像;因此,在T(26)时刻与T(25)时刻相机应用程序的显示界面相同。
还应理解,第二次拍摄与第一次拍摄为两次独立的拍摄过程;因此,在相机应用程序中的缓存模块中,在同一次拍摄过程中,会通过在后生成的真实缩略图像替换在先生成的缩略图像;通过在后生成的拍摄图像替换在前生成的真实缩略图像;但是,第二次拍摄的图像并不会对第一次拍摄的图像进行替换。
示例性地,在T(27)时刻,电子设备生成第二拍摄对象的真实缩略图像,显示显示界面818,如图13中的(c)所示;其中,显示界面818中包括第三拍摄对象与缩略图显示控件813,缩略图显示控件813中显示的为第二拍摄对象的真实缩略图像;此时,如图13中的(d)所示,相册应用程序的显示界面827中包括第二拍摄对象的真实缩略图像22、第一拍摄对象的拍摄图像111与第一拍摄图像821;缓存模块830中第二拍摄对象的真实缩略图像、第一拍摄对象的拍摄图像与第一拍摄图像。
示例性地,在T(28)时刻,电子设备生成第二拍摄对象的真实图像,显示显示界面819,如图14中的(a)所示;其中,显示界面819中包括第三拍摄对象与缩略图显示控件813,缩略图显示控件813中显示的为第二拍摄对象815的拍摄图像的缩略图像;此时,如图14中的(b)所示,相册应用程序的显示界面828中包括第二拍摄对象的拍摄图像222、第一拍摄对象的拍摄图像111与第一拍摄图像821;缓存模块830中第二拍摄对象的拍摄图像、第一拍摄对象的拍摄图像与第一拍摄图像。
需要说明的是,在生成拍摄图像之后相册应用程序中存储拍摄图像,且在相机应用程序中显示对拍摄图像进行缩放处理后的缩略图像;而在电子设备生成真实缩略图像或者虚假缩略图像之后,在相册应用程序中存储真实缩略图像或者虚假缩略图像,且在相机应用程序中显示真实缩略图像或者虚假缩略图像。
可选地,生成第二拍摄对象的拍摄图像的实现方式可以参见图4所示的第三流程470,此处不再赘述。
示例二
可选地,在电子设备生成第二次拍摄的虚假缩略图像时,电子设备已生成第一次拍摄的虚假缩略图像、第一拍摄的真实缩略图像与第一拍摄的拍摄图像。具体实现过程可以参见于示例一的相关描述,此处不再赘述。
示例三
可选地,在电子设备生成第二次拍摄的虚假缩略图像时,电子设备已生成第一次拍摄的虚假缩略图像,且未生成第一拍摄的真实缩略图像与第一拍摄的拍摄图像。具体实现过程可以参见于示例一的相关描述,此处不再赘述。
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
下面结合图15与图16对电子设备中开启显示虚假缩略图像,即执行本申请实施例的显示缩略图像的方法的界面示意图进行描述。
在一个示例中,如图15中的(b)所示电子设备检测到点击智能控件840的操作之后,执行本申请实施例提供的显示缩略图像的方法。
示例性地,在电子设备运行相机应用程序后,显示如图15中的(a)所示的预览界面;在预览界面中,包括预览图像与智能控件840;电子设备检测到点击智能控件840的操作,如图15中的(b)所示;在电子设备检测到点击智能控件840的操作之后,执行本申请实施例提供的显示缩略图像的方法。
在一个示例中,如图16中的(d)所示电子设备检测到点击控件851的操作之后,执行本申请实施例提供的显示缩略图像的方法。
示例性地,电子设备中运行相机应用程序后,可以显示如图16中的(a)所示的预览界面;预览界面中包括预览图像与设置控件850;电子设备检测到点击设置控件850的操作,如图16中的(b)所示;在电子设备检测到点击设置控件850的操作之后,显示设置界面,如图16中的(c)所示;设置界面中包括快速缩略图像的控件851;电子设备检测到点击快速缩略图像的控件851的操作,如图16中的(d)所示;在电子设备检测到快速缩略图像的控件851的操作之后,执行本申请实施例提供的显示缩略图像的方法。
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。
需要说明的是,上述为对电子设备应用于拍照像场景的显示界面进行举例说明,本申请对此不作任何限定。
应理解,上述举例说明是为了帮助本领域技术人员理解本申请实施例,而非要将本申请实施例限于所例示的具体数值或具体场景。本领域技术人员根据所给出的上述举例说明,显然可以进行各种等价的修改或变化,这样的修改或变化也落入本申请实施例的范围内。
上文结合图1至图16详细描述了本申请实施例提供的显示缩略图像的方法;下面将结合图17至图18详细描述本申请的装置实施例。应理解,本申请实施例中的装置可以执行前述本申请实施例的各种方法,即以下各种产品的具体工作过程,可以参考前述方法实施例中的对应过程。
图17是本申请实施例提供的一种电子设备的结构示意图。该电子设备900包括显示模块910与处理模块920。
在一种实现方式中,显示模块910用于在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集 的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;处理模块920用于检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄,所述拍摄可以包括拍照;响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;显示模块910还用于响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。
可选地,作为一个实施例,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
可选地,作为一个实施例,处理模块920还用于:
响应于所述第二操作,生成第一拍摄图像;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
可选地,作为一个实施例,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,处理模块920还用于:
在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
可选地,作为一个实施例,处理模块920具体用于:
获取检测到所述第一操作的时间信息;
基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。
可选地,作为一个实施例,所述第二图像处理包括第一算法处理与第二算法处理,所述第一算法为第一颜色空间的算法,所述第二算法为将第一颜色空间的图像转换为第二颜色空间的图像的算法,处理模块920具体用于:
对所述第一图像进行第一算法处理,得到第一颜色空间的图像;
对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;
对所述融合图像进行第二算法处理,生成所述第一拍摄图像。
可选地,作为一个实施例,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。
可选地,作为一个实施例,所述图像质量包括图像纹理信息或者图像亮度信息。
在一种实现方式中,显示模块910用于在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;处理模块920用于检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄,所述拍摄可以包括拍照;响应于所述第一操作,在 相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;显示模块910用于响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;处理模块920用于在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;显示模块910用于响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。
可选地,作为一个实施例,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
可选地,作为一个实施例,处理模块920具体用于:
响应于所述第二操作,生成第一拍摄图像;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
可选地,作为一个实施例,处理模块920还用于:
响应于所述第四操作,生成第二拍摄图像;
基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。
可选地,作为一个实施例,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。
可选地,作为一个实施例,处理模块920还用于:
在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
可选地,作为一个实施例,处理模块920还用于:
在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;
在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域 的所述第五缩略图像进行替换处理。
可选地,作为一个实施例,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。
可选地,作为一个实施例,所述图像质量包括图像纹理信息或者图像亮度信息。
需要说明的是,上述电子设备900以功能模块的形式体现。这里的术语“模块”可以通过软件和/或硬件形式实现,对此不作具体限定。
例如,“模块”可以是实现上述功能的软件程序、硬件电路或二者结合。硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。
因此,在本申请的实施例中描述的各示例的单元,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
图18示出了本申请提供的一种电子设备的结构示意图。图18中的虚线表示该单元或该模块为可选的;电子设备1000可以用于实现上述方法实施例中描述的显示缩略图像的方法。
电子设备1000包括一个或多个处理器1001,该一个或多个处理器1001可支持电子设备1000实现方法实施例中的显示缩略图像的方法。处理器1001可以是通用处理器或者专用处理器。例如,处理器1001可以是中央处理器(central processing unit,CPU)、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件,如分立门、晶体管逻辑器件或分立硬件组件。
可选地,处理器1001可以用于对电子设备1000进行控制,执行软件程序,处理软件程序的数据。电子设备1000还可以包括通信单元1005,用以实现信号的输入(接收)和输出(发送)。
例如,电子设备1000可以是芯片,通信单元1005可以是该芯片的输入和/或输出电路,或者,通信单元1005可以是该芯片的通信接口,该芯片可以作为终端设备或其它电子设备的组成部分。
又例如,电子设备1000可以是终端设备,通信单元1005可以是该终端设备的收发器,或者,通信单元1005可以1000中可以包括一个或多个存储器1002,其上存有程序1004,程序1004可被处理器1001运行,生成指令1003,使得处理器1001根据指令1003执行上述方法实施例中描述的显示缩略图像的方法。
可选地,存储器1002中还可以存储有数据。
可选地,处理器1001还可以读取存储器1002中存储的数据,该数据可以与程序1004存储在相同的存储地址,该数据也可以与程序1004存储在不同的存储地址。
可选地,处理器1001和存储器1002可以单独设置,也可以集成在一起,例如,集成在终端设备的***级芯片(system on chip,SOC)上。
示例性地,存储器1002可以用于存储本申请实施例中提供的显示缩略图像的方法的相关 程序1004,处理器1001可以用于在执行显示缩略图像的方法时调用存储器1002中存储的显示缩略图像的方法的相关程序1004,执行本申请实施例的显示缩略图像的方法;例如,在第一时刻显示第一显示界面,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,第一控件为指示拍摄的控件;缩略图显示区域用于显示缩略图像;第一预览图像为电子设备采集的第一图像经过预览处理生成的图像,第一图像为电子设备在第一时刻实时采集的图像;检测到对第一控件的第一操作,第一操作用于指示开始拍摄,拍摄可以包括拍照;响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,第一缩略图像为第一图像经过第一图像处理生成的缩略图像;第二缩略图像为第一图像经过第二图像处理生成的缩略图像,第一图像处理与第二图像处理不同;检测到对第一控件的第二操作,第二操作用于指示结束拍摄;响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像,其中,第三缩略图像的图像质量优于第二缩略图像。
可选地,本申请还提供了一种计算机程序产品,该计算机程序产品被处理器1001执行时实现本申请中任一方法实施例中的显示缩略图像的方法。
例如,该计算机程序产品可以存储在存储器1002中,例如是程序1004,程序1004经过预处理、编译、汇编和链接等处理过程最终被转换为能够被处理器1001执行的可执行目标文件。
可选地,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机执行时实现本申请中任一方法实施例的显示缩略图像的方法。该计算机程序可以是高级语言程序,也可以是可执行目标程序。
例如,该计算机可读存储介质例如是存储器1002。存储器1002可以是易失性存储器或非易失性存储器,或者,存储器1002可以同时包括易失性存储器和非易失性存储器。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。例如,以上所描述的电子设备的实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。
另外,本文中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准总之,以上仅为本申请技术方案的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (21)

  1. 一种显示缩略图像的方法,其特征在于,应用于电子设备,包括:
    在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像,其中,所述第一控件为指示拍摄的控件,所述缩略图显示区域用于显示缩略图像,所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;
    检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;
    响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;
    检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;
    响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。
  2. 如权利要求1所述的方法,其特征在于,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
  3. 如权利要求1或2所述的方法,其特征在于,还包括:
    响应于所述第二操作,生成第一拍摄图像;
    基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
  4. 如权利要求3所述的方法,其特征在于,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,还包括:
    在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
    在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
  5. 如权利要求3或4所述的方法,其特征在于,还包括:
    获取检测到所述第一操作的时间信息;
    基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。
  6. 如权利要求3至5中任一项所述的方法,其特征在于,所述第二图像处理包括第一算法处理与第二算法处理,所述第一算法为第一颜色空间的算法,所述第二算法为将所述第一颜色空间的图像转换为第二颜色空间的图像的算法,所述生成第一拍摄图像,包括:
    对所述第一图像进行所述第一算法处理,得到所述第一颜色空间的图像;
    对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;
    对所述融合图像进行所述第二算法处理,生成所述第一拍摄图像。
  7. 如权利要求1至6中任一项所述的方法,其特征在于,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。
  8. 如权利要求1至7中任一项所述的方法,其特征在于,所述图像质量包括图像纹理信息或者图像亮度信息。
  9. 一种显示缩略图像的方法,其特征在于,应用于电子设备,包括:
    在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;
    检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;
    响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;
    检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;
    响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;
    在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;
    响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;
    检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;
    响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。
  10. 如权利要求9所述的方法,其特征在于,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。
  11. 如权利要求9或10所述的方法,其特征在于,所述生成第三缩略图像,包括:
    响应于所述第二操作,生成第一拍摄图像;
    基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。
  12. 如权利要求11所述的方法,其特征在于,还包括:
    响应于所述第四操作,生成第二拍摄图像;
    基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。
  13. 如权利要求12所述的方法,其特征在于,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储 所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。
  14. 如权利要求13所述的方法,其特征在于,还包括:
    在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;
    在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。
  15. 如权利要求13或14所述的方法,其特征在于,还包括:
    在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;
    在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域的所述第五缩略图像进行替换处理。
  16. 如权利要求9至15中任一项所述的方法,其特征在于,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。
  17. 如权利要求9至16中任一项所述的方法,其特征在于,所述图像质量包括图像纹理信息或者图像亮度信息。
  18. 一种电子设备,其特征在于,包括:
    一个或多个处理器和存储器;
    所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1至8,或者,9至17中任一项所述的方法。
  19. 一种芯片***,其特征在于,所述芯片***应用于电子设备,所述芯片***包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1至8,或者,9至17中任一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储了计算机程序,当所述计算机程序被处理器执行时,使得所述处理器执行权利要求1至8,或者9至17中任一项所述的方法。
  21. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码被电子设备运行时,使得所述电子设备执行权利要求1至8,或者9至17中任一项所述的方法。
PCT/CN2023/114173 2022-11-22 2023-08-22 显示缩略图像的方法和电子设备 WO2024109207A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211467867.9 2022-11-22
CN202211467867.9A CN116668837B (zh) 2022-11-22 2022-11-22 显示缩略图像的方法和电子设备

Publications (1)

Publication Number Publication Date
WO2024109207A1 true WO2024109207A1 (zh) 2024-05-30

Family

ID=87714154

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/114173 WO2024109207A1 (zh) 2022-11-22 2023-08-22 显示缩略图像的方法和电子设备

Country Status (2)

Country Link
CN (1) CN116668837B (zh)
WO (1) WO2024109207A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117499777A (zh) * 2023-09-15 2024-02-02 荣耀终端有限公司 一种图像显示方法和装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140321770A1 (en) * 2013-04-24 2014-10-30 Nvidia Corporation System, method, and computer program product for generating an image thumbnail
CN104754223A (zh) * 2015-03-12 2015-07-01 广东欧珀移动通信有限公司 一种生成缩略图的方法及拍摄终端
CN108124099A (zh) * 2017-12-14 2018-06-05 Tcl移动通信科技(宁波)有限公司 一种相机缩略图生成的方法、移动终端及存储介质
CN110166708A (zh) * 2019-06-13 2019-08-23 Oppo广东移动通信有限公司 夜景图像处理方法、装置、电子设备以及存储介质
CN111432121A (zh) * 2020-03-30 2020-07-17 Oppo广东移动通信有限公司 生成方法、电子装置和存储介质
CN112672035A (zh) * 2019-10-16 2021-04-16 青岛海信移动通信技术股份有限公司 一种缩略图生成方法和终端
CN116112787A (zh) * 2022-07-05 2023-05-12 荣耀终端有限公司 拍照时显示缩略图的方法和电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101751807B1 (ko) * 2014-08-27 2017-06-30 주식회사 큐램 이미지 처리 방법 및 그 시스템
CN107509038B (zh) * 2017-10-16 2019-10-15 维沃移动通信有限公司 一种拍摄方法及移动终端
CN110401766B (zh) * 2019-05-22 2021-12-21 华为技术有限公司 一种拍摄方法及终端
CN112449099B (zh) * 2019-08-30 2022-08-19 华为技术有限公司 一种图像处理方法、电子设备及云服务器
CN113497888B (zh) * 2020-04-07 2023-05-02 华为技术有限公司 照片预览方法、电子设备和存储介质
CN114500821B (zh) * 2020-10-26 2024-02-27 北京小米移动软件有限公司 拍照方法及装置、终端及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140321770A1 (en) * 2013-04-24 2014-10-30 Nvidia Corporation System, method, and computer program product for generating an image thumbnail
CN104754223A (zh) * 2015-03-12 2015-07-01 广东欧珀移动通信有限公司 一种生成缩略图的方法及拍摄终端
CN108124099A (zh) * 2017-12-14 2018-06-05 Tcl移动通信科技(宁波)有限公司 一种相机缩略图生成的方法、移动终端及存储介质
CN110166708A (zh) * 2019-06-13 2019-08-23 Oppo广东移动通信有限公司 夜景图像处理方法、装置、电子设备以及存储介质
CN112672035A (zh) * 2019-10-16 2021-04-16 青岛海信移动通信技术股份有限公司 一种缩略图生成方法和终端
CN111432121A (zh) * 2020-03-30 2020-07-17 Oppo广东移动通信有限公司 生成方法、电子装置和存储介质
CN116112787A (zh) * 2022-07-05 2023-05-12 荣耀终端有限公司 拍照时显示缩略图的方法和电子设备

Also Published As

Publication number Publication date
CN116668837A (zh) 2023-08-29
CN116668837B (zh) 2024-04-19

Similar Documents

Publication Publication Date Title
CN111212235B (zh) 一种长焦拍摄的方法及电子设备
WO2024109207A1 (zh) 显示缩略图像的方法和电子设备
CN115526787B (zh) 视频处理方法和装置
WO2024087804A1 (zh) 切换摄像头的方法与电子设备
CN115633262B (zh) 图像处理方法和电子设备
WO2023142830A1 (zh) 切换摄像头的方法与电子设备
WO2022083325A1 (zh) 拍照预览方法、电子设备以及存储介质
WO2021185374A1 (zh) 一种拍摄图像的方法及电子设备
WO2023160221A1 (zh) 一种图像处理方法和电子设备
EP4262226A1 (en) Photographing method and related device
CN113744139A (zh) 图像处理方法、装置、电子设备及存储介质
WO2023060921A1 (zh) 图像处理方法与电子设备
CN115767290B (zh) 图像处理方法和电子设备
WO2023005355A1 (zh) 图像防抖方法与电子设备
US20220385814A1 (en) Method for generating plurality of content items and electronic device therefor
CN118433524A (zh) 显示缩略图像的方法和电子设备
CN116128739A (zh) 下采样模型的训练方法、图像处理方法及装置
CN114945019A (zh) 数据传输方法、装置及存储介质
WO2024109203A1 (zh) 拍照处理方法和电子设备
WO2023185127A1 (zh) 图像处理方法与电子设备
CN115767287B (zh) 图像处理方法与电子设备
WO2024045670A1 (zh) 生成高动态范围视频的方法和电子设备
WO2023035868A1 (zh) 拍摄方法及电子设备
WO2024067428A1 (zh) 高分辨率高帧率摄像方法和图像处理装置
CN117692763A (zh) 拍照方法、电子设备、存储介质及程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23893301

Country of ref document: EP

Kind code of ref document: A1