CN108111746A - A kind of method and apparatus for realizing pan-shot - Google Patents

A kind of method and apparatus for realizing pan-shot Download PDF

Info

Publication number
CN108111746A
CN108111746A CN201611055085.9A CN201611055085A CN108111746A CN 108111746 A CN108111746 A CN 108111746A CN 201611055085 A CN201611055085 A CN 201611055085A CN 108111746 A CN108111746 A CN 108111746A
Authority
CN
China
Prior art keywords
pictures
removal
behind
distortion part
picture
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.)
Pending
Application number
CN201611055085.9A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611055085.9A priority Critical patent/CN108111746A/en
Publication of CN108111746A publication Critical patent/CN108111746A/en
Pending legal-status Critical Current

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/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

A kind of method and apparatus for realizing pan-shot, including:N pictures are obtained under panorama photographing mode;Wherein, N is the integer more than or equal to 2;Remove the distortion part in each pictures;Judge that arbitrary neighborhood two opens the picture after removing distortion part there are lap, the N pictures behind part that removal is distorted are spliced to obtain panoramic pictures.By the scheme of the embodiment of the present invention, spliced to obtain panoramic pictures again after first removing the distortion part in picture, so as to improve the quality of panoramic pictures.

Description

A kind of method and apparatus for realizing pan-shot
Technical field
Present document relates to but be not limited to terminal technology, espespecially a kind of method and apparatus for realizing pan-shot.
Background technology
Pan-shot refers to the plurality of pictures of all shootings being combined into a Zhang Quanjing picture, its basic shooting principle be by Adjacent two pictures carry out registration process and obtain optimal match point, are spliced adjacent two pictures according to optimal match point, So as to obtain panoramic pictures.But because all there is distortion in each pictures of shooting so that the stitching portion of adjacent two pictures There are the fissure of displacement, so that panoramic pictures quality is relatively low.
The content of the invention
To solve the above-mentioned problems, the embodiment of the present invention proposes a kind of method and apparatus for realizing pan-shot, can Improve the quality of panoramic pictures.
In order to achieve the above object, the embodiment of the present invention proposes a kind of device for realizing pan-shot, including:
Acquisition module, for obtaining N pictures under panorama photographing mode;Wherein, N is the integer more than or equal to 2;
First processing module, for removing the distortion part in each pictures;
Second processing module, for judging that arbitrary neighborhood two opens the picture behind removal distortion part there are lap, N pictures behind removal distortion part are spliced to obtain panoramic pictures.
Optionally, the first processing module is specifically used for:
After often obtaining a pictures, the distortion part of the picture of acquisition is removed.
Optionally, the Second processing module is specifically used for:
After removing the distortion part of the first pictures and the distortion part of the second pictures, after judging removal distortion part The first pictures and removal distortion part after the second pictures there are lap, first behind part of distorting will be removed The second pictures after picture and removal distortion part carry out registration process and obtain the first optimal match point;
The first pictures behind the removal distortion part and the removal are distorted according to first optimal match point The second pictures behind part are spliced to obtain first splicing picture;
Behind the distortion part for removing the i-th pictures, the i-th pictures and (i-2) behind removal distortion part are judged Splice picture there are lap, the i-th pictures and (i-2) splicing picture behind part that removal is distorted carry out registering Processing obtains (i-1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
According to (i-1) optimal match point by it is described removal distort part after the i-th pictures and the (i- 2) splicing picture is opened to be spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, judge (i+1) behind removal distortion part Picture and (i-1) splicing picture are there are lap, (i+1) pictures and (i- behind part that removal is distorted 1) open splicing picture and carry out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) splicing picture.
Optionally, the Second processing module is specifically used for:
Judge that arbitrary neighborhood two opens the picture behind removal distortion part there are lap, it will be behind removal distortion part The second pictures after first pictures and removal distortion part carry out registration process and obtain the first optimal match point;
The first pictures behind the removal distortion part and the removal are distorted according to first optimal match point The second pictures behind part are spliced to obtain first splicing picture;
The i-th pictures behind removal distortion part and (i-2) splicing picture are carried out registration process and obtain (i- 1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
According to (i-1) optimal match point by it is described removal distort part after the i-th pictures and the (i- 2) splicing picture is opened to be spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures behind part that removal is distorted The step of registration process obtains the i-th optimal match point is carried out with (i-1) splicing picture, is spelled until obtaining (N-1) Map interlinking piece.
The embodiment of the present invention also proposed a kind of method for realizing pan-shot, including:
N pictures are obtained under panorama photographing mode;Wherein, N is the integer more than or equal to 2;
Remove the distortion part in each pictures;
Judge that arbitrary neighborhood two opens the picture behind removal distortion part there are lap, it will be behind removal distortion part N pictures are spliced to obtain panoramic pictures.
Optionally, the distortion part in each pictures of removal includes:After often obtaining a pictures, acquisition is removed The distortion part of picture.
Optionally, it is described to judge that arbitrary neighborhood two opens the picture after removing distortion part there are lap, it will remove N pictures behind distortion part, which are spliced to obtain panoramic pictures, to be included:
After removing the distortion part of the first pictures and the distortion part of the second pictures, after judging removal distortion part The first pictures and removal distortion after the second pictures there are lap, the first pictures behind part of distorting will be removed Registration process, which is carried out, with the second pictures behind removal distortion part obtains the first optimal match point;
The first pictures behind the removal distortion part and the removal are distorted according to first optimal match point The second pictures behind part are spliced to obtain first splicing picture;
Behind the distortion part for removing the i-th pictures, the i-th pictures and (i-2) behind removal distortion part are judged Splice picture there are lap, the i-th pictures and (i-2) splicing picture behind part that removal is distorted carry out registering Processing obtains (i-1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
According to (i-1) optimal match point by it is described removal distort part after the i-th pictures and the (i- 2) splicing picture is opened to be spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, judge (i+1) behind removal distortion part Picture and (i-1) splicing picture are there are lap, (i+1) pictures and (i- behind part that removal is distorted 1) open splicing picture and carry out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) splicing picture.
Optionally, it is described will remove the N pictures behind part of distorting and spliced to obtain panoramic pictures include:
By the first pictures behind removal distortion part and the second pictures progress registration process behind removal distortion part Obtain the first optimal match point;
The first pictures behind the removal distortion part and the removal are distorted according to first optimal match point The second pictures behind part are spliced to obtain first splicing picture;
The i-th pictures behind removal distortion part and (i-2) splicing picture are carried out registration process and obtain (i- 1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
According to (i-1) optimal match point by it is described removal distort part after the i-th pictures and the (i- 2) splicing picture is opened to be spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures behind part that removal is distorted The step of registration process obtains the i-th optimal match point is carried out with (i-1) splicing picture, is spelled until obtaining (N-1) Map interlinking piece.
Compared with correlation technique, the embodiment of the present invention includes:N pictures are obtained under panorama photographing mode;Wherein, N is Integer more than or equal to 2;Remove the distortion part in each pictures;After judging that arbitrary neighborhood two opens removal distortion part Picture there are lap, the N pictures behind part of distorting will be removed and spliced to obtain panoramic pictures.By of the invention real The scheme of example is applied, is spliced to obtain panoramic pictures again after first removing the distortion part in picture, so as to improve panoramic pictures Quality.
Optionally, after one pictures of every acquisition, the distortion part of the picture of acquisition is removed, during so as to save processing Between.
Optionally, after the distortion part of the second pictures is removed, begin to be spliced, during so as to save processing Between.
Description of the drawings
The attached drawing in the embodiment of the present invention is illustrated below, the attached drawing in embodiment be for the present invention into one Step understands, for explaining the present invention together with specification, does not form limiting the scope of the invention.
The hardware architecture diagram of Fig. 1 each one optional mobile terminals of embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart for the method that first embodiment of the invention realizes pan-shot;
Fig. 4 is the schematic diagram of first embodiment of the invention pan-shot;
Fig. 5 is the schematic diagram for the picture that first embodiment of the invention obtains;
Fig. 6 is the schematic diagram that first embodiment of the invention splices picture;
Fig. 7 is the structure composition schematic diagram for the device that second embodiment of the invention realizes pan-shot.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
For the ease of the understanding of those skilled in the art, the invention will be further described below in conjunction with the accompanying drawings, not It can be used for limiting the scope of the invention.It should be noted that in the case where there is no conflict, embodiment and reality in the application The various modes applied in example can be mutually combined.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For representing the suffix of such as " module ", " component " or " unit " of element only for being conducive to the explanation of the present invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), guider etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that except being used in particular for moving Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention each one optional mobile terminal of embodiment hardware configuration signal.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 etc..Fig. 1 is shown There is the mobile terminal of various assemblies, it should be understood that be not required for implementing all components shown.It can be alternatively Implement more or fewer components.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include mobile communication module 112.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one in server and/or receive from it radio signal.Such radio signal can lead to including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
A/V input units 120 are used to receive audio or video signal.A/V input units 120 can include camera 121, phase Machine 121 in video acquisition mode or image capture mode by image capture apparatus obtain static images or video image Data are handled.Treated, and picture frame may be displayed on display unit 151.Through camera 121, treated that picture frame can It, can be according to shifting to be stored in memory 160 (or other storage mediums) or be sent via wireless communication unit 110 The construction of dynamic terminal provides two or more cameras 121.
User input unit 130 can generate key input data to control each of mobile terminal according to order input by user Kind operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, sensitive component of detection variation of resistance, pressure, capacitance etc. caused by by contact), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch-screen can be formed.
Interface unit 170 be used as at least one external device (ED) be connected with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can store to verify that user uses each of mobile terminal 100 It plants information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card, therefore, know Other device can be connected via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 may be used as allowing through it by electricity Power provides to the path of mobile terminal 100 from pedestal or may be used as allowing to pass through it from the various command signals that pedestal inputs It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal may be used as identifying that mobile terminal is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence so that user to be allowed to be watched from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can be stored on the vibrations of various modes and audio signal exported when touching and be applied to touch-screen Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 performs and voice communication, data Communication, video calling etc. relevant control and processing.Controller 180 can be with execution pattern identifying processing, will be in touch-screen The handwriting input of upper execution or picture draw input and are identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can with use such as computer software, hardware or any combination thereof calculating Machine readable medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, microcontroller, microprocessor, are designed to perform function described herein controller At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
The communication system that can be operated referring now to Fig. 2 descriptions mobile terminal wherein according to the present invention.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to figure 2, cdma wireless communication system can include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any one of several known interfaces, the interface include such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially away from BS270.Alternatively, each subregion can by be used for diversity reception two or more Antenna covers.Each BS270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals It is at least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate to obtain desired positioning letter with satellite 300 Breath.It substitutes GPS tracking techniques or outside GPS tracking techniques, the other of the position that can track mobile terminal can be used Technology.In addition, at least one GPS satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives each anti- It is handled to link signal in specific BS270.The data of acquisition are forwarded to relevant BSC275.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, provide to form the additional route service of interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
As shown in figure 3, first embodiment of the invention proposes a kind of method for realizing pan-shot, including:
Step 300 obtains N pictures under panorama photographing mode.
In this step, N is the integer more than or equal to 2.
In this step, when detecting the operation of user's selection panorama photographing mode, and receiving beginning shooting instruction, with Prefixed time interval timing acquisition picture.
Fig. 4 is the schematic diagram of pan-shot.As shown in figure 4, user selects panorama photographing mode, and click on shooting push button Afterwards, terminal just starts to obtain picture, and user can click on shooting push button at any time to terminate pan-shot.In shooting process, when with Family handheld terminal and when continuing mobile, arrow on display screen can be with movements, and terminal persistently obtains picture in mobile process.
Preset time can rule of thumb be set, and the quality of the panoramic pictures finally obtained is subject to preset time and shot The influence of the translational speed of camera lens in journey, since the translational speed of camera lens in shooting process is uncontrollable, preset time is got over Short, the part of adjacent two pictures overlapping is more, so as to which the panoramic pictures quality finally obtained is higher.
Distortion part in step 301, each pictures of removal.
In this step, Fig. 5 is the schematic diagram of the picture obtained.As shown in figure 5, the photo obtained is partly and non-including distortion It distorts part, the distortion part in picture includes the left hand edge part of picture and right hand edge part.
In this step, can after N pictures are obtained, i.e., user click on shooting push button terminate to remove after pan-shot it is each Distortion part in pictures.
After one pictures of every acquisition, the distortion part of the picture of acquisition can also be removed, so as to save processing time.
Step 302 judges that arbitrary neighborhood two opens the picture after removing distortion part there are lap, and removal is distorted N pictures behind part are spliced to obtain panoramic pictures.
Optionally, judge that arbitrary neighborhood two opens the picture after removing distortion part there are lap, removal is distorted N pictures behind part, which are spliced to obtain panoramic pictures, to be included:
After removing the distortion part of the first pictures and the distortion part of the second pictures, after judging removal distortion part The first pictures and removal distortion part after the second pictures there are lap, first behind part of distorting will be removed The second pictures after picture and removal distortion part carry out registration process and obtain the first optimal match point;According to first optimal The first pictures after removing part of distorting and the second pictures behind removal distortion part are spliced to obtain first with point Open splicing picture;Behind the distortion part for removing the i-th pictures, the i-th pictures and (i- behind removal distortion part are judged 2) splicing picture is opened there are lap, and the i-th pictures and (i-2) splicing picture behind part that removal is distorted carry out Registration process obtains (i-1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;According to (i-1) the i-th pictures after removing part of distorting and (i-2) splicing picture are spliced to obtain the by optimal match point (i-1) splicing picture is opened;Behind the distortion part for continuing to execute removal (i+1) pictures, after judging removal distortion part (i+1) pictures and (i-1) splicing picture are there are lap, (i+1) pictures behind part that removal is distorted The step of registration process obtains the i-th optimal match point is carried out with (i-1) splicing picture, is spelled until obtaining (N-1) Map interlinking piece.
Include alternatively, the N pictures behind part of distorting will be removed and spliced to obtain panoramic pictures:
By the first pictures behind removal distortion part and the second pictures progress registration process behind removal distortion part Obtain the first optimal match point;Distortion portion by the first pictures after removing part of distorting and is removed according to the first optimal match point The second pictures after point are spliced to obtain first splicing picture;The i-th pictures and the behind part of distorting will be removed (i-2) open splicing picture progress registration process and obtain (i-1) optimal match point;Wherein, i is more than or equal to 3, and is less than Or the integer equal to N;The i-th pictures after removing part of distorting and (i-2) are spelled according to (i-1) optimal match point Map interlinking piece is spliced to obtain (i-1) splicing picture;It, will behind the distortion part for continuing to execute removal (i+1) pictures (i+1) pictures and (i-1) a splicing picture behind removal distortion part carries out registration process and obtains the i-th best match The step of point, until obtaining (N-1) splicing picture.
In the above method, obtained (N-1) splicing picture is panoramic pictures.
In the above method, when judging that two pictures whether there is lap, can two pictures be subjected to registration process, If optimal match point can be found, illustrate there are lap, if optimal match point cannot be found, illustrate that there is no overlapping portions Point.
That is, can be after the distortion part of all pictures is removed, then proceed by splicing;It can also be in removal the It behind the distortion part of two pictures, begins to be spliced, so as to save processing time.
In the above method, Fig. 6 is the schematic diagram of splicing picture.As shown in fig. 6, each splicing picture includes three portions Point, it is respectively:Splicing a wherein pictures non-overlapped part 1, splicing another pictures non-overlapped part 2 and Lap 3.
Wherein, lap 3 can be wherein the lap of the lap of a pictures or another pictures or The wherein average value of the lap of the lap of a pictures and another pictures.
For example, after according to the first optimal match point by the first pictures after removing part of distorting and removal distortion part The second pictures when being spliced to obtain first splicing picture, removal distortion part is first determined according to the first optimal match point The lap of the first pictures afterwards and the second pictures behind removal distortion part, by first behind removal distortion part Behind the non-overlapped part of the second pictures behind the non-overlapped part of picture, removal distortion part and removal distortion part The lap of first pictures is stitched together to obtain first splicing picture;Alternatively, first behind part that removal is distorted Behind the non-overlapped part of the second pictures behind the non-overlapped parts of pictures, removal distortion part and removal distortion part The laps of the second pictures be stitched together to obtain first splicing picture;Alternatively, by remove behind part of distorting the The non-overlapped part of the second pictures behind the non-overlapped parts of one pictures, removal distortion part and removal distortion part The average value splicing of the lap of the second pictures after the lap of the first pictures afterwards and removal distortion part exists First splicing picture is obtained together.
The i-th pictures after removing part of distorting and (i-2) are spliced by picture according to (i-1) optimal match point Spliced to obtain the process of (i-1) splicing picture, with the behind distortion part will be removed according to the first optimal match point The process that one pictures are spliced to obtain first splicing picture with the second pictures behind removal distortion part is similar, here It repeats no more.
By the scheme of the embodiment of the present invention, spliced to obtain panorama sketch again after first removing the distortion part in picture Piece, so as to improve the quality of panoramic pictures.
Optionally, this method further includes:
After obtaining each splicing picture, the splicing picture of acquisition is shown, in this way, user can be during pan-shot Preview pan-shot effect, but when shooting effect is bad, is immediately finished pan-shot and re-starts shooting, it is high-quality so as to obtain The panoramic pictures of amount improve the Experience Degree of user.
Optionally, this method further includes:
The second pictures after the first pictures and removal distortion part after removal distortion part is judged are not present At the second pictures progress registration after the first pictures and removal distortion part after lap or part that removal distorts When cannot get the first optimal match point during reason, user's pan-shot failure is prompted;Alternatively, directly by removal distortion part The first pictures afterwards are spliced to obtain first splicing picture with the second pictures behind removal distortion part;It alternatively, will The first pictures and the second pictures obtained are spliced to obtain first splicing picture.
Optionally, this method further includes:
Lap is not present in the i-th pictures and (i-2) splicing picture after removal distortion part is judged, Or the i-th pictures behind distortion part will be removed and (i-2) splicing picture cannot get during registration process the (i-1) during optimal match point, user's pan-shot failure is prompted;Alternatively, the i-th pictures behind part that directly removal distorts Spliced to obtain (i-2) splicing picture with (i-2) splicing picture;Alternatively, by the i-th pictures and (i-2) Splicing picture is opened to be spliced to obtain (i-2) splicing picture.
Referring to Fig. 7, second embodiment of the invention also proposed a kind of device for realizing pan-shot, including:
Acquisition module, for obtaining N pictures under panorama photographing mode;Wherein, N is the integer more than or equal to 2;
First processing module, for removing the distortion part in each pictures;
Second processing module, for judging that arbitrary neighborhood two opens the picture behind removal distortion part there are lap, N pictures behind removal distortion part are spliced to obtain panoramic pictures.
Wherein, acquisition module can be realized by the camera 121 and controller 180 of Fig. 1, first processing module and second Processing module can be arranged in the controller 180 of Fig. 1.
Optionally, when acquisition module detect user select panorama photographing mode operation, and receive start shooting refer to When making, with prefixed time interval timing acquisition picture.
Fig. 4 is the schematic diagram of pan-shot.As shown in figure 4, user selects panorama photographing mode, and click on shooting push button Afterwards, terminal just starts to obtain picture, and user can click on shooting push button at any time to terminate pan-shot.In shooting process, when with Family handheld terminal and when continuing mobile, arrow on display screen can be with movements, and terminal persistently obtains picture in mobile process.
Preset time can rule of thumb be set, and the quality of the panoramic pictures finally obtained is subject to preset time and shot The influence of the translational speed of camera lens in journey, since the translational speed of camera lens in shooting process is uncontrollable, preset time is got over Short, the part of adjacent two pictures overlapping is more, so as to which the panoramic pictures quality finally obtained is higher.
Optionally, first processing module is specifically used for:
After often obtaining a pictures, the distortion part of the picture of acquisition is removed.
Optionally, first processing module can be after N pictures be obtained, i.e., user's click shooting push button terminates pan-shot The distortion part in each pictures is removed afterwards.
After one pictures of every acquisition, the distortion part of the picture of acquisition can also be removed, so as to save processing time.
Optionally, Second processing module is specifically used for:
After removing the distortion part of the first pictures and the distortion part of the second pictures, after judging removal distortion part The first pictures and removal distortion part after the second pictures there are lap, first behind part of distorting will be removed The second pictures after picture and removal distortion part carry out registration process and obtain the first optimal match point;
According to the first optimal match point by remove distort part after the first pictures and removal distortion part after second Pictures are spliced to obtain first splicing picture;
Behind the distortion part for removing the i-th pictures, the i-th pictures and (i-2) behind removal distortion part are judged Splice picture there are lap, the i-th pictures and (i-2) splicing picture behind part that removal is distorted carry out registering Processing obtains (i-1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
The i-th pictures after removing part of distorting and (i-2) are spliced by picture according to (i-1) optimal match point Spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, judge (i+1) behind removal distortion part Picture and (i-1) splicing picture are there are lap, (i+1) pictures and (i- behind part that removal is distorted 1) open splicing picture and carry out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) splicing picture.
Optionally, Second processing module is specifically used for:
Judge that arbitrary neighborhood two opens the picture behind removal distortion part there are lap, it will be behind removal distortion part The second pictures after first pictures and removal distortion part carry out registration process and obtain the first optimal match point;
According to the first optimal match point by remove distort part after the first pictures and removal distortion part after second Pictures are spliced to obtain first splicing picture;
The i-th pictures behind removal distortion part and (i-2) splicing picture are carried out registration process and obtain (i- 1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
The i-th pictures after removing part of distorting and (i-2) are spliced by picture according to (i-1) optimal match point Spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures behind part that removal is distorted The step of registration process obtains the i-th optimal match point is carried out with (i-1) splicing picture, until obtaining (N-1) splicing Picture.
That is, Second processing module can be after the distortion part of all pictures be removed, then proceed by splicing; It can begin to be spliced, so as to save processing time after the distortion part of the second pictures is removed.
In the above method, Fig. 6 is the schematic diagram of splicing picture.As shown in fig. 6, each splicing picture includes three portions Point, it is respectively:Splicing a wherein pictures non-overlapped part 1, splicing another pictures non-overlapped part 2 and Lap 3.
Wherein, lap 3 can be wherein the lap of the lap of a pictures or another pictures or The wherein average value of the lap of the lap of a pictures and another pictures.
For example, after according to the first optimal match point by the first pictures after removing part of distorting and removal distortion part The second pictures when being spliced to obtain first splicing picture, removal distortion part is first determined according to the first optimal match point The lap of the first pictures afterwards and the second pictures behind removal distortion part, by first behind removal distortion part Behind the non-overlapped part of the second pictures behind the non-overlapped part of picture, removal distortion part and removal distortion part The lap of first pictures is stitched together to obtain first splicing picture;Alternatively, first behind part that removal is distorted Behind the non-overlapped part of the second pictures behind the non-overlapped parts of pictures, removal distortion part and removal distortion part The laps of the second pictures be stitched together to obtain first splicing picture;Alternatively, by remove behind part of distorting the The non-overlapped part of the second pictures behind the non-overlapped parts of one pictures, removal distortion part and removal distortion part The average value splicing of the lap of the second pictures after the lap of the first pictures afterwards and removal distortion part exists First splicing picture is obtained together.
Optionally, the distortion part in picture includes the left hand edge part of picture and right hand edge part.
Optionally, further include:
Display module, for showing the splicing picture obtained.
Wherein, display module can be realized by the display unit 151 and controller 180 of Fig. 1.
Optionally, Second processing module is additionally operable to:
The second pictures after the first pictures and removal distortion part after removal distortion part is judged are not present At the second pictures progress registration after the first pictures and removal distortion part after lap or part that removal distorts When cannot get the first optimal match point during reason, user's pan-shot failure is prompted;Alternatively, directly by removal distortion part The first pictures afterwards are spliced to obtain first splicing picture with the second pictures behind removal distortion part;It alternatively, will The first pictures and the second pictures obtained are spliced to obtain first splicing picture.
Optionally, Second processing module is additionally operable to:
Lap is not present in the i-th pictures and (i-2) splicing picture after removal distortion part is judged, Or the i-th pictures behind distortion part will be removed and (i-2) splicing picture cannot get during registration process the (i-1) during optimal match point, user's pan-shot failure is prompted;Alternatively, the i-th pictures behind part that directly removal distorts Spliced to obtain (i-2) splicing picture with (i-2) splicing picture;Alternatively, by the i-th pictures and (i-2) Splicing picture is opened to be spliced to obtain (i-2) splicing picture.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of device for realizing pan-shot, which is characterized in that including:
Acquisition module, for obtaining N pictures under panorama photographing mode;Wherein, N is the integer more than or equal to 2;
First processing module, for removing the distortion part in each pictures;
Second processing module for judging that arbitrary neighborhood two opens the picture after removing distortion part there are lap, will be gone Except the N pictures behind distortion part are spliced to obtain panoramic pictures.
2. the apparatus according to claim 1, which is characterized in that the first processing module is specifically used for:
After often obtaining a pictures, the distortion part of the picture of acquisition is removed.
3. the apparatus according to claim 1, which is characterized in that the Second processing module is specifically used for:
After removing the distortion part of the first pictures and the distortion part of the second pictures, the behind removal distortion part is judged The second pictures after one pictures and removal distortion part are there are lap, the first pictures behind part that removal is distorted Registration process, which is carried out, with the second pictures behind removal distortion part obtains the first optimal match point;
According to first optimal match point by it is described removal distort part after the first pictures and it is described removal distortion part The second pictures afterwards are spliced to obtain first splicing picture;
Behind the distortion part for removing the i-th pictures, the i-th pictures behind removal distortion part and (i-2) splicing are judged For picture there are lap, the i-th pictures and (i-2) splicing picture behind part that removal is distorted carry out registration process Obtain (i-1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
The i-th pictures behind the removal distortion part and (i-2) are opened according to (i-1) optimal match point Splicing picture is spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures behind removal distortion part are judged With (i-1) splicing picture there are lap, (i+1) pictures and (i-1) behind part that removal is distorted Splicing picture carries out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) splicing picture.
4. the apparatus according to claim 1, which is characterized in that the Second processing module is specifically used for:
Judge that arbitrary neighborhood two opens the picture after removing distortion part there are lap, first behind part that removal is distorted The second pictures after pictures and removal distortion part carry out registration process and obtain the first optimal match point;
According to first optimal match point by it is described removal distort part after the first pictures and it is described removal distortion part The second pictures afterwards are spliced to obtain first splicing picture;
The i-th pictures behind removal distortion part and (i-2) splicing picture are carried out registration process and obtain (i-1) most Good match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
The i-th pictures behind the removal distortion part and (i-2) are opened according to (i-1) optimal match point Splicing picture is spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures and the behind part of distorting will be removed (i-1) open splicing picture and carry out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) spliced map Piece.
A kind of 5. method for realizing pan-shot, which is characterized in that including:
N pictures are obtained under panorama photographing mode;Wherein, N is the integer more than or equal to 2;
Remove the distortion part in each pictures;
Judge that arbitrary neighborhood two opens the picture after removing distortion part there are lap, N behind part that removal is distorted Picture is spliced to obtain panoramic pictures.
6. according to the method described in claim 5, it is characterized in that, the distortion part in each pictures of removal includes: After often obtaining a pictures, the distortion part of the picture of acquisition is removed.
7. according to the method described in claim 5, it is characterized in that, it is described judge arbitrary neighborhood two open removal distortion part after Picture there are lap, will remove the N pictures behind part of distorting and spliced to obtain panoramic pictures includes:
After removing the distortion part of the first pictures and the distortion part of the second pictures, the behind removal distortion part is judged The second pictures after one pictures and removal distortion by the first pictures behind removal distortion part and are gone there are lap The first optimal match point is obtained except the second pictures behind distortion part carry out registration process;
According to first optimal match point by it is described removal distort part after the first pictures and it is described removal distortion part The second pictures afterwards are spliced to obtain first splicing picture;
Behind the distortion part for removing the i-th pictures, the i-th pictures behind removal distortion part and (i-2) splicing are judged For picture there are lap, the i-th pictures and (i-2) splicing picture behind part that removal is distorted carry out registration process Obtain (i-1) optimal match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
The i-th pictures behind the removal distortion part and (i-2) are opened according to (i-1) optimal match point Splicing picture is spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures behind removal distortion part are judged With (i-1) splicing picture there are lap, (i+1) pictures and (i-1) behind part that removal is distorted Splicing picture carries out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) splicing picture.
8. according to the method described in claim 5, it is characterized in that, the N pictures behind the part that removal is distorted are spelled Connecing to obtain panoramic pictures includes:
The first pictures behind removal distortion part and the second pictures progress registration process behind removal distortion part are obtained First optimal match point;
According to first optimal match point by it is described removal distort part after the first pictures and it is described removal distortion part The second pictures afterwards are spliced to obtain first splicing picture;
The i-th pictures behind removal distortion part and (i-2) splicing picture are carried out registration process and obtain (i-1) most Good match point;Wherein, i is the integer more than or equal to 3, and less than or equal to N;
The i-th pictures behind the removal distortion part and (i-2) are opened according to (i-1) optimal match point Splicing picture is spliced to obtain (i-1) splicing picture;
Behind the distortion part for continuing to execute removal (i+1) pictures, (i+1) pictures and the behind part of distorting will be removed (i-1) open splicing picture and carry out the step of registration process obtains the i-th optimal match point, until obtaining (N-1) spliced map Piece.
CN201611055085.9A 2016-11-25 2016-11-25 A kind of method and apparatus for realizing pan-shot Pending CN108111746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611055085.9A CN108111746A (en) 2016-11-25 2016-11-25 A kind of method and apparatus for realizing pan-shot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611055085.9A CN108111746A (en) 2016-11-25 2016-11-25 A kind of method and apparatus for realizing pan-shot

Publications (1)

Publication Number Publication Date
CN108111746A true CN108111746A (en) 2018-06-01

Family

ID=62204315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611055085.9A Pending CN108111746A (en) 2016-11-25 2016-11-25 A kind of method and apparatus for realizing pan-shot

Country Status (1)

Country Link
CN (1) CN108111746A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276465A (en) * 2008-04-17 2008-10-01 上海交通大学 Method for automatically split-jointing wide-angle image
US20140240451A1 (en) * 2013-02-22 2014-08-28 Hitachi, Ltd. Plural camera images capturing and processing apparatus, and composite imaging method
CN104376531A (en) * 2014-12-11 2015-02-25 重庆地质仪器厂 Image splicing method and system
CN104639832A (en) * 2015-01-23 2015-05-20 广东欧珀移动通信有限公司 Panoramic photography method and terminal
CN104732476A (en) * 2015-03-23 2015-06-24 中国民航大学 Microstructure low-overlapping-degree three-dimensional splicing method based on optical nondestructive testing
CN105376471A (en) * 2015-12-21 2016-03-02 景好 Panorama shooting system based on moving platform and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101276465A (en) * 2008-04-17 2008-10-01 上海交通大学 Method for automatically split-jointing wide-angle image
US20140240451A1 (en) * 2013-02-22 2014-08-28 Hitachi, Ltd. Plural camera images capturing and processing apparatus, and composite imaging method
CN104376531A (en) * 2014-12-11 2015-02-25 重庆地质仪器厂 Image splicing method and system
CN104639832A (en) * 2015-01-23 2015-05-20 广东欧珀移动通信有限公司 Panoramic photography method and terminal
CN104732476A (en) * 2015-03-23 2015-06-24 中国民航大学 Microstructure low-overlapping-degree three-dimensional splicing method based on optical nondestructive testing
CN105376471A (en) * 2015-12-21 2016-03-02 景好 Panorama shooting system based on moving platform and method

Similar Documents

Publication Publication Date Title
US8780258B2 (en) Mobile terminal and method for generating an out-of-focus image
CN106485689B (en) A kind of image processing method and device
CN106534674A (en) Method for displaying focus area and mobile terminal
CN104898959B (en) A kind of method and apparatus for adjusting virtual push button position
CN105472241B (en) Image split-joint method and mobile terminal
CN105227837A (en) A kind of image combining method and device
CN105488756B (en) Picture synthetic method and device
CN105100642B (en) Image processing method and device
CN106155694A (en) A kind of application and the display packing and device applied of attending to anything else
CN105959551A (en) Shooting device, shooting method and mobile terminal
CN106534552B (en) Mobile terminal and its photographic method
CN107071263A (en) A kind of image processing method and terminal
CN106850941A (en) Method, photo taking and device
CN106911881A (en) A kind of an action shot filming apparatus based on dual camera, method and terminal
CN106506965A (en) A kind of image pickup method and terminal
CN108989674A (en) A kind of browsing video method, terminal and computer readable storage medium
CN106973226A (en) A kind of image pickup method and terminal
CN106651773A (en) Picture processing method and device
CN106791449B (en) Photo shooting method and device
CN106303259A (en) A kind of method and apparatus realizing taking pictures
CN106657619A (en) Screenshot method and device
CN106657620A (en) Picture synthesis method and device, and mobile terminal
CN106200924A (en) A kind of terminal and the method that virtual reality video is controlled thereof
CN106303291B (en) A kind of image processing method and terminal
CN105430379A (en) Method and device for obtaining smoothness of image sensor

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180601