[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0043] The present invention provides a method for taking pictures according to a custom template, with reference to figure 1 In the first embodiment, the method of taking photos according to a custom template includes the following steps:
[0044] Step S100: Adjust the size and position of the scene and the character in the current framing interface according to the background and character outline set in the custom template.
[0045] Before taking a picture, a device that takes a picture according to a custom template is set with a predefined picture template. The picture template is set with a background and a silhouette of a person. If the user needs to ask another person to take a picture when traveling or gathering, the invited photographer shall follow the pre-defined For the defined photo template, in the current viewfinder interface, adjust the size and position of the scene and characters to be photographed to coincide with the background of the predefined photo template and the outline of the characters.
[0046] Step S200: Compare the adjusted framing interface with the custom template, and if the adjusted framing interface coincides with the size and position of the scene and characters in the custom template, the user is prompted to press the shutter to take a photo .
[0047] The device that takes pictures according to the custom template compares the framing interface after adjusting the size and position of the scenery and characters with the user-defined photographing template. If the size and position of the scenery and the characters are adjusted, the framing interface is compared with the user-defined photographing template. The size and position of the scenes and characters in are completely coincident, and the user is prompted to press the shutter to take a photo.
[0048] In the method of taking photos according to a custom template provided in this embodiment, the photographer can instruct the photographer to take the ideal photo required by the user only according to the user-defined photo template, thereby saving both the photographer and the photographed party. Valuable time, and achieved the expected shooting effect.
[0049] See further figure 2 , figure 2 It is a schematic flow chart of the second embodiment of the method for taking photos according to a custom template according to the present invention. In the second embodiment, the step S100 further includes:
[0050] Step S100A: Pre-make a custom template matching the current background and characters.
[0051] Before taking pictures, devices that take pictures according to custom templates will pre-make custom templates that match the current background and characters, and store them in the corresponding database. When the photographer wants to take pictures of the user, he only needs to find the corresponding data in the pre-user-defined The created photo template can quickly take the photos the user needs to take, which is convenient in real time.
[0052] See further image 3 , image 3 It is a schematic diagram of the first detailed process of step S100 in the method of taking photos according to a custom template according to the present invention. The step S100 includes:
[0053] Step S110: Select a custom template corresponding to the current background and character.
[0054] The device that takes pictures according to the custom template selects a custom template corresponding to the current background and person from the corresponding database, and this custom template matches the background and person to be photographed currently.
[0055] Step S120: Identify the background and the outline of the person in the corresponding custom template.
[0056] The device that takes photos according to the custom template can use the face recognition method or the cutout method to identify the background and the outline of the person from the corresponding custom template, and use the dotted line to identify the background and the outline of the person.
[0057] Step S130: Adjust the size and position of the scene and the character in the current framing interface according to the background and the outline of the character in the corresponding custom template.
[0058] The device that takes photos according to the custom template adjusts the size and position of the scene and the character in the current viewfinder preview according to the recognized background and the outline of the person in the corresponding custom template.
[0059] The method of taking a photo according to a custom template provided in this embodiment recognizes the background and the outline of the person in the corresponding custom template, and quickly obtains the ideal photo that the user needs to obtain by means of timely adjustment in the viewfinder preview.
[0060] See further Figure 4 , Figure 4 It is a schematic diagram of the second refinement process of step S100 in the method of taking photos according to a custom template of the present invention. On the basis of the schematic diagram of the first refinement process, the step S130 further includes:
[0061] Step S120A: Add transparency to display the background and character outline in the corresponding custom template, and display the background and character outline in the form of auxiliary lines set on the current viewfinder interface.
[0062] After the device that takes pictures according to the custom template recognizes the background and character outline in the corresponding custom template, it adds transparency to the background and character outline, that is, displays the background and character outline in the form of auxiliary lines such as dotted lines on the current viewfinder interface .
[0063] Step S120B, setting an arrow guidance mode to prompt the user to adjust the current background and the position where the character needs to move.
[0064] When the device that takes photos according to the custom template adjusts the current background and the position where the character needs to move, it uses arrow guidance to prompt the user to move in the direction of the background and character outline in the corresponding custom template, as long as the current background and character move to the corresponding custom template. Define the template within the auxiliary dotted box, that is, the move is successful.
[0065] The method of taking photos according to a custom template provided in this embodiment can quickly adjust the positions of characters and scenes by adding transparency display and arrows to guide the moving position, so as to quickly achieve the desired effect of the user's ideal photo taking.
[0066] See further Figure 5 , Figure 5 It is a schematic diagram of the third refinement process of step S100 in the method of taking photos according to a custom template of the present invention. On the basis of the schematic diagram of the first refinement process, the step S120 further includes:
[0067] Step S130A: Determine whether there is a character in the current framing interface, if so, adjust the size and position of the character in the current framing interface; if not, add a corresponding character in the current framing interface.
[0068] When adjusting the positions of characters and scenes according to the custom template, the device must determine in real time whether there are characters in the current viewfinder interface. If so, adjust the size and position of the characters in the current viewfinder interface; if not, then Add the corresponding character in the viewfinder interface and move the corresponding character to the position set in the custom template.
[0069] The method of taking photos according to the custom template provided in this embodiment can quickly move the corresponding person to the position set in the custom template by directly adding characters, which is quick and convenient.
[0070] Such as Image 6 As shown, the present invention further provides a device for taking pictures according to a custom template, Image 6 It is a schematic diagram of functional modules of an embodiment of an apparatus for taking pictures according to a custom template according to the present invention. In one embodiment, the apparatus for taking pictures according to a custom template includes:
[0071] The adjustment module 20 is used to adjust the size and position of the scene and the character in the current framing interface according to the background and character outline set in the custom template;
[0072] The comparison template 30 is used to compare the adjusted framing interface with the custom template. If the adjusted framing interface coincides with the size and position of the scene and characters in the custom template, the user is prompted to press Take pictures under the shutter.
[0073] The adjustment module 20 of the device that takes photos according to the custom template sets a predefined photo template before taking a photo. The photo template is set with a background and a silhouette of a person. If the user needs to ask another person to take a photo when traveling or gathering, he will be asked According to the pre-defined photo template, the photographer adjusts the size and position of the scene and the person to be photographed according to the predefined photo template in the current viewfinder interface.
[0074] The comparison template 30 of the device that takes pictures according to the custom template compares the framing interface after adjusting the size and position of the scene and the characters with the user-defined photographing template. If the framing interface after adjusting the size and position of the scene and the characters is The size and position of the scene and the characters in the defined photo template completely overlap, and the user is prompted to press the shutter to take a photo.
[0075] In the device for taking pictures according to a custom template provided in this embodiment, the photographer can instruct the photographer to take the ideal photo required by the user only according to the user-defined photograph template, thereby saving both the photographer and the photographed Valuable time, and achieved the expected shooting effect.
[0076] See further Image 6 , The device for taking pictures according to a custom template provided in this embodiment further includes:
[0077] The configuration module 10 is used to make a custom template that matches the current background and characters in advance.
[0078] The configuration module 10 of the device that takes pictures according to the custom template pre-makes a custom template that matches the current background and character before taking a picture, and stores it in the corresponding database. When the photographer wants to take a picture of the user, he only needs to find the corresponding data User-defined photo templates can be used to quickly take photos that users need to take, which is convenient in real time.
[0079] Such as Figure 7 As noted, in the device for taking pictures according to a custom template provided in this embodiment, the adjustment module 20 further includes:
[0080] The selection unit 21 is used to select a custom template corresponding to the current background and characters;
[0081] The recognition unit 22 is used to recognize the background and the outline of the person in the corresponding custom template;
[0082] The adjusting unit 26 is used to adjust the size and position of the scene and the character in the current viewfinder interface according to the background and the outline of the character in the corresponding custom template.
[0083] The selection unit 21 of the device for taking pictures according to a custom template selects a custom template corresponding to the current background and person from the corresponding database, and this custom template matches the background and person to be photographed currently.
[0084] The recognition unit 22 of the device that takes pictures according to the custom template can use the face recognition method or the cutout method to recognize the background and the outline of the person from the corresponding custom template, and use the dotted line to identify the background and the outline of the person.
[0085] The adjustment unit 26 of the device for taking pictures according to the custom template adjusts the size and position of the scene and the character in the current viewfinder preview according to the recognized background and character outline in the corresponding custom template.
[0086] The device for taking pictures according to the custom template provided in this embodiment recognizes the background and the outline of the person in the corresponding custom template, and quickly obtains the ideal photo that the user needs to obtain by adjusting the viewfinder preview in a timely manner.
[0087] Such as Figure 7 As noted, in the device for taking pictures according to a custom template provided in this embodiment, the adjustment module 20 further includes:
[0088] The auxiliary unit 23 is used to display the background and character outline in the corresponding custom template with transparency, and display the background and character outline in the form of auxiliary lines set on the current viewfinder interface;
[0089] The prompt unit 24 is used to set an arrow guidance mode to prompt the user to adjust the current background and the position of the character that needs to move.
[0090] After the auxiliary unit 23 of the device that takes pictures according to the custom template recognizes the background and character outline in the corresponding custom template, it adds transparency to the background and character outline, that is, displays the background and character outline in the form of auxiliary lines such as dotted lines. On the current viewfinder interface.
[0091] When adjusting the current background and the position where the character needs to move, the prompt unit 24 of the device that takes photos according to the custom template adopts arrow guidance to prompt the user to move in the direction of the background and character outline in the corresponding custom template, as long as the current background and character Move to the auxiliary dotted box corresponding to the custom template, that is, the move is successful.
[0092] The device for taking pictures according to a custom template provided in this embodiment quickly adjusts the positions of characters and scenes by adding a transparency display and an arrow to guide the moving position, so as to quickly achieve the desired effect of taking pictures desired by the user.
[0093] Such as Figure 7 As noted, in the device for taking pictures according to a custom template provided in this embodiment, the adjustment module 20 further includes:
[0094] The judging unit 25 is used to judge whether there is a character in the current framing interface, if so, adjust the size and position of the character in the current framing interface; if not, add the corresponding character in the current framing interface.
[0095] The judging unit 25 of the device that takes pictures according to the custom template needs to judge in real time whether there are any characters in the current viewfinder interface when adjusting the positions of the characters and scenery. If so, adjust the size and position of the characters in the current viewfinder interface; if not, , The corresponding character is added to the current viewfinder interface, and the corresponding character is moved to the position set in the custom template.
[0096] The device for taking pictures according to the custom template provided in this embodiment can quickly move the corresponding person to the position set in the custom template by directly adding characters, which is quick and convenient.
[0097] The above are only the preferred embodiments of the present invention, and do not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of the present invention, or directly or indirectly applied to other related technical fields , The same reason is included in the scope of patent protection of the present invention.