CN104735353B - A kind of method and device for the photo that pans - Google Patents
A kind of method and device for the photo that pans Download PDFInfo
- Publication number
- CN104735353B CN104735353B CN201510106142.0A CN201510106142A CN104735353B CN 104735353 B CN104735353 B CN 104735353B CN 201510106142 A CN201510106142 A CN 201510106142A CN 104735353 B CN104735353 B CN 104735353B
- Authority
- CN
- China
- Prior art keywords
- pictures
- sub
- benchmark
- spliced
- 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.)
- Active
Links
Landscapes
- Studio Devices (AREA)
Abstract
The present embodiments relate to camera technique field more particularly to a kind of method and devices for the photo that pans.This method includes:Picture is obtained as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures;The benchmark window and viewfinder window to connect is shown on camera display interface, and benchmark sub-pictures are shown in benchmark window;It controls the image in camera shooting viewfinder window and generates an at least picture to be selected, a conduct sub-pictures to be spliced are chosen in an at least picture to be selected;Finally, sub-pictures to be spliced and benchmark sub-pictures are spliced, picture has been spliced in formation.By using the technical solution of the embodiment of the present invention, user can splice photo as playing picture arrangement game, spliced distant view photograph is finally automatically generated by the camera on mobile terminal, increase it is recreational, make user obtained while conveniently and efficiently panning photo preferably shooting experience.
Description
Technical field
The present embodiments relate to camera technique field more particularly to a kind of method and devices for the photo that pans.
Background technology
Camera in the prior art is typically due to wide-angle deficiency and can not photograph big in the case where not being equipped with wide-angle lens
And camera built-in in the common mobile terminal of the people such as full photo, especially tablet computer and smart mobile phone is even more to be difficult to reach
To this purpose.However, for ordinary user, they cannot carry bulky single reverse phase as shutterbugs
Machine and wide-angle lens, they like using under the mobile terminal records such as tablet computer or smart mobile phone easy to carry at one's side
Image, so, when ordinary user need using mobile terminal pan photo when, existing mobile terminal is difficult to meet user
Demand.If making improvement in the hardware aspect of camera to achieve the purpose that the photo that pans, need to increase electronics member device
Part or the performance for improving relative electronic components, inevitably result in the increase of cost.
In the prior art, some mobile terminals are provided with panorama photographing mode, but are usually grasped for ordinary user
It makes comparisons difficulty, and takes the photo come and have a degree of deformation and distortion.In addition, majority panorama in the prior art is clapped
It takes the photograph pattern only and allows user to pan photo by moving horizontally camera, so clapping under the width and general mode of distant view photograph
The width for the photo taken the photograph is the same, cannot meet the demand that user shoots large and complete photo.
Invention content
The purpose of the present invention is to propose to a kind of method and devices for the photo that pans, and mobile terminal is used to meet user
Easily pan the demand of photo.
On the one hand, an embodiment of the present invention provides a kind of methods for the photo that pans, including:
Picture is obtained as benchmark sub-pictures, and determines the boundary to be spliced on the benchmark sub-pictures;
The benchmark window and viewfinder window to connect is shown on camera display interface, and shows institute in the benchmark window
Benchmark sub-pictures are stated, the boundary to be spliced on the benchmark sub-pictures is made to be located at the friendship of the benchmark window and the viewfinder window
At boundary line;
It controls the image in camera shooting viewfinder window and generates an at least picture to be selected, it is to be selected at described at least one
A conduct sub-pictures to be spliced are chosen in picture, wherein the pixel being located at the boundary line on the sub-pictures to be spliced
It is worth and is matched with the pixel value being located at the boundary line on the benchmark sub-pictures;
The sub-pictures to be spliced and the benchmark sub-pictures are spliced, picture has been spliced in formation.
On the other hand, an embodiment of the present invention provides a kind of devices for the photo that pans, including:
Boundary determining module to be spliced for obtaining picture as benchmark sub-pictures, and determines on the benchmark sub-pictures
Boundary to be spliced;
Display module, for showing the benchmark window and viewfinder window that connect on camera display interface, and in the base
The benchmark sub-pictures are shown in quasi- window, and the boundary to be spliced on the benchmark sub-pictures is made to be located at the benchmark window and institute
It states at the boundary line of viewfinder window;
Control module, for controlling the image in camera shooting viewfinder window and generating an at least picture to be selected, in institute
One conduct sub-pictures to be spliced of selection in an at least picture to be selected are stated, wherein being located on the sub-pictures to be spliced is described
Pixel value at boundary line is matched with the pixel value being located at the boundary line on the benchmark sub-pictures;
Concatenation module, for splicing the sub-pictures to be spliced and the benchmark sub-pictures, picture has been spliced in formation.
The method and device of the photo that pans provided in the embodiment of the present invention, can user using mobile terminal it is convenient
Ground pans photo.The method of the photo that pans provided in the embodiment of the present invention first obtains picture as benchmark subgraph
Piece, and determine the boundary to be spliced on benchmark sub-pictures;The benchmark window and viewfinder to connect is shown on camera display interface
Mouthful, and benchmark sub-pictures are shown in benchmark window, so that the boundary to be spliced on benchmark sub-pictures is located at datum windows mouth and is found a view
At the boundary line of window;It controls the image in camera shooting viewfinder window and generates an at least picture to be selected, at least one
In picture to be selected choose a conduct sub-pictures to be spliced, wherein on sub-pictures to be spliced be located at boundary line at pixel value with
The pixel value matching being located at the boundary line on benchmark sub-pictures;Finally, sub-pictures to be spliced and benchmark sub-pictures are spelled
It connects, picture has been spliced in formation.By using the technical solution, user can spell photo as playing picture arrangement game
It connects, spliced distant view photograph is finally automatically generated by the camera on mobile terminal, increase is recreational, makes user convenient and efficient
Ground pan photo while obtain preferably shooting experience.
Description of the drawings
Fig. 1 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the method for the photo that pans provided by Embodiment 2 of the present invention;
Fig. 3 is distant view photograph splicing schematic diagram provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention three provides;
Fig. 5 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention four provides;
Fig. 6 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention five provides;
Fig. 7 is a kind of structure diagram of the device for photo that pans that the embodiment of the present invention six provides.
Specific implementation mode
Technical solution to further illustrate the present invention below with reference to the accompanying drawings and specific embodiments.It is appreciated that
It is that specific embodiment described herein is used only for explaining the present invention rather than limitation of the invention.It further needs exist for illustrating
, only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention one provides, and this method can
To be executed by the device for the photo that pans, wherein the device can be used as the one of mobile terminal by software and or hardware realization
Part is built in the terminal.As shown in Figure 1, this method includes:
Step 101 obtains picture as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures.
It in the present embodiment, can be by acquisition for mobile terminal picture.The mobile terminal is specifically as follows with camera function
Smart mobile phone and the mobile devices such as tablet computer, or be provided with the digital camera of display screen.The sub-pictures specifically may be used
Refer to the picture for the part for constituting whole Zhang Quanjing photo.The benchmark sub-pictures specifically can refer to can be used as reference when splicing photo
Sub-pictures.Illustratively, picture is obtained as benchmark sub-pictures, specifically can refer to obtain one from the picture library of mobile terminal
The picture shot can be obtained as benchmark sub-pictures according to user's operation, also can automatically be obtained by the system of mobile terminal
It takes;Also the camera shooting picture on user's operation mobile terminal is can refer to, obtains the picture of current shooting as benchmark sub-pictures.
Benchmark sub-pictures usually have top, the following, left side and four, the right boundary, it is thus necessary to determine that make on one of boundary
For boundary to be spliced.Illustratively, determine that the mode on boundary to be spliced can freely be chosen by user, specifically, user can
To click the boundary spliced immediately above in the touch screen of mobile terminal, you can determine that the boundary is side to be spliced
Boundary;It can also be and chosen automatically by the system of mobile terminal, for example, user is before the photo that pans, on mobile terminals
The number of sub-pictures to be spliced together and the arrangement mode of sub-pictures are set, is arranged such as 2 sub-pictures, in such a way that 1 row 2 arranges
Cloth, then can be by system using the first pictures of shooting as benchmark sub-pictures, while determining that the right is boundary to be spliced, so
After carry out subsequent splicing step.
Step 102 shows the benchmark window and viewfinder window to connect on camera display interface, and is shown in benchmark window
Show benchmark sub-pictures, the boundary to be spliced on benchmark sub-pictures is made to be located at the boundary line of datum windows mouth and viewfinder window.
The relative position relation of benchmark window and viewfinder window can be determined by the boundary to be spliced on benchmark sub-pictures.
For example, when boundary to be spliced is the right, viewfinder window can be on the right side of benchmark window;When boundary to be spliced is the left side, take
Scape window can be in the left side of benchmark window;When boundary to be spliced is top, viewfinder window can be in the upper surface of benchmark window;When waiting for
When splicing boundary is top, viewfinder window can be below benchmark window.
Benchmark window and viewfinder window are adjacent, and the boundary to be spliced of the benchmark sub-pictures shown in benchmark window is located at
So that it is convenient to which user carries out image and the benchmark sub-pictures in viewfinder window pair at the boundary line of benchmark window and viewfinder window
It is accurate.
Step 103, the image in control camera shooting viewfinder window simultaneously generate an at least picture to be selected, at least one
In picture to be selected choose a conduct sub-pictures to be spliced, wherein on sub-pictures to be spliced be located at boundary line at pixel value with
The pixel value matching being located at boundary line on benchmark sub-pictures.
After showing benchmark window and viewfinder window on the display interface of mobile terminal, so that it may control camera captured in real-time
Image in viewfinder window simultaneously generates picture to be selected.Preferably, when detect in the image in viewfinder window include certain amount
The pixel close with pixel value in benchmark sub-pictures when, control camera captured in real-time viewfinder window in image and generate to be selected
Picture.A conduct sub-pictures to be spliced are chosen in picture to be selected, choosing the foundation of sub-pictures to be spliced is:Subgraph to be spliced
The pixel value of on piece being located at boundary line is matched with the pixel value being located at boundary line on benchmark sub-pictures.
User in use, can refer to the benchmark sub-pictures in benchmark window to adjust the position of mobile terminal, make
The image shown in viewfinder window meets splicing condition with benchmark sub-pictures.As carrying out picture arrangement game, when user's naked eyes are sentenced
When disconnecting closely meets splicing condition, mobile terminal locations can be slowly finely tuned, terminal easy to remove is more quickly chosen to waiting spelling
Connect sub-pictures.After the selecting step for completing sub-pictures to be spliced, mobile terminal can stop shooting.
Step 104 splices sub-pictures to be spliced and benchmark sub-pictures, and picture has been spliced in formation.
Illustratively, the sub-pictures to be spliced of selection and benchmark sub-pictures can be carried out according to preset algorithm by mobile terminal
Picture has been spliced in splicing, formation.After completing splicing, it can be shown on the display interface of mobile terminal and splice picture, for user
It checks.
The method that the embodiment of the present invention one provides first obtains picture as benchmark sub-pictures, and determines on benchmark sub-pictures
Boundary to be spliced;The benchmark window and viewfinder window to connect is shown on camera display interface, and is shown in benchmark window
Benchmark sub-pictures make the boundary to be spliced on benchmark sub-pictures be located at the boundary line of datum windows mouth and viewfinder window;Control phase
Machine shoots the image in viewfinder window and generates an at least picture to be selected, and a conduct is chosen in an at least picture to be selected
Sub-pictures to be spliced, wherein being located on pixel value and benchmark sub-pictures being located at boundary line on sub-pictures to be spliced is described
Pixel value matching at boundary line;Finally, sub-pictures to be spliced and benchmark sub-pictures are spliced, picture has been spliced in formation.Pass through
Using the technical solution, user can splice photo as playing picture arrangement game, finally by the phase on mobile terminal
Machine automatically generates spliced distant view photograph, and increase is recreational, and user is made to be obtained while conveniently and efficiently panning photo
Obtain preferably shooting experience.
Embodiment two
Fig. 2 is a kind of flow diagram of the method for the photo that pans provided by Embodiment 2 of the present invention, the present embodiment
It is optimized based on above-described embodiment.In the present embodiment, it after forming the step of having spliced picture, increases in camera
It is shown in the preview window of display interface and has spliced picture and chosen sub-pictures in picture as new benchmark from having spliced
The step of picture.
Correspondingly, the method for the present embodiment includes the following steps:
Step 201 obtains picture as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures.
Step 202 shows the benchmark window and viewfinder window to connect on camera display interface, and is shown in benchmark window
Show benchmark sub-pictures, the boundary to be spliced on benchmark sub-pictures is made to be located at the boundary line of datum windows mouth and viewfinder window.
Step 203, the image in control camera shooting viewfinder window simultaneously generate an at least picture to be selected, at least one
In picture to be selected choose a conduct sub-pictures to be spliced, wherein on sub-pictures to be spliced be located at boundary line at pixel value with
The pixel value matching being located at boundary line on benchmark sub-pictures.
Step 204 splices sub-pictures to be spliced and benchmark sub-pictures, and picture has been spliced in formation.
Step 205 shows in the preview window of camera display interface and has spliced picture.
In order to obtain large and complete distant view photograph, it usually needs splice to multiple sub-pictures.In camera display interface
The preview window in show and spliced photo, facilitate user to view whole sub-pictures that splicing is completed.
Step 206, from spliced in picture choose sub-pictures as new benchmark sub-pictures.
Illustratively, can be chosen according to user's operation, user can directly the touch screen of mobile terminal immediately above
The boundary spliced is clicked, then the sub-pictures belonging to the boundary are new benchmark sub-pictures, step is simply fast
Victory then can arbitrarily be spliced by user, until reaching user's satisfaction until splicing quantity.Also can be by mobile terminal
System is automatic to be chosen.For example, Fig. 3 is distant view photograph splicing schematic diagram provided by Embodiment 2 of the present invention, the lower half portion Fig. 3 shows
The distant view photograph that splicing is completed is gone out, which is spliced by 9 sub-pictures.User before the photo that pans,
The number of sub-pictures to be spliced together and the arrangement mode of sub-pictures can be set on mobile terminals, such as 9 sub-pictures, according to
The mode of 3 rows 3 row is arranged, then can be by system using the first pictures of shooting as benchmark sub-pictures (i.e. subgraph in Fig. 3
Piece 5), while determining that the right is boundary to be spliced, the step of splicing for the first time is subsequently completed, it includes 2 sub-pictures to form
The splicing photo of (i.e. sub-pictures 5 and sub-pictures 6).Later, system can give tacit consent to new benchmark sub-pictures and be with benchmark sub-pictures
Same pictures (sub-pictures 5), but boundary to be spliced is determined as the left side, and then complete center row 3 and open sub-pictures (i.e. sub-pictures
4, sub-pictures 5 and sub-pictures 6) splicing.Sub-pictures (i.e. sub-pictures 2, sub-pictures 5 and sub-pictures are opened followed by middle column 3 is completed
8) splicing, it is a picture in " ten " font to have spliced picture at this time (as shown in Fig. 3 top halfs).Finally it is sequentially completed
Positioned at the splicing of the sub- photo of 4 vertex on the distant view photograph.Sub-pictures on the basis of sub-pictures 4 can be automatically determined by camera,
The top of sub-pictures 4 is boundary to be spliced, to complete the splicing of sub-pictures 1 and sub-pictures 4;Also can son be automatically determined by camera
The left side of sub-pictures on the basis of picture 2, sub-pictures 2 is boundary to be spliced, to complete the splicing of sub-pictures 1 and sub-pictures 2.Together
Reason, can be sequentially completed the splicing of sub-pictures 3, sub-pictures 7 and sub-pictures 9 and " ten " font picture, and finally splicing generates whole Zhang Quan
Scape photo.
The method of the present embodiment allows user that multiple sub-pictures are arbitrarily spliced into bigger more on the basis of embodiment one
Full distant view photograph, further meets user demand.
Embodiment three
Fig. 4 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention three provides, the present embodiment
It is optimized based on above-described embodiment, in the present embodiment, step is shown to benchmark in the benchmark window
Picture is optimized for:The benchmark sub-pictures are shown in the benchmark window according to preset display scale;According to the display
Ratio adjusts the display scale of image in the viewfinder window so that in the viewfinder window display scale of image with to described
The display scale of benchmark sub-pictures is identical.
Correspondingly, the method for the present embodiment includes the following steps:
Step 401 obtains picture as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures.
Step 402 shows the benchmark window and viewfinder window to connect on camera display interface, according to preset display ratio
Example shows benchmark sub-pictures in benchmark window, and the boundary to be spliced on benchmark sub-pictures is made to be located at datum windows mouth and viewfinder window
Boundary line at.
Step 403, the display scale that image in viewfinder window is adjusted according to display scale, so that image in viewfinder window
Display scale is identical as the display scale of benchmark sub-pictures.
Under normal circumstances, viewfinder window when shooting common photo can take the entire display interface of camera, and this implementation
Benchmark window and viewfinder window are needed on display interface while showing in method in example, then using the side in the present embodiment
Viewfinder window under the panorama photographing mode of method will be less than the viewfinder window under common screening-mode, how control benchmark subgraph
The display scale of image is particularly important in the display scale and viewfinder window of piece.
Illustratively, benchmark window is identical as the size of viewfinder window, the half of display interface is occupied respectively, with base
Quasi- window is illustrated in left, viewfinder window for the right side.The preset display scale can be automatically arranged by camera system or
Adjustment, also can be voluntarily adjusted by user.In order to allow users to see the effect of spliced two photos in advance, can set
It is 0.5 to set display scale, then the content that benchmark sub-pictures are shown on display interface is the full content of picture.Correspondingly, root
According to the display scale of image in 0.5 display scale adjustment viewfinder window, make the display scale and benchmark of image in viewfinder window
The display scale of sub-pictures is identical, i.e., is also 0.5, then the content that the image in viewfinder window is shown on display interface is
The full content of picture to be selected after shooting.In order to make user in splicing it can be seen that the details on more boundary to be spliced,
Reduce user and splice difficulty, then can be arranged display scale be 1 (or the numerical value more than 1, find a view scene depending on specific and
It is fixed), the partial content of benchmark sub-pictures at this time and the image in viewfinder window will not be shown on display interface.
Preferably, the size of benchmark window is less than the size of viewfinder window, facilitates user to see in splicing and more takes
Picture material in scape window.
Preferably, user can be adjusted the display scale of benchmark sub-pictures according to the gesture motion of oneself, camera system
The display scale of image, makes in viewfinder window in the display scale adjustment viewfinder window for the benchmark sub-pictures that system is adjusted according to user
The display scale of image is identical as the display scale of benchmark sub-pictures.
Step 404, the image in control camera shooting viewfinder window simultaneously generate an at least picture to be selected, at least one
In picture to be selected choose a conduct sub-pictures to be spliced, wherein on sub-pictures to be spliced be located at boundary line at pixel value with
The pixel value matching being located at boundary line on benchmark sub-pictures.
Step 405 splices sub-pictures to be spliced and benchmark sub-pictures, and picture has been spliced in formation.
Step 406 shows in the preview window of camera display interface and has spliced picture.
Step 407, from spliced in picture choose sub-pictures as new benchmark sub-pictures.
On the basis of the above embodiments, the display scale of benchmark sub-pictures can be adjusted flexibly in the method for the present embodiment,
The display scale for adjusting image in viewfinder window simultaneously makes the aobvious of the display scale of image and benchmark sub-pictures in viewfinder window
Show that ratio is identical, further promotes the user experience in splicing.
Example IV
Fig. 5 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention four provides, the present embodiment
It is optimized based on above-described embodiment, in the present embodiment, in the image during step control camera shoots viewfinder window,
Further include the moving parameter for detecting camera, when detecting that the moving parameter exceeds preset threshold range, provides prompt letter
The step of ceasing to user.
Correspondingly, the method for the present embodiment includes the following steps:
Step 501 obtains picture as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures;
Step 502 shows the benchmark window and viewfinder window to connect on camera display interface, according to preset display ratio
Example shows benchmark sub-pictures in benchmark window, and the boundary to be spliced on benchmark sub-pictures is made to be located at datum windows mouth and viewfinder window
Boundary line at.
Step 503, the display scale that image in viewfinder window is adjusted according to display scale, so that image in viewfinder window
Display scale is identical as the display scale of benchmark sub-pictures.
Step 504, the moving parameter for detecting camera are provided when detecting that moving parameter exceeds preset threshold range
Prompt message is to user;It controls the image in camera shooting viewfinder window and generates an at least picture to be selected, at least one
In picture to be selected choose a conduct sub-pictures to be spliced, wherein on sub-pictures to be spliced be located at boundary line at pixel value with
The pixel value matching being located at boundary line on benchmark sub-pictures.
The moving parameter specifically may include moving direction, displacement distance and move angle of camera etc..It is moved when detecting
When dynamic parameter exceeds preset threshold range, illustrates position when user has left shooting benchmark sub-pictures, will be difficult to complete
Splicing prompts user to return to position when shooting benchmark sub-pictures so can provide prompt message at this time to user.The prompt
Information concretely prompt tone, indicator light light or screen on prompt point flicker etc..
Step 505 splices sub-pictures to be spliced and benchmark sub-pictures, and picture has been spliced in formation.
Step 506 shows in the preview window of camera display interface and has spliced picture.
Step 507, from spliced in picture choose sub-pictures as new benchmark sub-pictures.
The method of the present embodiment on the basis of the above embodiments, can be detected the moving parameter of camera, when with
When family has left position when shooting benchmark sub-pictures, can user be reminded by prompt message in time, user be avoided to be clapped because leaving
Position when taking the photograph benchmark sub-pictures and make splicing be difficult to complete.
Embodiment five
Fig. 6 is a kind of flow diagram of the method for photo that pans that the embodiment of the present invention five provides, the present embodiment
It is optimized based on above-described embodiment, in the present embodiment, boundary line is equipped with adjustment point, in step control camera shooting
Further include being adjusted in the viewfinder window to scheme to the gesture motion of the adjustment point according to user before image in viewfinder window
The step of display scale of picture.
Correspondingly, the method for the present embodiment includes the following steps:
Step 601 obtains picture as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures.
Step 602 shows the benchmark window and viewfinder window to connect on camera display interface, and is shown in benchmark window
Show benchmark sub-pictures, the boundary to be spliced on benchmark sub-pictures is made to be located at the boundary line of datum windows mouth and viewfinder window.
Step 603, boundary line are equipped with adjustment point, and viewfinder window is adjusted to the gesture motion of the adjustment point according to user
The display scale of middle image.
Wish that shooting has the needs of personnalité special efficacy photo to meet user, allows user to scheming in viewfinder window
The display scale of picture is adjusted.Illustratively, when the background in benchmark sub-pictures is single, such as blue sky, user wishes will be empty
In an airplane shooting become three airplanes, then user can use finger dragging adjustment point, make the display of image in viewfinder window
Ratio becomes one third.Preferably, it is that integral multiple minute can be carried into line flicker for the moment when adjustment point is dragged to display scale
Show.Preferably, user can also drag the position of image in viewfinder window, to adjust the benchmark sub-pictures on display screen and find a view
The relative position of image in window.Such as the picture comprising blue sky of benchmark sub-pictures on the left of display screen, viewfinder
Mouth can be in by adjusting the top of the image made in viewfinder window and the top of benchmark sub-pictures on same straight line on right side.
Step 604, the image in control camera shooting viewfinder window simultaneously generate an at least picture to be selected, at least one
In picture to be selected choose a conduct sub-pictures to be spliced, wherein on sub-pictures to be spliced be located at boundary line at pixel value with
The pixel value matching being located at boundary line on benchmark sub-pictures.
Illustratively, it is adjusted in viewfinder window after the display scale of image by user, can programmable button be pressed by user,
Such as camera button, control camera shoots the image in viewfinder window.Programmable button can be depressed multiple times by user to shoot, finally by
Camera generates an at least picture to be selected.A conduct son to be spliced is chosen in an at least picture to be selected according to user's operation
Picture.
Step 605 splices sub-pictures to be spliced and benchmark sub-pictures, and picture has been spliced in formation.
Illustratively, it is spelled according to the benchmark sub-pictures and the relative position of the image in viewfinder window that show on screen
It connects.As illustrated in step 603, including the top of the image in the viewfinder window of aircraft and the benchmark sub-pictures comprising blue sky
Top is on same straight line, then is first spelled the sub-pictures to be spliced that content is aircraft with benchmark sub-pictures according to the position relationship
It connects, further according to user's operation, repeats splicing twice below the sub-pictures to be spliced spliced, a photograph is finally synthesized by camera
Piece achievees the purpose that three airplane of shooting of user.
Step 606 shows in the preview window of camera display interface and has spliced picture.
Step 607, from spliced in picture choose sub-pictures as new benchmark sub-pictures.
The method of the present embodiment on the basis of the above embodiments, can allow for user to adjust the aobvious of image in viewfinder window
Show that ratio, user can give full play to oneself invention shooting and the personnalité special efficacy photo of splicing tool, further be promoted and used
The usage experience at family.
Embodiment six
Fig. 7 is a kind of structure diagram for the device of photo that pans that the embodiment of the present invention six provides, which can be by
Software and or hardware realization, the part that can be used as mobile terminal is built in the terminal, by executing shooting panoramic photo
The method of piece is come the photo that pans.As shown in fig. 7, the device includes:
Boundary determining module 701 to be spliced for obtaining picture as benchmark sub-pictures, and determines on benchmark sub-pictures
Boundary to be spliced;Display module 702, for showing the benchmark window and viewfinder window that connect on camera display interface, and
Benchmark sub-pictures are shown in benchmark window, and the boundary to be spliced on benchmark sub-pictures is made to be located at the friendship of datum windows mouth and viewfinder window
At boundary line;Control module 703, for controlling the image in camera shooting viewfinder window and generating an at least picture to be selected,
A conduct sub-pictures to be spliced are chosen in an at least picture to be selected, wherein being located at boundary line on sub-pictures to be spliced
Pixel value is matched with the pixel value being located at boundary line on benchmark sub-pictures;Concatenation module 704 is used for sub-pictures to be spliced
Splice with benchmark sub-pictures, picture has been spliced in formation.
A kind of device for photo that pans that the embodiment of the present invention six provides, is obtained by boundary determining module 701 to be spliced
It takes picture as benchmark sub-pictures, and determines the boundary to be spliced on benchmark sub-pictures;Display module 702 is in camera display interface
It is upper to show the benchmark window and viewfinder window to connect;Control module 703 controls the image in camera shooting viewfinder window and generation
An at least picture to be selected chooses a conduct sub-pictures to be spliced in an at least picture to be selected;Finally by concatenation module
704 splice sub-pictures to be spliced and benchmark sub-pictures, and picture has been spliced in formation.User can be right as playing picture arrangement game
Photo is spliced, and finally automatically generates spliced distant view photograph by the camera on mobile terminal, increase is recreational, makes user
Preferably shooting experience is obtained while conveniently and efficiently panning photo.
On the basis of the above embodiments, display module 702 are additionally operable to after picture has been spliced in formation, aobvious in camera
Show and is shown in the preview window at interface and spliced picture;Boundary determining module 701 to be spliced is additionally operable to splice picture from described
Middle selection sub-pictures are as new benchmark sub-pictures.
On the basis of the above embodiments, display module 702 may include benchmark sub-pictures display unit and viewfinder image tune
Whole unit.Wherein, benchmark sub-pictures display unit, for showing benchmark subgraph in benchmark window according to preset display scale
Piece;Viewfinder image adjustment unit, the display scale for adjusting image in viewfinder window according to display scale, so that viewfinder window
The display scale of middle image is identical as the display scale of benchmark sub-pictures.
On the basis of the above embodiments, control module 703 includes mobile detection unit, for being taken in control camera shooting
When image in scape window, the moving parameter of camera is detected, when detecting that moving parameter exceeds preset threshold range, is provided
Prompt message is to user.
On the basis of the above embodiments, adjustment point can be set on boundary line, which may also include gesture adjustment mould
Block (not shown) exchanges the gesture motion of integral point according to user before the image in control camera shooting viewfinder window
Adjust the display scale of image in viewfinder window.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (8)
1. a kind of method for the photo that pans, which is characterized in that including:
Picture is obtained as benchmark sub-pictures, and determines the boundary to be spliced on the benchmark sub-pictures;
The benchmark window and viewfinder window to connect is shown on camera display interface, and shows the base in the benchmark window
Quasi- sub-pictures make the boundary to be spliced on the benchmark sub-pictures be located at the boundary line of the benchmark window and the viewfinder window
Place, when the background in the benchmark sub-pictures is single, the boundary line is equipped with adjustment point;
The display scale for adjusting image in the viewfinder window to the gesture motion of the adjustment point according to user, when the adjustment
Point is dragged to a period of time progress flash for prompting that display scale is integral multiple minute;
It is opposite with the image in viewfinder window to the dragging adjustment benchmark sub-pictures of picture position in viewfinder window according to user
Position;
It controls the image in camera shooting viewfinder window and generates an at least picture to be selected, in an at least picture to be selected
One conduct sub-pictures to be spliced of middle selection, wherein on the sub-pictures to be spliced be located at the boundary line at pixel value with
The pixel value matching being located at the boundary line on the benchmark sub-pictures;
The sub-pictures to be spliced and the benchmark sub-pictures are spliced, picture has been spliced in formation;
It is described to include by the sub-pictures to be spliced and benchmark sub-pictures splicing:
Spliced according to benchmark sub-pictures and the relative position of image in viewfinder window, special efficacy picture has been spliced in formation.
2. according to the method described in claim 1, it is characterized in that, after picture has been spliced in formation, further include:
Picture is spliced described in display in the preview window of camera display interface;
From it is described spliced in picture choose sub-pictures as new benchmark sub-pictures.
3. according to the method described in claim 1, it is characterized in that, show the benchmark sub-pictures in the benchmark window,
Including:
The benchmark sub-pictures are shown in the benchmark window according to preset display scale;
The display scale of image in the viewfinder window is adjusted according to the display scale, so that image in the viewfinder window
Display scale is identical as the display scale of benchmark sub-pictures.
4. according to the method described in claim 1, it is characterized in that, in the image in controlling camera shooting viewfinder window, go back
Including:
The moving parameter for detecting camera provides prompt message when detecting that the moving parameter exceeds preset threshold range
To user.
5. a kind of device for the photo that pans, which is characterized in that including:
Boundary determining module to be spliced for obtaining picture as benchmark sub-pictures, and is determined and is waited on the benchmark sub-pictures
The picture of splicing boundary, acquisition is that oneself shoots picture or current shooting picture;
Display module, for showing the benchmark window and viewfinder window that connect on camera display interface, and in the datum windows
The benchmark sub-pictures are shown in mouthful, so that the boundary to be spliced on the benchmark sub-pictures is located at the benchmark window and are taken with described
At the boundary line of scape window, when the background in the benchmark sub-pictures is single, the boundary line is equipped with adjustment point;
Gesture adjusts module, for adjusting the aobvious of image in the viewfinder window to the gesture motion of the adjustment point according to user
Show ratio, flash for prompting is carried out when the adjustment point is dragged to a period of time that display scale is integral multiple minute;
It is opposite with the image in viewfinder window to the dragging adjustment benchmark sub-pictures of picture position in viewfinder window according to user
Position;
Control module, for control camera shooting viewfinder window in image and generate an at least picture to be selected, it is described extremely
A conduct sub-pictures to be spliced are chosen in a few picture to be selected, wherein being located at the boundary on the sub-pictures to be spliced
Pixel value at line is matched with the pixel value being located at the boundary line on the benchmark sub-pictures;
Concatenation module, for splicing the sub-pictures to be spliced and the benchmark sub-pictures, picture has been spliced in formation;
The concatenation module is specifically used for:
Spliced according to benchmark sub-pictures and the relative position of image in viewfinder window, special efficacy picture has been spliced in formation.
6. device according to claim 5, which is characterized in that
The display module is additionally operable to after picture has been spliced in formation, institute is shown in the preview window of camera display interface
It states and has spliced picture;
The boundary determining module to be spliced, be additionally operable to from it is described spliced in picture choose sub-pictures as new benchmark subgraph
Piece.
7. device according to claim 5, which is characterized in that the display module includes:
Benchmark sub-pictures display unit, for showing the benchmark subgraph in the benchmark window according to preset display scale
Piece;
Viewfinder image adjustment unit, the display scale for adjusting image in the viewfinder window according to the display scale, with
Keep the display scale of image in the viewfinder window identical as the display scale of benchmark sub-pictures.
8. device according to claim 5, which is characterized in that the control module includes:
Mobile detection unit, in the image in controlling camera shooting viewfinder window, detecting the moving parameter of camera, working as inspection
When measuring the moving parameter beyond preset threshold range, prompt message is provided to user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510106142.0A CN104735353B (en) | 2015-03-11 | 2015-03-11 | A kind of method and device for the photo that pans |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510106142.0A CN104735353B (en) | 2015-03-11 | 2015-03-11 | A kind of method and device for the photo that pans |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104735353A CN104735353A (en) | 2015-06-24 |
CN104735353B true CN104735353B (en) | 2018-07-17 |
Family
ID=53458743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510106142.0A Active CN104735353B (en) | 2015-03-11 | 2015-03-11 | A kind of method and device for the photo that pans |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104735353B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107595310B (en) * | 2016-07-18 | 2020-12-15 | 上海联影医疗科技股份有限公司 | Image information display interaction device and method |
CN107861436A (en) * | 2017-12-01 | 2018-03-30 | 上海市环境科学研究院 | A kind of multi-rotor unmanned aerial vehicle high altitude environment detecting system |
CN111294515B (en) * | 2020-02-25 | 2021-07-16 | 维沃软件技术有限公司 | Image acquisition method and first electronic device |
CN116366785A (en) * | 2021-12-22 | 2023-06-30 | 华为技术有限公司 | Video generation system, method and related device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7912319B2 (en) * | 2006-08-28 | 2011-03-22 | Avago Technologies General Ip (Singapore) Pte. Ltd. | Systems and methods for panoramic image construction using small sensor array |
KR101496467B1 (en) * | 2008-09-12 | 2015-02-26 | 엘지전자 주식회사 | Mobile terminal enable to shot of panorama and method for controlling operation thereof |
CN102420898A (en) * | 2011-09-27 | 2012-04-18 | 惠州Tcl移动通信有限公司 | Mobile phone-based panoramic photographing realization method and mobile phone |
-
2015
- 2015-03-11 CN CN201510106142.0A patent/CN104735353B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104735353A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2728853B1 (en) | Method and device for controlling a camera | |
US10165199B2 (en) | Image capturing apparatus for photographing object according to 3D virtual object | |
CN112135046B (en) | Video shooting method, video shooting device and electronic equipment | |
US20180109722A1 (en) | Methods and apparatus for receiving, storing and/or using camera settings and/or user preference information | |
US20150312553A1 (en) | Capturing and relighting images using multiple devices | |
CN113395419A (en) | Electronic device, control method, and computer-readable medium | |
JP5232669B2 (en) | camera | |
US20150365600A1 (en) | Composing real-time processed video content with a mobile device | |
WO2022227393A1 (en) | Image photographing method and apparatus, electronic device, and computer readable storage medium | |
US9113074B2 (en) | Imaging apparatus, imaging method, and computer readable storage medium for applying special effects processing to an automatically set region of a stereoscopic image | |
CN104735353B (en) | A kind of method and device for the photo that pans | |
KR20170027266A (en) | Image capture apparatus and method for operating the image capture apparatus | |
KR20120119794A (en) | Method and apparatus for photographing using special effect | |
US20200120269A1 (en) | Double-selfie system for photographic device having at least two cameras | |
US20240303796A1 (en) | Photography session assistant | |
CN114143461B (en) | Shooting method and device and electronic equipment | |
KR101493591B1 (en) | Imaging device, imaging processing method and storage medium | |
US9767587B2 (en) | Image extracting apparatus, image extracting method and computer readable recording medium for recording program for extracting images based on reference image and time-related information | |
US9374525B2 (en) | Shooting apparatus and shooting method | |
US10447935B2 (en) | Image generating apparatus, image generating method and computer readable recording medium for recording program for generating new image from images related to reference image | |
CN104869283B (en) | A kind of image pickup method and electronic equipment | |
US8866934B2 (en) | Image pickup apparatus capable of deleting video effect superimposed on moving image, method of controlling the apparatus, and moving image-recording apparatus, as well as storage medium | |
CN107483838A (en) | Shooting method, device, equipment and medium based on front camera and rear camera | |
CN112653841B (en) | Shooting method and device and electronic equipment | |
JP2013168969A (en) | Image display method, and image display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |