[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107172361B - A kind of method and mobile terminal of pan-shot - Google Patents

A kind of method and mobile terminal of pan-shot Download PDF

Info

Publication number
CN107172361B
CN107172361B CN201710564839.1A CN201710564839A CN107172361B CN 107172361 B CN107172361 B CN 107172361B CN 201710564839 A CN201710564839 A CN 201710564839A CN 107172361 B CN107172361 B CN 107172361B
Authority
CN
China
Prior art keywords
frame
spliced
picture frame
picture
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
CN201710564839.1A
Other languages
Chinese (zh)
Other versions
CN107172361A (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 CN201710564839.1A priority Critical patent/CN107172361B/en
Publication of CN107172361A publication Critical patent/CN107172361A/en
Application granted granted Critical
Publication of CN107172361B publication Critical patent/CN107172361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Stereoscopic And Panoramic Photography (AREA)

Abstract

The present invention provides the method and mobile terminal of a kind of pan-shot, solves the problems, such as that current user need to could clap panoramic picture according to single preset direction cell phone.The present invention includes: after receiving pan-shot instruction, to carry out video capture, obtain panoramic video stream;Panoramic video stream is decomposed into multiple images frame;A picture frame is chosen in multiple images frame as benchmark image frame;The first preset quantity picture frame is chosen in multiple images frame as picture frame to be spliced;First preset quantity picture frame to be spliced is spliced with benchmark image frame, generates panoramic picture.The present invention is when shooting video, it can be along any angle mobile terminal, it solves the problems, such as that panoramic picture need to could be clapped according to single preset direction cell phone, and the picture frame static monitor that the panoramic picture in the present invention is obtained by video Traffic Decomposition, avoid the bad problem of the imaging effect as caused by user's manual rotational force degree is uneven or movement speed unevenness.

Description

A kind of method and mobile terminal of pan-shot
Technical field
The present invention relates to the technical field of electronic application more particularly to the methods and mobile terminal of a kind of pan-shot.
Background technique
With popularizing for smart phone, the use environment faced required for smart phone also becomes increasingly complex, camera Usage scenario is also more and more.Currently, to make subject have the content of finding a view of more perspective, many smart phones are all wrapped Camera function containing panorama.Specifically, smart phone opens camera, panoramic photographing mode is enabled, as shown in Figure 1, edge and mobile phone The vertical perpendicular direction of placement direction turns right or cell phone, has shot and non-photographing section has a line of demarcation, Based on the reference picture for having shot completion by left side, line of demarcation gradually moves right, and is constantly incorporated into photo of newly finding a view, final complete At the shooting of distant view photograph.
But above-mentioned smart phone is gradually folded by rotation or cell phone in real time, and by reference picture and new content of finding a view The scheme that the mode added synthesizes distant view photograph has the disadvantage that due in distant view photograph shooting process, the mobile phone side of placement vertically It can only be always maintained at vertical angle to hand rotation or moving direction, otherwise can not be incorporated into content of newly finding a view.Therefore, it is shooting Shooting must just be can be carried out according to single preset direction cell phone when panoramic picture, affect the user experience that panorama is taken pictures. In addition, can be manually rotated in user or when movement speed unevenness, it may appear that the photograph of currently finding a view that reference picture and real time new are incorporated into The excessively discontinuous phenomenon in piece line of demarcation, to influence imaging effect.
Summary of the invention
The purpose of the present invention is to provide a kind of method of pan-shot and mobile terminals, need to press to solve current user The problem of panoramic picture could be clapped according to single preset direction cell phone.
To achieve the goals above, the present invention provides a kind of methods of pan-shot, are applied to mobile terminal, comprising:
After receiving pan-shot instruction, video capture is carried out, panoramic video stream is obtained;
The panoramic video stream is decomposed into multiple images frame;
A picture frame is chosen in multiple described image frames as benchmark image frame;
At least one set of picture frame to be spliced is chosen in multiple described image frames, wherein in same group of picture frame to be spliced The shooting interval value of two neighboring picture frame to be spliced is identical, and two neighboring to be spliced in different group picture frames to be spliced The shooting interval value of picture frame is different, includes the benchmark image frame in every group of picture frame to be spliced;
Every group of picture frame to be spliced and the benchmark image frame are spliced, at least one panoramic picture is generated, it is described The number of panoramic picture is identical as the group number of picture frame to be spliced.
To achieve the goals above, the embodiments of the present invention also provide a kind of mobile terminals, comprising:
Shooting module carries out video capture, obtains panoramic video stream after receiving pan-shot instruction;
Decomposing module, for the panoramic video stream to be decomposed into multiple images frame;
First chooses module, for choosing a picture frame in multiple described image frames as benchmark image frame;
Second chooses module, for choosing at least one set of picture frame to be spliced in multiple described image frames, wherein same The shooting interval value of two neighboring picture frame to be spliced is identical in group picture frame to be spliced, and different group picture frames to be spliced In two neighboring picture frame to be spliced shooting interval value it is different, include the reference map in every group of picture frame to be spliced As frame;
Splicing module generates at least one for splicing every group of picture frame to be spliced and the benchmark image frame Panoramic picture, the number of the panoramic picture are identical as the group number of picture frame to be spliced.
To achieve the goals above, the embodiments of the present invention also provide a kind of mobile terminals, including memory, processor And the program for the pan-shot that can be run on a memory and on a processor is stored, the processor executes the pan-shot Program when realize step in the method for pan-shot as described above.
To achieve the goals above, it the embodiments of the present invention also provide a kind of computer readable storage medium, deposits thereon Contain the program of pan-shot, the program of the pan-shot realizes pan-shot as described above method when being executed by processor In step.
The embodiment of the present invention has the advantages that
The above-mentioned technical proposal of the embodiment of the present invention carries out video capture, obtains panorama after receiving pan-shot instruction Video flowing;The panoramic video stream is decomposed into multiple images frame;A picture frame is chosen in multiple images frame as benchmark Picture frame;At least one set of picture frame to be spliced is chosen in multiple images frame;By every group of picture frame to be spliced and the reference map As frame is spliced, at least one panoramic picture is generated.In the embodiment of the present invention when shooting video, user can be along any angle Mobile terminal solves the problems, such as that current user need to could clap panoramic picture, and this hair according to single preset direction cell phone Panoramic picture in bright embodiment is the picture frame static monitor obtained by video Traffic Decomposition, avoid in shooting process due to Family can be manually rotated that dynamics is uneven or movement speed it is uneven caused by the bad problem of imaging effect.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the display schematic diagram of existing mobile terminal photographing panorama picture;
Fig. 2 is the first work flow diagram of the method for the pan-shot of the embodiment of the present invention;
Fig. 3 is the display schematic diagram that panoramic picture is synthesized in the embodiment of the present invention;
Fig. 4 is the display schematic diagram that subject movement speed is detected in the embodiment of the present invention;
Fig. 5 is the second work flow diagram of the method for the pan-shot of the embodiment of the present invention;
Fig. 6 is the first structure block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 7 is the second structural block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 8 is the third structural block diagram of the mobile terminal of the embodiment of the present invention;
Fig. 9 is the 4th structural block diagram of the mobile terminal of the embodiment of the present invention;
Figure 10 is the 5th structural block diagram of the mobile terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention need to could clap panoramic picture according to single preset direction cell phone for current user Problem.The present invention provides a kind of method of pan-shot and mobile terminals, and in photographing panorama picture, video Traffic Decomposition is obtained To multiple images frame be spliced to form panoramic picture, solve current distant view photograph generate in real time photo imaging effect it is bad and use The problem of family need to could clap panoramic picture according to single preset direction cell phone.
Fig. 2 is the flow chart of the method for the pan-shot that one embodiment of the invention provides, as shown in Fig. 2, this method comprises:
Step 201: after receiving pan-shot instruction, carrying out video capture, obtain panoramic video stream.
After receiving pan-shot instruction, shooting frame rate is adjusted according to the movement speed of subject, according to adjustment Shooting frame rate afterwards carries out video capture, when such as detecting that subject is static, then can suitably reduce shooting frame rate to reduce Shooting frame rate can be then transferred to maximum when the movement speed of subject is greater than preset threshold (such as 10m/s) by power consumption, detection The quality for the panoramic picture that (such as 30bps) is shot with guarantee.
Here, after receiving pan-shot instruction, when carrying out video capture, the moving direction of mobile terminal is unrestricted System, user can improve the usage experience of user along any direction mobile terminal.
Step 202: above-mentioned panoramic video stream is decomposed into multiple images frame.
Specifically, a picture frame can be decomposed into each video frame in panoramic video stream, in order to subsequent to multiple Picture frame carries out splicing and generates panoramic picture.
Step 203: a picture frame is chosen in multiple above-mentioned picture frames as benchmark image frame.
Here, a part of picture frame being chosen in multiple above-mentioned picture frames and being supplied to user and selected, user is selected The picture frame selected is as benchmark image frame, in order to emphasis captured by user prominent when synthesizing panoramic picture.
Step 204: at least one set of picture frame to be spliced is chosen in multiple above-mentioned picture frames, wherein same group to be spliced The shooting interval value of two neighboring picture frame to be spliced is identical in picture frame, and adjacent two in different group picture frames to be spliced The shooting interval value of a picture frame to be spliced is different, includes the benchmark image frame in every group of picture frame to be spliced.
Here, first picture frame in every group of picture frame to be spliced is first picture frame in panoramic video stream, often The last one picture frame in group picture frame to be spliced is the last one picture frame in panoramic video stream, first figure here As frame refers to that the earliest picture frame of shooting time, the last one picture frame refer to the picture frame of shooting time the latest.
It is assumed that the shooting interval value of two adjacent images frame is t, then every group of picture frame to be spliced in panoramic video stream In two neighboring picture frame to be spliced shooting interval value can be specially t integral multiple.
Preferably, in every group of picture frame to be spliced two neighboring picture frame to be spliced shooting interval value, can basis The shooting frame rate of panoramic video stream determines, wherein shooting frame rate is bigger, and shooting interval value is bigger.As shooting frame rate is smaller When, three groups of picture frames to be spliced that shooting interval value is t, 2t, 3t can be chosen.
Here, if the shooting frame rate of panoramic video stream is greater than preset threshold, show the movement speed of subject compared with Greatly, need to choose more picture frame to be spliced at this time (the shooting interval value of i.e. two neighboring picture frame to be spliced is smaller) Panoramic picture is synthesized, to guarantee the quality of panoramic picture, if the shooting frame rate of panoramic video stream is less than or equal to default threshold Value, then show that the movement speed of subject is smaller, at this time can less choose a part of picture frame to be spliced (it is i.e. two neighboring to The shooting interval value of stitching image frame is larger) Lai Hecheng panoramic picture, to reduce power consumption when terminal synthesis panoramic picture.
Here, the multiple groups picture frame to be spliced with different shooting interval values can be chosen, can be spelled in order to subsequent Multiple panoramic pictures are picked out, the range of choice of user is increased.
Step 205: every group of picture frame to be spliced is spliced with benchmark image frame, generates at least one panoramic picture, The number of the panoramic picture is identical as the group number of picture frame to be spliced.
Specifically, according to the shooting time of picture frame to be spliced in every group of picture frame to be spliced and the benchmark image frame Spacing value, according to the sequence that spacing value is ascending, by the picture frame to be spliced in every group of picture frame to be spliced successively with benchmark Picture frame is spliced, at least one panoramic picture is generated.
As shown in figure 3, above-mentioned panoramic picture may include that the multiple images frame obtained by panoramic video Traffic Decomposition synthesizes one by one The panoramic picture panoramic picture of synthesis (i.e. interval time t), on the basis of the shooting time of benchmark image frame, forward and backward The successively panoramic picture of interval time t synthesis and on the basis of the shooting time of benchmark image frame, forward and backward successively between Every the panoramic picture of time 2t synthesis.
It is assumed that i-th picture frame is benchmark picture frame, can on the basis of the shooting time of benchmark image frame, shoot respectively to Splice simultaneously after forward direction, i+1 picture frame, (i-1)-th picture frame and benchmark image frame i are spliced simultaneously, obtain new base Quasi- picture frame i, then by benchmark image frame i, splice simultaneously with the i-th+2 picture frames, the i-th -2 picture frames, obtain new benchmark Picture frame i,, until reference picture and the splicing of first picture frame and the last one picture frame are completed, what is synthesized one by one is complete Scape image.
Similarly, it can shoot and respectively forwardly splice simultaneously backward, by i-th+2 on the basis of the shooting time of benchmark image frame A picture frame, the i-th -2 picture frames and benchmark image frame i splice simultaneously, obtain new benchmark image frame i, then by benchmark image Frame i splices simultaneously with the i-th+4 picture frames, the i-th -4 picture frames, obtains new benchmark image frame i,, until reference picture It completes, obtains on the basis of the shooting time of benchmark image frame, forward with first picture frame and the splicing of the last one picture frame And the panoramic picture that successively interval time t is synthesized backward.
The method of the pan-shot of the embodiment of the present invention carries out video capture after receiving pan-shot instruction, obtains complete Scape video flowing;Panoramic video stream is decomposed into multiple images frame;A picture frame is chosen in multiple images frame as reference map As frame;At least one set of picture frame to be spliced is chosen in multiple images frame;By every group of picture frame to be spliced and benchmark image frame into Row splicing, generates at least one panoramic picture.In the embodiment of the present invention when shooting video, user can move end along any angle End solves the problems, such as that current user need to could clap panoramic picture according to single preset direction cell phone, and the present invention is implemented Panoramic picture in example is the picture frame static monitor obtained by video Traffic Decomposition, is avoided in shooting process since user is manual Rotation dynamics is uneven or movement speed it is uneven caused by the bad problem of imaging effect.
Preferably, above-mentioned steps 201 include: after receiving pan-shot instruction, according to the movement speed of subject, Determine shooting frame rate, wherein movement speed is bigger, and shooting frame rate is bigger;Video capture is carried out according to above-mentioned shooting frame rate, is obtained The panoramic video stream.
Wherein, the movement speed of subject is obtained by following steps:
The movement speed of subject is detected by the velocity radar being arranged in mobile terminal.
Specifically, as shown in figure 4, built-in speed radar can be taken immediately below mobile phone rear camera with real-time measurement Object dynamically adjusts shooting frame rate further according to the object movement speed measured, for example detect in the movement speed of free space Be to object it is static, then can suitably reduce shooting frame rate to reduce power consumption, when ohject displacement speed is more than 10m/s Shi Zeke Shooting frame rate is transferred to maximum (for example certain mobile phone frame per second maximum is up to 30bps) to guarantee the matter for the distant view photograph shot Amount.Wherein, velocity radar is mainly the movement speed that subject is measured using Doppler effect principle.When target is to thunder Close up to antenna, reflection signal frequency will be above transmitter frequency;Conversely, when target is gone far from antenna, reflection signal frequency Rate will be less than transmitter frequency.So the relative velocity of target and radar can be calculated by the change numerical value of frequency.
The embodiment of the present invention can be adjusted and be clapped according to the movement speed of subject after receiving pan-shot instruction Frame per second is taken the photograph, to guarantee the quality of panoramic picture.
Further, above-mentioned steps 203 include: to obtain the shooting duration of video of the panoramic video stream, and shooting duration of video is drawn It is divided into the preset quantity period;In corresponding picture frame of each period, a picture frame is chosen as reference map to be selected As frame, preset quantity benchmark image frame to be selected is obtained;According to the benchmark image frame selection instruction received, benchmark image is determined Frame selection instruction picture frame selected in preset quantity benchmark image frame to be selected is as benchmark image frame.
Assuming that the shooting duration of video of panoramic video stream is 4t, which is divided into four periods, (0, t), (t, 2t), (2t, 3t), (3t, 4t), and choose a benchmark image frame to be selected respectively in four periods, compromise method is such as taken, The corresponding picture frame of 0.5t, 1.5t, 2.5t, 3.5t is chosen as benchmark image frame to be selected.
The embodiment of the present invention, by multiple images frame selected part picture frame as benchmark image frame to be selected so that User improves the usage experience of user without selecting from too many picture frame.
Further, above-mentioned steps 204 include:
Determine the first shooting time interval value of two neighboring picture frame to be spliced in first group of picture frame to be spliced, it is described First group of picture frame to be spliced is any group of picture frame to be spliced at least one set of picture frame to be spliced;With the benchmark image The shooting time of frame be the benchmark time, in multiple described image frames choose shooting time before the fiducial time and with The described image frame that the integral multiple of the first shooting time interval value is divided between the fiducial time is first part's image Frame, and interval of the shooting time after the fiducial time and with the fiducial time is chosen in multiple described image frames Described image frame for the integral multiple of first shooting interval is second part picture frame;Schemed according to the first part As frame and the second part picture frame, first group of picture frame to be spliced is obtained.
Every group of picture frame to be spliced in the embodiment of the present invention includes first that shooting time was located at before fiducial time Partial image and shooting time are located at the second part image after fiducial time, and two adjacent images frame in first part's image Shooting interval it is identical, the shooting interval of two adjacent images frame is identical in second part image.
Preferably, the method for the pan-shot of the embodiment of the present invention, after above-mentioned steps 205, further includes:
Above-mentioned panoramic picture is saved, and delete processing is carried out to picture frame to be spliced in mobile terminal and panoramic video stream.
The method of the pan-shot of the embodiment of the present invention has saved panoramic pictures to user after distant view photograph synthesis At cell phone system is by static images generated during the captured video of automatic cleaning and synthesis distant view photograph to save Mobile phone available memory space.
It is described as follows below to the one of the embodiment of the present invention with application flow.
As shown in figure 5, the application flow includes:
Step 501: whether detection mobile terminal opens panorama photographing mode.
Step 502: if opening panorama photographing mode, the movement speed of subject is detected by velocity radar, and The shooting frame rate of mobile terminal is adjusted according to the movement speed of subject.
Step 503: being panned video flowing according to shooting frame rate adjusted.
Step 504: panoramic video stream is converted into multiple images frame.
Step 505: the picture frame that user is chosen in preset quantity picture frame is as benchmark image frame.
Step 506: at least one set of picture frame to be spliced, phase in same group of picture frame to be spliced are chosen in multiple images frame The shooting interval value of adjacent two picture frames to be spliced is identical, and two neighboring figure to be spliced in different group picture frames to be spliced It include the benchmark image frame in every group of picture frame to be spliced as the shooting interval value difference of frame.
Step 507: every group of picture frame to be spliced being spliced with benchmark image frame, generates at least one panoramic picture.
Step 508: saving above-mentioned panoramic picture, and picture frame to be spliced in mobile terminal and panoramic video stream are deleted Except processing.
In the embodiment of the present invention, since panoramic picture is static monitor, user selects most to be satisfied with from multiple panoramic pictures One, can solve in current captured in real-time distant view photograph, moving object can be manually rotated by camera view-finder or people Or when movement speed unevenness, it may appear that reference picture and real time new were incorporated into find a view, and photo line of demarcation is excessively discontinuous existing As improving imaging effect.Meanwhile going to decompose video and superimposed image frame as axis using the time, current distant view photograph can also be broken The limitation of style of shooting.
As shown in fig. 6, the embodiments of the present invention also provide a kind of mobile terminals, comprising:
Shooting module 601 carries out video capture, obtains panoramic video stream after receiving pan-shot instruction;
Decomposing module 602, for the panoramic video stream to be decomposed into multiple images frame;
First chooses module 603, for choosing a picture frame in multiple described image frames as benchmark image frame;
Second chooses module 604, for choosing at least one set of picture frame to be spliced in multiple described image frames, wherein The shooting interval value of two neighboring picture frame to be spliced is identical in same group of picture frame to be spliced, and different group figures to be spliced It include the base in every group of picture frame to be spliced as the shooting interval value difference of picture frame to be spliced two neighboring in frame Quasi- picture frame;
Splicing module 605 generates at least one for splicing every group of picture frame to be spliced and the benchmark image frame A panoramic picture, the number of the panoramic picture are identical as the group number of picture frame to be spliced.
The mobile terminal of the embodiment of the present invention, as shown in fig. 7, the shooting module 601 includes:
First determines submodule 6011, after receiving pan-shot instruction, according to the movement speed of subject, Determine shooting frame rate, wherein movement speed is bigger, and shooting frame rate is bigger;
Shooting submodule 6012 obtains the panoramic video stream for carrying out video capture according to the shooting frame rate.
The mobile terminal of the embodiment of the present invention, the first selection module 603 include:
Acquisition submodule 6031 is divided for obtaining the shooting duration of video of the panoramic video stream, and by the shooting duration of video For the preset quantity period;
First chooses submodule 6032, for choosing a picture frame in corresponding picture frame of each period As benchmark image frame to be selected, preset quantity benchmark image frame to be selected is obtained;
Second determines submodule 6033, for determining the reference map according to the benchmark image frame selection instruction received As frame selection instruction picture frame selected in the preset quantity benchmark image frame to be selected is as benchmark image frame.
The mobile terminal of the embodiment of the present invention, the second selection module 604 include:
Third determines submodule 6041, for determining two neighboring picture frame to be spliced in first group of picture frame to be spliced First shooting time interval value, first group of picture frame to be spliced are that any group at least one set of picture frame to be spliced waits spelling Connect picture frame;
Second chooses submodule 6042, for using the shooting time of the benchmark image frame as the benchmark time, in multiple institutes It states selection shooting time in picture frame and is divided into first shooting before the fiducial time and between the fiducial time The described image frame of the integral multiple of time interval value is first part's picture frame, and in multiple described image frames when selection shooting Between be divided into after the fiducial time and between the fiducial time first shooting interval integral multiple institute Stating picture frame is second part picture frame;
4th determines submodule 6043, for obtaining according to first part's picture frame and the second part picture frame To first group of picture frame to be spliced.
The mobile terminal of the embodiment of the present invention, the splicing module 605 be used for according in every group of picture frame to be spliced wait spell The spacing value for connecing the shooting time of picture frame and the benchmark image frame waits for every group according to the sequence that spacing value is ascending Picture frame to be spliced in stitching image frame is successively spliced with the benchmark image frame, at least one panoramic picture is generated.
The mobile terminal of the embodiment of the present invention carries out video capture, obtains panoramic video after receiving pan-shot instruction Stream;The panoramic video stream is decomposed into multiple images frame;A picture frame is chosen in multiple images frame as benchmark image Frame;At least one set of picture frame to be spliced is chosen in multiple images frame;By every group of picture frame to be spliced and the benchmark image frame Spliced, generates at least one panoramic picture.In the embodiment of the present invention when shooting video, user can move along any angle Terminal solves the problems, such as that current user need to could clap panoramic picture according to single preset direction cell phone, and the present invention is real Applying the panoramic picture in example is the picture frame static monitor obtained by video Traffic Decomposition, is avoided in shooting process due to user hand Dynamic rotation dynamics is uneven or movement speed it is uneven caused by the bad problem of imaging effect.
It should be noted that the mobile terminal is terminal corresponding with above method embodiment, in above method embodiment All implementations can also reach identical technical effect suitable for the embodiment of the mobile terminal.
As shown in figure 8, being the another structural block diagram of mobile terminal of the embodiment of the present invention, mobile terminal 800 shown in Fig. 8 is wrapped It includes: at least one processor 801, memory 802, at least one network interface 804 and other users interface 803.Mobile terminal Various components in 800 are coupled by bus system 805.It is understood that bus system 805 for realizing these components it Between connection communication.Bus system 805 further includes power bus, control bus and status signal in addition to including data/address bus Bus.But for the sake of clear explanation, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein is intended to include but is not limited to these and arbitrarily its It is suitble to the memory of type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In one embodiment of this invention, by the program or instruction of calling memory 802 to store, the specific can be that The program or instruction stored in application program 8022 carries out video bat after processor 801 is for receiving pan-shot instruction It takes the photograph, obtains panoramic video stream;The panoramic video stream is decomposed into multiple images frame;One is chosen in multiple described image frames Picture frame is as benchmark image frame;At least one set of picture frame to be spliced is chosen in multiple described image frames, wherein same group is waited for The shooting interval value of two neighboring picture frame to be spliced is identical in stitching image frame, and phase in different group picture frames to be spliced The shooting interval value of adjacent two picture frames to be spliced is different, includes the benchmark image in every group of picture frame to be spliced Frame;Every group of picture frame to be spliced and the benchmark image frame are spliced, at least one panoramic picture, the panorama sketch are generated The number of picture is identical as the group number of picture frame to be spliced.
Optionally, processor 801 is also used to: after receiving pan-shot instruction, according to the movement speed of subject, Determine shooting frame rate, wherein movement speed is bigger, and shooting frame rate is bigger;Video capture is carried out according to the shooting frame rate, is obtained The panoramic video stream.
Optionally, processor 801 is also used to: obtaining the shooting duration of video of the panoramic video stream, and by the shooting duration of video It is divided into the preset quantity period;In corresponding picture frame of each period, a picture frame is chosen as to be selected Benchmark image frame obtains preset quantity benchmark image frame to be selected;According to the benchmark image frame selection instruction received, institute is determined Benchmark image frame selection instruction picture frame selected in the preset quantity benchmark image frame to be selected is stated as reference map As frame.
Optionally, processor 801 is also used to: determining two neighboring picture frame to be spliced in first group of picture frame to be spliced First shooting time interval value, first group of picture frame to be spliced are that any group at least one set of picture frame to be spliced waits spelling Connect picture frame;Using the shooting time of the benchmark image frame as the benchmark time, shooting time is chosen in multiple described image frames The institute of the integral multiple of the first shooting time interval value is divided into before the fiducial time and between the fiducial time State picture frame be first part's picture frame, and in multiple described image frames choose shooting time after the fiducial time, And the described image frame that the integral multiple of first shooting interval is divided between the fiducial time is second part figure As frame;According to first part's picture frame and the second part picture frame, first group of picture frame to be spliced is obtained.
Optionally, processor 801 is also used to: according to picture frame to be spliced in every group of picture frame to be spliced and the reference map As the spacing value of the shooting time of frame will be to be spliced in every group of picture frame to be spliced according to the sequence that spacing value is ascending Picture frame is successively spliced with the benchmark image frame, at least one panoramic picture is generated.
The mobile terminal 800 of the embodiment of the present invention carries out video after processor 801 is for receiving pan-shot instruction Shooting, obtains panoramic video stream;The panoramic video stream is decomposed into multiple images frame;A figure is chosen in multiple images frame As frame is as benchmark image frame;At least one set of picture frame to be spliced is chosen in multiple images frame;By every group of picture frame to be spliced Spliced with the benchmark image frame, generates at least one panoramic picture.In the embodiment of the present invention when shooting video, user Can be along any angle mobile terminal, panoramic picture need to could be clapped according to single preset direction cell phone by solving current user Problem, and the panoramic picture in the embodiment of the present invention is the picture frame static monitor obtained by video Traffic Decomposition, avoids shooting The problem bad due to imaging effect caused by user's manual rotational force degree is uneven or movement speed is uneven in the process.
Mobile terminal of the invention such as can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc. terminal.
Mobile terminal 800 can be realized each process that terminal is realized in previous embodiment, to avoid repeating, here no longer It repeats.
The method that the embodiments of the present invention disclose can be applied in processor 801, or real by processor 801 It is existing.Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method Each step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned place Reason device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
As shown in figure 9, another structural block diagram of the mobile terminal for the embodiment of the present invention.Mobile terminal 900 shown in Fig. 9 Including radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, processor 960, voicefrequency circuit 970, WiFi (Wireless Fidelity) module 980 and power supply 990.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 960 is given again, and can be received order that processor 960 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device 960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 960 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900 Carry out integral monitoring.Optionally, processor 960 may include one or more processing units.
In one embodiment of this invention, by calling the software program and/or module that store in the first memory 921 And/or the data in the second memory 922 carry out video capture after processor 960 is for receiving pan-shot instruction, Obtain panoramic video stream;The panoramic video stream is decomposed into multiple images frame;A figure is chosen in multiple described image frames As frame is as benchmark image frame;At least one set of picture frame to be spliced is chosen in multiple described image frames, wherein same group is waited spelling The shooting interval value for connecing two neighboring picture frame to be spliced in picture frame is identical, and adjacent in different group picture frames to be spliced The shooting interval value of two picture frames to be spliced is different, includes the benchmark image frame in every group of picture frame to be spliced; Every group of picture frame to be spliced and the benchmark image frame are spliced, at least one panoramic picture, the panoramic picture are generated Number it is identical as the group number of picture frame to be spliced.
Optionally, processor 960 is also used to: after receiving pan-shot instruction, according to the movement speed of subject, Determine shooting frame rate, wherein movement speed is bigger, and shooting frame rate is bigger;Video capture is carried out according to the shooting frame rate, is obtained The panoramic video stream.
Optionally, processor 960 is also used to: obtaining the shooting duration of video of the panoramic video stream, and by the shooting duration of video It is divided into the preset quantity period;In corresponding picture frame of each period, a picture frame is chosen as to be selected Benchmark image frame obtains preset quantity benchmark image frame to be selected;According to the benchmark image frame selection instruction received, institute is determined Benchmark image frame selection instruction picture frame selected in the preset quantity benchmark image frame to be selected is stated as reference map As frame.
Optionally, processor 960 is also used to: determining two neighboring picture frame to be spliced in first group of picture frame to be spliced First shooting time interval value, first group of picture frame to be spliced are that any group at least one set of picture frame to be spliced waits spelling Connect picture frame;Using the shooting time of the benchmark image frame as the benchmark time, shooting time is chosen in multiple described image frames The institute of the integral multiple of the first shooting time interval value is divided into before the fiducial time and between the fiducial time State picture frame be first part's picture frame, and in multiple described image frames choose shooting time after the fiducial time, And the described image frame that the integral multiple of first shooting interval is divided between the fiducial time is second part figure As frame;According to first part's picture frame and the second part picture frame, first group of picture frame to be spliced is obtained.
Optionally, processor 960 is also used to: according to picture frame to be spliced in every group of picture frame to be spliced and the reference map As the spacing value of the shooting time of frame will be to be spliced in every group of picture frame to be spliced according to the sequence that spacing value is ascending Picture frame is successively spliced with the benchmark image frame, at least one panoramic picture is generated.
Mobile terminal of the invention such as can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc. terminal.
Mobile terminal 900 can be realized each process that terminal is realized in previous embodiment, to avoid repeating, here no longer It repeats.
The mobile terminal 900 of the embodiment of the present invention carries out video after processor 960 is for receiving pan-shot instruction Shooting, obtains panoramic video stream;The panoramic video stream is decomposed into multiple images frame;A figure is chosen in multiple images frame As frame is as benchmark image frame;At least one set of picture frame to be spliced is chosen in multiple images frame;By every group of picture frame to be spliced Spliced with the benchmark image frame, generates at least one panoramic picture.In the embodiment of the present invention when shooting video, user Can be along any angle mobile terminal, panoramic picture need to could be clapped according to single preset direction cell phone by solving current user Problem, and the panoramic picture in the embodiment of the present invention is the picture frame static monitor obtained by video Traffic Decomposition, avoids shooting The problem bad due to imaging effect caused by user's manual rotational force degree is uneven or movement speed is uneven in the process.
It as shown in Figure 10, is another structural block diagram of the mobile terminal of the embodiment of the present invention, mobile terminal shown in Fig. 10, Including memory 1020, processor 1000, transceiver 1010, user interface 1030, bus interface and it is stored in memory 1020 Computer program that is upper and can running on processor 1000, the processor 1000 are used to read the journey in memory 1020 Sequence executes following process:
After receiving pan-shot instruction, video capture is carried out, panoramic video stream is obtained;
The panoramic video stream is decomposed into multiple images frame;
A picture frame is chosen in multiple described image frames as benchmark image frame;
At least one set of picture frame to be spliced is chosen in multiple described image frames, wherein in same group of picture frame to be spliced The shooting interval value of two neighboring picture frame to be spliced is identical, and two neighboring to be spliced in different group picture frames to be spliced The shooting interval value of picture frame is different, includes the benchmark image frame in every group of picture frame to be spliced;
Every group of picture frame to be spliced and the benchmark image frame are spliced, generated complete described at least one panoramic picture The number of scape image is identical as the group number of picture frame to be spliced.
Wherein, in Figure 10, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor The various circuits for the memory that 1000 one or more processors represented and memory 1020 represent link together.Total coil holder Structure can also link together various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like, this It is all a bit it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.Transceiver 1010 can be multiple element, that is, include transmitter and transceiver, provide for logical with various other devices over a transmission medium The unit of letter.For different user equipmenies, user interface 1030, which can also be, the interface for needing equipment external is inscribed, even The equipment connect includes but is not limited to keypad, display, loudspeaker, microphone, control stick etc..
Processor 1000, which is responsible for management bus architecture and common processing, memory 1020, can store processor 1000 and exists Execute used data when operation.
After processor 1000 is also used to receive pan-shot instruction, according to the movement speed of subject, determines and clap Take the photograph frame per second, wherein movement speed is bigger, and shooting frame rate is bigger;Video capture is carried out according to the shooting frame rate, is obtained described complete Scape video flowing.
Processor 1000 is also used to obtain the shooting duration of video of the panoramic video stream, and the shooting duration of video is divided into pre- If the quantity period;
In corresponding picture frame of each period, a picture frame is chosen as benchmark image frame to be selected, is obtained Preset quantity benchmark image frame to be selected;According to the benchmark image frame selection instruction received, the benchmark image frame choosing is determined Instruction picture frame selected in the preset quantity benchmark image frame to be selected is selected as benchmark image frame.
Optionally, processor 1000 is also used to determine two neighboring picture frame to be spliced in first group of picture frame to be spliced First shooting time interval value, first group of picture frame to be spliced are that any group at least one set of picture frame to be spliced waits spelling Connect picture frame;Using the shooting time of the benchmark image frame as the benchmark time, shooting time is chosen in multiple described image frames The institute of the integral multiple of the first shooting time interval value is divided into before the fiducial time and between the fiducial time State picture frame be first part's picture frame, and in multiple described image frames choose shooting time after the fiducial time, And the described image frame that the integral multiple of first shooting interval is divided between the fiducial time is second part figure As frame;According to first part's picture frame and the second part picture frame, first group of picture frame to be spliced is obtained.
Optionally, processor 1000 is also used to according to picture frame to be spliced in every group of picture frame to be spliced and the reference map As the spacing value of the shooting time of frame will be to be spliced in every group of picture frame to be spliced according to the sequence that spacing value is ascending Picture frame is successively spliced with the benchmark image frame, at least one panoramic picture is generated.
In one embodiment of this invention, a kind of computer readable storage medium is additionally provided, computer is stored thereon with Program, the program perform the steps of when being executed by processor
After receiving pan-shot instruction, video capture is carried out, panoramic video stream is obtained;
The panoramic video stream is decomposed into multiple images frame;
A picture frame is chosen in multiple described image frames as benchmark image frame;
At least one set of picture frame to be spliced is chosen in multiple described image frames, wherein in same group of picture frame to be spliced The shooting interval value of two neighboring picture frame to be spliced is identical, and two neighboring to be spliced in different group picture frames to be spliced The shooting interval value of picture frame is different, includes the benchmark image frame in every group of picture frame to be spliced;
Every group of picture frame to be spliced and the benchmark image frame are spliced, at least one panoramic picture is generated, it is described The number of panoramic picture is identical as the group number of picture frame to be spliced.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is controlled by computer program to complete, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (9)

1. a kind of method of pan-shot is applied to mobile terminal characterized by comprising
After receiving pan-shot instruction, video capture is carried out, panoramic video stream is obtained;
The panoramic video stream is decomposed into multiple images frame;
A picture frame is chosen in multiple described image frames as benchmark image frame;
At least one set of picture frame to be spliced is chosen in multiple described image frames, wherein adjacent in same group of picture frame to be spliced The shooting interval value of two picture frames to be spliced is identical, and two neighboring image to be spliced in different group picture frames to be spliced The shooting interval value of frame is different, includes the benchmark image frame in every group of picture frame to be spliced;
Every group of picture frame to be spliced and the benchmark image frame are spliced, at least one panoramic picture, the panorama are generated The number of image is identical as the group number of picture frame to be spliced;
The step of selection at least one set picture frame to be spliced, includes: in multiple described image frames
Determine two neighboring picture frame to be spliced in first group of picture frame to be spliced first shooting time interval value, described first Group picture frame to be spliced is any group of picture frame to be spliced at least one set of picture frame to be spliced;
Using the shooting time of the benchmark image frame as the benchmark time, shooting time is chosen in multiple described image frames described The described image of the integral multiple of the first shooting time interval value is divided into before fiducial time and between the fiducial time Frame be first part's picture frame, and in multiple described image frames choose shooting time after the fiducial time and with institute The described image frame for stating the integral multiple for being divided into first shooting interval between fiducial time is second part picture frame;
According to first part's picture frame and the second part picture frame, first group of picture frame to be spliced is obtained.
2. the method for pan-shot according to claim 1, which is characterized in that it is described receive pan-shot instruction after, Video capture is carried out, the step of obtaining panoramic video stream includes:
After receiving pan-shot instruction, according to the movement speed of subject, shooting frame rate is determined, wherein movement speed Bigger shooting frame rate is bigger;
Video capture is carried out according to the shooting frame rate, obtains the panoramic video stream.
3. the method for pan-shot according to claim 1, which is characterized in that described to be chosen in multiple described image frames One picture frame includes: as the step of benchmark image frame
The shooting duration of video of the panoramic video stream is obtained, and the shooting duration of video is divided into the preset quantity period;
In corresponding picture frame of each period, a picture frame is chosen as benchmark image frame to be selected, is preset Quantity benchmark image frame to be selected;
According to the benchmark image frame selection instruction received, determine that the benchmark image frame selection instruction is described in preset quantity Selected picture frame is as benchmark image frame in benchmark image frame to be selected.
4. the method for pan-shot according to claim 1, which is characterized in that by every group of picture frame to be spliced and the base The step of quasi- picture frame is spliced, at least one panoramic picture is generated include:
According to the spacing value of picture frame to be spliced in every group of picture frame to be spliced and the shooting time of the benchmark image frame, according to The ascending sequence of spacing value, by the picture frame to be spliced in every group of picture frame to be spliced successively with the benchmark image frame into Row splicing, generates at least one panoramic picture.
5. a kind of mobile terminal characterized by comprising
Shooting module carries out video capture, obtains panoramic video stream after receiving pan-shot instruction;
Decomposing module, for the panoramic video stream to be decomposed into multiple images frame;
First chooses module, for choosing a picture frame in multiple described image frames as benchmark image frame;
Second chooses module, for choosing at least one set of picture frame to be spliced in multiple described image frames, wherein same group is waited for The shooting interval value of two neighboring picture frame to be spliced is identical in stitching image frame, and phase in different group picture frames to be spliced The shooting interval value of adjacent two picture frames to be spliced is different, includes the benchmark image in every group of picture frame to be spliced Frame;
Splicing module generates at least one panorama for splicing every group of picture frame to be spliced and the benchmark image frame Image, the number of the panoramic picture are identical as the group number of picture frame to be spliced;
Described second, which chooses module, includes:
Third determines submodule, for determining the first shooting of two neighboring picture frame to be spliced in first group of picture frame to be spliced Time interval value, first group of picture frame to be spliced are any group of image to be spliced at least one set of picture frame to be spliced Frame;
Second chooses submodule, for using the shooting time of the benchmark image frame as the benchmark time, in multiple described image frames Middle selection shooting time is divided into first shooting interval before the fiducial time and between the fiducial time The described image frame of the integral multiple of value is first part's picture frame, and chooses shooting time described in multiple described image frames The described image frame of the integral multiple of first shooting interval is divided into after fiducial time and between the fiducial time For second part picture frame;
4th determines submodule, for obtaining first group according to first part's picture frame and the second part picture frame Picture frame to be spliced.
6. mobile terminal according to claim 5, which is characterized in that the shooting module includes:
First determines submodule, after receiving pan-shot instruction, according to the movement speed of subject, determines shooting Frame per second, wherein movement speed is bigger, and shooting frame rate is bigger;
Shooting submodule obtains the panoramic video stream for carrying out video capture according to the shooting frame rate.
7. mobile terminal according to claim 5, which is characterized in that described first, which chooses module, includes:
Acquisition submodule is divided into present count for obtaining the shooting duration of video of the panoramic video stream, and by the shooting duration of video Measure a period;
First chooses submodule, for choosing a picture frame as to be selected in corresponding picture frame of each period Benchmark image frame obtains preset quantity benchmark image frame to be selected;
Second determines submodule, for determining the benchmark image frame selection according to the benchmark image frame selection instruction received Instruct selected picture frame in the preset quantity benchmark image frame to be selected as benchmark image frame.
8. mobile terminal according to claim 5, which is characterized in that the splicing module is used for according to every group of figure to be spliced As the spacing value of picture frame to be spliced in frame and the shooting time of the benchmark image frame, according to ascending suitable of spacing value Sequence successively splices the picture frame to be spliced in every group of picture frame to be spliced with the benchmark image frame, generates at least one A panoramic picture.
9. a kind of mobile terminal including memory, processor and stores the panorama that can be run on a memory and on a processor The program of shooting, which is characterized in that the processor realizes that Claims 1-4 such as is appointed when executing the program of the pan-shot Step in the method for one pan-shot.
CN201710564839.1A 2017-07-12 2017-07-12 A kind of method and mobile terminal of pan-shot Active CN107172361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710564839.1A CN107172361B (en) 2017-07-12 2017-07-12 A kind of method and mobile terminal of pan-shot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710564839.1A CN107172361B (en) 2017-07-12 2017-07-12 A kind of method and mobile terminal of pan-shot

Publications (2)

Publication Number Publication Date
CN107172361A CN107172361A (en) 2017-09-15
CN107172361B true CN107172361B (en) 2019-11-15

Family

ID=59823830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710564839.1A Active CN107172361B (en) 2017-07-12 2017-07-12 A kind of method and mobile terminal of pan-shot

Country Status (1)

Country Link
CN (1) CN107172361B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6630939B2 (en) * 2018-04-26 2020-01-15 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Control device, imaging device, moving object, control method, and program
CN108881731B (en) * 2018-08-06 2021-07-02 Oppo广东移动通信有限公司 Panoramic shooting method and device and imaging equipment
CN108933899B (en) * 2018-08-22 2020-10-16 Oppo广东移动通信有限公司 Panorama shooting method, device, terminal and computer readable storage medium
CN110516522B (en) * 2019-05-30 2020-11-27 中通服创立信息科技有限责任公司 Inspection method and system
CN110910314B (en) * 2019-11-27 2020-09-25 广州市玄武无线科技股份有限公司 Splicing method and device for shelf scene images
CN111913635B (en) * 2020-08-14 2022-12-13 广东申义实业投资有限公司 Three-dimensional panoramic picture display method and device, mobile terminal and storage medium
CN113297890A (en) * 2020-10-21 2021-08-24 阿里巴巴集团控股有限公司 Object information processing method and device
CN112565590A (en) * 2020-11-16 2021-03-26 李诚专 Object 360-degree all-round-looking image generation method
CN112887589A (en) * 2021-01-08 2021-06-01 深圳市智胜科技信息有限公司 Panoramic shooting method and device based on unmanned aerial vehicle
CN113191286B (en) * 2021-05-08 2023-04-25 重庆紫光华山智安科技有限公司 Image data quality detection and optimization method, system, equipment and medium
CN116055711B (en) * 2022-08-12 2023-09-15 荣耀终端有限公司 Evaluation system, method and device for dynamic frame rate adjustment performance

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393953A (en) * 2011-07-15 2012-03-28 汉王科技股份有限公司 Method and device for splicing image frames
CN102905079A (en) * 2012-10-16 2013-01-30 北京小米科技有限责任公司 Method, device and mobile terminal for panorama shooting
CN104486544A (en) * 2014-12-08 2015-04-01 广东欧珀移动通信有限公司 Method and device for shooting panoramic photo
CN105957017A (en) * 2016-06-24 2016-09-21 电子科技大学 Video splicing method based on adaptive key frame sampling

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7133068B2 (en) * 2000-03-06 2006-11-07 Sony Corporation System and method for creating still images by utilizing a video camera device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393953A (en) * 2011-07-15 2012-03-28 汉王科技股份有限公司 Method and device for splicing image frames
CN102905079A (en) * 2012-10-16 2013-01-30 北京小米科技有限责任公司 Method, device and mobile terminal for panorama shooting
CN104486544A (en) * 2014-12-08 2015-04-01 广东欧珀移动通信有限公司 Method and device for shooting panoramic photo
CN105957017A (en) * 2016-06-24 2016-09-21 电子科技大学 Video splicing method based on adaptive key frame sampling

Also Published As

Publication number Publication date
CN107172361A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN107172361B (en) A kind of method and mobile terminal of pan-shot
CN107257439B (en) A kind of image pickup method and mobile terminal
CN105898143B (en) A kind of grasp shoot method and mobile terminal of moving object
CN107317993B (en) A kind of video call method and mobile terminal
CN105872148B (en) A kind of generation method and mobile terminal of high dynamic range images
CN106027907B (en) A kind of method and mobile terminal of adjust automatically camera
CN106231178B (en) A kind of self-timer method and mobile terminal
CN106791400B (en) A kind of image display method and mobile terminal
CN105959544B (en) A kind of image processing method and mobile terminal of mobile terminal
CN105827990B (en) A kind of automatic explosion method and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
CN107395976B (en) A kind of acquisition parameters setting method and mobile terminal
CN106658141B (en) A kind of method for processing video frequency and mobile terminal
CN105827951B (en) A kind of Moving Objects photographic method and mobile terminal
CN107231530B (en) A kind of photographic method and mobile terminal
CN106791450B (en) A kind of photographic method and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
CN106777329B (en) A kind of processing method and mobile terminal of image information
CN107155064B (en) A kind of image pickup method and mobile terminal
CN106791375B (en) A kind of shooting focusing method and mobile terminal
CN106506962A (en) A kind of image processing method and mobile terminal
CN106210512B (en) A kind of camera switching method and mobile terminal
CN105959574B (en) A kind of photographic method and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN106713659B (en) A kind of panorama shooting method and mobile terminal

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