WO2024109207A1 - Method for displaying thumbnail, and electronic device - Google Patents
Method for displaying thumbnail, and electronic device Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 185
- 230000004044 response Effects 0.000 claims abstract description 69
- 238000012545 processing Methods 0.000 claims description 177
- 238000004422 calculation algorithm Methods 0.000 claims description 77
- 230000015654 memory Effects 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 23
- 238000007499 fusion processing Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 description 73
- 230000001960 triggered effect Effects 0.000 description 33
- 238000001514 detection method Methods 0.000 description 31
- 238000010586 diagram Methods 0.000 description 30
- 230000006870 function Effects 0.000 description 23
- 238000004891 communication Methods 0.000 description 12
- 239000003550 marker Substances 0.000 description 10
- 238000012937 correction Methods 0.000 description 8
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 6
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 6
- 238000003705 background correction Methods 0.000 description 6
- 230000001133 acceleration Effects 0.000 description 4
- 238000001303 quality assessment method Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 229920001621 AMOLED Polymers 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational 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
The present application relates to the field of terminals and provides a method for displaying a thumbnail, and an electronic device. The method comprises: displaying a first display interface at a first moment, the first display interface containing a first control, a thumbnail display area and a first preview image; detecting a first operation in respect of the first control, the first operation being used for instructing a start of photographing; in response to the first operation, saving a first thumbnail in a photo album application, and generating a second thumbnail; detecting a second operation in respect of the first control, the second operation being used for instructing an end of photographing; and, in response to the second operation, successively displaying in the thumbnail display area the first thumbnail, the second thumbnail and a third thumbnail, the image quality of the third thumbnail being superior to that of the second thumbnail. The technical solution of the present application can solve the problem of relatively long photographing response time of the electronic device, allowing the electronic device to quickly display the thumbnails.
Description
本申请要求于2022年11月22日提交国家知识产权局、申请号为202211467867.9、申请名称为“显示缩略图像的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on November 22, 2022, with application number 202211467867.9 and application name “Method and electronic device for displaying thumbnail images”, the entire contents of which are incorporated by reference in this application.
本申请涉及终端领域,具体地,涉及一种显示缩略图像的方法和电子设备。The present application relates to the field of terminals, and in particular, to a method and electronic device for displaying thumbnail images.
随着电子设备中拍照功能的发展,相机应用程序在电子设备中的应用越来越广泛。在相机应用中,当电子设备完成一次拍摄后,会在拍摄界面中显示缩略图像;用户通常以电子设备显示缩略图像看作是一次拍摄结束;其中,缩略图像中的图像内容是与本次实际拍摄图像的图像内容一致,根据该缩略图像可以查找到相册中存储的该缩略图像对应的图像;由于目前在电子设备检测到用户弹起拍摄控件的操作之后,才会触发电子设备生成缩略图像与拍摄图像;导致电子设备无法在检查到弹起拍摄控件的瞬间显示缩略图像,即电子设备检测到弹起拍摄控件与显示缩略图像之间的时长过长;导致用户的拍摄等待时间较长,使得用户的拍摄体验较差。With the development of the camera function in electronic devices, the application of camera applications in electronic devices is becoming more and more widespread. In the camera application, 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.
因此,如何快速地显示缩略图像,缩短拍摄等待时长成为一个亟需解决的问题。Therefore, how to quickly display thumbnail images and shorten the shooting waiting time becomes a problem that needs to be solved urgently.
发明内容Summary of the invention
本申请提供了一种显示缩略图像的方法和电子设备,能够快速地显示缩略图像,提高拍摄体验。The present application provides a method and electronic device for displaying thumbnail images, which can quickly display thumbnail images and improve shooting experience.
第一方面,提供了一种显示缩略图像的方法,应用于电子设备,包括:In a first aspect, a method for displaying a thumbnail image is provided, which is applied to an electronic device, comprising:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像,其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像,所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;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 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;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;detecting a first operation on the first control, where the first operation is used to instruct to start shooting;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;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 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;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;detecting a second operation on the first control, where the second operation is used to indicate ending shooting;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。
In response to the second operation, the first thumbnail image, the second thumbnail image and the third thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.
在一种可能的实现方式中,第一操作可以为点击拍摄控件的操作,或者,第一操作也可以为通过语音指示拍摄的操作;或者,通过其他指令指示开始拍摄的操作;本申请对此不作任何限定。In a possible implementation, 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.
在一种可能的实现方式中,第二操作为弹起拍摄控件的操作;或者,语音指示结束拍摄的操作;或者,通过其他指令结束拍摄的操作。In a possible implementation, 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.
应理解,弹起拍摄控件的操作可以是指电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。It should be understood that 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.
在一种可能的实现方式中,图像质量可以包括图像细节信息、图像纹理信息、图像亮度或者通过任意图像质量评估算法得到的图像质量评估结果;本申请对此不作任何限定。In a possible implementation, 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.
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发电子设备在相机应用程序中保存第一缩略图像(例如,虚假缩略图像)并生成第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。In an embodiment of the present application, 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.
需要说明的是,在本申请的实施例中,第一缩略图像、第二缩略图像与第三缩略图像可以对应于用户的同一次拍摄;对于同一次拍摄,显示第一缩略图像、第二缩略图与第三缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示第一缩略图像,则显示界面中不会显示第二缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第二缩略图像,则显示界面中不会显示第一缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第三缩略图像,则显示界面中不会显示第一缩略图与第二缩略图像;例如,在T1时刻,显示第一缩略图像;在T2时刻显示第二缩略图像;在T3时刻显示第三缩略图像;T1时刻早于T2时刻;T2时刻早于T3时刻。It should be noted that, in an embodiment of the present application, 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.
结合第一方面,在第一方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。In combination with the first aspect, in some implementations of the first aspect, 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.
在一种可能的实现方式中,第一图像处理可以包括下采样处理或者ISP处理中的部分处理;第二图像处理可以包括多帧图像融合处理、ISP处理与图像处理的其他软件算法。In a possible implementation, 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.
应理解,在本申请的实施例中,第一图像处理所需的时长小于第二图像处理所需的时长。It should be understood that in the embodiment of the present application, the time required for the first image processing is shorter than the time required for the second image processing.
在第一方面的某些实现方式中,通过对第一预览图像进行缩略处理,生成第一缩略图像。例如,基于缩略图显示区域的尺寸对第一预览图像进行缩放处理,生成第一缩略图像。In some implementations of the first aspect, the first thumbnail image is generated by performing thumbnail processing on the first preview image. For example, the first preview image is scaled based on the size of the thumbnail display area to generate the first thumbnail image.
结合第一方面,在第一方面的某些实现方式中,还包括:In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:
响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
应理解,第三缩略图像为基于缩略图显示区域对第一拍摄图像进行缩放处理后得到的;
与第二缩略图像相比,第一拍摄图像无需进行下采样处理;此外,第一拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,第三缩略图像的图像质量优于第二缩略图像的图像质量。It should be understood that the third thumbnail image is obtained by scaling the first captured image based on the thumbnail display area; Compared with the second thumbnail image, the first captured image does not need to be downsampled; in addition, the first captured image can be an image 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.
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,触发电子设备生成第一拍摄图像,第一拍摄图像可以是拍摄的真图;通过对第一拍摄图像进行缩放处理,可以得到第三缩略图像,即第一拍摄图像的缩略图像。In an embodiment of the present application, 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.
结合第一方面,在第一方面的某些实现方式中,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,还包括:In combination with the first aspect, in some implementations of the first aspect, the electronic device includes a storage module, the storage module includes a first storage area, and further includes:
在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the electronic device generates the second thumbnail image but does not generate the first captured image, replacing the first thumbnail image in the first storage area with the second thumbnail image;
在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced by the first captured image.
在本申请的实施例中,在生成第二缩略图像(例如,真实缩略图像)之后,通过第二缩略图像对电子设备中存储的第一缩略图像(例如,虚假缩略图像)进行直接替换在生成第一拍摄图像(例如,拍摄图像)之后,通过第一拍摄图像对电子设备中存储的第二缩略图像(例如,真实缩略图像)进行直接替换;与存储第一缩略图像、第二缩略图像与第一缩略图像,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。In an embodiment of the present application, after generating a second thumbnail image (e.g., a real thumbnail image), the first thumbnail image (e.g., a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image. After generating a first captured image (e.g., a captured 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.
在一种可能的实现方式中,对所述第一预览图像进行缩放处理,生成所述第一缩略图像。In a possible implementation manner, scaling is performed on the first preview image to generate the first thumbnail image.
应理解,在本申请的实施例中,由于第二缩略图像是基于Raw图像进行图像处理后得到的缩略图像;而第一缩略图像是直接对预览图像进行缩放处理得到的缩略图像;由于预览图像通常的分辨率通常低于图像传感器采集的Raw图像,因此第二缩略图像的图像质量优于第一缩略图像的图像质量。It should be understood that in the embodiments of the present application, since the second thumbnail image is a thumbnail image obtained after image processing based on the Raw image; and the first thumbnail image is a thumbnail image obtained by directly scaling 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.
在本申请的实施例中,在电子设备检测到点击拍摄控件的操作后,可以触发在相册应用程序中保存虚假缩略图像的流程;从而使得在电子设备检测到弹起拍摄控件时,能够快速在显示界面中显示虚假缩略图像,以响应用户的拍摄操作;减少用户等待拍摄的时长,提高用户的拍摄体验。In an embodiment of the present application, 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.
结合第一方面,在第一方面的某些实现方式中,还包括:In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:
获取检测到所述第一操作的时间信息;基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。Acquire time information when the first operation is detected; and select the first image from a zero-second delay queue in the electronic device based on the time information.
在一种可能的实现方式中,检测到第一操作的时间信息与第一时刻可以为相同时刻。In a possible implementation manner, the time information when the first operation is detected and the first moment may be the same moment.
结合第一方面,在第一方面的某些实现方式中,所述第二图像处理包括第一算法处理与第二算法处理,所述第一算法为第一颜色空间的算法,所述第二算法为将所述第一颜色空间的图像转换为第二颜色空间的图像的算法,所述生成第一拍摄图像,包括:In combination with the first aspect, in some implementations of the first aspect, the second image processing includes first algorithm processing and second algorithm processing, the first algorithm is an algorithm 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, and the generating of the first captured image includes:
对所述第一图像进行所述第一算法处理,得到所述第一颜色空间的图像;Processing the first image with the first algorithm to obtain an image in the first color space;
对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;Performing fusion processing on at least two frames of images in the first color space to obtain a fused image;
对所述融合图像进行所述第二算法处理,生成所述第一拍摄图像。The fused image is processed by the second algorithm to generate the first captured image.
在一种可能的实现方式中,第一算法为Raw颜色空间的算法;第二算法为将Raw图
像转换至YUV颜色空间的算法。In a possible implementation, 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.
应理解,第一拍摄图像可以是指一次拍照操作生成的真图;与生成第二缩略图像相比,第一拍摄图像无需进行下采样处理;此外,第一拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,第一拍摄图像的图像质量优于第二缩略图像的图像质量;此外,基于第一拍摄图像进行缩放处理得到的第三缩略图像的图像质量优于第二缩略图像的图像质量。It should be understood that 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.
结合第一方面,在第一方面的某些实现方式中,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。In combination with the first aspect, in some implementations of the first aspect, the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
结合第一方面,在第一方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。In combination with the first aspect, in some implementations of the first aspect, the image quality includes image texture information or image brightness information.
第二方面,提供了一种显示缩略图像的方法,应用于电子设备,包括:In a second aspect, a method for displaying a thumbnail image is provided, which is applied to an electronic device and includes:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;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 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;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;detecting a first operation on the first control, where the first operation is used to instruct to start shooting;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;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 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;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;detecting a second operation on the first control, where the second operation is used to indicate ending shooting;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;In response to the second operation, sequentially displaying the first thumbnail image and the second thumbnail image in the thumbnail display area; and generating a third thumbnail image, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image;
在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;Before generating the third thumbnail image, detecting a third operation on the first control, the third operation being used to instruct starting shooting;
响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;In response to the third operation, 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;
检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;detecting a fourth operation on the first control, the fourth operation being used to indicate the end of shooting;
响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。In response to the fourth operation, 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.
应理解,第一缩略图像、第二缩略图像与第三缩略图像对应第一拍照操作;第四缩略图像、第五缩略图像与第六缩略图像对应第二拍照操作;两次拍照操作的拍照时刻不同;其中,第一缩略图像可以为第一拍照操作的虚假缩略图像;第二缩略图像为第一拍照操作的真实缩略图像;第三缩略图像为基于第一拍照操作的实际拍摄图像生成的缩略图像;第四缩略图像可以为第二拍照操作的虚假缩略图像;第五缩略图像为
第二拍照操作的真实缩略图像;第六缩略图像为基于第二拍照操作的实际拍摄图像生成的缩略图像。It should be understood that the first thumbnail image, the second thumbnail image and the third thumbnail image correspond to the first photographing operation; the fourth thumbnail image, the fifth thumbnail image and the sixth thumbnail image correspond to the second photographing operation; the photographing 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.
结合第二方面,在第二方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。In combination with the second aspect, in some implementations of the second aspect, 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.
结合第二方面,在第二方面的某些实现方式中,所述生成第三缩略图像,包括:In combination with the second aspect, in some implementations of the second aspect, generating the third thumbnail image includes:
响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
结合第二方面,在第二方面的某些实现方式中,还包括:In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
响应于所述第四操作,生成第二拍摄图像;In response to the fourth operation, generating a second captured image;
基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。The second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
结合第二方面,在第二方面的某些实现方式中,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。In combination with the second aspect, in certain implementations of the second aspect, 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.
在本申请的实施例中,电子设备中的存储模块中对于一次拍摄而言对应一个存储区域,在一次拍摄的虚假缩略图像、真实缩略图像或者拍摄图像生成后,仅在该次拍摄对应的存储区域中进行替换存储;不同次拍摄对应缓存模块中的不同存储区域。In an embodiment of the present application, 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.
结合第二方面,在第二方面的某些实现方式中,还包括:In conjunction with the second aspect, in some implementations of the second aspect, the present invention further includes:
在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the second thumbnail image is generated and the first captured image is not generated, replacing the first thumbnail image in the first storage area with the second thumbnail image;
在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the first photographed image is generated, the second thumbnail image in the first storage area is replaced by the first photographed image.
结合第二方面,在第二方面的某些实现方式中,还包括:In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;When the fifth thumbnail image is generated and the second captured image is not generated, replacing the fourth thumbnail image in the second storage area with the fifth thumbnail image;
在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域的所述第五缩略图像进行替换处理。When the second photographed image is generated, the fifth thumbnail image in the second storage area is replaced by the second photographed image.
结合第二方面,在第二方面的某些实现方式中,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。In combination with the second aspect, in some implementations of the second aspect, the first operation and the third operation are operations of clicking the first control; and the second operation and the fourth operation are operations of popping up the first control.
结合第二方面,在第二方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。In combination with the second aspect, in some implementations of the second aspect, the image quality includes image texture information or image brightness information.
第三方面,提供了一种电子设备,电子设备包括一个或多个处理器与存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行:In a third aspect, an electronic device is provided, the 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;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;detecting a first operation on the first control, where the first operation is used to instruct to start shooting;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;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 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;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;detecting a second operation on the first control, where the second operation is used to indicate ending shooting;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。In response to the second operation, the first thumbnail image, the second thumbnail image and the third thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.
结合第三方面,在第三方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。In combination with the third aspect, in certain implementations of the third aspect, 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.
结合第三方面,在第三方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In combination with the third aspect, in some implementations of the third aspect, the one or more processors call the computer instructions to cause the electronic device to execute:
响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
结合第三方面,在第三方面的某些实现方式中,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In combination with the third aspect, in some implementations of the third aspect, 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:
在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the electronic device generates the second thumbnail image but does not generate the first captured image, replacing the first thumbnail image in the first storage area with the second thumbnail image;
在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced by the first captured image.
结合第三方面,在第三方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In combination with the third aspect, in some implementations of the third aspect, the one or more processors call the computer instructions to cause the electronic device to execute:
获取检测到所述第一操作的时间信息;Acquire time information when the first operation is detected;
基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。The first image is selected from a zero-second delay queue in the electronic device based on the time information.
结合第三方面,在第三方面的某些实现方式中,所述第二图像处理包括第一算法处理与第二算法处理,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In combination with the third aspect, in some implementations of the third aspect, the second image processing includes a first algorithm processing and a second algorithm processing, and the one or more processors call the computer instructions to cause the electronic device to execute:
对所述第一图像进行第一算法处理,得到第一颜色空间的图像;Processing the first image with a first algorithm to obtain an image in a first color space;
对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;Performing fusion processing on at least two frames of images in the first color space to obtain a fused image;
对所述融合图像进行第二算法处理,生成所述第一拍摄图像。The fused image is processed by a second algorithm to generate the first captured image.
结合第三方面,在第三方面的某些实现方式中,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。In combination with the third aspect, in some implementations of the third aspect, the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
结合第三方面,在第三方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。
In combination with the third aspect, in some implementations of the third aspect, the image quality includes image texture information or image brightness information.
第四方面,提供了一种电子设备,电子设备包括一个或多个处理器与存储器;存储器与一个或多个处理器耦合,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用计算机指令以使得电子设备执行:In a fourth aspect, an electronic device is provided, the 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:
在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;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 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;
检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;detecting a first operation on the first control, where the first operation is used to instruct to start shooting;
响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;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 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;
检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;detecting a second operation on the first control, where the second operation is used to indicate ending shooting;
响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;In response to the second operation, sequentially displaying the first thumbnail image and the second thumbnail image in the thumbnail display area; and generating a third thumbnail image, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image;
在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;Before generating the third thumbnail image, detecting a third operation on the first control, the third operation being used to instruct starting shooting;
响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;In response to the third operation, a fourth thumbnail image is saved in the album application, and a fifth thumbnail image is generated; wherein the fourth thumbnail image is a thumbnail image generated by 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;
检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;detecting a fourth operation on the first control, the fourth operation being used to indicate the end of shooting;
响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。In response to the fourth operation, 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.
结合第四方面,在第四方面的某些实现方式中,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。In combination with the fourth aspect, in certain implementations of the fourth aspect, 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.
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In conjunction with the fourth aspect, in some implementations of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to execute:
响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In conjunction with the fourth aspect, in some implementations of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to execute:
响应于所述第四操作,生成第二拍摄图像;In response to the fourth operation, generating a second captured image;
基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。The second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
结合第四方面,在第四方面的某些实现方式中,所述电子设备中包括存储模块,
所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。In conjunction with the fourth aspect, in some implementations of the fourth aspect, 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.
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In conjunction with the fourth aspect, in some implementations of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to execute:
在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the second thumbnail image is generated and the first captured image is not generated, replacing the first thumbnail image in the first storage area with the second thumbnail image;
在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the first photographed image is generated, the second thumbnail image in the first storage area is replaced by the first photographed image.
结合第四方面,在第四方面的某些实现方式中,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行:In conjunction with the fourth aspect, in some implementations of the fourth aspect, the one or more processors call the computer instructions to cause the electronic device to execute:
在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;When the fifth thumbnail image is generated and the second captured image is not generated, replacing the fourth thumbnail image in the second storage area with the fifth thumbnail image;
在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域的所述第五缩略图像进行替换处理。When the second photographed image is generated, the fifth thumbnail image in the second storage area is replaced by the second photographed image.
结合第四方面,在第四方面的某些实现方式中,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。In combination with the fourth aspect, in some implementations of the fourth aspect, 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.
结合第四方面,在第四方面的某些实现方式中,所述图像质量包括图像纹理信息或者图像亮度信息。In combination with the fourth aspect, in certain implementations of the fourth aspect, the image quality includes image texture information or image brightness information.
第五方面,提供了一种电子设备,包括用于执行第一方面或者第一方面中的任意一种实现方式中的显示缩略图像的方法的模块/单元。According to a fifth aspect, an electronic device is provided, 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.
第六方面,提供了一种电子设备,包括用于执行第二方面或者第二方面中的任意一种实现方式中的显示缩略图像的方法的模块/单元。In a sixth aspect, an electronic device is provided, 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.
第七方面,提供一种电子设备,所述电子设备包括一个或多个处理器和存储器与;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行任一方面或者任一方面中的任意一种实现方式中的显示缩略图像的方法。In the seventh aspect, an electronic device is provided, 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.
第八方面,提供了一种芯片系统,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行任一方面或任一方面中的任一种显示缩略图像的方法。In an eighth aspect, a chip system is provided, 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.
第九方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序代码,当所述计算机程序代码被电子设备运行时,使得该电子设备执行任一方面或者任一方面中的任意一种实现方式中的显示缩略图像的方法。In a ninth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When 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.
第十方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码被电子设备运行时,使得该电子设备执行任一方面或者任一方面中的任意一种实现方式中的显示缩略图像的方法。In a tenth aspect, a computer program product is provided, 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.
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发
电子设备在相机应用程序中保存第一缩略图像(例如,虚假缩略图像)并生成第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。In the embodiment of the present application, 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.
图1是一种适用于本申请的电子设备的硬件系统的示意图;FIG1 is a schematic diagram of a hardware system of an electronic device applicable to the present application;
图2是一种适用于本申请实施例的应用场景的示意图;FIG2 is a schematic diagram of an application scenario applicable to an embodiment of the present application;
图3是本申请实施例提供的一种显示缩略图像的方法的示意性流程图;FIG3 is a schematic flow chart of a method for displaying thumbnail images provided in an embodiment of the present application;
图4是本申请实施例提供的另一种显示缩略图像的方法的示意性流程图;FIG4 is a schematic flow chart of another method for displaying thumbnail images provided in an embodiment of the present application;
图5是本申请实施例提供的一种软件架构示意图;FIG5 is a schematic diagram of a software architecture provided in an embodiment of the present application;
图6是本申请实施例提供的一种适用于本申请实施例的图形用户界面的示意图;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;
图7是本申请实施例提供的另一种适用于本申请实施例的图形用户界面的示意图;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;
图8是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;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;
图9是本申请实施例提供的另一种软件架构示意图;FIG9 is a schematic diagram of another software architecture provided in an embodiment of the present application;
图10是一种适用于本申请实施例的图形用户界面的示意图;FIG10 is a schematic diagram of a graphical user interface applicable to an embodiment of the present application;
图11是另一种适用于本申请实施例的图形用户界面的示意图;FIG11 is a schematic diagram of another graphical user interface applicable to an embodiment of the present application;
图12是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;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;
图13是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;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;
图14是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;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;
图15是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;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;
图16是本申请实施例提供的又一种适用于本申请实施例的图形用户界面的示意图;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;
图17是本申请实施例提供的一种电子设备的结构示意图;FIG17 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
图18是本申请实施例提供的另一种电子设备的结构示意图。FIG. 18 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
在本申请的实施例中,以下术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the embodiments of the present application, the following terms "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. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present embodiment, unless otherwise specified, "multiple" means two or more.
为了便于对本申请实施例的理解,首先对本申请实施例中涉及的相关概念进行简要说明。In order to facilitate the understanding of the embodiments of the present application, the relevant concepts involved in the embodiments of the present application are first briefly described.
1.缩略图像1. Thumbnail images
缩略图像是指电子设备中缓存的分辨率较小的图像,缩略图像与拍摄图像相比图像质量较差;与电子设备中的拍摄图像相比,缩略图像的分辨率较小;可选地,通过拍摄界面的缩略图像可以索引到相册中的实际的拍摄图像。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. Compared with the captured image in the electronic device, the resolution of the thumbnail image is smaller. Optionally, the thumbnail image in the shooting interface can be indexed to the actual captured image in the album.
2.零秒延迟(zero shutter lag,ZSL)队列
2. Zero shutter lag (ZSL) queue
电子设备在进行拍摄之前,通常会在电子设备中显示待拍摄画面的图像;这些显示的图像也被称为预览图像;其中,电子设备将预览图像和实际的拍摄图像按时间顺序依次缓存在一个图像队列中,该图像队列被称为ZSL队列。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.
可选地,ZSL队列中的图像可以为Raw图像。Optionally, the images in the ZSL queue may be Raw images.
图1示出了一种适用于本申请的电子设备的硬件系统。FIG. 1 shows a hardware system of an electronic device suitable for the present application.
电子设备100可以是手机、智慧屏、平板电脑、可穿戴电子设备、车载电子设备、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、投影仪等等,本申请实施例对电子设备100的具体类型不作任何限制。The electronic device 100 can be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, etc. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device 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等。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. 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.
需要说明的是,图1所示的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图1所示的部件更多或更少的部件,或者,电子设备100可以包括图1所示的部件中某些部件的组合,或者,电子设备100可以包括图1所示的部件中某些部件的子部件。图1示的部件可以以硬件、软件、或软件和硬件的组合实现。It should be noted that the structure shown in FIG1 does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, 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.
示例性地,处理器110可以包括一个或多个处理单元。例如,处理器110可以包括以下处理单元中的至少一个:应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器、神经网络处理器(neural-network processing unit,NPU)。其中,不同的处理单元可以是独立的器件,也可以是集成的器件。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Exemplarily, the processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics 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). Among them, 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.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, 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.
在一些实施例中,处理器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接口。In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile Mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM interface, and USB interface.
示例性地,在本申请的实施例中,处理器110可以用于执行本申请实施例提供的显示缩略图像的方法;例如,在第一时刻显示第一显示界面,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,第一控件为指示拍摄的控件;缩略图显示区域用于显示缩略图像;第一预览图像为电子设备采集的第一图像经过预览处理生成的图像,第一图像为电子设备在第一时刻实时采集的图像;检测到对第一控件的第一操作,第一操作用于指示开始拍摄,所述拍摄可以包括拍照;响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,第一缩略图像为第一图像经过第一图像处理生成的缩略图像;第二缩略图像为第一图像经过第二图像处理生成的缩略图像,第一图像处理与第二图像处理不同;检测到对第一控件的第二操作,第二操作用于指示结束拍摄;响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像,其中,第三缩略图像的图像质量优于第二缩略图像。Exemplarily, in an embodiment of the present application, 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 operation on the first control is detected, the second operation is used to indicate ending shooting; in response to the second operation, the first thumbnail image, the second thumbnail image and the third thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.
图1所示的各模块间的连接关系只是示意性说明,并不构成对电子设备100的各模块间的连接关系的限定。可选地,电子设备100的各模块也可以采用上述实施例中多种连接方式的组合。The 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. Optionally, the modules of the electronic device 100 may also adopt a combination of multiple connection modes in the above embodiments.
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等器件实现。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.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。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. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
电子设备100可以通过GPU、显示屏194以及应用处理器实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。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.
显示屏194可以用于显示图像或视频。Display screen 194 may be used to display images or videos.
可选地,显示屏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的正整数。Optionally, the display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED or a quantum dot light emitting diode (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
示例性地,电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。Exemplarily, the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
示例性地,ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过摄像头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP可以对图像的噪点、亮度和色彩进行算法优化,ISP还可以优化拍摄场景的曝光和色温等参数。在一些实施例中,ISP可以设置在摄像头193中。
Exemplarily, the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted 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. In some embodiments, the ISP can be set in the camera 193.
示例性地,摄像头193(也可以称为镜头)用于捕获静态图像或视频。可以通过应用程序指令触发开启,实现拍照功能,如拍摄获取任意场景的图像。摄像头可以包括成像镜头、滤光片、图像传感器等部件。物体发出或反射的光线进入成像镜头,通过滤光片,最终汇聚在图像传感器上。成像镜头主要是用于对拍照视角中的所有物体(也可以称为待拍摄场景、目标场景,也可以理解为用户期待拍摄的场景图像)发出或反射的光汇聚成像;滤光片主要是用于将光线中的多余光波(例如除可见光外的光波,如红外)滤去;图像传感器可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。图像传感器主要是用于对接收到的光信号进行光电转换,转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。Exemplarily, 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. 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.
示例性地,数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Exemplarily, the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
示例性地,视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3和MPEG4。Exemplarily, a video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. Thus, 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.
示例性地,陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x轴、y轴和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。例如,当快门被按下时,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航和体感游戏等场景。Exemplarily, the gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x-axis, the y-axis, and the z-axis) can be determined by the gyro sensor 180B. 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.
示例性地,加速度传感器180E可检测电子设备100在各个方向上(一般为x轴、y轴和z轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。加速度传感器180E还可以用于识别电子设备100的姿态,作为横竖屏切换和计步器等应用程序的输入参数。For example, 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.
示例性地,距离传感器180F用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,例如在拍摄场景中,电子设备100可以利用距离传感器180F测距以实现快速对焦。Exemplarily, 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.
示例性地,环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。Exemplarily, the ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the 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.
示例性地,指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现解锁、访问应用锁、拍照和接听来电等功能。Exemplarily, the fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement functions such as unlocking, accessing application locks, taking photos, and answering calls.
示例性地,触摸传感器180K,也称为触控器件。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,触摸屏也称为触控屏。触摸传感器180K用于检测作用于其上或其附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传
递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,并且与显示屏194设置于不同的位置。For example, 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. In other embodiments, 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.
目前,在电子设备检测到用户弹起拍摄控件的操作之后,才会触发电子设备生成真实缩略图像与拍摄图像(例如,拍摄的真图);导致电子设备无法在检查到弹起拍摄控件的瞬间显示缩略图像,即电子设备检测到弹起拍摄控件与显示缩略图像之间的时长过长;导致用户的拍摄等待时间较长,使得用户的拍摄体验较差。Currently, 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. As a result, 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. As a result, the user's shooting waiting time is long, resulting in a poor shooting experience for the user.
有鉴于此,本申请的实施例提供了一种显示缩略图像的方法和电子设备;在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备在相册应用程序中保存虚假缩略图像并生成真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。In view of this, 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
图2是本申请实施例提供的显示缩略图像的方法的应用场景的示意图。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.
示例性地,电子设备运行相机应用程序后,显示预览界面201,如图2中的(a)所示;预览界面201中包括预览图像、缩略图显示控件202与拍摄控件203,其中,缩略图显示控件202中用于显示上一次完成拍摄图像的缩略图像;在第一时刻,电子设备检测到点击拍摄控件203的操作,如图2中的(b)所示;在第二时刻,电子设备检测到用户弹起拍摄控件203的操作,显示显示界面204,如图2中的(c)所示;在显示界面204中缩略图显示控件202中显示的缩略图像依然为上一次完成拍摄图像的缩略图像;在第三时刻,电子设备显示显示界面205,显示界面205中缩略图显示控件202中显示的为本次拍摄图像的缩略图像,如图2中的(d)所示。Exemplarily, after the electronic device runs the camera application, it 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; at a first moment, the electronic device detects an operation of clicking the shooting control 203, as shown in (b) in FIG. 2 ; at a second moment, 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. 2 ; 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 .
应理解,用户通常以显示界面中显示本次拍摄图像的缩略图像看作是完成本次拍摄,因此由于电子设备无法在检测到弹起拍摄控件的瞬间显示缩略图像,导致用户认为拍摄的响应过慢,拍摄体验较差。It should be understood that users usually regard the thumbnail image of the captured image displayed in the display interface as the completion of the shooting. Therefore, since the electronic device cannot display the thumbnail image at the moment of detecting the pop-up shooting control, the user thinks that the shooting response is too slow and the shooting experience is poor.
在本申请的实施例中,提供了一种显示缩略图像的方法和电子设备;根据本申请实施例提供显示缩略图像的方法能够解决电子设备的拍摄响应时长较长的问题,使得电子设备能够快速地显示缩略图像。In an embodiment of the present application, 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.
可选地,本申请实施例中的显示缩略图的方法可以应用于相机应用程序的拍摄模式;或者,本申请实施例中的显示缩略图的方法可以应用于相机应用程序的快速拍照模式。Optionally, 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.
需要说明的是,本申请实施例中的显示缩略图像的方法可以应用于拍摄模式下的夜景拍摄,但是不适用于夜景拍摄模式;由于在夜景拍摄模式下,电子设备获取的每
一帧图像是由长曝光图像、正常曝光图像与短曝光图像进行融合得到的;由于在本申请的实施例中,在检测到点击拍摄控件时触发电子设备生成虚假缩略图像与真实缩略图像,在检测到弹起拍摄控件时显示虚假缩略图像;在电子设备中显示虚假缩略图像后,用户认为本次拍摄完成则可能移动电子设备;但是,此时短曝光图像与长曝光图像可能还未生成;移动电子设备后,会使得短曝光图像与长曝光图像与正常曝光图像中的内容存在差异,导致图像质量较差;因此,本申请实施例中提供的显示缩略图像的方法不适用于夜景模式。It should be noted that 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.
应理解,上述为对应用场景的举例说明,并不对本申请的应用场景作任何限定。It should be understood that the above is an example of an application scenario and does not limit the application scenario of the present application.
下面结合图3至图16对本申请实施例提供的显示缩略图像的方法进行详细地描述。The method for displaying thumbnail images provided in the embodiment of the present application is described in detail below in conjunction with Figures 3 to 16.
图3是本申请实施例提供的一种显示缩略图像的方法的示意性流程图。该方法300可以由图1所示的电子设备执行;该方法300包括S310至S350,下面分别对S310至S350进行详细的描述。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、在第一时刻显示第一显示界面。S310: Display a first display interface at a first moment.
其中,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,第一控件为指示拍摄的控件;缩略图显示区域用于显示缩略图像;第一预览图像为电子设备采集的第一图像经过预览处理生成的图像,第一图像为电子设备在第一时刻实时采集的图像。Among them, the first display interface includes a first control, a thumbnail display area and a first preview image; among them, the first control is a control for indicating shooting; the thumbnail display area is used to display 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.
可选地,如图5所示,相机模组可以将在第一时刻采集的第一图像分别发送至预览存储模块与ZSL队列存储模块;其中,预览存储模块用于存储预览图像,预览图像为对相机模组采集的图像进行预览处理生成的图像;ZSL队列存储模块中存储的图像用于生成拍照的实际拍摄图像。Optionally, as shown in Figure 5, 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.
示例性地,第一显示界面可以如图6中的(a)所示;第一控件可以是指图6中的(a)所示的控件612;显示区域可以是指如图6中的(a)所示的控件613所在的区域。Exemplarily, 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.
可选地,在S310之前可以运行相机应用程序。Optionally, a camera application may be run before S310 .
示例性地,用户可以通过单击“相机”应用程序的图标,指示电子设备运行相机应用。For example, the user may instruct the electronic device to run the camera application by clicking the icon of the “Camera” application.
示例性地,电子设备处于锁屏状态时,用户可以通过在电子设备的显示屏上向右滑动的手势,指示电子设备运行相机应用。又或者,电子设备处于锁屏状态,锁屏界面上包括相机应用程序的图标,用户通过点击相机应用程序的图标,指示电子设备运行相机应用程序。又或者,电子设备在运行其他应用时,该应用具有调用相机应用程序的权限;用户通过点击相应的控件可以指示电子设备运行相机应用程序。例如,电子设备正在运行即时通信类应用程序时,用户可以通过选择相机功能的控件,指示电子设备运行相机应用程序等。Exemplarily, when the electronic device is in the lock screen state, 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. Alternatively, 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. Alternatively, when the electronic device is running other applications, 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. For example, when 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.
应理解,上述为对运行相机应用程序的操作的举例说明;还可以通过语音指示操作,或者其它操作的指示电子设备运行相机应用程序;本申请对此不作任何限定。It should be understood that the above is an example of the operation of running a camera application; the electronic device may also run a camera application through voice instructions or other operations; this application does not impose any limitation on this.
还应理解,运行相机应用程序可以是指启动相机应用程序。It should also be understood that running the camera application may refer to launching the camera application.
S320、检测到对第一控件的第一操作。S320: Detect a first operation on a first control.
其中,第一操作用于指示开始拍摄。所述拍摄可以包括拍照。
The first operation is used to instruct to start shooting. The shooting may include taking a photo.
可选地,拍摄操作可以为拍照操作。Optionally, the shooting operation may be a photo taking operation.
示例性地,如图6中的(c)所示,第一操作可以为对控件612的点击操作。Exemplarily, as shown in (c) of FIG. 6 , the first operation may be a click operation on the control 612 .
可选地,在本申请的实施例中,上述通过对第一操作为点击操作进行举例描述;在本申请的实施例中,第一操作也可以为通过语音指示拍摄的操作;或者,通过其他指令指示开始拍摄的操作;本申请对此不作任何限定。Optionally, in an embodiment of the present application, 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、响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像。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.
在一种可能的实现方式中,第一图像处理可以包括下采样处理或者ISP处理中的部分处理;第二图像处理可以包括多帧图像融合处理、ISP处理与图像处理的其他软件算法。In a possible implementation, 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.
应理解,在本申请的实施例中,第一图像处理所需的时长小于第二图像处理所需的时长。It should be understood that in the embodiment of the present application, the time required for the first image processing is shorter than the time required for the second image processing.
示例性地,第一缩略图像可以为如图7中的(a)中控件613中显示的缩略图像;第二缩略图像可以为如图7中的(c)中控件613中显示的缩略图像。Exemplarily, 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 .
在一种可能的实现方式中,生成第一缩略图像包括:In a possible implementation manner, generating the first thumbnail image includes:
对第一预览图像进行缩放处理,生成第一缩略图像。具体实现方式可以参见后续图4中的第一流程430的相关描述,此处不再赘述。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.
在本申请的实施例中,在电子设备检测到点击拍摄控件的操作后,可以触发在相册应程序中保存虚假缩略图像的流程;从而使得在电子设备检测到弹起拍摄控件时,能够快速在显示界面中显示虚假缩略图像,以响应用户的拍摄操作;减少用户等待拍摄的时长,提高用户的拍摄体验。In an embodiment of the present application, 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.
可选地,还包括:Optionally, it also includes:
响应于第二操作,生成第一拍摄图像;基于缩略图显示区域的尺寸对第一拍摄图像进行缩放处理,生成第三缩略图像。In response to the second operation, 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.
应理解,第三缩略图像为基于缩略图显示区域对第一拍摄图像进行缩放处理后得到的;与第二缩略图像相比,第一拍摄图像无需进行下采样处理;此外,第一拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,第三缩略图像的图像质量优于第二缩略图像的图像质量。It should be understood that the third thumbnail image is obtained by scaling the first captured image based on the thumbnail display area; compared with the second thumbnail image, the first captured image does not need to be downsampled; in addition, the first captured image can be an image 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.
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,触发电子设备生成第一拍摄图像,第一拍摄图像可以是拍摄的真图;通过对第一拍摄图像进行缩放处理,可以得到第三缩略图像,即第一拍摄图像的缩略图像。In an embodiment of the present application, 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.
可选地,第二图像处理包括第一算法处理与第二算法处理,第一算法为第一颜色空间的算法,第二算法为将第一颜色空间的图像转换为第二颜色空间的图像的算法,生成第一拍摄图像,包括:Optionally, 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, and the second algorithm is an algorithm for converting an image in the first color space into an image in the second color space, and 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.
可选地,具体实现方式可以参见后续图4所示的第二流程440的相关描述,此处不再
赘述。Optionally, 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.
示例性地,第一图像可以为原始图像数据,即第一图像可以为Raw图像;第一算法可以包括Raw颜色空间的算法。Exemplarily, 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.
例如,Raw颜色空间的算法可以包括但不限于:黑电平矫正处理(Black Level Correction,BLC)、镜头阴影校正(Lens Shading Correction,LSC)等算法。For example, 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.
其中,黑电平矫正处理用于对黑电平进行校正处理,黑电平是指在经过一定校准的显示装置上,没有一行光亮输出的视频信号电平;进行黑电平校正的原因在于:一方面由于图像传感器存在暗电流,导致在没有光照的情况下像素也存在电压输出的问题;另一方面,由于图像传感器进行模数转换时精度不够。镜头阴影校正(Lens Shading Correction,LSC)用于消除由于镜头光学系统原因造成的图像四周颜色以及亮度与图像中心不一致的问题。Among them, 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 (LSC) 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.
例如,第二算法包括将Raw图像转换为YUV颜色空间的算法。For example, the second algorithm includes an algorithm for converting a Raw image into a YUV color space.
可选地,还包括:Optionally, 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.
在本申请的实施例中,在检测到点击拍摄控件的操作时,可以触发电子设备生成第二缩略图像即真实缩略图像;与现有方案,在检测到弹起拍摄操作后,触发生成真实缩略图像的流程相比,在本申请的实施例中,提前了触发电子设备生成真实缩略图像的时间,从而能够减少电子设备响应拍摄的时长;减少用户等待拍摄的时长,提高用户的拍摄体验。In an embodiment of the present application, 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.
S340、检测到对第一控件的第二操作。S340: Detect a second operation on the first control.
其中,第二操作用于指示结束拍摄。The second operation is used to indicate the end of shooting.
示例性地,第二操作可以为弹起拍摄控件的操作,如图7中的(a)所示。Exemplarily, the second operation may be an operation of popping up a shooting control, as shown in (a) of FIG. 7 .
应理解,弹起拍摄控件的操作可以是指电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。It should be understood that 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.
可选地,上述是对第二操作的举例描述;在本申请的实施例中,第二操作也可以为通过语音指示结束拍摄的操作;或者,通过其他指令指示结束拍摄的操作;本申请对此不作任何限定。Optionally, the above is an example description of the second operation; in an embodiment of the present application, 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、响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像。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.
在一种可能的实现方式中,图像质量可以包括图像细节信息、图像纹理信息、图像亮度或者通过任意图像质量评估算法得到的图像质量评估结果;本申请对此不作任何限定。In a possible implementation, 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.
需要说明的是,在本申请的实施例中,第一缩略图像、第二缩略图像与第三缩略图像可以对应于用户的同一次拍摄;对于同一次拍摄,显示第一缩略图像、第二缩略图与第三缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示第一缩略图像,则显示界面中不会显示第二缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第二缩略图像,则显示界面中不会显示第一缩略图与第三缩略图像;若相机应用程序中的显示界面中显示第三缩略图像,则显示界面中不会显示第一缩略图与第二缩略图像;例如,在T1时刻,显示第一缩略图像;在T2时刻显示第二缩略图像;在T3时刻显示第三缩略
图像;T1时刻早于T2时刻;T2时刻早于T3时刻。It should be noted that, in an embodiment of the present application, 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.
可选地,电子设备中包括存储模块,存储模块中包括第一存储区域,还包括:Optionally, the electronic device includes a storage module, the storage module includes a first storage area, and further includes:
在电子设备生成第二缩略图像且未生成第一拍摄图像时,通过第二缩略图像对第一存储区域的第一缩略图像进行替换处理;When the electronic device generates the second thumbnail image and does not generate the first captured image, the first thumbnail image in the first storage area is replaced by the second thumbnail image;
在电子设备生成第一拍摄图像时,通过第一拍摄图像对第一存储区域的第二缩略图像进行替换处理。When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced by the first captured image.
在本申请的实施例中,在生成第二缩略图像(例如,真实缩略图像)之后,通过第二缩略图像对电子设备中存储的第一缩略图像(例如,虚假缩略图像)进行直接替换在生成第一拍摄图像(例如,拍摄图像)之后,通过第一拍摄图像对电子设备中存储的第二缩略图像(例如,真实缩略图像)进行直接替换;与存储第一缩略图像、第二缩略图像与第一缩略图像,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。In an embodiment of the present application, after generating a second thumbnail image (e.g., a real thumbnail image), the first thumbnail image (e.g., a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image. After generating a first captured image (e.g., a captured 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.
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发电子设备在相机应用程序中保存第一缩略图像(例如,虚假缩略图像)并生成第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。In an embodiment of the present application, 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.
示例一Example 1
对于电子设备检测到一次拍摄操作,即电子设备检测到一次第一操作与一次第二操作;例如,电子设备检测到一次点击拍摄控件的操作与一次弹起拍摄控件的操作。When 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.
示例性地,对于一次拍摄而言如图7中的(a)所示,在T(12)时刻显示缩略图控件613中显示第一缩略图像,即显示虚假缩略图像;如图7中的(c)所示,在T(13)时刻显示缩略图控件613中显示第二缩略图像,即显示真实缩略图像;如图8中的(a)所示,在T(14)时刻显示缩略图控件613中显示第三缩略图像,即显示拍摄图像的缩略图像,其中,T(12)时刻早于T(13)时刻,T(13)时刻早于T(14)时刻。Exemplarily, for a single shot, as shown in (a) in FIG. 7 , at time T(12) the first thumbnail image is displayed in the thumbnail control 613, i.e. a false thumbnail image is displayed; as shown in (c) in FIG. 7 , at time T(13) the second thumbnail image is displayed in the thumbnail control 613, i.e. a real thumbnail image is displayed; as shown in (a) in FIG. 8 , at time T(14) 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).
可选地,若电子设备检测到一次所述第一操作与一次所述第二操作,则所述第一缩略图像、所述第二缩略图像与所述第三缩略图像包括第一拍摄对象。Optionally, if 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.
可选地,还包括:Optionally, it also includes:
响应于第二操作,生成第一图像;对第一图像进行缩放处理,生成第三缩略图像。In response to the second operation, a first image is generated; and scaling processing is performed on the first image to generate a third thumbnail image.
示例性地,生成第一图像的实现方式可以参见后续图4中第三流程470的相关描述,此处不再赘述;生成第三缩略图像的实现方式可以参见后续图4中的S480的相关描述,此处不再赘述。Exemplarily, 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.
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,触发电子设备生成第一图像,第一图像可以是指拍摄图像即拍摄的真图;通过对第一图像进行缩放处理,可以得到第三缩略图像,即拍摄图像的缩略图像。In an embodiment of the present application, 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.
可选地,生成第一图像,包括:
Optionally, 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.
示例性地,可以获取检测到第一操作的时间信息;基于时间信息在电子设备中的零秒延迟队列中选取第二图像;对第二图像进行Raw颜色空间的算法处理,得到处理后的Raw图像;对至少两帧处理后的Raw图像进行融合处理,得到第一图像。Exemplarily, 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.
应理解,第一图像可以是指一次拍摄图像生成的真图;与第二缩略图像相比,第一图像无需进行下采样处理;此外,第一图像可以是基于多帧Raw图像融合处理后的图像;因此,第一图像的图像质量优于第二缩略图像的图像质量;此外,基于第一图像进行缩放处理得到的第三缩略图像的图像质量优于第二缩略图像的图像质量。It should be understood that 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.
可选地,电子设备中包括存储模块,存储模块中包括第一存储区域,还包括:Optionally, the electronic device includes a storage module, the storage module includes a first storage area, and further includes:
在电子设备生成第一缩略图像且未生成第二缩略图像时,在第一存储区域存储第一缩略图像;When the electronic device generates the first thumbnail image and does not generate the second thumbnail image, storing the first thumbnail image in the first storage area;
在电子设备生成第二缩略图像且未生成第一图像时,通过第二缩略图像对第一存储区域的第一缩略图像进行替换处理;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;
在电子设备生成第一图像时,通过第一图像对第一存储区域的第二缩略图像进行替换处理。When the electronic device generates the first image, the second thumbnail image in the first storage area is replaced by the first image.
示例性地,如图7中的(b)所示,电子设备的相册应用程序中可以包括缓存模块;在T(12)时刻,缓存模块中的第一存储位置用于存储第一缩略图像(例如,虚假缩略图像1);如图7中的(d)所示,在T(13)时刻,缓存模块中的第一存储区域用于存储第二缩略图像(例如,真实缩略图像11);例如,在T(13)时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储区域存储真实缩略图像;在T(14)时刻,缓存模块中的第一存储区域用于存储第一图像(例如,拍摄图像);例如,在第三时刻,可以通过拍摄图像对真实缩略图像进行替换处理,删除真实缩略图像并在相同的存储空间存储拍摄图像。Exemplarily, as shown in (b) of FIG. 7 , 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. 7 , at time T(13), 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.
应理解,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次拍摄;换而言之,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次点击拍摄控件与弹起拍摄控件;此外,对于同一次拍摄,显示虚假缩略图像、显示真实缩略图与显示拍摄图像的缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示虚假缩略图像,则显示界面中不会显示真实缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示真实缩略图像,则显示界面中不会显示虚假缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示拍摄图像的缩略图像,则显示界面中不会显示虚假缩略图与真实缩略图像。It should be understood that 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.
在本申请的实施例中,在生成第二缩略图像(例如,真实缩略图像)之后,通过第二缩略图像对电子设备中存储的第一缩略图像(例如,虚假缩略图像)进行直接替换在生成第一图像(例如,拍摄图像)之后,通过第一图像对电子设备中存储的第二缩略图像(例如,真实缩略图像)进行直接替换;与存储第一缩略图像、第二缩略图像与第一缩略图像,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。In an embodiment of the present application, after generating a second thumbnail image (e.g., a real thumbnail image), the first thumbnail image (e.g., a false thumbnail image) stored in the electronic device is directly replaced by the second thumbnail image. After generating a first image (e.g., a captured image), the second thumbnail image (e.g., a real thumbnail image) stored in the electronic device is directly replaced by the first image; compared with storing the first thumbnail image, the second thumbnail image and the first thumbnail image, directly performing replacement processing in an embodiment of the present application can reduce the storage space of the electronic device occupied by the thumbnail images.
示例二
Example 2
对于电子设备检测到至少两次拍摄操作,即电子设备检测到至少两次第一操作与至少两次第二操作;例如,电子设备检测到第一次点击拍摄控件的操作与第一次弹起拍摄控件的操作;在生成第一次拍摄的拍摄图像之前,电子设备检测到第二次点击拍摄控件的操作与第二次弹起拍摄控件的操作。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.
可选地,电子设备检测到一次第一操作与一次第二操作为电子设备检测到一次拍摄操作;若电子设备检测到的拍摄操作的次数大于一次,则第一缩略图像与第二缩略图像中包括第一拍摄对象,第三缩略图像中包括第二拍摄对象,第一拍摄对象与第二拍摄对象不同。Optionally, 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.
示例性地,第一缩略图像与第二缩略图像中包括的第一拍摄对象,如图10中的(c)所示的拍摄对象811;第三缩略图像中包括的第二拍摄对象,如图11中的(a)所示的拍摄对象815。Exemplarily, 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 .
可选地,电子设备中包括存储模块,存储模块中包括第一存储区域与第二存储区域,还包括:Optionally, the electronic device includes a storage module, the storage module includes a first storage area and a second storage area, and further includes:
在电子设备生成第一缩略图像且未生成第二缩略图像时,在第一存储区域存储第一缩略图像;When the electronic device generates the first thumbnail image and does not generate the second thumbnail image, storing the first thumbnail image in the first storage area;
在电子设备生成第二缩略图像时,通过第二缩略图像对第一存储区域的第一缩略图像进行替换处理;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;
在电子设备生成第三缩略图像时,在第二存储区域存储第三缩略图像。When the electronic device generates the third thumbnail image, the third thumbnail image is stored in the second storage area.
示例性地,如图11中的(b)所示,电子设备的相册应用程序中可以包括缓存模块;在T(22)时刻,电子设备生成第一缩略图,缓存模块中的第一存储位置用于存储第一缩略图像(例如,虚假缩略图像1);如图11中的(d)所示,在T(23)时刻,电子设备生成第二缩略图像,缓存模块中的第一存储区域用于存储第二缩略图像(例如,真实缩略图像11);例如,在T(23)时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储区域存储真实缩略图像;如图12中的(d)所示,在T(25)时刻,生成第三缩略图像,即生成第二次拍摄的虚假缩略图像;在缓存模块中的第二存储区域用于存储第三图像(例如,第二次拍摄的虚假缩略图像2)。Exemplarily, as shown in (b) of FIG. 11 , the album application of the electronic device may include a cache module; at time T(22), the electronic device generates a first thumbnail, and the first storage location in the cache module is used to store the first thumbnail image (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. 12 , at time T(25), 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).
可选地,还包括:Optionally, it also includes:
响应与第二操作,生成第一拍摄对象的第三图像;通过第三图像对第一存储区域的第二缩略图像进行替换处理,第三图像的图像质量优于第二缩略图像。In response to the second operation, 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.
示例性地,第三图像可以是指第一次拍摄的拍摄图像;如图13中的(b)所示,电子设备生成第一次拍摄的拍摄图像后,可以通过拍摄图像对存储在缓存模块中的第二缩略图像(例如,真实缩略图像11)进行替换处理。Exemplarily, 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.
可选地,在显示区域显示第三缩略图像之后,还包括:Optionally, after the display area displays the third thumbnail image, 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.
示例性地,第四缩略图像可以是指第二次拍摄的真实缩略图像,第二次拍摄的真实缩略图像可以为如图13中的(c)中控件813中所示的缩略图像。Exemplarily, the fourth thumbnail image may refer to a real thumbnail image photographed for the second time, and 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 .
可选地,还包括:Optionally, it also includes:
通过第四缩略图像对第二存储区域的第三缩略图像进行替换处理。
The third thumbnail image in the second storage area is replaced by the fourth thumbnail image.
示例性地,如图13中的(b)与图13中的(d)所示,在电子设备生成第二次拍摄的第四缩略图像(例如,真实缩略图像22)后,可以通过真实缩略图像22对缓存模块中的第三缩略图像(例如,虚假缩略图像2)进行替换处理。Exemplarily, as shown in (b) and (d) of FIG. 13 , 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.
可选地,还包括:Optionally, 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.
示例性地,在电子设备检测到第二次点击拍摄控件的操作后,可以触发生成第二次拍摄的虚假缩略图像的流程;从而使得在电子设备检测到第二次弹起拍摄控件时,能够快速在显示界面中显示虚假缩略图像,以响应用户的拍摄操作;减少用户等待拍摄的时长,提高用户的拍摄体验。Exemplarily, after the electronic device detects the operation of clicking the shooting control for the second time, 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.
在本申请的实施例中,通过将拍摄操作分为第一操作(例如,点击拍摄控件的操作)与第二操作(例如,弹起拍摄控件的操作);在电子设备检测到第一操作时,触发电子设备生成第一缩略图像(例如,虚假缩略图像)与第二缩略图像(例如,真实缩略图像);在电子设备检测到第二操作时,在显示界面的显示区域中依次显示第一缩略图像、第二缩略图像与第三缩略图像(例如,基于拍摄图像得到的缩略图像);由于在检测到第二操作后,快速触发显示第一缩略图像;使得在电子设备检测到第二操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。In an embodiment of the present application, the shooting operation is divided into a first operation (for example, an operation of clicking a shooting control) and a second operation (for example, an operation of 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.
下面结合图4至图14对本申请实施例的实现方式进行详细描述。The implementation method of the embodiment of the present application is described in detail below in conjunction with Figures 4 to 14.
实现方式一Implementation method 1
示例性地,在电子设备检测到一次拍摄操作(例如,点击拍摄控件的操作与弹起拍摄控件的操作),电子设备依次生成虚假缩略图像、真实缩略图像与拍摄图像;在拍摄界面中的缩略图显示控件中依次显示虚假缩略图像、真实缩略图像以及拍摄图像的缩略图像。Exemplarily, 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.
图4是本申请实施例提供的另一种显示缩略图像的方法的示意性流程图。该方法400可以由图1所示的电子设备执行;该方法包括S410至S480,下面分别对S410至S480进行详细的描述。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至S480以电子设备检测到用户的一次拍摄过程进行举例说明;即电子设备检测到一次用户点击拍摄控件的操作与弹起拍摄控件的操作时,显示缩略图像的处理流程。It should be noted that 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.
S401、运行相机应用程序。S401. Run the camera application.
示例性地,用户可以通过单击“相机”应用程序的图标,指示电子设备运行相机应用。或者,电子设备处于锁屏状态时,用户可以通过在电子设备的显示屏上向右滑动的手势,指示电子设备运行相机应用程序。又或者,电子设备处于锁屏状态,锁屏界面上包括相机应用程序的图标,用户通过点击相机应用程序的图标,指示电子设备运行相机应用程序。又或者,电子设备在运行其他应用时,该应用具有调用相机应用程序的权限;用户通过点击相应的控件可以指示电子设备运行相机应用程序。例如,电子设备正在运行即时通信类应用程序时,用户可以通过选择相机功能的控件,指示电子设备开启相机应用程序等。Exemplarily, a user can instruct an electronic device to run a camera application by clicking on the icon of the "Camera" application. Alternatively, 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. Alternatively, 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. Alternatively, when the electronic device is running other applications, 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. For example, 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.
应理解,上述描述为对运行相机应用程序的操作的举例说明;还可以通过语音指
示操作,或者其它操作的指示电子设备运行相机应用程序;本申请对此不作任何限定。It should be understood that the above description is an example of the operation of running the camera application; The electronic device may be instructed to run a camera application program in response to an indication operation or other operation; this application does not impose any limitation on this.
S420、检测到点击拍摄控件的操作。S420: Detecting an operation of clicking a shooting control.
可选地,S420中以点击拍摄控件的操作进行举例说明;S420中还可以为检测到指示开始拍摄的操作;例如,通过语音或者其他指示信息指示电子设备开始拍摄。Optionally, 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.
应理解,在本申请的实施例中,拍摄操作可以包括:指示开始拍摄的操作和结束拍摄的操作;例如,拍摄操作可以包括:点击拍摄控件的操作与弹起拍摄控件的操作。It should be understood that in the embodiments of the present application, 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.
需要说明的是,弹起拍摄控件的操作可以是指电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。It should be noted that 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.
在本申请的实施例中,在电子设备检测到用户的拍摄控件的操作,可以同时触发第一流程430与第二流程440;第一流程430为电子设备生成虚假缩略图像的流程;第二流程440为电子设备生成真实缩略图像的流程;其中,生成真实缩略图像的流程可以为现有的任意一个生成缩略图像的算法。In an embodiment of the present application, when the electronic device detects the operation of the user's shooting control, 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.
可选地,在电子设备检测到点击拍摄控件的操作时,可以同时触发第一流程与第二流程;即触发生成快速缩略图像的流程与触发生成真实缩略图像的流程。Optionally, when the electronic device detects the operation of clicking the shooting control, 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.
示例性地,第一流程430包括S431与S432;下面分别对S431与S432进行详细说明。Exemplarily, the first process 430 includes S431 and S432; S431 and S432 are described in detail below.
S431、获取预览图像。S431. Obtain a preview image.
应理解,预览图像为电子设备的存储模块中获取的图像。It should be understood that the preview image is an image acquired from a storage module of the electronic device.
示例性地,预览图像可以为存储在相机应用程序中的预先存储模块中的图像,如图5所示。Exemplarily, the preview image may be an image stored in a pre-storage module in the camera application, as shown in FIG5 .
可选地,预览图像可以为JPEG格式,JPG格式或者其他格式。Optionally, the preview image may be in JPEG format, JPG format or other formats.
S432、对预览图像进行处理,生成虚假缩略图像。S432: Process the preview image to generate a false thumbnail image.
示例性地,预览图像可以为一帧处理后的JPEG格式的图像;可以对JPEG格式的图像进行缩放处理,得到虚假缩略图像。Exemplarily, 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.
应理解,在本申请的实施例中,虚假缩略图像是在预览图像的基础上直接进行缩放处理得到的图像;因此,生成虚假缩略图像的过程所需时间较短,能够在较短时间内生成快速生成虚假缩略图像。It should be understood that in the embodiment of the present application, 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.
示例性地,第二流程440包括S441与S442;下面分别对S441与S442进行详细说明。Exemplarily, the second process 440 includes S441 and S442; S441 and S442 are described in detail below.
S441、在ZSL队列中选取图像帧。S441. Select an image frame in the ZSL queue.
可选地,可以根据时间信息在ZSL队列中选择图像帧,其中,可以在S420检测到点击拍摄控件的操作时获取时间信息;例如,在检测到点击拍摄操作时获取时间戳。Optionally, 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.
示例性地,电子设备检测到点击拍摄控件的操作时,获取的时间信息为时间标识1;ZSL队列中包括:时间标识1-图像帧1、时间标识2-图像帧2、时间标识3-图像帧3;基于时间标识1,电子设备可以在ZSL队列中选取图像帧1。Exemplarily, when the electronic device detects 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.
可选地,ZSL队列中存储的图像帧可以为Raw图像;其中,Raw图像是指图像传感器采集的原始图像数据。Optionally, 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、对选取的图像帧进行处理,生成真实缩略图像。S442: Process the selected image frame to generate a real thumbnail image.
示例性地,可以对选取的Raw图像进行处理,将Raw图像转换为YUV图像;将YUV图像可以转换为RGB图像用于显示;此外,可以将YUV图像转换为其他格式(例如,JPEG格式(JPG格式)、GIF格式、DNG格式或者RAW格式等)用于存储。
Exemplarily, 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.
应理解,由于真实缩略图像是根据Raw图像进行图像处理后得到的缩略图像;而虚假缩略图像为直接对电子设备中存储的预览图像进行缩放处理得到的缩略图像;因此,生成虚假缩略图像的时效性高于生成真实缩略图像。It should be understood that since the real thumbnail image is a thumbnail image obtained after image processing based on the Raw image; and 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.
可选地,电子设备可以先生成快速缩略图像再生成真实缩略图像。Optionally, the electronic device may first generate a quick thumbnail image and then generate a real thumbnail image.
还应理解,由于真实缩略图像是基于Raw图像进行图像处理后得到的缩略图像;而虚假缩略图像是直接对预览图像进行缩放处理得到的缩略图像;由于预览图像通常的分辨率通常低于图像传感器采集的Raw图像,因此真实缩略图像的图像质量优于虚假缩略图像的图像质量。It should also be understood that since the real thumbnail image is a thumbnail image obtained after image processing based on the Raw image; and the false thumbnail image is a thumbnail image obtained by directly scaling the preview image; and since 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包括但不限于以下步骤:Optionally, S442 includes but is not limited to the following steps:
1.对选取的Raw图像进行下采样处理,得到下采样处理后的Raw图像;1. Down-sample the selected Raw image to obtain a Raw image after down-sampling;
2.对下采样处理后的Raw图像执行Raw域算法,得到处理后的Raw图像;其中,Raw域算法包括但不限于:黑电平矫正处理、镜头阴影校正等算法;2. Execute the Raw domain algorithm on the Raw image after downsampling to obtain a processed Raw image; wherein the Raw domain algorithm includes but is not limited to: black level correction processing, lens shading correction and other algorithms;
其中,黑电平矫正处理用于对黑电平进行校正处理,黑电平是指在经过一定校准的显示装置上,没有一行光亮输出的视频信号电平;进行黑电平校正的原因在于:一方面由于图像传感器存在暗电流,导致在没有光照的情况下像素也存在电压输出的问题;另一方面,由于图像传感器进行模数转换时精度不够。镜头阴影校正(Lens Shading Correction,LSC)用于消除由于镜头光学系统原因造成的图像四周颜色以及亮度与图像中心不一致的问题。Among them, 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 (LSC) 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.
3.将处理后的Raw图像转换至YUV颜色空间,得到下采样的YUV图像;即得到真实缩略图像。3. Convert the processed Raw image to YUV color space to obtain a downsampled YUV image; that is, obtain a real thumbnail image.
4.将下采样的YUV图像转换为RGB图像,RGB图像用于在电子设备的显示屏中显示;此外,将下采样的YUV图像转换为其他存储格式的图像,其他存储格式的图像用于在电子设备中存储。4. Convert the downsampled YUV image into an RGB image, which is used to be displayed on a display screen of an electronic device; in addition, convert the downsampled YUV image into an image in another storage format, which is used to be stored in an electronic device.
S450、检测到弹起拍摄控件的操作。S450: Detecting an operation of popping up a shooting control.
应理解,弹起拍摄控件的操作可以包括电子设备检测到用户的手指离开拍摄控件的操作;或者,电子设备检测到用户的手指松开拍摄控件的操作等。It should be understood that 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.
可选地,上述S450中还可以是指检测到指示结束拍摄的操作;例如,检测到语音指示或者其他指示结束拍摄的操作。Optionally, 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.
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作时,可以触发执行第三流程470与显示虚假缩略图像;其中,第三流程470为生成拍摄图像的流程;可选地,生成拍摄图像的流程可以为现有的任意一种生成拍摄图像的算法。In an embodiment of the present application, when the electronic device 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.
可选地,在电子设备检测到弹起拍摄控件的操作时,可以触发同时执行第三流程470与显示虚假缩略图像。Optionally, when the electronic device 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.
S461、在第一时刻,显示虚假缩略图像。S461. At a first moment, display a false thumbnail image.
示例性地,在第一时刻显示虚假缩略图像的界面示意图如后续图6中的(a)所示。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 .
可选地,在显示虚假缩略图像的同时,可以将虚假缩略图像存储在电子设备中。Optionally, while the false thumbnail image is displayed, the false thumbnail image may be stored in the electronic device.
示例性地,在电子设备检测到弹起拍摄控件的操作的瞬间,可以发送指令;将虚假缩略图像存储在图库中,并在电子设备中显示虚假缩略图像。Exemplarily, at the moment when the electronic device detects the operation of popping up the shooting control, 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.
在本申请的实施例中,在电子设备检测到弹起拍摄控件的操作后,电子设备可以快速地在拍摄界面中显示虚假缩略图像;用户在拍摄时,通常以拍摄界面中显示缩略图像时看
作是完成一次拍摄过程;在本申请的实施例中,由于在用户弹起拍摄控件的较短时间内,电子设备能够在拍摄界面中快速地显示虚假缩略图像;换而言之,电子设备可以在较短时间内响应于用户的拍摄操作,使得用户感知到拍摄完成,从而提高用户的拍摄体验。In an embodiment of the present application, after the electronic device detects the operation of popping up the shooting control, 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.
应理解,在显示虚假缩略图像时,可能真实缩略图像还未生成;此时,可以先在拍摄界面中显示虚假缩略图像;在生成真实缩略图像之后,可以通过真实缩略图像替换虚假缩略图像,在拍摄界面中显示真实缩略图像。It should be understood that when a false thumbnail image is displayed, 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.
S462、在第二时刻,显示真实缩略图像。S462: At the second moment, display the real thumbnail image.
其中,第二时刻在第一时刻之后。Among them, the second moment is after the first moment.
示例性地,在第二时刻显示真实缩略图像的界面示意图如后续图7中的(a)所示。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 .
可选地,在显示真实缩略图像的同时,可以将真实缩略图像存储在电子设备中。Optionally, the real thumbnail image may be stored in the electronic device while the real thumbnail image is displayed.
可选地,电子设备的相册应用程序中可以包括缓存模块;在第一时刻,缓存模块中的第一存储空间用于存储虚假缩略图像;在第二时刻,缓存模块中的第一存储空间用于存储真实缩略图像;例如,在第二时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储空间存储真实缩略图像。Optionally, 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.
在本申请的实施例中,在生成真实缩略图像之后,通过真实缩略图像对电子设备中存储的虚假缩略图像进行直接替换;与存储虚假缩略图像与真实缩略图像相比,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。In an embodiment of the present application, after a real thumbnail image is generated, the false thumbnail image stored in the electronic device is directly replaced by the real thumbnail image; compared with storing the false thumbnail image and the real thumbnail image, 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.
示例性地,第三流程470包括S471与S472;下面分别对S471与S472进行详细说明。Exemplarily, the third process 470 includes S471 and S472; S471 and S472 are described in detail below.
S471、在ZSL队列中选取图像帧。S471. Select an image frame in the ZSL queue.
可选地,可以根据检测到点击拍摄控件的操作的时间信息,在ZSL队列中选取图像帧。Optionally, an image frame may be selected from the ZSL queue according to time information of detecting an operation of clicking the shooting control.
应理解,用户拍摄图像时通常是希望获取点击拍摄控件的瞬间的图像;因此,在生成拍摄图像时,电子设备可以根据检测到点击拍摄控件的操作的时间信息,在ZSL队列中选取图像帧。It should be understood that when a user takes a picture, he usually wants to obtain the image of the moment when the shooting control is clicked; therefore, when generating a captured image, 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.
示例性地,电子设备检测到点击拍摄控件的操作时,获取的时间信息为时间标识1;ZSL队列中包括:时间标识1-图像帧1、时间标识2-图像帧2、时间标识3-图像帧3;基于时间标识1,电子设备可以在ZSL队列中选取图像帧1。Exemplarily, when the electronic device detects 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.
可选地,ZSL队列中存储的图像帧可以为Raw图像;其中,Raw图像是指图像传感器采集的原始图像数据。Optionally, 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.
可选地,可以直接从第二流程440中获取用于生成拍摄图像的图像帧。Optionally, the image frame used to generate the captured image may be directly acquired from the second process 440 .
S472、基于选取的图像帧生成拍摄图像。S472: Generate a captured image based on the selected image frame.
示例性地,可以对选取的Raw图像进行处理,将Raw图像转换为YUV图像;将YUV图像可以转换为RGB图像用于显示;此外,可以将YUV图像转换为其他格式(例如,JPEG格式、JPG格式、GIF格式等)用于存储。Exemplarily, 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.
应理解,拍摄图像与真实缩略图像的区别在于,通常情况下拍摄图像的分辨率与图像质量优于真实缩略图像。It should be understood that the difference between a captured image and a real thumbnail image is that, generally speaking, the resolution and image quality of a captured image are better than those of a real thumbnail image.
示例性地,可以对选取的Raw图像进行处理,将Raw图像转换为YUV图像;将YUV图像可以转换为RGB图像用于显示;此外,可以将YUV图像转换为其他格式(例如,JPEG格式、JPG格式、GIF格式等)用于存储。Exemplarily, 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.
可选地,S472包括但不限于以下步骤:
Optionally, S472 includes but is not limited to the following steps:
1.对选取的Raw图像进行Raw域算法,得到处理后的Raw图像;其中,Raw域算法包括但不限于:黑电平矫正处理、镜头阴影校正等算法;1. Perform a Raw domain algorithm on the selected Raw image to obtain a processed Raw image; wherein the Raw domain algorithm includes but is not limited to: black level correction processing, lens shading correction and other algorithms;
2.将多帧处理后的Raw图像进行融合处理,得到融合后的Raw图像;2. Fusing the Raw images after multiple frames are processed to obtain a fused Raw image;
示例性地,对长曝光的Raw图像、短曝光的Raw图像与正常曝光的Raw图像进行融合处理,得到融合处理后的Raw图像。Exemplarily, 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.
3.融合后的Raw图像转换至YUV颜色空间,得到YUV图像;即得到拍摄图像;3. The fused Raw image is converted to the YUV color space to obtain a YUV image; that is, the captured image is obtained;
4.将YUV图像转换为RGB图像,对RGB图像进行缩放处理,得到拍摄图像对应的缩略图像;4. Convert the YUV image into an RGB image, scale the RGB image, and obtain a thumbnail image corresponding to the captured image;
可选地,可以对YUV图像进行缩放处理,得到小尺寸的YUV图像;将小尺寸的YUV图像转换为小尺寸的RGB图像;显示小尺寸的RGB图像。Optionally, 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.
5.将YUV图像转换为其他存储格式的图像,其他存储格式的图像用于在电子设备中存储。可选地,上述为举例对S472的实体方式进行举例说明;S472可以参见现有的任意一种生成拍摄图像的算法,本申请对此不作任何限定。5. Convert the YUV image into an image in another storage format, and the image in another storage format is used to store in an electronic device. Optionally, the above is an example to illustrate the entity method of S472; S472 can refer to any existing algorithm for generating a captured image, and this application does not impose any limitation on this.
S480、在第三时刻,显示拍摄图像的缩略图像。S480: At the third moment, display a thumbnail image of the captured image.
其中,第三时刻在第二时刻之后。Among them, the third moment is after the second moment.
示例性地,在第三时刻显示拍摄图像的缩略图像的界面示意图如后续图8中的(a)所示。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 .
可选地,拍摄图像的缩略图像可以是指在生成拍摄图像之后,对拍摄图像进行缩放处理得到的缩略图像。Optionally, 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.
应理解,假设虚假缩略图像的图像尺寸为第一尺寸,真实缩略图像的图像尺寸为第二尺寸,拍摄图像的图像尺寸为第三尺寸;其中,第一尺寸与第二尺寸相同;第三尺寸大于第一尺寸,或者,第三尺寸大于第二尺寸。It should be understood that, assuming that the image size of the false thumbnail image is a first size, the image size of the real thumbnail image is a second size, and the image size of the captured image is a third size; wherein 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.
应理解,拍摄图像可以是指一次拍摄图像生成的真图;与真实缩略图像相比,拍摄图像无需进行下采样处理;此外,拍摄图像可以是基于多帧Raw图像融合处理后的图像;因此,拍摄图像的图像质量优于真实缩略图像的图像质量。It should be understood that 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.
需要说明的是,在电子设备生成拍摄图像后,在相机应用程序的显示界面中可以显示对拍摄图像进行缩放处理后得到的缩略图像,如图8中的(a)所示;此时,在相册应用程序中存储的为拍摄图像,如图8中的(b)所示的图像111。It should be noted that after the electronic device generates a captured image, a thumbnail image obtained by scaling the captured image can be displayed in the display interface of the camera application, as shown in (a) in Figure 8; at this time, the captured image is stored in the album application, such as image 111 shown in (b) in Figure 8.
示例性地,对于同一拍摄对象,虚假缩略图如图4中的1所示;真实缩略图如图4中的11所示;拍摄图像如图4中的111所示。Exemplarily, for the same photographed object, 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 .
可选地,在电子设备的相册应用程序中存储拍摄图像;在存储拍摄图像时,可以通过拍摄图像直接替换真实缩略图像。Optionally, 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.
示例性地,电子设备的相册应用程序中可以包括缓存模块;在第一时刻,缓存模块中的第一存储空间用于存储虚假缩略图像;在第二时刻,缓存模块中的第一存储空间用于存储真实缩略图像;例如,在第二时刻,可以通过真实缩略图像对虚假缩略图像进行替换处理,删除虚假缩略图像并在相同的存储空间存储真实缩略图像;在第三时刻,缓存模块中的第一存储空间用于存储拍摄图像;例如,在第三时刻,可以通过拍摄图像对真实缩略图像进行替换处理,删除真实缩略图像并在相同的存储空间存储拍摄图像。Exemplarily, 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.
应理解,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次拍摄;换
而言之,上述虚假缩略图像、真实缩略图像与拍摄图像对应于用户的同一次点击拍摄控件与弹起拍摄控件;此外,对于同一次拍摄,显示虚假缩略图像、显示真实缩略图与显示拍摄图像的缩略图像三者之间为互斥的;例如,若相机应用程序中的显示界面中显示虚假缩略图像,则显示界面中不会显示真实缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示真实缩略图像,则显示界面中不会显示虚假缩略图与拍摄图像的缩略图像;若相机应用程序中的显示界面中显示拍摄图像的缩略图像,则显示界面中不会显示虚假缩略图与真实缩略图像。It should be understood that the above-mentioned false thumbnail image, the real thumbnail image and the photographed image correspond to the same photographing of the user; In short, 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; 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.
可选地,在本申请的实施例中,对于一次拍摄而言,电子设备生成虚假缩略图像所需的时长小于生成真实缩略图像所需的时长;电子设备生成真实缩略图像的时长小于生成拍摄图像的缩略图像所需的时长。Optionally, in an embodiment of the present application, for one shot, 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.
在本申请的实施例中,在生成拍摄图像之后,通过拍摄图像对电子设备中存储的真实缩略图像进行直接替换;与拍摄图像与真实缩略图像相比,在本申请的实施例中直接进行替换处理,能够减少缩略图像所占用电子设备的存储空间。In an embodiment of the present application, after a captured image is generated, the real thumbnail image stored in the electronic device is directly replaced by the captured image; compared with the captured image and the real thumbnail image, 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.
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。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, 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
图5是本申请实施例提供的一种软件架构图。FIG5 is a software architecture diagram provided in an embodiment of the present application.
如图5所示,本申请实施例提供的软件架构可以包括应用程序层、应用程序框架层、硬件抽象层与硬件层。As shown in FIG. 5 , 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.
示例性地,应用程序层可以包括一系列应用程序包。如图5所示,应用程序包可以包括相机应用程序与相册应用程序。Exemplarily, the application layer may include a series of application packages. As shown in FIG5 , the application package may include a camera application and a photo album application.
例如,如图5所示,相机应用程序中可以包括预览存储模块;预览存储模块用于存储预览图像。For example, as shown in FIG. 5 , the camera application may include a preview storage module; the preview storage module is used to store preview images.
示例性地,应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。Exemplarily, the application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes some predefined functions.
例如,如图5所示,在本申请实施例中,应用程序框架层可以包括点击拍摄控件检测模式、虚假缩略图像生成模块、弹起拍摄控件检测模块、缩略图像显示模块。关于各模块的功能,后续实施例中将详细描述,在此先不赘述。For example, as shown in Figure 5, in the embodiment of the present application, 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. The functions of each module will be described in detail in subsequent embodiments and will not be repeated here.
示例性地,硬件抽象层可以为其他模块与硬件层之间提供接口。Exemplarily, the hardware abstraction layer may provide an interface between other modules and the hardware layer.
例如,如图5所示,硬件抽象层可以包括真实缩略图像生成模块、ZSL队列存储模块、图像帧选取模块与拍摄图像生成模式。关于各模块的功能,后续实施例中将详细描述,在
此先不赘述。For example, as shown in FIG5 , the hardware abstraction layer may include a real thumbnail image generation module, a ZSL queue storage module, an image frame selection module, and a captured image generation mode. The functions of each module will be described in detail in the subsequent embodiments. I won’t go into details about this.
示例性地,硬件层可以包括一系列硬件模块。如图5所示,硬件层可以包括相机模组。Exemplarily, the hardware layer may include a series of hardware modules. As shown in FIG5 , the hardware layer may include a camera module.
接下来,以检测到用户一次拍摄操作为例,结合上述图5所示的软件架构图,详细描述电子设备中各模块之间的交互流程。Next, taking the detection of a user's shooting operation as an example, the interaction process between the modules in the electronic device is described in detail in combination with the software architecture diagram shown in FIG. 5 .
S511、相机应用程序向相机模组发送采集图像的指令。S511. The camera application sends an instruction for capturing an image to the camera module.
示例性地,在运行相机应用程序之后,相机应用程序可以向相机模组发送采集图像的指令。Exemplarily, after the camera application is run, the camera application may send an instruction to capture an image to the camera module.
应理解,在相机模组获取到采集图像的指令后,可以生成两路数据流;其中,一路数据流用户生成预览图像;另一路数据流用于在后续生成拍摄图像。It should be understood that after the camera module obtains the instruction to capture the image, two data streams can be generated; one data stream is used to generate the preview image; and the other data stream is used to generate the captured image later.
S512、相机模组向预览存储模块中发送图像帧。S512: The camera module sends the image frame to the preview storage module.
示例性地,相机模组向预览存储模块中发送的图像帧用于生成预览图像。Exemplarily, the image frames sent by the camera module to the preview storage module are used to generate a preview image.
S513、相机模组向ZSL队列存储模块发送图像帧。S513. The camera module sends the image frame to the ZSL queue storage module.
示例性地,相机模组向预览存储模块中发送的图像帧用于生成拍摄图像。Exemplarily, the image frames sent by the camera module to the preview storage module are used to generate captured images.
可选地,S513与S512可以同时执行。例如,在点击拍摄控件检测模块检测到点击拍摄控件的操作时,触发步骤S513与步骤S514。Optionally, S513 and S512 may be performed simultaneously. For example, when the click-to-shoot control detection module detects the operation of clicking the shoot control, steps S513 and S514 are triggered.
S514、机应用程序中的拍摄控件被点击,触发拍照事件;点击拍摄模块检测到拍摄控件被点击的操作。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.
具体的,块检测到点击拍摄控件的操作的相关描述,可以参考前述步骤S420中的相关,在此不再赘述。Specifically, 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.
S515、点击拍摄检测模块向虚假缩略图像生成模块发送信息,该信息可以包括检测到拍摄控件被点击的时间信息。S515: 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.
S516、虚假缩略图像生成模块用于根据时间信息从预览存储模块中获取预览图像;对预览图像进行缩放处理,生成虚假缩略图像。S516: 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.
可选地,生成虚假缩略图像的实现方式可以参数图4所示的第一流程430的相关描述,此处不再赘述。Optionally, 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.
S517、点击拍摄检测模块向图像帧选取模块发送信息,该信息可以包括检测到拍摄控件被点击的时间信息。S517: 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.
S518、图像帧选取模块用于根据时间信息从ZSL队列存储模块中获取原始图像数据。S518, the image frame selection module is used to obtain the original image data from the ZSL queue storage module according to the time information.
S519、真实缩略图像生成模块用于对图像旋转模块发送的原始图像数据进行图像处理,生成真实缩略图像。S519: The real thumbnail image generation module is used to perform image processing on the original image data sent by the image rotation module to generate a real thumbnail image.
可选地,生成真实缩略图像的实现方式可以参数图4所示的第二流程440的相关描述,此处不再赘述。Optionally, 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.
S520、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。S520: A pop-up shooting control detection module is used to detect an operation of popping up a shooting control in a camera application.
可选地,在弹起拍摄控件检测模块检测到弹起拍摄控件的操作时,可以触发步骤S521与步骤S525。Optionally, when the pop-up shooting control detection module detects the operation of pop-up shooting control, step S521 and step S525 may be triggered.
S521、弹起拍摄控件检测向缩略图像显示模块发送指令,该指令用于指示缩略图像显示模块显示缩略图像。S521, 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.
S522、缩略图像显示模块获取虚假缩略图像生成模块中的虚假缩略图像。S522: The thumbnail image display module obtains the false thumbnail image in the false thumbnail image generation module.
S523、相机应用程序获取缩略图像显示模块发送的虚假缩略图像,并显示虚假缩略图
像。S523: The camera application obtains the false thumbnail image sent by the thumbnail image display module and displays the false thumbnail image. picture.
S524、相册应用程序获取缩略图像显示模块发送的虚假缩略图像,显示并存储虚假缩略图像。S524: The photo album application obtains the false thumbnail image sent by the thumbnail image display module, and displays and stores the false thumbnail image.
S525、弹起拍摄控件检测控件用于向拍摄图像生成模块发送指令,该指令用于指示拍摄图像生成模块获取图像帧生成拍摄图像。S525, 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.
S526、拍摄图像生成模块用于获取ZSL队列存储模块中的图像帧,并对图像帧进行处理生成拍摄图像。S526, the captured image generation module is used to obtain the image frames in the ZSL queue storage module, and process the image frames to generate captured images.
可选地,生成拍摄图像的实现方式可以参数图4所示的第三流程470的相关描述,此处不再赘述。Optionally, 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.
S527、真实缩略图像生成模块用于在生成真实缩略图像后向缩略图像显示模块发送真实缩略图像。S527: The real thumbnail image generation module is used to send the real thumbnail image to the thumbnail image display module after generating the real thumbnail image.
S528、相机应用程序获取缩略图像显示模块发送的真实缩略图像,并显示真实缩略图像。S528: The camera application obtains the real thumbnail image sent by the thumbnail image display module, and displays the real thumbnail image.
S529、相册应用程序获取缩略图像显示模块发送的真实缩略图像,显示真实缩略图像并对通过真实缩略图像对存储的虚假缩略图像进行替换处理。S529: 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.
S530、拍摄图像生成模块用于在生成拍摄图像后向缩略图像显示模块发送拍摄图像。S530: The captured image generation module is used to send the captured image to the thumbnail image display module after generating the captured image.
S531、相机应用程序用于获取缩略图像显示模块发送的拍摄图像,并显示拍摄图像的缩略图像。S531. The camera application is used to obtain the captured image sent by the thumbnail image display module and display the thumbnail image of the captured image.
S532、相册应用程序用于获取缩略图像显示模块发送的拍摄图像,显示拍摄图像并对通过拍摄图像对存储的真实缩略图像进行替换处理。S532: 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.
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。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 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
下面结合图6与图7,以电子设备检测到一次拍摄操作的界面示意图进行举例说明。6 and 7 , an example is given below with reference to a schematic diagram of an interface in which an electronic device detects a shooting operation.
示例性地,在T(10)时刻电子设备检测到运行相机应用程序,如图6中的(a)所示的为相机应用程序的预览界面610;在预览界面610中包括第一拍摄对象611、拍摄控件612与缩略图显示控件613;其中,缩略图显示控件613中显示的缩略图像为上一次拍摄图像的缩略图像;图6中的(b)所示的为相册应用程序的示意图,在相册显示界面620中包括第一拍摄图像621与第二拍摄图像622;其次,在相册应用程序中包括缓存模块630,缓存模块630中包括第一拍摄图像621与第二拍摄图像622。Exemplarily, at time T(10), 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.
例如,根据图6中的(a)与图6中的(b)所示可以看出,预览界面610中缩略图控
件612中显示的缩略图像为第一拍摄图像621对应的缩略图像;若电子设备检测到点击缩略图控件612的操作,则可以索引至相册应用程序中的第一拍摄图像621,并显示第一拍摄图像621。For example, according to FIG. 6 (a) and FIG. 6 (b), it can be seen that the 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.
应理解,相机应用程序的显示界面620中不显示缓存模块630;缓存模块630为电子设备中用于存储图像的模块。It should be understood that the cache module 630 is not displayed in the display interface 620 of the camera application; the cache module 630 is a module in the electronic device for storing images.
示例性地,在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。Exemplarily, at time T(11), 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. 6 ; at time T(12), 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. 7 ; at this time, the display interface 620 of the album application The display module 616 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.
需要说明的是,在电子设备中生成第一拍摄对象的真实缩略图像之后,显示界面中显示真实缩略图像,且在相册应用程序中通过第一拍摄对象的真实缩略图像对第一拍摄对象的虚假缩略图像进行替换处理。It should be noted that after 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.
可选地,生成第一拍摄对象的虚假缩略图像的实现方式可以参见图4所示的第一流程430,此处不再赘述。Optionally, 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.
可选地,生成第一拍摄对象的真实缩略图像的实现方式可以参见图4所示的第二流程440,此处不再赘述。Optionally, 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.
示例性地,在T(14)时刻,在电子设备生成第一拍摄对象的拍摄图像之后,显示显示界面617,显示界面617中包括第二拍摄对象615、缩略图显示控件613与拍摄控件612;缩略图显示控件613中显示第一拍摄对象的拍摄图像的缩略图像,如图8中的(a)所示;此时,相机应用程序显示显示界面625,显示界面625中包括第一拍摄对象的拍摄图像111、第一拍摄图像621与第二拍摄图像622;缓存模块630中存储第一拍摄对象的拍摄图像、第一拍摄图像与第二拍摄图像。Exemplarily, at time T(14), after the electronic device generates a photographed image of the first photographed object, 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.
需要说明的是,在电子设备中生成第一拍摄对象的拍摄图像之后,显示界面中显示拍摄图像的缩略图像,且在相册应用程序中通过第一拍摄对象的拍摄图像对第一拍摄对象的真实缩略图像进行替换处理。It should be noted that after the captured image of the first subject is generated in the electronic device, a 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.
可选地,生成第一拍摄对象的拍摄图像的实现方式可以参见图4所示的第三流程470,此处不再赘述。Optionally, 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.
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩
略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。In the embodiment of the present application, the shooting operation is divided into the operation of clicking the shooting control and the 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. 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
实现方式二Implementation method 2
可选地,电子设备检测到两次拍摄操作;例如,电子设备依次检测到:第一次点击拍摄控件、第一次弹起拍摄控件、第二次点击拍摄控件与第二次弹起拍摄控件。Optionally, 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.
示例一Example 1
可选地,在电子设备生成第二次拍摄的虚假缩略图像时,电子设备已生成第一次拍摄的虚假缩略图像、第一拍摄的真实缩略图像且未生成第一拍摄的拍摄图像。Optionally, 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.
例如,电子设备生成图像的顺序依次为:第一次拍摄的虚假缩略图像1、第一次拍摄的真实缩略图像11、第二次拍摄的虚假缩略图像2、第一次拍摄的拍摄图像111、第二次拍摄的真实缩略图像22、与第二次拍摄的拍摄图像222。For example, 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.
图9是本申请实施例提供的一种软件架构图。FIG. 9 is a software architecture diagram provided in an embodiment of the present application.
如图9所示,本申请实施例提供的软件架构可以包括应用程序层、应用程序框架层、硬件抽象层与硬件层。As shown in FIG. 9 , 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.
示例性地,应用程序层可以包括一系列应用程序包。如图9所示,应用程序包可以包括相机应用程序与相册应用程序。Exemplarily, the application layer may include a series of application packages. As shown in FIG9 , the application package may include a camera application and a photo album application.
例如,如图9所示,相机应用程序中可以包括预览存储模块;预览存储模块用于存储预览图像。For example, as shown in FIG. 9 , the camera application may include a preview storage module; the preview storage module is used to store preview images.
示例性地,应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。Exemplarily, the application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes some predefined functions.
例如,如图9所示,在本申请实施例中,应用程序框架层可以包括点击拍摄控件检测模式、虚假缩略图像生成模块、弹起拍摄控件检测模块、缩略图像显示模块。关于各模块的功能,后续实施例中将详细描述,在此先不赘述。For example, as shown in Figure 9, in the embodiment of the present application, 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. The functions of each module will be described in detail in the subsequent embodiments, and will not be repeated here.
示例性地,硬件抽象层可以为其他模块与硬件层之间提供接口。Exemplarily, the hardware abstraction layer may provide an interface between other modules and the hardware layer.
例如,如图9所示,硬件抽象层可以包括真实缩略图像生成模块、ZSL队列存储模块、图像帧选取模块与拍摄图像生成模式。关于各模块的功能,后续实施例中将详细描述,在此先不赘述。For example, as shown in Figure 9, the hardware abstraction layer may include a real thumbnail image generation module, a ZSL queue storage module, an image frame selection module and a captured image generation mode. The functions of each module will be described in detail in subsequent embodiments and will not be repeated here.
示例性地,硬件层可以包括一系列硬件模块。如图9所示,硬件层可以包括相机模组。Exemplarily, the hardware layer may include a series of hardware modules. As shown in FIG9 , the hardware layer may include a camera module.
接下来,以上述情形一为例,结合上述图9所示的软件架构图,详细描述电子设备中各模块之间的交互流程。Next, taking the above scenario 1 as an example, in combination with the software architecture diagram shown in FIG. 9 , the interaction process between the modules in the electronic device is described in detail.
S711、相机应用程序向相机模组发送采集图像的指令。S711. The camera application sends an instruction to capture an image to the camera module.
示例性地,在运行相机应用程序之后,相机应用程序可以向相机模组发送采集图像的
指令。For example, after the camera application is run, the camera application may send a captured image to the camera module. instruction.
应理解,在相机模组获取到采集图像的指令后,可以生成两路数据流;其中,一路数据流用户生成预览图像;另一路数据流用于在后续生成拍摄图像。It should be understood that after the camera module obtains the instruction to capture the image, two data streams can be generated; one data stream is used to generate the preview image; and the other data stream is used to generate the captured image later.
S712、相机模组向预览存储模块中发送图像帧。S712: The camera module sends the image frame to the preview storage module.
示例性地,相机模组向预览存储模块中发送的图像帧用于生成预览图像。Exemplarily, the image frames sent by the camera module to the preview storage module are used to generate a preview image.
S713、相机模组向ZSL队列存储模块发送图像帧。S713. The camera module sends the image frame to the ZSL queue storage module.
示例性地,相机模组向预览存储模块中发送的图像帧用于生成拍摄图像。Exemplarily, the image frames sent by the camera module to the preview storage module are used to generate captured images.
可选地,S713与S712可以同时执行。Optionally, S713 and S712 may be executed simultaneously.
S714、机应用程序中的拍摄控件被点击,触发拍照事件;点击拍摄模块检测到拍摄控件被点击的操作;例如,检测到第一次点击拍摄控件的操作。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.
具体的,块检测到点击拍摄控件的操作的相关描述,可以参考前述步骤S420中的相关描述,在此不再赘述。Specifically, 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.
S715、点击拍摄检测模块向虚假缩略图像生成模块发送第一信息,该第一信息可以包括检测到第一次点击拍摄控件的时间信息1。S715. 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.
S716、虚假缩略图像生成模块用于根据时间信息1从预览存储模块中获取预览图像1;对预览图像1进行缩放处理,生成虚假缩略图像1。S716 , 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 .
例如,虚假缩略图像生成模块用于根据第一次检测到点击拍摄控件的时间信息1,从预览存储模块中获取预览图1;对预览图像1进行缩放处理,生成虚假缩略图像1。For example, 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.
示例性地,生成虚假缩略图像1的实现方式可以参见图4中的第一流程430的相关描述,此处不再赘述。Exemplarily, 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.
S717、点击拍摄检测模块向图像帧选取模块发送第二信息,该第二信息可以包括检测到第一次点击拍摄控件的时间信息1。S717. 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.
S718、图像帧选取模块用于根据时间信息1从ZSL队列存储模块中获取原始图像数据1。S718, the image frame selection module is used to obtain the original image data 1 from the ZSL queue storage module according to the time information 1.
S719、真实缩略图像生成模块用于对图像选取模块发送的原始图像数据1进行图像处理,生成真实缩略图像11。S719, the real thumbnail image generation module is used to perform image processing on the original image data 1 sent by the image selection module to generate a real thumbnail image 11.
S720、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。S720: A pop-up shooting control detection module is used to detect an operation of popping up a shooting control in a camera application.
示例性地,弹起拍摄控件检测模块检测到第一次弹起拍摄控件的操作。Exemplarily, the pop-up shooting control detection module detects the first pop-up shooting control operation.
可选地,在本申请的实施例中,弹起拍摄控件检测模块与点击拍摄控件检测模块可以为同一模块;本申请对此不作任何限定。Optionally, in an embodiment of the present application, 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.
可选地,弹起拍摄控件检测模块检测到第一次弹起拍摄控件的操作时,可以触发显示虚假缩略图像1(例如,S721至S724)与生成第一次拍摄的拍摄图像(例如,S725与S726)的流程。Optionally, when the pop-up shooting control detection module 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).
示例性地,可以同时触发显示虚假缩略图像与生成第一次拍摄的拍摄图像的流程。Exemplarily, the process of displaying a false thumbnail image and generating a captured image of the first capture may be triggered simultaneously.
S721、弹起拍摄控件检测向缩略图像显示模块发送第一指令,该第一指令用于指示缩略图像显示模块显示缩略图像。S721: 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.
S722、缩略图像显示模块获取虚假缩略图像生成模块中的虚假缩略图像1。S722. The thumbnail image display module obtains the false thumbnail image 1 in the false thumbnail image generation module.
S723、相机应用程序获取缩略图像显示模块发送的虚假缩略图像1,并显示虚假缩略图像1。
S723 . The camera application obtains the false thumbnail image 1 sent by the thumbnail image display module, and displays the false thumbnail image 1 .
S724、相册应用程序获取缩略图像显示模块发送的虚假缩略图像1,显示并存储虚假缩略图像1。S724 . 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 .
S725、弹起拍摄控件检测控件用于向拍摄图像生成模块发送第二指令,该第二指令用于指示拍摄图像生成模块获取图像帧生成拍摄图像111。S725 . 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 .
S726、拍摄图像生成模块用于获取ZSL队列存储模块中的图像帧,并对图像帧进行处理生成拍摄图像111。S726, the captured image generation module is used to obtain the image frames in the ZSL queue storage module, and process the image frames to generate the captured image 111.
示例性地,生成拍摄图像111的实现方式可以参见图4中的第三流程470的相关描述,此处不再赘述。Exemplarily, 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.
S727、真实缩略图像生成模块用于生成真实缩略图像11,并在生成真实缩略图像11后向缩略图像显示模块发送真实缩略图像11。S727 . 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.
示例性地,生成真实缩略图像11的实现方式可以参见图4中的第二流程440的相关描述,此处不再赘述。Exemplarily, 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.
S728、相机应用程序获取缩略图像显示模块发送的真实缩略图像11,并显示真实缩略图像11。S728 . The camera application obtains the real thumbnail image 11 sent by the thumbnail image display module, and displays the real thumbnail image 11 .
S729、相册应用程序获取缩略图像显示模块发送的真实缩略图像11,显示真实缩略图像并对通过真实缩略图像11对存储的虚假缩略图像1进行替换处理。S729 . The album application obtains the real thumbnail image 11 sent by the thumbnail image display module, displays the real thumbnail image, and replaces the stored false thumbnail image 1 with the real thumbnail image 11 .
S730、点击拍摄模块检测到拍摄控件被点击的操作;例如,检测到第二次点击拍摄控件的操作。S730: 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.
S731、虚假缩略图像生成模块用于从点击拍摄检测模块获取第二次点击拍摄控件的时间信息2。S731. 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.
S732、虚假缩略图像生成模块用于根据第二次检测到点击拍摄控件的时间信息2从预览存储模块中获取预览图像2;对预览图像2进行缩放处理,生成虚假缩略图像2。S732 , 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.
例如,虚假缩略图像生成模块用于根据第二次检测到点击拍摄控件的时间信息2,从预览存储模块中获取预览图2;对预览图像2进行缩放处理,生成虚假缩略图像2。For example, 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.
示例性地,生成虚假缩略图像2的实现方式可以参见图4中的第一流程430的相关描述,此处不再赘述。Exemplarily, 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.
S733、虚假缩略图像生成模块用于在生成虚假缩略图像2之后,向缩略图像显示模块发送虚假缩略图像2。S733. 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.
示例性地,生成虚假缩略图像2的实现方式可以参见图4中的第一流程430的相关描述,此处不再赘述。Exemplarily, 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.
S734、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。S734: The pop-up shooting control detection module is used to detect the operation of popping up the shooting control in the camera application.
例如,弹起拍摄控件模块检测到第二次弹起拍摄控件的操作。For example, the pop-up shooting control module detects the second pop-up shooting control operation.
可选地,弹起拍摄控件检测模块检测到第二次弹起拍摄控件的操作时,可以触发显示虚假缩略图像2与生成第二次拍摄的拍摄图像的流程。Optionally, 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.
S735、弹起拍摄控件检测模块用于向缩略图像显示模块发送第三指令,该第三指令用于指示缩略图像显示模块显示缩略图像2。S735 . 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 .
S736、相机应用程序用于接收缩略图像显示模块发送的虚假缩略图像2,并显示虚假缩略图像2。S736 . 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 .
S737、相册应用程序用于接收缩略图像显示模块发送的虚假缩略图像2,显示并存储
虚假缩略图像2。S737, 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.
S738、拍摄图像生成模块用于在生成第一次拍摄的拍摄图像111后向缩略图像显示模块发送拍摄图像111。S738. 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.
需要说明的是,由于第二次点击拍摄控件的时间信息2晚于第一次点击拍摄控件的时间信息1;相机应用程序中通常会根据时间信息,显示与当前时刻最接近时刻的缩略图像;因此,在相机应用程序中显示第二次拍摄的虚假缩略图像2之后,电子设备不会再显示第一次拍摄的拍摄图像111的缩略图像。It should be noted that 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.
S739、相机应用程序用于接收缩略图像显示模块发送的拍摄图像,显示拍摄图像并对通过拍摄图像对存储的真实缩略图像进行替换处理。S739. 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.
S740、图像帧选取模块用于从点击拍摄模块获取第二次点击拍摄控件的时间信息2。S740, 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.
S741、图像帧选取模块用于根据时间信息2从ZSL队列存储模块中获取原始图像数据2。S741, the image frame selection module is used to obtain the original image data 2 from the ZSL queue storage module according to the time information 2.
S742、真实缩略图像生成模块用于对图像选取模块发送的原始图像数据2进行图像处理,生成真实缩略图像22。S742 , the real thumbnail image generation module is used to perform image processing on the original image data 2 sent by the image selection module to generate a real thumbnail image 22 .
S743、弹起拍摄控件检测模块用于检测弹起相机应用程序中的拍摄控件的操作。S743: The pop-up shooting control detection module is used to detect the operation of popping up the shooting control in the camera application.
示例性地,弹起拍摄控件检测模块用于检测第二次弹起相机应用程序中的拍摄控件的操作。Exemplarily, 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.
S744、弹起拍摄控件检测控件用于向拍摄图像生成模块发送第四指令,该第四指令用于指示拍摄图像生成模块获取图像帧生成第二次拍摄的拍摄图像222。S744. 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.
S745、拍摄图像生成模块用于获取ZSL队列存储模块中的图像帧,并对图像帧进行处理生成拍摄图像222。S745, 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.
示例性地,生成拍摄图像222的实现方式可以参见图4中的第三流程470的相关描述,此处不再赘述。Exemplarily, 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.
S746、拍摄图像生成模块用于生成第二次拍摄的真实缩略图像22,并在生成真实缩略图像22后向缩略图像显示模块发送真实缩略图像22。S746: 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.
示例性地,生成真实缩略图像22的实现方式可以参见图4中的第二流程440的相关描述,此处不再赘述。Exemplarily, 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.
S747、相机应用程序获取缩略图像显示模块发送的真实缩略图像22,并显示真实缩略图像22。S747 . The camera application obtains the real thumbnail image 22 sent by the thumbnail image display module, and displays the real thumbnail image 22 .
S748、相册应用程序用于接收缩略图像显示模块发送的真实缩略图像22,显示真实缩略图像22;并对通过真实缩略图像22对存储的虚假缩略图像2进行替换处理。S748 . The album application is used to receive the real thumbnail image 22 sent by the thumbnail image display module, display the real thumbnail image 22 , and replace the stored false thumbnail image 2 with the real thumbnail image 22 .
S749、拍摄图像生成模块用于在生成拍摄图像222后向缩略图像显示模块发送拍摄图像222。S749, the captured image generation module is used to send the captured image 222 to the thumbnail image display module after generating the captured image 222.
S750、相机应用程序用于接收缩略图像显示模块发送的拍摄图像222,并显示拍摄图像222的缩略图像。S750 , 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 .
S751、相册应用程序用于接收缩略图像显示模块发送的拍摄图像222,显示拍摄图像222;并通过拍摄图像222对存储的真实缩略图像22进行替换处理。S751 . 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 .
可选地,图9中所示的点击拍摄控件检测模块与弹起拍摄控件检测模块可以为同一个模块;也可以为不同模块,本申请对此从不作任何限定。
Optionally, 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.
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。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 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
下面结合图10至图14,对上述示例一的界面示意图进行举例说明。The interface schematic diagram of the above example 1 is described below with reference to FIG. 10 to FIG. 14 .
示例性地,在T(20)时刻电子设备检测到运行相机应用程序,如图10中的(a)所示的为相机应用程序的预览界面810;在预览界面810中包括第一拍摄对象811、拍摄控件812与缩略图显示控件813;其中,缩略图显示控件813中显示的缩略图像为上一次拍摄图像的缩略图像;图10中的(b)所示的为相册应用程序的显示界面820,在显示界面820中包括第一拍摄图像821;其次,在相册应用程序中包括缓存模块830,缓存模块830中包括第一拍摄图像821。Exemplarily, at time T(20), 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.
例如,根据图10中的(a)与图10中的(b)所示可以看出,预览界面810中缩略图控件812中显示的缩略图像为第一拍摄图像821对应的缩略图像;若电子设备检测到点击缩略图控件812的操作,则可以索引至相册应用程序中的第一拍摄图像821,并显示第一拍摄图像821。For example, according to (a) and (b) in Figure 10, it can be seen that 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.
应理解,相机应用程序的显示界面820中不显示缓存模块830;缓存模块830为电子设备中用于存储图像的模块。It should be understood that the cache module 830 is not displayed in the display interface 820 of the camera application; the cache module 830 is a module in the electronic device for storing images.
示例性地,在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中存储第一拍摄对象的真实缩略图像与第一拍摄图
像。Exemplarily, at time T(21), 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. 10; at time T(22), 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) of FIG11; at this time, as shown in (d) of FIG11, the camera application displays the display interface 824 including the real thumbnail image 11 of the first photographed object and the first photographed image 821; the cache module 830 stores the real thumbnail image of the first photographed object and the first photographed image picture.
需要说明的是,在电子设备中生成第一拍摄对象的真实缩略图像之后,显示界面中显示第一拍摄对象的真实缩略图像,且在相册应用程序中通过第一拍摄对象的真实缩略图像11对第一拍摄对象的虚假缩略图像1进行替换处理。It should be noted that after 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.
可选地,生成第一拍摄对象的虚假缩略图像的实现方式可以参见图4所示的第一流程430,此处不再赘述。Optionally, 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.
可选地,生成第一拍摄对象的真实缩略图像的实现方式可以参见图4所示的第二流程440,此处不再赘述。Optionally, 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.
示例性地,在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中包括第二拍摄对象的虚假缩略图像、第一拍摄对象的真实缩略图像与第一拍摄图像。Exemplarily, at time T(24), 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. At time T(25), 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. 12, 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.
应理解,在T(24)时刻与T(25)时刻时,电子设备还未生成第一次拍摄对象的拍摄图像,且检测到了第二次拍摄操作。It should be understood that at time T(24) and time T(25), the electronic device has not yet generated the first captured image of the subject, and has detected the second capturing operation.
示例性地,在T(26)时刻,如图13中的(a)所示,在电子设备生成第一拍摄对象的拍摄图像后,显示显示界面817包括第三拍摄对象、拍摄控件812与缩略图显示控件813;显示界面817中包括此时,如图13中的(b)所示,相册应用程序的显示界面826中包括第二拍摄对象的虚假缩略图像2、第一拍摄对象的拍摄图像111与第一拍摄图像821;缓存模块830中包括第二拍摄对象的虚假缩略图像、第一拍摄对象的真实图像与第一拍摄图像。Exemplarily, at time T(26), as shown in (a) in FIG. 13 , after the electronic device generates a captured image of the first subject, 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.
可选地,在电子设备中生成第一拍摄对象的拍摄图像之后,在相册应用程序中通过第一拍摄对象的拍摄图像对第一拍摄对象的真实缩略图像进行替换处理。Optionally, after the captured image of the first subject is generated in the electronic device, the real thumbnail image of the first subject is replaced by the captured image of the first subject in the album application.
可选地,生成第一拍摄对象的拍摄图像的实现方式可以参见图4所示的第三流程470,此处不再赘述。Optionally, 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.
应理解,由于第二次拍摄的操作晚于第一次拍摄;因此,在电子设备显示第二拍摄对象的缩略图像之后,即使电子设备生成第一拍摄对象的拍摄图像,相机应用程序中的显示界面中也不会在缩略图显示控件中显示第一拍摄对象的拍摄图像的缩略图像;因此,在T(26)时刻与T(25)时刻相机应用程序的显示界面相同。It should be understood that since the second shooting operation is performed later than the first shooting; therefore, after the electronic device displays the thumbnail image of the second photographed object, even if the electronic device generates a photographed image of the first photographed object, 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).
还应理解,第二次拍摄与第一次拍摄为两次独立的拍摄过程;因此,在相机应用程序中的缓存模块中,在同一次拍摄过程中,会通过在后生成的真实缩略图像替换在先生成的缩略图像;通过在后生成的拍摄图像替换在前生成的真实缩略图像;但是,第二次拍摄的图像并不会对第一次拍摄的图像进行替换。
It should also be understood that 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.
示例性地,在T(27)时刻,电子设备生成第二拍摄对象的真实缩略图像,显示显示界面818,如图13中的(c)所示;其中,显示界面818中包括第三拍摄对象与缩略图显示控件813,缩略图显示控件813中显示的为第二拍摄对象的真实缩略图像;此时,如图13中的(d)所示,相册应用程序的显示界面827中包括第二拍摄对象的真实缩略图像22、第一拍摄对象的拍摄图像111与第一拍摄图像821;缓存模块830中第二拍摄对象的真实缩略图像、第一拍摄对象的拍摄图像与第一拍摄图像。Exemplarily, at time T(27), 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.
示例性地,在T(28)时刻,电子设备生成第二拍摄对象的真实图像,显示显示界面819,如图14中的(a)所示;其中,显示界面819中包括第三拍摄对象与缩略图显示控件813,缩略图显示控件813中显示的为第二拍摄对象815的拍摄图像的缩略图像;此时,如图14中的(b)所示,相册应用程序的显示界面828中包括第二拍摄对象的拍摄图像222、第一拍摄对象的拍摄图像111与第一拍摄图像821;缓存模块830中第二拍摄对象的拍摄图像、第一拍摄对象的拍摄图像与第一拍摄图像。Exemplarily, at time T(28), 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.
需要说明的是,在生成拍摄图像之后相册应用程序中存储拍摄图像,且在相机应用程序中显示对拍摄图像进行缩放处理后的缩略图像;而在电子设备生成真实缩略图像或者虚假缩略图像之后,在相册应用程序中存储真实缩略图像或者虚假缩略图像,且在相机应用程序中显示真实缩略图像或者虚假缩略图像。It should be noted that after the captured image is generated, 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.
可选地,生成第二拍摄对象的拍摄图像的实现方式可以参见图4所示的第三流程470,此处不再赘述。Optionally, 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.
示例二Example 2
可选地,在电子设备生成第二次拍摄的虚假缩略图像时,电子设备已生成第一次拍摄的虚假缩略图像、第一拍摄的真实缩略图像与第一拍摄的拍摄图像。具体实现过程可以参见于示例一的相关描述,此处不再赘述。Optionally, 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.
示例三Example 3
可选地,在电子设备生成第二次拍摄的虚假缩略图像时,电子设备已生成第一次拍摄的虚假缩略图像,且未生成第一拍摄的真实缩略图像与第一拍摄的拍摄图像。具体实现过程可以参见于示例一的相关描述,此处不再赘述。Optionally, 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.
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。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 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
下面结合图15与图16对电子设备中开启显示虚假缩略图像,即执行本申请实施例的显示缩略图像的方法的界面示意图进行描述。
The following describes, in conjunction with 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.
在一个示例中,如图15中的(b)所示电子设备检测到点击智能控件840的操作之后,执行本申请实施例提供的显示缩略图像的方法。In one example, after 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.
示例性地,在电子设备运行相机应用程序后,显示如图15中的(a)所示的预览界面;在预览界面中,包括预览图像与智能控件840;电子设备检测到点击智能控件840的操作,如图15中的(b)所示;在电子设备检测到点击智能控件840的操作之后,执行本申请实施例提供的显示缩略图像的方法。Exemplarily, after the electronic device runs a camera application, 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.
在一个示例中,如图16中的(d)所示电子设备检测到点击控件851的操作之后,执行本申请实施例提供的显示缩略图像的方法。In one example, as shown in (d) of FIG. 16 , after the electronic device detects the operation of clicking the control 851 , the method for displaying thumbnail images provided in an embodiment of the present application is executed.
示例性地,电子设备中运行相机应用程序后,可以显示如图16中的(a)所示的预览界面;预览界面中包括预览图像与设置控件850;电子设备检测到点击设置控件850的操作,如图16中的(b)所示;在电子设备检测到点击设置控件850的操作之后,显示设置界面,如图16中的(c)所示;设置界面中包括快速缩略图像的控件851;电子设备检测到点击快速缩略图像的控件851的操作,如图16中的(d)所示;在电子设备检测到快速缩略图像的控件851的操作之后,执行本申请实施例提供的显示缩略图像的方法。Exemplarily, after a camera application is run in an electronic device, 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.
在本申请的实施例中,通过将拍摄操作分为点击拍摄控件的操作与弹起拍摄控件的操作,在电子设备检测到点击拍摄控件的操作时,触发电子设备生成虚假缩略图像与真实缩略图像;其中,虚假缩略图像是指基于预览图像进行缩放处理得到的缩略图像;真实缩略图像是指选取原始图像数据进行图像处理后生成的缩略图像;在电子设备检测到用户弹起拍摄控件的操作时,触发显示虚假缩略图像;使得在电子设备检测到弹起拍摄控件的操作的瞬间能够显示缩略图像,提高拍摄响应的速度;减少用户的拍摄等待时间,提高拍摄体验。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 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.
此外,在检测到弹起拍摄控件的同时,触发生成拍摄图像;在真实缩略图像生成后,可以通过真实缩略图像对虚假缩略图像进行替换处理;在拍摄图像生成后,可以通过对拍摄图像进行缩放处理得到的缩略图像对真实缩略图像进行替换处理;能够在提高拍摄响应速度的同时确保缩略图像的图像质量。In addition, when the pop-up shooting control is detected, 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.
需要说明的是,上述为对电子设备应用于拍照像场景的显示界面进行举例说明,本申请对此不作任何限定。It should be noted that the above is an example of a display interface of an electronic device applied to a photo-taking scene, and the present application does not impose any limitation on this.
应理解,上述举例说明是为了帮助本领域技术人员理解本申请实施例,而非要将本申请实施例限于所例示的具体数值或具体场景。本领域技术人员根据所给出的上述举例说明,显然可以进行各种等价的修改或变化,这样的修改或变化也落入本申请实施例的范围内。It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, rather than to limit the embodiments of the present application to the specific numerical values or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or changes based on the above examples, and such modifications or changes also fall within the scope of the embodiments of the present application.
上文结合图1至图16详细描述了本申请实施例提供的显示缩略图像的方法;下面将结合图17至图18详细描述本申请的装置实施例。应理解,本申请实施例中的装置可以执行前述本申请实施例的各种方法,即以下各种产品的具体工作过程,可以参考前述方法实施例中的对应过程。The above describes in detail the method for displaying thumbnail images provided by the embodiment of the present application in conjunction with Figures 1 to 16; the following describes in detail the device embodiment of the present application in conjunction with Figures 17 to 18. It should be understood that the device in the embodiment of the present application can execute the various methods of the aforementioned embodiment of the present application, that is, the specific working processes of the following various products can refer to the corresponding processes in the aforementioned method embodiments.
图17是本申请实施例提供的一种电子设备的结构示意图。该电子设备900包括显示模块910与处理模块920。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 .
在一种实现方式中,显示模块910用于在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集
的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;处理模块920用于检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄,所述拍摄可以包括拍照;响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;显示模块910还用于响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。In one implementation, 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. an image generated by preview processing of the first image, the first image being the 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, 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.
可选地,作为一个实施例,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。Optionally, as an embodiment, 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.
可选地,作为一个实施例,处理模块920还用于:Optionally, as an embodiment, the processing module 920 is further configured to:
响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
可选地,作为一个实施例,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,处理模块920还用于:Optionally, as an embodiment, the electronic device includes a storage module, the storage module includes a first storage area, and the processing module 920 is further used to:
在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the electronic device generates the second thumbnail image but does not generate the first captured image, replacing the first thumbnail image in the first storage area with the second thumbnail image;
在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced by the first captured image.
可选地,作为一个实施例,处理模块920具体用于:Optionally, as an embodiment, the processing module 920 is specifically configured to:
获取检测到所述第一操作的时间信息;Acquire time information when the first operation is detected;
基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。The first image is selected from a zero-second delay queue in the electronic device based on the time information.
可选地,作为一个实施例,所述第二图像处理包括第一算法处理与第二算法处理,所述第一算法为第一颜色空间的算法,所述第二算法为将第一颜色空间的图像转换为第二颜色空间的图像的算法,处理模块920具体用于:Optionally, as an embodiment, 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, and the second algorithm is an algorithm for converting an image in the first color space into an image in a second color space, and the processing module 920 is specifically used for:
对所述第一图像进行第一算法处理,得到第一颜色空间的图像;Processing the first image with a first algorithm to obtain an image in a first color space;
对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;Performing fusion processing on at least two frames of images in the first color space to obtain a fused image;
对所述融合图像进行第二算法处理,生成所述第一拍摄图像。The fused image is processed by a second algorithm to generate the first captured image.
可选地,作为一个实施例,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。Optionally, as an embodiment, the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
可选地,作为一个实施例,所述图像质量包括图像纹理信息或者图像亮度信息。Optionally, as an embodiment, the image quality includes image texture information or image brightness information.
在一种实现方式中,显示模块910用于在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;处理模块920用于检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄,所述拍摄可以包括拍照;响应于所述第一操作,在
相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;显示模块910用于响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;处理模块920用于在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;显示模块910用于响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。In one implementation, 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 second operation is used to indicate the end of shooting; the display module 910 is used to display the first thumbnail image and the second thumbnail image in sequence in the thumbnail display area in response to the second operation; and a third thumbnail image is generated, and the image quality of the third thumbnail image is better than that of the second thumbnail image; the processing module 920 is used to detect a third operation on the first control before generating the third thumbnail image, and the third The operation is used to indicate the start of shooting; in response to the third operation, a fourth thumbnail image is saved in the album application, and a fifth thumbnail image is generated; wherein the fourth thumbnail image is a thumbnail image generated by 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; a fourth operation on the first control is detected, and the fourth operation is used to indicate the end of shooting; the display module 910 is used to display the fourth thumbnail image, the fifth thumbnail image and the sixth thumbnail image in the thumbnail display area in sequence in response to the fourth operation, wherein the image quality of the sixth thumbnail image is better than that of the fifth thumbnail image.
可选地,作为一个实施例,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。Optionally, as an embodiment, 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.
可选地,作为一个实施例,处理模块920具体用于:Optionally, as an embodiment, the processing module 920 is specifically configured to:
响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;
基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
可选地,作为一个实施例,处理模块920还用于:Optionally, as an embodiment, the processing module 920 is further configured to:
响应于所述第四操作,生成第二拍摄图像;In response to the fourth operation, generating a second captured image;
基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。The second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
可选地,作为一个实施例,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。Optionally, as an embodiment, 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.
可选地,作为一个实施例,处理模块920还用于:Optionally, as an embodiment, the processing module 920 is further configured to:
在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the second thumbnail image is generated and the first captured image is not generated, replacing the first thumbnail image in the first storage area with the second thumbnail image;
在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the first photographed image is generated, the second thumbnail image in the first storage area is replaced by the first photographed image.
可选地,作为一个实施例,处理模块920还用于:Optionally, as an embodiment, the processing module 920 is further configured to:
在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;When the fifth thumbnail image is generated and the second captured image is not generated, replacing the fourth thumbnail image in the second storage area with the fifth thumbnail image;
在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域
的所述第五缩略图像进行替换处理。When the second captured image is generated, the second storage area is The fifth thumbnail image is replaced.
可选地,作为一个实施例,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。Optionally, as an embodiment, the first operation and the third operation are operations of clicking the first control; the second operation and the fourth operation are operations of popping up the first control.
可选地,作为一个实施例,所述图像质量包括图像纹理信息或者图像亮度信息。Optionally, as an embodiment, the image quality includes image texture information or image brightness information.
需要说明的是,上述电子设备900以功能模块的形式体现。这里的术语“模块”可以通过软件和/或硬件形式实现,对此不作具体限定。It should be noted that the electronic device 900 is implemented in the form of a functional module. The term "module" here can be implemented in the form of software and/or hardware, and is not specifically limited to this.
例如,“模块”可以是实现上述功能的软件程序、硬件电路或二者结合。硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。For example, 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.
因此,在本申请的实施例中描述的各示例的单元,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are 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.
图18示出了本申请提供的一种电子设备的结构示意图。图18中的虚线表示该单元或该模块为可选的;电子设备1000可以用于实现上述方法实施例中描述的显示缩略图像的方法。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.
电子设备1000包括一个或多个处理器1001,该一个或多个处理器1001可支持电子设备1000实现方法实施例中的显示缩略图像的方法。处理器1001可以是通用处理器或者专用处理器。例如,处理器1001可以是中央处理器(central processing unit,CPU)、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件,如分立门、晶体管逻辑器件或分立硬件组件。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. For example, the processor 1001 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, such as discrete gates, transistor logic devices or discrete hardware components.
可选地,处理器1001可以用于对电子设备1000进行控制,执行软件程序,处理软件程序的数据。电子设备1000还可以包括通信单元1005,用以实现信号的输入(接收)和输出(发送)。Optionally, 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.
例如,电子设备1000可以是芯片,通信单元1005可以是该芯片的输入和/或输出电路,或者,通信单元1005可以是该芯片的通信接口,该芯片可以作为终端设备或其它电子设备的组成部分。For example, the electronic device 1000 may be a chip, the communication unit 1005 may be an input and/or output circuit of the chip, or the communication unit 1005 may be a communication interface of the chip, and the chip may be a component of a terminal device or other electronic devices.
又例如,电子设备1000可以是终端设备,通信单元1005可以是该终端设备的收发器,或者,通信单元1005可以1000中可以包括一个或多个存储器1002,其上存有程序1004,程序1004可被处理器1001运行,生成指令1003,使得处理器1001根据指令1003执行上述方法实施例中描述的显示缩略图像的方法。For another example, 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.
可选地,存储器1002中还可以存储有数据。Optionally, data may also be stored in the memory 1002 .
可选地,处理器1001还可以读取存储器1002中存储的数据,该数据可以与程序1004存储在相同的存储地址,该数据也可以与程序1004存储在不同的存储地址。Optionally, 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 .
可选地,处理器1001和存储器1002可以单独设置,也可以集成在一起,例如,集成在终端设备的系统级芯片(system on chip,SOC)上。Optionally, 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.
示例性地,存储器1002可以用于存储本申请实施例中提供的显示缩略图像的方法的相关
程序1004,处理器1001可以用于在执行显示缩略图像的方法时调用存储器1002中存储的显示缩略图像的方法的相关程序1004,执行本申请实施例的显示缩略图像的方法;例如,在第一时刻显示第一显示界面,第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,第一控件为指示拍摄的控件;缩略图显示区域用于显示缩略图像;第一预览图像为电子设备采集的第一图像经过预览处理生成的图像,第一图像为电子设备在第一时刻实时采集的图像;检测到对第一控件的第一操作,第一操作用于指示开始拍摄,拍摄可以包括拍照;响应于第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,第一缩略图像为第一图像经过第一图像处理生成的缩略图像;第二缩略图像为第一图像经过第二图像处理生成的缩略图像,第一图像处理与第二图像处理不同;检测到对第一控件的第二操作,第二操作用于指示结束拍摄;响应于第二操作,在缩略图显示区域依次显示第一缩略图像、第二缩略图像与第三缩略图像,其中,第三缩略图像的图像质量优于第二缩略图像。Exemplarily, 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; wherein the first thumbnail image is a thumbnail image generated by the first image through the first image processing; the second thumbnail image is a thumbnail image generated by the first image through the second image processing, and the first image processing is different from the second image processing; a second operation on the first control is detected, and the second operation is used to indicate the end of shooting; in response to the second operation, the first thumbnail image, the second thumbnail image and the third thumbnail image are displayed in sequence in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.
可选地,本申请还提供了一种计算机程序产品,该计算机程序产品被处理器1001执行时实现本申请中任一方法实施例中的显示缩略图像的方法。Optionally, 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.
例如,该计算机程序产品可以存储在存储器1002中,例如是程序1004,程序1004经过预处理、编译、汇编和链接等处理过程最终被转换为能够被处理器1001执行的可执行目标文件。For example, 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.
可选地,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机执行时实现本申请中任一方法实施例的显示缩略图像的方法。该计算机程序可以是高级语言程序,也可以是可执行目标程序。Optionally, 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.
例如,该计算机可读存储介质例如是存储器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)。For example, 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. Among them, 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. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in 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 this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的电子设备的实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the embodiments of the electronic device described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, 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.
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, 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.
另外,本文中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article generally indicates that the associated objects before and after are in an "or" relationship.
功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If 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. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. 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.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准总之,以上仅为本申请技术方案的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。
The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims. In short, the above are only preferred embodiments of the technical solution of the present application, and are not used to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (21)
- 一种显示缩略图像的方法,其特征在于,应用于电子设备,包括:A method for displaying thumbnail images, characterized in that it is applied to an electronic device, comprising:在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像,其中,所述第一控件为指示拍摄的控件,所述缩略图显示区域用于显示缩略图像,所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;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 instructing shooting, the thumbnail display area is used to display a thumbnail image, 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;检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;detecting a first operation on the first control, where the first operation is used to instruct to start shooting;响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;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 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;检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;detecting a second operation on the first control, where the second operation is used to indicate ending shooting;响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像、所述第二缩略图像与第三缩略图像,其中,所述第三缩略图像的图像质量优于所述第二缩略图像。In response to the second operation, the first thumbnail image, the second thumbnail image and the third thumbnail image are sequentially displayed in the thumbnail display area, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image.
- 如权利要求1所述的方法,其特征在于,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。The method as claimed in claim 1 is characterized in that 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.
- 如权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
- 如权利要求3所述的方法,其特征在于,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域,还包括:The method according to claim 3, wherein the electronic device comprises a storage module, the storage module comprises a first storage area, and further comprises:在所述电子设备生成所述第二缩略图像且未生成所述第一拍摄图像时,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the electronic device generates the second thumbnail image but does not generate the first captured image, replacing the first thumbnail image in the first storage area with the second thumbnail image;在所述电子设备生成所述第一拍摄图像时,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the electronic device generates the first captured image, the second thumbnail image in the first storage area is replaced by the first captured image.
- 如权利要求3或4所述的方法,其特征在于,还包括:The method according to claim 3 or 4, characterized in that it also includes:获取检测到所述第一操作的时间信息;Acquire time information when the first operation is detected;基于所述时间信息在所述电子设备中的零秒延迟队列中选取所述第一图像。The first image is selected from a zero-second delay queue in the electronic device based on the time information.
- 如权利要求3至5中任一项所述的方法,其特征在于,所述第二图像处理包括第一算法处理与第二算法处理,所述第一算法为第一颜色空间的算法,所述第二算法为将所述第一颜色空间的图像转换为第二颜色空间的图像的算法,所述生成第一拍摄图像,包括:The method according to any one of claims 3 to 5, characterized in that 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, and the generating of the first captured image includes:对所述第一图像进行所述第一算法处理,得到所述第一颜色空间的图像;Processing the first image with the first algorithm to obtain an image in the first color space;对至少两帧所述第一颜色空间的图像进行融合处理,得到融合图像;Performing fusion processing on at least two frames of images in the first color space to obtain a fused image;对所述融合图像进行所述第二算法处理,生成所述第一拍摄图像。The fused image is processed by the second algorithm to generate the first captured image.
- 如权利要求1至6中任一项所述的方法,其特征在于,所述第一操作为点击所述第一控件的操作;所述第二操作为弹起所述第一控件的操作。 The method according to any one of claims 1 to 6, characterized in that the first operation is an operation of clicking the first control; and the second operation is an operation of popping up the first control.
- 如权利要求1至7中任一项所述的方法,其特征在于,所述图像质量包括图像纹理信息或者图像亮度信息。The method according to any one of claims 1 to 7, characterized in that the image quality includes image texture information or image brightness information.
- 一种显示缩略图像的方法,其特征在于,应用于电子设备,包括:A method for displaying thumbnail images, characterized in that it is applied to an electronic device, comprising:在第一时刻显示第一显示界面,所述第一显示界面中包括第一控件、缩略图显示区域与第一预览图像;其中,所述第一控件为指示拍摄的控件;所述缩略图显示区域用于显示缩略图像;所述第一预览图像为所述电子设备采集的第一图像经过预览处理生成的图像,所述第一图像为所述电子设备在所述第一时刻实时采集的图像;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 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;检测到对所述第一控件的第一操作,所述第一操作用于指示开始拍摄;detecting a first operation on the first control, where the first operation is used to instruct to start shooting;响应于所述第一操作,在相册应用程序中保存第一缩略图像,并且生成第二缩略图像;其中,所述第一缩略图像为所述第一图像经过第一图像处理生成的缩略图像;所述第二缩略图像为所述第一图像经过第二图像处理生成的缩略图像,所述第一图像处理与所述第二图像处理不同;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 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;检测到对所述第一控件的第二操作,所述第二操作用于指示结束拍摄;detecting a second operation on the first control, where the second operation is used to indicate ending shooting;响应于所述第二操作,在所述缩略图显示区域依次显示所述第一缩略图像与所述第二缩略图像;并且,生成第三缩略图像,所述第三缩略图像的图像质量优于所述第二缩略图像;In response to the second operation, sequentially displaying the first thumbnail image and the second thumbnail image in the thumbnail display area; and generating a third thumbnail image, wherein the image quality of the third thumbnail image is better than that of the second thumbnail image;在生成所述第三缩略图像之前,检测到对所述第一控件的第三操作,所述第三操作用于指示所述开始拍摄;Before generating the third thumbnail image, detecting a third operation on the first control, the third operation being used to instruct starting shooting;响应于所述第三操作,在相册应用程序中保存第四缩略图像,并且生成第五缩略图像;其中,所述第四缩略图像为第二图像经过第一图像处理生成的缩略图像;所述第五缩略图像为所述第二图像经过第二图像处理生成的缩略图像;所述第二图像为所述电子设备在第二时刻实时采集的图像,所述第二时刻晚于所述第一时刻;In response to the third operation, 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;检测到对所述第一控件的第四操作,所述第四操作用于指示所述结束拍摄;detecting a fourth operation on the first control, the fourth operation being used to indicate the end of shooting;响应于所述第四操作,在所述缩略图显示区域依次显示所述第四缩略图像、所述第五缩略图像与第六缩略图像,其中,所述第六缩略图像的图像质量优于所述第五缩略图像。In response to the fourth operation, 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.
- 如权利要求9所述的方法,其特征在于,所述第一图像处理包括下采样处理;所述第二图像处理的算法复杂度高于所述第一图像处理的算法复杂度。The method as claimed in claim 9 is characterized in that 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.
- 如权利要求9或10所述的方法,其特征在于,所述生成第三缩略图像,包括:The method according to claim 9 or 10, characterized in that generating the third thumbnail image comprises:响应于所述第二操作,生成第一拍摄图像;In response to the second operation, generating a first captured image;基于所述缩略图显示区域的尺寸对所述第一拍摄图像进行缩放处理,生成所述第三缩略图像。The first captured image is scaled based on the size of the thumbnail display area to generate the third thumbnail image.
- 如权利要求11所述的方法,其特征在于,还包括:The method according to claim 11, further comprising:响应于所述第四操作,生成第二拍摄图像;In response to the fourth operation, generating a second captured image;基于所述缩略图显示区域的尺寸对所述第二拍摄图像进行缩放处理,生成所述第六缩略图像。The second captured image is scaled based on the size of the thumbnail display area to generate the sixth thumbnail image.
- 如权利要求12所述的方法,其特征在于,所述电子设备中包括存储模块,所述存储模块中包括第一存储区域与第二存储区域,所述第一存储区域用于存储所述第一缩略图像、所述第二缩略图像或者所述第一拍摄图像;所述第二存储区域用于存储 所述第四缩略图像、所述第五缩略图像或者所述第二拍摄图像;所述第一存储区域与所述第二存储区域为所述存储模块中不同的存储区域。The method according to claim 12, characterized in that 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.
- 如权利要求13所述的方法,其特征在于,还包括:The method according to claim 13, further comprising:在生成所述第二缩略图像且未生成所述第一拍摄图像的情况下,通过所述第二缩略图像对所述第一存储区域的所述第一缩略图像进行替换处理;When the second thumbnail image is generated and the first captured image is not generated, replacing the first thumbnail image in the first storage area with the second thumbnail image;在生成所述第一拍摄图像的情况下,通过所述第一拍摄图像对所述第一存储区域的所述第二缩略图像进行替换处理。When the first photographed image is generated, the second thumbnail image in the first storage area is replaced by the first photographed image.
- 如权利要求13或14所述的方法,其特征在于,还包括:The method according to claim 13 or 14, further comprising:在生成第五缩略图像且未生成所述第二拍摄图像的情况下,通过所述第五缩略图像对所述第二存储区域的所述第四缩略图像进行替换处理;When the fifth thumbnail image is generated and the second captured image is not generated, replacing the fourth thumbnail image in the second storage area with the fifth thumbnail image;在生成所述第二拍摄图像的情况下,通过所述第二拍摄图像对所述第二存储区域的所述第五缩略图像进行替换处理。When the second photographed image is generated, the fifth thumbnail image in the second storage area is replaced by the second photographed image.
- 如权利要求9至15中任一项所述的方法,其特征在于,所述第一操作与所述第三操作为点击所述第一控件的操作;所述第二操作与所述第四操作为弹起所述第一控件的操作。The method according to any one of claims 9 to 15, characterized in that 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.
- 如权利要求9至16中任一项所述的方法,其特征在于,所述图像质量包括图像纹理信息或者图像亮度信息。The method according to any one of claims 9 to 16, characterized in that the image quality includes image texture information or image brightness information.
- 一种电子设备,其特征在于,包括:An electronic device, comprising:一个或多个处理器和存储器;one or more processors and memory;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如权利要求1至8,或者,9至17中任一项所述的方法。The memory is coupled to the one or more processors, and the memory is used to store computer program code, wherein the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method as described in any one of claims 1 to 8, or 9 to 17.
- 一种芯片系统,其特征在于,所述芯片系统应用于电子设备,所述芯片系统包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如权利要求1至8,或者,9至17中任一项所述的方法。A chip system, characterized in that the chip system is applied to an electronic device, the chip system comprises one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 8, or 9 to 17.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储了计算机程序,当所述计算机程序被处理器执行时,使得所述处理器执行权利要求1至8,或者9至17中任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method described in any one of claims 1 to 8, or 9 to 17.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码被电子设备运行时,使得所述电子设备执行权利要求1至8,或者9至17中任一项所述的方法。 A computer program product, characterized in that the computer program product comprises a computer program code, and when the computer program code is executed by an electronic device, the electronic device executes the method described in any one of claims 1 to 8, or 9 to 17.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211467867.9A CN116668837B (en) | 2022-11-22 | 2022-11-22 | Method for displaying thumbnail images and electronic device |
CN202211467867.9 | 2022-11-22 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024109207A1 true WO2024109207A1 (en) | 2024-05-30 |
Family
ID=87714154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/114173 WO2024109207A1 (en) | 2022-11-22 | 2023-08-22 | Method for displaying thumbnail, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN118433524A (en) |
WO (1) | WO2024109207A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117499777B (en) * | 2023-09-15 | 2024-10-15 | 荣耀终端有限公司 | Image display method and device |
Citations (7)
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 (en) * | 2015-03-12 | 2015-07-01 | 广东欧珀移动通信有限公司 | Method for generating thumbnail and shooting terminal |
CN108124099A (en) * | 2017-12-14 | 2018-06-05 | Tcl移动通信科技(宁波)有限公司 | A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail |
CN110166708A (en) * | 2019-06-13 | 2019-08-23 | Oppo广东移动通信有限公司 | Night scene image processing method, device, electronic equipment and storage medium |
CN111432121A (en) * | 2020-03-30 | 2020-07-17 | Oppo广东移动通信有限公司 | Generation method, electronic device, and storage medium |
CN112672035A (en) * | 2019-10-16 | 2021-04-16 | 青岛海信移动通信技术股份有限公司 | Thumbnail generation method and terminal |
CN116112787A (en) * | 2022-07-05 | 2023-05-12 | 荣耀终端有限公司 | Method for displaying thumbnail during photographing and electronic equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9749649B2 (en) * | 2014-08-27 | 2017-08-29 | Fingram Co., Ltd. | Method and system for generating and displaying thumbnail images from original images |
CN107509038B (en) * | 2017-10-16 | 2019-10-15 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN110401766B (en) * | 2019-05-22 | 2021-12-21 | 华为技术有限公司 | Shooting method and terminal |
CN112449099B (en) * | 2019-08-30 | 2022-08-19 | 华为技术有限公司 | Image processing method, electronic equipment and cloud server |
CN113497888B (en) * | 2020-04-07 | 2023-05-02 | 华为技术有限公司 | Photo preview method, electronic device and storage medium |
CN114500821B (en) * | 2020-10-26 | 2024-02-27 | 北京小米移动软件有限公司 | Photographing method and device, terminal and storage medium |
-
2022
- 2022-11-22 CN CN202410418568.9A patent/CN118433524A/en active Pending
- 2022-11-22 CN CN202211467867.9A patent/CN116668837B/en active Active
-
2023
- 2023-08-22 WO PCT/CN2023/114173 patent/WO2024109207A1/en unknown
Patent Citations (7)
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 (en) * | 2015-03-12 | 2015-07-01 | 广东欧珀移动通信有限公司 | Method for generating thumbnail and shooting terminal |
CN108124099A (en) * | 2017-12-14 | 2018-06-05 | Tcl移动通信科技(宁波)有限公司 | A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail |
CN110166708A (en) * | 2019-06-13 | 2019-08-23 | Oppo广东移动通信有限公司 | Night scene image processing method, device, electronic equipment and storage medium |
CN112672035A (en) * | 2019-10-16 | 2021-04-16 | 青岛海信移动通信技术股份有限公司 | Thumbnail generation method and terminal |
CN111432121A (en) * | 2020-03-30 | 2020-07-17 | Oppo广东移动通信有限公司 | Generation method, electronic device, and storage medium |
CN116112787A (en) * | 2022-07-05 | 2023-05-12 | 荣耀终端有限公司 | Method for displaying thumbnail during photographing and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN116668837A (en) | 2023-08-29 |
CN118433524A (en) | 2024-08-02 |
CN116668837B (en) | 2024-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111212235B (en) | Long-focus shooting method and electronic equipment | |
WO2024031879A1 (en) | Method for displaying dynamic wallpaper, and electronic device | |
WO2024109207A1 (en) | Method for displaying thumbnail, and electronic device | |
WO2024045670A1 (en) | Method for generating high-dynamic-range video, and electronic device | |
WO2024087804A1 (en) | Camera switching method and electronic device | |
CN115633262B (en) | Image processing method and electronic device | |
WO2022083325A1 (en) | Photographic preview method, electronic device, and storage medium | |
EP4443894A1 (en) | Image processing method and electronic device | |
WO2023142830A1 (en) | Camera switching method, and electronic device | |
WO2021185374A1 (en) | Image capturing method and electronic device | |
WO2023060921A1 (en) | Image processing method and electronic device | |
CN115526787A (en) | Video processing method and device | |
WO2023005355A1 (en) | Image anti-shake method and electronic device | |
WO2024109203A1 (en) | Photographing processing method and electronic device | |
WO2024174625A1 (en) | Image processing method and electronic device | |
CN113744139B (en) | Image processing method, device, electronic equipment and storage medium | |
WO2023160221A1 (en) | Image processing method and electronic device | |
EP4262226A1 (en) | Photographing method and related device | |
US20220385814A1 (en) | Method for generating plurality of content items and electronic device therefor | |
CN115767290A (en) | Image processing method and electronic device | |
CN114945019A (en) | Data transmission method, device and storage medium | |
WO2023185127A1 (en) | Image processing method and electronic device | |
CN115767287B (en) | Image processing method and electronic equipment | |
WO2023035868A1 (en) | Photographing method and electronic device | |
WO2024067428A1 (en) | High-resolution high-frame-rate photographing method, and image processing apparatus |
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 |