Shooting method and device

By superimposing assisted shooting templates on the shooting preview interface, the problem of traditional shooting methods relying on user experience is solved, and the effect of improving shooting efficiency and effect is achieved.

CN120416655APending Publication Date: 2025-08-01BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510488332.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

Traditional shooting methods rely on users' experience and skills, resulting in low shooting efficiency and poor results, making it difficult to meet users' personalized needs.

Method used

By superimposing the auxiliary shooting template on the shooting preview interface, the auxiliary shooting template contains the outline of the photographing subject of the recommended shooting position, guiding the user to adjust the shooting position and composition to improve the shooting effect.

Benefits of technology

Improves shooting efficiency and effect, allowing users to conveniently and accurately capture satisfactory photos or videos at the recommended shooting location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120416655A_ABST
    Figure CN120416655A_ABST
Patent Text Reader

Abstract

The invention provides a shooting method and device. The shooting method comprises the steps that an auxiliary shooting template corresponding to the position of a recommended shooting machine position is determined, and the auxiliary shooting template comprises a shooting main body contour corresponding to the position; and in response to an operation instruction of a user, displaying the auxiliary shooting template on a shooting preview interface so as to guide the user to shoot. According to the method, the shooting efficiency and the shooting effect can be improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of shooting technology, and in particular, to a shooting method and device. Background Art

[0002] Currently, with the development of technology and the improvement of personalized needs, users' demand for shooting at special locations or positions (such as landmark buildings, natural landscapes, or memorial sites, etc.) is also increasing. However, traditional shooting solutions often rely on the experience and skill level of the shooter. Except for professional photography users, most users are limited by their shooting skills and it is difficult to take satisfactory photos or videos. Therefore, how to improve shooting efficiency and shooting effects to meet users' shooting needs is an urgent problem to be solved. Summary of the Invention

[0003] This application provides a shooting method and device, which can improve shooting efficiency and shooting effects.

[0004] In a first aspect, this application provides a shooting method, the method comprising:

[0005] Determine an auxiliary shooting template corresponding to the location of the recommended shooting position, where the auxiliary shooting template includes the outline of the photographic subject corresponding to the location;

[0006] In response to a user's operation instruction, display the auxiliary shooting template on the shooting preview interface to guide the user to shoot.

[0007] In a second aspect, this application provides a shooting device, the device comprising:

[0008] A processing module, configured to determine an auxiliary shooting template corresponding to the location of the recommended shooting position, where the auxiliary shooting template includes the outline of the photographic subject corresponding to the location;

[0009] A control module, configured to display the auxiliary shooting template on the shooting preview interface in response to a user's operation instruction to guide the user to shoot.

[0010] In a third aspect, this application provides an electronic device, comprising: a processor and a memory; the processor is communicatively connected to the memory;

[0011] The memory stores computer-executable instructions;

[0012] The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of the first aspect.

[0013] Fourthly, the present application provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the method according to any one of the first aspect when executed by a processor.

[0014] Fifthly, the present application provides a computer program product including a computer program, which implements the method according to any one of the first aspect when executed by a processor.

[0015] The shooting method and device provided by the present application obtain an auxiliary shooting template corresponding to the position where the recommended shooting position is located. The auxiliary shooting template includes the outline of the photographic subject corresponding to the position. Then, in response to the user's operation instruction, the auxiliary shooting template is displayed on the shooting preview interface to guide the user to shoot with reference to the auxiliary shooting template. This method can obtain the auxiliary shooting template corresponding to the position where the recommended shooting position is located, that is, it can provide the user with the recommended shooting position and the auxiliary shooting template corresponding to this position. Furthermore, by superimposing and displaying the auxiliary shooting template corresponding to the position where the recommended shooting position is located on the shooting preview screen, the user can more conveniently and accurately shoot the shooting effect corresponding to the auxiliary shooting template at the position where the recommended shooting position is located, thereby improving the shooting efficiency and shooting effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0017] Figure 1 It is a schematic flowchart of a shooting method provided by an embodiment of the present application;

[0018] Figure 2 It is a schematic diagram of the outline line of a photographic subject provided by an embodiment of the present application;

[0019] Figure 3 It is a schematic diagram of an interface provided by an embodiment of the present application;

[0020] Figure 4 It is another schematic diagram of an interface provided by an embodiment of the present application;

[0021] Figure 5 It is yet another schematic diagram of an interface provided by an embodiment of the present application;

[0022] Figure 6 It is a schematic flowchart of another shooting method provided by an embodiment of the present application;

[0023] Figure 7 A flowchart of another shooting method provided by an embodiment of the present application;

[0024] Figure 8 Another interface diagram provided by an embodiment of the present application;

[0025] Figure 9 A flowchart of another shooting method provided by an embodiment of the present application;

[0026] Figure 10 A flowchart of another shooting method provided by an embodiment of the present application;

[0027] Figure 11 A flowchart of another shooting method provided by an embodiment of the present application;

[0028] Figure 12 A structural diagram of a shooting device provided by an embodiment of the present application;

[0029] Figure 13 A structural diagram of an electronic device provided by an embodiment of the present application.

[0030] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners

[0031] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.

[0032] First, introduce the professional terms related to the present application:

[0033] Photography subject: refers to the object that is emphasized and highlighted in a photographic work and is the core content of the picture. For example, it can be a person, a building, a natural landscape, etc.

[0034] Skeletal Diagram: It refers to a graphical representation used to precisely indicate the outline of the photographic subject. The skeletal diagram uses a simple and abstract combination of lines to outline the general morphological framework of the photographic subject, similar to how the human skeletal structure supports and defines the body shape. It depicts the basic external shape features of the subject through key lines and nodes, providing clear shooting guidance for the photographer. The skeletal diagram can include key contour lines, pose feature points, and composition guiding lines of the photographic subject (such as people, buildings, natural landscapes), etc.

[0035] Currently, when users travel, they have a need to record their journey and often take pictures at tourist attractions, landmark buildings, etc. to obtain commemorative photos; or users go to locations with natural landscapes such as mountains, lakes, deserts, and grasslands to pursue unique natural landscape pictures; or users take pictures at popular check-in spots to fulfill the check-in requirement, etc. However, to achieve a better shooting effect, it mainly depends on the user's shooting ability and experience. If only shooting through traditional methods (such as directly using the built-in shooting function of a mobile phone or a camera), there are problems such as low shooting efficiency and poor shooting effect.

[0036] In view of this, the present application provides a shooting method. When a user takes a picture, an auxiliary shooting template including the outline of the photographic subject corresponding to the recommended shooting position is determined and superimposed and displayed on the shooting preview interface, so that the user can adjust the framing content by adjusting the shooting position, shooting composition, etc. through the auxiliary shooting template on the shooting preview interface, making the framing content conform to the outline of the photographic subject in the auxiliary shooting template, and accurately shooting a shooting effect similar to the auxiliary shooting template. This method superimposes and displays the auxiliary shooting template corresponding to the recommended shooting position on the shooting preview screen, enabling the user to more conveniently and accurately shoot a shooting effect corresponding to the auxiliary shooting template at the recommended shooting position, thereby improving the shooting efficiency and shooting effect.

[0037] Among them, the execution subject of the shooting method of the present application can be an electronic device with a shooting function, such as a smart phone, a tablet computer, a camera, a video camera, etc. Software or program code for running this shooting method can be deployed on this electronic device, and the auxiliary shooting template is provided for the user through the software or program code to guide the user to take pictures with the help of the auxiliary shooting template.

[0038] Next, the technical solution of the present application will be described in detail in combination with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0039] Figure 1Schematic flowchart of a shooting method provided by an embodiment of the present application. As Figure 1 shown, the method may include the following steps:

[0040] S101. Determine an auxiliary shooting template corresponding to the position of the recommended shooting position.

[0041] Among them, the auxiliary shooting template includes a photographic subject contour corresponding to the position. The photographic subject contour is used to guide the user to align the actual scene with the position of the corresponding photographic subject contour during shooting, so as to shoot a shooting effect that conforms to the auxiliary shooting template. Among them, the photographic subject contour can be, for example, a photographic subject contour line, or an image including the photographic subject contour (for example, it can be displayed with a specific transparency).

[0042] The photographic subject contour may include a background contour, which is used to guide the user to align the actual scene with the position of the corresponding background contour. The background contour is generated based on the landscape (such as buildings, natural landscapes, etc.) at the position of the recommended shooting position. The background contour can be, for example, a background contour line, or a transparent image including the contour of the landscape at the position of the recommended shooting position.

[0043] Optionally, the photographic subject contour may further include a human contour, which is used to guide the user to determine the position, pose, etc. of the person to be photographed based on the human contour during shooting, so as to shoot a person with the same pose and the same size as the human contour. The human contour can be, for example, a rectangular contour, a human-shaped contour, or any style that can be used to indicate the human contour. For example, the human contour can be a human contour line, or a transparent image including the human contour.

[0044] Exemplarily, taking the photographic subject contour as a photographic subject contour line as an example, the photographic subject contour line can be the skeleton diagram introduced above. Or, the photographic subject contour line can also be a contour line composed of point elements, or composed of a combination of various shape contours, etc. The present application does not limit the specific form of the photographic subject contour line, as long as it is a contour that can guide the user to shoot.

[0045] Exemplarily, taking the photographic subject contour line including a background contour line and a human contour line as an example, Figure 2 Schematic diagram of a photographic subject contour line provided by an embodiment of the present application. Figure 2 The photographic subject contour line in it is shown in the form of a skeleton diagram.

[0046] A possible implementation is to determine a pre-constructed auxiliary shooting template corresponding to the location of the recommended shooting position. For example, multiple reference images of preset recommended shooting positions can be obtained in advance. The reference image can be, for example, an image with good shooting effects, such as high-quality photos taken by professional photographers or high-quality photos with high network popularity. The corresponding outline of the photographed subject is extracted from the reference image (for example, the composition skeleton of the reference image can be extracted, and the corresponding outline of the photographed subject can be generated based on the composition skeleton), and the corresponding auxiliary shooting template is generated in advance. Then, the auxiliary shooting template corresponding to the location of the recommended shooting position is determined from these pre-constructed auxiliary shooting templates. Or, the reference image can be obtained first, and the corresponding outline of the photographed subject can be obtained based on each reference image. Then, based on the positions corresponding to each reference image, the association relationship between the position and the reference image is constructed. Based on the outline of the photographed subject corresponding to the reference image, the auxiliary shooting template corresponding to the position of the reference image is generated, etc. Specifically, the method of extracting the outline of the photographed subject from the reference image can be implemented by existing computer vision technologies (such as based on the open-source computer vision library OpenCV). This part of the content can refer to the existing technology and will not be elaborated here.

[0047] Another possible implementation is to instantaneously generate a corresponding auxiliary shooting template according to the viewfinder image at the location of the recommended shooting position and determine it as the auxiliary shooting template corresponding to the location of the recommended shooting position. For example, the viewfinder image at the location of the recommended shooting position can be obtained through a multi-modal sensor, and then the auxiliary shooting template is generated in real-time based on this viewfinder image.

[0048] It can be understood that the timing of obtaining the auxiliary shooting template corresponding to the location of the recommended shooting position can be: when the user arrives at the location of the recommended shooting position and clicks "Shoot the same style". It can also be: when the user arrives at the location of the recommended shooting position, selects the reference shooting image corresponding to this shooting position, and clicks "Shoot the same style". It can also be: after the user views multiple recommended reference shooting images and clicks to select a certain reference shooting image. Of course, it is not limited to this.

[0049] S102. In response to the user's operation instruction, display the auxiliary shooting template on the shooting preview interface to guide the user to shoot.

[0050] Among them, the user can trigger a control for starting the shooting function (such as a button control). The electronic device receives the operation instruction sent by triggering this control and starts the shooting function in this application, so that the electronic device displays a shooting preview interface including the auxiliary shooting template.

[0051] Optionally, when displaying the shooting preview interface, the auxiliary shooting template can be directly displayed on the shooting preview interface by default; alternatively, it can also be determined whether to directly display the auxiliary shooting template on the shooting preview interface based on the user's preset settings (for example, it is preset to display the auxiliary shooting template when the shooting preview interface is displayed); or, it can also be that after responding to the user's operation instruction, the shooting preview interface is first displayed, and then based on the user's operation instruction, the effect of displaying the auxiliary shooting template on the shooting preview interface is triggered, etc.

[0052] Exemplarily, Figure 3 is an interface schematic diagram provided by an embodiment of the present application. As Figure 3 shown, this interface is a shooting preview interface, and the shooting preview interface includes a viewfinder sub-interface, a reference image, and shooting controls. The auxiliary shooting template (i.e., the skeleton diagram in the figure) is superimposed and displayed in the viewfinder sub-interface. Among them, the reference image is used to show the user the expected shooting effect based on this auxiliary shooting template, and the shooting controls are used to trigger the execution of the shooting command.

[0053] Optionally, the interface may further include a shooting preview mode switching control, and the shooting preview mode switching control is used to switch the auxiliary shooting template. For example, it can be used for quick switching between multiple different auxiliary shooting templates (such as switching template 1 to template 2); or, the shooting preview mode switching control can be used to switch the auxiliary shooting template in the contour line assistance mode and the original image assistance mode (i.e., switching between the contour line assistance mode and the original image assistance mode of template 1), where the auxiliary shooting template in the original image assistance mode is obtained by processing the source image used to extract the contour line of the photographic subject, for example, it can be obtained by making the source image transparent.

[0054] Taking the shooting preview mode switching control for switching the auxiliary shooting template in the contour line assistance mode and the original image assistance mode as an example, in Figure 3 , the auxiliary shooting template in the contour line assistance mode is the auxiliary shooting template in the skeleton diagram mode, and the auxiliary shooting template in the original image assistance mode is the reference image with a specific transparency superimposed on the shooting preview interface. When the user operates the shooting preview mode switching control, it is possible to control which auxiliary shooting template in the contour line assistance mode is superimposed and displayed on the viewfinder sub-interface. Exemplarily, Figure 4 is another interface schematic diagram provided by an embodiment of the present application. As Figure 4 shown, this Figure 4 is a schematic diagram of the user switching to the auxiliary shooting template in the original image assistance mode through the shooting preview mode switching control.

[0055] After the auxiliary shooting template is displayed on the shooting preview interface, the user can observe the viewfinder screen of the shooting device (such as a camera) of the current electronic device through the shooting preview interface, and determine whether each shooting subject in the viewfinder screen coincides with the corresponding shooting subject in the auxiliary shooting template. If there is a deviation, the user can adjust the positions of the shooting subjects in the viewfinder screen based on the outline of the shooting subject in the auxiliary shooting template, so that the positions of the shooting subjects coincide exactly with the corresponding shooting subjects in the outline of the shooting subject. When the user takes a picture when the two completely overlap, a high-quality image corresponding to the auxiliary shooting template can be obtained.

[0056] The shooting method provided by this application determines an auxiliary shooting template corresponding to the position of the recommended shooting position. The auxiliary shooting template includes the outline of the shooting subject corresponding to the position. Then, in response to the user's operation instruction, the auxiliary shooting template is displayed on the shooting preview interface to guide the user to take pictures with reference to the auxiliary shooting template. By superimposing and displaying the auxiliary shooting template corresponding to the position of the recommended shooting position in the shooting preview screen, this method enables the user to more conveniently and accurately take pictures with the shooting effect corresponding to the auxiliary shooting template at the position of the recommended shooting position, thereby improving the shooting efficiency and shooting effect.

[0057] In one embodiment, if a pre-constructed auxiliary shooting template corresponding to the position of the recommended shooting position is obtained, a pre-constructed auxiliary shooting template corresponding to the position of the recommended shooting position can be directly recommended to the user; alternatively, multiple pre-constructed auxiliary shooting templates corresponding to the position can also be displayed, and then based on the user's selection, the auxiliary shooting template to be superimposed and displayed on the shooting preview interface is determined.

[0058] For example, a list of pre-constructed candidate auxiliary shooting templates corresponding to the recommended shooting position can be displayed, so that the user can select the auxiliary shooting template corresponding to the recommended shooting position from the list of candidate auxiliary shooting templates according to personal preferences and needs. Then, in response to the user's selection operation (selecting an auxiliary shooting template from the list of candidate auxiliary shooting templates), the auxiliary shooting template is obtained from the list of auxiliary shooting templates.

[0059] Exemplarily, Figure 5 Another schematic diagram of the interface provided by the embodiment of this application. As Figure 5As shown in the figure, the interface includes a list of candidate recommended shooting positions (i.e., the lower part of the figure), and a preview area of the recommended shooting position selected by the user (i.e., the upper part of the figure). In the list of candidate recommended shooting positions, there can be multiple candidate recommended shooting positions, the names of each candidate recommended shooting position, and the reference shooting pictures of each candidate recommended shooting position. In the preview area of the recommended shooting position selected by the user, there can be the name, address, and reference shooting picture of the recommended shooting position selected by the user. In addition, there is a control for activating the shooting function (i.e., "Shoot the same style"), and a navigation control (i.e., "Go to the position of the shooting point"). Among them, the navigation control is used to provide the user with a navigation function to reach the recommended shooting position. If the user clicks on the navigation control, the corresponding navigation interface can be displayed to guide the user to the specific location of the recommended shooting position.

[0060] Next, taking the example of instantaneously generating a corresponding auxiliary shooting template based on the viewfinder image of the location where the recommended shooting position is located, a detailed introduction will be given on how to obtain the auxiliary shooting template corresponding to the location where the recommended shooting position is located in the foregoing step S101. Figure 6 It is a schematic flowchart of another shooting method provided by an embodiment of the present application. As Figure 6 shown, the foregoing step S101 can specifically include:

[0061] S601. Obtain the viewfinder image corresponding to the position in the shooting preview interface.

[0062] In this step, for example, the viewfinder image corresponding to the location where the recommended shooting position is located can be obtained through multi-modal sensors (such as camera sensors, depth sensors, ambient light sensors, etc.) on the electronic device.

[0063] When obtaining the viewfinder image, different sensors can provide information from different angles to jointly construct a complete viewfinder image. For example, when the user takes a photo, the camera continuously collects the image data corresponding to the location where the recommended shooting position is located and displays it in the shooting preview interface; the depth sensor works in cooperation with the camera. When obtaining the viewfinder image, the depth sensor simultaneously collects the depth data of the scene to improve the accuracy of the viewfinder image when performing operations such as blurring the background; the ambient light sensor is used to measure the illumination intensity and color temperature of the surrounding environment. According to the information obtained by the ambient light sensor, the camera can automatically adjust exposure parameters such as aperture, shutter speed, and sensitivity to ensure that the brightness and color balance of the viewfinder image are appropriate. Through the data obtained by the above multi-modal sensors, the viewfinder image corresponding to the location where the recommended shooting position is located can be determined.

[0064] Alternatively, when the user is located at the location where the recommended shooting position is located and takes a photo, the image displayed in the shooting preview interface can be directly used as the corresponding viewfinder image.

[0065] S602. Generate an auxiliary shooting template according to the viewfinder image.

[0066] In this step, the main body detection and segmentation operations can be performed on the viewfinder image first. For example, appropriate threshold ranges can be set based on the gray values or color features of the viewfinder image. The part of the viewfinder image with pixel values within this threshold range is determined as the photography main body, and the rest is determined as the background, realizing the preliminary separation of the photography main body and the background. Alternatively, a pre-trained deep learning model (such as Mask R-CNN, U-Net, etc.) can also be used to realize the preliminary separation of the photography main body and the background.

[0067] Then, the contour of the photography main body obtained by preliminary separation is extracted. For example, the Canny edge detection algorithm can be used. Through steps such as Gaussian smoothing, gradient calculation, non-maximum suppression, and double-threshold processing, the edge information of the photography main body is detected. Then, based on the edge information of the photography main body, connection and grouping are performed to determine the contour of the photography main body, as well as the contour corresponding to the texture inside the photography main body, etc.

[0068] Finally, based on the contour of the photography main body and / or the contour corresponding to the texture inside the photography main body, etc., the corresponding auxiliary shooting template is generated.

[0069] Optionally, the following sub-steps can also be included in this step:

[0070] S6021. Generate an initial auxiliary shooting template according to the viewfinder image.

[0071] The method of generating the initial auxiliary shooting template according to the viewfinder image in this step is the same as the method of generating the auxiliary shooting template according to the viewfinder image in S602 above, and will not be elaborated here. The only difference between the two is that in this step, the template generated according to the viewfinder image needs to be further adjusted to improve the accuracy of the auxiliary shooting template generated according to the viewfinder image and the shooting effect of guiding the user to shoot the corresponding image by the auxiliary shooting template.

[0072] S6022. Adjust the initial auxiliary shooting template according to the existing auxiliary shooting templates corresponding to the position to generate an auxiliary shooting template.

[0073] In this step, one or more templates can be obtained from the existing auxiliary shooting templates related to this position, and the features of the one or more templates are extracted, such as extracting features such as the size of the one or more templates, the contour line of the photography main body, and the position of the contour line of the photography main body. Then, through a feature matching algorithm (such as using the SIFT or SURF algorithm based on feature points, or a correlation matching algorithm based on global features, etc.), the features of the initial auxiliary shooting template and the existing auxiliary shooting templates are matched to determine the similar feature points or feature regions between the two.

[0074] Based on the results of feature matching, adjust the features in the initial auxiliary shooting template according to the preset adjustment strategy. For example, if the existing auxiliary shooting template is better in composition features, such as the position of the photography subject is more in line with the golden ratio or has better symmetry, operations such as translation, scaling, and rotation can be performed on the initial auxiliary shooting template to optimize the composition; if the contour line of the photography subject in the existing auxiliary shooting template is clearer and more accurate, operations such as smoothing, thinning, or thickening the contour of the initial auxiliary shooting template can be performed, etc.

[0075] Optionally, corresponding weights can also be assigned to different adjustment strategies to determine the importance of each adjustment factor according to the shooting requirements and actual situations. Then, based on the weights corresponding to each adjustment strategy, fusion is performed, and then the initial auxiliary shooting template is adjusted based on the fused adjustment strategy.

[0076] In a possible implementation manner, it is also possible to generate adjustment suggestions for the initial auxiliary shooting template based on the existing auxiliary shooting template and the initial auxiliary shooting template corresponding to the position, and the adjustment suggestions are used to instruct the user to adjust the viewfinder screen. Then, based on the adjustment of the viewfinder screen by the user according to the adjustment suggestions, the adjusted viewfinder screen is obtained, and an auxiliary shooting template is generated based on the adjusted viewfinder screen.

[0077] Exemplarily, taking the example of shooting an ancient building in a scenic area. After the user starts the shooting function and enters the shooting preview interface, the viewfinder screen in the shooting preview interface is obtained, and an initial auxiliary shooting template is generated based on the viewfinder screen. In the initial auxiliary shooting template, due to reasons such as a poor angle of the viewfinder screen, problems such as a poor position of the contour line of the ancient building generated in the initial auxiliary shooting template and too many background elements may occur. At this time, the existing auxiliary shooting template corresponding to this position can be found from the database. These existing auxiliary shooting templates are generated based on the reference images of shooting the ancient building, such as reference images with the ancient building placed in the center, symmetric composition, and appropriate sky proportion. By comparing features such as the composition features, the position of the photography subject, and the clarity of the contour line of the photography subject in the existing auxiliary shooting template, suggestions for adjusting the initial auxiliary shooting template are generated, such as including moving the viewfinder screen to the lower right to center the photography subject (the ancient building), moving the viewfinder screen upward to increase the sky proportion, and zooming in to highlight the photography subject. After the user adjusts the viewfinder screen according to the adjustment suggestions, the adjusted viewfinder screen is obtained, and an auxiliary shooting template is regenerated in the same way to improve the guiding effect of the generated auxiliary shooting template.

[0078] The method provided in this application obtains the viewfinder image corresponding to the position of the recommended shooting position in the shooting preview interface, and generates an auxiliary shooting template corresponding to the position of the recommended shooting position in real time according to the viewfinder image, enabling the user to be unrestricted by the pre-constructed auxiliary shooting template corresponding to the position of the recommended shooting position. Even at the position of the recommended shooting position where there is no pre-constructed auxiliary shooting template, the corresponding auxiliary shooting template can be obtained, so that the user can receive shooting guidance assistance to guide the user to adjust the viewfinder image in real time, thereby improving the shooting quality, convenience and efficiency.

[0079] In a possible implementation manner, before determining the auxiliary shooting template corresponding to the position of the recommended shooting position, it is also possible to respond to the navigation instruction triggered by the user to go to the recommended shooting position and jump to the navigation interface. Among them, the navigation interface is used to guide the user to the recommended shooting position. For example, taking the navigation instruction triggered by the user operating the navigation control "Go to the camera position" shown in the foregoing Figure 5 as an example, the navigation destination can be determined to be the position of the recommended shooting position corresponding to the page where the navigation control is located according to the navigation instruction. Then, taking the position of the recommended shooting position as the navigation destination, jump to the navigation page for navigation to guide the user to go to the recommended shooting position according to the navigation page, thereby improving the convenience of guiding the user to the recommended shooting position and enhancing the user experience.

[0080] Optionally, before responding to the navigation instruction triggered by the user to go to the recommended shooting position and jumping to the navigation interface, it is also possible to display multiple reference shooting pictures recommended to the user, where one reference shooting picture corresponds to one recommended shooting position. Then, in response to the reference shooting picture selected by the user, determine the position of the recommended shooting position to be visited. Taking the following Figure 8 as an example, the reference shooting pictures recommended to the user are the images corresponding to camera position 1 and camera position 2 in Figure 8 . The user can select the camera position that the user hopes to go to by clicking on the reference shooting picture or the positions of camera position 1 and camera position 2, which is the recommended shooting position to be visited. According to the mapping relationship between the recommended shooting position and the position, the position of the recommended shooting position to be visited can be determined.

[0081] Optionally, in response to a user operation, a target map interface may be displayed. For example, in response to a user operation to open the map interface, a preset map interface is displayed as the target map interface (such as a map interface near the user's location). Alternatively, in response to a user operation of dragging or zooming the map interface, the geographical range corresponding to the map interface may be updated, and the map interface corresponding to the updated geographical range is used as the target map interface. Then, recommended shooting positions within the geographical range corresponding to the target map interface may be determined and recommended to the user, that is, based on the geographical range corresponding to the target map interface, it is determined which recommended shooting positions are included in this geographical range, and then these determined recommended shooting positions are recommended to the user.

[0082] Alternatively, recommended shooting positions near the user's location may be obtained based on the user's location. Figure 7 This is a schematic flowchart of another shooting method provided by an embodiment of the present application. As Figure 7 shown, before displaying multiple reference shooting pictures recommended to the user, this method may further include:

[0083] S701. Obtain the user's location.

[0084] In this step, the user's location may be obtained through the positioning function of the electronic device. For example, the current location of the electronic device may be obtained through a Global Navigation Satellite System (GNSS), such as the Global Positioning System, the BeiDou Navigation Satellite System (BDS), etc., and used as the user's location.

[0085] Exemplarily, after the user activates the shooting function, the electronic device activates the positioning function to obtain the user's location, and the application program with this shooting function obtains the user's location through the Application Programming Interface (API).

[0086] In one embodiment, the application program with this shooting function may be a map application, for example, and in this case, the user's location may be obtained according to the function of the map application itself to obtain the user's location.

[0087] S702. Obtain recommended shooting positions within a preset range centered on the user's location.

[0088] Among them, the preset range can be set according to actual requirements. For example, it can be a circular range centered on the user's location with a preset distance as the radius. The preset distance can be, for example, 1 km, 5 km, 10 km, etc., and the present application does not limit this. Alternatively, it can also be a map range (such as a rectangular range) that can be displayed in the map interface of the map application centered on the user's location. For example, the geographical range included in the map interface can be displayed according to a preset scale, and the user's location is at the center of this geographical range.

[0089] Exemplarily, Figure 8 is another interface schematic diagram provided by an embodiment of the present application. As Figure 8 shown, this interface includes: a map sub-interface and a list sub-interface. Among them, the map sub-interface includes a user identifier and nearby location identifiers. The user identifier is used to show the user's current location to the user. The nearby location identifiers are used to show nearby recommended shooting positions and the positions corresponding to the recommended shooting positions to the user. As Figure 8 shown, the corresponding position of the recommended shooting position can be indicated by a bubble identifier, and the bubble identifier can include the name of the position corresponding to the recommended shooting position and the distance between the position corresponding to the recommended shooting position and the user's current location. The user can click on the bubble identifier to obtain an auxiliary shooting template for the position corresponding to the recommended shooting position indicated by the bubble identifier, or a corresponding list of candidate auxiliary shooting templates.

[0090] The method provided by the embodiment of the present application determines recommended shooting positions within a preset range centered on the user's location by obtaining the user's location, enabling the user to determine recommended shooting positions near their own location and view auxiliary shooting templates corresponding to the locations of nearby recommended shooting positions, so as to recommend nearby recommended shooting positions to the user based on the user's actual needs and interests, thereby improving the user experience.

[0091] Optionally, after the auxiliary shooting template is displayed on the shooting preview interface, position prompt information for the best shooting position can also be superimposed and displayed on the shooting preview interface. This position prompt information is used to guide the user from the recommended shooting position to the best shooting position.

[0092] Among them, the best shooting position is the specific position of any shooting position within the area where the recommended shooting position is located that can obtain a good shooting effect. The best shooting position can be set according to actual requirements, and the present application does not limit this.

[0093] The position prompt information can be indicated, for example, by superimposing and displaying augmented reality (AR) elements, text, icons, arrows, etc. in the shooting preview interface. For example, if the user's position indicates that the user is located at the recommended shooting position, but it is not the optimal position of the recommended shooting position, the corresponding position prompt information can be generated according to the relative position relationship between the user's position and the optimal position and superimposed and displayed in the shooting preview interface, so that the user can move to the optimal position based on the position prompt information.

[0094] In the method provided in this embodiment, during the user's shooting process, the user's position can be directly adjusted to the optimal position according to the position prompt information displayed in the shooting preview interface, and there is no need to exit the shooting preview interface for navigation, thereby providing a more convenient guiding method for the user to move to the optimal position, enabling the user to further improve the shooting effect and user experience by shooting at the optimal position.

[0095] Based on the foregoing embodiments, the photographic subject contour line in the auxiliary shooting template includes the background contour line. In an alternative implementation, the photographic subject contour line in the auxiliary shooting template may further include the human contour line. When the human contour line is further included, that is, the photographic subject contour line in the auxiliary shooting template includes both the background contour line and the human contour line. In this case, the background contour line and the human contour line may be integrated in the photographic subject contour line, that is, the photographic subject contour line in an auxiliary shooting template is generated by the inseparable background contour line and human contour line; or, the background contour line and the human contour line may be deconstructed in the auxiliary shooting template, that is, the photographic subject contour line in an auxiliary shooting template is generated by the separable background contour line and human contour line. That is to say, in an auxiliary shooting template, it fixedly corresponds to a background contour line, but the human contour line can be replaced with other different human contour lines, and the different human contour line and the background contour line are used to form the photographic subject contour line of the auxiliary shooting template, that is, an auxiliary shooting template can correspond to multiple photographic subject contour lines.

[0096] Taking the example that the photographic subject contour line in the auxiliary shooting template is generated by the separable background contour line and human contour line Figure 9 is a schematic flowchart of another shooting method provided by the embodiments of the present application. As Figure 9 shown, before the auxiliary shooting template is displayed on the shooting preview interface, this method may further include:

[0097] S901. Display a list of candidate human contour lines.

[0098] Among them, the candidate human contour line list includes at least one candidate human contour line. For example, the candidate human contour lines included in the candidate human contour line list may all be pre-configured human contour lines corresponding to the positions of the recommended shooting positions corresponding to the auxiliary shooting template; or, they may also be human contour lines included in the auxiliary shooting templates of other recommended shooting positions, or other auxiliary shooting templates of the recommended shooting position, etc.

[0099] In this step, a control for opening or popping up the candidate human contour line list can be added to the shooting preview interface, and based on the user's operation of triggering this control, the candidate human contour line list is displayed; or, the candidate human contour line list can also be directly displayed after the user opens the shooting preview interface; or, it can also be based on the recognition of the position, posture, etc. of the person being photographed in the shooting preview interface, and a candidate human contour line list composed of human contour lines with similar positions, similar postures, etc. is determined according to the recognized position, posture, etc. of the person being photographed, etc.

[0100] Optionally, the candidate human contour lines included in the candidate human contour line list can also be updated in real time according to the environmental data at the position of the recommended shooting position. That is, when the environmental data at the position of the recommended shooting position is different, the candidate human contour lines included in the candidate human contour line list are different. Among them, the environmental data can include environmental wind speed, environmental temperature, light, etc. For example, when the environmental wind speed is greater than the preset wind speed threshold, the candidate human contour line corresponding to the single-leg standing posture may not be displayed in the candidate human contour line list to improve the safety of the person being photographed during shooting (for example, when the detected wind speed exceeds 5 m / s, some unstable postures may make it difficult for the person being photographed to maintain and present an uncoordinated posture in the picture. Therefore, the recommended posture template at this time should avoid such unstable postures and instead recommend some more stable and adaptable postures, such as sitting postures, squatting postures, etc.); when the environmental temperature is lower than the preset temperature threshold, the candidate human contour line corresponding to the sitting-on-the-ground posture may not be displayed in the candidate human contour line list; when the light indicates that the current light condition is poor (such as a strong light environment), the candidate human contour lines that can obtain better shooting effects under this light condition can be displayed in the candidate human contour line list (for example, to avoid obvious shadows on the face affecting the facial expression and overall effect of the person, candidate human contour lines of the person being photographed tilting the head slightly upward or sideways are provided to evenly illuminate the face with sunlight), etc.

[0101] Or, the candidate human contour lines included in the candidate human contour line list may not be updated, but when the user selects a non-recommended candidate human contour line determined according to the environmental data from the candidate human contour line list, a non-recommended prompt is output, thereby improving the safety of the user during shooting and enhancing the user experience.

[0102] S902. Obtain a person contour line from the candidate person contour line list in response to a user's selection operation.

[0103] In this step, according to the person contour line located in the candidate person contour line list indicated by the user's selection operation, it can be determined which person contour line will be combined with the background contour line in the auxiliary shooting template to generate the auxiliary shooting template finally displayed on the shooting preview interface.

[0104] The method provided by the embodiments of this application deconstructs the photography subject contour line in the auxiliary shooting template, enabling the background contour line and multiple person contour lines to be freely combined according to the user's preference, improving the degree of freedom of the auxiliary shooting template and enhancing the user experience. Moreover, by displaying the candidate person contour line list and obtaining the person contour line from the candidate person contour line list in response to the user's selection operation, the user can freely select the person contour line in the auxiliary shooting template according to their own preference and needs, thereby enhancing the degree of freedom of the user's shooting creation and improving the user experience while ensuring the shooting effect.

[0105] Figure 10 It is a schematic flowchart of another shooting method provided by the embodiments of this application. As Figure 10 shown, this method may further include:

[0106] S1001. Determine the deviation between the photography subject and the photography subject contour according to the photography subject contour on the shooting preview interface and the photography subject in the viewfinder.

[0107] In this implementation manner, the deviation between the photography subject and the photography subject contour can be monitored and processed through image recognition and analysis technologies. Among them, the camera of the shooting device can be used to capture the photography subject in the viewfinder in real time, and the contour of the photography subject can be recognized and analyzed based on computer vision algorithms and compared with the corresponding photography subject contour to determine the offset between the two.

[0108] For example, taking the photography subject as a person and the photography subject contour as a person contour line as an example, a deep learning model can be used to accurately locate the joint points of the human body (such as shoulders, elbows, wrists, hips, knees, ankles, etc.) to identify the key points of the human body. Based on the ideal position coordinates corresponding to these key points in the person contour line, the actual position of the person key points in the viewfinder is compared with the ideal position in the person contour line, and the position deviation of each key point in the horizontal and vertical directions is calculated to determine the deviation between the photography subject and the person contour line.

[0109] Correspondingly, when the photography subject is only a scene, a similar method can also be used to determine the deviation between the scene and the background contour.

[0110] S1002. If the deviation is greater than or equal to the preset deviation threshold, generate and output an adjustment prompt according to the deviation.

[0111] The adjustment prompt is used to prompt to adjust the viewfinder screen so that the deviation from the outline of the photographed subject is less than the preset deviation threshold.

[0112] According to the deviation between the photographed subject and the outline of the photographed subject obtained, and the preset deviation threshold set in advance, determine whether to output an adjustment prompt. When the deviation is greater than or equal to the preset deviation threshold, it indicates that the deviation between the photographed subject in the current viewfinder screen and the corresponding outline of the photographed subject is large. At this time, the effect of the captured image is poor, and an adjustment prompt needs to be output to prompt the user to adjust the viewfinder screen to obtain a better shooting effect.

[0113] Therefore, when the deviation is greater than or equal to the preset deviation threshold, the corresponding adjustment prompt can be generated by using the preset rules and algorithms.

[0114] For example, when the deviation information between the viewfinder screen and the outline of the photographed subject is detected as the offset of the person's position, one or more adjustment prompts such as a position offset indication line, a text prompt, a position adjustment indication arrow, and a voice prompt can be generated to indicate to adjust the person's position. For example, assuming that the shoulder joint connection line is detected to be offset, the user can be clearly informed of the direction and approximate distance to be adjusted by prompting "Move the shoulder left / right by [X] centimeters".

[0115] [[ID=IS]]When the deviation information between the viewfinder screen and the outline of the photographed subject is detected as the zoom offset, one or more adjustment prompts such as a virtual gesture corresponding to the zoom offset, a text prompt, and a voice prompt can be generated to indicate to adjust the zoom parameter in the shooting parameters.

[0116] The adjustment prompt can be displayed in the shooting preview interface in an intuitive and easy-to-understand manner. For example, taking the offset of the person's position as an example, it can be in the form of a text annotation, and the prompt information can be directly displayed next to the corresponding body part; or, it can be combined with graphical indications, such as using an arrow to indicate the moving direction of the body part and an arc to represent the adjustment direction of the angle, so that the user can more clearly understand how to adjust the viewfinder screen to make the deviation between the photographed subject in the viewfinder screen and the outline of the photographed subject less than the preset deviation threshold.

[0117] The method provided by the embodiment of the present application determines the deviation between the photographed subject and the outline of the photographed subject according to the outline of the photographed subject on the shooting preview interface and the photographed subject in the viewfinder. If the deviation is greater than or equal to the preset deviation threshold, an adjustment prompt is generated and output according to the deviation to clearly prompt the user that there is a deviation between the current viewfinder and the auxiliary shooting template, and what kind of deviation specifically exists, so that the user can conveniently and quickly adjust the shooting behavior based on the adjustment prompt, thereby further improving the shooting effect and efficiency of the user.

[0118] Optionally, a light and shadow effect adjustment prompt can also be provided according to the light and shadow effect deviation between the viewfinder and the auxiliary shooting template. For example, when a light and shadow effect deviation is detected between the viewfinder and the auxiliary shooting template, assuming that the current is a backlight scene and the auxiliary shooting template is not a backlight scene, an adjustment instruction corresponding to the light and shadow effect deviation can be generated. For example, an adjustment instruction corresponding to the light and shadow effect deviation can be generated through one or more of an indication arrow, a text prompt, a voice prompt, etc., to indicate the adjustment of the light and shadow effect in the shooting scene (for example, a ground projection arrow of "move two steps to the left" can be generated in the shooting preview interface to prompt the photographer to adjust the position of the photographed person to avoid the backlight scene, or prompt the user to adjust the light and shadow parameters in the shooting settings, etc.), so that the shooting result has a better light and shadow effect and further improves the shooting effect.

[0119] In a possible implementation manner, when displaying the auxiliary shooting template, a target filter can also be superimposed for display. The target filter is related to the filter reference information of the position, and the target filter is used to adjust at least one of the color temperature parameter, the contrast parameter, and the light and shadow simulation parameter. The filter reference information includes at least one of environmental data and time data. The environmental data includes at least one of season data, weather data, and light data.

[0120] Among them, the season data can include, for example, spring, summer, autumn, and winter. The weather data can include, for example, sunny, rainy, cloudy, foggy, etc. The light data can include, for example, light intensity, light direction, etc. Different environmental factors will have different effects on shooting, and thus affect the selection of filter parameters. The time data is the specific time information including the current moment. At different time periods (such as morning, noon, and dusk), the light characteristics are different, which will affect the color and light and shadow performance of the image, and thus affect the selection of filter parameters.

[0121] Exemplarily, the following is an exemplary introduction to this implementation manner through a combination example of the following filter reference information and filter parameters:

[0122] Regarding the association between seasonal data and filter parameters, for example, in spring, the color temperature offset value can be set to +50K to make the picture color warmer, presenting a vibrant feeling of spring. The contrast can be reduced by 10% to create a soft and fresh atmosphere. For the light and shadow simulation parameters, a faint green halo can be selected to enhance the color characteristics of spring. For autumn, the color temperature offset value can be set to +100K to enhance the warm tone and highlight the golden color of autumn. The contrast can be increased by 15% to make the picture color more vivid, showing the rich color levels of autumn. For the light and shadow simulation parameters, a golden light and shadow effect can be superimposed to strengthen the autumn atmosphere.

[0123] Regarding the association between weather data and filter parameters, for example, on a sunny day, the color temperature offset value can remain unchanged or be slightly adjusted by -20K to make the picture color more natural and vivid. The contrast can be increased by 20% to highlight the details of the blue sky, white clouds, and bright objects. For the light and shadow simulation parameters, a slight high - light effect can be added to simulate the bright feeling of direct sunlight. For example, on a snowy day, the color temperature offset value can be set to +150K to make the picture warmer and avoid the color of the snow being too cold. The contrast can be reduced by 15% to create a soft snow - scene atmosphere. For the light and shadow simulation parameters, a white scattered light and shadow can be added to simulate the reflection effect of snowflakes.

[0124] Regarding the association between light data and filter parameters, for example, in a strong - light environment, the color temperature offset value can be set to -80K to make the picture color cooler and avoid an overly warm tone. The contrast can be reduced by 25% to prevent the overly bright part of the picture from being too dazzling. For the light and shadow simulation parameters, the light and shadow effect of the high - light part can be reduced to avoid over - exposure. For example, in a low - light environment, the color temperature offset value can be set to +80K to make the picture color warmer and increase the sense of warmth. The contrast can be increased by 30% to enhance the layering of the picture. For the light and shadow simulation parameters, a warm yellow halo can be added to create a soft light effect.

[0125] Regarding the association between time data and filter parameters, for example, if it is determined that the current time is dusk based on the time data, the color temperature offset value can be set to +200K to highlight the warm golden light of dusk. The contrast can be increased by 20% to make the sky color more vivid. For the light and shadow simulation parameters, an obvious golden halo can be superimposed to strengthen the unique light and shadow effect of dusk.

[0126] It should be understood that the above is only illustrated by some examples. The present application does not make specific limitations on the adjustable parameters of the target filter, the number and type of data items in the filter reference information, and they can be freely combined according to actual needs.

[0127] The method of the embodiment of the present application can automatically generate a rich variety of filter effects according to various shooting scenes and time conditions through the flexible combination of different data and filter parameters, meeting the shooting needs of users in different situations and improving the effect of shooting works.

[0128] Figure 11 This is a schematic flowchart of yet another shooting method provided by an embodiment of the present application. As Figure 11 shown, when the outline of the photography subject includes the outline of a person, after displaying the auxiliary shooting template on the shooting preview interface, this method may further include:

[0129] S1101. Obtain the target image uploaded by the user.

[0130] Among them, the target image includes the target person. In this step, in response to the user's upload operation, at least one target image including the target person uploaded by the user can be obtained, such as a person photo taken by the user in the past, or an instantaneously taken person photo, etc.

[0131] S1102. Generate a three-dimensional virtual image of the target person according to the target image and the outline of the target person on the shooting preview interface.

[0132] Among them, the posture of the three-dimensional virtual image conforms to the outline of the target person.

[0133] In this step, a three-dimensional virtual image corresponding to the target person included in the target image can be generated through an artificial intelligence model. Among them, the body shape, clothing, etc. of the three-dimensional virtual image can be adjusted according to user needs. Among them, how to specifically generate a three-dimensional virtual image according to the target image including the target person can refer to the prior art, and the present application will not elaborate on this.

[0134] Then, based on the user's selection, or according to the outline of the person included in the auxiliary shooting template corresponding to the position of the recommended shooting position, the outline of the target person can be determined. Based on the posture of the outline of the target person, the posture of the three-dimensional virtual image is determined to bind the three-dimensional virtual image to the outline of the target person.

[0135] For example, taking the outline of the target person as the target task contour line, the outline of the target person can be analyzed by image analysis technology to identify the line trends, angle changes, and key node positions of each part of the body in the outline of the target person, and the posture information contained therein is extracted. Then, according to the extracted posture information, the posture information is used as the posture constraint of the three-dimensional virtual image, so as to associate the three-dimensional virtual image with the outline of the target person, so that the posture of the three-dimensional virtual image conforms to the outline of the target person.

[0136] If the outline of the target person is an image-based outline, the corresponding outline line of the target person can be extracted according to the outline of the target person, and then the outline line of the target person is bound to the three-dimensional virtual image.

[0137] S1103. Display the three-dimensional virtual image instead of the outline of the target person in the shooting preview interface.

[0138] Render and generate a three-dimensional virtual image corresponding to the pose of the target person's contour in the shooting preview interface, and display the three-dimensional virtual image at the position of the target person's contour in the shooting preview interface to cover the target person's contour in the shooting preview interface, or directly block or remove the target person's contour in the shooting preview interface, so as to display the three-dimensional virtual image instead of the target person's contour in the shooting preview interface.

[0139] The method provided by the embodiments of the present application generates a three-dimensional virtual image of the target person by obtaining a target image including the target task uploaded by the user, according to the target image and the target person's contour on the shooting preview interface, and displays the three-dimensional virtual image instead of the target person's contour in the shooting preview interface, so that the user can shoot and generate a shooting work including the three-dimensional virtual image based on the auxiliary shooting template, thereby improving the fun of shooting and further enhancing the user experience.

[0140] Figure 12 It is a schematic structural diagram of a shooting device provided by the embodiments of the present application. As Figure 12 shown, the device may include: a processing module 11, a control module 12. In a possible implementation manner, it may further include: an acquisition module 13.

[0141] The processing module 11 is configured to determine an auxiliary shooting template corresponding to the position of the recommended shooting position, and the auxiliary shooting template includes the contour of the photographic subject corresponding to the position.

[0142] The control module 12 is configured to display the auxiliary shooting template on the shooting preview interface in response to a user's operation instruction to guide the user to shoot.

[0143] Optionally, the shooting preview interface includes a shooting preview mode switching control, and the shooting preview mode switching control is used to switch the auxiliary shooting template.

[0144] Optionally, the shooting preview mode switching control is used to switch the auxiliary shooting template in the contour line assistance mode and the auxiliary shooting template in the original image assistance mode. Among them, the auxiliary shooting template in the original image assistance mode is obtained by processing the source image used to extract the contour line of the photographic subject.

[0145] Optionally, the acquisition module 13 is configured to acquire the viewfinder image corresponding to the position in the shooting preview interface. The processing module 11 is specifically configured to generate an auxiliary shooting template according to the viewfinder image.

[0146] Optionally, the processing module 11 is specifically configured to generate an initial auxiliary shooting template according to the viewfinder image. Adjust the initial auxiliary shooting template according to the existing auxiliary shooting template corresponding to the position to generate the auxiliary shooting template.

[0147] Optionally, the processing module 11 is specifically configured to generate adjustment suggestions for the initial auxiliary shooting template according to the existing auxiliary shooting templates corresponding to the positions, and the adjustment suggestions are used to instruct the user to adjust the viewfinder screen. Based on the viewfinder screen adjusted by the user, an auxiliary shooting template is generated.

[0148] Optionally, before the processing module 11 determines the auxiliary shooting template corresponding to the position where the recommended shooting position is located, the control module 12 is further configured to respond to a navigation instruction triggered by the user to go to the recommended shooting position, and jump to a navigation interface, where the navigation interface is used to guide the user to the recommended shooting position.

[0149] Optionally, before jumping to the navigation interface in response to a navigation instruction triggered by the user to go to the recommended shooting position, the control module 12 is further configured to display multiple reference shooting pictures recommended to the user, where one reference shooting picture corresponds to one recommended shooting position. The processing module 11 is further configured to determine the position of the recommended shooting position to be visited in response to the reference shooting picture selected by the user.

[0150] Optionally, before displaying multiple reference shooting pictures recommended to the user, the control module 12 is further configured to respond to the operation of the user and display a target map interface. Determine and recommend the recommended shooting positions within the geographical range corresponding to the target map interface.

[0151] Optionally, before the control module 12 displays multiple reference shooting pictures recommended to the user, the acquisition module 13 is further configured to acquire the user's location. Acquire the recommended shooting positions within a preset range centered on the user's location.

[0152] Optionally, after the control module 12 displays the auxiliary shooting template on the shooting preview interface, it is further configured to superimpose and display the position prompt information of the best shooting position in the shooting preview interface, where the position prompt information is used to guide the user from the recommended shooting position to the best shooting position.

[0153] Optionally, the outline of the photographic subject includes a background outline line, and the background outline line is generated based on the landscape at the position.

[0154] Optionally, when the outline of the photographic subject further includes a human outline line, before the control module 12 displays the auxiliary shooting template on the shooting preview interface, it is further configured to display a list of candidate human outline lines. The processing module 11 is further configured to obtain the human outline line from the list of candidate human outline lines in response to the user's selection operation.

[0155] Optionally, when the environmental data of the position is different, the list of candidate human outline lines included is different.

[0156] Optionally, after the control module 12 displays the auxiliary shooting template on the shooting preview interface, the processing module 11 is further configured to determine the deviation between the photographed subject and the outline of the photographed subject according to the outline of the photographed subject on the shooting preview interface and the photographed subject in the viewfinder screen. The control module 12 is further configured to generate and output an adjustment prompt according to the deviation if the deviation is greater than or equal to a preset deviation threshold, and the adjustment prompt is used to prompt to adjust the viewfinder screen so that the deviation from the outline of the photographed subject is less than the preset deviation threshold.

[0157] Optionally, the control module 12 is further configured to superimpose a target filter for display when displaying the auxiliary shooting template, and the target filter is related to the filter reference information of the position.

[0158] Optionally, when the outline of the photographed subject includes a human outline, after the control module 12 displays the auxiliary shooting template on the shooting preview interface, the acquisition module 13 is further configured to acquire a target image uploaded by the user, and the target image includes a target person. The processing module 11 is further configured to generate a three-dimensional virtual image of the target person according to the target image and the outline of the target person on the shooting preview interface, and the posture of the three-dimensional virtual image conforms to the outline of the target person. The control module 12 is further configured to display the three-dimensional virtual image instead of the outline of the target person in the shooting preview interface.

[0159] The shooting device provided by the embodiment of the present application can execute the shooting method in the above method embodiment, and its implementation principle and technical effect are similar, and will not be described in detail here.

[0160] Figure 13 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Among them, the electronic device can be used to execute the shooting method described above. As Figure 13 shown, the electronic device 1300 may include: at least one processor 1301 and a memory 1302. In a possible implementation manner, a communication interface 1303 may further be included.

[0161] The memory 1302 is used to store a program. Specifically, the program may include program code, and the program code includes computer operation instructions.

[0162] The memory 1302 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0163] The processor 1301 is configured to execute the computer-executable instructions stored in the memory 1302 to implement the methods described in the foregoing method embodiments. Among them, the processor 1301 may be a CPU, or a specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0164] The processor 1301 can communicate with external devices through the communication interface 1303. The external devices can be, for example, servers of map applications, etc. In specific implementations, if the communication interface 1303, the memory 1302, and the processor 1301 are implemented independently, the communication interface 1303, the memory 1302, and the processor 1301 can be interconnected through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0165] Optionally, in specific implementations, if the communication interface 1303, the memory 1302, and the processor 1301 are implemented on a single chip, the communication interface 1303, the memory 1302, and the processor 1301 can complete communication through an internal interface.

[0166] The present application also provides a computer-readable storage medium, which may include: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs, etc., that can store program codes. Specifically, the computer-readable storage medium stores program instructions for the methods in the foregoing embodiments.

[0167] The present application also provides a program product, which includes execution instructions stored in a readable storage medium. At least one processor of the electronic device can read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions to enable the electronic device to implement the shooting methods provided by the above various embodiments.

[0168] As used herein, the term "a plurality of" means two or more. The term "and / or" herein merely describes an association relationship between associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after; in a formula, the character " / " represents a "division" relationship between the associated objects before and after. In addition, it should be understood that in the description of the present application, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0169] It can be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A shooting method, characterized in that, The method includes: Determine an auxiliary shooting template corresponding to the position of the recommended shooting position, where the auxiliary shooting template includes the outline of the photographic subject corresponding to the position; In response to a user's operation instruction, display the auxiliary shooting template on the shooting preview interface to guide the user to take a photo.

2. The method according to claim 1, characterized in that The shooting preview interface includes a shooting preview mode switching control for switching the auxiliary shooting template.

3. The method according to claim 2, wherein The shooting preview mode switching control for switching the auxiliary shooting template includes: The shooting preview mode switching control is used to switch the auxiliary shooting template in the contour line assistance mode and the auxiliary shooting template in the original image assistance mode; wherein, the auxiliary shooting template in the original image assistance mode is obtained by processing the source image used to extract the outline of the photographic subject.

4. The method according to claim 1, characterized in that, The determining the auxiliary shooting template corresponding to the position of the recommended shooting position includes: Obtain the viewfinder image corresponding to the position in the shooting preview interface; Generate the auxiliary shooting template according to the viewfinder image.

5. The method according to claim 3, wherein The generating the auxiliary shooting template according to the viewfinder image includes: Generate an initial auxiliary shooting template according to the viewfinder image; Adjust the initial auxiliary shooting template according to the existing auxiliary shooting template corresponding to the position to generate the auxiliary shooting template.

6. The method according to claim 5, wherein The adjusting the initial auxiliary shooting template according to the existing auxiliary shooting template corresponding to the position to generate the auxiliary shooting template includes: Generate an adjustment suggestion for the initial auxiliary shooting template according to the existing auxiliary shooting template corresponding to the position, and the adjustment suggestion is used to instruct the user to adjust the viewfinder image; Generate the auxiliary shooting template based on the viewfinder image adjusted by the user.

7. The method according to claim 1, characterized in that Before the determining the auxiliary shooting template corresponding to the position of the recommended shooting position, it further includes: In response to a navigation instruction triggered by the user to go to the recommended shooting position, jump to a navigation interface, and the navigation interface is used to guide the user to go to the recommended shooting position.

8. The method according to claim 7, characterized in that, Before the responding to the navigation instruction triggered by the user to go to the recommended shooting position and jumping to the navigation interface, it further includes: Display multiple reference shooting pictures recommended to the user, where one reference shooting picture corresponds to one recommended shooting position; In response to the reference shooting picture selected by the user, determine the position of the recommended shooting position to be visited.

9. The method according to claim 8, wherein Before the displaying multiple reference shooting pictures recommended to the user, it further includes: In response to the user's operation, display a target map interface; Determine and recommend the recommended shooting positions in the geographical range corresponding to the target map interface.

10. The method according to claim 8, wherein Before the displaying multiple reference shooting pictures recommended to the user, it further includes: Obtain the user's location; Obtain the recommended shooting positions within a preset range centered on the user's location.

11. The method according to claim 1, characterized in that, After the displaying the auxiliary shooting template on the shooting preview interface, it further includes: Overlay and display the position prompt information of the best shooting position in the shooting preview interface, and the position prompt information is used to guide the user to reach the best shooting position from the recommended shooting position.

12. The method according to claim 1, characterized in that, The outline of the photographed subject includes a background outline, and the background outline is generated based on the landscape at the position.

13. The method according to claim 12, wherein The outline of the photographed subject further includes a human outline. Before displaying the auxiliary shooting template on the shooting preview interface, the method further includes: displaying a list of candidate human outlines; obtaining the human outline from the list of candidate human outlines in response to the user's selection operation.

14. The method according to claim 13, wherein When the environmental data at the position is different, the candidate human outlines included in the list of candidate human outlines are different.

15. The method according to claim 1, characterized in that, After displaying the auxiliary shooting template on the shooting preview interface, it further includes: determining the deviation between the photographed subject and the outline of the photographed subject according to the outline of the photographed subject on the shooting preview interface and the photographed subject in the viewfinder; if the deviation is greater than or equal to a preset deviation threshold, generating and outputting an adjustment prompt according to the deviation, and the adjustment prompt is used to prompt to adjust the viewfinder so that the deviation from the outline of the photographed subject is less than the preset deviation threshold.

16. The method according to any one of claims 1 to 14, characterized in that, The method further includes: when displaying the auxiliary shooting template, superimposing and displaying a target filter, and the target filter is related to the filter reference information at the position.

17. The method according to any one of claims 1-14, characterized in that, When the outline of the photographed subject includes a human outline, after displaying the auxiliary shooting template on the shooting preview interface, the method further includes: obtaining a target image uploaded by the user, and the target image includes a target person; generating a three-dimensional virtual image of the target person according to the target image and the outline of the target person on the shooting preview interface, and the posture of the three-dimensional virtual image conforms to the outline of the target person; displaying the three-dimensional virtual image instead of the outline of the target person in the shooting preview interface.

18. A photographing device, characterized in that, The device includes: a processing module, configured to determine an auxiliary shooting template corresponding to the position of the recommended shooting position, and the auxiliary shooting template includes an outline of the photographed subject corresponding to the position; a control module, configured to display the auxiliary shooting template on the shooting preview interface in response to a user's operation instruction to guide the user to shoot.

Citation Information

Cited By

  • Media content shooting method and device, equipment and storage medium

    CN121462876A