Background technology
At present, because the camera lens of taking pictures limitation, the panorama that digital camera and other equipment capable of taking pictures such as mobile phone etc. can't directly be taken similar wide-angle lens shooting effect shines.Obtain the panorama photograph, need clap multiple pictures continuously, call the software that is installed on digital camera and other equipment capable of taking pictures then the synthetic panorama of multiple pictures is shone by digital camera and other equipment capable of taking pictures.The device of acquisition panorama photograph as shown in Figure 5 in this kind digital camera and other equipment capable of taking pictures, viewfinder unit X1 takes pictures under the control of control module X5 and finds a view, the photo that storage unit X2 storage is taken pictures and obtained, concatenation unit X4 splices the photo of storage unit X2 storage, synthesize under control module X5 control, the photo of the display unit X3 scape that demonstration viewfinder unit X1 gets under control module X5 control, storage unit X2 storage and the synthetic panorama photograph of concatenation unit X4.The specific implementation process is as follows:
The user opens digital camera and other equipment capable of taking pictures, behind the selection camera function menu, and the bat multiple pictures of finding a view.The justified margin of photo of finding a view that the user shows according to display unit with the front and back photo, and the continuity of assurance front and back photo scenery, digital camera and other equipment capable of taking pictures are constantly pressed under the situation of the button of taking pictures the user, viewfinder unit is clapped multiple pictures continuously, and constantly sends view data to storage unit;
The view data of all photos of cell stores;
After the user selected to splice menu, concatenation unit all photos to cell stores under the control of control module merged splicing, obtained panorama and shone;
Concatenation unit storage panorama photograph, and the notice control module shows that panorama shines;
Display unit shows that under the control of control module panorama shines.
At this moment, the user just obtains the panorama photograph, panorama is shone into row browse, and decision is to preserve or deletion.
The defective that the method for above-mentioned take panorama photograph exists is: complicated operation, and need the user to take several photo continuously, and will be with user's eyesight alignment edge, extremely inconvenience in the shooting process.
Summary of the invention
The purpose of the embodiment of the invention is to overcome the defective of prior art, proposes a kind of apparatus and method that realize shooting panoramic photo, so that user's operation improves speed and quality and the effect of obtaining the panorama photograph.
For achieving the above object, the embodiment of the invention provides a kind of device of realizing shooting panoramic photo, comprising: viewfinder unit, pixel increment unit, display unit and control module; Wherein, viewfinder unit is used to find a view, and obtains picture; The image pixel that pixel increment unit is used for picture that described viewfinder unit is obtained compares, and incremental portion is replenished, is spliced on the buffer memory picture; Display unit is used to Show Picture; Control module is used to control described viewfinder unit, pixel increment unit and display unit.
For achieving the above object, the embodiment of the invention also provides a kind of method that realizes shooting panoramic photo, comprising:
Under user's control, find a view continuously, obtain picture;
The image pixel of described picture is compared, incremental portion is replenished, is spliced on the buffer memory picture, obtain panoramic pictures;
Show described panoramic pictures.
By said apparatus and method, can obtain the panorama photograph easily and quickly, and improve the quality and the effect of panorama photograph greatly.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Fig. 1 realizes the structural representation of the device embodiment of shooting panoramic photo for the present invention, digital camera or other equipment capable of taking pictures as or have the device that is provided with on other digital products of camera function such as mobile phone, MP3, the MP4 as shown in Figure 1, this device comprises: viewfinder unit S1, pixel increment unit S2, display unit S3 and control module S4; Wherein, viewfinder unit S1 can be the front end view-finder; Control module S4 is used to control viewfinder unit S1, pixel increment unit S2 and display unit S3; The user opens digital camera or other camera installation and selects panorama in the camera function menu according to behind the option, by continuing to shine button by next button such as panorama, the request signal of panorama photograph is clapped in input, inform that control module S4 begins to take panorama photograph, after control module S4 receives signal, send the instruction of finding a view to viewfinder unit S1, and send the comparison supplementary instructions, and send idsplay order to display unit S3 to pixel increment unit S2; The user is pressing panorama according in the button, slow mobile device, and translational speed is different and different with the sense organ degree according to the brightness of scenery, generally by day, under brightness and the reasonable situation of sense organ degree, translational speed can reach 1 meter per second, and then require translational speed very low evening; Like this, viewfinder unit S1 is under the control of control module S4, speed with 7~30 frame/seconds is found a view, obtain scenery and keep continuous picture, certainly, translational speed during above-mentioned shooting and the speed of image pickup are only adopted on concrete equipment for present embodiment, can do suitable adjustment according to the performance of equipment and be not limited to above-mentioned speed; Pixel increment unit S2 is under control module S4 control, the image pixel of the adjacent picture that viewfinder unit S1 is obtained compares, incremental portion is replenished, is spliced on first pictures of buffer memory, the perhaps picture that viewfinder unit S1 is obtained, compare with the image pixel of first pictures that constantly obtains replenishing of first pictures of buffer memory or buffer memory, incremental portion is replenished, is spliced on the picture of continual renovation of buffer memory, obtain panoramic pictures; Display unit S3 shows the picture that viewfinder unit S1 obtains under the control of control module S4; After the user unclamped button, control module S4 sent the instruction that stops to find a view to viewfinder unit S1, and sent to pixel increment unit S2 and to stop relatively the instruction that replenishing; At this moment, the panoramic pictures that obtains of display unit S3 display pixel increment unit S2.
By said apparatus, the user only need press the button on digital camera or other equipment capable of taking pictures, just can obtain to have the panorama photograph of good result fast, and is easy and simple to handle.And, realize by programming device or other integrated circuit that in pixel increment unit pixel is relatively and under the situation of replenishing, the operating system that need not digital camera or other digital product capable of taking pictures is carried out calculation process, has saved the system resource of digital camera or other digital product capable of taking pictures greatly; Simultaneously, because pixel increment unit itself realizes relatively reaching additional calculation process, need not to wait for of the unified arrangement processing of the operating system of digital camera or other photographing device, improved panorama greatly, can obtain panorama fast and shine according to processing speed to various computings.
In order to make the size of panorama photograph and the requirement that picture more meets the user, said apparatus also can increase the reduction unit, the parameter that is provided with can be realized according to the user in this reduction unit, and the image after splicing is finished is reduced according to user's hobby or by principles such as horizontal vertical minimize.
Said apparatus also can increase storage unit, and as flash memory, the panorama photograph that memory card or other permanent storage device storage obtain behind the picture that user's browse displays unit shows, can be stored in the panorama sketch that is obtained in the storage unit.
The user opens digital camera or other equipment capable of taking pictures such as mobile phone, MP3, MP4, select the panorama under the camera function menu to shine menu, press panorama, random up and down mobile digital camera or mobile phone, MP3, MP4 according to button, unclamp panorama according to behind the button, produce panorama and shine.Specifically may further comprise the steps:
Digital camera or mobile phone, MP3, MP4 find a view under user's control continuously, scene in the rectangular extent is carried out the shooting of panorama photograph, press panorama according to behind the button, demonstration according to digital camera or mobile phone, MP3, MP4, slow mobile digital camera of level or mobile phone, MP3, MP4 find a view, constantly obtain picture, when having guaranteed to obtain different picture, distance between camera lens and scene is constant, thereby the offset deviation of same sight spot in different pictures when having eliminated additional splicing picture guaranteed the quality and the effect of panorama photograph.Find a view the picture that obtains as shown in Figure 2;
The image pixel that digital camera or mobile phone, MP3, MP4 will obtain picture compares, incremental portion is replenished, is spliced on the buffer memory picture, the concrete quantity that obtains picture has difference according to the needs of actual photographed, this sentences four pictures is that example describes detailed process and is:
The first pictures P1 that buffer memory obtains, the second pictures P2, the 3rd pictures P3 the 4th pictures P4;
The image pixel of the adjacent picture that obtains is compared, relatively the image pixel of image pixel, P3 and the P4 of image pixel, P2 and the P3 of P1 and P2;
Pixel, P3 that P2 is promptly newly-increased with respect to the incremental portion of P1 replenish, are spliced among the P1 with respect to the incremental portion of P3 with respect to incremental portion, the P4 of P2, obtain distant view photograph as shown in Figure 3;
Perhaps be:
The first pictures P1 that buffer memory obtains;
Buffer memory obtains the second pictures P2;
The image pixel that compares P1 and P2;
Incremental portion is replenished, is spliced among the P1, as shown in Figure 4, obtain new buffer memory picture P1 ';
Buffer memory obtains the 3rd pictures P3;
The image pixel that compares P3 and P1 ';
Incremental portion is replenished, is spliced among the P1 ', obtain P1 ";
Buffer memory obtains the 4th pictures P4;
Relatively P4 and P1 " image pixel;
Incremental portion is replenished, is spliced to P1 " in, distant view photograph as shown in Figure 3 obtained.
The user unclamps panorama according to button behind the P4 that finds a view, digital camera or mobile phone, the last panorama as shown in Figure 3 that shows of MP3, MP4 shine.
The user has just obtained the panorama photograph on digital camera or other equipment capable of taking pictures.And, easy to operate, only need press panorama and just obtain the panorama photograph fast according to button.
Because the user is pressing panorama according to button, move horizontally in the process of finding a view, may have skew up and down, at this moment, digital camera or mobile phone, MP3, MP4 can reduce panoramic pictures according to the horizontal vertical minimization principle, promptly, continuity according to sight spot in the panoramic pictures, reduce and fall to go up the discontinuous part in lower limb sight spot, guaranteed the neat in edge of the panorama photograph of acquisition, the sight spot is continuous.
In addition, also the panorama photograph that obtains can be kept in digital camera or other photographing device, processing is preserved or deleted to the demand after also can browsing according to the user.
The present invention realizes the apparatus and method of shooting panoramic photo, making the user can obtain panorama fast by digital camera or other equipment capable of taking pictures shines, and it is easy and simple to handle, when replenishing the splicing picture, same sight spot does not have offset deviation in different pictures, improved the effect and the quality of panorama photograph greatly.
When the present invention realized that the method for shooting panoramic photo is made into stand alone software, this software can be stored in any kind storage medium of embodied on computer readable.For example this software can be stored in the recording medium, as inserting the discoid medium of computer system driver, adopts magnetic, optics or magneto-optic mode canned data; Perhaps can be stored in the fixedly recording medium such as the hard disk drive of computer system, perhaps in the solid-state computer storer.When realizing shooting panoramic photo, can this software be installed in digital camera or other equipment capable of taking pictures by computer system, digital camera or other equipment capable of taking pictures just can splice the picture that obtains of finding a view continuously under user's operation, obtain panorama and shine.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.