Photographing method, photographing device and electronic equipment
By receiving user input in the shooting preview interface and superimposing the second image on the first image, the problems of poor shooting effects and cumbersome operations in the prior art are solved, and images of different actions of the target object are quickly acquired, which improves the user experience.
Patent Information
- Application Number
- CN202210851297.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-07-19
AI Technical Summary
In the prior art, when obtaining photos of the same character appearing multiple times and having different actions, the shooting effect is poor and the operation is complicated.
By receiving input from a user in the shooting preview interface, a second image is acquired based on the viewing screen, and superimposed on the first image, forming a target image, the target image including a target object and a first image in the second image.
It realizes the rapid acquisition of images containing different actions of the target object, shortens the shooting time, simple operation, and improves the user's camera experience.
Smart Images

Figure CN115242976B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of imaging technology, and specifically relates to a shooting method, a shooting device and an electronic device. Background Art
[0002] As the camera functions of mobile terminals become more and more sophisticated, users' daily shooting needs are greatly met.
[0003] In the related art, if one wants to achieve that the same person appears multiple times in a photo with different actions, the user usually uses the built-in panoramic camera function in the camera to take photos or uses PS photo editing technology to process the photos. However, when taking panoramic photos, the generated panoramic photos are large in size, and the shooting process is easily disturbed by factors such as hand shaking, which may cause discontinuous breaks in the captured images, resulting in a poor user experience. In addition, the operation of processing photos using PS photo editing technology is relatively cumbersome, and for ordinary users, the actual operation is difficult. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a shooting method, a shooting device and an electronic device, which can solve the problem of poor shooting effect and cumbersome operation in the prior art when obtaining photos of the same person appearing multiple times and having different actions.
[0005] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:
[0006] Receiving a first input from a user in a shooting preview interface, wherein the shooting preview interface includes a first image and a target object in a framing screen;
[0007] In response to the first input, a second image is acquired based on the viewfinder screen, and a target image is obtained, wherein the target image includes the target object in the second image and the first image.
[0008] In a second aspect, an embodiment of the present application provides a photographing device, the device comprising:
[0009] A first receiving module, used to receive a first input from a user in a shooting preview interface, where the shooting preview interface includes a first image and a target object in a framing screen;
[0010] The first processing module is used to acquire a second image based on the viewfinder in response to the first input, and obtain a target image, wherein the target image includes a target object in the second image and the first image.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0015] In an embodiment of the present application, the target image is obtained by continuing to shoot the second image with the first image as the preview image, that is, the target object in the second image is added on the basis of the display content of the first image, so that an image containing different actions of the target object can be quickly obtained, the shooting time is shortened, the operation is simple, and the user's camera experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is one of the flowcharts of the shooting method provided in the embodiment of the present application;
[0017] Figure 2 This is one of the interface schematic diagrams of the shooting method provided in the embodiment of the present application;
[0018] Figure 3 This is the second interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0019] Figure 4 This is the third interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0020] Figure 5 This is the fourth interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0021] Figure 6 This is the fifth interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0022] Figure 7 This is the second flow chart of the photographing device provided in the embodiment of the present application;
[0023] Figure 8 This is the sixth interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0024] Fig. 9 This is the seventh interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0025] Fig.10 This is the eighth interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0026] Fig.11 This is the ninth interface schematic diagram of the shooting method provided in the embodiment of the present application;
[0027] Fig.12 is a schematic diagram of the structure of a photographing device provided in an embodiment of the present application;
[0028] Fig.13 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0029] Fig.14 It is a hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0032] The following, in conjunction with the accompanying drawings, describes in detail the shooting method, shooting device, electronic device and readable storage medium provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0033] The shooting method may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.
[0034] The terminal includes but is not limited to other portable communication devices such as mobile phones or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).
[0035] In the following various embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse and a joystick.
[0036] The shooting method provided in the embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the shooting method. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The shooting method provided in the embodiment of the present application is described below using the electronic device as an example of the execution subject.
[0037] like Figure 1 As shown, the shooting method includes: step 110 and step 120.
[0038] Step 110: Receive a first input from a user in a shooting preview interface, where the shooting preview interface includes a first image and a target object in a viewfinder.
[0039] In this step, the shooting preview interface can be the camera's framing interface, on which the image to be shot can be focused, framed, saved, and other operations. The target object in the framing image is displayed on the shooting preview interface, and the other images except the target object are displayed as transparent on the shooting preview interface.
[0040] In this step, the target object is a movable object in the shooting preview interface, such as a person, an animal, or a remote-controlled toy.
[0041] In this step, the first image can be an image taken instantly by the camera, for example, an image saved by the camera after the user takes a picture in the shooting preview interface, and the image is displayed as the first image; the first image can also be an image imported from an album or other storage device, for example, the user selects an image in the album as the first image, and the first image is displayed.
[0042] It should be noted that the first image can be an ordinary photo, and the image can have multiple formats, such as jpg and other formats; the first image can also be an image containing one or more layers, that is, the first image can be a composite image of multiple images superimposed in sequence.
[0043] In this step, the first input is used to display a new image on the shooting preview interface.
[0044] The first input may be in at least one of the following ways:
[0045] First, the first input may be a touch input, including but not limited to a click input, a slide input, and a press input.
[0046] In this implementation, receiving the first input from the user may be receiving a touch operation of the user on the display screen.
[0047] In order to reduce the user's error rate, the active area of the display screen can be limited to a specific area, such as a blank area of the display screen or an area corresponding to a camera control.
[0048] In this embodiment, after determining the target object in the current scene on the shooting preview interface, click the "take photo" control on the shooting preview interface to save and display the target object in the current scene and the first image on one image.
[0049] Secondly, the input may be a physical key input.
[0050] In this embodiment, a physical camera button is provided on the terminal body, and receiving the user's first input may be an operation of receiving the user pressing the corresponding physical button; the input may also be a combined operation of pressing multiple physical buttons at the same time.
[0051] Third, the input may be voice input.
[0052] In this implementation, after the shooting preview interface is opened and the target object in the current scene is determined, a new image containing both the target object and the first image may be displayed on the shooting preview interface after receiving a voice message of "take a photo".
[0053] Of course, in other embodiments, the input may also be in other forms, including but not limited to character input, etc., which can be determined according to actual needs and is not limited in this embodiment.
[0054] In some embodiments, before receiving a first input from a user in the shooting preview interface, a fifth input from a user is received, and in response to the fifth input, the first image is displayed in the shooting preview interface.
[0055] In this embodiment, the fifth input may be touch input, physical button input and combination input, voice input and other types of input. Please refer to the above-mentioned first input form for details, which will not be described in detail in this embodiment.
[0056] When the fifth input is a combination input of multiple input forms, the fifth input is taken as an example to explain.
[0057] In this embodiment, the fifth input of the user is received, and the shooting preview interface of the camera is opened.
[0058] It should be noted that the shooting preview interface can be the display interface of the camera in the stacking mode. In this shooting preview interface, the camera can obtain continuous i (i>0) layers. The target objects on each layer can be displayed synchronously and the display effects of different areas in each layer can be customized. For example, parameters such as transparency and brightness of each area in the layer can be customized.
[0059] exist Figure 2 In the illustrated embodiment, the display interface of the camera includes a plurality of controls, and after clicking the “overlap shooting” control, the shooting preview interface is opened.
[0060] In some embodiments, after the first image is displayed on the shooting preview interface, a sixth input from the user is received, and the sixth input is used to continue shooting a new image on the shooting preview interface. The terminal responds to the input and displays the first image and the target object of the shooting preview interface on the shooting preview interface.
[0061] exist Figure 4 In the illustrated embodiment, after the first image is displayed on the shooting preview interface, a prompt box "Keep the same scene and change the action: OK, exit" pops up on the shooting preview interface. After clicking the "OK" control on the prompt box, the first image and the target object of the current shooting preview interface can be displayed on the shooting preview interface. The target object can be a person, a movable ball, an animal, a remote-controlled toy, etc.
[0062] exist Figure 4 In the illustrated embodiment, after clicking the “Exit” control on the prompt box, the shooting preview interface of the camera is no longer the shooting preview interface.
[0063] In some embodiments, the first input may be a single input, or a combination of multiple input forms such as touch input, key input and combination input, and voice input.
[0064] Step 120 : In response to the first input, acquire a second image based on the viewfinder screen, and obtain a target image, where the target image includes the target object in the second image and the first image.
[0065] In this step, the second image is an image captured after the shooting preview interface displays the first image and the target object of the current scene. The target object in the second image can be a movable object in the shooting preview interface, such as a person, a movable ball, an animal, or a remote-controlled toy.
[0066] In this step, the target object of the second image may be the same as the target object in the first image, for example, the target object of the first image is the player kicking the ball, and the target object in the second image is the player changing the kicking action or position; the target objects in the first image and the second image may also be different, for example, the target object of the first image is the player kicking the ball, and the target object in the second image is a passerby.
[0067] It should be noted that the target object of the first image may also be other movable objects other than people in the shooting preview interface, such as people, animals or remote-controlled toys.
[0068] In this step, the target image is an image in which the target object in the second image and the first image are superimposed and displayed, that is, an image obtained by adding the target object in the second image to the display content of the first image.
[0069] In this step, the first image can be an image taken instantly by a camera, or an image imported from a photo album or other storage device; the first image can be an ordinary photo, or an image containing one or more layers, that is, the first image can be a composite image of multiple images superimposed in sequence.
[0070] In this embodiment, a first input from a user is received, and the terminal displays a target image on a shooting preview interface of the camera in response to the first input.
[0071] In this embodiment, after the camera head recognizes the target object in the current shooting interface, the target image including the target object and the first image display content is automatically displayed in the shooting preview interface.
[0072] exist Figure 5 In the embodiment shown, after the target object (corresponding to the player on the left) is determined in the current viewfinder, the target object and the player on the left are displayed on the shooting preview interface. Figure 3 The target image shown is a target image after superimposing the first image, and the target image includes two layers.
[0073] In some embodiments, the first image may also be a new image obtained on the shooting preview interface. When the target object in the shooting preview interface is updated, the user's input continues to be received to obtain a new second image.
[0074] In this embodiment, the target object update may be to display the same movable object in the shooting preview interface with a new position and action, for example, a player changes to different kicking actions at different positions; the target object update may also be to display another movable object at a different position in the shooting preview interface, for example, a passerby appears near the player's kicking position.
[0075] exist Figure 6In the embodiment shown, after a new target object (corresponding to the passerby on the left) is determined in the current viewfinder, the passerby image and the like are displayed on the shooting preview interface. Figure 5 The target image after the images shown are superimposed contains three layers.
[0076] According to the shooting method provided in the embodiment of the present application, the target image is obtained by continuing to shoot the second image with the first image as the preview image, that is, the target object in the second image is added on the basis of the display content of the first image, so that images with different action forms of the target object can be quickly obtained, the shooting time is shortened, the operation is simple, and the user's camera experience is improved.
[0077] In some embodiments, step 120, obtaining a target image, includes: identifying a target object in a second image; using the second image as an upper layer of the first image, and setting other areas in the second image except the target object to a transparent state.
[0078] In this embodiment, the second image is an image captured after the shooting preview interface displays the first image. The target object in the second image may be a movable object in the shooting preview interface, such as a person, a movable ball, an animal, or a remote-controlled toy, etc. The target object of the second image may be the same as or different from the target object in the first image.
[0079] In this embodiment, the first image may include one or more layers. When the first image includes i (i>0) layers, the second image may be superimposed as a new layer on the i-th layer of the first image, and finally a target image including i+1 layers is obtained.
[0080] In this embodiment, after the camera head recognizes the target object in the second image, it superimposes the second image on the display content of the first image, and sets other areas in the second image except the target object to a transparent state, that is, only the target object is displayed on the second image. In this way, in the target image synthesized by the first image and the second image, only the target object of the second image and the first image are displayed.
[0081] exist Figure 7In the illustrated embodiment, after opening the shooting preview interface of the camera, click the "overlapping shot" control to enter the shooting preview interface, shoot the first image in the shooting preview interface as layer 1, and when layer 1 is displayed on the shooting preview interface, click the "OK" control in the prompt box of "Keep the same scene and change the action: OK, exit" on the shooting preview interface, shoot the second image, and use the second image as layer 2 of the shooting preview interface. After the camera recognizes the target object (corresponding to the person) on layer 2, the transparency of the non-target object area on layer 2 is adjusted to the maximum value (the corresponding value is 100). At this time, the content displayed on the shooting preview interface includes the target object in layer 2 and layer 1, and the operation is repeated in sequence until the exit control is clicked to exit the shooting preview interface after the shooting is completed. In this way, a target image containing at least two layers can be obtained after the shooting is completed.
[0082] In this embodiment, the second image can be set to a transparent state automatically. For example, when the target object in the second image is as follows: Figure 6 When the passerby is shown, the first image is as follows Figure 5 The image shown contains two layers; when the camera recognizes a passerby, it automatically sets the other areas of the second image except the passerby to a transparent state, and then combines Figure 5 The image shown contains two layers. Figure 6 An image with three layers is shown.
[0083] In some embodiments, setting the second image to a transparent state can also be done manually. For example, after obtaining the second image in the shooting preview interface, click the target object to display the setting interface of the second image. In the setting interface, the transparency value of other areas outside the target object is changed to the maximum value, and then click the "Save" control to obtain a composite image of the first image and the second image. The composite image is obtained by superimposing multiple layers.
[0084] According to the shooting method provided in the embodiment of the present application, a composite image is obtained by superimposing the second image on the first image and setting the non-target object area of the second image to a transparent state. Therefore, multiple actions or positions of the target object can be quickly obtained on the first image, thereby reducing the difficulty of user operation.
[0085] In some embodiments, after obtaining the target image, the method further includes: displaying the target image; receiving a second input from a user; and adjusting the transparency of the first target layer in the target image in response to the second input, and updating the target image.
[0086] In this embodiment, the target image is synthesized from a first image and a second image, wherein the first image may be an image comprising one or more layers. When the first image comprises i (i>0) images, the second image may be superimposed as a new layer on the i-th layer of the first image to obtain a new image comprising i+1 layers. The first target layer is one of the at least two layers contained in the target image.
[0087] In this embodiment, the target image can be displayed in the camera shooting preview interface.
[0088] In this embodiment, adjusting the transparency of the first target layer may be adjusting the transparency of the target object in the first target layer, or adjusting the transparency of other areas in the first target layer except the target object; adjusting the transparency may be lowering the transparency of the target object or other areas to make the target object or other areas appear clearer, or increasing the transparency of the target object or other areas or adjusting it to the maximum value to make the target object or other areas appear more blurred or not displayed.
[0089] In this embodiment, the second input is used to adjust the transparency of the first target layer in the target image.
[0090] In this embodiment, the second input may be touch input, physical key input and combination input, voice input and other types of input. Please refer to the above-mentioned first input form for details, which will not be described in detail in this embodiment.
[0091] The following description takes the second input as a touch input and takes adjusting the transparency of the target object of the first target layer as an example.
[0092] In this embodiment, when the target image is displayed on the shooting preview interface of the camera and the first target layer is the second image, the transparency of the target object on the target image is increased by sliding the finger upward on the area where the target object of the second image is located.
[0093] In some embodiments, the second input may be a single input, or a combination of multiple input forms such as touch input, key input and combination input, and voice input.
[0094] like Figure 8-Figure 9 In the illustrated embodiment, the second input may include a first sub-input and a second sub-input.
[0095] In this embodiment, the user's first sub-input is received, and the terminal responds to the first sub-input by displaying a setting list in a blank area on the shooting preview interface; the first sub-input can be a touch input, a physical button and its combination input, a voice input, and other types of input. Please refer to the above-mentioned form of the first input for details, and this embodiment will not be repeated.
[0096] exist Figure 8 In the illustrated embodiment, after the target image is displayed on the shooting preview interface, a "settings" control on the shooting preview interface is clicked to display a setting list on the shooting preview interface.
[0097] In this embodiment, after the background setting list is displayed on the shooting preview interface, the user's second sub-input is received, and the terminal responds to the second sub-input to adjust the transparency of the target objects in each layer of the target image; the second sub-input can be touch input, physical buttons and their combination input, voice input and other types of input, please refer to the form of the first input mentioned above for details, and this embodiment will not be repeated.
[0098] exist Fig. 9 In the illustrated embodiment, after the setting list is displayed on the shooting preview interface, the setting list includes multiple layer identifiers (corresponding to action 1, action 2, action 3 or action 4), which can be the above-mentioned text identifier, or can be other types of identifiers such as pictures and symbols; the transparency value corresponding to the target object of the first image (corresponding to action 1) is modulated to the minimum, and the transparency values corresponding to other actions are kept at the maximum, then the target object corresponding to action 1 can be clearly displayed on the target image, while the target objects corresponding to other actions are not displayed.
[0099] In some embodiments, after receiving the second sub-input from the user, the terminal may also adjust the transparency of other areas in each layer of the target image except the target object in response to the second sub-input.
[0100] In this embodiment, after the setting list is displayed on the shooting preview interface, the transparency value corresponding to action 1 (corresponding to other areas of the first image) is modulated to the minimum, and the transparency values corresponding to other actions are kept at the maximum, then only the other areas corresponding to the first image are displayed on the target image. Similarly, after adjusting the transparency values corresponding to other actions, the transparency of other areas in the corresponding image except the target object can be adjusted, thereby customizing the transparency of different areas of each layer in the target image.
[0101] According to the shooting method provided in the embodiment of the present application, by customizing the transparency of each layer in the target image, the display effect of the target image can be quickly changed, thereby improving the user experience.
[0102] In some embodiments, after obtaining the target image, the method further includes: displaying the target image; receiving a third input from the user; and in response to the third input, deleting or replacing the second target layer in the target image, and updating the target image.
[0103] In this embodiment, the target image is synthesized from a first image and a second image, wherein the first image may include one or more layers. When the first image includes i (i>0) layers, the second image may be superimposed as a new layer on the i-th layer of the first image to obtain a target image including i+1 layers; the second target layer is one of the at least two layers contained in the target image.
[0104] In this embodiment, the target image may be updated by directly deleting the current second target layer.
[0105] In this embodiment, the method for deleting the layer in the target image can be to directly delete the target object of the second target layer by selecting it on the shooting preview interface, for example, long pressing or continuously clicking the target object of the second target layer to delete it, or after opening the layer list on the shooting preview interface, selecting the second target layer to delete it.
[0106] In this embodiment, the third input is used to delete the second target layer in the target image.
[0107] In this embodiment, the third input may be touch input, physical key input and combination input, voice input and other types of input. Please refer to the above-mentioned first input form for details, which will not be described in detail in this embodiment.
[0108] The following description will be given by taking the third input being touch input as an example.
[0109] exist Fig.10 In the illustrated embodiment, after the target image is displayed on the shooting preview interface, when the second target layer is the second image, the second target layer is deleted by long pressing or continuously clicking the area where the target object of the second image (corresponding to the passerby on the far left) is located, and then clicking the Save control to save the updated target image, or clicking the "Exit" control to cancel the changes to the target image.
[0110] In some embodiments, the third input may be a single input or a combination of multiple inputs.
[0111] In some embodiments, the third input may include a third sub-input and a fourth sub-input.
[0112] In this embodiment, the user's third sub-input is received, and the terminal responds to the third sub-input and displays a layer list in a blank area on the shooting preview interface. The layer list includes various layer identifiers. For example, the layer identifier can be a text identifier such as action 1, action 2, action 3 or action 4, or it can be other types of identifiers such as pictures and symbols; the third sub-input can be a touch input, a physical button and its combination input, a voice input and other types of input. Please refer to the form of the first input above for details, and this embodiment will not go into details.
[0113] In this embodiment, after the target image is displayed on the shooting preview interface, the layer control on the shooting preview interface is clicked and the layer list is displayed.
[0114] In this embodiment, after displaying the layer list, the user's fourth sub-input is received, and the terminal responds to the fourth sub-input to delete the second target layer in the target image; the fourth sub-input can be touch input, physical button and its combination input, voice input and other types of input, please refer to the above-mentioned first input form for details, and this embodiment will not be repeated.
[0115] In this embodiment, after the layer list is displayed, the second target layer can be deleted from the target image displayed on the shooting preview interface by clicking the logo of the second target layer (corresponding to action 1).
[0116] In some embodiments, the target image may be updated by reshooting a new image or selecting a new image from an album to replace the current second target layer.
[0117] In this embodiment, the third input is used to obtain a new second target layer.
[0118] In this embodiment, a target image including j (j>1) layers is displayed, the second target layer is the current k (1≤k≤j) layer, the "Replace" control on the shooting preview interface is clicked, the target object is selected on the current viewfinder screen and the "Take Photo" control is clicked to obtain a new image as the new k layer.
[0119] In this embodiment, only the target object in the new image is displayed on the shooting preview interface, and other images in the new image except the target object are displayed as transparent on the shooting preview interface.
[0120] In some embodiments, after displaying a target image including j (j>1) layers and clicking the "Replace" control on the shooting preview interface, a new image can also be selected from an album or other device as the jth layer on the shooting preview interface.
[0121] In some embodiments, the target image may be updated by first deleting the current second target layer and then reshooting the image or selecting an image from an album as a new second target layer.
[0122] In this embodiment, the third input is used to replace the current second target layer.
[0123] In this embodiment, a target image including j (j>1) layers is displayed, and the second target layer is the current kth (1≤k≤j) layer. First, click the "Delete" control on the shooting preview interface to delete the kth layer to obtain a target image including j-1 layers, and then click the "Replace" control on the shooting preview interface, select the target object on the current viewfinder screen and click the "Take Photo" control to obtain a new image as the kth layer. At this time, the second target layer is the new kth layer.
[0124] In some embodiments, a target image including j (j>1) layers is displayed, and the "Delete" control in the shooting preview interface is first clicked to delete the k (1≤k≤j) layer to obtain a target image including j-1 layers, and then a new image is selected from an album or other device as the k layer. At this time, the second target layer is the new k layer.
[0125] According to the shooting method provided in the embodiment of the present application, by deleting or replacing any layer in the target image, the display content of the target image can be updated in real time according to user needs, thereby improving the user experience.
[0126] In some embodiments, after the second target layer in the target image is deleted, a user input is received, a second image is obtained in response to the input, and the target image is updated based on the second image.
[0127] In this embodiment, the second image is an image captured by the shooting preview interface after the second target layer is deleted. The target object in the second image can be a movable object in the shooting preview interface, such as a person, a movable ball, an animal, or a remote-controlled toy, etc. The target object of the second image can be the same as or different from the target object in the first image.
[0128] In this embodiment, the target image may include i-1 (i>1) layers, and the second image may be superimposed as a new layer on the i-1th layer of the target image to obtain a new image including i layers.
[0129] In this embodiment, the second image can be captured by a shooting preview interface. For example, after opening the shooting preview interface of the camera and displaying a target image containing i layers, the camera captures a new image as the second image, and then the second image is stacked as a new layer with the i layers in the target image, thereby updating the target image.
[0130] In this embodiment, the user's input is received, and the terminal responds to the input and displays the target image on the shooting preview interface; the input can be touch input, physical button and its combination input, voice input and other types of input. Please refer to the above-mentioned first input form for details, and this embodiment will not be repeated.
[0131] In this embodiment, when the target image contains i layers, after deleting the j-th (0 < j ≤ i) layer from the target image, the target image is displayed on the shooting preview interface. Then, by clicking the shooting control on the shooting preview interface, a second image is obtained. The second image is then stacked as a new layer on the (i - 1)-th layer of the target image, and only the target object is displayed on the second image, thereby obtaining a new image containing i layers. Thus, the replacement and modification of the target object in the target layer are completed.
[0132] It should be noted that the deletion and addition of each layer in the target image are custom-set according to user needs. It can be not adding a new layer after deleting the target layer, or adding multiple new layers after deleting the target layer, etc.
[0133] According to the shooting method provided by the embodiments of the present application, by adding any layer to the target image, the display content of the target image can be updated in real time according to user needs, improving the user experience.
[0134] Next, the embodiments of the present application will be specifically described from two different implementation perspectives.
[0135] First, the first image is an image taken immediately.
[0136] In this embodiment, a seventh input from the user is received. In response to this input, the terminal displays the first image on the shooting preview interface. The seventh input can be a touch input, a physical button and its combined input, a voice input, and other types of inputs. For specific reference to the form of the above first input, it will not be elaborated in this embodiment.
[0137] In Figure 2 In the shown embodiment, the display interface of the camera includes multiple controls. After clicking the "stacked shooting" control, the shooting preview interface is opened.
[0138] In this embodiment, after the shooting preview interface is opened, the camera takes a view, and then clicks the "take a photo" control, and the first image is displayed on the shooting preview interface.
[0139] In this embodiment, after the first image is displayed on the shooting preview interface, a first input from the user on the shooting preview interface is received. In response to the first input, the terminal displays the target image on the shooting preview interface.
[0140] In Figure 3 In the shown embodiment, after the first image is displayed on the shooting preview interface and the target object in the current scene is determined, click the "take a photo" control on the shooting preview interface to obtain the target image, which can display both the first image and the target object in the current scene.
[0141] Second, the first image is an image determined from the album.
[0142] The first image can have several forms:
[0143] First, the first image is an image taken in a stacking mode and saved in an album.
[0144] In some embodiments, the first image captured in the overlay shooting mode may include one or more layers. When the first image includes i (i>0) layers, after the first image is displayed on the shooting preview interface and the second image is captured, the second image is superimposed on the first image as a new layer, and a target image including i+1 layers can be obtained.
[0145] In some embodiments, before receiving the first input from the user in the shooting preview interface, the method further includes: receiving the fourth input from the user in the album display interface; and determining the first image in the album in response to the fourth input.
[0146] In this embodiment, the album display interface includes multiple historical images, which may be target images obtained by any of the above embodiments, and the image may include one or more layers.
[0147] In this embodiment, the fourth input is used to select a first image from the album display interface.
[0148] In this embodiment, a fourth input from the user is received, and the terminal responds to the fourth input by displaying the first image on the shooting preview interface; the input may be a touch input, a physical button and its combination input, a voice input, or other types of input, and specific reference is made to the form of the first input described above, which will not be repeated in this embodiment.
[0149] exist Fig.11 In the illustrated embodiment, when the first image on the album display interface is the target image obtained in any of the above-mentioned embodiments, after clicking the first image on the album display interface, the first image can be displayed on the shooting preview interface. At this time, after adjusting the shooting parameters of the shooting preview interface to the shooting parameters of the first image, the second image can be directly shot on the shooting preview interface, and a target image containing two layers (corresponding to the first image and the second image) can be obtained.
[0150] According to the shooting method provided in the embodiment of the present application, by selecting a historical image from an album as the first image and displaying it on the shooting preview interface, the display content of the historical image is changed and replaced, thereby improving the user experience.
[0151] Second, the first image is a common image taken by other modes.
[0152] In some embodiments, the first image selected from the album may be an image shot in other modes, for example, the first image is an image shot in panoramic mode or regular mode, and the first image may include only one layer.
[0153] In some embodiments, after determining the first image, the method also includes: obtaining a first shooting parameter of the first image; adjusting the shooting parameter of the camera to the first shooting parameter; the method is applicable to any situation in which the first image is an image shot by a stacking mode and the first image is an ordinary image shot by other modes.
[0154] In this embodiment, the first image may also be an image imported from an album or other storage device. For example, the user selects an image in the album as the first image, and after the user selects the first image, the first image may be displayed in the shooting preview interface.
[0155] In this embodiment, the first shooting parameter is a shooting parameter of the first image. For example, the first shooting parameter may be an aperture parameter, a shutter parameter, a sensitivity, a focal length, a focus distance, etc. when shooting the first image.
[0156] In this embodiment, when the shooting parameters of the first image are different from the shooting parameters corresponding to the camera on the shooting preview interface, the shooting parameters of the camera can be adjusted to the first shooting parameters of the first image, and then the first image is displayed on the shooting preview interface as layer 1, and the second image is shot through the shooting preview interface as layer 2, and layer 2 is superimposed on layer 1 to obtain the target image; when the shooting parameters of the first image are the same as the shooting parameters corresponding to the shooting preview interface of the camera, the second image can be continued to be shot on the shooting preview interface to obtain a target image formed by stacking the first image and the second image.
[0157] According to the shooting method provided in the embodiment of the present application, the shooting parameters of the camera are adjusted to be consistent with the shooting parameters of the first image so that the first image and the second image can be synthesized, thereby realizing the change and replacement of the display content of the first image.
[0158] The shooting method provided in the embodiment of the present application can be executed by a shooting device. In the embodiment of the present application, the shooting method is executed by a shooting device as an example to illustrate the shooting device provided in the embodiment of the present application.
[0159] The embodiment of the present application also provides a photographing device.
[0160] like Fig.12 As shown, the photographing device includes: a first receiving module 1210 and a first processing module 1220.
[0161] A first receiving module 1210 is used to receive a first input from a user in a shooting preview interface, where the shooting preview interface includes a first image and a target object in a framing screen;
[0162] The first processing module 1220 is used to acquire a second image based on the viewfinder image in response to the first input, and obtain a target image, where the target image includes the target object in the second image and the first image.
[0163] According to the shooting device provided in the embodiment of the present application, the target image is obtained by continuing to shoot the second image with the first image as the preview image, that is, the target object in the second image is added on the basis of the display content of the first image, so that images with different action forms of the target object can be quickly obtained, the shooting time is shortened, the operation is simple, and the user's camera experience is improved.
[0164] In some embodiments, the first processing module is further used to identify a target object in the second image; use the second image as an upper layer of the first image, and set other areas in the second image except the target object to a transparent state.
[0165] According to the shooting device provided in the embodiment of the present application, a composite image is obtained by superimposing the second image on the first image and setting the non-target object area of the second image to a transparent state. Therefore, multiple actions or positions of the target object can be quickly obtained on the first image, thereby reducing the difficulty of user operation.
[0166] In some embodiments, the device also includes: a first display module, used to display the target image after obtaining the target image; a second receiving module, used to receive a second input from the user; a second processing module, used to adjust the transparency of the first target layer in the target image in response to the second input, and update the target image.
[0167] According to the shooting device provided in the embodiment of the present application, by customizing the transparency of each layer in the target image, the display effect of the target image can be quickly changed, thereby improving the user experience.
[0168] In some embodiments, the device also includes: a second display module, used to display the target image after obtaining the target image; a third receiving module, used to receive a third input from the user; and a third processing module, used to delete or replace the second target layer in the target image in response to the third input, and update the target image.
[0169] According to the shooting device provided in the embodiment of the present application, by deleting or replacing any layer in the target image, the display content of the target image can be updated in real time according to user needs, thereby improving the user experience.
[0170] In some embodiments, the device also includes: a fourth receiving module, used to receive the user's second input in the album display interface before receiving the user's first input in the shooting preview interface; a fourth processing module, used to determine the first image in the album in response to the second input.
[0171] According to the shooting device provided in the embodiment of the present application, by selecting a historical image from an album as the first image and displaying it on the shooting preview interface, the display content of the historical image can be changed and replaced, thereby improving the user experience.
[0172] In some embodiments, the device further includes: an acquisition module, used to acquire first shooting parameters of the first image after determining the first image; and a fifth processing module, used to adjust the shooting parameters of the camera to the first shooting parameters.
[0173] According to the shooting device provided in the embodiment of the present application, the shooting parameters of the camera are adjusted to be consistent with the shooting parameters of the first image so as to synthesize the first image and the second image, thereby realizing the change and replacement of the display content of the first image.
[0174] The shooting device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0175] The shooting device in the embodiment of the present 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, which are not specifically limited in the embodiment of the present application.
[0176] The shooting device provided in the embodiment of the present application can achieve Figures 1 to 11To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0177] Alternatively, if Fig.13 As shown, an embodiment of the present application also provides an electronic device 1300, including a processor 1301, a memory 1302, and a program or instruction stored in the memory 1302 and executable on the processor 1301. When the program or instruction is executed by the processor 1301, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0178] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0179] Fig.14 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0180] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 14014 and a processor 1410 and other components.
[0181] Those skilled in the art will appreciate that the electronic device 1400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0182] The user input unit 1407 is used to receive a first input from a user in a shooting preview interface, where the shooting preview interface includes a first image and a target object in a framing screen;
[0183] The processor 1410 is configured to acquire a second image based on a viewfinder image in response to a first input, and obtain a target image, where the target image includes a target object in the second image and the first image.
[0184] According to the electronic device provided in the embodiment of the present application, the target image is obtained by continuing to shoot the second image with the first image as the preview image, that is, the target object in the second image is added on the basis of the display content of the first image, so that images with different action forms of the target object can be quickly obtained, the shooting time is shortened, the operation is simple, and the user's camera experience is improved.
[0185] Optionally, the processor 1410 is further configured to identify a target object in the second image; use the second image as an upper layer of the first image, and set other areas in the second image except the target object to a transparent state.
[0186] According to the electronic device provided in an embodiment of the present application, a composite image is obtained by superimposing a second image on a first image and setting a non-target object area of the second image to a transparent state. This allows multiple actions or positions of the target object to be quickly obtained on the first image, thereby reducing the difficulty of user operation.
[0187] Optionally, the display unit 1406 is used to display the target image after obtaining the target image;
[0188] The user input unit 1407 is further used to receive a second input from the user;
[0189] The processor 1410 is further configured to adjust the transparency of the first target layer in the target image in response to the second input, and update the target image.
[0190] According to the electronic device provided in the embodiment of the present application, by customizing the transparency of each layer in the target image, the display effect of the target image can be quickly changed, thereby improving the user experience.
[0191] Optionally, the display unit 1406 is further configured to display the target image after obtaining the target image;
[0192] The user input unit 1407 is further used to receive a third input from the user;
[0193] Processor 1410 is further configured to delete or replace the second target layer in the target image and update the target image in response to a third input.
[0194] According to the electronic device provided in the embodiment of the present application, by deleting or replacing any layer in the target image, the display content of the target image can be updated in real time according to user needs, thereby improving the user experience.
[0195] Optionally, the user input unit 1407 is further configured to receive a second input from the user in the album display interface before receiving a first input from the user in the shooting preview interface;
[0196] The processor 1410 is further configured to determine the first image in the photo album in response to the second input.
[0197] According to the electronic device provided in the embodiment of the present application, by selecting a historical image from an album as the first image and displaying it on the shooting preview interface, the display content of the historical image is changed and replaced, thereby improving the user experience.
[0198] Optionally, the processor 1410 is configured to obtain a first shooting parameter of the first image after determining the first image;
[0199] The processor 1410 is further configured to adjust the shooting parameters of the camera to the first shooting parameters.
[0200] According to the electronic device provided by the embodiment of the present application, the shooting parameters of the camera are adjusted to be consistent with the shooting parameters of the first image so as to synthesize the first image and the second image, thereby realizing the change and replacement of the display content of the first image.
[0201] It should be understood that in the embodiment of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1407 includes a touch panel 14071 and at least one of other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0202] The memory 1409 can be used to store software programs and various data. The memory 1409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0203] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.
[0204] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0205] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0206] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0207] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0208] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0209] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0210] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting method, characterized in that: include: Receiving a first input from a user in a shooting preview interface, wherein the shooting preview interface includes a first image and a target object in a viewfinder, wherein the first image includes an image shot in a stacked shooting mode and saved in an album or a normal image shot in other modes; In response to the first input, a second image is acquired based on the viewfinder, and a target image is obtained, wherein the target image includes a target object in the second image and the first image; the target objects in the first image and the second image are different; Before receiving a first input from a user in the shooting preview interface, the method further includes: Receiving a fourth input from the user on the album display interface; In response to the fourth input, determining the first image on the album display interface, and displaying the first image on the shooting preview interface; After determining the first image, the method further includes: Acquire a first shooting parameter of the first image; The shooting parameters of the camera are adjusted to the first shooting parameters.
2. The shooting method according to claim 1, characterized in that: The step of obtaining the target image comprises: identifying a target object in the second image; The second image is used as an upper layer of the first image, and other areas of the second image except the target object are set to a transparent state.
3. The shooting method according to claim 2, characterized in that: After obtaining the target image, the method further includes: displaying the target image; receiving a second input from the user; In response to the second input, the transparency of the first target layer in the target image is adjusted, and the target image is updated.
4. The shooting method according to claim 2, characterized in that: After obtaining the target image, the method further includes: displaying the target image; receiving a third input from the user; In response to the third input, the second target layer in the target image is deleted or replaced, and the target image is updated.
5. A photographing device, characterized in that: include: A first receiving module, configured to receive a first input from a user in a shooting preview interface, wherein the shooting preview interface includes a first image and a target object in a viewfinder, wherein the first image includes an image shot in a stacked shooting mode and saved in an album or an ordinary image shot in other modes; a first processing module, configured to acquire a second image based on the viewfinder in response to the first input, and obtain a target image, wherein the target image includes a target object in the second image and the first image; the target objects in the first image and the second image are different; A fourth receiving module, configured to receive a fourth input from the user on the album display interface before receiving the first input from the user on the shooting preview interface; a fourth processing module, configured to respond to the fourth input, determine the first image on the album display interface, and display the first image on the shooting preview interface; an acquisition module, configured to acquire a first shooting parameter of the first image after the first image is determined; The fifth processing module is used to adjust the shooting parameters of the camera to the first shooting parameters.
6. The photographing device according to claim 5, characterized in that: The first processing module is further used to identify a target object in the second image; use the second image as an upper layer of the first image, and set other areas in the second image except the target object to a transparent state.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 4 are implemented.
8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Image processing method and terminal
CN107295272A
Image shooting method, image shooting device and storage medium
CN111586296A