Photographing method, device, electronic device, and storage medium
The photography method and device guide users with posture templates and prompt information to enhance image capture quality by ensuring proper subject posture and lighting, addressing the challenge of unsatisfactory images due to lack of experience.
Patent Information
- Application Number
- JP2023577617
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-09-03
- Filing Date
- 2022-08-17
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-08-17
AI Technical Summary
Users often capture unsatisfactory images due to lack of photography experience, leading to increased effort in re-taking or editing photos.
A photography method and device that guides users through a target posture template and shooting prompt information, including angle and distance cues, to improve image capture quality.
Enhances photography experience by ensuring proper subject posture and lighting, reducing the need for post-processing and improving image quality.
Smart Images

Figure 0007739476000001 
Figure 0007739476000002 
Figure 0007739476000003
Abstract
Description
[Technical Field]
[0001] [Related Applications] This application claims priority to a Chinese patent application filed with the China Patent Office on September 3, 2021, with application number 202111032561.6, the entire contents of which are incorporated herein by reference. [Technical field] TECHNICAL FIELD The present disclosure relates to the field of photography technology, for example, to a photography method, a device, an electronic device, and a storage medium. [Background technology]
[0002] Currently, users can take photos using terminal devices, but due to lack of photography experience, the captured images often have unsatisfactory results, which results in users having to expend a lot of effort to find a suitable way to re-take or edit the captured images, resulting in a poor photography experience. Summary of the Invention
[0003] The embodiments of the present disclosure provide a photography method, device, electronic device, and storage medium that can improve the effect of taking photographs.
[0004] In a first aspect, an embodiment of the present disclosure provides a method of imaging, comprising: In response to a trigger operation for guiding shooting using a target posture template, displaying the target posture template on an upper layer of a preview screen displayed on a shooting page, and displaying shooting prompt information on the shooting page, wherein the target posture template is used to guide prompting for a shooting posture corresponding to a shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; and controlling the camera to photograph the subject in response to a photographing command.
[0005] In a second aspect, an embodiment of the present disclosure further provides an imaging device, a template display module configured to display the target posture template on an upper layer of a preview screen displayed on a shooting page in response to a trigger operation for guiding shooting using a target posture template, and display shooting prompt information on the shooting page, wherein the target posture template is used to guide prompting for a shooting posture corresponding to a shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; and a photographing module configured to control a camera to photograph the subject in response to a photographing command.
[0006] In a third aspect, an embodiment of the present disclosure further provides an electronic device, a processor; a memory configured to store a program; When the program is executed by the processor, the processor implements the imaging method described in the embodiments of the present disclosure.
[0007] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, the computer-readable storage medium storing a computer program, which, when executed by a processor, realizes the imaging method described in the embodiment of the present disclosure. [Brief explanation of the drawings]
[0008] These and other features, advantages, and aspects of examples of the present disclosure will become more apparent by reference to the following specific embodiments in conjunction with the accompanying drawings. Identical or similar reference numerals refer to identical or similar elements throughout the accompanying drawings. It should be understood that the accompanying drawings are schematic, and that objects and elements are not necessarily drawn to scale. [Figure 1] 1 is a schematic flowchart of an imaging method provided by an embodiment of the present disclosure. [Figure 2]FIG. 1 is a schematic diagram of a capture page display provided by an embodiment of the present disclosure. [Figure 3] 1 is a schematic flowchart of another imaging method provided by an embodiment of the present disclosure. [Figure 4] FIG. 10 is a schematic diagram of another capture page display provided by an embodiment of the present disclosure. [Figure 5] FIG. 10 is a schematic diagram of a recommended posture list provided by an embodiment of the present disclosure. [Figure 6] FIG. 1 is a schematic block diagram of the structure of an imaging device provided by an embodiment of the present disclosure. [Figure 7] 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] The present disclosure will now be described with reference to the accompanying drawings, in which several embodiments of the disclosure are shown, although the disclosure can be embodied in various forms.
[0010] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in a different order and / or in parallel. Additionally, method embodiments may add steps and / or omit steps that are shown.
[0011] As used herein, the term "comprises" and variations thereof are open-ended, meaning "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" means "at least one embodiment," the term "in another embodiment" means "at least one other embodiment," and the term "in some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided in the description below.
[0012] It should be noted that the terms "first", "second", etc. referred to in this disclosure are used to distinguish between different devices, modules or units.
[0013] It should be noted that the modifications "one" and "multiple" referred to in this disclosure are exemplary, and one of ordinary skill in the art will understand that they should be understood as "one or more" unless the context clearly indicates otherwise.
[0014] 1 is a schematic flowchart of a photographing method provided by an embodiment of the present disclosure. The method may be performed by a photographing device, where the device may be implemented by software and / or hardware and located in an electronic device, typically a mobile phone or tablet computer. The photographing method provided by an embodiment of the present disclosure is suitable for a scenario in which at least one of a user's photographing posture, a photographing angle, and a photographing distance is guided. As shown in FIG. 1, the photographing method provided by this embodiment may include the following steps:
[0015] S101: In response to a trigger operation for guiding photography using a target posture template, display the target posture template on an upper layer of a preview screen displayed on a photography page, and display photography prompt information on the photography page, where the target posture template is used to guide and prompt a photography posture corresponding to a photography object, and the photography prompt information includes at least one of photography angle prompt information and photography distance prompt information.
[0016] In this embodiment, the shooting guidance trigger operation is a trigger operation that instructs the electronic device to guide the shooting posture using a target posture template, i.e., a trigger operation that instructs the electronic device to display the target posture template, such as an operation to select or introduce a posture photo. The target posture template is a posture template that the user wants to use for shooting guidance, for example, a template corresponding to the posture photo selected or introduced by the user, and the template may be a posture outline template, i.e., a wireframe composed of the outline of a character. The target posture template is used to prompt and guide the shooting subject to take a corresponding shooting posture for shooting. The shooting subject can be understood to be an object photographed by the electronic device, such as a character or animal photographed by the electronic device. The following description will be given taking the example of a character as the shooting subject.
[0017] The photographing prompt information can be understood as photographing prompt information periodically generated on the current preview screen (i.e., the preview screen collected by the camera at the current time), and the information content of the current photographing prompt information can be set as needed. For example, the photographing prompt information includes at least one of current key part scale information, prompt information on the relative size between the current key part scale information and the preset key part scale information, and photographing correction information. That is, the current key part scale information can be used as the photographing prompt information to be currently displayed, and the photographing prompt information to be currently displayed can be generated based on the relative size between the current key part scale information and the preset key part scale information. Alternatively, the photographing correction information can be determined based on the deviation information between the current key part scale information and the preset key part scale information, and the photographing correction information can be used as the current photographing prompt information. Here, the current key part scale information may include head scale information and / or leg scale information of the subject being photographed on the current preview screen, and the prompt information for the relative size between the current key part scale information and the preset key part scale information may be information for prompting the relative size, for example, information for prompting that the head scale / leg scale is too large or too small, and the shooting correction information may be information for correcting the user's current shooting defects, such as prompting the user to increase the shooting distance (for example, move the camera backward) or adjust the shooting angle downward (for example, move the camera downward) when, for example, the head scale of the subject being photographed on the current preview screen is too large or the leg scale of the subject being photographed on the current preview screen is too small.
[0018] 2 , when a user wants to use a posture template 20 to guide a photograph, the user may perform a trigger operation to use the posture template 20 to guide a photograph. Correspondingly, when the electronic device detects the user's trigger operation, the electronic device displays the posture template 20 on top of the preview screen displayed on the photographing page, and while displaying the posture template 20, periodically generates current photographing prompt information 21 (i.e., photographing prompt information at the current time) and displays the current photographing prompt information 21 on the photographing page. For example, when the photographing prompt information is first displayed (i.e., when the photographing prompt information 21 is not displayed on the photographing page), the electronic device may generate the current photographing prompt information 21 according to the current preview screen and display the current photographing prompt information 21 on the photographing page. When the photographing prompt information is displayed on the photographing page, the electronic device generates the current photographing prompt information 21 according to the current preview screen and updates the photographing prompt information displayed on the photographing page to the current photographing prompt information 21.
[0019] In the above embodiment, the display method of the posture template on the photographing page can be set as needed, for example, the posture template can be directly displayed at a preset display position on the photographing page, or, taking into account the composition effect of the photographed photo / video frame, the posture template can be selectively displayed at the display position of the posture template in the corresponding posture photo, that is, at the same display position as the original display position of the posture template in the corresponding posture photo.
[0020] In the above embodiment, the method for determining the current shooting prompt information can be flexibly set. Optionally, the shooting prompt information is generated based on key part scale information, which is the key part scale information of the shooting object in the preview screen. For example, the current key part scale information is determined based on the current preview screen collected by a camera, where the current key part scale information is the key part scale information of the shooting object in the current preview screen collected by a camera, and the current shooting prompt information is generated based on the current key part scale information.
[0021] In one embodiment, the current key part scale information can be understood as the key part scale information of the photographer in the current preview screen. The key part scale information may be scale information between the key part of the subject and the photographer's body, or scale information between the key part of the subject and a preset part of the subject. Hereinafter, an example will be described in which the key part scale information is scale information between the key part of the subject and a preset part of the subject. The key part includes at least one of the head and the legs, and the scale information may be length scale information, for example, scale information in a direction parallel to the body, and the preset part may be the upper body of the subject (for example, including or excluding the head).
[0022] In one embodiment, during the process of displaying the target posture template, the electronic device periodically determines current key part scale information of the subject to be photographed in the current preview screen collected by the camera, and displays or updates the photographing prompt information displayed on the photographing page based on the current key part scale information.
[0023] For example, a model (e.g., a posture identification model) capable of identifying key point information of the subject may be obtained by pre-learning. Accordingly, when a photography page is displayed, a current preview screen captured by a camera is periodically acquired, the current preview screen is input to a posture identification model, and key point information of the subject in the current preview screen output from the posture identification model is acquired as current posture information of the subject. Based on the current posture information, key parts and preset parts of the subject are identified. Length information of the key parts of the subject in the preview screen and length information of the preset parts in the preview screen are acquired. Based on the length information, length scale information between the key parts and preset parts of the subject is calculated as current key part scale information of the subject. Current photography prompt information is generated based on the current key part scale information. Here, the key points of the subject may be set as needed, and may include, for example, contour points of the subject in the current preview screen, i.e., points constituting the character contour of the subject in the current preview screen, or points constituting key parts (e.g., legs, head, etc.) of the subject in the current preview screen.
[0024] Taking the example of a case where the key parts include the head and legs, the preset parts are the upper body (excluding the head) of the subject to be photographed, and the subject is standing upright, length information of the head, legs, and upper body of the subject to be photographed in the vertical direction of the photographing screen is determined based on the key point information of the subject to be photographed in the current preview screen, head scale information of the subject to be photographed in the current preview screen is calculated based on the length information of the head and length information of the upper body of the subject, and leg scale information of the subject to be photographed in the current preview screen is calculated based on the length information of the legs and length information of the upper body of the subject, thereby making it possible to obtain current key part scale information of the subject to be photographed.
[0025] Furthermore, for example, as shown in FIG. 2, when a posture template 20 is displayed on the shooting page, a posture photo 22 corresponding to the posture template 20 is displayed on the shooting page, i.e., the posture photo 22 that serves as the basis for generating the posture template 20 is displayed, making it easier for the user to clarify the subject and environment of the posture photo 22 corresponding to the shooting template 20.
[0026] In this embodiment, a posture template and shooting prompt information are displayed, which guides the subject to the shooting posture through the posture template, prompts the subject to shoot through the shooting prompt information, and guides the subject to a good shooting posture. This avoids the situation where the subject has an appropriate body scale in the current preview screen, and the subject's shooting posture is not good in the captured video or photo, and the subject's body scale is not coordinated (for example, the head is too large or the legs are too short), thereby improving the quality of the captured video or photo.
[0027] In one embodiment, when a trigger operation is received to guide photography using the target posture template, if light supplementation is required, the supplementation is performed using a fill light, so that the photographed image has a good lighting effect. In this case, the photography method provided by this embodiment optionally further includes controlling the fill light in response to a trigger operation to guide photography using the target posture template, so that the supplementation is performed using light corresponding to the photography environment information of the photographed object.
[0028] For example, when a trigger operation for guiding photography using a target posture template is received, the target posture template and photography prompt information are displayed on the photography page. Light information, such as at least one of light direction information, brightness information, and color information, is determined based on the photography environment information of the subject or the photography environment information of the subject and the light information in the posture photo corresponding to the target posture template, and the corresponding fill light is controlled to provide assistance using the light corresponding to the light information. Here, the fill light may be a fill light provided by the electronic device itself or a fill light connected to the electronic device. The photography environment information of the subject may include external light information of the subject, i.e., light information of the photography environment in which the subject is located.
[0029] S102: In response to a photographing command, the camera is controlled to photograph the subject.
[0030] In one embodiment, when the electronic device receives a shooting command, it controls the camera to shoot an object, for example, to take a photo or a video.
[0031] In one embodiment, the shooting command may be a command to instruct the electronic device to take a photo, such as a photo command or a video shooting command, and may be automatically generated by the electronic device when the current conditions satisfy the preset generation conditions, or may be generated based on a received shooting operation (e.g., a trigger operation acting on the shooting control), i.e., the electronic device may take a photo automatically, or may take a photo based on a user's trigger operation.
[0032] In one embodiment, before controlling the camera to take a photograph in response to the received photographing command, the method further includes at least one of calculating a screen picture score of the current preview screen based on at least one of matching information between the current posture information of the subject and the target posture template and facial expression information of the subject, and generating a photographing command if the screen picture score is higher than a preset threshold; and generating a photographing command if a photographing operation operating within the photographing page is received.
[0033] In one embodiment, when the target posture template is displayed, the electronic device periodically calculates a degree of similarity between the current posture information of the subject and the target posture template, evaluates the current preview screen according to the degree of similarity and at least one of facial expression information of the subject in the current preview screen (e.g., the degree of smiling face and / or the degree of eye opening of the subject), calculates a screen picture score for the current preview screen, generates an automatic shooting command if the screen picture score is higher than a preset threshold, and does not perform an operation to generate an automatic shooting command if the screen picture score is lower than the preset threshold. Optionally, when a user wants to take a picture, the electronic device may trigger a shooting control 23 (shown in FIG. 2 ) in the shooting page. When the electronic device detects that the user has triggered the shooting control 23, it determines that a shooting operation instructing the electronic device to take a picture has been received, and generates a shooting command in response to the shooting operation.
[0034] The photography method provided by this embodiment responds to a trigger operation to guide photography using a target posture template by displaying a target posture template used to prompt the photographer to take a photography posture corresponding to the subject on the upper layer of the preview screen displayed on the photography page, and displays photography prompt information on the photography page, where the photography prompt information includes at least one of photography angle prompt information and photography distance prompt information, and controls the camera to photograph the subject in response to a photography command. By guiding the photography posture through the posture template and prompting at least one of the photography angle and photography distance through the photography prompt information, this embodiment solves the problem that the subject has difficulty in taking a posture when photographing, so that the subject has an appropriate body scale in the captured photo / video, which improves the photography effect of the subject and reduces the difficulty of photography.
[0035] 3 is a schematic flowchart of another photography method provided by an embodiment of the present disclosure. The solution in this embodiment may be combined with one or more selectable solutions in the above embodiments. Optionally, the trigger operation is a selection operation for a recommended posture photo corresponding to a target posture template, and the photography method provided by this embodiment further includes the steps of: displaying a recommended posture list in response to a posture recommendation operation performed in a photography page, where the recommended posture list is used to display the recommended posture photo, and the photography information of the recommended posture photo matches the target photography information of the photography target when receiving the template recommendation operation, and the target photography information includes at least one of posture information and photography environment information.
[0036] The method further includes a step of selectively determining target shooting information of a shooting subject when the template recommended operation is received, before displaying the recommended posture list, and acquiring a recommended posture photo whose shooting information matches the target shooting information.
[0037] Optionally, the trigger operation is a posture photo introduction operation, and the method further includes a step of obtaining an introduction posture photo corresponding to the posture photo introduction operation and generating the target posture template based on the introduction posture photo before displaying the target posture template in the upper layer of the preview screen displayed on the shooting page.
[0038] Optionally, the photographing command is a photographing command, and further includes a step of controlling the camera to photograph, then retouching the photographed original image to obtain a target photograph, and saving the original image and the target photograph.
[0039] Correspondingly, for example, as shown in FIG. 3, the photographing method provided in this embodiment includes the following steps:
[0040] S201: In response to a posture recommendation operation performed within a photography page, determine target photography information of a photography subject when the template recommendation operation is received, and obtain a recommended posture photo whose photography information matches the target photography information, wherein the target photography information includes at least one of posture information and photography environment information.
[0041] In this embodiment, the posture recommendation operation may be an operation to instruct the electronic device to display a recommended posture list, for example, an operation to trigger a recommended posture control displayed on the photography page. The target photography information may be understood as photography information of the photography subject at the time the posture recommendation operation is received, and may include at least one of posture information and photography environment information. The posture information may be understood as information for characterizing the photography posture of the photography subject, for example, position information of key points of the photography subject. The photography environment information may be understood as information for characterizing the photography environment in which the photography subject is located, such as photography background information and external light information.
[0042] In one embodiment, the electronic device displays a photography page as shown in FIG. 4. Therefore, when a photographer wants to instruct the electronic device on a recommended photography posture, the photographer either assumes their preferred posture (if the photographer is the subject) or instructs the subject on their preferred posture (if the photographer is not the subject), triggering the posture recommendation control 40 in the photography page. Correspondingly, when the electronic device detects that the user has triggered the posture recommendation control 40 in the photography page, the electronic device determines that a posture recommendation operation has been received, and in response to the posture recommendation operation, determines target photography information of the subject based on a preview image collected by the current camera, for example, inputs the preset image into a posture detection model obtained by pre-learning, determines target photography information of the subject based on the posture detection model, and acquires a recommended posture photo based on the target photography information.
[0043] In this embodiment, the electronic device directly determines and acquires recommended posture photos based on the target shooting information. For example, the electronic device acquires the shooting information of each posture photo in a posture photo library, calculates the degree of match between the shooting information of each posture photo and the target shooting information, and selects a certain number of posture photos in descending order of the degree of match as recommended posture photos, or selects posture photos with a degree of match exceeding a preset threshold value as recommended posture photos, and acquires the determined recommended posture photos.
[0044] The electronic device may also determine a recommended posture photo based on the target shooting information via a server. For example, the electronic device may generate a posture photo acquisition request including the target shooting information, send the posture photo acquisition request to a server, and request the server to return recommended posture photos whose shooting information matches the target shooting information. After receiving the posture photo acquisition request from the electronic device, the server analyzes the posture photo acquisition request, acquires the target shooting information included in the posture photo acquisition request, calculates the degree of match between the shooting information of multiple posture photos in the posture photo library and the target shooting information, and selects a certain number of posture photos in descending order of degree of match as recommended posture photos, or selects posture photos whose degree of match exceeds a preset threshold as recommended posture photos, and transmits the determined recommended posture photos to the electronic device. In response, the electronic device can receive the recommended posture photos returned from the server.
[0045] In one embodiment, posture photos in the posture photo library are preset, that is, photos with high photographic effect are acquired in advance as posture photos, and posture templates corresponding to them may be stored in the posture photo library.
[0046] S202, display a recommended posture list, where the recommended posture list is used to display recommended posture photos.
[0047] In one embodiment, after acquiring the recommended posture photos, the electronic device displays a recommended posture list 50 on the photography page, and displays the acquired recommended posture photos in the recommended posture list 50, and may allow selection by the photographer or the subject to be photographed, for example, as shown in FIG. 5 .
[0048] In this embodiment, posture photos are recommended to the user based on the shooting information of the subject at the current time, and the user's posture is guided by posture templates corresponding to the posture photos, allowing the subject to easily adopt their preferred posture in the current shooting environment. Similar high-quality postures are recommended to the user based on the shooting environment and the preferred posture of the subject, allowing the subject to fine-tune their preferred posture to achieve good shooting effects. This eliminates the need for the subject to manually select and shoot their preferred posture from a large number of posture photos, and solves the problem of the subject not being able to adopt a good posture during the shooting process, thereby improving the effect of photo / video shooting and reducing the time required to select a posture template and the difficulty of taking photos / videos.
[0049] In one embodiment, when the user closes the recommended posture list without selecting any of the recommended posture photos, shooting prompt information may be displayed only on the photography page, and the user may be prompted to take a photograph by the shooting prompt information. In this case, after the recommended posture list is displayed, in response to a list closing operation when a target posture photo is not selected, the display of the recommended posture list is canceled, and the shooting prompt information is displayed on the photography page.
[0050] In the above embodiment, when no recommended posture photo is displayed in the recommended posture list, i.e., when no recommended posture photo whose shooting information matches the target shooting information is obtained, or when the user does not want any of the recommended posture photos displayed in the recommended posture list, for example, when the user is not satisfied with any of the shooting postures in the recommended posture photos displayed in the recommended posture list, an operation to close the recommended posture list (i.e., a list closing operation) may be performed. In response to this, when the electronic device detects the user's list closing operation, it may stop displaying the recommended posture list on the shooting page and display shooting prompt information on the shooting page.
[0051] S203: receiving a selection operation for a recommended posture photo corresponding to the target posture template, and executing S206;
[0052] In this embodiment, the selection operation may be an operation of selecting one of the recommended posture photos displayed in the recommended posture list, for example, an operation of clicking on the recommended posture photo.
[0053] 5, the electronic device displays a recommended posture list 50 and displays each recommended posture photo in the recommended posture list 50. This allows the user to trigger the recommended posture photo when taking a photo in a posture included in the recommended posture photo. Correspondingly, when the electronic device detects that the user has triggered the recommended posture photo, the electronic device sets the posture template corresponding to the recommended posture photo as a target posture template and determines that a selection operation for the posture photo corresponding to the target posture template has been received, i.e., determines that a trigger operation for employing the target posture template to guide photography has been received.
[0054] In this embodiment, the target posture template may be sent to the electronic device by the server, or may be generated by the electronic device based on the corresponding recommended posture photo. That is, the server may send each recommended posture photo to the electronic device and simultaneously send a posture template corresponding to each recommended posture photo to the electronic device, or the server may send only each recommended posture photo to the electronic device, so that when the electronic device detects that the user has triggered a recommended posture photo in the recommended posture list, it can generate a corresponding target posture template based on the recommended posture photo.
[0055] In addition, when the electronic device receives a selection operation for a posture photo corresponding to a target posture template, in addition to executing S208, the electronic device may close the recommended posture list to make it easier for the user to view the preview screen and the target posture template.
[0056] S204: receiving a posture photo introduction operation;
[0057] S205: obtaining an introduction posture photo corresponding to the posture photo introduction operation, and generating the target posture template based on the introduction posture photo;
[0058] In this embodiment, the posture photo introduction operation triggers a posture photo introduction operation, for example, a posture photo introduction control in a photography page, and performs an operation of selecting and introducing a certain photo. The introduced posture photo can be understood as the introduced posture photo.
[0059] In this embodiment, the electronic device can adopt a posture template corresponding to the posture photo introduced by the user to guide the user in taking pictures.
[0060] In one embodiment, the electronic device displays a photographing page, as shown in FIG. 4. When the user takes a photograph in a photographing posture in a preferred posture photo, the user triggers a posture photo introduction control 41 on the photographing page to select and introduce the preferred posture photo. In response, the electronic device can acquire the posture photo introduced by the user and generate a posture template corresponding to the posture photo based on the posture photo. For example, the electronic device can input the introduced posture photo into a posture detection model obtained by pre-learning, acquire keypoint information of one or more objects captured in the introduced posture photo output from the posture detection model, and generate a posture template corresponding to the posture photo based on the keypoint information. For example, the electronic device can sequentially connect keypoints located on the outline of the corresponding object in the photograph in a clockwise or counterclockwise direction to obtain a wireframe of the object, which serves as the posture template corresponding to the introduced posture photo.
[0061] Furthermore, after obtaining the posture template corresponding to the introductory posture photo, the introductory posture photo and the posture template may be uploaded to a server and stored, for example, in a custom space corresponding to the user in a posture photo library, so that subsequent users can use the posture template again to guide them in the shooting posture, or the posture photos available to each user stored in the posture photo library and the introductory posture photo stored in the user's custom space may be selected as posture photos recommended for the user.
[0062] S206: Display the target posture template on the upper layer of the preview screen displayed on the shooting page, and display shooting prompt information on the shooting page, where the target posture template is used to guide the user to prompt for a shooting posture corresponding to the shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information.
[0063] S207: In response to the photography command, the camera is controlled to photograph the subject.
[0064] S208: The original image obtained by photographing is retouched to obtain a target photograph, and the original image and the target photograph are saved.
[0065] In this embodiment, the original image may be a photograph that has been taken, and the target image may be a photograph obtained by retouching the original image.
[0066] In this embodiment, if the photography command is an image capture command, the captured original image may be retouched after the image capture is completed to improve the user's experience.
[0067] For example, the electronic device may capture an original image, input the original image into a retouching model obtained by pre-learning, retouch the original image using the retouching model to obtain a target image, simultaneously store the captured original image and the target image, and display the original image or the target image, or display the original image and the target image in correspondence with each other. Here, the retouching model is used to retouch an input image (e.g., an original image) and output the retouched target image, and may be obtained by pre-learning.
[0068] When a posture template is used to guide the photographic posture of the subject during photographing to improve the retouching effect of the original image, in this embodiment, the original image obtained by photographing a posture photo corresponding to the posture template used during photographing the original image is retouched, so that the retouched target photograph and the retouched posture photo have the same or similar photographic effect, and the retouched original image is more in line with the actual photographic intention of the user (e.g., the photographer and / or the photographic subject). In this case, optionally, retouching the photographed original image to obtain the target photograph includes retouching the original image based on photographic information of the target posture photo corresponding to the target posture template to obtain the target photograph, where the photographic information includes color information and / or image information of the target object in the target posture photo, and the image information includes dimension information and / or position information.
[0069] In this embodiment, the target pose template may be the pose template used when capturing the original image. The target pose photo may be a pose photo corresponding to the target pose template. The target object may be understood to be an object corresponding to the target pose template in the target pose photo, such as a character and / or an animal corresponding to the target pose template. The color information of the target pose photo may be understood to be color information of the target pose photo, such as filter information used in the target pose photo. The image information of the target object includes dimensional information and / or position information of the target object depicted in the target pose photo.
[0070] For example, after obtaining an original image by photographing, the electronic device inputs the original image and a target pose photo corresponding to the target pose template adopted when photographing the original image into another retouching model, and retouches the original image through the retouching model based on color information of the target pose photo, dimensional information of the target object in the target pose photo, and / or position information of the target object in the target pose photo, for example, by adding the same filter as the target pose photo to the original image, and cropping and / or scaling the original image based on dimensional information and / or position information of the target object in the target pose photo, so that the retouched target photo has the same color and / or composition as the target pose photo.
[0071] The photography method provided by this embodiment recommends posture photos according to the posture of the subject, guides the user in the photography posture according to the posture template corresponding to the posture photo selected or introduced by the user, and automatically corrects the original image after obtaining it through photography, thereby solving the problem of the subject being unable to assume the posture at the time of photography and reducing the user's difficulty in photography, as well as simplifying the operations required for selecting a posture template, improving the photography effect of the final photo obtained, and enhancing the user's photography experience.
[0072] 6 is a structural block diagram of a photographing device provided by an embodiment of the present disclosure. The device may be implemented by at least one of software and hardware, and may be located in an electronic device, typically a mobile phone or a tablet computer, and may implement a photographing method to guide a user's photographing posture, photographing angle, and / or photographing distance. As shown in FIG. 6, the photographing device provided by this embodiment includes a template display module 601 and a photographing module 602, where: the template display module 601, in response to a trigger operation for guiding shooting using a target posture template, displays the target posture template on an upper layer of a preview screen displayed on a shooting page, and displays shooting prompt information on the shooting page, where the target posture template is used to prompt and guide a shooting posture corresponding to a shooting object, and the shooting prompt information is configured to include at least one of shooting angle prompt information and shooting distance prompt information; The photographing module 602 is configured to control a camera to photograph the subject in response to a photographing command.
[0073] The photographing device provided by this embodiment uses a template display module to display, in response to a trigger operation for guiding photographing using a target posture template, a target posture template used to prompt the photographing target to take a photographing posture, on top of the preview screen displayed on the photographing page, and displays photographing prompt information on the photographing page, where the photographing prompt information includes at least one of photographing angle prompt information and photographing distance prompt information, and controls the camera to photograph the photographing target in response to a photographing command using the photographing module. This embodiment solves the problem of the photographing target having difficulty in taking a posture when photographing by using a posture template to guide the photographing posture and prompting at least one of the photographing angle and photographing distance using the photographing prompt information, thereby ensuring that the photographing target has an appropriate body scale in the photographed photo / video, improving the photographing effect of the photographing target and reducing the difficulty of photographing.
[0074] In the above method, the trigger operation is a selection operation of a recommended posture photo corresponding to a target posture template, and the photography device provided in this embodiment displays a recommended posture list in response to a posture recommendation operation performed in a photography page, where the recommended posture list is used to display the recommended posture photos, and the photography information of the recommended posture photos matches the target photography information of the photography subject when the template recommendation operation is received, and the target photography information further includes a list display module configured to include at least one of posture information and photography environment information.
[0075] In the above method, before displaying the recommended posture list, the list display module is configured to determine target shooting information of a photographing subject when the template recommended operation is received, and acquire a recommended posture photograph whose shooting information matches the target shooting information.
[0076] Optionally, the photography device provided by this embodiment further includes a list closing module configured to cancel the display of the recommended posture list and display photography prompt information on the photography page in response to a list closing operation when a target posture photo is not selected after the recommended posture list is displayed.
[0077] In the above method, the trigger operation is a posture photo introduction operation, and the template display module 601 is configured to obtain an introduction posture photo corresponding to the posture photo introduction operation and generate the target posture template based on the introduction posture photo before displaying the target posture template in the upper layer of the preview screen displayed on the shooting page.
[0078] In the above method, the photographing prompt information is generated based on key part scale information, and the key part scale information is key part scale information of the photographing target on the preview screen.
[0079] Optionally, the photographing device provided by this embodiment further includes an auxiliary module configured to control an auxiliary light in response to a trigger operation that guides photographing using a target posture template, so as to provide assistance using light corresponding to photographing environment information of the subject to be photographed.
[0080] Optionally, the photographing device provided by this embodiment further includes a command generation module configured to calculate a screen picture score of the current preview screen based on at least one of the matching information between the current posture information of the photographing subject and the target posture template and the facial expression information of the photographing subject before controlling the camera to photograph in response to the received photographing command, and generate a photographing command when the screen picture score is higher than a preset threshold, and generate a photographing command when a photographing operation operating within the photographing page is received.
[0081] Optionally, the photographing device provided in this embodiment further includes a retouching module configured to: control the camera to take a photograph, and after the photographing command is an image capturing command, retouch the original image obtained by the photographing to obtain a target photograph; and save the original image and the target photograph.
[0082] The imaging device provided by the embodiments of the present disclosure can execute the imaging method provided by any embodiment of the present disclosure, and has corresponding functional modules and beneficial effects. For technical details not comprehensively described in this embodiment, please refer to the imaging method provided by any embodiment of the present disclosure.
[0083] Reference will now be made to FIG. 7, which illustrates a structural schematic diagram of an electronic device (e.g., a terminal device) 700 suitable for implementing an embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include mobile terminals such as a mobile phone, a laptop computer, a digital broadcast receiver, a personal digital assistant (PDA), a tablet computer (Portable Android Device, PAD), a portable multimedia player (Portable Media Player, PMP), and an in-vehicle terminal (e.g., an in-vehicle navigation terminal), as well as fixed terminals such as a digital TV and a desktop PC. Note that the electronic device illustrated in FIG. 7 is merely an example.
[0084] 7, electronic device 700 includes a processing unit (e.g., a central processing unit, a graphics processor, etc.) 701 that can perform various appropriate operations and processes according to programs stored in read only memory (ROM) 702 or programs loaded from storage device 706 into random access memory (RAM) 703. RAM 703 further stores various programs and data necessary for the operation of electronic device 700. Processing unit 701, ROM 702, and RAM 703 are connected to one another via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.
[0085] Typically, input devices 706, such as a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., are connected to the I / O interface 705; output devices 707, such as a liquid crystal display (LCD), speaker, vibrator, etc., storage devices 708, such as a magnetic tape or hard disk, etc., and communication devices 709. The communication devices 709 may enable the electronic device 700 to communicate wirelessly or via wires with other devices to exchange data. While FIG. 7 illustrates the electronic device 700 with various devices, it should be understood that it is not necessary for the electronic device 700 to implement or include all of the devices shown. Alternatively, more or fewer devices may be implemented or included.
[0086] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, an embodiment of the present disclosure provides a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device 709, or may be installed from the storage device 708, or may be installed from the ROM 702. When the computer program is executed by the processing device 701, the functions defined in the method of the embodiment of the present disclosure are realized.
[0087] It should be noted that the computer-readable medium described in this disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above. For example, the computer-readable storage medium may be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. The computer-readable storage medium may be an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc-read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier, carrying computer-readable program code. Such propagated data signals may include electromagnetic signals, optical signals, etc., or any suitable combination of the above. A computer-readable signal medium may be any computer-readable storage medium other than a computer-readable storage medium that transmits, propagates, or transfers a program used by or in conjunction with an instruction execution system, apparatus, or device. The program code contained in a computer-readable storage medium may be transferred by any suitable medium, such as wire, fiber optic cable, radio frequency (RF), etc., or any suitable combination of the above.
[0088] In some embodiments, clients and servers may communicate using any now known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), or may interconnect with other forms or media of digital data communication (e.g., communications networks). Examples of communications networks include local area networks (LANs), wide area networks (WANs), internetworks (e.g., the Internet), and end-to-end networks (e.g., ad hoc networks), as well as networks now known or later developed.
[0089] The computer-readable medium may be included in the electronic device, or may be separate from the electronic device.
[0090] The computer-readable medium stores one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is caused to: in response to a trigger operation for guiding shooting using a target posture template, display the target posture template on top of a preview screen displayed on a shooting page; display shooting prompt information on the shooting page, wherein the target posture template is used to guide prompting for a shooting posture corresponding to a shooting subject; and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; and in response to a shooting command, control a camera to shoot the shooting subject.
[0091] Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages (such as Java, Smalltalk, C++, etc.) and traditional procedural programming languages (such as "C" or similar programming languages). The program code may run entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, such as a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., connected via the Internet using an Internet Service Provider).
[0092] The flowcharts and block diagrams in the accompanying drawings illustrate possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowcharts or block diagrams may represent a module, program segment, or portion of code, which includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions depicted in the boxes may occur in a different order than that depicted in the accompanying drawings. For example, two boxes depicted in succession may actually be executed substantially in parallel, or may be executed in the reverse order, depending on the functionality involved. It should also be noted that each box in the block diagrams and / or flowcharts, and combinations of boxes in the block diagrams and / or flowcharts, may be implemented in a dedicated hardware-based system that performs the specified function or operation, or in a combination of dedicated hardware and computer instructions.
[0093] The units described in the embodiments of the present disclosure may be implemented by software or hardware.
[0094] The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, exemplary hardware logic components that may be used include Field-Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs), Systems on Chips (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0095] In the context of this disclosure, a machine-readable medium may be a tangible medium that contains or stores a program used by or in combination with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. The machine-readable storage medium may include one or more wire-based electrical connections, a portable machine disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0096] According to one or more embodiments of the present disclosure, Example 1 provides a method of imaging, comprising: In response to a trigger operation for guiding shooting using a target posture template, displaying the target posture template on an upper layer of a preview screen displayed on a shooting page, and displaying shooting prompt information on the shooting page, wherein the target posture template is used to guide prompting for a shooting posture corresponding to a shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; and controlling the camera to photograph the subject in response to a photographing command.
[0097] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the trigger operation is a selection operation on a recommended pose photo corresponding to a target pose template, and the method includes: The method further includes the step of displaying a recommended posture list in response to a posture recommendation operation performed within a photography page, wherein the recommended posture list is used to display a recommended posture photo, the photography information of the recommended posture photo matches the target photography information of the photography subject when the template recommendation operation is received, and the target photography information includes at least one of posture information and photography environment information.
[0098] According to one or more embodiments of the present disclosure, Example 3 prompts the method of Example 2, and before displaying the list of recommended postures, The method further includes a step of determining target shooting information of a subject to be photographed when the template recommended operation is received, and acquiring a recommended posture photo in which the shooting information matches the target shooting information.
[0099] According to one or more embodiments of the present disclosure, Example 4 prompts the method of Example 2, and after displaying the recommended posture list, The method further includes a step of canceling the display of the recommended posture list and displaying photography prompt information on the photography page in response to a list closing operation when a target posture photograph is not selected.
[0100] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 1, wherein the trigger operation is a posture photo introduction operation, and before displaying the target posture template on an upper layer of a preview screen displayed on the photography page, The method further includes a step of obtaining an introduction posture photo corresponding to the posture photo introduction operation, and generating the target posture template based on the introduction posture photo.
[0101] According to one or more embodiments of the present disclosure, Example 6 provides the method of any one of Examples 1 to 5, wherein the shooting prompt information is generated based on key part scale information, and the key part scale information is key part scale information of the shooting object on the preview screen.
[0102] According to one or more embodiments of the present disclosure, Example 7 provides a method according to any one of Examples 1 to 5, The method further includes a step of controlling an auxiliary light in response to a trigger operation that guides photography using a target posture template, so as to provide assistance using light that corresponds to information about the photography environment of the subject.
[0103] According to one or more embodiments of the present disclosure, Example 8 provides the method of any one of Examples 1 to 5, further comprising, before controlling the camera to capture an image in response to the received image capture command, calculating a screen picture score of the current preview screen based on at least one of matching information between the current posture information of the subject and the target posture template and facial expression information of the subject, and generating a shooting command when the screen picture score is higher than a preset threshold; and generating a photography command when a photography operation acting within the photography page is received.
[0104] According to one or more embodiments of the present disclosure, Example 9 provides the method of any one of Examples 1 to 5, wherein the photographing command is an image capturing command, and after controlling the camera to capture an image, The method further includes the step of retouching the captured original image to obtain a target photograph, and storing the original image and the target photograph.
[0105] According to one or more embodiments of the present disclosure, Example 10 provides an imaging device, a template display module configured to display the target posture template on an upper layer of a preview screen displayed on a shooting page in response to a trigger operation for guiding shooting using a target posture template, and display shooting prompt information on the shooting page, wherein the target posture template is used to guide prompting for a shooting posture corresponding to a shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; and a photographing module configured to control a camera to photograph the subject in response to a photographing command.
[0106] According to one or more embodiments of the present disclosure, Example 11 provides an electronic device, a processor; a memory configured to store a program; When the program is executed by the processor, the processor realizes the imaging method according to any one of Examples 1 to 9.
[0107] According to one or more embodiments of the present disclosure, Example 12 provides a computer-readable storage medium storing a computer program, the program implementing the imaging method described in any one of Examples 1 to 9 when executed by a processor.
Claims
1. In response to a trigger operation for triggering a shooting guide using a target posture template, displaying the target posture template on an upper layer of a preview screen displayed on a shooting page, and displaying shooting prompt information on the shooting page, wherein the target posture template is used to prompt and guide a shooting posture corresponding to a shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; calculating a score for the current preview image based on at least information on the degree of coincidence between the current posture information of the subject and the target posture template; generating a capture command if the score is higher than a preset threshold; and controlling a camera to photograph the subject in response to the photographing command, the photographing prompt information is generated based on key part scale information, the key part scale information being key part scale information of the photographing target on the preview screen; The photography prompt information displayed on the photography page is updated according to the determined current key part scale information.
2. The trigger operation is a selection operation of a recommended posture photo corresponding to the target posture template, and the method includes:
2. The method of claim 1, further comprising the step of: displaying a recommended posture list in response to a posture recommendation operation performed within a photography page; wherein the recommended posture list is used to display a recommended posture photo, the photography information of the recommended posture photo matches target photography information of the photography subject when the posture recommendation operation is received, and the target photography information includes at least one of posture information and photography environment information.
3. Before displaying the list of recommended postures, the method further comprises: The method according to claim 2 , further comprising determining target shooting information of a photographing subject when the posture recommendation operation is received, and acquiring a recommended posture photo in which the shooting information matches the target shooting information.
4. After displaying the list of recommended postures, the method includes: The method according to claim 2 , further comprising the step of canceling display of the recommended pose list and displaying shooting prompt information on the shooting page in response to a list closing operation when a target pose photo is not selected.
5. The trigger operation is a posture photo introduction operation, and before the target posture template is displayed on the preview screen displayed on the photography page, the method includes: The method of claim 1 , further comprising obtaining an entry pose photo corresponding to the entry pose photo operation, and generating the target pose template based on the entry pose photo.
6. The method comprises: The method according to claim 1 , further comprising: controlling an auxiliary light in response to a trigger operation for triggering shooting guidance using a target posture template, so as to provide assistance using light corresponding to shooting environment information of the subject.
7. The step of calculating a score of the current preview screen based on at least the matching degree information includes: The method of claim 1 , further comprising calculating the score of the current preview screen based on the degree of match information and facial expression information of the subject.
8. The photographing command is an image capturing command, and after controlling the camera to capture an image, the method includes: The method of claim 1 , further comprising the steps of: retouching an original captured image to obtain a target photograph; and storing the original image and the target photograph.
9. a template display module configured to display the target posture template on an upper layer of a preview screen displayed on a shooting page in response to a trigger operation for triggering a shooting guide using a target posture template, and display shooting prompt information on the shooting page, wherein the target posture template is used to prompt and guide a shooting posture corresponding to a shooting object, and the shooting prompt information includes at least one of shooting angle prompt information and shooting distance prompt information; a command generation module configured to calculate a score of the current preview image based on at least current pose information of the subject and matching information between the target pose template and the current pose information of the subject, and generate a shooting command when the score is higher than a preset threshold; a photographing module configured to control a camera to photograph the subject in response to the photographing command; the photographing prompt information is generated based on key part scale information, the key part scale information being key part scale information of the photographing target on the preview screen; The photography prompt information displayed on the photography page is updated according to the determined current key part scale information.
10. a processor; a memory for storing a program; When the program is executed by the processor, the processor realizes the photographing method according to any one of claims 1 to 8.
11. A computer-readable storage medium storing a computer program, the computer program implementing the photographing method according to any one of claims 1 to 8 when executed by a processor.
Citation Information
Patent Citations
Imaging apparatus and imaging condition guidance method
JP2007259035A
Camera, communication control device, photography technical assistance system, photography technical assistance method, program
JP2008066886A
Imaging apparatus and imaging method
JP2012244249A
Picture seal creation device
JP2018197883A
Client terminal, display control method, program, and system
WO2014178228A1