CN112702497B - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN112702497B
CN112702497B CN202011589469.5A CN202011589469A CN112702497B CN 112702497 B CN112702497 B CN 112702497B CN 202011589469 A CN202011589469 A CN 202011589469A CN 112702497 B CN112702497 B CN 112702497B
Authority
CN
China
Prior art keywords
shooting
input
image
track
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011589469.5A
Other languages
Chinese (zh)
Other versions
CN112702497A (en
Inventor
陈权
邓智桂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011589469.5A priority Critical patent/CN112702497B/en
Publication of CN112702497A publication Critical patent/CN112702497A/en
Application granted granted Critical
Publication of CN112702497B publication Critical patent/CN112702497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a shooting method and device, and belongs to the technical field of camera shooting. The method is applied to electronic equipment, wherein the electronic equipment comprises a rotatable camera, and the method comprises the following steps: receiving a first input of a user to the preview image; determining a shooting object and a shooting track in response to the first input; focusing shooting is carried out on the shot object to obtain a first image; controlling the camera to rotate according to the shooting track, and simultaneously carrying out long exposure shooting on the shot object to obtain a second image; extracting a motion trail diagram of the shooting object from the second image; and synthesizing the motion trail graph and the first image to obtain a target image. The shooting method provided by the embodiment of the application can quickly shoot the special effect image which has the clear shot object and the motion trail of the shot object.

Description

Shooting method and device
Technical Field
The application belongs to the technical field of camera shooting, and particularly relates to a shooting method and device.
Background
Currently, with the development of photography technology, people often add a motion trail to a photographed object, and the photographed object presents delayed and shocked effects to a viewer.
For example, for a moving object, the motion track of the moving object is shot by using a long exposure mode; and for a static object, a motion track is created in a post-processing mode through image software.
However, the conventional method for generating a motion trajectory by using a long exposure has a high failure rate, and the processing of the post-effect by using image software not only consumes processing time and energy, but also cannot immediately present the shooting effect of the motion trajectory.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, which can solve the problem that an image with a dynamic effect cannot be shot timely and efficiently in the existing shooting mode.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a shooting method, which is applied to an electronic device including a rotatable camera, where the method includes:
receiving a first input of a user to the preview image;
determining a shooting object and a shooting track in response to the first input;
focusing shooting is carried out on the shot object to obtain a first image;
controlling the camera to rotate according to the shooting track, and simultaneously carrying out long exposure shooting on the shot object to obtain a second image;
extracting a motion trail diagram of the shooting object from the second image;
and synthesizing the motion trail graph and the first image to obtain a target image.
In a second aspect, an embodiment of the present application provides a shooting apparatus, where the shooting apparatus is applied to an electronic device, where the electronic device includes a rotatable camera, and the apparatus includes:
the receiving module is used for receiving a first input of a user to the preview image;
the determining module is used for responding to the first input and determining a shooting object and a shooting track;
the first shooting module is used for carrying out focusing shooting on the shooting object to obtain a first image;
the second shooting module is used for controlling the camera to rotate according to the shooting track and simultaneously carrying out long exposure shooting on the shot object to obtain a second image;
the extraction module is used for extracting a motion trail graph of the shooting object from the second image;
and the synthesis module is used for synthesizing the motion trail graph and the first image to obtain a target image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a shooting object and a shooting track are determined by receiving first input of a user on a preview image; focusing shooting is carried out on a shot object to obtain a first image; then controlling the camera to rotate according to the shooting track and simultaneously carrying out long exposure shooting on the shot object to obtain a second image; and then extracting a motion trail diagram of the shooting object from the second image, and synthesizing the motion trail diagram into the first image so as to generate a target image. In the shooting mode, the electronic equipment firstly focuses and shoots the shot object, then obtains the motion trail diagram of the shot object by controlling the camera to rotate and carrying out long exposure shooting on the shot object, and then automatically synthesizes the motion trail diagram with the first image obtained by focusing and shooting, thereby quickly shooting and obtaining the special effect diagram which has a clear shot object and the motion trail of the shot object.
Drawings
Fig. 1 is a flowchart illustrating steps of a photographing method according to an embodiment of the present application;
fig. 2 is an execution schematic diagram of a shooting method provided by an embodiment of the present application;
FIG. 3 is a schematic view of the focusing effect of the candle in the embodiment of the present application;
FIG. 4 is a schematic diagram of the long exposure shot of the candle in the embodiment of the present application;
FIG. 5 is a schematic view of the shooting effect when the motion trail of the candle is shot according to the embodiment of the application;
fig. 6 is a schematic structural diagram of a shooting device provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a shooting method provided in an embodiment of the present application is shown, where the shooting method is applied to an electronic device including a rotatable camera, and the method may include steps S100 to S600.
In the embodiment of the application, the shooting method is applied to the electronic equipment with the display screen and the rotatable camera. The electronic equipment is provided with a rotatable camera so as to enable a static shooting object to operate relative to the camera by controlling the camera to rotate, so that the motion track of the shooting object is shot, and the electronic equipment is provided with a display screen so as to determine the shooting object and the shooting track and display the shot image. Optionally, the electronic device may be a mobile phone, a tablet computer, a camera, or the like.
Step S100, receiving a first input of the preview image by a user.
In step S100, the first input is a confirmation input for the photographic subject and the photographic trajectory, and may specifically include a selection operation of the photographic subject by the user in the preview image of the photographic scene, and further include a selection operation of the photographic trajectory, such as a click, a cursor lock, a circle selection, and the like.
And step S200, responding to the first input, and determining a shooting object and a shooting track.
In the above step S200, the shooting target refers to a subject object to be shot, and is preferably a stationary object in the embodiment of the present application; the shooting track is a position change path which a user wants to shoot a subject to present in a shot image. Since the first input is a confirmation input for the photographic subject and the photographic track, the first input includes information such as indication information of the photographic subject, a specific movement route presented by the photographic subject in the photographic image, and the like, and thus, when the first input of the user is received, it is described that the photographic subject and the photographic track need to be locked, and thus the subject corresponding to the first input is determined as the photographic subject, and the photographic track for the photographic subject can be determined.
And step S300, carrying out focusing shooting on the shot object to obtain a first image.
In step S300, the camera is used to focus and shoot the subject determined in step S200, and a first image that can clearly display the subject is obtained, so as to be used as a background image of the final shot target image.
In practical applications, the step S300 may be executed again when a third input that the user determines to start shooting is received.
And S400, controlling the camera to rotate according to the shooting track, and simultaneously carrying out long exposure shooting on the shot object to obtain a second image.
In the step S400, since the camera is a rotatable camera, the camera can be controlled to rotate according to the shooting track, so that the position of the shooting object in the shooting picture changes along the shooting track; if the camera is controlled to shoot the shot object with long exposure, the image of the shot object can be made to appear at a plurality of different positions in the shot second image, and the different positions are distributed along the shooting track, so that the effect that the shot object moves continuously is presented.
And step S500, extracting a motion trail graph of the shooting object from the second image.
In the step S500, since the photographic subject and the photographic track are already determined, specific areas of the photographic subject at different positions in the second image can be determined, and then a motion track map of a picture only including the photographic subject can be extracted from the second image, that is, all other areas of the second image except the area where the photographic subject appears are removed; the size of the picture of the moving track graph is the same as the size of the shooting picture of the camera, and then the size of the moving track graph is the same as the size of the second image and the size of the first image.
And S600, synthesizing the motion trail graph and the first image to obtain a target image.
In the step S600, a picture synthesis technique is used to synthesize the trajectory graph extracted in the step S500 to the first image captured in the step S300, wherein the trajectory graph is a picture area only including the object, and the trajectory graph has the same size as the first image, so that the trajectory graph can be accurately superimposed on the first image, thereby displaying the motion trajectory of the object on the target image, and using the first image to clearly display the characteristics of the object.
According to the shooting method provided by the embodiment of the application, a shooting object and a shooting track are determined by receiving first input of a user on a preview image; focusing shooting is carried out on a shot object to obtain a first image; then controlling the camera to rotate according to the shooting track and simultaneously carrying out long exposure shooting on the shot object to obtain a second image; and then extracting a motion trail diagram of the shooting object from the second image, and synthesizing the motion trail diagram into the first image so as to generate a target image. In the shooting mode, the electronic equipment firstly focuses and shoots the shot object, then obtains the motion trail diagram of the shot object by controlling the camera to rotate and carrying out long exposure shooting on the shot object, and then automatically synthesizes the motion trail diagram with the first image obtained by focusing and shooting, thereby quickly shooting and obtaining the special effect diagram which has a clear shot object and the motion trail of the shot object.
Optionally, in an implementation manner, in the photographing method provided by the embodiment of the present invention, the first input includes a first sub-input and a second sub-input; the step S200 includes steps S201 to S203.
Step S201, responding to the first sub-input, and determining a shooting object.
In step S201, the first sub-input is a confirmation input for the photographic subject, and may specifically include a selection operation of the user on the photographic subject in the preview image of the photographic scene, for example, a selection operation such as clicking or cursor locking. When the first sub-input of the user is received, the fact that the shooting object needs to be locked is explained, and therefore the object corresponding to the first sub-input is determined to be the shooting object.
Step S202, displaying the picture outline of the shooting object in the preview image.
In step S202, after the photographic subject is determined, a picture contour of the determined photographic subject is displayed on the photographic interface, so that the user can visually know the determined photographic subject and determine the photographic track according to the picture contour.
Step S203, in response to the second sub-input, determining a trajectory corresponding to the second sub-input as a shooting trajectory, where the shooting trajectory takes a position of a center point of the picture outline as an end point.
In step S203, the second sub-input is an input for determining a position change path presented by the photographic subject in the photographic image, specifically, a selection operation is performed on the photographic track, so as to determine the photographic path through the selection operation, and the position of the central point of the image contour of the photographic subject is taken as an end point of the photographic track, so that a motion track graph obtained by subsequent shooting can be docked with the photographic subject in the first image.
In the above embodiment, by displaying the picture contour of the photographic subject on the photographic interface, the user can intuitively know the determined photographic subject and determine the photographic track that can be docked with the photographic subject in the first image according to the picture contour.
Optionally, in a specific embodiment, the step S203 includes steps S2031 to S2032. Step S2031, in a case where the second sub-input is a trace drawn in a preview image, determining a trace drawn by the second sub-input as the shooting trace.
In step S2031, the second sub-input is an operation of drawing a track in the preview image, that is, a user slides on the shooting interface with a finger, and a shooting track ring is formed by the sliding track, so that the user can customize the shooting track according to the user' S preference or requirement, and the personalized requirement of the user is met.
And step S2032, when the second sub-input is a track selection operation, taking the target track selected by the second sub-input as the shooting track.
In step S2032, the second sub-input is a track selection operation, that is, a click operation on a preset track, where the preset track is a preset shooting track, the shape and size of the preset track may be adjusted as needed, and the shape of the preset track may be a rectangle, heart, or circle.
In the above specific embodiment, after determining the shooting object, the user may customize the shooting track to meet the personalized shooting requirement of the user, or select the shooting track from the preset tracks, so as to quickly determine the shooting track.
Optionally, in an implementation manner, in the shooting method provided by the embodiment of the present invention, the electronic device further includes a holder, the camera is disposed on the holder, and step S400 includes step S401.
And S401, controlling the cradle head to rotate according to the shooting track, and simultaneously starting the camera to carry out long exposure shooting on the shot object to obtain a second image.
In this embodiment, the electronic device camera for image capture is mounted on the cradle head, that is, the camera is a cradle head camera, and the cradle head is arranged on the electronic device main body and can perform physical multi-axis rotation relative to the electronic device main body, so as to drive the camera to rotate; the holder is connected with a processor of the electronic equipment and can receive and execute a rotation instruction issued by the processor. Therefore, in step S401, after the shooting object and the shooting path are determined, the pan/tilt head is controlled to rotate according to the shooting track to drive the camera to rotate according to the shooting track, and the camera is started to perform long exposure shooting on the shooting object, so that a plurality of different positions of the image of the shooting object appearing in the image can be obtained through shooting, and the plurality of different positions are distributed along the shooting track.
In practical application, the shooting interval and the rotational speed of the holder of long exposure shooting can be adjusted according to actual needs.
Optionally, in an embodiment, the step S500 includes steps S501 to S502.
Step S501, sequentially acquiring each screen region including the photographic object from the second image along the photographic trajectory of the photographic object obtained by photographing in the second image.
In step S501, since the second image is an image obtained by rotating the camera according to the shooting track to perform long exposure shooting, the second image includes a plurality of frame regions of the shooting object, and according to the determined frame region of the shooting object, each frame region shot during the long exposure shooting of the shooting object can be extracted from the second image along the shooting track.
And step S502, determining each picture area as a motion trail graph of the shooting object.
In step S502, since the screen areas are formed by the object during the long exposure shooting process by rotating the camera according to the shooting track, the screen areas are connected in series, so that the motion track diagram of the object can be obtained.
Optionally, in an implementation manner, the shooting method provided in the embodiment of the present invention further includes steps S503 to S504 before step S600.
And S503, receiving a second input of the user to the motion trail diagram.
In step S503, the second input is an input operation of adding a special effect to the motion trace diagram, which may specifically be an operation of dragging a preset special effect identifier to a target position in the motion trace diagram, or an editing processing operation performed in a screen area where the motion trace diagram is located.
And step S504, responding to the second input, and adding a special effect to the running track graph.
In the step S504, since the second input is an input operation of adding a special effect to the motion trail diagram, when the second input is received, it indicates that the user needs to add the special effect to the motion trail diagram, so that the special effect corresponding to the second input is added to the motion trail diagram to meet the personalized requirement of the user.
In the above embodiment, after the motion trail graph is obtained, a special effect can be added to the motion trail graph according to the user requirement, so that the user can customize the presentation effect of the motion trail and the personalized requirements of the user are met.
Optionally, in an implementation manner, the shooting object in the embodiment of the present application is a light source or a illuminable object, so that the motion trajectory presented by the shooting method provided by the embodiment of the present application is more realistic.
Optionally, in an embodiment, before executing step S100, the electronic device is further controlled to enter a running track shooting mode capable of shooting a motion track of the target object, and the subsequent step S100 is executed only when the electronic device is in the running track shooting mode, otherwise, the electronic device enters the normal shooting mode and performs normal shooting, so that the user can select to turn on or off the running track shooting mode as required.
Referring to fig. 2, a schematic diagram of an implementation of a shooting mode according to an embodiment of the present disclosure is shown.
As shown in fig. 2, in step S211, the user selects a motion trajectory shooting mode after turning on the camera, and proceeds to a step of determining a shooting object and a shooting trajectory;
in step S212, the user selects an object requiring a track generation from the preview image displayed on the camera shooting interface as a shooting object;
in step S213, in the motion trajectory shooting mode, the electronic device provides a fixed trajectory option and a free trajectory option for the user; step S214 is performed after the user selects the fixed trajectory, and step S215 is performed after the user selects the free trajectory;
in step S214, the electronic device provides multiple fixed track options for the user under the fixed track option, and the user can select a track desired to be generated and use the selected track as a shooting track;
in step S215, the user can freely draw a desired movement trajectory, thereby determining a shooting trajectory;
in step S216, after the user determines the subject and the shooting trajectory, the user starts shooting by pressing the shutter;
in step S217, the camera is controlled to capture a picture of a clearly displayed object as a background image to be subsequently synthesized; for example, when the motion track of the candle is shot, the candle may be shot in a focusing manner, and the effect is shown in fig. 3;
in step S218, after the electronic device executes step S217, controlling the pan-tilt to rotate rapidly according to the selected shooting track and controlling the camera to shoot by using long exposure, so that the selected object generates a motion residual image, and obtaining a second picture from shooting; for example, when a motion trail of a candle is photographed, the second picture obtained by photographing according to the photographing trail and using long exposure is shown in fig. 4;
in step S219, a movement trajectory formed by an object to be photographed in the second picture is extracted, and then the extracted movement trajectory is superimposed and fused with the first clear picture, so that a target image having both a movement trajectory and a clear object can be obtained; for example, when the motion track of the candle is photographed, the motion track of the candle in fig. 4 is extracted and is overlapped and fused with fig. 3, and the obtained target image is shown in fig. 5.
It should be noted that, in the shooting method provided in the embodiment of the present application, the execution subject may be a terminal device, or a control module in the terminal device for executing the loading shooting method. In the embodiment of the present application, a shooting method implemented by a terminal device is taken as an example to describe the shooting method provided in the embodiment of the present application.
Referring to fig. 6, a schematic structural diagram of a shooting device provided in an embodiment of the present application is shown, where the shooting device is applied to an electronic device, and as shown in fig. 6, the shooting device includes:
a first receiving module 61, configured to receive a first input of the preview image by the user;
a determination module 62, configured to determine a shooting object and a shooting track in response to the first input;
a first shooting module 63, configured to perform focus shooting on the shooting object to obtain a first image;
a second shooting module 64, configured to control the camera to rotate according to the shooting track, and perform long exposure shooting on the shot object to obtain a second image;
an extracting module 65, configured to extract a motion trail map of the photographic subject from the second image;
and a synthesizing module 66, configured to synthesize the motion trail map and the first image to obtain a target image.
Optionally, in the shooting apparatus, the extracting module 65 includes:
an acquiring unit, configured to sequentially acquire, from the second image, each picture area including the photographic object along a photographic trajectory of the photographic object obtained by photographing in the second image;
and the first determining unit is used for determining each picture area as a motion trail graph of the shooting object.
Optionally, in the shooting device, the first input includes a first sub-input and a second sub-input; the determination module 62 includes:
a second determination unit configured to determine a photographic subject in response to the first sub-input;
a display unit configured to display a screen outline of the photographic subject in the preview image;
and the third determining unit is used for responding to the second sub-input and determining a track corresponding to the second sub-input as a shooting track, wherein the shooting track takes the position of the center point of the picture outline as an end point.
Optionally, in the photographing apparatus, the third determining unit includes:
a first determination subunit configured to, in a case where the second sub-input is a trace drawn in a preview image, determine a trace drawn by the second sub-input as the shooting trace;
and the second determining subunit is used for taking the target track selected by the second sub-input as the shooting track when the second sub-input is a track selection operation.
Optionally, the electronic device further includes a cradle head, and the camera is disposed on the cradle head; the second shooting module 64 is specifically configured to control the pan/tilt head to rotate according to the shooting track, and start the camera to perform long exposure shooting on the shooting object at the same time, so as to obtain a second image.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive a second input of the motion trail graph by the user before synthesizing the motion trail graph with the first image to obtain a target image;
and the special effect module is used for responding to the second input and adding a special effect to the running track graph.
The shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The shooting device provided in the embodiment of the present application can implement each process implemented by the shooting device in the method embodiment of fig. 1, and is not described here again in order to avoid repetition.
In the embodiment of the application, a first input of a user to the preview image is received through a first receiving module 61, and a shooting object and a shooting track are determined through a determining module 62; the first shooting module 63 focuses and shoots a shooting object to obtain a first image; then, the second shooting module 64 controls the camera to rotate according to the shooting track and simultaneously carries out long exposure shooting on the shot object to obtain a second image; the motion trace map of the photographic subject is extracted from the second image by the extraction module 65 and synthesized into the first image by the synthesis module 66, thereby generating the target image. In the shooting mode, the electronic equipment firstly focuses and shoots the shot object, then obtains the motion trail diagram of the shot object by controlling the camera to rotate and carrying out long exposure shooting on the shot object, and then automatically synthesizes the motion trail diagram with the first image obtained by focusing and shooting, thereby quickly shooting and obtaining the special effect diagram which has a clear shot object and the motion trail of the shot object.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction is executed by the processor to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 70 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 70 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 710 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 3 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 707 includes a display interface in the embodiment of the present application;
the input unit 704, in the embodiment of the present application, includes a rotatable camera;
a processor 710 for receiving a first input of a preview image by a user; determining a shooting object and a shooting track in response to the first input; focusing shooting is carried out on the shot object to obtain a first image; controlling the camera to rotate according to the shooting track, and simultaneously carrying out long exposure shooting on the shot object to obtain a second image; extracting a motion trail diagram of the shooting object from the second image; and synthesizing the motion trail graph and the first image to obtain a target image.
According to the electronic equipment provided by the embodiment of the application, the camera is controlled to focus and shoot a shot object, then the motion trail diagram of the shot object is obtained by controlling the camera to rotate and carrying out long exposure shooting on the shot object, and then the motion trail diagram is automatically synthesized with a first image obtained by focusing and shooting, so that a special effect diagram which is clear and has the motion trail of the shot object is obtained by fast shooting.
Optionally, the electronic device further includes a cradle head, and the camera is disposed on the cradle head; and the processor 710 specifically controls the pan-tilt to rotate according to the shooting track, and simultaneously starts the camera to perform long exposure shooting on the shooting object to obtain a second image.
Optionally, the processor 710 is specifically configured to sequentially acquire, from the second image, each picture area including the photographic object along a shooting trajectory of the photographic object obtained by shooting in the second image; and determining each picture area as a motion trail graph of the shooting object.
Optionally, the first input includes a first sub-input and a second sub-input; a processor 710, specifically configured to determine a photographic subject in response to the first sub-input; displaying a picture outline of the photographic object in the preview image; and in response to the second sub-input, determining a track corresponding to the second sub-input as a shooting track, wherein the shooting track is positioned at the position of the center point of the picture outline as an end point.
Optionally, the processor 710 is specifically configured to, when the second sub-input is a trace drawn in a preview image, determine the trace drawn by the second sub-input as the shooting trace; and when the second sub-input is a track selection operation, taking the target track selected by the second sub-input as the shooting track.
Optionally, the processor 710 is further configured to receive a second input of the motion trail graph by the user before synthesizing the motion trail graph with the first image to obtain a target image; adding a special effect to the travel track map in response to the second input.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A shooting method is applied to an electronic device, wherein the electronic device comprises a rotatable camera, and the method comprises the following steps:
receiving a first input of a user to the preview image;
determining a shooting object and a shooting track in response to the first input;
focusing shooting is carried out on the shot object to obtain a first image;
controlling the camera to rotate according to the shooting track, and simultaneously carrying out long exposure shooting on the shot object to obtain a second image;
extracting a motion trail diagram of the shooting object from the second image;
and synthesizing the motion trail graph and the first image to obtain a target image.
2. The photographing method according to claim 1, wherein the step of extracting the motion trail map of the photographic subject from the second image includes:
sequentially acquiring each picture area containing the shot object from the second image along the shooting track of the shot object shot in the second image;
and determining the picture areas as the motion trail graph of the shooting object.
3. The photographing method according to claim 1, wherein the first input includes a first sub-input and a second sub-input; the step of determining the photographic subject and the photographic trajectory in response to the first input includes:
determining a photographic subject in response to the first sub-input;
displaying a picture outline of the photographic object in the preview image;
and in response to the second sub-input, determining a track corresponding to the second sub-input as a shooting track, wherein the shooting track is positioned at the position of the center point of the picture outline as an end point.
4. The shooting method according to claim 3, wherein the step of determining, in response to the second sub-input, a trajectory corresponding to the second sub-input as a shooting trajectory includes:
determining a trajectory drawn by the second sub-input as the shooting trajectory in the case that the second sub-input is a trajectory drawn in a preview image;
and when the second sub-input is a track selection operation, taking the target track selected by the second sub-input as the shooting track.
5. The shooting method according to claim 1, wherein the electronic device further comprises a pan-tilt, the camera being disposed on the pan-tilt; the step of controlling the camera to rotate according to the shooting track, and simultaneously, carrying out long exposure shooting on the shot object to obtain a second image comprises the following steps:
and controlling the cradle head to rotate according to the shooting track, and simultaneously starting the camera to carry out long exposure shooting on the shot object to obtain a second image.
6. The photographing method according to claim 1, wherein before the step of synthesizing the motion trail map with the first image to obtain the target image, the method further comprises:
receiving a second input of the motion trail graph by the user;
in response to the second input, adding a special effect to the motion trail graph.
7. A photographing apparatus applied to an electronic device including a rotatable camera, the apparatus comprising:
the first receiving module is used for receiving a first input of a user to the preview image;
the determining module is used for responding to the first input and determining a shooting object and a shooting track;
the first shooting module is used for carrying out focusing shooting on the shooting object to obtain a first image;
the second shooting module is used for controlling the camera to rotate according to the shooting track and simultaneously carrying out long exposure shooting on the shot object to obtain a second image;
the extraction module is used for extracting a motion trail graph of the shooting object from the second image;
and the synthesis module is used for synthesizing the motion trail graph and the first image to obtain a target image.
8. The camera according to claim 7, wherein the extraction module comprises:
an acquiring unit, configured to sequentially acquire, from the second image, each picture area including the photographic object along a photographic trajectory of the photographic object obtained by photographing in the second image;
and the first determining unit is used for determining each picture area as a motion trail graph of the shooting object.
9. The camera of claim 7, wherein the first input comprises a first sub-input and a second sub-input; the determining module comprises:
a second determination unit configured to determine a photographic subject in response to the first sub-input;
a display unit configured to display a screen outline of the photographic subject in the preview image;
and the third determining unit is used for responding to the second sub-input and determining a track corresponding to the second sub-input as a shooting track, wherein the shooting track takes the position of the center point of the picture outline as an end point.
10. The photographing apparatus according to claim 9, wherein the third determination unit includes:
a first determination subunit configured to, in a case where the second sub-input is a trace drawn in a preview image, determine a trace drawn by the second sub-input as the shooting trace;
and the second determining subunit is used for taking the target track selected by the second sub-input as the shooting track when the second sub-input is a track selection operation.
11. The camera of claim 7, wherein the electronic device further comprises a pan/tilt head, the camera being disposed on the pan/tilt head;
the second shooting module is specifically configured to control the pan-tilt to rotate according to the shooting track, and simultaneously start the camera to perform long exposure shooting on the shooting object, so as to obtain a second image.
12. The camera of claim 7, wherein the device further comprises:
a second receiving module, configured to receive a second input of the motion trail graph by the user before synthesizing the motion trail graph with the first image to obtain a target image;
and the special effect module is used for responding to the second input and adding a special effect to the motion trail diagram.
CN202011589469.5A 2020-12-28 2020-12-28 Shooting method and device Active CN112702497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011589469.5A CN112702497B (en) 2020-12-28 2020-12-28 Shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011589469.5A CN112702497B (en) 2020-12-28 2020-12-28 Shooting method and device

Publications (2)

Publication Number Publication Date
CN112702497A CN112702497A (en) 2021-04-23
CN112702497B true CN112702497B (en) 2022-04-26

Family

ID=75513124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011589469.5A Active CN112702497B (en) 2020-12-28 2020-12-28 Shooting method and device

Country Status (1)

Country Link
CN (1) CN112702497B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157810B (en) * 2021-12-21 2023-08-18 西安维沃软件技术有限公司 Shooting method, shooting device, electronic equipment and medium
CN114650370A (en) * 2022-03-10 2022-06-21 维沃移动通信有限公司 Image shooting method and device, electronic equipment and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331462A (en) * 2015-06-25 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Method and device for shooting track pictures, as well as mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125407B (en) * 2014-08-13 2018-09-04 努比亚技术有限公司 The image pickup method and mobile terminal of movement locus of object
CN104159033B (en) * 2014-08-21 2016-01-27 努比亚技术有限公司 A kind of optimization method of shooting effect and device
CN105430263A (en) * 2015-11-24 2016-03-23 努比亚技术有限公司 Long-exposure panoramic image photographing device and method
CN106331514A (en) * 2016-09-07 2017-01-11 青岛海信移动通信技术股份有限公司 Method and terminal for controlling overlong exposure
JP6827854B2 (en) * 2017-03-09 2021-02-10 キヤノン株式会社 Image processing equipment and methods, and imaging equipment
WO2020155052A1 (en) * 2019-01-31 2020-08-06 华为技术有限公司 Method for selecting images based on continuous shooting and electronic device
CN111010510B (en) * 2019-12-10 2021-11-16 维沃移动通信有限公司 Shooting control method and device and electronic equipment
CN111800581B (en) * 2020-07-09 2022-02-01 Oppo广东移动通信有限公司 Image generation method, image generation device, storage medium, and electronic apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331462A (en) * 2015-06-25 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Method and device for shooting track pictures, as well as mobile terminal

Also Published As

Publication number Publication date
CN112702497A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN111601039B (en) Video shooting method and device and electronic equipment
CN112702497B (en) Shooting method and device
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112738402B (en) Shooting method, shooting device, electronic equipment and medium
CN112492201B (en) Photographing method and device and electronic equipment
CN111953900B (en) Picture shooting method and device and electronic equipment
CN112087579B (en) Video shooting method and device and electronic equipment
CN113905175A (en) Video generation method and device, electronic equipment and readable storage medium
CN112492215B (en) Shooting control method and device and electronic equipment
CN114598819A (en) Video recording method and device and electronic equipment
CN114125179A (en) Shooting method and device
CN112511743B (en) Video shooting method and device
CN113114933A (en) Image shooting method and device, electronic equipment and readable storage medium
Kim et al. PicMe: interactive visual guidance for taking requested photo composition
CN112437231A (en) Image shooting method and device, electronic equipment and storage medium
CN113596331B (en) Shooting method, shooting device, shooting equipment and storage medium
CN114025100B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN112887623B (en) Image generation method and device and electronic equipment
CN112887624B (en) Shooting method and device and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN114245018A (en) Image shooting method and device
CN114266305A (en) Object identification method and device, electronic equipment and storage medium
CN112672059B (en) Shooting method and shooting device
CN114285988B (en) Display method, display device, electronic equipment and storage medium

Legal Events

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