CN116782022A - Shooting method, shooting device, electronic equipment and readable storage medium - Google Patents

Shooting method, shooting device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116782022A
CN116782022A CN202310786135.4A CN202310786135A CN116782022A CN 116782022 A CN116782022 A CN 116782022A CN 202310786135 A CN202310786135 A CN 202310786135A CN 116782022 A CN116782022 A CN 116782022A
Authority
CN
China
Prior art keywords
image
shooting
reference image
preview
photographing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310786135.4A
Other languages
Chinese (zh)
Inventor
王勇威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310786135.4A priority Critical patent/CN116782022A/en
Publication of CN116782022A publication Critical patent/CN116782022A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a readable storage medium, and belongs to the technical field of shooting. Comprising the following steps: displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode; obtaining a target image based on a shooting preview interface; wherein the target image comprises at least one of: shooting a shooting image corresponding to the preview image, and splicing the shooting image and a reference image; the target image is obtained in a case where the degree of matching between the photographed preview image and the reference image satisfies the photographing condition.

Description

Shooting method, shooting device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of shooting, and particularly relates to a shooting method, a shooting device, electronic equipment and a readable storage medium.
Background
With the continuous development of technology, more and more people begin recording life by taking pictures. In the process of shooting photos, a user can take photos in various ways, for example, the user can refer to contents in other images to shoot photos matched with the other images, so that the interestingness and expressive force of the photos are improved.
In the related art, in order to take a photo by referring to other images, a user generally needs to determine an image to be referred to, memorize the image by observing the image, then turn on the camera, adjust the shooting direction by memorizing, compare the taken photo with the image after the shooting is completed, and if the taken photo is inconsistent, need to take the photo again, and finally obtain the required photo by continuously repeating the above processes.
However, multiple shots are often required to obtain a satisfactory picture of the user, resulting in inefficiency in taking similar images.
Disclosure of Invention
An object of an embodiment of the application is to provide a shooting method, a shooting device, an electronic device and a readable storage medium, which can improve the efficiency of shooting similar images.
In a first aspect, an embodiment of the present application provides a photographing method, including:
displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode;
obtaining a target image based on the shooting preview interface;
wherein the target image comprises at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the display module is used for displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode;
the acquisition module is used for acquiring a target image based on the shooting preview interface; wherein the target image comprises at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
The embodiment of the application comprises the steps of displaying a shooting preview interface, wherein the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superimposed mode, acquiring a target image based on the shooting preview interface, and acquiring the target image under the condition that the matching degree between the shooting preview image and the reference image meets shooting conditions, wherein the target image comprises at least one of the following components: shooting a shooting image corresponding to the preview image, and stitching the shooting image and a reference image. Because the reference image and the shooting preview image are displayed in a superimposed manner on the shooting preview interface, a user can adjust shooting based on the difference between the shooting preview image and the reference image, and shooting is performed under the condition that the matching degree between the shooting preview image and the reference image meets the shooting condition, so that the efficiency of shooting similar images is improved.
Drawings
Fig. 1 is a flowchart of steps of a photographing method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating steps of another photographing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an overlay display according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another superimposed display provided by an embodiment of the present application;
FIG. 5 is a flowchart illustrating steps of a photographing method according to an embodiment of the present application;
FIG. 6 is a schematic illustration of a display provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a stitched image according to an embodiment of the present application;
fig. 8 is a block diagram of a photographing apparatus according to an embodiment of the present application;
FIG. 9 is an electronic device provided by an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or at least two. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The shooting method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 shows a flowchart of steps of a shooting method provided by an embodiment of the present application, which is applied to an electronic device, as shown in fig. 1, and specifically includes the following steps:
step 101, displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superimposed mode.
In an embodiment of the present application, the reference image may include any image stored locally on the electronic device and an image obtained through a network, for example, a photograph of a landmark building taken by the user 10 years ago, a landscape image downloaded by the user from the network, and so on. Determining a reference image by receiving a selection operation on any picture in the album, for example, a user can press a picture long in the album, activate a menu list for the picture, and select a "as reference picture" option in the menu list, thereby determining the picture as the reference image; the determination method of the reference image in the embodiment of the application is not particularly limited.
The shooting preview image represents a picture acquired in real time through a camera carried by the electronic equipment, wherein the camera can be a camera carried on the body of the electronic equipment, such as a front camera, a rear camera and the like of the electronic equipment; or may be independent of a camera of an external device of the electronic device, such as a camera of a digital camera connected to the electronic device by wire or wirelessly.
In the embodiment of the application, when a user shoots, a shooting preview interface can be displayed, and the reference image and the shooting preview image are displayed in a superimposed manner in the shooting preview interface, so that the user can shoot a photo based on the reference image. For example, the user may turn on the reference photographing function and select the reference image, and then view the reference image through the camera, displaying a photographing preview interface on the screen of the electronic device, the photographing preview interface being superimposed with the reference image and the photographing preview image.
Further, the reference image may be an image directly selected by the user, or an image obtained by adjusting the selected image by the user. For example, a user may select an image as an original image, receive an adjustment operation of the user with respect to the original image, and adjust the original image based on the adjustment operation to obtain a reference image; wherein the adjustment operation may include, but is not limited to, at least one of a cropping operation, a toning operation, a rotation operation, a scaling operation.
And 102, obtaining a target image based on the shooting preview interface.
In an embodiment of the present application, the target image includes at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
In the embodiment of the application, the target image may include a photographed image corresponding to the photographed preview image. The matching operation can be performed on the reference image and the shooting preview image according to preset shooting conditions, the matching degree between the shooting preview image and the reference image is determined, and when the matching degree between the shooting preview image and the reference image meets the shooting conditions, the shooting operation is performed, so that the shooting image corresponding to the current shooting preview picture is obtained. It should be noted that, since the shot preview image is updated in real time, the above matching process may be continuously performed in real time.
The target image may also include a stitched image of the captured image and the reference image. Specifically, the matching operation can be performed on the reference image and the shot preview image according to preset shooting conditions, the matching degree between the shot preview image and the reference image is determined, when the matching degree between the shot preview image and the reference image meets the shooting conditions, the shooting operation is performed, the shooting image corresponding to the current shot preview image is obtained, the shooting image and the reference image are subjected to the stitching operation, and the obtained stitched image is used as the target image.
Different shooting conditions can be set according to the reference shooting function to be realized. Specifically, the shooting condition may include that the matching degree of the reference image and the shot preview image is greater than or equal to a first threshold value, so that the shot scene in the reference image can be repeated with reference to the shot reference image, and a target image which is different in shooting time from the reference image and identical in shot scene is obtained; the photographing condition may further include that a degree of partial matching between the reference image and the photographing preview image is greater than or equal to a second threshold value, so as to determine whether the reference image and the photographing preview image have the same object, so that the same object (for example, a bird) appearing in the current photographing preview image may be captured and photographed with reference to the object in the reference image; the shooting condition can further comprise that the action matching degree of the person in the reference image and the shooting preview image is larger than or equal to a third threshold value, so that the action of the person in the reference image can be referred, and when the person in the current shooting preview image swings out the same action, the shooting is timely performed, so that a target image consistent with the action of the person in the reference image is obtained. In addition, the shooting conditions may be set according to other functions that need to be implemented, and the embodiment of the present application is not limited specifically herein.
In the embodiment of the application, the target image can be shot and obtained through the camera in response to the matching degree between the shot preview image and the reference image meeting the shooting condition. In one embodiment, the photographing may be automatically performed to obtain the target image in response to the degree of matching between the photographed preview image and the reference image satisfying the photographing condition. In another embodiment, a shooting prompt may be sent to the user in response to the matching degree between the shooting preview image and the reference image meeting the shooting condition, and the user actively shoots according to the shooting prompt to obtain the target image, where the shooting prompt may include, but is not limited to, a text prompt, a sound prompt, an animation prompt, a vibration prompt, and the like.
In summary, the shooting method provided by the embodiment of the application comprises the steps of displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode; obtaining a target image based on a shooting preview interface; wherein the target image comprises at least one of: shooting a shooting image corresponding to the preview image, and splicing the shooting image and a reference image; the target image is obtained in a case where the degree of matching between the photographed preview image and the reference image satisfies the photographing condition. Because the reference image and the shooting preview image are displayed in a superimposed manner on the shooting preview interface, a user can adjust shooting based on the difference between the shooting preview image and the reference image, and shooting is performed under the condition that the matching degree between the shooting preview image and the reference image meets the shooting condition, so that the efficiency of shooting similar images is improved.
Referring to fig. 2, fig. 2 shows a flowchart of steps of another photographing method provided by the embodiment of the present application, and as shown in fig. 2, the method specifically includes the following steps:
step 201, displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superimposed mode.
In the embodiment of the application, in order to facilitate the comparison of the reference image and the shooting preview image by a user, the reference image and the shooting preview image can be overlapped and displayed in the shooting preview interface. The reference image may be displayed on the upper layer of the photographed preview image, or the photographed preview image may be displayed on the upper layer of the reference image. The upper layer image (reference image or shooting preview image) participating in the superposition display can be adjusted to be in a semitransparent state while the superposition display is performed, so that a user can observe the lower layer image through the upper layer image at the same time, and the user can conveniently compare the contents of the reference image and the shooting preview image.
Specifically, in one embodiment, the upper layer image may be displayed in a semitransparent state by enhancing the transparency of the upper layer image, for example, the transparency of the upper layer image may be adjusted to 50%. In another embodiment, each pixel of the top image may be weighted fused with a corresponding pixel of the bottom image using an image fusion technique, such as a transparency blending (Alpha blending) technique, to create a semi-transparent effect of the top image, wherein the weight of the top image corresponding pixel is determined by the transparency value of the top image.
It should be noted that, the reference image and the shooting preview image may be displayed in a superimposed manner in the first display area of the shooting preview interface, and the shooting preview image may be displayed separately in the second display area of the shooting preview interface, so that the user may observe a clear shooting preview image in the second display area; the first display area and the second display area are not overlapped, and the first display area and the second display area can be different areas of the same screen, for example, a screen can be divided into the first display area and the second display area by a split-screen display technology; the first display area and the second display area may be located in different screens, for example, the first screen of the folding screen mobile phone may be used as the first display area, and the second screen may be used as the second display area.
Referring to fig. 3 and 4, fig. 3 shows a schematic diagram of superposition display provided by the embodiment of the present application, and fig. 4 shows another schematic diagram of superposition display provided by the embodiment of the present application, as shown in fig. 3, a reference image 32 and a shooting preview image 33 may be displayed in superposition on the entire screen of the smart terminal on which the flexible folding screen is mounted. As shown in fig. 4, the reference image 42 and the photographed preview image 43 may be displayed in a superimposed manner in the first display area 41, and the photographed preview image 43 may be displayed in the second display area 44 at the same time, wherein the reference image is an upper layer image displayed in a superimposed manner, the picture content of the reference image is indicated by a broken line, and the picture content of the photographed preview image is indicated by a solid line.
In the embodiment of the application, the reference image and the shooting preview image are displayed in a superimposed manner, and the upper image displayed in a superimposed manner is set to be in a semitransparent state, so that a user can directly compare the contents of the reference image and the shooting preview image, and the efficiency of adjusting the camera orientation to match the reference image and the shooting preview image by the user is improved.
Optionally, a first alignment identifier corresponding to the captured preview image and a second alignment identifier corresponding to the reference image are displayed.
In the embodiment of the application, the first alignment mark corresponding to the shooting preview image and the second alignment mark corresponding to the reference image can be displayed, so that a user can conveniently adjust the shooting preview image and/or the reference image, and the matching efficiency of the shooting preview image and the reference image is improved.
Specifically, a first alignment mark anchored to one subject in the reference image may be displayed, and a second alignment mark anchored to the same subject in the photographic preview image may be displayed. The shot objects in the reference image and the shot preview image may be identified, the same shot object in the reference image and the shot preview image may be determined, and the identified same shot object may be marked in the reference image and the shot preview image, to obtain a first alignment identifier for marking the shot object in the reference image and a second alignment identifier for marking the shot object in the shot preview image, where the patterns of the first alignment identifier and the second alignment identifier may be different, and the patterns may include, but are not limited to, at least one of color, shape, size, and the like.
As shown in fig. 3, the reference image 32 and the photographed preview image 33 each include the same subject (the top of the bridge), the first alignment mark 34 is anchored to the bridge top in the reference image 33, and the second alignment mark 35 is anchored to the bridge top in the photographed preview image 33. When the shooting orientation of the camera changes, the second alignment mark 35 in the shooting preview image 33 will also change, so that the user can adjust the shooting preview image and/or the reference image by referring to the positional relationship between the first alignment mark 34 and the second alignment mark 35.
Further, a plurality of mark pairs may be provided, each mark pair may include a first alignment identifier and a second alignment identifier, the first alignment identifier and the second alignment identifier in the same mark group correspond to the same photographic subject, and photographic subjects corresponding to different mark groups are different.
In the embodiment of the application, the reference image and the shooting preview image can be matched in an auxiliary way by displaying the first alignment mark corresponding to the shooting preview image and the second alignment mark corresponding to the reference image, so that the shooting efficiency can be improved.
And step 202, determining shooting adjustment information according to the difference between the shooting preview image and the reference image.
In the embodiment of the application, in order to improve the efficiency of matching the shot preview image with the reference image, shooting adjustment information for prompting a user can be determined according to the difference between the shot preview image and the reference image. The difference may include, but is not limited to, at least one of a difference in position, a difference in angle, a difference in size, and the like of the same subject in the photographing preview interface between the photographing preview image and the reference image, so that the photographing adjustment information may include, but is not limited to, at least one of photographing size adjustment information, photographing scale adjustment information, photographing angle adjustment information, photographing azimuth adjustment information, and the like.
As shown in fig. 3, the same photographic subject in the reference image 32 and the photographic preview image 33 may be identified, and the same photographic subject may be determined as the top end of the bridge, so that the direction and distance that are required to move in order to align the top ends of the bridge in the reference image 32 and the photographic preview image 33 with each other may be determined as photographic adjustment information by calculating the position difference, the angle difference, the size difference, and the like of the top ends of the bridge in the reference image 32 and the photographic preview image 33.
Step 203, displaying the shooting adjustment information on the shooting preview interface; the shooting adjustment information is used for prompting adjustment of shooting parameters corresponding to the shooting preview image.
In the embodiment of the application, shooting adjustment information can be displayed on the shooting preview interface so as to prompt a user to adjust shooting parameters corresponding to the shooting preview image based on the shooting adjustment information. Among them, the photographing parameters may include, but are not limited to, an image photographing size, an image photographing proportion, an image photographing angle, an image photographing azimuth, and the like.
Specifically, the display mode of the photographing adjustment information may include, but is not limited to, at least one of text, image, animation, and the like. For example, the photographing adjustment information may be displayed by a prompt text describing a moving distance and describing a moving direction, or may be displayed by a prompt animation describing a moving manner.
By determining shooting adjustment information according to the difference between the shooting preview image and the reference image and displaying the shooting adjustment information on the shooting preview interface, a user can be prompted for the adjustment mode of the shooting preview image, the process of adjusting the shooting preview image by the user is faster and traversing, and the efficiency of matching the reference image with the shooting preview image subsequently is improved.
And step 204, obtaining a target image based on the shooting preview interface.
The target image includes at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
Optionally, in the embodiment of the present application, shooting parameters of a shot preview image may be adjusted in the shooting process, and when the adjusted shot preview image is matched with a reference image, a target image is obtained by shooting, so that efficiency of matching the shot preview image with the reference image is improved. For a specific procedure, see sub-steps A1 to A2 below:
a substep A1 of receiving a first input for the shooting preview interface; the first input is used for adjusting shooting parameters corresponding to the shooting preview image.
In the embodiment of the application, a first input for the shooting preview interface can be received, and the first input can be used for adjusting shooting parameters corresponding to shooting preview images in the shooting preview interface. Wherein the first input may include, but is not limited to, a click, a slide, etc., and the photographing parameters may include, but are not limited to, an image photographing size, an image photographing proportion, an image photographing angle, an image photographing azimuth, etc.
It should be noted that the first input may directly act on the shooting preview image in the shooting preview interface, or may also act on a first control in the shooting preview interface, where the first control is used to adjust a shooting parameter corresponding to the shooting preview image.
For example, the first input may include a double-finger zoom-in operation, and the user may adjust an image photographing size of the photographing preview image using the double-finger zoom-in operation on the photographing preview image in the photographing preview interface to achieve an effect of zooming in the photographing preview image. The first input may further include a rotation operation, and the user may use the rotation operation on the photographed preview image in the photographed preview interface to adjust an image photographing angle of the photographed preview image, so as to achieve an effect of rotating the photographed preview image by a certain angle.
In the embodiment of the present application, the user may refer to the shooting adjustment information and adjust the shooting parameters corresponding to the shooting preview image through the first input, so as to improve the efficiency of adjusting the shooting preview image.
And a substep A2, in response to the first input, obtaining the target image according to the adjusted shooting parameters.
In the embodiment of the application, the adjusted shooting parameters can be determined according to the first input in response to the first input, and then the target image is obtained based on the shooting parameters. Specifically, the parameter adjustment range may be determined according to the first input, the adjusted shooting parameter may be obtained by superimposing the original shooting parameter and the parameter adjustment range, and in the subsequent process of obtaining the target image based on the shooting preview interface, the adjusted shooting parameter is applied to perform shooting, so as to obtain a shooting image corresponding to the shooting preview image.
Through receiving the first input for shooting the preview interface, responding to the first input, and obtaining a target image according to the adjusted shooting parameters, so that a user can adjust the parameters of the shooting preview image through the first input in the shooting process, the efficiency of matching the shooting preview image with the reference image is improved, and the richer shooting requirements of the user are also met.
Optionally, in the embodiment of the present application, the reference image may be further adjusted, so that the shot preview image matches the adjusted reference image to the target image. For a specific procedure, see sub-step B1 to sub-step B2 below:
a substep B1 of receiving a second input for said shooting preview interface; the second input is used for adjusting image parameters corresponding to the reference image.
In the embodiment of the application, a second input for the shooting preview interface can be received, and the second input can be used for adjusting the image parameters corresponding to the reference image in the shooting preview interface. Wherein the second input may include, but is not limited to, a click, a slide, etc., and the second input may also include a specific parameter value. Image parameters may include, but are not limited to, image size, image scale, image angle, etc.
For example, the second input may include a double-finger zoom-in operation, and the user may adjust an image size of the reference image using the double-finger zoom-in operation on the reference image in the photographing preview interface to achieve an effect of zooming in the reference image. The second input may further include a rotation operation, and the user may use the rotation operation to the reference image in the photographing preview interface, adjust an image angle of the reference image, and achieve an effect of rotating the reference image by a certain angle.
The second input can directly act on the reference image in the shooting preview interface, and can also act on a second control in the shooting preview interface, wherein the second control is used for adjusting the image parameters corresponding to the reference image.
Illustratively, the second control may include, but is not limited to, a numeric input box, a parameter slider bar, a parameter knob, etc., and accordingly, the second input may include a numeric input operation to the numeric input box, a sliding operation to the parameter slider bar, a turning operation to the parameter knob, etc.
And a substep B2, in response to the second input, obtaining the target image according to the adjusted image parameters.
In the embodiment of the application, the adjusted image parameters can be determined according to the second input in response to the second input, the adjusted image parameters are applied to the reference image in the process of obtaining the target image based on the shooting preview interface, the adjusted reference image is obtained, the adjusted shooting reference image participates in the matching process with the shooting preview image based on the adjusted shooting reference image, and the target image is obtained through shooting under the condition that the adjusted shooting reference image is matched with the shooting preview image.
In one embodiment, the second input may be used to reflect the parameter adjustment amplitude, image parameters of the reference image may be obtained, the parameter adjustment amplitude may be determined based on the second input, and the adjusted image parameters may be calculated based on the image parameters and the parameter adjustment amplitude. In another embodiment, the second input may be an input for directly determining a specific value of the adjusted image parameter, and thus the adjusted image parameter may be determined directly from the second input.
Through receiving the second input for shooting the preview interface, responding to the second input and obtaining the target image according to the adjusted image parameters, a user can adjust the reference image through the second input in the shooting process, so that the reference image can better meet shooting requirements of the user, and shooting interestingness is improved.
Alternatively, it may be determined whether the degree of matching between the photographed preview image and the reference image satisfies the photographing condition by:
and under the condition that the coincidence ratio of the first alignment mark and the second alignment mark is larger than the preset coincidence ratio, judging that the matching degree between the shooting preview image and the reference image meets the shooting condition.
In the embodiment of the application, since the first alignment mark and the second alignment mark are respectively anchored in the reference image and the shooting preview image, when the first alignment mark and the second alignment mark are overlapped and aligned, the matching degree between the reference image and the shooting preview image is also higher, so that the matching degree between the shooting preview image and the reference image can be judged to meet the shooting condition through the coincidence degree of the first alignment mark and the second alignment mark.
Specifically, the degree of coincidence between the first alignment mark and the second alignment mark may be calculated in real time, and compared with the degree of coincidence with a preset degree of coincidence, and if the degree of coincidence is greater than the preset degree of coincidence (for example, 90%), it is determined that the degree of coincidence between the photographed preview image and the reference image satisfies the photographing condition. The preset overlap ratio can be flexibly set according to actual requirements, and the embodiment of the application is not particularly limited.
It should be noted that, in the case of displaying a plurality of sets of mark pairs of the first alignment mark and the second alignment mark, it may be determined that the matching degree between the reference image and the captured preview image satisfies the capturing condition in the case where the degree of coincidence between the first alignment mark and the second alignment mark in each set of mark pairs is greater than the preset degree of coincidence, so as to improve accuracy of the matching determination based on the alignment marks.
In the embodiment of the application, whether the matching degree between the shot preview image and the reference image meets the shooting condition can be judged based on the first alignment mark and the second alignment mark, so that the method is more visual for a user, the operation amount required by the matching judgment can be reduced, and the matching speed and the matching efficiency are improved.
Alternatively, it is also possible to determine whether the degree of matching between the photographed preview image and the reference image satisfies the photographing condition by:
determining a first similarity between the reference image and the captured preview image; in response to the first similarity being greater than or equal to a first threshold, it is determined that a degree of matching between the captured preview image and the reference image satisfies a capturing condition.
In the embodiment of the application, considering that the shooting moments of the content in the reference image and the shooting preview image are different, the difference exists between the ambient illumination of the reference image and the shooting preview image, the shooting equipment and the like, so that the reference image and the shooting preview image possibly have other differences besides the difference in the aspect of a shot object, in order to eliminate the influence of other factors in the comparison process, the reference image and the shooting preview image can be subjected to the unification processing to obtain a first image to be compared corresponding to the reference image and a second image to be compared corresponding to the shooting preview image; wherein the unification processing comprises at least one of brightness unification, contrast unification, color unification and resolution unification; and performing feature comparison on the first image to be compared and the second image to be compared to obtain a first similarity.
The first feature set can be extracted from the first image to be compared, the second feature set can be extracted from the second image to be compared, and the first feature set and the second feature set are compared, so that the first similarity between the reference image and the shooting preview image is obtained. The above features may include, but are not limited to, a feature of a subject, a feature of a positional relationship among a plurality of subjects, a feature of a distance among a plurality of subjects, and the like, which is not particularly limited in the embodiment of the present application.
Specifically, the process of comparing the first feature set and the second feature set may include: and matching the first features in the first feature set and the second features in the second feature set in pairs, determining common features existing in the first feature set and the second feature set, and determining the first similarity according to the proportion of the common features in the first feature set or the second feature set. Other comparison methods can be selected to determine the first similarity according to actual service requirements, and the embodiment of the application is not particularly limited.
According to the embodiment of the application, the first image to be compared and the second image to be compared which are higher in consistency can be obtained by carrying out the consistency processing on the reference image and the shooting preview image, the influence factors of the reference image and the shooting preview image except the actual shooting content can be eliminated to a certain extent, and further, the first similarity is determined by carrying out the feature comparison on the first image to be compared and the second image to be compared, so that the first similarity can reflect the actual similarity between the reference image and the shooting preview image, and the accuracy of the first similarity is improved.
In the embodiment of the application, a first threshold (for example, 95%) may be preset, the first similarity corresponding to each frame of shooting preview image is compared with the first threshold, and if the first similarity of a frame of shooting preview image is greater than or equal to the first threshold, it is determined whether the matching degree between the shooting preview image and the reference image meets the shooting condition.
By comparing the reference image with the shooting preview image to determine the first similarity between the reference image and the shooting preview image, whether the reference image and the shooting preview image are matched or not can be judged based on the first similarity, for example, the reference image is a building A photo shot in a specific shooting direction 10 years ago, a user currently wants to repeatedly shoot the building A photo shot 10 years ago, then the user can view the building A currently, when the user adjusts the camera to the specific shooting direction, and when the first similarity between the shooting preview image and the building A photo exceeds a first threshold value, the building A photo can be judged to be matched with the content of the shooting preview image, so that the user can be helped to accurately judge whether the scene shot by the current camera is consistent with the scene contained by the reference image or not, and the application scene for judging that the shooting contents are matched is enriched.
In the embodiment of the application, the target image can be obtained by automatic shooting when the reference image is matched with the shooting preview image, and the shooting prompt can be sent out, so that a user can independently input shooting operation, the camera is controlled to shoot in response to the shooting operation input by the user, the target image is obtained, a plurality of different target image acquisition modes can be provided, the personalized requirements of the user are met, and the shot target image can be more in line with the expectations of the user. As shown in fig. 4, the user can input a photographing operation by pressing the photographing button 45.
Optionally, the imaging parameters of the acquired reference image may be adjusted to parameters of the camera, and after adjustment, the camera captures the target image, so that the camera acquires the target image with the same imaging parameters as the reference image.
Imaging parameters of the reference image may include, but are not limited to, at least one of exposure parameters (e.g., shutter speed, aperture size, etc.), color parameters (e.g., color mode, saturation, etc.), size parameters (e.g., image scale, image resolution, etc.).
The imaging parameters of the reference image are used in the process of shooting the target image, so that the target image which is the same as the imaging parameters of the reference image can be obtained, the target image and the reference image can be ensured to be matched, the look and feel of the target image and the reference image can be kept consistent, the matching degree of the target image and the reference image is further improved, and the shooting effect of the target image is improved.
Optionally, the photographing method of the present application may be applied to an electronic device having a foldable screen, where the electronic device includes a first screen facing a photographed object and a second screen displaying the photographing preview interface, and in the photographing process of the electronic device using the above foldable screen, object information may be displayed on the first screen through the following steps C1 to C2, so as to improve photographing efficiency:
and step C1, determining shooting auxiliary information according to the shot information of the person object in the reference image.
In the embodiment of the application, considering that the reference image possibly contains the character object, the expression, the action, the gesture and the like of the character object in the reference image can be assisted for the user to be carved again in order to improve the quality and the accuracy of the user's carved again image. Specifically, when the person object is detected from the reference image, the motion, expression, position, and the like of the person object may be recognized to obtain the photographed information of the person object, and the photographing auxiliary information may be determined based on the photographed information of the person object.
Wherein the photographed information of the person object may include, but is not limited to, at least one of position information, posture information, expression information, etc. of the person object in the reference image. The photographing auxiliary information is used to prompt the photographed object to adjust the motion, expression, position, etc. according to the photographing auxiliary information to reproduce the photographed information of the person object in the reference image, and the photographing auxiliary information may include, but is not limited to, at least one of animation, logo, text, etc.
Optionally, step C1 may further include:
and a substep C11, receiving a third input to the shooting preview interface.
In the embodiment of the application, the user can zoom in the person object in the reference image and shoot the person object in the preview image through the shooting preview interface, so that the photographer can observe the person in the image more clearly.
In an embodiment of the present application, a third input for a photographing preview interface may be received, and the third input may be used to enlarge a person object in a reference image and a person object in a photographing preview image. The third input may include, but is not limited to, a double-finger zoom operation, a sliding operation, etc., and may also be an input operation for a person zoom control in the shooting preview interface.
A substep C11 of magnifying and displaying the person object in the reference image and the person object in the photographed preview image in response to the third input.
In the embodiment of the present application, the enlargement level or the target size may be determined according to the third input in response to the third input, and the person object in the display reference image and the person object in the photographing preview image may be enlarged based on the enlargement level or the target size.
In one embodiment, the third input may be applied to the entire reference image and the captured preview image, and the entire reference image may be enlarged with the person object in the reference image as a first enlargement center, and the entire captured preview image may be enlarged with the person object in the captured preview image as a second enlargement center. In another embodiment, the third input may be applied to the reference image and the person region in the captured preview image, specifically, the image region in which the person object is located in the reference image may be identified, the first person region may be determined, the image region in which the person object in the captured preview image is located may be identified, the second person region may be determined, and the first person region and the second person region may be enlarged based on the third input, while keeping the image size of the reference image except for the first person region unchanged and keeping the image size of the captured preview image except for the second person region unchanged.
By receiving the third input to the shooting preview interface and displaying the person object in the reference image and the person object in the shooting preview image in an enlarged manner in response to the third input, the user can more easily observe the gestures of the person object in the reference image and the shooting preview image, and the efficiency of guiding the user to adjust the gestures of the person object being shot is improved.
And step C2, displaying the shooting auxiliary information in the first screen.
In the embodiment of the application, all or part of the object information can be displayed on the first screen, so that the shot person can adjust the action and position of the person by referring to the object information. Wherein, the display direction of the first screen can be consistent with the view direction of the camera, so that the photographed person can directly observe the object information.
The shooting auxiliary information can be determined based on the person object in the reference image, the shooting auxiliary information is displayed on the first screen, the shot object is prompted to adjust the shooting auxiliary information to re-etch the person object in the reference image, convenience can be provided for shooting to a certain extent, and efficiency and convenience in use of matching the shot preview image with the reference image are improved.
In summary, another shooting method provided by the embodiment of the application includes displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superimposed mode, and a first input for the shooting preview interface is received; the first input is used for adjusting shooting parameters corresponding to shooting preview images; responding to the first input, and obtaining a target image according to the adjusted shooting parameters; wherein the target image comprises at least one of: shooting a shooting image corresponding to the preview image, and splicing the shooting image and a reference image; the target image is obtained in a case where the degree of matching between the photographed preview image and the reference image satisfies the photographing condition. Because the reference image and the shooting preview image are displayed in a superimposed manner on the shooting preview interface, a user can adjust shooting based on the difference between the shooting preview image and the reference image, and shooting is performed under the condition that the matching degree between the shooting preview image and the reference image meets the shooting condition, so that the efficiency of shooting similar images is improved.
Referring to fig. 5, fig. 5 shows a flowchart of steps of another photographing method according to an embodiment of the present application, optionally, in the case where the target image is a stitched image of the photographed image and the reference image, the photographed preview image and the reference image may be further processed in the manner shown in the following steps 301 to 305:
step 301, displaying a reference image in a first display area, and displaying a shooting preview image in a second display area; wherein the first display area and the second display area do not overlap.
Referring to fig. 6, fig. 6 shows a display schematic diagram provided by the embodiment of the present application, and as shown in fig. 6, the reference image 61 may be independently displayed in the first display area 62, and the photographed preview image 63 may be independently displayed in the second display area 64.
Since the first display area and the second display area may be smaller, a partial image of the reference image may be displayed in the first display area and a partial image of the photographing preview image may be displayed in the second display area.
In step 302, a first edge region is determined from the reference image and a second edge region is determined from the target image.
In order to facilitate the user to adjust the shot preview image by comparing the edge contents of the reference image and the shot preview image, a first edge region may be included in the partial image displayed in the first display region and a second edge region may be included in the partial image displayed in the second display region. Wherein the first edge region represents an image region near the first edge of the reference image and the second edge region represents an image region near the second edge of the captured preview image.
It should be noted that, the sizes of the first edge area and the second edge area can be flexibly adjusted according to the accuracy requirement of subsequent matching, and the larger first edge area and the larger second edge area can be obtained under the condition that higher matching accuracy is required. As shown in fig. 6, a first edge region 65 of the reference image 61 and a second edge region 66 of the captured preview image 63 are shown.
Step 303, determining a second similarity between the first edge region and the second edge region.
The determination of the second similarity between the first edge region and the second edge region may be similar to the determination of the first similarity in the above embodiment, which is not described herein.
In step 304, in response to the second similarity being greater than or equal to the second threshold, it is determined that the degree of matching between the captured preview image and the reference image satisfies the capturing condition.
The second similarity between the first edge area and the second edge area is determined by comparing the first edge area and the second edge area, whether the reference image and the shooting preview image are matched or not can be judged based on the second similarity, so that a user can be helped to accurately judge whether the shooting image corresponding to the shooting preview image can be spliced with a scene contained in the reference image or not, and application scenes for judging that shooting contents are matched are enriched.
Step 305, obtaining a target image based on a shooting preview interface; the target image comprises a spliced image of the shot image and the reference image.
In the embodiment of the application, when the reference image is matched with the shooting preview image, the edge area similarity of the reference image and the shooting preview image is higher, so that the continuity of the shooting preview image and the reference image in the same shooting scene can be illustrated, the shooting image which is different in time from the reference image but continuous in shooting content can be obtained, and the interestingness of shooting pictures by users is increased.
After the reference image and the photographed image are obtained, the reference image and the photographed image may be subjected to a stitching operation based on the first edge region and the second edge region, so as to obtain a stitched image. Specifically, the first edge region and the second edge region may be overlapped, so as to align the reference image and the photographed image, and the first edge region and the second edge region may be fused to obtain a stitched image. The spliced image is obtained by splicing the reference image and the shooting images which are different in time from the reference image but have continuous shooting contents, which is equivalent to splicing scenes of shooting scenes in time and space, so that the artistry of shooting pictures can be improved, and the interestingness of shooting by a user is also improved.
Referring to fig. 7, fig. 7 shows a schematic diagram of a stitched image provided by the embodiment of the present application, if the reference image 61 shown in fig. 6 is matched with the shot preview image 63, a shot scene corresponding to the shot preview image 63 may be shot to obtain a shot image, and the reference image 61 and the shot image are stitched to obtain a stitched image shown in fig. 7, that is, a target image.
The method can judge whether the shot preview image and the reference image are continuous in the same shooting scene or not, and when the shot preview image and the reference image are matched, shooting images with continuous shooting contents which are different in time from the reference image are obtained, and the spliced images are obtained by splicing the reference image and the shooting images, so that the scene of the shooting scene is spliced in time and space, and the efficiency of shooting the time and space spliced images by a user is improved.
According to the shooting method provided by the embodiment of the application, the execution subject can be a shooting device. In the embodiment of the present application, a method for executing video shooting by a shooting device is taken as an example, and the shooting device provided by the embodiment of the present application is described.
Referring to fig. 8, fig. 8 is a block diagram of a photographing apparatus according to an embodiment of the present application, and as shown in fig. 8, the photographing apparatus includes:
A display module 801, configured to display a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode;
an obtaining module 802, configured to obtain a target image based on the shooting preview interface; wherein the target image comprises at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
Optionally, the obtaining module 802 is further configured to receive a first input for the shooting preview interface; the first input is used for adjusting shooting parameters corresponding to the shooting preview image; and responding to the first input, and obtaining the target image according to the adjusted shooting parameters.
Optionally, the obtaining module 802 is further configured to receive a second input for the shooting preview interface; the second input is used for adjusting image parameters corresponding to the reference image; and responding to the second input, and obtaining the target image according to the adjusted image parameters.
Optionally, the apparatus further comprises:
the shooting adjustment information module is used for determining shooting adjustment information according to the difference between the shooting preview image and the reference image;
the first display module is used for displaying the shooting adjustment information on the shooting preview interface; the shooting adjustment information is used for prompting adjustment of shooting parameters corresponding to the shooting preview image.
Optionally, the apparatus further comprises:
and the second display module is used for displaying a first alignment mark corresponding to the shooting preview image and a second alignment mark corresponding to the reference image, and judging that the matching degree between the shooting preview image and the reference image meets the shooting condition under the condition that the coincidence degree of the first alignment mark and the second alignment mark is larger than the preset coincidence degree.
Optionally, the method is applied to an electronic device with a foldable screen, wherein the electronic device comprises a first screen facing a shot object and a second screen displaying the shooting preview interface;
the apparatus further comprises:
a shooting auxiliary information module for determining shooting auxiliary information according to the shot information of the person object in the reference image;
And the third display module is used for displaying the shooting auxiliary information in the first screen.
Optionally, the apparatus further comprises:
the input module is used for receiving a third input of the shooting preview interface;
and the amplifying display module is used for responding to the third input and amplifying and displaying the person object in the reference image and the person object in the shooting preview image.
In summary, the shooting device provided by the embodiment of the application comprises a display module, a display module and a control module, wherein the display module is used for displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode; the acquisition module is used for acquiring a target image based on the shooting preview interface; wherein the target image comprises at least one of: shooting a shooting image corresponding to the preview image, and splicing the shooting image and a reference image; the target image is obtained in a case where the degree of matching between the photographed preview image and the reference image satisfies the photographing condition. Because the reference image and the shooting preview image are displayed in a superimposed manner on the shooting preview interface, a user can adjust shooting based on the difference between the shooting preview image and the reference image, and shooting is performed under the condition that the matching degree between the shooting preview image and the reference image meets the shooting condition, so that the efficiency of shooting similar images is improved.
The photographing device in the embodiment of the application can be an electronic device, or can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The photographing device in the embodiment of the application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The photographing device provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to 7, and in order to avoid repetition, a detailed description is omitted here.
Optionally, referring to fig. 9, fig. 9 shows an electronic device provided by the embodiment of the present application, as shown in fig. 9, the embodiment of the present application further provides an electronic device M00, including a processor M01 and a memory M02, where a program or an instruction that can run on the processor M01 is stored in the memory M02, and the program or the instruction when executed by the processor M01 implements each step of the foregoing shooting method embodiment, and the same technical effect can be achieved, so that repetition is avoided and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Referring to fig. 10, fig. 10 shows a schematic hardware structure of an electronic device according to an embodiment of the present application, as shown in fig. 10:
the electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The display unit 1006 is configured to display a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superimposed mode.
A processor 1010 for obtaining a target image based on the capture preview interface; wherein the target image comprises at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
An input unit 1004 for receiving a first input for the shooting preview interface; the first input is used for adjusting shooting parameters corresponding to the shooting preview image.
A processor 1010, configured to obtain the target image according to the adjusted shooting parameters in response to the first input.
An input unit 1004 for receiving a second input for the shooting preview interface; the second input is used for adjusting image parameters corresponding to the reference image;
a processor 1010 for obtaining the target image from the adjusted image parameters in response to the second input.
A processor 1010 for determining photographing adjustment information according to a difference between the photographing preview image and the reference image;
a display unit 1006, configured to display the shooting adjustment information on the shooting preview interface; the shooting adjustment information is used for prompting adjustment of shooting parameters corresponding to the shooting preview image.
A display unit 1006 for displaying a first alignment mark corresponding to the captured preview image and a second alignment mark corresponding to the reference image.
And a processor 1010, configured to determine that the matching degree between the captured preview image and the reference image satisfies the capturing condition when the contact ratio of the first alignment mark and the second alignment mark is greater than a preset contact ratio.
A processor 1010 for determining photographing auxiliary information according to photographed information of a person object in the reference image;
a display unit 1006 for displaying the photographing auxiliary information in the first screen.
An input unit 1004, configured to receive a third input to the shooting preview interface;
and a processor 1010 for magnifying and displaying the person object in the reference image and the person object in the photographed preview image in response to the third input.
In summary, an electronic device provided by an embodiment of the present application includes displaying a shooting preview interface, where the shooting preview interface includes a reference image and a shooting preview image that are displayed in a superimposed manner, obtaining a target image based on the shooting preview interface, where the target image is obtained when a matching degree between the shooting preview image and the reference image satisfies a shooting condition, and the target image includes at least one of: shooting a shooting image corresponding to the preview image, and stitching the shooting image and a reference image. Because the reference image and the shooting preview image are displayed in a superimposed manner on the shooting preview interface, a user can adjust shooting based on the difference between the shooting preview image and the reference image, and shooting is performed under the condition that the matching degree between the shooting preview image and the reference image meets the shooting condition, so that the efficiency of shooting similar images is improved.
It should be appreciated that in an embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory x09 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1009 in embodiments of the application includes, but is not limited to, these and any other suitable types of memory.
The processor 1010 may include one or at least two processing units; optionally, the processor 1010 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction realizes each process of the video shooting embodiment, and the same technical effect can be achieved, so that repetition is avoided, and no description is repeated here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the video shooting embodiment, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the respective processes of the video capturing embodiments described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A photographing method, the method comprising:
displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode;
obtaining a target image based on the shooting preview interface;
wherein the target image comprises at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
2. The method of claim 1, wherein the obtaining the target image based on the capture preview interface comprises:
receiving a first input for the shooting preview interface; the first input is used for adjusting shooting parameters corresponding to the shooting preview image;
and responding to the first input, and obtaining the target image according to the adjusted shooting parameters.
3. The method of claim 1, wherein the obtaining the target image based on the capture preview interface comprises:
receiving a second input for the shooting preview interface; the second input is used for adjusting image parameters corresponding to the reference image;
And responding to the second input, and obtaining the target image according to the adjusted image parameters.
4. The method according to claim 1, wherein the method further comprises:
determining shooting adjustment information according to the difference between the shooting preview image and the reference image;
displaying the shooting adjustment information on the shooting preview interface; the shooting adjustment information is used for prompting adjustment of shooting parameters corresponding to the shooting preview image.
5. The method according to claim 1, wherein the method further comprises:
displaying a first alignment mark corresponding to the shooting preview image and a second alignment mark corresponding to the reference image, and judging that the matching degree between the shooting preview image and the reference image meets the shooting condition under the condition that the coincidence degree of the first alignment mark and the second alignment mark is larger than the preset coincidence degree.
6. The method of claim 1, applied to an electronic device having a foldable screen, the electronic device comprising a first screen facing a subject to be photographed and a second screen displaying the photographing preview interface;
The method further comprises the steps of:
determining shooting auxiliary information according to the shot information of the person object in the reference image;
the photographing auxiliary information is displayed in the first screen.
7. The method of claim 6, wherein the method further comprises:
receiving a third input to the shooting preview interface;
in response to the third input, the person object in the reference image and the person object in the captured preview image are enlarged and displayed.
8. A photographing apparatus, the apparatus comprising:
the display module is used for displaying a shooting preview interface; the shooting preview interface comprises a reference image and a shooting preview image which are displayed in a superposition mode;
the acquisition module is used for acquiring a target image based on the shooting preview interface; wherein the target image comprises at least one of: a shooting image corresponding to the shooting preview image, and a spliced image of the shooting image and the reference image; the target image is obtained in a case where a degree of matching between the photographing preview image and the reference image satisfies a photographing condition.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the shooting method of any one of claims 1 to 7.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implement the steps of the photographing method of any one of claims 1 to 7.
CN202310786135.4A 2023-06-28 2023-06-28 Shooting method, shooting device, electronic equipment and readable storage medium Pending CN116782022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310786135.4A CN116782022A (en) 2023-06-28 2023-06-28 Shooting method, shooting device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310786135.4A CN116782022A (en) 2023-06-28 2023-06-28 Shooting method, shooting device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116782022A true CN116782022A (en) 2023-09-19

Family

ID=88013127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310786135.4A Pending CN116782022A (en) 2023-06-28 2023-06-28 Shooting method, shooting device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116782022A (en)

Similar Documents

Publication Publication Date Title
US7349020B2 (en) System and method for displaying an image composition template
US8717412B2 (en) Panoramic image production
US20090227283A1 (en) Electronic device
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
US9807299B2 (en) Image capture methods and systems with positioning and angling assistance
CN109691080B (en) Image shooting method and device and terminal
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
CN113329172B (en) Shooting method and device and electronic equipment
CN114125179B (en) Shooting method and device
CN113794829B (en) Shooting method and device and electronic equipment
CN112637515A (en) Shooting method and device and electronic equipment
CN111787230A (en) Image display method and device and electronic equipment
CN114143461B (en) Shooting method and device and electronic equipment
CN114697530B (en) Photographing method and device for intelligent view finding recommendation
CN116782022A (en) Shooting method, shooting device, electronic equipment and readable storage medium
JP2007166383A (en) Digital camera, image composing method, and program
CN114285922A (en) Screenshot method, screenshot device, electronic equipment and media
CN114363521B (en) Image processing method and device and electronic equipment
CN114339029B (en) Shooting method and device and electronic equipment
CN115242976A (en) Shooting method, shooting device and electronic equipment
CN114285988B (en) Display method, display device, electronic equipment and storage medium
JP6406393B2 (en) Display control apparatus, display control method, and program
CN115118879A (en) Image shooting and displaying method and device, electronic equipment and readable storage medium
CN116600196A (en) Image processing method and device
JP6149952B2 (en) Electronic device, display control method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination