Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a method for displaying a template photo during a photographing process, including:
step 101: acquiring a template photo;
step 102: processing the template picture to obtain a composition reference picture, wherein the composition reference picture is the transparent template picture or the outline of an object included in the template picture;
step 103: the composition reference picture is displayed in a viewfinder picture photographed in real time by the terminal.
According to the embodiment of the invention, the template picture is processed to obtain the composition reference picture through the acquired template picture, the composition reference picture is the transparent template picture or the outline of the object included in the template picture, and the composition reference picture is displayed in the framing picture shot by the terminal in real time, so that a user does not need to switch back and forth between the template picture and the framing picture, and the shooting efficiency is improved.
The embodiment of the invention provides a method for displaying a template photo in a photographing process. In the embodiment of the invention, the template photo is subjected to translucency processing to obtain a transparent template photo, and the transparent template photo is displayed in a view finding picture shot by a terminal in real time, so that a user can adjust the posture of a photographed person or the placement position of a photographed object. Referring to fig. 2, the method includes:
step 201: acquiring shooting scene information of a framing picture shot by a terminal, wherein the shooting scene information comprises at least one of shooting geographical position information, shooting time information, weather information, figure number, color information and prop information;
the user can use the terminal to shoot the photographed person or the photographed object, and shoot a framing picture. And when the user takes the scene, the shooting scene information of the terminal shooting the scene is obtained.
The acquiring of the shooting geographical location information may be:
acquiring the current position coordinate of the terminal, acquiring the current geographical position information of the terminal according to the current position coordinate of the terminal, and determining the current geographical position information of the terminal as shooting geographical position information.
Wherein, the terminal may include a GPS (Global Positioning System) module; preferably, the position coordinates of the terminal may be acquired through a GPS module included in the terminal.
Preferably, the current geographical location information of the terminal is inquired from the network according to the current location coordinate of the terminal.
In the embodiment of the present invention, the corresponding shooting geographical location information may also be found from the correspondence between the stored image and the shooting geographical location information according to an image included in a viewfinder picture shot by the terminal.
The acquiring of the shooting time information may be:
and acquiring the current shooting time point, and acquiring shooting time information according to the current shooting time point. The shooting time information may include information such as morning, afternoon, night, spring, summer, autumn, and/or winter.
Wherein, the weather information is obtained, which may be:
and inquiring current weather information from the network according to the current position coordinate of the terminal. The weather information may include sunny, cloudy, rainy or snowy weather information.
Wherein, the number of the persons is obtained, which may be:
and acquiring the figure image from the view finding picture shot by the terminal at present, and counting the acquired figure image to obtain the number of the figures.
Wherein, obtaining color information comprises:
and determining the mode of a framing picture shot by the terminal, wherein if the mode is a color mode, the acquired color information is the color mode, and if the mode is a black-and-white mode, the acquired color information is the black-and-white mode.
Wherein, obtain stage property information, can be:
and acquiring prop information according to an object image included in a framing picture shot by the terminal.
The user can set the information type included in the shooting scene information; for example, if the user sets the information types included in the shooting scene information to be shooting geographical position information and shooting time information, respectively, the shooting scene information acquired in this step includes the shooting geographical position information and the shooting time information; if the information types included in the shooting scene information set by the user are shooting geographical position information, weather information and color information, the shooting scene information acquired in the step includes the shooting geographical position information, the weather information and the color information.
The shooting scene information can also comprise a default information type, and if the information type included in the shooting scene information is not set by a user, the shooting scene information is obtained according to the default information type. For example, the shooting scene information may further include default information types of shooting geographical position information and shooting time information, respectively, and the shooting scene information acquired in this step includes the shooting geographical position information and the shooting time information.
Step 202: acquiring a template picture according to the shooting scene information;
preferably, the template photo with the shooting scene information is obtained from a template photo library according to the shooting scene information.
Each template photo in the template photo library has corresponding shooting scene information; preferably, the shooting scene information of each template photo can be stored in the file information of each template photo respectively.
Preferably, a new field can be added in the file information of the template photo, and the shooting scene information of the template photo is stored in the new field; alternatively, a field may be selected from fields included in the file information of the template photograph, and the shooting scene information of the template photograph may be stored in the selected field.
Preferably, if a plurality of template photos are acquired according to the shooting scene information, the acquired plurality of template photos are displayed so that the user selects one template photo and receives the one template photo selected by the user.
For example, assuming that the shooting scene information includes shooting geographical position information and shooting time information, a template photo including the shooting geographical position information and the shooting time information in the shooting scene information is acquired from a template photo library.
The template photo library can be stored in the local terminal or in a cloud server located in the network.
Preferably, the step can be: acquiring a template photo with the shooting scene information from a template photo library locally stored in a terminal according to the shooting scene information; or acquiring the template picture with the shooting scene information from a template picture library stored in a cloud server according to the shooting scene information.
The terminal is limited by hardware, so that the number of the template photos in the template photo library stored in the terminal is far smaller than the number of the template photos in the template photo library stored in the cloud server, and the matching degree between the template photos acquired from the template photo library stored in the cloud server and the framing pictures shot by the terminal is high.
In the embodiment of the invention, the user can also directly select a template photo from the template photo library and submit the selected template photo.
Preferably, in the embodiment of the present invention, a template photo selected by a user from a template photo library may be received.
Step 203: performing semi-transparent processing on the template photo to obtain a transparent template photo;
step 204: and displaying the transparent template picture in a view finding picture shot by a terminal in real time so that the user can adjust the posture of the shot person or the placing position of the shot object.
And the terminal shoots in real time to obtain a framing picture. Specifically, the transparent template picture is superposed on the upper layer of a viewing picture shot in real time by the terminal, and the transparent template picture is displayed.
The transparent template picture is superposed on the upper layer of the framing picture shot by the terminal in real time, a user can see the framing picture shot by the terminal in real time through the transparent template picture, and the transparent template picture and the framing picture shot by the terminal in real time are compared to adjust the posture of a shot person or the placement position of a shot object.
The embodiment of the invention obtains the transparent template picture by performing translucence processing on the acquired template picture, superposes the transparent template picture on the upper layer of the view-finding picture shot by the terminal in real time, and displays the transparent template picture, so that a user can see the view-finding picture shot by the terminal in real time through the transparent template picture, and compares the transparent template picture with the view-finding picture shot by the terminal in real time to adjust the posture of a photographed person or the placement position of the photographed object, so that the user does not need to switch back and forth between the template picture and the view-finding picture, thereby improving the photographing efficiency; in addition, the template picture is automatically acquired according to the shooting scene information of the terminal shooting view finding picture, and the shooting efficiency is further improved.
The embodiment of the invention provides a method for displaying a template photo in a photographing process. In the embodiment of the invention, the outline of the object included in the template picture is extracted, and the outline of the object included in the template picture is displayed in a view-finding picture shot by a terminal in real time, so that a user can adjust the posture of a photographed person or the placing position of the photographed object. Referring to fig. 3, the method includes:
step 301: acquiring shooting scene information of a framing picture shot by a terminal, wherein the shooting scene information comprises at least one of shooting geographical position information, shooting time information, weather information, figure number, color information and prop information;
the user can use the terminal to shoot the photographed person or the photographed object, and shoot a framing picture. And when the user takes the scene, the shooting scene information of the terminal shooting the scene is obtained.
The acquiring of the shooting geographical location information may be:
acquiring the current position coordinate of the terminal, acquiring the current geographical position information of the terminal according to the current position coordinate of the terminal, and determining the current geographical position information of the terminal as shooting geographical position information.
Wherein, the terminal can comprise a GPS module; preferably, the position coordinates of the terminal may be acquired through a GPS module included in the terminal.
Preferably, the current geographical location information of the terminal is inquired from the network according to the current location coordinate of the terminal.
In the embodiment of the present invention, the corresponding shooting geographical location information may also be found from the correspondence between the stored image and the shooting geographical location information according to an image included in a viewfinder picture shot by the terminal.
The acquiring of the shooting time information may be:
and acquiring the current shooting time point, and acquiring shooting time information according to the current shooting time point. The shooting time information may include information such as morning, afternoon, night, spring, summer, autumn, and/or winter.
Wherein, the weather information is obtained, which may be:
and inquiring current weather information from the network according to the current position coordinate of the terminal. The weather information may include sunny, cloudy, rainy or snowy weather information.
Wherein, the number of the persons is obtained, which may be:
and acquiring the figure image from the view finding picture shot by the terminal at present, and counting the acquired figure image to obtain the number of the figures.
Wherein, obtaining color information comprises:
and determining the mode of a framing picture shot by the terminal, wherein if the mode is a color mode, the acquired color information is the color mode, and if the mode is a black-and-white mode, the acquired color information is the black-and-white mode.
Wherein, obtain stage property information, can be:
and acquiring prop information according to an object image included in a framing picture shot by the terminal.
The user can set the information type included in the shooting scene information; for example, if the user sets the information types included in the shooting scene information to be shooting geographical position information and shooting time information, respectively, the shooting scene information acquired in this step includes the shooting geographical position information and the shooting time information; if the information types included in the shooting scene information set by the user are shooting geographical position information, weather information and color information, the shooting scene information acquired in the step includes the shooting geographical position information, the weather information and the color information.
Step 302: acquiring a template picture according to the shooting scene information;
preferably, the template photo with the shooting scene information is obtained from a template photo library according to the shooting scene information.
Each template photo in the template photo library has corresponding shooting scene information; preferably, the shooting scene information of each template photo can be stored in the file information of each template photo respectively.
Preferably, a new field can be added in the file information of the template photo, and the shooting scene information of the template photo is stored in the new field; alternatively, a field may be selected from fields included in the file information of the template photograph, and the shooting scene information of the template photograph may be stored in the selected field.
Preferably, if a plurality of template photos are acquired according to the shooting scene information, the acquired plurality of template photos are displayed so that the user selects one template photo and receives the one template photo selected by the user.
For example, assuming that the shooting scene information includes shooting geographical position information and shooting time information, a template photo including the shooting geographical position information and the shooting time information in the shooting scene information is acquired from a template photo library.
The template photo library can be stored in the local terminal or in a cloud server located in the network.
Preferably, the step can be: acquiring a template photo with the shooting scene information from a template photo library locally stored in a terminal according to the shooting scene information; or acquiring the template picture with the shooting scene information from a template picture library stored in a cloud server according to the shooting scene information.
The terminal is limited by hardware, so that the number of the template photos in the template photo library stored in the terminal is far smaller than the number of the template photos in the template photo library stored in the cloud server, and the matching degree between the template photos acquired from the template photo library stored in the cloud server and the framing pictures shot by the terminal is high.
In the embodiment of the invention, the user can also directly select a template photo from the template photo library and submit the selected template photo.
Preferably, in the embodiment of the present invention, a template photo selected by a user from a template photo library may be received. Step 303: extracting the outline of the object included in the template picture from the template picture;
specifically, the template picture is subjected to special effect filter processing to obtain the outline of the object included in the template picture.
Preferentially, the outline of the person included in the template photo can be extracted from the template photo; alternatively, the outlines of the one or more objects with the largest occupied area included in the template picture may be extracted from the template picture.
For example, a template photograph as shown in fig. 4 is obtained in step 302, the template photograph includes a person image, and the outline of the person is extracted from the template photograph as shown in fig. 4, and the outline of the person is shown in fig. 5.
Step 304: and displaying the object outline included in the template picture in a viewfinder picture shot by the terminal in real time so that the user can adjust the posture of the shot person or the placing position of the shot object.
And the terminal shoots in real time to obtain a framing picture. Specifically, the outline of the object included in the template picture is superimposed on the upper layer of the view picture taken in real time by the terminal, and the outline of the object included in the template picture is displayed.
The object outline included by the template picture is superposed on the upper layer of the framing picture shot by the terminal in real time, and a user can compare the object outline included by the template picture with the framing picture shot by the terminal in real time to adjust the posture of a shot person or the placing position of the shot object.
For example, the terminal captures a finder screen as shown in fig. 6 in real time, superimposes the outline of a person as shown in fig. 5 on the finder screen as shown in fig. 6, obtains a result as shown in fig. 7, and displays the outline of the person on the finder screen as shown in fig. 7.
According to the embodiment of the invention, the outline of the object included in the template picture is extracted, the outline of the object included in the template picture is superposed on the upper layer of the view-finding picture shot by the terminal in real time, and the outline of the object included in the template picture is displayed, so that a user can compare the outline of the object included in the template picture with the view-finding picture shot by the terminal in real time to adjust the posture of a shot person or the placing position of the shot object, and therefore, the user does not need to switch back and forth between the template picture and the view-finding picture, and the shooting efficiency is improved; in addition, the template picture is automatically acquired according to the shooting scene information of the terminal shooting view finding picture, and the shooting efficiency is further improved.
Referring to fig. 8, an embodiment of the present invention provides an apparatus for displaying a template photo during a photographing process, including:
an obtaining module 401, configured to obtain a template photo;
a processing module 402, configured to process the template photo to obtain a composition reference image, where the composition reference image is a transparent template photo or an outline of an object included in the template photo;
and a display module 403, configured to display the composition reference map in a viewfinder frame captured by the terminal in real time.
Preferably, referring to fig. 9, the processing module 402 includes:
a semi-transparent processing unit 4021, configured to perform semi-transparent processing on the template photo to obtain a transparent template photo; or,
an extracting unit 4022, configured to extract an outline of an object included in the template photograph from the template photograph.
Preferably, the display module 403 is configured to superimpose the composition reference map on an upper layer of a viewfinder frame captured by the terminal in real time, and display the composition reference map.
Preferably, referring to fig. 10, the obtaining module 401 includes:
a receiving unit 4011, configured to receive a template photo selected by a user from a template photo library; or,
the obtaining unit 4012 is configured to obtain the template picture according to the shooting scene information of the terminal shooting the view finding picture.
Preferably, referring to fig. 11, the apparatus further comprises:
an information obtaining module 404, configured to obtain shooting scene information of a terminal shooting a viewfinder picture.
The shooting scene information of the terminal shooting the framing picture comprises at least one of shooting geographical position information, shooting time information, weather information, number of people, color information and prop information.
According to the embodiment of the invention, the template picture is processed to obtain the composition reference picture through the acquired template picture, the composition reference picture is the transparent template picture or the outline of an object included in the template picture, and the composition reference picture is displayed in the framing picture shot by the terminal in real time, so that a user does not need to switch back and forth between the template picture and the framing picture, and the shooting efficiency is improved; in addition, the template picture is automatically acquired according to the shooting scene information of the terminal shooting view finding picture, and the shooting efficiency is further improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.