CN109474787B - Photographing method, terminal device and storage medium - Google Patents

Photographing method, terminal device and storage medium Download PDF

Info

Publication number
CN109474787B
CN109474787B CN201811629380.XA CN201811629380A CN109474787B CN 109474787 B CN109474787 B CN 109474787B CN 201811629380 A CN201811629380 A CN 201811629380A CN 109474787 B CN109474787 B CN 109474787B
Authority
CN
China
Prior art keywords
target
sub
images
image
shooting
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
CN201811629380.XA
Other languages
Chinese (zh)
Other versions
CN109474787A (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 CN201811629380.XA priority Critical patent/CN109474787B/en
Publication of CN109474787A publication Critical patent/CN109474787A/en
Application granted granted Critical
Publication of CN109474787B publication Critical patent/CN109474787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Abstract

The embodiment of the invention provides a photographing method, terminal equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining a target shooting time interval, sequentially shooting N candidate images of a target shooting scene according to the target shooting time interval, obtaining N sub-images containing N target sub-regions in the N candidate images, carrying out image synthesis on the N sub-images, and outputting the target image of the target shooting scene, wherein one candidate image is composed of images of the N target sub-regions, each target sub-region is different, N is an integer larger than 1, the automation of early shooting can be realized, a user does not need to carry out complex operation when the time slicing effect is realized, the problem of overlong learning time caused by complex operation is avoided, the time cost is reduced on the whole, and the efficiency of shooting the images of the time slicing effect is improved.

Description

Photographing method, terminal device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a photographing method, a terminal device, and a storage medium.
Background
With the development of terminal equipment, personalized photographing methods are also continuously enriched. The method for recording the time lapse by using one photo is called 'time slicing' in popular common, and needs to take one photo at a certain fixed position at intervals by a camera, then carry out complex post-processing on the taken multiple photos by using a retouching software, combine the photos at different time intervals into one photo according to the time sequence, record the change of things taken at different times by using one photo, and generate the time lapse feeling.
However, taking "time slice" pictures requires manual grasping of the time interval between shots, takes a long time for the previous shot, and requires complicated post-processing.
Disclosure of Invention
The embodiment of the invention provides a photographing method, which aims to solve the problems of high time cost and complex operation when the time slicing effect is realized.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a photographing method, including:
acquiring a target shooting time interval;
sequentially shooting N alternative images of a target shooting scene according to the target shooting time interval;
acquiring N sub-images containing N target sub-areas in the N candidate images;
carrying out image synthesis on the N sub-images, and outputting a target image of the target shooting scene;
wherein, one alternative image is composed of the images of the N target sub-regions, each target sub-region is different, and N is an integer larger than 1.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the interval acquisition module is used for acquiring a target shooting time interval;
the image shooting module is used for sequentially shooting N alternative images of a target shooting scene according to the target shooting time interval;
the sub-image acquisition module is used for acquiring N sub-images containing N target sub-areas in the N candidate images;
the image output module is used for carrying out image synthesis on the N sub-images and outputting a target image of the target shooting scene;
wherein, one alternative image is composed of the images of the N target sub-regions, each target sub-region is different, and N is an integer larger than 1.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the photographing method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the photographing method.
In the embodiment of the invention, N candidate images of a target shooting scene are sequentially shot according to the target shooting time interval by obtaining the target shooting time interval, N sub-images of N target sub-areas are obtained from the N candidate images, the N sub-images are synthesized, and the target image of the target shooting scene is output, wherein one candidate image is composed of images of the N target sub-areas, each target sub-area is different, N is an integer larger than 1, the automation of early-stage shooting can be realized, and a user does not need to perform complex operation when realizing a time slicing effect, so that the problem of overlong learning time caused by complex operation is avoided, the time cost is reduced on the whole, and the efficiency of shooting the images of the time slicing effect is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a photographing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a photographing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a vertical sub-area division manner;
FIG. 4 is a schematic diagram of an angle-based subdivision scheme;
FIG. 5 is a schematic diagram of the division of the annular subregions;
fig. 6 is a block diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, a flowchart illustrating steps of a photographing method according to a first embodiment of the present invention is shown, which may specifically include the following steps:
step 101, acquiring a target shooting time interval.
In the embodiment of the invention, in order to record the time lapse by using one picture, namely the 'time slicing' effect, a long-time early-stage shooting process is required, the early-stage shooting generally takes longer time, and therefore, the automatic timing shooting can be realized, and the shooting time interval is recorded as the target shooting time interval.
In this embodiment of the present invention, implementations of obtaining the target shooting time interval may include multiple implementations, for example, obtaining a preset target shooting time interval, that is, a default time interval, or obtaining a target shooting time interval input by a user, that is, a time interval set by the user, or any other suitable implementations, which is not limited in this embodiment of the present invention.
And step 102, sequentially shooting N candidate images of the target shooting scene according to the target shooting time interval.
In the embodiment of the invention, the same scene needs to be shot during shooting, and the scene is marked as a target shooting scene. The N candidate images of the target shooting scene are sequentially shot according to the target shooting time interval, specifically, the shooting process may be manually stopped by a user to obtain the N candidate images, or the shooting may be automatically stopped after obtaining the N candidate images, or any other suitable manner, which is not limited in this embodiment of the present invention.
For example, after the target shooting time interval is acquired, the user clicks a shutter button to take a first picture, and then, at intervals of the target shooting time interval, one picture is taken until the user manually clicks a stop shooting button to obtain N candidate images, or after the N candidate images are automatically shot, the shooting is automatically stopped. The display mode of the shot photos in the photo album can adopt a continuous shooting mode, so that a user can conveniently select and determine the number of the shot photos.
And 103, acquiring N sub-images containing N target sub-areas in the N candidate images.
In the embodiment of the invention, one alternative image is composed of images of N target sub-regions, each target sub-region is different, and N is an integer greater than 1. For N candidate images, 1 target sub-area is determined in each candidate image, the N candidate images correspond to the N target sub-areas, a sub-image containing the corresponding target sub-area is determined from each candidate image, and the N target sub-areas correspond to the N sub-images.
In the embodiment of the present invention, the implementation manner of obtaining N sub-images including N target sub-areas in the N candidate images may include multiple manners, for example, a sub-area division manner of the target stitching template is obtained, the N target sub-areas are determined according to the sub-area division manner of the target stitching template, and the sub-images including the target sub-areas in each candidate image are respectively obtained according to the shooting sequence of each candidate image to obtain the N sub-images, which may specifically include any applicable implementation manner.
And 104, carrying out image synthesis on the N sub-images, and outputting a target image of the target shooting scene.
In the embodiment of the invention, the target image of the target shooting scene can be obtained by image synthesis of the N sub-images, namely the image of the target image contains the N sub-images, so that the time slicing effect is realized. When the image synthesis is carried out, the area of the sub-image in the synthesized target image can be determined according to the target sub-area corresponding to the sub-image, each sub-image is directly covered to the corresponding area, and after the synthesis is completed, the target image is output, wherein the target image comprises the images of the target shooting scene at different time.
In the embodiment of the invention, N candidate images of a target shooting scene are sequentially shot according to the target shooting time interval by obtaining the target shooting time interval, N sub-images of N target sub-areas are obtained from the N candidate images, the N sub-images are synthesized, and the target image of the target shooting scene is output, wherein one candidate image is composed of images of the N target sub-areas, each target sub-area is different, N is an integer larger than 1, the automation of early-stage shooting can be realized, and a user does not need to perform complex operation when realizing a time slicing effect, so that the problem of overlong learning time caused by complex operation is avoided, the time cost is reduced on the whole, and the efficiency of shooting the images of the time slicing effect is improved. Referring to fig. 2, a flowchart illustrating steps of a photographing method according to a second embodiment of the present invention is shown, which may specifically include the following steps:
step 201, acquiring a preset target shooting time interval; alternatively, a target photographing time interval input by the user is acquired.
In the embodiment of the invention, the target shooting time interval can be preset or input by a user, and the time interval is set by default or user-defined, so that the time interval of automatic shooting is more flexible, and the customization requirement of the user is met.
For example, a user opens a camera, selects a 'time slice' mode, judges whether the user enters the camera mode for the first time, pops up a relevant introduction of the mode if the mode is the first time, enters the mode if the mode is not the first time, can detect whether a mobile phone is in a stable state in order to ensure that a view is unchanged during shooting, can perform the judgment according to a gyroscope or a relevant motion sensor built in the mobile phone, pops up a prompt if the detection result is that the mobile phone is not in the stable state, keeps the mobile phone stable, proposes to match with a tripod for shooting, jumps to an interface for selecting a target shooting time interval if the detection result is that the mobile phone is in the stable state, and the user selects or self-defines the time interval as required.
And step 202, sequentially shooting N candidate images of the target shooting scene according to the target shooting time interval.
In the embodiment of the present invention, the specific implementation manner of this step may refer to the description in the foregoing embodiment, and details are not described herein.
And step 203, marking the shooting sequence of each alternative image every time one alternative image is shot.
In the embodiment of the invention, when the candidate images are shot, each candidate image is marked according to the shooting sequence and is used as the record of the shooting sequence of each candidate image. For example, the shot or selected candidate images are digitally marked in time sequence, and specifically, any suitable marking manner may be adopted for the candidate image mark 1 shot at 16:00, the candidate image mark 2 shot at 16:30, the candidate image mark 3 shot at 17:00, and so on, which is not limited in this embodiment of the present invention. The shooting order is marked so that alternative images can be processed sequentially later, and then images can be displayed in time sequence in the synthesized target image.
And 204, acquiring a sub-region dividing mode of the target splicing template.
In the embodiment of the present invention, the target stitching template refers to a template for dividing sub-regions of the candidate image, acquiring sub-images, and stitching the sub-images. When corresponding processing is carried out according to a preset target splicing template or a target splicing template selected by a user, the processing process mainly comprises the following steps: and (3) cutting and synthesizing two parts, wherein different target splicing templates correspond to different subarea division modes, and the synthesis is to synthesize each cut subimage according to the cutting sequence.
The sub-region dividing manner includes a vertical sub-region dividing manner, an angle-based sub-region dividing manner, an annular sub-region dividing manner, and the like, or any other suitable dividing manner, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, optionally, before obtaining the sub-region division manner of the target stitching template, the method may further include: acquiring a preset target splicing template; or acquiring a target splicing template selected by a user from at least one alternative splicing template. The target splicing template has two acquisition modes, one mode is to directly acquire a preset target splicing template, and the other mode is to select one of at least one alternative splicing target by a user to be used as the target splicing template, so that the splicing template is more flexibly selected, and the customization requirements of the user are met.
And step 205, determining N target subregions according to the subregion division mode of the target splicing template.
In the embodiment of the present invention, N target sub-regions may be determined according to a sub-region division manner of the target splicing template, and specifically, target sub-regions of different shapes may be determined according to different sub-region division manners.
In the embodiment of the present invention, optionally, the target splicing template includes a sub-region dividing manner in a vertical direction; according to the sub-region division mode of the target splicing template, one implementation mode for determining N target sub-regions may include: acquiring the image width of the first alternative image; acquiring the number of alternative images input by a user; determining N target sub-areas based on the image width and the number of the candidate images; the width of each target subregion is the quotient of the image width and the number of the candidate images.
For example, as shown in fig. 3, which is a schematic diagram of a vertical subregion dividing manner, the width D of a portion (i.e., the target subregion) of each candidate image remaining in the target image is equal to the image width D/the number of candidate images. Namely, the candidate image is vertically divided into two parts from the left side to the position with the width of D, wherein the part with the width of D on the left side, namely the 1 st target sub-area, and the candidate image is divided into N target sub-areas in a sequential manner.
In the embodiment of the present invention, optionally, the target splicing template includes a sub-region dividing manner based on an angle; according to the sub-region division mode of the target splicing template, one implementation mode for determining N target sub-regions may include: acquiring a target reference angle; acquiring the number of alternative images input by a user; determining N target sub-areas based on the target reference angle and the number of the alternative images; and the target angle of each target sub-area is the quotient of the target reference angle and the number of the alternative images.
The target reference angle may be ninety degrees (one corner of the alternative image is a vertex and forms an ninety degree angle with two adjacent edges) or one hundred eighty degrees (a midpoint of one side of the alternative image is a vertex and two sides of the midpoint are edges form one hundred eighty degrees), and specifically, any suitable target reference angle may be selected according to actual needs, which is not limited in the embodiment of the present invention.
For example, as shown in fig. 4, which is a schematic diagram of an angle-based subregion dividing manner, the target angle a of a portion (i.e., the target subregion) of each candidate image remaining in the target image is equal to the target reference angle 90 degrees/number of candidate images. The method comprises the steps of dividing an image into two parts from the leftmost side of the image to the position with the angle a according to the clockwise direction by taking the lower left corner as a center point of the alternative image, reserving the part with the angle a at the upper left part of a tangent line, namely the 1 st target sub-area, and dividing the alternative image into N target sub-areas in a sequential mode.
In the embodiment of the present invention, optionally, the target splicing template includes an annular sub-region dividing manner; according to the sub-region division mode of the target splicing template, one implementation mode for determining N target sub-regions may include: acquiring the image width of the first alternative image; acquiring the number of alternative images input by a user; determining N target sub-areas based on the target reference angle and the number of the alternative images; wherein the ring width of each target sub-region
Figure BDA0001928641350000071
Where d is the image width and m is the number of candidate images.
For example, as shown in fig. 5, which is a schematic diagram of a circular subregion dividing manner, the ring width r of a portion (i.e., the target subregion) of each candidate image remaining in the target image is equal to the image width d/(the number m-1 of candidate images) multiplied by 2. Namely, the center of the candidate image is used as a circle center, a circle with the radius of r is divided into a 1 st target sub-area, a part inside the circle with the radius of 2r and outside the circle with the radius of r is used as a 2 nd target sub-area, a part inside the circle with the radius of 3r and outside the circle with the radius of 2r is used as a 3 rd target sub-area, and the candidate image is divided into N target sub-areas in a sequential mode.
Step 206, respectively acquiring sub-images containing target sub-areas in each alternative image according to the shooting sequence of each alternative image to obtain N sub-images; the area corresponding to each sub-image is a target sub-area corresponding to each candidate image, or the area corresponding to each sub-image is the sum of the target sub-area corresponding to each candidate image and the target sub-areas corresponding to all candidate images in the prior shooting sequence.
In the embodiment of the present invention, the sub-images include target sub-areas, in one way of obtaining the sub-images, the area corresponding to each sub-image is the target sub-area corresponding to each candidate image, and in another way of obtaining the sub-images, the area corresponding to each sub-image is the sum of the target sub-area corresponding to each candidate image and the target sub-areas corresponding to all candidate images in the previous shooting order. The method may specifically include acquiring the sub-image in any other suitable manner, which is not limited in this embodiment of the present invention.
When the sub-images are obtained, the sub-images containing the target sub-areas in each candidate image are respectively obtained according to the shooting sequence, and finally N sub-images are obtained, so that each sub-image is derived from different candidate images and corresponds to the target sub-areas according to the time sequence, and then different target sub-areas in the finally synthesized target image can display partial target shooting scenes according to the time sequence, and the effect of recording the time lapse is achieved.
And step 207, performing image synthesis on the N sub-images, and outputting a target image of the target shooting scene.
In the embodiment of the invention, when image synthesis is carried out, if the area corresponding to each sub-image is the target sub-area corresponding to each alternative image, each sub-image is directly covered on the corresponding target sub-area, and a target image is obtained by synthesis and output; if the area corresponding to each sub-image is the sum of the target sub-area corresponding to each candidate image and the target sub-areas corresponding to all candidate images with the shooting sequence being in front, covering the sub-images of the candidate images to the corresponding areas according to the sequence from the back to the front of the shooting sequence, and meanwhile ensuring that the target sub-areas contained in each sub-image correspond to the same target sub-area in the target image, so that the sub-image shot in front is covered on the sub-image shot in back, and finally, the effect that only the image of the target sub-area in each sub-image is displayed in the target image is formed.
In the embodiment of the invention, a preset target shooting time interval is obtained; or, obtaining a target shooting time interval input by a user, sequentially shooting N candidate images of a target shooting scene according to the target shooting time interval, marking the shooting sequence of each candidate image when each candidate image is shot, obtaining a subarea division mode of a target splicing template, determining N target subareas according to the subarea division mode of the target splicing template, respectively obtaining a sub-image containing the target subarea in each candidate image according to the shooting sequence of each candidate image, obtaining N sub-images, synthesizing the N sub-images, and outputting the target image of the target shooting scene, wherein one candidate image is composed of images of N target subareas, each target subarea is different, N is an integer greater than 1, the shooting automation at the early stage can be realized, and the user does not need to perform complex operation when realizing the time slicing effect, the problem of overlong learning time caused by complex operation is avoided, the time cost is reduced on the whole, and the efficiency of shooting images with a time slice effect is improved.
Referring to fig. 6, a block diagram of a terminal device according to a third embodiment of the present invention is shown, which may specifically include the following modules:
an interval acquisition module 301, configured to acquire a target shooting time interval;
an image shooting module 302, configured to sequentially shoot N candidate images of a target shooting scene according to the target shooting time interval;
a sub-image obtaining module 303, configured to obtain N sub-images including N target sub-areas in the N candidate images;
an image output module 304, configured to perform image synthesis on the N sub-images, and output a target image of the target shooting scene;
wherein, one alternative image is composed of the images of the N target sub-regions, each target sub-region is different, and N is an integer larger than 1.
In the embodiment of the present invention, optionally, the image capturing module further includes:
and the marking sub-module is used for marking the shooting sequence of each alternative image when one alternative image is shot.
In the embodiment of the present invention, optionally, the sub-image obtaining module includes:
the division mode acquisition sub-module is used for acquiring the sub-region division modes of the target splicing template;
the region determining submodule is used for determining N target sub-regions according to the sub-region dividing mode of the target splicing template;
the sub-image acquisition sub-module is used for respectively acquiring sub-images containing target sub-areas in each alternative image according to the shooting sequence of each alternative image to obtain N sub-images;
the area corresponding to each sub-image is a target sub-area corresponding to each candidate image, or the area corresponding to each sub-image is the sum of the target sub-area corresponding to each candidate image and the target sub-areas corresponding to all candidate images in the prior shooting sequence.
In the embodiment of the present invention, optionally, the target splicing template includes a sub-region dividing manner in a vertical direction;
the sub-region determination sub-module comprises:
a first width acquisition unit, configured to acquire an image width of a first candidate image;
the first picture acquiring unit is used for acquiring the number of the alternative images input by the user;
a first sub-region determining unit, configured to determine N target sub-regions based on the image width and the number of candidate images;
and the width of each target subregion is the quotient of the image width and the number of the candidate images.
In the embodiment of the present invention, optionally, the target splicing template includes a sub-region dividing manner based on an angle;
the sub-region determination sub-module includes:
an angle acquisition unit for acquiring a target reference angle;
a second sheet number acquisition unit for acquiring the number of the alternative images input by the user;
a second sub-region determining unit, configured to determine N target sub-regions based on the target reference angle and the number of candidate images;
and the target angle of each target sub-area is the quotient of the target reference angle and the number of the alternative images.
In the embodiment of the present invention, optionally, the target splicing template includes an annular sub-region dividing manner;
the sub-region determination sub-module includes:
a second width acquisition unit, configured to acquire an image width of the first candidate image;
a third sheet number obtaining unit, configured to obtain the number of alternative images input by the user;
a third sub-region determining unit, configured to determine N target sub-regions based on the target reference angle and the number of candidate images;
wherein the ring width of each target sub-region
Figure BDA0001928641350000101
Where d is the image width and m is the number of candidate images.
In this embodiment of the present invention, optionally, the interval obtaining module includes:
the first acquisition submodule is used for acquiring a preset target shooting time interval;
or, the second obtaining sub-module is used for obtaining the target shooting time interval input by the user.
In the embodiment of the present invention, optionally, the method further includes:
the first template acquisition module is used for acquiring a preset target splicing template before acquiring the subarea division mode of the target splicing template;
or, the second template obtaining module is configured to obtain a target splicing template selected by the user from the at least one alternative splicing template.
The terminal device provided in the embodiment of the present invention can implement each process implemented by the terminal device in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the embodiment of the invention, N candidate images of a target shooting scene are sequentially shot according to the target shooting time interval by obtaining the target shooting time interval, N sub-images of N target sub-areas are obtained from the N candidate images, the N sub-images are synthesized, and the target image of the target shooting scene is output, wherein one candidate image is composed of images of the N target sub-areas, each target sub-area is different, N is an integer larger than 1, the automation of early-stage shooting can be realized, and a user does not need to perform complex operation when realizing a time slicing effect, so that the problem of overlong learning time caused by complex operation is avoided, the time cost is reduced on the whole, and the efficiency of shooting the images of the time slicing effect is improved.
Referring to fig. 7, a hardware structure diagram of a terminal device for implementing various embodiments of the present invention is shown.
The terminal device 400 includes but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 5 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 410 is configured to acquire a target shooting time interval, sequentially shoot N candidate images of a target shooting scene according to the target shooting time interval, acquire N sub-images including N target sub-regions in the N candidate images, perform image synthesis on the N sub-images, and output a target image of the target shooting scene, where one candidate image is composed of images of the N target sub-regions, each target sub-region is different, and N is an integer greater than 1.
In the embodiment of the invention, N candidate images of a target shooting scene are sequentially shot according to the target shooting time interval by obtaining the target shooting time interval, N sub-images of N target sub-areas are obtained from the N candidate images, the N sub-images are synthesized, and the target image of the target shooting scene is output, wherein one candidate image is composed of images of the N target sub-areas, each target sub-area is different, N is an integer larger than 1, the automation of early-stage shooting can be realized, and a user does not need to perform complex operation when realizing a time slicing effect, so that the problem of overlong learning time caused by complex operation is avoided, the time cost is reduced on the whole, and the efficiency of shooting the images of the time slicing effect is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the terminal apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The terminal device 400 further comprises at least one sensor 405, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the terminal apparatus 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 5, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 408 is an interface for connecting an external device to the terminal apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 400 or may be used to transmit data between the terminal apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the terminal device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The terminal device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-described photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the above-mentioned photographing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the descriptions thereof are omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention 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 invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A photographing method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring a target shooting time interval;
sequentially shooting N alternative images of a target shooting scene according to the target shooting time interval;
acquiring N sub-images containing N target sub-areas in the N candidate images;
carrying out image synthesis on the N sub-images, and outputting a target image of the target shooting scene;
one alternative image is composed of images of the N target sub-regions, each target sub-region is different, and N is an integer larger than 1;
wherein, the acquiring of N sub-images including N sub-regions in the N candidate images includes:
acquiring a subregion partition mode of a target splicing template;
determining N target subregions according to the subregion division mode of the target splicing template;
respectively acquiring sub-images containing target sub-areas in each alternative image according to the shooting sequence of each alternative image to obtain N sub-images;
and the area corresponding to each sub-image is the sum of the target sub-area corresponding to each candidate image and the target sub-areas corresponding to all candidate images in the prior shooting sequence.
2. The method of claim 1, wherein said sequentially capturing N candidate images of a target capture scene at said target capture time interval further comprises:
and marking the shooting sequence of each alternative image every time one alternative image is shot.
3. The method according to claim 1, wherein the target mosaic template comprises a vertical sub-area division manner;
the determining N target sub-regions according to the sub-region division mode of the target splicing template comprises the following steps:
acquiring the image width of the first alternative image;
acquiring the number of alternative images input by a user;
determining N target sub-areas based on the image width and the number of the candidate images;
and the width of each target subregion is the quotient of the image width and the number of the candidate images.
4. The method of claim 1, wherein the target stitching template comprises an angle-based sub-region partitioning approach;
the determining N target sub-regions according to the sub-region division mode of the target splicing template comprises the following steps:
acquiring a target reference angle;
acquiring the number of alternative images input by a user;
determining N target sub-areas based on the target reference angle and the number of the alternative images;
and the target angle of each target sub-area is the quotient of the target reference angle and the number of the alternative images.
5. The method of claim 4, wherein the target stitching template comprises an annular subdivision pattern;
the determining N target sub-regions according to the sub-region division mode of the target splicing template comprises the following steps:
acquiring the image width of the first alternative image;
acquiring the number of alternative images input by a user;
determining N target sub-areas based on the target reference angle and the number of the alternative images;
wherein the ring width of each target sub-region
Figure FDA0002915570660000021
Where d is the image width and m is the number of candidate images.
6. The method of claim 1, wherein the obtaining a target capture time interval comprises:
acquiring a preset target shooting time interval;
alternatively, a target photographing time interval input by the user is acquired.
7. The method according to claim 1, wherein before the obtaining the sub-region division manner of the target stitching template, the method further comprises:
acquiring a preset target splicing template;
or acquiring a target splicing template selected by a user from at least one alternative splicing template.
8. A terminal device, comprising:
the interval acquisition module is used for acquiring a target shooting time interval;
the image shooting module is used for sequentially shooting N alternative images of a target shooting scene according to the target shooting time interval;
the sub-image acquisition module is used for acquiring N sub-images containing N target sub-areas in the N candidate images;
the image output module is used for carrying out image synthesis on the N sub-images and outputting a target image of the target shooting scene;
one alternative image is composed of images of the N target sub-regions, each target sub-region is different, and N is an integer larger than 1;
wherein the sub-image obtaining module is specifically configured to:
acquiring a subregion partition mode of a target splicing template;
determining N target subregions according to the subregion division mode of the target splicing template;
respectively acquiring sub-images containing target sub-areas in each alternative image according to the shooting sequence of each alternative image to obtain N sub-images;
and the area corresponding to each sub-image is the sum of the target sub-area corresponding to each candidate image and the target sub-areas corresponding to all candidate images in the prior shooting sequence.
9. Terminal device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the photographing method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 7.
CN201811629380.XA 2018-12-28 2018-12-28 Photographing method, terminal device and storage medium Active CN109474787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811629380.XA CN109474787B (en) 2018-12-28 2018-12-28 Photographing method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811629380.XA CN109474787B (en) 2018-12-28 2018-12-28 Photographing method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN109474787A CN109474787A (en) 2019-03-15
CN109474787B true CN109474787B (en) 2021-05-14

Family

ID=65676934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811629380.XA Active CN109474787B (en) 2018-12-28 2018-12-28 Photographing method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN109474787B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355889B (en) * 2020-03-12 2022-02-01 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN111314620B (en) * 2020-03-26 2022-03-04 上海盛付通电子支付服务有限公司 Photographing method and apparatus
CN111815531B (en) * 2020-07-09 2024-03-01 Oppo广东移动通信有限公司 Image processing method, device, terminal equipment and computer readable storage medium
CN113973172B (en) * 2020-07-23 2023-09-26 北京小米移动软件有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN112040126A (en) * 2020-08-31 2020-12-04 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and readable storage medium
CN112437231B (en) * 2020-11-24 2023-11-14 维沃移动通信(杭州)有限公司 Image shooting method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1748410A (en) * 2003-08-11 2006-03-15 松下电器产业株式会社 Photographing system and photographing method
CN101889434A (en) * 2007-12-05 2010-11-17 佳能株式会社 Image processing apparatus, control method thereof, and program
CN102542573A (en) * 2010-10-27 2012-07-04 索尼公司 Image processing apparatus, image processing method, and program
CN104113682A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Image acquisition method and electronic equipment
CN104112262A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method and electronic apparatus
CN104427260A (en) * 2013-09-03 2015-03-18 卡西欧计算机株式会社 Moving image generation system and moving image generation method
CN107395957A (en) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 Photographic method, device, storage medium and electronic equipment
CN108961158A (en) * 2017-05-17 2018-12-07 中国移动通信有限公司研究院 A kind of image composition method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967790B (en) * 2014-08-06 2018-09-11 腾讯科技(北京)有限公司 Method, photo taking, device and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1748410A (en) * 2003-08-11 2006-03-15 松下电器产业株式会社 Photographing system and photographing method
CN101889434A (en) * 2007-12-05 2010-11-17 佳能株式会社 Image processing apparatus, control method thereof, and program
CN102542573A (en) * 2010-10-27 2012-07-04 索尼公司 Image processing apparatus, image processing method, and program
CN104113682A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Image acquisition method and electronic equipment
CN104112262A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method and electronic apparatus
CN104427260A (en) * 2013-09-03 2015-03-18 卡西欧计算机株式会社 Moving image generation system and moving image generation method
CN108961158A (en) * 2017-05-17 2018-12-07 中国移动通信有限公司研究院 A kind of image composition method and device
CN107395957A (en) * 2017-06-30 2017-11-24 广东欧珀移动通信有限公司 Photographic method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109474787A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109474787B (en) Photographing method, terminal device and storage medium
CN108668083B (en) Photographing method and terminal
CN107995429B (en) Shooting method and mobile terminal
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN109862267B (en) Shooting method and terminal equipment
CN111355889B (en) Shooting method, shooting device, electronic equipment and storage medium
CN108495029B (en) Photographing method and mobile terminal
CN108471498B (en) Shooting preview method and terminal
CN108881733B (en) Panoramic shooting method and mobile terminal
CN111050070B (en) Video shooting method and device, electronic equipment and medium
CN110933306A (en) Method for sharing shooting parameters and electronic equipment
CN109102555B (en) Image editing method and terminal
CN108848313B (en) Multi-person photographing method, terminal and storage medium
CN111010511B (en) Panoramic body-separating image shooting method and electronic equipment
CN109684277B (en) Image display method and terminal
CN111432195A (en) Image shooting method and electronic equipment
CN108924422B (en) Panoramic photographing method and mobile terminal
CN110798621A (en) Image processing method and electronic equipment
CN111464746B (en) Photographing method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN108174109B (en) Photographing method and mobile terminal
CN111447365B (en) Shooting method and electronic equipment
CN111597370A (en) Shooting method and electronic equipment
CN111083374B (en) Filter adding method and electronic equipment
CN110908517B (en) Image editing method, image editing device, electronic equipment and 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