Disclosure of Invention
The embodiment of the invention provides a photo shooting method and a terminal, which can generate a background picture in a view frame according to a reference object, so that a user can compare the reference object in the shooting process, and the shooting effect can be improved.
In a first aspect, an embodiment of the present invention provides a photo taking method, including:
acquiring a reference picture, and generating a background image in a view frame according to the reference picture, wherein the background image is a shooting reference image of a target shooting object; and acquiring a shooting instruction, and shooting the target shooting object.
In the shooting and framing process, the picture can be acquired as the shooting reference picture, the background image in the framing frame is generated according to the picture, and the background image is the shooting reference image of the target shot object, so that a user can conveniently compare the current target shot object with the shooting background image in the shooting process, and the target shot object can be guided to be adjusted to be overlapped with the reference object in the background image as much as possible, so that the shooting of the reference object can be better simulated, and a better shooting effect is achieved.
Optionally, the generating of the background image in the view frame according to the reference picture may be: and extracting the characteristic points in the reference picture to form a contour line, wherein the contour line displayed in the view-finding frame is a background image. The contour line of the reference picture is displayed in the view-finding frame, so that the characteristics of the reference object can be kept, and the background image presented in the view-finding frame can not shield the target shooting object, thereby being more beneficial to shooting.
Optionally, the reference picture includes a person image, and extracting the feature points in the reference picture to form the contour line includes: and extracting the posture characteristics of the person in the person image to form a contour line.
Optionally, the gesture features include a character posture, an eye spirit, or a facial expression in the character image.
Therefore, when the target photographic subject is a person, the posture feature of the person image in the reference picture is extracted so that the target photographic subject can be photographed in imitation of the posture of the person.
Optionally, in the shooting process, the target shooting object is adjusted, and when the coincidence degree of the target shooting object and the contour line reaches the preset coincidence value, a shooting instruction is automatically generated. Thereby, more intelligent shooting can be performed.
Optionally, the generating a background image in the view frame according to the reference picture includes: the reference picture is subjected to a transparentization process to generate a background image in the finder frame.
Through the transparentization processing, the reference object can be presented in the view frame, and the background image can not influence the imaging effect of the target shooting object in the view frame, so that the good shooting effect can be achieved.
Optionally, the reference picture may be obtained by selecting a reference picture from stored pictures.
In a second aspect, an embodiment of the present invention provides a terminal, which specifically implements a function corresponding to the photo taking method provided in the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software programs by hardware. The hardware and software include one or more unit modules corresponding to the above functions, which may be software and/or hardware.
In one possible design, the terminal includes:
a reference picture acquisition unit configured to acquire a reference picture; the background image generation unit is used for generating a background image in the view frame according to the reference picture, and the background image is a shooting reference image of the target shooting object; and the shooting unit is used for obtaining a shooting instruction and shooting the target shooting object.
Optionally, the background image generating unit is specifically configured to extract feature points in the reference picture to form a contour line, and the contour line displayed in the view frame is a background image.
Optionally, the reference picture includes a person image, and the background image generation unit is specifically configured to extract a posture feature of a person in the person image to form a contour line.
Optionally, the background image generating unit is specifically configured to extract a posture feature of the person in the person image to form a contour line, where the posture feature includes a body posture, an eye spirit, or a facial expression of the person in the person image.
Optionally, the shooting unit is specifically configured to generate a shooting instruction to shoot the target photographic object when the coincidence degree of the target photographic object and the contour line reaches a preset coincidence value.
Optionally, the background image generating unit is specifically configured to perform a transparentization process on the reference picture to generate a background image in the finder frame.
Optionally, the reference picture acquiring unit is specifically configured to select a reference picture from the saved pictures.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the shooting and framing process, the reference picture is obtained, the background image in the framing frame is generated according to the picture, and the background image is the shooting reference image of the target shooting object, so that a user can conveniently compare the current target shooting object with the shooting background image in the shooting process, and the target shooting object can be guided to be adjusted, and a better shooting effect is achieved.
Detailed Description
The embodiment of the invention provides a photo shooting method, which is used for generating a background picture in a view frame according to a reference object, so that a user can compare the reference object in the shooting process, and the shooting effect can be improved.
The embodiment of the invention is not only suitable for the mobile phone with the photographing function, but also suitable for other terminals with the photographing function, such as: digital camera, wearable equipment with photographing function, vehicle-mounted terminal and user equipment in various forms. The embodiment of the invention is explained by taking a smart phone with a photographing function as an example.
According to the normal photographing process of the smart phone, when a user views a frame, a target shooting object which is shot at present is displayed in the view frame, and the reference object can be displayed in the view frame. The photographing method in the embodiment of the present invention will be described in detail below.
101. Acquiring a reference picture;
when a user takes a picture, the user opens the picture taking application, and if the user needs to take a picture according to a certain reference object, the user needs to acquire a reference picture of the reference object.
The manner of acquiring the reference picture may be different according to the actual scene. For example:
1. if there is a relevant reference picture in the locally stored pictures, it can be selected from the locally stored pictures. One possible implementation is: a special classical name painting is stored in a storage corresponding to the local camera for a user to select when imitating shooting; one possible implementation is: photos that the user has historically taken or stored are selected in the user's local gallery.
2. The user can take a picture and take the currently taken picture as a reference picture. One possible application scenario is: if the user wants to imitate a certain object seen on the spot, the user can directly shoot the object and take the shot object as a reference picture.
3. Reference pictures are obtained from a network. One possible way is: searching and selecting a corresponding reference object picture from a network by a user; one possible way is: the network can intelligently recommend the associated reference picture to the user for selection based on the object in the viewfinder.
102. Generating a background image in the view frame according to the reference picture;
after the reference picture is acquired, a background image in the view frame is generated according to the reference picture, the background image is used as a shooting reference image of the target shooting object, and during shooting, the background image and the current view are presented in the view frame.
The form of the background image generated from the reference picture is not limited as long as the user can perform comparison with the background image in the finder frame when taking a picture. Specifically, the following two methods can be used:
1. and extracting the characteristic points in the reference picture to form a contour line, wherein the contour line displayed in the view-finding frame is a background image.
And carrying out image processing on the reference picture, extracting characteristic points in the reference picture, forming a contour line of the object according to the characteristic points, and displaying the contour line in the view finder.
For example: if the reference picture comprises a person image, the posture characteristics of the person in the person image are extracted to form a contour line. Optionally, the pose features may include a variety of, for example: the body state (such as the shape of four limbs), the eye spirit, the facial expression and the like of the human body.
If the schematic diagram of the obtained reference picture is shown in fig. 2, the shape of the limbs of the person in fig. 2 is extracted as the contour lines in the finder frame, as shown in fig. 3, a shown in the finder frame is the contour line of the person in the reference picture shown in fig. 2, and B is the target shot object actually found.
2. The reference picture is subjected to a transparentization process to generate a background image in the finder frame.
And performing transparency processing on the reference picture, wherein the reference picture presented in the view frame is a virtual image of the reference picture in the reference picture, so that the reference picture presented in the view frame does not shield the target shot object which needs to be shot at present.
If the schematic diagram of the acquired reference picture is shown in fig. 2, the obtained reference picture is subjected to the transparentization processing and then is presented in the view finder, as shown in fig. 4, a displayed in the view finder is an image formed by the transparentization processing of the reference picture shown in fig. 2, and B is a target shot object actually framed.
103. And acquiring a shooting instruction, and shooting the target shooting object.
After the background image is presented in the view finder, the current shot target shot object is compared with the background image, and the target shot object is adjusted to lead the target shot object to be converged with the background image in the view finder.
Alternatively, the degree of coincidence between the target subject and the reference subject in the background image may be calculated, and the degree of coincidence may be displayed in the finder frame, for example: the contact ratio: 50 percent. Therefore, the comparison effect of the target shooting object and the reference object can be visually presented, and the user is guided to shoot.
And after the shooting instruction is obtained, shooting the target shooting object to obtain the shot target shooting object. Note that the background image is used only as a reference in shooting and is not present in the captured target subject image.
Alternatively, the obtained shooting instruction may be obtained by the user pressing a shooting button.
Optionally, the obtained shooting instruction may be: and when the coincidence degree of the target shooting object and the contour line reaches a coincidence preset value, automatically generating a shooting instruction.
The embodiment of the invention can be applied to all shooting scenes, including self-shooting, shooting other people and shooting objects.
In an alternative scheme, the background image in the viewfinder frame can be presented in other intelligent devices to facilitate comparison shooting of users. For example: when the target shooting object is a person, the shot person is provided with intelligent glasses, the view finding process can be displayed in the intelligent glasses, the shot person adjusts the posture of the shot person according to the posture characteristics and the view finding effect of the background image in the intelligent glasses, and the posture of the shot person comprises four-limb actions, the eyesight, facial expressions and the like.
The following describes in detail an example of a photo taking method in an embodiment of the present invention in a manner that a reference picture is subjected to a transparentization process to generate a background image in a finder frame, with reference to fig. 5 to 11.
The user opens the camera application and the target subject presented in the viewfinder is shown in fig. 5. Clicking the "copy picture taking mode" in fig. 6, the reference picture selection item shown in fig. 7 appears, and the embodiment of the present invention is described by taking as an example that a reference picture is selected from "celebrities" stored locally or "custom pictures" of historical photos taken by a local user, and as shown in fig. 8, a picture 801 is selected as the reference picture from "celebrities". As shown in fig. 9, the present embodiment is described in a manner of performing the transparency processing on the reference picture to generate the background image, and the background picture 901 formed by the reference picture 801 subjected to the transparency processing is presented in the finder frame together with the target photographic subject 902 photographed by the current camera. As shown in fig. 10, the target subject 902 can adjust its posture according to the background picture 901. When the photographing is completed, the photographed image is as shown in fig. 11.
The above is a description of the photo taking method in the embodiment of the present invention, and the following is a description of the terminal in the embodiment of the present invention from the perspective of the functional module. The terminal in the embodiment of the invention can be a mobile phone, a digital camera, wearable equipment with a photographing function, a vehicle-mounted terminal and user equipment in various forms.
The terminal in the embodiment of the present invention specifically implements all or part of the steps in the photo taking method in the embodiment shown in fig. 1. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software programs by hardware. The hardware and software include one or more unit modules corresponding to the above functions, which may be software and/or hardware.
In one possible design, the terminal includes:
the device comprises a processor, a memory, a touch panel, other input equipment, a display panel, a sensor, an audio circuit, a Wifi module and other hardware modules which are connected with each other. The memory is used for storing the local picture called in the photographing process and storing the picture of the target reference object after the photographing is finished; the memory is also used to store application programs. The processor is configured to execute the application program to perform all or part of the steps in the embodiment shown in fig. 1.
In one possible design, the terminal includes:
a reference picture obtaining unit 1201 configured to obtain a reference picture; a background image generation unit 1202 configured to generate a background image in the finder frame from the reference picture, where the background image is a shooting reference image of the target shooting object; the shooting unit 1203 is configured to obtain a shooting instruction and shoot a target shooting object.
Specifically, please refer to the method embodiment shown in fig. 1 for information interaction and implementation among the reference picture obtaining unit 1201, the background image generating unit 1202, and the shooting unit 1203, which is not described herein again.
It should be noted that the reference picture acquiring unit 1201, the background image generating unit 1202, and the shooting unit 1203 may be implemented by a processor executing an application program in a memory in terms of hardware.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.