CN114500821B - Photographing method and device, terminal and storage medium - Google Patents

Photographing method and device, terminal and storage medium Download PDF

Info

Publication number
CN114500821B
CN114500821B CN202011158837.0A CN202011158837A CN114500821B CN 114500821 B CN114500821 B CN 114500821B CN 202011158837 A CN202011158837 A CN 202011158837A CN 114500821 B CN114500821 B CN 114500821B
Authority
CN
China
Prior art keywords
image
target image
queue
thumbnail
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011158837.0A
Other languages
Chinese (zh)
Other versions
CN114500821A (en
Inventor
董成鹏
高川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011158837.0A priority Critical patent/CN114500821B/en
Publication of CN114500821A publication Critical patent/CN114500821A/en
Application granted granted Critical
Publication of CN114500821B publication Critical patent/CN114500821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to a photographing method and device, a terminal and a storage medium. The method comprises the following steps: based on the detected photographing instruction, acquiring and generating a first image queue and a second image queue with the same image content; the data size of the single-frame images in the second image queue is smaller than that of the single-frame images in the first image queue; determining a target image from the first image queue, and performing image quality optimization processing on the target image; determining an image with the same generation time as the generation time of the target image in the second image queue as a thumbnail of the target image; and outputting the target image after the image quality optimization processing if the operation instruction acted on the thumbnail is detected. By the method, jump when the thumbnail is switched to the target image after the image quality optimization processing can be reduced, time consumption can be reduced, and user experience is improved.

Description

Photographing method and device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of electronic equipment, and in particular relates to a photographing method and device, a terminal and a storage medium.
Background
With the improvement of living standard of people, mobile terminals have been widely used. The existing mobile terminal is generally provided with a photographing function, so that a user can record own daily life by using the photographing function and store the daily life in an album, and great convenience is brought to life of people.
Generally, thumbnail images are generated during photographing, so that a user can quickly look at a currently photographed image by associating the thumbnail images with an album application.
Disclosure of Invention
The disclosure provides a photographing method and device, a terminal and a storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a photographing method, including:
based on the detected photographing instruction, acquiring and generating a first image queue and a second image queue with the same image content; the data size of the single-frame images in the second image queue is smaller than that of the single-frame images in the first image queue;
determining a target image from the first image queue, and performing image quality optimization processing on the target image;
determining an image with the same generation time as the generation time of the target image in the second image queue as a thumbnail of the target image;
and outputting the target image after the image quality optimization processing if the operation instruction acted on the thumbnail is detected.
Optionally, the method further comprises:
the target image is stored into an album after being subjected to image quality optimization treatment;
and outputting the target image after the image quality optimization processing if the operation instruction acting on the thumbnail is detected, wherein the method comprises the following steps:
and if the operation instruction acting on the thumbnail is detected, reading the target image with optimized image quality from the album and outputting the target image.
Optionally, the determining the target image from the first image queue includes:
if the first image queue comprises a single frame image, determining the single frame image as the target image;
and if the first image queue comprises a plurality of images, selecting an image meeting a preset condition from the plurality of images as the target image.
Optionally, selecting, from the multiple frame images, an image that satisfies a preset condition as the target image includes:
selecting an image satisfying a predetermined number from the multi-frame images as the target image; or,
and selecting an image meeting preset image quality from the multi-frame images as the target image.
Optionally, the performing image quality optimization processing on the target image includes:
and after determining the thumbnail of the target image, performing image quality optimization processing on the target image.
Optionally, the method further comprises:
and after the thumbnail of the target image is determined, outputting prompt information of the photographing state.
Optionally, the prompt information of the photographing state includes at least one of the following:
photographing sound;
and shooting the animation.
Optionally, the performing image quality optimization processing on the target image includes:
denoising the target image; and/or the number of the groups of groups,
performing distortion correction processing on the target image; and/or the number of the groups of groups,
and performing color correction processing on the target image.
According to a second aspect of the embodiments of the present disclosure, there is provided a photographing apparatus, including:
the acquisition module is configured to acquire and generate a first image queue and a second image queue with the same image content based on the detected photographing instruction; the data size of the single-frame images in the second image queue is smaller than that of the single-frame images in the first image queue;
the optimizing module is configured to determine a target image from the first image queue and perform image quality optimizing processing on the target image;
a determining module configured to determine an image having the same generation time as the target image in the second image queue as a thumbnail of the target image;
and a first output module configured to output the target image after the image quality optimization processing if an operation instruction acting on the thumbnail is detected.
Optionally, the square device further includes:
the storage module is configured to perform image quality optimization treatment on the target image and then store the target image into an album;
the first output module is specifically configured to read the target image with optimized image quality from the album and output the target image if the operation instruction acting on the thumbnail is detected.
Optionally, the determining module is specifically configured to determine, if the first image queue includes a single frame image, the single frame image as the target image; and if the first image queue comprises a plurality of images, selecting an image meeting a preset condition from the plurality of images as the target image.
Optionally, the determining module is specifically configured to select, from the multiple frame images, an image satisfying a predetermined number as the target image; or selecting an image meeting a preset image quality from the multi-frame images as the target image.
Optionally, the optimizing module is specifically configured to perform image quality optimization processing on the target image after determining the thumbnail of the target image.
Optionally, the apparatus further includes:
and the second output module is configured to output prompt information of the photographing state after the thumbnail of the target image is determined.
Optionally, the prompt information of the photographing state includes at least one of the following:
photographing sound;
and shooting the animation.
Optionally, the optimization module is specifically configured to denoise the target image; and/or, performing distortion correction processing on the target image; and/or performing color correction processing on the target image.
According to a third aspect of embodiments of the present disclosure, there is provided a terminal comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the photographing method as described in the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium comprising:
the instructions in the storage medium, when executed by a processor of the terminal, enable the terminal to perform the photographing method as described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the embodiment of the disclosure, after detecting a photographing instruction, the terminal synchronously generates the first image queue and the second image queue with the data volume smaller than that of the first image queue, so that a target image can be determined based on the first image queue, and a thumbnail is obtained in the second image queue based on the generation time of the target image, thereby facilitating the subsequent viewing of the target image after the image quality optimization processing based on the thumbnail. In the above-described aspect, since the thumbnail and the target image are generated at the same time, the image content of the thumbnail and the image content of the target image are identical, and the image quality optimization processing of the target image according to the present disclosure changes the image quality of the image, but there is no image content, so the image content of the thumbnail is identical to the image content of the target image after the image quality optimization processing. Based on the same image content, when the terminal detects an operation instruction for the thumbnail to output the target image after the image quality optimization processing, the jump when switching from the thumbnail to the target image after the image quality optimization processing can be reduced, so that the user experience can be improved.
In addition, the thumbnail is from the second image queue, the images in the second image queue are generated at the same time with the images in the first image queue after the photographing instruction is detected, no additional algorithm processing is needed to be executed to obtain the thumbnail, and no jump exists, blurring and other processing is not needed to be carried out on the thumbnail, so that time consumption can be reduced, and user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a photographing method according to an embodiment of the present disclosure.
Fig. 2 is an exemplary diagram of a photographing method.
Fig. 3 is a diagram illustrating an example of a photographing method.
Fig. 4 is a flowchart illustrating a photographing method according to an embodiment of the present disclosure.
Fig. 5 is a diagram of a photographing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram of a terminal shown in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a flowchart of a photographing method according to an embodiment of the present disclosure, and as shown in fig. 1, the photographing method applied to a terminal includes the following steps:
s11, based on a detected photographing instruction, acquiring and generating a first image queue and a second image queue with the same image content; the data size of the single-frame images in the second image queue is smaller than that of the single-frame images in the first image queue;
s12, determining a target image from the first image queue, and performing image quality optimization processing on the target image;
s13, determining an image with the same generation time as the generation time of the target image in the second image queue as a thumbnail of the target image;
s14, when an operation instruction acting on the thumbnail is detected, outputting a target image after image quality optimization processing.
In an embodiment of the present disclosure, a terminal includes: smart phones, cameras, tablet computers, or wearable electronic devices, etc. The mobile terminal is provided with an image acquisition component, and shooting is realized through the image acquisition component. Taking a mobile phone as an example, the image acquisition assembly comprises a front camera and a rear camera in the mobile phone.
In step S11, the terminal collects and generates a first image queue and a second image queue having the same image content based on the detected photographing instruction. The photographing instruction may be a touch instruction detected by the terminal, or a voice instruction detected by the terminal. In addition, the data amount of the single-frame image in the second image queue is smaller than the data amount of the single-frame image in the first image queue, for example, the number of pixels of the single-frame image in the second image queue is smaller than the number of pixels of the single-frame image in the first image queue, or the image resolution of the single-frame image in the second image queue is smaller than the image resolution of the single-frame image in the first image queue.
In an embodiment of the disclosure, the single frame image in the first image queue may be an image stored in the terminal for display to a user or for information interaction with other applications, and the single frame image in the second image queue may be a preview image on a display interface of the terminal. The terminal may also synchronously save the generation time of each image when generating the first image queue and the second image queue having the same image content.
In step S12, the terminal determines a target image from the first image queue, and performs image quality optimization processing on the target image.
In one embodiment, the image quality optimization processing for the target image includes:
denoising the target image; and/or the number of the groups of groups,
performing distortion correction processing on the target image; and/or the number of the groups of groups,
and performing color correction processing on the target image.
In the embodiment of the present disclosure, the image quality optimization processing for the target image includes denoising processing, for example, denoising processing for the image may be performed using a method such as an average filter or wavelet transform. The image quality optimization processing for the target image may also include distortion correction processing such as distortion correction based on perspective transformation, or the like. In addition, the image quality optimization processing for the target image may also include color correction processing, such as processing for removing purple fringing. However, the image quality optimization processing performed on the target image by the present disclosure is not limited to the above, and may include, for example, contrast adjustment and the like.
In some embodiments, the image quality optimization processing of the target image may further include, but is not limited to, at least one of:
image shake eliminating processing;
image contrast enhancement processing.
In step S13, the terminal determines, as a thumbnail of the target image, an image having the same generation time as the generation time of the target image from the second image queue, to output the target image after the image quality optimization processing when an operation instruction acting on the thumbnail is detected in step S14.
As described above, when the terminal generates the first image queue and the second image queue, the generation time of each image is synchronously saved, so that after the target image is determined from the first image queue, the thumbnail of the target image can be determined from the second image queue based on the generation time. When the terminal detects an operation instruction for the thumbnail, the terminal can output the target image after the image quality optimization processing.
In an application supporting photographing, for example, after a photographing instruction detected by a terminal generates a first image queue and a second image queue, a target image and a thumbnail may be determined, so that a user may determine whether the target image after the image quality optimization process in the cache is sent to the other party through the thumbnail.
In one embodiment, the method further comprises:
the target image is stored into an album after being subjected to image quality optimization treatment;
and outputting the target image after the image quality optimization processing if the operation instruction acting on the thumbnail is detected, wherein the method comprises the following steps:
and if the operation instruction acting on the thumbnail is detected, reading the target image subjected to the image quality optimization processing from the album and outputting the target image.
In the embodiment of the disclosure, the target image after the image quality optimization processing can be saved to an album application, namely, saved locally at the terminal, so that the user can conveniently view the target image at any time. When the image is obtained based on the photographing instruction, the user can conveniently check the image through the thumbnail associated album application, so that after the operation instruction acting on the thumbnail is detected, the target image after the image quality optimization processing is read from the album and output.
In the embodiment of the present disclosure, since the thumbnail and the target image are generated by being acquired at the same time, the image content of the thumbnail and the image content of the target image are identical. In the present disclosure, the image quality of the target image is changed without changing the content of the image, so that the content of the thumbnail image is the same as the content of the target image after the image quality is optimized.
Based on the same image content, when the terminal detects an operation instruction for the thumbnail to output the target image after the image quality optimization processing, for example, when the terminal displays the target image after the image quality optimization processing, the jump when switching from the thumbnail to the target image after the image quality optimization processing can be reduced, and thus the user experience can be improved.
In addition, the thumbnail is from the second image queue, the images in the second image queue are generated together with the images in the first image queue after the photographing instruction is detected, no additional algorithm processing is needed to be executed to obtain the thumbnail, and no jump exists, blurring and other processing is not needed to be carried out on the thumbnail, so that time consumption can be reduced, and user experience is improved.
In one embodiment, the determining the target image from the first image queue includes:
if the first image queue comprises a single frame image, determining the single frame image as the target image;
and if the first image queue comprises a plurality of images, selecting an image meeting a preset condition from the plurality of images as the target image.
In the embodiment of the disclosure, when the terminal generates the first image queue based on the photographing instruction acquisition, a single-frame image can be generated and a multi-frame image can be generated. If the generated first image queue comprises a single frame image based on the current photographing instruction, determining the single frame image as a target image; if the first image queue generated based on the current photographing instruction comprises a plurality of images, selecting an image meeting a preset condition from the plurality of images as a target image.
It can be understood that, based on the current photographing instruction, a first image queue including one frame of image is generated, so that a target image is determined, and the processing speed of the scheme of the present disclosure can be improved; based on the current photographing instruction, a first image queue comprising a plurality of frames of images is generated, and an image meeting a preset condition is selected from the first image queue as a target image, for example, the generated first frame of image may not have complete image content or poor image quality, or some frames of images may have poor image quality, etc., so that the method and the device can improve the acquisition quality of the target image, thereby improving the user experience.
In one embodiment, selecting an image satisfying a preset condition from the multi-frame images as the target image includes:
selecting an image satisfying a predetermined number from the multi-frame images as the target image; or,
and selecting an image meeting preset image quality from the multi-frame images as the target image.
In this embodiment, the image satisfying the predetermined number is, for example, an intermediate frame image determined in accordance with the camera performance as the target image, the image content of which is complete and the image quality is superior. And the image satisfying the preset image quality is, for example, an image of normal exposure or the like.
Because the target image is an image to be output after the image quality optimization processing, for example, the image is displayed to a user for viewing, the method and the device determine the target image in the first image queue comprising the multi-frame images in the two modes, and can improve the image quality of the obtained target image, thereby improving the photographing experience of the user.
In one embodiment, selecting an image satisfying a preset image quality from the multi-frame images as a target image includes:
and sorting the image quality of the multi-frame images, and selecting the image with the best quality or higher than a quality threshold as a target image.
For example, the terminal stores an image quality score of each frame image, and an image with the best quality or higher than a quality threshold can be selected as a target image according to the image quality score.
In one embodiment, the image quality optimization processing for the target image includes:
and after determining the thumbnail of the target image, performing image quality optimization processing on the target image.
In the embodiment of the disclosure, after the thumbnail of the target image is determined, the target image is subjected to image quality optimization processing, so that after the terminal detects a photographing instruction, the terminal can feed back a thumbnail to a user first, and user experience is improved. Meanwhile, in the gap of displaying the thumbnail or in the gap of detecting the operation instruction acting on the thumbnail to the target image after switching to the image quality optimization processing, the background can synchronously perform the image quality optimization processing on the target image, so that the time from the detection of the photographing instruction to the acquisition of the target image after the image quality optimization processing can be shortened as a whole, and the user experience can be improved.
After detecting the operation instruction for the thumbnail, the present disclosure may read the target image after the image quality optimization process from the album and output the target image as described above. However, since the thumbnail of the present disclosure is generated soon, the target image may be still subjected to the image quality optimization processing upon detection of the operation instruction. In this case, based on detection of an operation instruction for the thumbnail, the thumbnail may be temporarily displayed on the display screen based on the size of the display screen, for example, the image content of the thumbnail is displayed full screen. And when the background completes the optimization processing of the target image, storing the target image into the album, and replacing the thumbnail on the display screen with the target image after the optimization processing in the album. It can be understood that by the method, before the target image with optimized image quality is not generated, photographing content can be displayed immediately based on the detected operation instruction, so that the use experience of a user can be improved.
In one embodiment, the method further comprises:
and after the thumbnail of the target image is determined, outputting prompt information of the photographing state.
In the embodiment of the disclosure, after determining the thumbnail of the target image, the terminal outputs prompt information of the photographing state. In one embodiment, the prompt information of the photographing state includes at least one of the following:
photographing sound;
and shooting the animation.
The photographing sound may be a sound perceived by the user and representing that the terminal performs photographing, such as "clicking" for example, and the photographing animation is a picture that the user can observe that the display page of the display screen of the terminal flickers. It can be understood that, because the time consumption for determining the thumbnail is shorter, prompt information of the photographing state is output after the thumbnail is determined, so that a user can quickly know that the terminal is executing a photographing instruction, and the use experience of the user can be improved.
In embodiments of the present disclosure, after determining the thumbnail, the thumbnail may be displayed on a display screen for user operation. It should be noted that the thumbnail may be displayed after the photo movie is displayed. Further, the display position of the photographing animation and the display position of the thumbnail may be different, for example, the photographing animation is displayed in a center area of a display screen of the terminal, and the thumbnail may be displayed in a corner of the display screen.
Fig. 2 is an exemplary illustration of a photographing method, as shown in fig. 2, the photographing method applied to a terminal includes the following steps:
s101, detecting shooting instructions of a user.
In an embodiment of the present disclosure, a processor of the terminal may detect a photographing instruction of a user.
S102, issuing shooting instructions to the bottom camera.
After the processor of the terminal detects the shooting instruction of the user, the shooting instruction is sent to the camera application, so that the camera application executes shooting.
S103, the bottom camera executes a photographing process to generate an original photo.
The photographing process includes Auto Focus (AF), auto exposure (Automatic Exposure, AE), and Auto white balance (Automatic white balance, AWB), also referred to as a 3A process. In this embodiment, the original photo is for subsequent saving to the album application.
S104, the original photo is processed by algorithms such as multi-frame noise reduction, distortion correction and the like.
S105, returning the processed photos to the camera application.
S106, the camera application plays photographing sound and executes photographing animation.
S107, the camera application saves the large graph, then generates a thumbnail according to the large graph, and updates the thumbnail.
The large image is the image processed by the algorithm.
S108, detecting an operation instruction for the thumbnail, and jumping to the album display large image.
From the above steps, the original photo is processed and then is stored as a thumbnail, and all operations are serial, so that the time consumption is long; and the user must wait until the camera application receives the large image and then check the large image by clicking the thumbnail after the large image is stored, so that the user experience is poor.
Fig. 3 is an exemplary illustration of a photographing method, as shown in fig. 3, the photographing method applied to the terminal includes the following steps:
s201, detecting a shooting instruction of a user.
In an embodiment of the present disclosure, a processor of the terminal may detect a photographing instruction of a user.
S202A, intercepting a preview frame.
S202B, issuing shooting instructions to the bottom camera.
After the processor of the terminal detects the shooting instruction of the user, the shooting instruction is sent to the camera application, so that the camera application executes shooting.
S203A, receiving and saving the preview frame, and simultaneously playing the photographing sound and the animation.
S203B, the bottom camera executes a photographing process to generate an original photo.
In this embodiment, the original photo is for subsequent saving to the album application.
S204A, generating a thumbnail according to the stored preview frame and updating.
S204B, carrying out algorithm processing on the original photo.
For example, the original photograph is subjected to denoising, distortion correction and the like.
S205A, detecting an operation instruction for the thumbnail, and jumping to the album.
S205B, returning the large graph to the camera application.
The large image is the image processed by the algorithm.
S206A, displaying an image.
It should be noted that the image seen by the user at this time is not a true large image, but a preview frame.
S206B, the camera application saves the large image and notifies the album.
S207A, the album blurs the preview frame to prompt the user that the large image is being generated.
S207B, displaying a large picture by the album, and removing blurring.
As can be seen from the above steps, since the preview frame is displayed on the display screen of the current image frame and the large image is based on the image processed by the algorithm, there may be inconsistency between the current preview frame and the large image, and thus, a frame jump may occur. Especially when shooting a moving object, the currently displayed image frame can change immediately due to the motion of the object, so that jump can be more serious, and the user experience is affected. In addition, because the thumbnail obtained based on the preview frame and the large image stored in the album are processed in two ways, when the user clicks the thumbnail, the large image may not be generated and completed, and the fuzzy processing of the thumbnail by the scheme also affects the user experience in consideration of the jump of the content.
To overcome the shortcomings in the second and third diagrams, the present disclosure provides a new photographing method, and fig. 4 is an exemplary diagram of a photographing method of the present disclosure, as shown in fig. 4, the photographing method includes the following steps:
s301, detecting a shooting instruction of a user.
In an embodiment of the present disclosure, a processor of the terminal may detect a photographing instruction of a user.
S302, shooting instructions are issued to the bottom camera, and two paths of streams are issued.
After the processor of the terminal detects the shooting instruction of the user, the shooting instruction is sent to the camera application, so that the camera application executes shooting. The disclosed processor also issues two-way streams to inform the camera that two-way images need to be generated. One path is a normal large-image data stream, for example, the size of a single-frame image is 12 megabits (M) or 48M, and the data stream is a data stream corresponding to a first image queue for storing a large number of images; the other path is the data flow of the thumbnail, the data volume is smaller, and the data flow is generally equal to the data volume of the preview frame, and the data flow is the data flow corresponding to the second image queue for storing the images with small quantity.
S303, the camera executes a photographing flow to generate an original photo.
In an embodiment of the present disclosure, generating the original photograph includes generating a first image queue and a second image queue having the same image content.
S304, before the algorithm is performed, the key frame is reported.
In this embodiment, the key frame is the target image of the present disclosure. If the first image queue comprises a single-frame image, determining the single-frame image as a key frame; if the first image queue comprises a plurality of images, selecting images meeting preset conditions from the plurality of images as key frames.
S305A, taking frames of thumbnail images from small data stream, playing shooting sound and animation.
In this embodiment, a frame from a small data stream to a thumbnail, specifically, an image having the same generation time as that of a key frame is selected from the second image queue, and the image is determined as a thumbnail.
After the frame of the thumbnail is determined, shooting sound and animation can be played, and the user terminal is prompted to be in a shooting state.
S305B, returning the large graph processed by the algorithm to the camera application.
In this embodiment, the large image processed by the algorithm is the target image processed by the image quality optimization, and the target image is saved to the camera application.
S306A, storing the thumbnail and updating.
In an embodiment of the present disclosure, the display of the thumbnail is updated after the thumbnail is obtained.
S306B, the camera application saves the large image and notifies the album.
S307A, detecting an operation instruction for the thumbnail, and jumping to the album.
S307B, displaying the large picture by the album.
It can be appreciated that, by obtaining the images of two data streams, when the thumbnail in the other data stream is obtained through the key frame (target image) in one data stream, the key frame does not need to be processed by an algorithm, so that the time for obtaining the thumbnail is greatly shortened, the time from photographing to entering the album is also greatly shortened, and the user experience is improved. In addition, the generated thumbnail is not changed in any picture content and only has slightly different picture quality compared with the final large picture, so that the user does not need to blur or jump when entering the album to view the picture, and the user experience can be further improved.
Fig. 5 is a diagram of a photographing apparatus according to an exemplary embodiment. Referring to fig. 5, the photographing apparatus includes:
the acquisition module 101 is configured to acquire and generate a first image queue and a second image queue with the same image content based on the detected photographing instruction; the data size of the single-frame images in the second image queue is smaller than that of the single-frame images in the first image queue;
an optimizing module 102, configured to determine a target image from the first image queue, and perform image quality optimization processing on the target image;
a determining module 103 configured to determine an image having the same generation time as the target image in the second image queue as a thumbnail of the target image;
the first output module 104 is configured to output the target image after the image quality optimization processing when an operation instruction acting on the thumbnail is detected.
Optionally, the square device further includes:
a saving module 105 configured to save the target image to an album after performing image quality optimization processing on the target image;
the first output module 104 is specifically configured to, if the operation instruction acting on the thumbnail is detected, read the image quality-optimized target image from the album and output the image quality-optimized target image.
Optionally, the determining module 103 is specifically configured to determine, if the first image queue includes a single frame image, the single frame image as the target image; and if the first image queue comprises a plurality of images, selecting an image meeting a preset condition from the plurality of images as the target image.
Optionally, the determining module 103 is specifically configured to select, from the multiple frame images, an image that meets a predetermined number as the target image; or selecting an image meeting a preset image quality from the multi-frame images as the target image.
Optionally, the optimizing module 102 is specifically configured to perform image quality optimization processing on the target image after determining the thumbnail of the target image.
Optionally, the apparatus further includes:
and the second output module 106 is configured to output prompt information of the photographing state after determining the thumbnail of the target image.
Optionally, the prompt information of the photographing state includes at least one of the following:
photographing sound;
and shooting the animation.
Optionally, the optimizing module 102 is specifically configured to perform denoising processing on the target image; and/or, performing distortion correction processing on the target image; and/or performing color correction processing on the target image.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating a mobile terminal apparatus 800 according to an exemplary embodiment. For example, the device 800 may be a mobile phone, mobile computer, or the like.
Referring to fig. 6, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or one component of the apparatus 800, the presence or absence of user contact with the apparatus 800, an orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform a photographing method, the method comprising:
based on the detected photographing instruction, acquiring and generating a first image queue and a second image queue with the same image content; the data size of the single-frame images in the second image queue is smaller than that of the single-frame images in the first image queue;
determining a target image from the first image queue, and performing image quality optimization processing on the target image;
determining an image with the same generation time as the generation time of the target image in the second image queue as a thumbnail of the target image;
and outputting the target image after the image quality optimization processing if the operation instruction acted on the thumbnail is detected.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A photographing method, the method comprising:
based on the detected photographing instruction, acquiring and generating a first image queue and a second image queue with the same image content; the first image queue and the second image queue both comprise multi-frame images, and the data size of a single-frame image in the second image queue is smaller than that of a single-frame image in the first image queue;
determining a target image from the first image queue, and performing image quality optimization processing on the target image;
determining an image with the same generation time as the generation time of the target image in the second image queue as a thumbnail of the target image;
if an operation instruction acting on the thumbnail is detected, outputting a target image after image quality optimization processing;
the determining the target image from the first image queue includes:
and selecting an image meeting a preset condition from the multi-frame images of the first image queue as the target image.
2. The method according to claim 1, wherein the method further comprises:
the target image is stored into an album after being subjected to image quality optimization treatment;
and outputting the target image after the image quality optimization processing if the operation instruction acting on the thumbnail is detected, wherein the method comprises the following steps:
and if the operation instruction acting on the thumbnail is detected, reading the target image with optimized image quality from the album and outputting the target image.
3. The method according to claim 1, wherein the selecting, as the target image, an image satisfying a preset condition from among the plurality of frame images, comprises:
selecting an image satisfying a predetermined number from the multi-frame images as the target image; or,
and selecting an image meeting preset image quality from the multi-frame images as the target image.
4. The method according to claim 1, wherein said performing image quality optimization processing on said target image comprises:
and after determining the thumbnail of the target image, performing image quality optimization processing on the target image.
5. The method according to claim 1, wherein the method further comprises:
and after the thumbnail of the target image is determined, outputting prompt information of the photographing state.
6. The method of claim 5, wherein the prompt for the status of the photograph includes at least one of:
photographing sound;
and shooting the animation.
7. The method according to any one of claims 1 to 6, wherein said performing image quality optimization processing on the target image includes:
denoising the target image; and/or the number of the groups of groups,
performing distortion correction processing on the target image; and/or the number of the groups of groups,
and performing color correction processing on the target image.
8. A photographing apparatus, the apparatus comprising:
the acquisition module is configured to acquire and generate a first image queue and a second image queue with the same image content based on the detected photographing instruction; the first image queue and the second image queue both comprise multi-frame images, and the data size of a single-frame image in the second image queue is smaller than that of a single-frame image in the first image queue;
the optimizing module is configured to select an image meeting a preset condition from multiple frame images in the first image queue as a target image, and perform image quality optimizing processing on the target image;
a determining module configured to determine an image having the same generation time as the target image in the second image queue as a thumbnail of the target image; and a first output module configured to output the target image after the image quality optimization processing if an operation instruction acting on the thumbnail is detected.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the storage module is configured to perform image quality optimization treatment on the target image and then store the target image into an album;
the first output module is specifically configured to read the target image with optimized image quality from the album and output the target image if the operation instruction acting on the thumbnail is detected.
10. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
the optimizing module is specifically configured to select an image meeting a preset number from the multi-frame images as the target image; or selecting an image meeting a preset image quality from the multi-frame images as the target image.
11. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
the optimizing module is specifically configured to perform image quality optimization processing on the target image after determining the thumbnail of the target image.
12. The apparatus of claim 8, wherein the apparatus further comprises:
and the second output module is configured to output prompt information of the photographing state after the thumbnail of the target image is determined.
13. The apparatus of claim 12, wherein the prompt for the status of the photograph comprises at least one of:
photographing sound;
and shooting the animation.
14. The device according to any one of claims 8 to 13, wherein,
the optimization module is specifically configured to denoise the target image; and/or, performing distortion correction processing on the target image; and/or performing color correction processing on the target image.
15. A terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the photographing method of any one of claims 1 to 7.
16. A non-transitory computer readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the photographing method of any of claims 1 to 7.
CN202011158837.0A 2020-10-26 2020-10-26 Photographing method and device, terminal and storage medium Active CN114500821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011158837.0A CN114500821B (en) 2020-10-26 2020-10-26 Photographing method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011158837.0A CN114500821B (en) 2020-10-26 2020-10-26 Photographing method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114500821A CN114500821A (en) 2022-05-13
CN114500821B true CN114500821B (en) 2024-02-27

Family

ID=81470320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011158837.0A Active CN114500821B (en) 2020-10-26 2020-10-26 Photographing method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114500821B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023245385A1 (en) * 2022-06-20 2023-12-28 北京小米移动软件有限公司 Photographic preview method and apparatus, and storage medium
CN116668837B (en) * 2022-11-22 2024-04-19 荣耀终端有限公司 Method for displaying thumbnail images and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297676A (en) * 2012-02-24 2013-09-11 宏达国际电子股份有限公司 Image continuous shooting method and relative image capture system
CN103620682A (en) * 2011-05-18 2014-03-05 高智83基金会有限责任公司 Video summary including a feature of interest
CN103747259A (en) * 2013-12-27 2014-04-23 华为技术有限公司 Video processing method and device
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN106126108A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of breviary map generalization method and mobile terminal
CN107509038A (en) * 2017-10-16 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile 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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103620682A (en) * 2011-05-18 2014-03-05 高智83基金会有限责任公司 Video summary including a feature of interest
CN103297676A (en) * 2012-02-24 2013-09-11 宏达国际电子股份有限公司 Image continuous shooting method and relative image capture system
CN103747259A (en) * 2013-12-27 2014-04-23 华为技术有限公司 Video processing method and device
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN106126108A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of breviary map generalization method and mobile terminal
CN107509038A (en) * 2017-10-16 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile 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

Also Published As

Publication number Publication date
CN114500821A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN108419016B (en) Shooting method and device and terminal
CN106657780B (en) Image preview method and device
CN106331504B (en) Shooting method and device
CN114500821B (en) Photographing method and device, terminal and storage medium
CN110876014B (en) Image processing method and device, electronic device and storage medium
CN107730443B (en) Image processing method and device and user equipment
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN111461950B (en) Image processing method and device
CN110874829B (en) Image processing method and device, electronic device and storage medium
CN111698414B (en) Image signal processing method and device, electronic device and readable storage medium
CN112866612A (en) Frame insertion method, device, terminal and computer readable storage medium
CN112188095B (en) Photographing method, photographing device and storage medium
EP4304188A1 (en) Photographing method and apparatus, medium and chip
CN114339015B (en) Photographing processing method, photographing processing device and storage medium
CN110876013B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN110876015B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN110933300B (en) Image processing method and electronic terminal equipment
CN115733913A (en) Continuous photographing method and device and storage medium
CN117876275A (en) Image processing method, device, terminal and storage medium
CN117956268A (en) Preview frame rate control method and device thereof
CN117670693A (en) Image processing method, device and storage medium
CN114677287A (en) Image fusion method, image fusion device and storage medium
CN116342373A (en) Image processing method, device, equipment and storage medium
CN117412181A (en) Camera system and terminal device
CN115708122A (en) Image processing method, image processing device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant