Shooting method, device and electronic equipment
By displaying and adjusting the thumbnails of the subject in the shooting preview interface, the problem of messy shooting background or other object interference is solved, and image output that can meet user needs during shooting is achieved, reducing the need for post-processing.
Patent Information
- Application Number
- CN202210764905.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2042-06-29
AI Technical Summary
When shooting, users often face the problem of interference from other objects in the shooting scene or the background is too messy, which leads to the shooting images not meeting user requirements and requires post-processing to meet the needs.
By displaying the thumbnail of the photographing object in the shooting preview interface, receiving user input to the target object, updating the layout information of the target object, and outputting the target image based on the updated layout information.
During shooting, you can adjust the layout in the shooting preview interface in advance, thereby shooting images that meet user needs, reducing the need for post-processing and improving user experience.
Smart Images

Figure CN115118884B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of photography, and specifically relates to a photography method, device and electronic equipment. Background Art
[0002] When taking pictures, users often encounter problems such as interference from other objects in the shooting scene or an overly messy background. When encountering such problems, users can only take images that do not meet their requirements. After taking the images, they need to post-process the images to obtain photos that meet the user's requirements, resulting in a poor user experience. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a shooting method, device and electronic device, which can solve the problem of messy shooting background or interference from other objects.
[0004] In a first aspect, an embodiment of the present application provides a shooting method, which is applied to a shooting device, and the method includes: in response to a first input of a user to a first shooting preview interface, displaying at least one thumbnail of a shooting object, receiving a second input of the user to a target object, wherein the target object is an object corresponding to the target thumbnail in the at least one shooting object thumbnail, and in response to the second input, updating the layout information of the target object in the first shooting preview interface, and outputting a target image based on the updated layout information.
[0005] In a second aspect, an embodiment of the present application provides a shooting device, which includes: a first response module, used to display at least one thumbnail of a shooting object in response to a first input of a user to a first shooting preview interface, a first receiving module, used to receive a second input of a user to a target object, wherein the target object is an object corresponding to the target thumbnail in the at least one shooting object thumbnail, a second response module, used to update the layout information of the target object in the first shooting preview interface in response to the second input, and an output module, wherein the user outputs the target image based on the updated layout information.
[0006] 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.
[0007] 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.
[0008] 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.
[0009] 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.
[0010] In the embodiment of the present application, in response to the user's first input in the shooting preview interface, a thumbnail of the shooting object in the interface is displayed, and the user's second input of at least one shooting object corresponding to the thumbnail is received, the layout information of the target object in the shooting preview interface is updated, and the target image is output based on the updated layout information. In this way, the layout can be adjusted in the shooting preview interface in advance when shooting, so as to shoot an image that meets the user's needs without the user having to process it later. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a flow chart of a shooting method provided by an embodiment of the present application;
[0012] Figure 2 is a schematic diagram of a shooting preview interface provided in an embodiment of the present application;
[0013] Figure 3 is a schematic diagram of a shooting preview interface after updating layout information provided in an embodiment of the present application;
[0014] Figure 4 is a schematic diagram of a shooting preview interface provided in an embodiment of the present application;
[0015] Figure 5 is a schematic diagram of the sum vector provided in the embodiment of the present application;
[0016] Figure 6 is a schematic diagram of a shooting preview interface provided in an embodiment of the present application;
[0017] Figure 7 is a schematic diagram of a shooting preview interface after adding a spherical perspective special effect provided in an embodiment of the present application;
[0018] Figure 8 is a structural schematic diagram of a photographing device provided in an embodiment of the present application;
[0019] Fig. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0020] Fig.10 It is a schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0021] 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.
[0022] 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.
[0023] The following is a detailed description of the shooting method provided in the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0024] Please see Figure 1 , Figure 1 1 is a flow chart of a shooting method according to an embodiment of the present disclosure. The method can be applied to a shooting device, which can be a mobile phone, a tablet computer, a camera, etc. Figure 1 As shown, the method includes steps S11 to S14.
[0025] Step S11: in response to a first input of a user to a first shooting preview interface, display at least one thumbnail of a shooting object.
[0026] In this embodiment, the shooting preview interface can be a preview interface of the shooting image when the user is shooting. For example, when the user shoots with a mobile phone, the real-time image interface shot by the camera displayed on the mobile phone screen before shooting is the shooting preview interface.
[0027] In an example of this embodiment, the user's first input to the shooting preview interface may be an input for the user to enter the layout adjustment mode and display a thumbnail of the photographed object. The user's first input to the shooting device may be an input for the user to enter the layout adjustment mode by touching and clicking, or the user may enter the layout adjustment mode by interactive means such as voice or touch and click.
[0028] In an example of this embodiment, the shooting object may be a specific object in the shooting preview interface, such as Figure 2 The portrait 21, the shorter tree 22, the taller tree 23, etc. In another example, the photographing object may also be the entire image displayed in the shooting preview interface.
[0029] In an example of this embodiment, in response to a user's first input to the shooting preview interface, the shooting preview interface may display a thumbnail of at least one shooting object. Figure 2 As shown, in the first shooting preview interface, based on the image recognition algorithm, the portrait 21, the shorter tree 22, the taller tree 23 and the overall image displayed in the shooting preview interface can be identified as shooting objects. At this time, a thumbnail 24 of the portrait, a thumbnail 25 of the shorter tree, a thumbnail 26 of the taller tree and a thumbnail 27 of the image displayed in the interface can be displayed on the shooting preview image respectively, so that the user can know which shooting objects are included in the shooting preview image after seeing the thumbnails.
[0030] Step S12, receiving a second input of a target object from a user, where the target object is an object corresponding to a target thumbnail in at least one thumbnail of a photographed object.
[0031] In an example of this embodiment, the second input of the user to the target object may be a drag input to a specific object, for example, Figure 2 As shown, the user's second input to the target object may be a drag input of a higher tree in the thumbnail image.
[0032] Step S13: in response to the second input, updating the layout information of the target object in the first shooting preview interface.
[0033] Step S14: outputting the target image based on the updated layout information.
[0034] In an example of this embodiment, the layout information may be updated by difference, optical flow, classification, clustering, and the like.
[0035] In an example of this embodiment, after receiving the second input of the user to the target image, the layout information in the shooting preview interface can be updated according to the second input of the user, for example, Figure 2 As shown, when the second input of the user to the target object is a drag input of the higher tree 23, the photographing device can update the position layout of the higher tree 23 in response to the drag input, and move the higher tree to the position dragged by the user. The effect after the move is as shown in FIG. Figure 3 After the layout information is updated, the photographing device outputs the target image after the layout is changed.
[0036] In this example, in response to the user's first input in the shooting preview interface, a thumbnail of the shooting object in the interface is displayed, and the user's second input of at least one shooting object corresponding to the thumbnail is received, the layout information of the target object in the shooting preview interface is updated, and the target image is output based on the updated layout information. In this way, the layout can be adjusted in the shooting preview interface in advance when shooting, so as to shoot an image that meets the user's needs without the user having to process it later.
[0037] In an example of this embodiment, the shooting device includes a first camera, and in response to a first input from a user to a first shooting preview interface, before displaying at least one thumbnail of the shooting object, the method also includes: receiving a third input from the user to a moving object in a second shooting preview interface; in response to the third input, determining movement parameter information of the first camera based on movement information of the moving object; controlling the first camera to move according to the movement parameter information, and displaying the first shooting preview interface.
[0038] In an example of this embodiment, the user's third input on the moving object in the second shooting preview interface may be a selection input of the user selecting the moving object in the shooting preview interface, such as the user clicking on the moving object in the shooting preview interface.
[0039] In an example of this embodiment, the moving object is any object that is displayed in motion in the shooting preview interface. The moving object and the target object may be the same object or different objects.
[0040] In an example of this embodiment, the motion information includes a motion direction and a motion speed, the motion parameter information includes a motion direction and a motion amplitude, and the motion parameter information of the first camera is determined based on the motion information of the moving object, including: determining the moving direction and the moving amplitude of the first camera according to the motion direction and the motion speed of the moving object, so that the moving object is displayed within a preset range of the first shooting preview interface.
[0041] In an example of this embodiment, the movement parameter information of the first camera may be the movement direction, movement amplitude or rotation angle of the camera.
[0042] In an example of this embodiment, the moving direction and speed of the moving object can be determined based on the position and focus distance of the moving object in the shooting preview interface. For example, in the current frame of the shooting preview interface, the moving object is at position A of the current frame, and in the previous frame of the current frame, the moving object is at position B of the previous frame. Based on position A and position B, it can be determined that the moving direction of the moving object is from B to A, and based on the distance between the pixels of position A and position B and the focus distance of the preview image, it can be determined that the actual moving distance of the moving object is, and based on the frame rate of the preview image, the time interval between the current frame and the previous frame, that is, the time interval between position A and position B, can also be determined, and then the moving speed of the moving object can be determined.
[0043] In an example of this embodiment, the camera may be an optical image stabilization camera or other camera whose position can be adjusted.
[0044] In an example of this embodiment, after obtaining the movement direction and speed of the moving object, the movement direction and movement amplitude of the camera can be further determined so that the camera can move with the moving object, so that the moving object is always displayed within the preset range of the shooting preview interface and remains clear.
[0045] In an example of this embodiment, after determining the moving distance and moving amplitude of the camera, the camera can be controlled to move at intervals of obtaining preview images, that is, the camera is moved between obtaining the current frame preview image and obtaining the next frame preview image.
[0046] In an example of this embodiment, after the camera moves according to the moving direction and the moving amplitude, the camera can be controlled to capture an image. Since the camera moves according to the moving direction and the moving speed of the moving object, the moving object itself in the captured image to be processed is already clear and remains in the image.
[0047] In an example of this embodiment, before displaying the first shooting preview interface, the method also includes: obtaining boundary pixels of the image area where the moving object is located, and processing the boundary pixels based on at least one first image, wherein the first image is an image captured before receiving the user's third input on the moving object in the second shooting preview interface.
[0048] In an example of the present embodiment, after the camera moves according to the movement of the moving object and captures a preview image, before the preview image is displayed on the first shooting preview interface, the boundary of the moving object may be unclear. At this time, the boundary pixels of the area where the moving object is located can be obtained. For example, the boundary of the moving part is identified by a dynamic visual sensor, and the boundary pixels of the moving part in the preview screen are output. The boundary pixels of the moving part include the pixel value of the boundary of the moving part and the corresponding position of the pixel value in the preview image.
[0049] After obtaining the boundary pixels of the moving object, the moving boundary pixels can be processed through the preview image captured by the camera before receiving the user's third input. Specifically, the moving object and the boundary pixels of the moving object can be obtained from the preview image, and the boundary pixels of the moving object in the image captured by the camera after motion stabilization can be further processed. For example, the clearer boundary pixels obtained from the preview image can be synthesized with the corresponding pixels of the moving object in the image captured by the camera after motion stabilization, so that the boundary of the moving object in the image is smoother and clearer.
[0050] In this example, after determining the moving object in the shooting preview interface, the camera can be controlled to follow the moving object according to the moving direction and speed of the moving object, so that the moving object is always within the preset range of the shooting preview interface and remains clear, and the boundary information of the moving object obtained from the preview image is processed in the captured image and then displayed in the shooting preview interface, so as to capture a clear and complete image of the moving object. This is convenient for users to use and improves the user's interactive experience.
[0051] In an example of the present embodiment, the moving objects include a first moving object and a second moving object, and the moving direction and moving amplitude of the first camera are determined according to the moving direction and moving speed of the moving objects, including: determining a first velocity vector of the first moving object according to the moving direction and moving speed of the first moving object, determining a second velocity vector of the second moving object according to the moving direction and moving speed of the second moving object, obtaining a sum vector of the first velocity vector and the second velocity vector, and determining the moving direction and moving amplitude of the first camera according to the sum vector.
[0052] In an example of the present embodiment, when there are two moving objects in the image, the velocity vector of each moving object can be obtained based on the moving direction and moving speed of each moving object, wherein the direction of the velocity vector is the moving direction, and the magnitude of the velocity vector is the magnitude of the moving speed. After obtaining the velocity vector of each moving object, the sum vector can be obtained based on the vector sum of all velocity vectors to determine the direction and magnitude of the camera movement. The direction of the lens camera movement can be determined based on the direction of the sum vector, and the magnitude of the lens camera movement can be determined based on the magnitude of the sum vector. For example, the first moving object is a person 31, and the second moving object is a bicycle 32. The moving directions of the moving objects are as follows: Figure 4 As shown in the arrow direction, the movement direction of the person 31 is from right to left, and the movement direction of the bicycle 32 is from top to bottom. At this time, the first velocity vector, the second velocity vector, and the sum vector can be determined according to the movement direction and movement speed of the first moving object and the movement direction and movement speed of the second moving object. Figure 5 shown.
[0053] In this example, when there are multiple moving objects, the movement direction and amplitude of the lens camera can be determined according to the sum vector of the velocity vector of each moving object. In this way, the user can capture clear images containing multiple moving objects, thereby improving the user experience.
[0054] In an example of this embodiment, after determining the movement parameter information of the first camera, the method further includes: displaying trajectory information, where the trajectory information includes at least one of the following: movement trajectory information of the moving object; movement trajectory information of the camera.
[0055] In an example of this embodiment, after the movement parameter information of the camera is determined, at least one of the motion trajectory information of the moving object and the camera movement trajectory information can also be displayed on the shooting preview interface. The motion trajectory information can include the movement direction, amplitude and motion trajectory of the moving object, and the camera movement trajectory includes the camera movement direction, amplitude and movement trajectory.
[0056] In this example, by displaying the motion trajectory of the moving object and the movement trajectory information of the camera on the shooting preview interface, the user can better understand the movement of the moving object or the movement of the camera during the entire shooting process, thereby enhancing the user's shooting interest and interactive experience.
[0057] In an example of this embodiment, the shooting device also includes a second camera. After updating the layout information of the target object in the first shooting preview interface, the method also includes: during the movement of the first camera, controlling the second camera to capture at least two second images, and generating a target file based on the at least two second images, the target file including at least one of the following: image, video.
[0058] In an example of this embodiment, the shooting device may include two independent cameras, wherein the first camera may move according to the movement of the moving object and shoot a preview image to display on the first shooting preview interface, while the second camera does not move with the moving object and directly shoots the image.
[0059] In an example of this embodiment, the shooting preview interfaces of the first camera and the second camera can be displayed simultaneously on the display screen of the shooting device.
[0060] In an example of the present embodiment, after the user changes the layout information in the first shooting preview interface, the layout information in the shooting preview interface of the second camera can be updated according to the layout information in the first shooting preview interface. For example, in the first shooting preview interface, the position of the taller tree is updated from position A to position B. At this time, the same tree in the shooting preview interface of the second camera can also be moved from position A to position B.
[0061] In an example of this embodiment, the first camera is continuously moving with the moving object and continuously updating the preview image in the first shooting preview interface. During the movement of the first camera, the second camera can capture at least two second images, and generate a target file based on the at least two second images. The target file can be an image file, that is, the captured second image. The target file can also be a video file, and the video file can be synthesized based on the at least two captured second images to synthesize a dynamic video in which the scene is stationary and the moving object moves.
[0062] In this example, the second camera in the shooting device can be used to shoot images of changed layout information to generate images or videos, and obtain images and videos with fixed scenes and the camera not following the movement of moving objects. This can be applied to more scenarios and improve the user's interactive experience.
[0063] In an example of this embodiment, updating the layout information of the target object in the first shooting preview interface includes: displaying a target special effect in the first shooting preview interface, where the target special effect is determined based on an input parameter of the second input.
[0064] In an example of this embodiment, the target special effect displayed in the first shooting preview interface may be a lightning special effect, a ghost special effect, a fireworks special effect, or a spherical perspective special effect, etc. Specifically, each special effect may correspond to different input parameters of the second input. For example, the first preview interface includes a portrait 21, a shorter tree 22, and a taller tree 23. Figure 6 As shown, when the user's second input is sliding in a clockwise circle, the corresponding target special effect is a spherical perspective special effect. At this time, in response to the user's second input, a spherical perspective special effect is added to the first shooting preview interface. The schematic diagram after adding the special effect is as shown in FIG. Figure 7 shown.
[0065] In this example, the target special effects displayed in the first shooting preview interface can be determined according to the preset input parameters of the second input, so as to obtain more diverse and interesting images, meet the diversified needs of users, and enhance the user experience.
[0066] 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 performed by the shooting device is taken as an example to illustrate the shooting device provided in the embodiment of the present application.
[0067] Corresponding to the above embodiment, see Figure 8 The embodiment of the present application further provides a photographing device 100, including:
[0068] A first response module 110, configured to display at least one thumbnail of a photographing object in response to a first input of a user to a first photographing preview interface;
[0069] The first receiving module 120 is used to receive a second input of a target object from a user, where the target object is an object corresponding to a target thumbnail in at least one thumbnail of a photographed object;
[0070] A second response module 130, configured to update layout information of the target object in the first shooting preview interface in response to the second input;
[0071] The output module 140 allows the user to output the target image based on the updated layout information.
[0072] Optionally, the shooting device includes a first camera, and in response to a first input of a user to a first shooting preview interface, before displaying at least one thumbnail of a shooting object, the device further includes: a second receiving module, used to receive a third input of a user to a moving object in a second shooting preview interface; in response to the third input, based on the motion information of the moving object, determining the movement parameter information of the first camera. A first control module, used to control the first camera to move according to the movement parameter information, and display the first shooting preview interface.
[0073] Optionally, the motion information includes motion direction and motion speed, the motion parameter information includes motion direction and motion amplitude, and the second receiving module is also used to determine the motion direction and motion amplitude of the first camera according to the motion direction and motion speed of the moving object, so that the moving object is displayed within a preset range of the first shooting preview interface.
[0074] Optionally, before displaying the first shooting preview interface, the device also includes: a first acquisition module, used to acquire boundary pixels of the image area where the moving object is located, and a first processing module, used to process the boundary pixels based on at least one first image; wherein the first image is an image captured before receiving the user's third input on the moving object in the second shooting preview interface.
[0075] Optionally, after determining the movement parameter information of the first camera, the device further includes: a first display module, used to display trajectory information, where the trajectory information includes at least one of the following: movement trajectory information of the moving object; movement trajectory information of the camera.
[0076] Optionally, the shooting device also includes a second camera. After updating the layout information of the target object in the first shooting preview interface, the device also includes: a second control module, used to control the second camera to capture at least two second images during the movement of the first camera; a first generation module, used to generate a target file based on at least two second images, and the target file includes at least one of the following: image, video.
[0077] Optionally, the second response module is further used to: display a target special effect in the first shooting preview interface, where the target special effect is determined based on an input parameter of the second input.
[0078] Optionally, the moving object includes a first moving object and a second moving object, and the second receiving module is further used to determine a first velocity vector of the first moving object according to the moving direction and speed of the first moving object, determine a second velocity vector of the second moving object according to the moving direction and speed of the second moving object, obtain a sum vector of the first velocity vector and the second velocity vector, and determine a moving direction and amplitude of the first camera according to the sum vector.
[0079] In the embodiment of the present application, in response to the user's first input in the shooting preview interface, a thumbnail of the shooting object in the interface is displayed, and the user's second input of at least one shooting object corresponding to the thumbnail is received, the layout information of the target object in the shooting preview interface is updated, and the target image is output based on the updated layout information. In this way, the image after the layout adjustment can be determined in advance in the shooting preview interface during shooting, so that an image that meets the user's needs can be shot without the user having to process it later.
[0080] The photographing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0081] 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.
[0082] The shooting device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0083] Corresponding to the above embodiment, optionally, as Fig. 9 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, 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.
[0084] 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.
[0085] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0086] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.
[0087] Those skilled in the art will appreciate that the electronic device 900 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 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 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.
[0088] The display unit 906 is used to display at least one thumbnail of the photographed object in response to a first input of the user to the first shooting preview interface. The user input unit 907 is used to receive a second input of the user to a target object, where the target object is an object corresponding to the target thumbnail in at least one thumbnail of the photographed object. The processor 910 updates the layout information of the target object in the first shooting preview interface in response to the second input, and outputs the target image based on the updated layout information.
[0089] Optionally, the shooting device includes a first camera, and in response to a user's first input to a first shooting preview interface, before displaying at least one thumbnail of the shooting object, a user input unit 907 is used to receive a third input from the user to a moving object in a second shooting preview interface, and a processor 910 is used to determine, in response to the third input, movement parameter information of the first camera based on movement information of the moving object, control the first camera to move according to the movement parameter information, and display the first shooting preview interface.
[0090] Optionally, the motion information includes motion direction and motion speed, the motion parameter information includes motion direction and motion amplitude, and the processor 910 is further used to determine the motion direction and motion amplitude of the first camera according to the motion direction and motion speed of the moving object, so that the moving object is displayed within a preset range of the first shooting preview interface.
[0091] Optionally, the processor 910 is also used to obtain boundary pixels of the image area where the moving object is located before displaying the first shooting preview interface, and process the boundary pixels based on at least one first image, wherein the first image is an image captured before receiving the user's third input on the moving object in the second shooting preview interface.
[0092] Optionally, after determining the movement parameter information of the first camera, the display unit 906 is further used to display trajectory information, where the trajectory information includes at least one of the following: movement trajectory information of the moving object; and movement trajectory information of the camera.
[0093] Optionally, the shooting device also includes a second camera, and the processor 910 is also used to control the second camera to capture at least two second images during the movement of the first camera after updating the layout information of the target object in the first shooting preview interface; generate a target file based on the at least two second images, and the target file includes at least one of the following: image, video.
[0094] Optionally, the display unit 906 is further configured to display a target special effect in the first shooting preview interface, where the target special effect is determined based on an input parameter of the second input.
[0095] Optionally, the moving object includes a first moving object and a second moving object, and the processor 910 is further used to determine a first velocity vector of the first moving object according to the moving direction and speed of the first moving object, determine a second velocity vector of the second moving object according to the moving direction and speed of the second moving object, obtain a sum vector of the first velocity vector and the second velocity vector, and determine a moving direction and a moving amplitude of the first camera according to the sum vector.
[0096] In the embodiment of the present application, in response to the user's first input in the shooting preview interface, a thumbnail of the shooting object in the interface is displayed, and the user's second input of at least one shooting object corresponding to the thumbnail is received, the layout information of the target object in the shooting preview interface is updated, and the target image is output based on the updated layout information. In this way, the image after the layout adjustment can be determined in advance in the shooting preview interface during shooting, so that an image that meets the user's needs can be shot without the user having to process it later.
[0097] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 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 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.
[0098] 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.
[0099] The processor is a 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.
[0100] 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.
[0101] 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.
[0102] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor 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.
[0103] 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.
[0104] 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.
[0105] 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, applied to a shooting device, characterized in that: The method comprises: receiving a third input from a user on a moving object in the second shooting preview interface, where the moving object includes a first moving object and a second moving object; In response to the third input, determining a first velocity vector of the first moving object according to the moving direction and moving speed of the first moving object; determining a second velocity vector of the second moving object according to the moving direction and moving speed of the second moving object; Obtaining a sum vector of the first velocity vector and the second velocity vector, and determining movement parameter information of the first camera according to the sum vector, so that the moving object is displayed within a preset range of the first shooting preview interface; wherein the movement parameter information includes a movement direction and a movement amplitude; Controlling the first camera to move according to the movement parameter information, and displaying a first shooting preview interface; In response to a first input of a user to a first shooting preview interface, displaying at least one thumbnail of a shooting object; receiving a second input of a target object by a user, wherein the target object is an object corresponding to a target thumbnail in the at least one photographed object thumbnail; In response to the second input, updating layout information of the target object in the first shooting preview interface; Based on the updated layout information, a target image is output.
2. The method according to claim 1, characterized in that Before displaying the first shooting preview interface, the method further includes: Acquire boundary pixels of the image area where the moving object is located; Based on at least one first image, processing the boundary pixels; The first image is an image captured before receiving a third input from a user on the moving object in the second shooting preview interface.
3. The method according to claim 1, characterized in that After determining the movement parameter information of the first camera, the method further includes: Display trajectory information, where the trajectory information includes at least one of the following: motion trajectory information of the moving object; and movement trajectory information of the camera.
4. The method according to claim 1, characterized in that: The shooting device further includes a second camera. After updating the layout information of the target object in the first shooting preview interface, the method further includes: During the movement of the first camera, controlling the second camera to capture at least two second images; A target file is generated according to the at least two second images, and the target file includes at least one of the following: an image and a video.
5. The method according to claim 1, characterized in that The updating of the layout information of the target object in the first shooting preview interface includes: A target special effect is displayed in the first shooting preview interface, where the target special effect is determined based on an input parameter of the second input.
6. A photographing device, comprising: A second receiving module is used to receive a third input from a user on a moving object in the second shooting preview interface, where the moving object includes a first moving object and a second moving object; In response to the third input, determining a first velocity vector of the first moving object according to the moving direction and moving speed of the first moving object; determining a second velocity vector of the second moving object according to the moving direction and moving speed of the second moving object; Obtaining a sum vector of the first velocity vector and the second velocity vector, and determining movement parameter information of the first camera according to the sum vector, so that the moving object is displayed within a preset range of the first shooting preview interface; wherein the movement parameter information includes a movement direction and a movement amplitude; A first control module, used for controlling the first camera to move according to the movement parameter information and displaying a first shooting preview interface; A first response module, configured to display at least one thumbnail of a photographing object in response to a first input of a user to a first photographing preview interface; A first receiving module is used to receive a second input of a target object from a user, where the target object is an object corresponding to the target thumbnail in the at least one photographed object thumbnail; A second response module, configured to update layout information of the target object in the first shooting preview interface in response to the second input; Output module, the user outputs the target image based on the updated layout information.
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 5 are implemented.
Citation Information
Patent Citations
Object processing method and terminal
CN110519512A