CN115701119A - Picture display method, device, equipment and storage medium - Google Patents

Picture display method, device, equipment and storage medium Download PDF

Info

Publication number
CN115701119A
CN115701119A CN202110810431.4A CN202110810431A CN115701119A CN 115701119 A CN115701119 A CN 115701119A CN 202110810431 A CN202110810431 A CN 202110810431A CN 115701119 A CN115701119 A CN 115701119A
Authority
CN
China
Prior art keywords
shooting
picture
displaying
mode
effects
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.)
Pending
Application number
CN202110810431.4A
Other languages
Chinese (zh)
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 Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology 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 Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN202110810431.4A priority Critical patent/CN115701119A/en
Publication of CN115701119A publication Critical patent/CN115701119A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a picture display method, a device, equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a current shooting mode of a terminal camera, grading shooting effects corresponding to the current shooting mode to obtain shooting effects of different grades, shooting according to the shooting effects of the different grades, and displaying shot pictures. According to the invention, the shooting effect corresponding to the current shooting mode selected by the user is divided into different levels, then the picture is shot according to the shooting effects of the different levels, and then the picture is displayed, so that the user can visually distinguish whether the picture shot in the current shooting mode is the picture meeting the self-shooting requirement, can feel the picture difference caused by different shooting effects in the same shooting mode, and can improve the shooting experience of the user.

Description

Picture display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying a picture.
Background
With the popularization of smart phones, mobile phone photographing has gradually become the most important photographing tool in the life of users. In order to meet different photographing requirements of users, mobile phone manufacturers provide special photographing modes based on different scenes, such as night scenes, high-Dynamic Range (HDR), beauty and the like. The user can obtain corresponding photographing effect by opening a certain special photographing mode, and the photographing effect of the user in different scenes is greatly improved.
Because many special shooting modes usually directly obtain pictures with corresponding shooting effects after shooting, a user cannot visually distinguish whether the pictures shot in the special shooting modes meet the shooting requirements of the user.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a picture display method, a picture display device, picture display equipment and a picture display storage medium, and aims to solve the technical problem that a user cannot visually distinguish whether a picture shot in a special shooting mode meets the requirement of taking a picture per se in the prior art.
In order to achieve the above object, the present invention provides a picture displaying method, which comprises the following steps:
acquiring a current shooting mode of a terminal camera;
grading the shooting effect corresponding to the current shooting mode to obtain different grades of shooting effects;
and shooting according to the shooting effects of different grades respectively, and displaying the shot pictures.
Optionally, the step of performing level division on the shooting effect corresponding to the current shooting mode to obtain shooting effects of different levels includes:
acquiring the degree grade and the shooting effect corresponding to the current shooting mode;
and grading the shooting effect according to the degree grade to obtain the shooting effects of different grades.
Optionally, the step of performing level classification on the shooting effect according to the degree level to obtain different levels of shooting effects includes:
acquiring shooting parameters corresponding to the shooting effect;
and grading the shooting parameters according to the degree grade, and determining the shooting effects of different grades according to the grading result.
Optionally, the step of shooting according to the shooting effects of different levels and displaying the shot pictures includes:
shooting according to the shooting effects of different levels respectively to obtain shot pictures;
acquiring a preset picture preview mode;
and when the picture preview mode is static preview, selecting a frame of picture from the shot pictures for displaying.
Optionally, after the step of obtaining the preset picture preview mode, the method further includes:
and when the picture preview mode is dynamic preview, generating a dynamic image in a preset format according to the shot picture, and displaying the dynamic image.
Optionally, the step of generating a dynamic image in a preset format according to the shot picture and displaying the dynamic image includes:
acquiring the shooting sequence of the shot pictures, and determining the picture display sequence according to the shooting sequence;
and processing the shot pictures according to the picture display sequence to generate a dynamic image in a preset format, and displaying the dynamic image.
Optionally, the step of processing the captured picture according to the picture display order to generate a dynamic image in a preset format, and displaying the dynamic image includes:
processing the shot pictures according to the picture display sequence to generate a dynamic image in a graph exchange format;
and when a dynamic preview instruction triggered by a picture preview page is detected, displaying the dynamic image in the graph exchange format in the picture preview page.
Optionally, the step of processing the captured pictures according to the picture display order to generate a dynamic image in a graph exchange format includes:
acquiring color information corresponding to the shot picture;
and optimizing a preset palette according to the color information, and processing the shot picture according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
Optionally, the step of optimizing a preset palette according to the color information, and processing the taken picture according to the picture display order through the optimized preset palette to generate a dynamic image in a graph exchange format includes:
acquiring the color type contained in the color information;
removing colors except the color types in the reference colors of a preset color palette to obtain the optimized preset color palette;
and processing the shot pictures according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
Optionally, the step of processing the shot pictures according to the picture display order to generate a dynamic image in a preset format, and displaying the dynamic image includes:
processing the shot pictures according to the picture display sequence to generate a video file in a video format;
and when a dynamic preview instruction triggered on the basis of a picture preview page is detected, playing the video file in the video format in the picture preview page.
Optionally, the step of processing the captured pictures according to the picture display order to generate a video file in a video format includes:
sequencing the shot pictures according to the picture display sequence to obtain a picture sequence;
displaying the picture sequence, and detecting whether a user carries out picture editing operation based on the displayed picture sequence;
if so, editing the pictures in the picture sequence according to the picture editing operation to obtain an edited picture sequence;
and processing the edited picture sequence to generate a video file in a video format.
In addition, to achieve the above object, the present invention further provides a picture displaying apparatus, including:
the mode acquisition module is used for acquiring the current shooting mode of the terminal camera;
the effect grading module is used for grading the shooting effect corresponding to the current shooting mode to obtain the shooting effects of different grades;
and the shooting and displaying module is used for shooting according to the shooting effects of different grades respectively and displaying the shot pictures.
Optionally, the effect grading module is further configured to obtain a degree grade and a shooting effect corresponding to the current shooting mode; and grading the shooting effect according to the degree grade to obtain the shooting effects of different grades.
Optionally, the effect grading module is further configured to obtain a shooting parameter corresponding to the shooting effect; and grading the shooting parameters according to the degree grades, and determining the shooting effects of different grades according to grading results.
Optionally, the shooting display module is further configured to shoot according to the shooting effects of different levels, respectively, to obtain the shot picture; acquiring a preset picture preview mode; and when the picture preview mode is static preview, selecting a frame of picture from the shot pictures for displaying.
Optionally, the shooting and displaying module is further configured to generate a dynamic image in a preset format according to the shot picture and display the dynamic image when the picture preview mode is dynamic preview.
Optionally, the shooting and displaying module is further configured to obtain a shooting order of the shot pictures, and determine a picture display order according to the shooting order; and processing the shot pictures according to the picture display sequence to generate a dynamic image in a preset format, and displaying the dynamic image.
Optionally, the shooting and displaying module is further configured to process the shot pictures according to the picture display order to generate a dynamic image in a graph exchange format; and when a dynamic preview instruction triggered by a picture preview page is detected, displaying the dynamic image in the graph exchange format in the picture preview page.
In addition, to achieve the above object, the present invention further provides a picture displaying apparatus, including: a memory, a processor and a picture presentation program stored on the memory and executable on the processor, the picture presentation program being configured to implement the steps of the picture presentation method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, in which a picture displaying program is stored, and the picture displaying program implements the steps of the picture displaying method as described above when executed by a processor.
According to the method and the device, the current shooting mode of the terminal camera is obtained, then the shooting effect corresponding to the current shooting mode is graded, the shooting effects of different grades are obtained, shooting is carried out according to the shooting effects of different grades, and the shot picture is displayed. According to the invention, the shooting effect corresponding to the current shooting mode selected by the user is divided into different levels, then the picture is shot according to the shooting effects of the different levels, and then the picture is displayed, so that the user can visually distinguish whether the picture shot in the current shooting mode is the picture meeting the self-shooting requirement, can feel the picture difference caused by different shooting effects in the same shooting mode, and can improve the shooting experience of the user.
Drawings
FIG. 1 is a schematic structural diagram of a picture display device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for displaying pictures according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for displaying pictures according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a method for displaying pictures according to the present invention;
FIG. 5 is a block diagram of a first embodiment of a picture display device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a picture display device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the picture presentation apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the arrangement shown in fig. 1 is not intended to be limiting of the picture display device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a picture presentation program.
In the picture display apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the picture display apparatus of the present invention may be disposed in the picture display apparatus, and the picture display apparatus calls the picture display program stored in the memory 1005 through the processor 1001 and executes the picture display method provided by the embodiment of the present invention.
An embodiment of the present invention provides a picture displaying method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the picture displaying method of the present invention.
In this embodiment, the picture display method includes the following steps:
step S10: and acquiring the current shooting mode of the terminal camera.
It should be noted that the execution subject of the method in this embodiment may be a mobile terminal having functions of image acquisition, data processing, network communication and program running, such as a smart phone, a tablet, a smart camera, an intelligent wearable device, and the like, or may be the above-mentioned picture display device capable of implementing the same or similar functions, which is not limited in this embodiment. The present embodiment and the following embodiments will be described by taking a mobile terminal as an example.
It should be understood that the above-described terminal camera may be a camera or photographing part integrated on the mobile terminal. The current photographing mode may be a photographing mode having a special photographing effect, such as a night view, HDR, or beauty photographing mode, selected by the user before starting photographing.
Step S20: and grading the shooting effect corresponding to the current shooting mode to obtain the shooting effects of different grades.
Note that the photographic effect may be a (desired) photographic effect selected by the user in the current photographing mode. The shooting effects corresponding to different shooting modes are different, and the picture effects shot by the shooting effects of different levels in the same shooting mode are different, for example, the shooting effects configured in the beauty mode include A, B and C, which are different in general, for example, the shooting effect A has a filter, the shooting effect B has light supplement at night, and the shooting effect C has both a filter and light supplement at night.
It is understood that the photographic effect can be characterized by photographic parameters of different dimensions (e.g., sensitivity, white balance, color temperature, focus pattern, etc.). The shooting effect brought by the difference of the parameter values of the shooting parameters under the same dimensionality is different. For example, the sensitivity classes include ISO100, 200, 400, 800, 1600, ISO100 and below are low sensitivity, ISO 200-800 are medium sensitivity, and ISO 800 is high sensitivity. The lower the light sensitivity, the finer the image quality; the higher the sensitivity, the rougher the image quality.
In this embodiment, the mobile terminal may perform level division on the shooting effect corresponding to the current shooting mode to obtain shooting effects of different levels.
Considering that in practical applications, the levels of different photographing effects of the photographing mode may be divided in advance, for example, when the mobile terminal is shipped from a factory, a manufacturer may divide the photographing effect of the beauty mode into 10 levels (1-10 levels) by default, divide the photographing effect of the night view mode into 3 levels (1-3 levels) by default, and so on. For this case, the mobile terminal in this embodiment may perform the ranking of the shooting effect in the following manner:
the grade corresponding to the (desired) photographing effect selected by the user is taken as the highest grade, and then the grade division is performed according to the corresponding grade of the highest grade. For example, when the user currently selects the 7 th-level photographing effect in the beauty mode to photograph, the mobile terminal may classify the 7 th-level as the highest level in the ranking classification, and classify the photographing effect into 0 to 7 ranks. Wherein the 0 th level may be a level that does not contain any beauty effect.
It should be noted that in this embodiment and the following embodiments, when the mobile terminal performs level division on the shooting effect, a level without any special shooting effect (for example, the 0 th level) in the normal shooting mode is determined by default to be used for shooting a picture with a normal/normal effect for the user to view or to perform subsequent differential display.
Further, it is considered that in practical applications, the levels of different photographing effects may not be previously divided in the mobile terminal. For such cases, in the embodiment, the mobile terminal may perform ranking of the shooting effect according to the shooting parameters corresponding to the shooting effect selected by the user and the parameter values of the shooting parameters. Of course, the ranking of the shooting effect in the present embodiment may also be in other manners, which are only examples and are not limited to specific examples.
Step S30: and shooting according to the shooting effects of different grades respectively, and displaying the shot pictures.
It should be understood that after determining the different levels of the shooting effect, the mobile terminal can shoot according to the different levels of the shooting effect respectively.
It should be noted that in this embodiment, the number of the taken pictures is related to the number of levels into which the photographing effect is divided, for example, the number of levels into which the photographing effect is divided is 0 to 7, and 1 picture is taken in each level, for a total of 8 pictures with different photographing effects. Compared with the mode that only one picture is shot in each shooting mode in the prior art, the picture shooting mode can shoot a plurality of pictures with different effects in a certain shooting mode when the user selects the mode, the user can intuitively feel the quality of the shooting mode selected by the user at present through picture display, and high shooting experience of the user is guaranteed.
Further, in order to enable the user to visually distinguish whether the picture shot in the current shooting mode meets the shooting requirement of the user, the mobile terminal in the embodiment further displays the pictures shot with different levels of shooting effects, so that the user can compare the difference of the pictures shot with the change of the shooting effects in the same shooting mode, and the shooting experience of the user is improved.
It should be noted that, in this embodiment, when the mobile terminal displays the taken picture, the taken picture can be displayed according to a static preview mode or a dynamic preview mode, so that the picture browsing experience of the user is further improved.
Wherein the still preview mode can be presented sequentially as a single picture, similar to the way a slideshow is played. The dynamic preview mode can be that a short video or a motion picture in a GIF format is generated for displaying according to the shot picture. The specific picture displaying manner can be set according to actual conditions, and this embodiment is not particularly limited.
According to the embodiment, the current shooting mode of the terminal camera is obtained, then the shooting effect corresponding to the current shooting mode is graded, the shooting effects of different grades are obtained, then shooting is carried out according to the shooting effects of different grades, and the shot picture is displayed. The shooting effect corresponding to the current shooting mode selected by the user is divided into different levels, then the picture is shot according to the shooting effects of the different levels, and then the picture is displayed, so that the user can visually distinguish whether the picture shot in the current shooting mode is the picture meeting the shooting requirement of the user, the user can feel the picture difference caused by different shooting effects in the same shooting mode, and the shooting experience of the user is improved.
Further, in order to achieve accurate division of the shooting effect, the step S20 in this embodiment may further include:
step S201: and acquiring the degree grade and the shooting effect corresponding to the current shooting mode.
It should be noted that the degree level may be a level of the shooting effect configured by the current shooting mode. For example, the current shooting mode is the beauty mode, and if the degree level selected by the user is level 8, the 8 th-level shooting effect of the beauty mode is obtained.
Step S202: and grading the shooting effect according to the degree grade to obtain the shooting effects of different grades.
In a specific implementation, after determining the degree level and the shooting effect corresponding to the degree level, the mobile terminal may determine the number of levels to which the shooting effect needs to be divided according to the degree level, for example, if the degree level selected by the user is 8, divide the shooting effect of the beauty mode of the 8 th level into nine levels, i.e., 0, 1, and 2 … … 8, where the shooting effect of the 0 th level is a shooting effect that returns to a normal shooting mode without any special shooting effect, and the shooting effect is equivalent to shooting without using the current shooting mode.
Further, in order to reasonably divide the shooting effect, the shooting effect is divided into layers. In this embodiment, the step S202 may further include: and acquiring shooting parameters corresponding to the shooting effects, grading the shooting parameters according to the degree grade, and determining the shooting effects of different grades according to grading results.
The shooting parameters may be parameters with different dimensions, which affect the shooting effect, such as sensitivity, white balance, color temperature, focusing manner, and the like. In this embodiment, the shooting parameters are classified according to the degree grade, which may be that the classified degree grade is determined according to the degree grade, then the shooting parameters (used to determine the lower limit of the parameter value of the shooting parameters) with the same dimension in the ordinary shooting mode are obtained, and then the shooting parameters (used to determine the upper limit of the parameter value of the shooting parameters) corresponding to the shooting effect (desired) selected by the user are classified according to the classified degree grade and the lower limit of the parameter value.
For example, in the photographing effect selected by the user, the upper limit of the photographing parameter "sensitivity" (the lower the sensitivity, the finer the image quality) is ISO 50, the lower limit of the photographing parameter "sensitivity" in the normal mode is ISO100, and the number of gradations is 6, and the photographing parameter "sensitivity" can be classified into six levels of ISO100, ISO 90, ISO 80, ISO 70, ISO 60, and ISO 50. It should be emphasized that only the example of the classification of the shooting parameters is given here, and the classification of the shooting parameters may be implemented in a similar or other manner, which is not limited in this embodiment.
Further, it is considered that in an actual situation, there is a case where the terminal camera of the mobile terminal is not rated by default for different photographing modes, that is, a case where photographing effects in different photographing modes need to be manually set by a user. In this regard, in the present embodiment, the mobile terminal may take the shooting (desired) effect set by the user as a standard shooting effect, and then perform ranking of the shooting effect according to the (standard) shooting parameters corresponding to the standard shooting effect.
Specifically, the number of times of the grade division may be determined according to a preset step length or a gradient, based on a shooting parameter (used to determine an upper limit of a parameter value of the shooting parameter) corresponding to a (desired) shooting effect selected by a user, then the shooting parameter (used to determine a lower limit of a parameter value of the shooting parameter) of the same dimension in the normal shooting mode, and then based on a span between the upper limit of the parameter value and the lower limit of the parameter value of the shooting parameter. For example, if the span between sensitivities is 50 and the preset step size or gradient is 10, the number of gradations = span/(preset step size or gradient) +1.
The grade division of the shooting effect under any scene can be realized through the above mode in the embodiment, and no matter whether the terminal camera of the mobile terminal configures the shooting effects of different grades for different shooting modes in advance, the mobile terminal can automatically carry out intelligent grading on the shooting effect through the above mode, so that the final shooting experience of a user is ensured.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the picture displaying method according to the present invention.
Based on the first embodiment described above, in the present embodiment, the step S30 includes:
step S301: and shooting according to the shooting effects of different grades to obtain shot pictures.
Step S302: and acquiring a preset picture preview mode.
It should be noted that the picture preview mode may be a rule set by the user to browse the taken picture. The picture preview mode in this embodiment may include a still preview or a dynamic preview. The still preview may be a fixed display of a single picture or a sequential display of multiple pictures, but only one picture is displayed at a time, similar to a slide show. In the dynamic preview mode, the shot picture can be processed into a moving picture or a file similar to a short video format and then played.
Step S303: and when the picture preview mode is static preview, selecting a frame of picture from the shot pictures for displaying.
In a specific implementation, the mobile terminal can arbitrarily select one frame of picture from the shot pictures for displaying when the picture preview mode is static preview. Of course, in order to improve the user's photographing experience, a picture corresponding to a (desired) photographing effect currently selected by the user may also be presented. For example, if the user selects the 7 th-level shooting effect in the beauty mode, the mobile terminal preferentially displays the photos shot by the 7 th-level shooting effect when performing the picture display.
Step S303': and when the picture preview mode is dynamic preview, generating a dynamic image in a preset format according to the shot picture, and displaying the dynamic image.
It should be noted that the moving image in the preset format in this embodiment may be a moving image in a Graphics Interchange Format (GIF), or may be a video file in a video format (e.g., MPEG/MPG/DAT/MP 4).
When the picture preview mode is dynamic preview, the mobile terminal generates a dynamic image in a preset format according to the shot picture, and displays the dynamic image, so that a user can visually see the difference of picture effects caused by the change of the shooting effect level, and meanwhile, interesting dynamic picture effects are formed by the dynamic display of the picture.
Further, in order to achieve the gradual display of the shooting effect, in this embodiment, the generating a dynamic image in a preset format according to the shot picture in the step S303' and displaying the dynamic image may include:
step S3031': and acquiring the shooting sequence of the shot pictures, and determining the picture display sequence according to the shooting sequence.
It should be noted that the shooting sequence is the sequence in which the terminal camera shoots the pictures, and the sequence can be determined by the shooting time corresponding to the pictures. The picture display sequence may be determined according to the shooting time, for example, from front to back or from back to front according to the shooting time. Of course, the determination of the image display sequence may also be in other manners, and this embodiment is not limited thereto.
Step S3032': and processing the shot pictures according to the picture display sequence to generate a dynamic image in a preset format, and displaying the dynamic image.
In a specific implementation, after the mobile terminal determines the display order of the pictures, the shot pictures can be processed according to the display order to generate a dynamic image in a preset format, and then the dynamic image is displayed.
As an implementation manner of the step S3032', in this embodiment, the mobile terminal may process the taken picture according to the picture display order to generate a dynamic image in a graphics interchange format; and then when a dynamic preview instruction triggered based on a picture preview page is detected, displaying the dynamic image in the graph exchange format in the picture preview page.
It should be noted that, when the mobile terminal statically displays the picture through the picture preview page, a button with a "dynamic effect" may be synchronously displayed on the page, and when the user clicks the button, the dynamic preview instruction is triggered.
It will be appreciated that the graphics interchange format dynamic image, the GIF image, is a bitmap, and the picture is made up of a number of pixels, each assigned to a color, which combine to form the picture.
In consideration of the practical situation, the file size of the image affects the generation and loading speed of the picture. When the mobile terminal generates a dynamic image in a graph exchange format, the mobile terminal of the embodiment can first acquire color information corresponding to the shot picture; and then optimizing a preset palette according to the color information, and processing the shot picture according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
The color information may be the color used by all pixels in the image or the type information of the color. Optimizing the preset color palette in this embodiment may specifically be: acquiring the color type contained in the color information; removing colors except the color types in the reference colors of a preset color palette to obtain the optimized preset color palette; and processing the shot pictures according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
For example, the colors of the image pixels in the captured picture are only green, yellow, and gray, and when the color palette is optimized, the colors other than these three colors can be omitted from the reference color of the color palette to reduce the colors used in the color palette, thereby optimizing the color palette.
According to the method and the device for generating the image, the color palette is optimized according to the characteristics of the GIF with the color palette, the number of colors used by the image is reduced, and some colors which cannot be used by the image are omitted, so that the image generation efficiency is improved, the quality of the finally generated image is not influenced, and the user experience is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the picture displaying method according to the present invention.
Based on the second embodiment, in this embodiment, the step S3032' further includes:
step S321': and processing the shot pictures according to the picture display sequence to generate a video file in a video format.
It should be understood that, the video format, i.e. the video encoding manner, the type of the specific video format (such as MPEG/MPG/DAT/MP4/AVI, etc.) in this embodiment can be set by the user according to the requirement.
In a specific implementation, the mobile terminal may first sort the shot pictures according to a picture display order to obtain a picture sequence, and then process the picture sequence into a video file in a video format selected by a user.
Further, in order to meet the requirement of the user for personalized editing of pictures, the mobile terminal in this embodiment may also sequence the shot pictures according to the picture display order to obtain a picture sequence; and then displaying the picture sequence so that a user can determine whether picture editing operation is required according to the needs of the user, so that when the user is unsatisfied with the effect of the shot picture, the user can process the picture into the effect required by the user through personalized picture editing operation, and then the picture comparison is carried out.
In a specific implementation, the mobile terminal further detects whether a user performs a picture editing operation based on the displayed picture sequence; if so, editing the pictures in the picture sequence according to the picture editing operation to obtain an edited picture sequence; and processing the edited picture sequence to generate a video file in a video format.
It should be noted that the picture editing operation may be to add other effects to the edited picture, or to change the display order or time of the picture, and so on. When other effects are added to the picture, a user can trigger the mobile terminal to enter a picture editing mode by clicking the picture in the displayed picture sequence, and then the picture is edited in the picture editing mode. For the change of the display sequence or time of the pictures, the user can adjust the display sequence of the pictures by selecting the pictures in the picture sequence and then dragging the pictures to the positions to be placed, and can also change the display time of the pictures by inputting the display time.
In this embodiment, the mobile terminal stores the picture edited by the user independently, and the original picture before editing can still be viewed through the album of the terminal camera.
Step S322': and when a dynamic preview instruction triggered on the basis of a picture preview page is detected, playing the video file in the video format in the picture preview page.
In a specific implementation, after processing a shot picture into a video file in a video format, the mobile terminal may display an icon (e.g., a thumbnail) corresponding to the video file on a picture preview page, and if it is detected that a user triggers a dynamic preview instruction based on the picture preview page, play the video file in the video format in the picture preview page for the user to browse.
The embodiment processes the shot pictures into video files in a video format according to the picture display sequence; when a dynamic preview instruction triggered by a picture preview page is detected, a video file in a video format is played in the picture preview page, so that a user can visually and conveniently check the difference of pictures shot with different shooting effects, and the shooting experience of the user is improved. For example, in the beauty mode, videos generated by pictures with different beauty effects are played, so that a user can visually see the change of the beauty grade, and can visually feel the picture effect contrast before and after beauty, thereby forming an interesting dynamic photo effect.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a picture displaying program, and the picture displaying program, when executed by a processor, implements the steps of the picture displaying method described above.
Referring to fig. 5, fig. 5 is a block diagram of a first embodiment of a picture display device according to the present invention.
As shown in fig. 5, the picture displaying apparatus according to the embodiment of the present invention includes:
a mode obtaining module 501, configured to obtain a current shooting mode of a terminal camera;
an effect grading module 502, configured to grade the shooting effect corresponding to the current shooting mode to obtain shooting effects of different grades;
and a shooting and displaying module 503, configured to shoot according to the shooting effects of different levels, and display the shot pictures.
According to the embodiment, the current shooting mode of the terminal camera is obtained, then the shooting effect corresponding to the current shooting mode is graded, the shooting effects of different grades are obtained, then shooting is carried out according to the shooting effects of different grades, and the shot picture is displayed. According to the invention, the shooting effect corresponding to the current shooting mode selected by the user is divided into different levels, then the picture is shot according to the shooting effects of the different levels, and then the picture is displayed, so that the user can visually distinguish whether the picture shot in the current shooting mode is the picture meeting the self-shooting requirement, can feel the picture difference caused by different shooting effects in the same shooting mode, and can improve the shooting experience of the user.
Based on the first embodiment of the image displaying apparatus of the invention, a second embodiment of the image displaying apparatus of the invention is provided.
In this embodiment, the effect grading module is further configured to obtain a degree grade and a shooting effect corresponding to the current shooting mode; and grading the shooting effect according to the degree grade to obtain the shooting effects of different grades.
Further, the effect grading module is further configured to obtain a shooting parameter corresponding to the shooting effect; and grading the shooting parameters according to the degree grade, and determining the shooting effects of different grades according to the grading result.
Furthermore, the shooting display module is also used for shooting according to the shooting effects of different grades to obtain the shot pictures; acquiring a preset picture preview mode; and when the picture preview mode is static preview, selecting a frame of picture from the shot pictures for displaying.
Further, the shooting and displaying module is further configured to generate a dynamic image in a preset format according to the shot picture and display the dynamic image when the picture preview mode is dynamic preview.
Furthermore, the shooting and displaying module is further configured to obtain a shooting sequence of the shot pictures, and determine a picture display sequence according to the shooting sequence; and processing the shot pictures according to the picture display sequence to generate a dynamic image in a preset format, and displaying the dynamic image.
Further, the shooting and displaying module is further configured to process the shot pictures according to the picture display order to generate a dynamic image in a graph exchange format; and when a dynamic preview instruction triggered by a picture preview page is detected, displaying the dynamic image in the graph exchange format in the picture preview page.
Furthermore, the shooting and displaying module is also used for acquiring color information corresponding to the shot picture; and optimizing a preset palette according to the color information, and processing the shot picture according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
Furthermore, the shooting display module is further configured to obtain a color type included in the color information; removing colors except the color types in the reference colors of a preset color palette to obtain the optimized preset color palette; and processing the shot pictures according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
Furthermore, the shooting and displaying module is further configured to process the shot pictures according to the picture display order to generate a video file in a video format; and when a dynamic preview instruction triggered on the basis of a picture preview page is detected, playing the video file in the video format in the picture preview page.
Further, the shooting and displaying module is further configured to sort the shot pictures according to the picture display order to obtain a picture sequence; displaying the picture sequence, and detecting whether a user carries out picture editing operation based on the displayed picture sequence; if so, editing the pictures in the picture sequence according to the picture editing operation to obtain an edited picture sequence; and processing the edited picture sequence to generate a video file in a video format.
Other embodiments or specific implementation manners of the image display device of the present invention may refer to the above method embodiments, and are not described herein again.
The invention provides A1 a picture display method, which comprises the following steps:
acquiring a current shooting mode of a terminal camera;
grading the shooting effect corresponding to the current shooting mode to obtain different grades of shooting effects;
and shooting according to the shooting effects of different grades respectively, and displaying the shot pictures.
The picture display method according to A1, wherein the step of performing level division on the shooting effect corresponding to the current shooting mode to obtain different levels of shooting effects includes:
acquiring the degree grade and the shooting effect corresponding to the current shooting mode;
and grading the shooting effect according to the degree grade to obtain the shooting effects of different grades.
A3, as in the picture displaying method of A2, the step of performing level division on the shooting effect according to the degree level to obtain shooting effects of different levels includes:
acquiring shooting parameters corresponding to the shooting effect;
and grading the shooting parameters according to the degree grade, and determining the shooting effects of different grades according to the grading result.
A4, the picture display method according to A1, wherein the step of shooting according to the shooting effects of different levels and displaying the shot picture comprises:
shooting according to the shooting effects of different levels respectively to obtain shot pictures;
acquiring a preset picture preview mode;
and when the picture preview mode is static preview, selecting a frame of picture from the shot pictures for displaying.
A5, the picture display method as in A4, after the step of obtaining the preset picture preview mode, the method further comprises:
and when the picture preview mode is dynamic preview, generating a dynamic image in a preset format according to the shot picture, and displaying the dynamic image.
The picture display method according to the aspect of the invention as set forth in the aspect of the invention, wherein the step of generating a dynamic image in a preset format according to the shot picture and displaying the dynamic image includes:
acquiring the shooting sequence of the shot pictures, and determining the picture display sequence according to the shooting sequence;
and processing the shot pictures according to the picture display sequence to generate a dynamic image in a preset format, and displaying the dynamic image.
The picture display method according to A7 and the step of processing the taken picture according to the picture display order to generate a dynamic image in a preset format and displaying the dynamic image as described in the above A6, includes:
processing the shot pictures according to the picture display sequence to generate a dynamic image in a graph exchange format;
and when a dynamic preview instruction triggered on the basis of a picture preview page is detected, displaying the dynamic image in the graph exchange format in the picture preview page.
A8, the picture displaying method according to A7, wherein the step of processing the taken pictures according to the picture display order to generate the dynamic image in the graphic exchange format includes:
acquiring color information corresponding to the shot picture;
and optimizing a preset palette according to the color information, and processing the shot picture according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
A9, the picture displaying method according to A8, wherein the step of optimizing a preset palette according to the color information and processing the shot picture according to the picture display order through the optimized preset palette to generate a dynamic image in a graph exchange format includes:
acquiring the color type contained in the color information;
removing colors except the color types in the reference colors of a preset color palette to obtain the optimized preset color palette;
and processing the shot pictures according to the picture display sequence through the optimized preset palette to generate a dynamic image in a graph exchange format.
The picture displaying method according to a10 and the step of processing the taken picture according to the picture display order to generate a dynamic image in a preset format and displaying the dynamic image as described in the above A6, includes:
processing the shot pictures according to the picture display sequence to generate a video file in a video format;
and when a dynamic preview instruction triggered on the basis of a picture preview page is detected, playing the video file in the video format in the picture preview page.
A11, the picture displaying method according to a10, wherein the step of processing the taken pictures according to the picture display order to generate a video file in a video format includes:
sequencing the shot pictures according to the picture display sequence to obtain a picture sequence;
displaying the picture sequence, and detecting whether a user carries out picture editing operation based on the displayed picture sequence;
if so, editing the pictures in the picture sequence according to the picture editing operation to obtain an edited picture sequence;
and processing the edited picture sequence to generate a video file in a video format.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A picture display method is characterized by comprising the following steps:
acquiring a current shooting mode of a terminal camera;
grading the shooting effect corresponding to the current shooting mode to obtain different grades of shooting effects;
and shooting according to the shooting effects of different grades respectively, and displaying the shot pictures.
2. The picture displaying method according to claim 1, wherein the step of performing grade division on the shooting effect corresponding to the current shooting mode to obtain different grades of shooting effects comprises:
acquiring the degree grade and the shooting effect corresponding to the current shooting mode;
and grading the shooting effect according to the degree grade to obtain the shooting effects of different grades.
3. The picture displaying method according to claim 2, wherein the step of performing the grade division on the photographing effect according to the degree grade to obtain the photographing effects of different grades comprises:
acquiring shooting parameters corresponding to the shooting effect;
and grading the shooting parameters according to the degree grade, and determining the shooting effects of different grades according to the grading result.
4. The picture displaying method according to claim 1, wherein the step of photographing respectively according to the photographing effects of the different levels and displaying the photographed pictures comprises:
shooting according to the shooting effects of different levels respectively to obtain shot pictures;
acquiring a preset picture preview mode;
and when the picture preview mode is static preview, selecting a frame of picture from the shot pictures for displaying.
5. The method for displaying pictures according to claim 4, wherein after the step of obtaining the preset picture preview mode, the method further comprises:
and when the picture preview mode is dynamic preview, generating a dynamic image in a preset format according to the shot picture, and displaying the dynamic image.
6. The picture displaying method according to claim 5, wherein the step of generating a dynamic image in a preset format from the taken picture and displaying the dynamic image comprises:
acquiring the shooting sequence of the shot pictures, and determining the picture display sequence according to the shooting sequence;
and processing the shot pictures according to the picture display sequence to generate a dynamic image in a preset format, and displaying the dynamic image.
7. The picture displaying method according to claim 6, wherein the step of processing the taken pictures according to the picture display order to generate a dynamic image in a preset format and displaying the dynamic image comprises:
processing the shot pictures according to the picture display sequence to generate a video file in a video format;
and when a dynamic preview instruction triggered on the basis of a picture preview page is detected, playing the video file in the video format in the picture preview page.
8. A picture display device, comprising:
the mode acquisition module is used for acquiring the current shooting mode of the terminal camera;
the effect grading module is used for grading the shooting effect corresponding to the current shooting mode to obtain the shooting effects of different grades;
and the shooting and displaying module is used for shooting according to the shooting effects of different grades respectively and displaying the shot pictures.
9. A picture presentation device, characterized in that the device comprises: memory, processor and a picture presentation program stored on the memory and executable on the processor, the picture presentation program being configured to implement the steps of the picture presentation method as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon a picture presentation program which, when executed by a processor, implements the steps of the picture presentation method as claimed in any one of claims 1 to 7.
CN202110810431.4A 2021-07-16 2021-07-16 Picture display method, device, equipment and storage medium Pending CN115701119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110810431.4A CN115701119A (en) 2021-07-16 2021-07-16 Picture display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110810431.4A CN115701119A (en) 2021-07-16 2021-07-16 Picture display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115701119A true CN115701119A (en) 2023-02-07

Family

ID=85120394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110810431.4A Pending CN115701119A (en) 2021-07-16 2021-07-16 Picture display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115701119A (en)

Similar Documents

Publication Publication Date Title
US10810454B2 (en) Apparatus, method and program for image search
US20070188628A1 (en) Image display controlling method, image display controlling apparatus and image display controlling program
US20080074436A1 (en) Image display apparatus, image display program, image display method, and recording medium for recording the image display program
CN112954196B (en) Shooting method, shooting device, electronic equipment and readable storage medium
US8856656B2 (en) Systems and methods for customizing photo presentations
AU2010257231A1 (en) Collaborative image capture
CN108924440B (en) Sticker display method, device, terminal and computer-readable storage medium
JP2014063246A (en) Electronic album creation device, electronic album creation method, and program
KR101930460B1 (en) Photographing apparatusand method for controlling thereof
CN103716534B (en) The method of photographic device and composograph
CN111857512A (en) Image editing method and device and electronic equipment
CN111223045B (en) Jigsaw method and device and terminal equipment
US20230345113A1 (en) Display control method and apparatus, electronic device, and medium
CN111385665A (en) Bullet screen information processing method, device, equipment and storage medium
CN113411498A (en) Image shooting method, mobile terminal and storage medium
CN110929063A (en) Album generating method, terminal device and computer readable storage medium
CN104333699A (en) Synthetic method and device of user-defined photographing area
CN111885298B (en) Image processing method and device
CN112702531B (en) Shooting method and device and electronic equipment
CN111953902B (en) Image processing method and device
CN112419218A (en) Image processing method and device and electronic equipment
CN113194256A (en) Shooting method, shooting device, electronic equipment and storage medium
CN115701119A (en) Picture display method, device, equipment and storage medium
CN111587399A (en) Filter effect display method and device and mobile terminal
CN113489920A (en) Video synthesis method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication