CN106780346A - A kind of picture splicing apparatus and method based on edge input - Google Patents
A kind of picture splicing apparatus and method based on edge input Download PDFInfo
- Publication number
- CN106780346A CN106780346A CN201710039772.XA CN201710039772A CN106780346A CN 106780346 A CN106780346 A CN 106780346A CN 201710039772 A CN201710039772 A CN 201710039772A CN 106780346 A CN106780346 A CN 106780346A
- Authority
- CN
- China
- Prior art keywords
- picture
- combining unit
- edge
- coordinate points
- edge region
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4038—Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Abstract
The present invention relates to technical field of mobile terminals, a kind of picture splicing apparatus based on edge input and method are disclosed, the device includes:Picture acquisition module, for obtaining default first picture and second picture, obtains the first edge touch control operation in the first edge region of mobile terminal screen, obtains the first coordinate points;The second coordinate points are obtained on the corresponding second edge region in first edge region;Cutting module, it is the first combining unit and the first cancellation portion to form straight line by the first picture cutting for the first coordinate points and the second coordinate points, and straight line is displayed in normal viewing area;Second picture cutting is the second combining unit and the second cancellation portion by straight line;Synthesis module, for obtaining the first combining unit of the first picture and the second combining unit of second picture, second combining unit of the first combining unit of the first picture and second picture is merged turns into Target Photo, is input into by edge and is quickly spliced two pictures, improves Consumer's Experience.
Description
Technical field
The present invention relates to technical field of mobile terminals, more specifically to a kind of picture splicing based on edge input
Device and method.
Background technology
In the prior art, typically all single picture or photo in the terminal, user can be by these single pictures
Be set to desktop background (wallpaper) or for other purposes, when user needs to be spliced two or plurality of pictures, it is necessary to
Repair figure or picture arrangement tool to complete by special, and operate complex.
The content of the invention
It is a primary object of the present invention to propose a kind of picture splicing apparatus based on edge input and method, by edge
Two pictures are quickly spliced in input, improve Consumer's Experience.
To achieve the above object, a kind of picture splicing apparatus based on edge input that the present invention is provided, including:
Picture acquisition module, for obtaining default first picture and second picture, by default first picture and
Second picture is displayed in the normal viewing area of mobile terminal;
First coordinate points acquisition module, the first edge touch-control behaviour in the first edge region for obtaining mobile terminal screen
Make, obtain the first coordinate points;
Second coordinate points acquisition module, for obtaining second on the corresponding second edge region in the first edge region
Coordinate points;
First cutting module, straight line is formed by first picture for first coordinate points and the second coordinate points
Cutting is the first combining unit and the first cancellation portion, and the straight line is displayed in normal viewing area;
Second cutting module, for the straight line by the second picture cutting be the second combining unit and the second cancellation portion;
Synthesis module, for obtaining the first combining unit of first picture and the second combining unit of the second picture,
Second combining unit of the first combining unit of first picture and the second picture is merged turns into Target Photo.
Alternatively, the second coordinate points acquisition module includes:
With first coordinate points as starting point, and prolong to the second edge region with perpendicular to the first edge region
Stretch to form straight line, take up an official post from line segment of the straight line in the second edge region and take a little as the second coordinate points;
Or
The second edge touch control operation in the second edge region is obtained, the second coordinate points are obtained.
Alternatively, also include:
Judge module, the second edge input operation for obtaining the second edge region, judges the second edge
Whether input operation is default edge input action, if so, then by the first combining unit of first picture and described second
Second combining unit of picture merges turns into Target Photo.
Alternatively, the default edge input action is to slide up and down.
Alternatively, the first cutting module includes:
Judge first picture the first half whether be Target Photo a part, if so, then by first picture
The first half as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as
First cancellation portion;
Correspondingly, the second cutting module includes:
Judge first combining unit whether be first picture the first half, if so, then by the second picture
Lower half as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as
Second cancellation portion.
As another aspect of the present invention, there is provided it is a kind of based on edge input picture joining method, including:
Default first picture and second picture are obtained, default first picture and second picture are included in movement
In the normal viewing area of terminal;
The first edge touch control operation in the first edge region of mobile terminal screen is obtained, the first coordinate points are obtained;Institute
State and obtain the second coordinate points on the corresponding second edge region in first edge region;
It is the first combining unit that first coordinate points and the second coordinate points form straight line by first picture cutting
With the first cancellation portion, the straight line is displayed in normal viewing area;
The second picture cutting is the second combining unit and the second cancellation portion by the straight line;
The first combining unit of first picture and the second combining unit of the second picture are obtained, by first picture
The first combining unit and the second picture the second combining unit merge turn into Target Photo.
Alternatively, obtaining the second coordinate points on the corresponding second edge region in the first edge region includes:
With first coordinate points as starting point, and prolong to the second edge region with perpendicular to the first edge region
Stretch to form straight line, take up an official post from line segment of the straight line in the second edge region and take a little as the second coordinate points;
Or
The second edge touch control operation in the second edge region is obtained, the second coordinate points are obtained.
Alternatively, turn into by the second combining unit merging of the first combining unit of first picture and the second picture
Also include before Target Photo:
Obtain the second edge input operation in the second edge region, judge the second edge input operation whether be
Default edge input action, if so, then by the second synthesis of the first combining unit of first picture and the second picture
Portion merges turns into Target Photo.
Alternatively, the default edge input action is to slide up and down.
Alternatively, it is first that first coordinate points and the second coordinate points form straight line by first picture cutting
Combining unit and the first cancellation portion include:
Judge first picture the first half whether be Target Photo a part, if so, then by first picture
The first half as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as
First cancellation portion;
Correspondingly, the second picture cutting is that the second combining unit and the second cancellation portion include by the straight line:
Judge first combining unit whether be first picture the first half, if so, then by the second picture
Lower half as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as
Second cancellation portion.
A kind of picture splicing apparatus and method based on edge input proposed by the present invention, the device include:Picture is obtained
Module, for obtaining default first picture and second picture, default first picture and second picture is included to move
In the normal viewing area of dynamic terminal;First coordinate points acquisition module, the first edge region for obtaining mobile terminal screen
First edge touch control operation, obtain the first coordinate points;Second coordinate points acquisition module, in the first edge region pair
The second coordinate points are obtained on the second edge region answered;First cutting module, for first coordinate points and the second coordinate points
It is the first combining unit and the first cancellation portion that straight line is formed by first picture cutting, and the straight line is displayed in normal display
In region;Second cutting module, for the straight line by the second picture cutting be the second combining unit and the second cancellation portion;Close
Into module, for obtaining the first combining unit of first picture and the second combining unit of the second picture, by described first
First combining unit of picture and the second combining unit of the second picture merge turns into Target Photo, is input into two by edge
Picture is quickly spliced, and improves Consumer's Experience.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is a kind of picture splicing apparatus demonstrative structure frame based on edge input that the embodiment of the present invention one is provided
Figure;
Fig. 2 is that a kind of screen area of mobile terminal that the embodiment of the present invention one is provided divides schematic diagram;
Fig. 3 is a kind of left hand edge input schematic diagram that the embodiment of the present invention one is provided;
Fig. 4 is another left hand edge input schematic diagram that the embodiment of the present invention one is provided;
Fig. 5 is a kind of edge input decomposing schematic representation that the embodiment of the present invention one is provided;
Fig. 6 is another edge input decomposing schematic representation that the embodiment of the present invention one is provided;
Fig. 7 is a kind of edge input overall schematic that the embodiment of the present invention one is provided;
Fig. 8 is a kind of left hand edge input schematic diagram that the embodiment of the present invention two is provided;
Fig. 9 is another left hand edge input schematic diagram that the embodiment of the present invention two is provided;
Figure 10 is a kind of edge input decomposing schematic representation that the embodiment of the present invention two is provided;
Figure 11 is another edge input decomposing schematic representation that the embodiment of the present invention two is provided;
Figure 12 is a kind of edge input overall schematic that the embodiment of the present invention two is provided;
Figure 13 is a kind of picture joining method schematic flow sheet based on edge input that the embodiment of the present invention three is provided;
Figure 14 is the picture joining method schematic flow sheet that the another kind that the embodiment of the present invention three is provided is based on edge input.
Specific embodiment
In order to be more clearly understood to technical characteristic of the invention, purpose and effect, now compare accompanying drawing and describe in detail
Specific embodiment of the invention.
Embodiment one
As shown in figure 1, in the present embodiment, a kind of picture splicing apparatus based on edge input, including:
Picture acquisition module 10, for obtaining default first picture and second picture, by default first picture
It is displayed in the normal viewing area of mobile terminal with second picture;
First coordinate points acquisition module 20, the first edge touch-control in the first edge region for obtaining mobile terminal screen
Operation, obtains the first coordinate points;
Second coordinate points acquisition module 30, for obtaining on the corresponding second edge region in the first edge region
Two coordinate points;
First cutting module 40, straight line is formed by first figure for first coordinate points and the second coordinate points
Piece cutting is the first combining unit and the first cancellation portion, and the straight line is displayed in normal viewing area;
Second cutting module 50, for the straight line by the second picture cutting be the second combining unit and second cancel
Portion;
Synthesis module 60, the second synthesis of the first combining unit and the second picture for obtaining first picture
Portion, the second combining unit of the first combining unit of first picture and the second picture is merged turns into Target Photo.
In the present embodiment, it is input into by edge and is quickly spliced two pictures, it is simple to operate, improve user's body
Test.
As shown in Fig. 2 for the screen area of the mobile terminal of the embodiment of the present invention one divides schematic diagram, wherein, A areas are for just
Normal viewing area, C areas are fringe region, and left border region and right border region are divided into again, and B areas are no-input zone.
In the present embodiment, the present invention is mainly suitable for two and the splicing of above picture, described default first
Picture and second picture can be portrait photographs, the publicity pictures of a certain scenic spot or other pictures downloaded from the Internet,
Can also be the photo shot temporarily by the camera on mobile terminal, when user is more favorite to certain part of two pictures
When, such as, one of picture is the photo of user, and another pictures are a picture for scenic spot, Yong Huxi
Hope in the photomosaic of oneself to scenic spot, so that it may two pictures are spliced using the technical scheme in this case.
In the present embodiment, A areas be normal viewing area, for placing default first picture and second picture, when with
When the picture that family will be chosen is placed on normal viewing area, user can carry out drag operation to picture, by user in picture
Compare the corresponding positions that favorite part (such as top half of picture, the latter half or center section) drags to normal viewing area
Put, for example, when the top half of the more favorite pictures of user (being defined as the first picture), wanting the upper half of this pictures
Partly as the top half of Target Photo (user shoots the picture after synthesis), it is possible to which picture is dragged into normal viewing area
The top half in domain, and the picture is set is shown on screen in the top half area preference, that is, working as normal viewing area
When inside having other picture (being defined as second picture), the top half region only shows the content of the first picture, without display
The content of second picture;Similarly, when the latter half of the more favorite second picture of user, want the latter half of this pictures
As the latter half of Target Photo, it is possible to which picture is dragged to the latter half of normal viewing area, and the picture is set
It is shown on screen in the latter half area preference, that is, when having the first picture in normal viewing area, the lower half
Subregion only shows the content of second picture, the content without showing the first picture.
In the present embodiment, fringe region C areas can be divided or self-defined division using fixed form.Fixed partition, that is, exist
The screen area of mobile terminal sets regular length, the region of fixed broadband as C areas.C areas include being located at a mobile terminal screen left side
The left border region of side and the right border region on the right side of mobile terminal screen, its position is fixed at mobile terminal
Both sides of the edge, as shown in Figure 2.Certainly, also C areas only can be divided in the side edge of mobile terminal.
Self-defined division, the i.e. number in the region in C areas, position and size, the setting that can customize, for example, can be by user
Set, also can be adjusted quantity, position and the size in the region in C areas by mobile terminal according to self-demand.Generally, C areas
Fundamental figure is designed as rectangle, simply enters position and size that two diagonal apex coordinates of figure can determine that C areas.
In the present embodiment, it is contemplated that the use habit of user, the first edge region is left border region, described
Second edge region is right border region.
As shown in figure 3, in the present embodiment, when the left hand of user carries out touch-control behaviour in the left border region of mobile terminal
When making, namely mobile terminal is when receiving first edge touch control operation, obtains the first edge touch control operation, obtains the first coordinate
Point, then obtains the second coordinate points, by first coordinate on the corresponding second edge region in the first edge region
Point and the second coordinate points form straight line and carry out cutting with to the first picture and second picture.
For the ease of distinguish, in figure 3 by the first picture D and second picture E be dimensioned to it is inconsistent, by the second figure
Piece E is set to the size as normal viewing area, is set to smaller by the first picture and is close to normal viewing area lower half,
But in practical operation, two sizes of picture can be consistent, it is also possible to inconsistent, and its position can also arbitrarily be adjusted, not
Influence the implementation of this programme.
In the present embodiment, the method for obtaining the second coordinate points obtains the method for the straight line and has two in other words, the first
Method, as shown in figure 3, with first coordinate points as starting point, and with perpendicular to the first edge region to second side
Edge region extends to form straight line, and this straight line is the above-mentioned straight line for cutting, the linear extension to second edge
Region, can form a line segment in second edge region, and taking up an official post from the line segment, take a little all can be as the second coordinate points, at this
In embodiment, as shown in figure 3, being the intersection point in the left side boundary line using the straight line Yu second edge region as the second coordinate points;
In the method, can directly by with first coordinate points as starting point, and with perpendicular to the first edge region to institute
State second edge region to extend this to be formed straight line to carry out cutting to the first picture and second picture, it is not necessary to first ask second
Coordinate points re-form straight line;First picture D cuttings are the first combining unit and the first cancellation portion, the straight line by the straight line
Also it is the second combining unit and the second cancellation portion by second picture E cuttings.
Second method, as shown in figure 4, obtaining the second edge touch control operation in the second edge region, obtains second
Coordinate points, namely the second coordinate points now touch second edge region and produce by the right hand of user, the second seat for so obtaining
The straight line that punctuate and the first coordinate points are formed can be with more flexible, except as being produced in above-mentioned first method perpendicular to two sides
Can also be in other angles with two fringe regions outside the straight line in edge region, such as the unspecified angle in the range of 60 ° -90 ° can
Freely set with by user, provide the user with good experience, such as, when it is determined that after the first coordinate points, not generating temporarily vertical
In the straight line of fringe region, but touch control operation is carried out by the right hand, according to the first picture or the content of second picture, choose one
Individual second coordinate points, generate straight line as shown in Figure 4.
Used as another embodiment, second coordinate points can also touch second edge region and produce by the left hand of user
Raw, such as the forefinger of left hand touches first edge region and produces first edge touch control operation, obtains the first coordinate points, the thumb of left hand
Refer to that touching second edge region produces second edge touch control operation, obtains the second coordinate points.
Used as another embodiment, the straight line can also replace with curve, can be by normal viewing area
Normal input area is adjusted, the demand more changeable to meet user.
As shown in figure 5, in order to make it easy to understand, only the first picture D of display in Fig. 5, the in normal viewing area is not shown
Two picture E, in the present embodiment, the first picture D cuttings are that the first combining unit and the first cancellation portion include by the straight line:
Position of first picture in the normal viewing area can drag adjustment;
Judge first picture the first half whether be Target Photo a part, if so, then by first picture
The first half as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as
First cancellation portion.
In the present embodiment, whether the first half for judging first picture is that the part of Target Photo relies primarily on use
Family independently judges, is not protection main points of the invention, and in Figure 5, user chooses the latter half as the first combining unit, in selection
Half part is used as the first cancellation portion.
As shown in fig. 6, in order to make it easy to understand, only show the second picture E in normal viewing area in Fig. 6, is not shown
One picture D, in the present embodiment, the second picture E points is that the second combining unit and the second cancellation portion include by the straight line:
Judge first combining unit whether be first picture the first half, if so, then by the second picture
Lower half as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as
Second cancellation portion.
Because this programme is the synthesis for picture, therefore, it is determined that after the first combining unit of default picture, it is possible to
Determine the second combining unit of real-time imaging, in figure 6, the first half of the second picture is the second combining unit, second figure
The lower half of piece is the second cancellation portion.
As another embodiment, it is also possible to first determine the second combining unit of second picture, further according to the described second synthesis
Portion determines the first combining unit.
In the present embodiment, also including judge module, the second edge for obtaining the second edge region is input into behaviour
Make, judge whether the second edge input operation is default edge input action, if so, then by the of first picture
Second combining unit of one combining unit and the second picture merges turns into Target Photo.
As shown in fig. 7, after the first combining unit and the second combining unit is determined, it is possible to existed by the right hand shown in Fig. 7
The second edge input operation in second edge region carries out picture synthesis, judges whether the second edge input operation is pre-
If edge input action, if so, first combining unit and second combining unit then are synthesized into Target Photo.
In the present embodiment, the default edge input action is to slide up and down.
Embodiment two
In the present embodiment, using right border region as first edge region, using left border region as the second side
Edge region.
As shown in figure 8, in the present embodiment, when the right hand of user carries out touch-control behaviour in the right border region of mobile terminal
When making, namely mobile terminal is when receiving first edge touch control operation, obtains the first edge touch control operation, obtains the first coordinate
Point, then obtains the second coordinate points, by first coordinate on the corresponding second edge region in the first edge region
Point and the second coordinate points form straight line and carry out cutting with to the first picture and second picture.
For the ease of distinguish, in fig. 8 by the first picture D and second picture E be dimensioned to it is inconsistent, by the second figure
Piece E is set to the size as normal viewing area, is set to smaller by the first picture and is close to normal viewing area lower half,
But in practical operation, two sizes of picture can be consistent, it is also possible to inconsistent, and its position can also arbitrarily be adjusted, not
Influence the implementation of this programme.
In the present embodiment, the method for obtaining the second coordinate points obtains the method for the straight line and has two in other words, the first
Method, as shown in figure 8, with first coordinate points as starting point, and with perpendicular to the first edge region to second side
Edge region extends to form straight line, and this straight line is the above-mentioned straight line for cutting, the linear extension to second edge
Region, can form a line segment in second edge region, and taking up an official post from the line segment, take a little all can be as the second coordinate points, at this
In embodiment, as shown in figure 8, being the intersection point in the left side boundary line using the straight line Yu second edge region as the second coordinate points;
In the method, can directly by with first coordinate points as starting point, and with perpendicular to the first edge region to institute
State second edge region to extend this to be formed straight line to carry out cutting to the first picture and second picture, it is not necessary to first ask second
Coordinate points re-form straight line;First picture D cuttings are the first combining unit and the first cancellation portion, the straight line by the straight line
Also it is the second combining unit and the second cancellation portion by second picture E cuttings.
Second method, as shown in figure 9, obtaining the second edge touch control operation in the second edge region, obtains second
Coordinate points, namely the second coordinate points now touch second edge region and produce by the left hand of user, the second seat for so obtaining
The straight line that punctuate and the first coordinate points are formed can be with more flexible, except as being produced in above-mentioned first method perpendicular to two sides
Can also be in other angles with two fringe regions outside the straight line in edge region, such as the unspecified angle in the range of 60 ° -90 ° can
Freely set with by user, provide the user with good experience, such as, when it is determined that after the first coordinate points, not generating temporarily vertical
In the straight line of fringe region, but touch control operation is carried out by the right hand, according to the first picture or the content of second picture, choose one
Individual second coordinate points, generate straight line as shown in Figure 9.
Used as another embodiment, second coordinate points can also touch second edge region and produce by the right hand of user
Raw, such as the forefinger of the right hand touches first edge region and produces first edge touch control operation, obtains the first coordinate points, the thumb of the right hand
Refer to that touching second edge region produces second edge touch control operation, obtains the second coordinate points.
Used as another embodiment, the straight line can also replace with curve, can be by normal viewing area
Normal input area is adjusted, the demand more changeable to meet user.
As shown in Figure 10, in order to make it easy to understand, only showing the first picture D in Figure 10, do not show in normal viewing area
Second picture E, in the present embodiment, the first picture D cuttings are that the first combining unit and the first cancellation portion wrap by the straight line
Include:
Position of first picture in the normal viewing area can drag adjustment;
Judge first picture the first half whether be Target Photo a part, if so, then by first picture
The first half as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as
First cancellation portion.
In the present embodiment, whether the first half for judging first picture is that the part of Target Photo relies primarily on use
Family independently judges, is not protection main points of the invention, and in Fig. 10, user chooses the latter half as the first combining unit, selection
Top half is used as the first cancellation portion.
As shown in figure 11, in order to make it easy to understand, only showing the second picture E in normal viewing area in Figure 11, do not show
First picture D, in the present embodiment, the second picture E points is that the second combining unit and the second cancellation portion include by the straight line:
Judge first combining unit whether be first picture the first half, if so, then by the second picture
Lower half as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as
Second cancellation portion.
Because this programme is the synthesis for picture, therefore, it is determined that after the first combining unit of default picture, it is possible to
Determine the second combining unit of real-time imaging, in fig. 11, the first half of the second picture is the second combining unit, second figure
The lower half of piece is the second cancellation portion.
As another embodiment, it is also possible to first determine the second combining unit of second picture, further according to the described second synthesis
Portion determines the first combining unit.
In the present embodiment, also including judge module, the second edge for obtaining the second edge region is input into behaviour
Make, judge whether the second edge input operation is default edge input action, if so, then by the of first picture
Second combining unit of one combining unit and the second picture merges turns into Target Photo.
As shown in figure 12, after the first combining unit and the second combining unit is determined, it is possible to by the right hand shown in Figure 12
Carry out picture synthesis in the second edge input operation in second edge region, judge the second edge input operation whether be
Default edge input action, if so, first combining unit and second combining unit then are synthesized into Target Photo.
Embodiment three
As shown in figure 13, in the present embodiment, a kind of picture joining method based on edge input, including:
S10, default first picture of acquisition and second picture, default first picture and second picture are included
In the normal viewing area of mobile terminal;
S20, the first edge touch control operation in the first edge region of acquisition mobile terminal screen, obtain the first coordinate points;
The second coordinate points are obtained on the corresponding second edge region in the first edge region;
It is the first conjunction that S30, first coordinate points and the second coordinate points form straight line by first picture cutting
Into portion and the first cancellation portion, the straight line is displayed in normal viewing area;
The second picture cutting is the second combining unit and the second cancellation portion by S40, the straight line;
Second combining unit of S50, the first combining unit for obtaining first picture and the second picture, by described first
First combining unit of picture and the second combining unit of the second picture merge turns into Target Photo.
In the present embodiment, it is input into by edge and is quickly spliced two pictures, it is simple to operate, improve user's body
Test.
As shown in Fig. 2 for the screen area of the mobile terminal of the embodiment of the present invention one divides schematic diagram, wherein, A areas are for just
Normal viewing area, C areas are fringe region, and left border region and right border region are divided into again, and B areas are no-input zone.
In the present embodiment, the present invention is mainly suitable for two and the splicing of above picture, described default first
Picture and second picture can be portrait photographs, the publicity pictures of a certain scenic spot or other pictures downloaded from the Internet,
Can also be the photo shot temporarily by the camera on mobile terminal, when user is more favorite to certain part of two pictures
When, such as, one of picture is the photo of user, and another pictures are a picture for scenic spot, Yong Huxi
Hope in the photomosaic of oneself to scenic spot, so that it may two pictures are spliced using the technical scheme in this case.
In the present embodiment, A areas be normal viewing area, for placing default first picture and second picture, when with
When the picture that family will be chosen is placed on normal viewing area, user can carry out drag operation to picture, by user in picture
Compare the corresponding positions that favorite part (such as top half of picture, the latter half or center section) drags to normal viewing area
Put, for example, when the top half of the more favorite pictures of user (being defined as the first picture), wanting the upper half of this pictures
Partly as the top half of Target Photo (user shoots the picture after synthesis), it is possible to which picture is dragged into normal viewing area
The top half in domain, and the picture is set is shown on screen in the top half area preference, that is, working as normal viewing area
When inside having other picture (being defined as second picture), the top half region only shows the content of the first picture, without display
The content of second picture;Similarly, when the latter half of the more favorite second picture of user, want the latter half of this pictures
As the latter half of Target Photo, it is possible to which picture is dragged to the latter half of normal viewing area, and the picture is set
It is shown on screen in the latter half area preference, that is, when having the first picture in normal viewing area, the lower half
Subregion only shows the content of second picture, the content without showing the first picture.
In the present embodiment, fringe region C areas can be divided or self-defined division using fixed form.Fixed partition, that is, exist
The screen area of mobile terminal sets regular length, the region of fixed broadband as C areas.C areas include being located at a mobile terminal screen left side
The left border region of side and the right border region on the right side of mobile terminal screen, its position is fixed at mobile terminal
Both sides of the edge, as shown in Figure 2.Certainly, also C areas only can be divided in the side edge of mobile terminal.
Self-defined division, the i.e. number in the region in C areas, position and size, the setting that can customize, for example, can be by user
Set, also can be adjusted quantity, position and the size in the region in C areas by mobile terminal according to self-demand.Generally, C areas
Fundamental figure is designed as rectangle, simply enters position and size that two diagonal apex coordinates of figure can determine that C areas.
In the present embodiment, it is contemplated that the use habit of user, the first edge region is left border region, described
Second edge region is right border region.
As shown in figure 3, in the present embodiment, when the left hand of user carries out touch-control behaviour in the left border region of mobile terminal
When making, namely mobile terminal is when receiving first edge touch control operation, obtains the first edge touch control operation, obtains the first coordinate
Point, then obtains the second coordinate points, by first coordinate on the corresponding second edge region in the first edge region
Point and the second coordinate points form straight line and carry out cutting with to the first picture and second picture.
For the ease of distinguish, in figure 3 by the first picture D and second picture E be dimensioned to it is inconsistent, by the second figure
Piece E is set to the size as normal viewing area, is set to smaller by the first picture and is close to normal viewing area lower half,
But in practical operation, two sizes of picture can be consistent, it is also possible to inconsistent, and its position can also arbitrarily be adjusted, not
Influence the implementation of this programme.
In the present embodiment, the method for obtaining the second coordinate points obtains the method for the straight line and has two in other words, the first
Method, as shown in figure 3, with first coordinate points as starting point, and with perpendicular to the first edge region to second side
Edge region extends to form straight line, and this straight line is the above-mentioned straight line for cutting, the linear extension to second edge
Region, can form a line segment in second edge region, and taking up an official post from the line segment, take a little all can be as the second coordinate points, at this
In embodiment, as shown in figure 3, being the intersection point in the left side boundary line using the straight line Yu second edge region as the second coordinate points;
In the method, can directly by with first coordinate points as starting point, and with perpendicular to the first edge region to institute
State second edge region to extend this to be formed straight line to carry out cutting to the first picture and second picture, it is not necessary to first ask second
Coordinate points re-form straight line;First picture D cuttings are the first combining unit and the first cancellation portion, the straight line by the straight line
Also it is the second combining unit and the second cancellation portion by second picture E cuttings.
Second method, as shown in figure 4, obtaining the second edge touch control operation in the second edge region, obtains second
Coordinate points, namely the second coordinate points now touch second edge region and produce by the right hand of user, the second seat for so obtaining
The straight line that punctuate and the first coordinate points are formed can be with more flexible, except as being produced in above-mentioned first method perpendicular to two sides
Can also be in other angles with two fringe regions outside the straight line in edge region, such as the unspecified angle in the range of 60 ° -90 ° can
Freely set with by user, provide the user with good experience, such as, when it is determined that after the first coordinate points, not generating temporarily vertical
In the straight line of fringe region, but touch control operation is carried out by the right hand, according to the first picture or the content of second picture, choose one
Individual second coordinate points, generate straight line as shown in Figure 4.
Used as another embodiment, second coordinate points can also touch second edge region and produce by the left hand of user
Raw, such as the forefinger of left hand touches first edge region and produces first edge touch control operation, obtains the first coordinate points, the thumb of left hand
Refer to that touching second edge region produces second edge touch control operation, obtains the second coordinate points.
Used as another embodiment, the straight line can also replace with curve, can be by normal viewing area
Normal input area is adjusted, the demand more changeable to meet user.
As shown in figure 5, in order to make it easy to understand, only the first picture D of display in Fig. 5, the in normal viewing area is not shown
Two picture E, in the present embodiment, the first picture D cuttings are that the first combining unit and the first cancellation portion include by the straight line:
Position of first picture in the normal viewing area can drag adjustment;
Judge first picture the first half whether be Target Photo a part, if so, then by first picture
The first half as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as
First cancellation portion.
In the present embodiment, whether the first half for judging first picture is that the part of Target Photo relies primarily on use
Family independently judges, is not protection main points of the invention, and in Figure 5, user chooses the latter half as the first combining unit, in selection
Half part is used as the first cancellation portion.
As shown in fig. 6, in order to make it easy to understand, only show the second picture E in normal viewing area in Fig. 6, is not shown
One picture D, in the present embodiment, the second picture E points is that the second combining unit and the second cancellation portion include by the straight line:
Judge first combining unit whether be first picture the first half, if so, then by the second picture
Lower half as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as
Second cancellation portion.
Because this programme is the synthesis for picture, therefore, it is determined that after the first combining unit of default picture, it is possible to
Determine the second combining unit of real-time imaging, in figure 6, the first half of the second picture is the second combining unit, second figure
The lower half of piece is the second cancellation portion.
As another embodiment, it is also possible to first determine the second combining unit of second picture, further according to the described second synthesis
Portion determines the first combining unit.
In the present embodiment, as shown in figure 14, before the step S50, also including judging step S41, obtaining described the
The second edge input operation of two fringe regions, judges whether the second edge input operation is that default edge input is dynamic
Make, if so, then enter step S50 merging the second combining unit of the first combining unit of first picture and the second picture
As Target Photo, otherwise, into step S42, ignore the second edge input operation.
As shown in fig. 7, after the first combining unit and the second combining unit is determined, it is possible to existed by the right hand shown in Fig. 7
The second edge input operation in second edge region carries out picture synthesis, judges whether the second edge input operation is pre-
If edge input action, if so, first combining unit and second combining unit then are synthesized into Target Photo.
In the present embodiment, the default edge input action is to slide up and down.
As another embodiment, left border region can be made in right border region as first edge region
It is second edge region, thus straight line for cutting can be generated by the right hand, synthetic operation is triggered by left hand.
Any process described otherwise above or method description can be by flow chart or in an embodiment of the present invention
Be interpreted as, expression include it is one or more for realizing specific logical function or process the step of executable instruction code
Module, fragment or part, and the scope of embodiment of the present invention includes other realization, wherein can not by shown or
The order of discussion, including function involved by basis by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should
Those skilled in the art understand described in embodiments of the invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Implementation method, above-mentioned specific embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under enlightenment of the invention, in the case of present inventive concept and scope of the claimed protection is not departed from, can also make a lot
Form, these are belonged within protection of the invention.
Claims (10)
1. it is a kind of based on edge input picture splicing apparatus, it is characterised in that including:
Picture acquisition module, for obtaining default first picture and second picture, by default first picture and second
Picture is displayed in the normal viewing area of mobile terminal;
First coordinate points acquisition module, the first edge touch control operation in the first edge region for obtaining mobile terminal screen,
Obtain the first coordinate points;
Second coordinate points acquisition module, for obtaining the second coordinate on the corresponding second edge region in the first edge region
Point;
First cutting module, straight line is formed by the first picture cutting for first coordinate points and the second coordinate points
It is the first combining unit and the first cancellation portion, the straight line is displayed in normal viewing area;
Second cutting module, for the straight line by the second picture cutting be the second combining unit and the second cancellation portion;
Synthesis module, for obtaining the first combining unit of first picture and the second combining unit of the second picture, by institute
Second combining unit of the first combining unit and the second picture of stating the first picture merges turns into Target Photo.
2. it is according to claim 1 it is a kind of based on edge input picture splicing apparatus, it is characterised in that it is described second sit
Punctuate acquisition module includes:
With first coordinate points as starting point, and extend shape to the second edge region with perpendicular to the first edge region
It is in alignment, take up an official post from line segment of the straight line in the second edge region and take a little as the second coordinate points;Or
The second edge touch control operation in the second edge region is obtained, the second coordinate points are obtained.
3. it is according to claim 2 it is a kind of based on edge input picture splicing apparatus, it is characterised in that also include:
Judge module, the second edge input operation for obtaining the second edge region judges the second edge input
Whether operation is default edge input action, if so, then by first combining unit and the second picture of first picture
The second combining unit merge turn into Target Photo.
4. it is according to claim 3 it is a kind of based on edge input picture splicing apparatus, it is characterised in that it is described default
Edge input action is to slide up and down.
5. it is according to claim 1 it is a kind of based on edge input picture splicing apparatus, it is characterised in that described first cuts
Sub-module includes:
Judge first picture the first half whether be Target Photo a part, if so, then by the upper of first picture
Half portion as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as first
Cancellation portion;
Correspondingly, the second cutting module includes:
Judge first combining unit whether be first picture the first half, if so, then by the lower half of the second picture
Portion as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as second
Cancellation portion.
6. it is a kind of based on edge input picture joining method, it is characterised in that including:
Default first picture and second picture are obtained, default first picture and second picture are included in mobile terminal
Normal viewing area in;
The first edge touch control operation in the first edge region of mobile terminal screen is obtained, the first coordinate points are obtained;Described
One fringe region obtains the second coordinate points on corresponding second edge region;
It is the first combining unit and that first coordinate points and the second coordinate points form straight line by first picture cutting
One cancellation portion, the straight line is displayed in normal viewing area;
The second picture cutting is the second combining unit and the second cancellation portion by the straight line;
The first combining unit of first picture and the second combining unit of the second picture are obtained, by the of first picture
Second combining unit of one combining unit and the second picture merges turns into Target Photo.
7. it is according to claim 6 it is a kind of based on edge input picture joining method, it is characterised in that described first
Obtaining the second coordinate points on the corresponding second edge region of fringe region includes:
With first coordinate points as starting point, and extend shape to the second edge region with perpendicular to the first edge region
It is in alignment, take up an official post from line segment of the straight line in the second edge region and take a little as the second coordinate points;Or
The second edge touch control operation in the second edge region is obtained, the second coordinate points are obtained.
8. a kind of picture joining method based on edge input according to claim 7, it is characterised in that by described the
The second combining unit merging of first combining unit and the second picture of one picture also includes before turning into Target Photo:
The second edge input operation in the second edge region is obtained, judges whether the second edge input operation is default
Edge input action, if so, then the second combining unit of the first combining unit of first picture and the second picture is closed
And as Target Photo.
9. it is according to claim 8 it is a kind of based on edge input picture joining method, it is characterised in that it is described default
Edge input action is to slide up and down.
10. it is according to claim 6 it is a kind of based on edge input picture joining method, it is characterised in that described first
It is that the first combining unit and the first cancellation portion include that coordinate points and the second coordinate points form straight line by first picture cutting:
Judge first picture the first half whether be Target Photo a part, if so, then by the upper of first picture
Half portion as the first combining unit, using the lower half of first picture as the first cancellation portion;
Otherwise, using the lower half of first picture as the first combining unit, using the first half of first picture as first
Cancellation portion;
Correspondingly, the second picture cutting is that the second combining unit and the second cancellation portion include by the straight line:
Judge first combining unit whether be first picture the first half, if so, then by the lower half of the second picture
Portion as the second combining unit, using the first half of the second picture as the second cancellation portion;
Otherwise, using the first half of the second picture as the second combining unit, using the lower half of the second picture as second
Cancellation portion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710039772.XA CN106780346B (en) | 2017-01-19 | 2017-01-19 | Image splicing device and method based on edge input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710039772.XA CN106780346B (en) | 2017-01-19 | 2017-01-19 | Image splicing device and method based on edge input |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106780346A true CN106780346A (en) | 2017-05-31 |
CN106780346B CN106780346B (en) | 2021-08-03 |
Family
ID=58944551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710039772.XA Active CN106780346B (en) | 2017-01-19 | 2017-01-19 | Image splicing device and method based on edge input |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106780346B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595239A (en) * | 2018-04-18 | 2018-09-28 | 腾讯科技(深圳)有限公司 | image processing method, device, terminal and computer readable storage medium |
CN108898555A (en) * | 2018-07-27 | 2018-11-27 | 维沃移动通信有限公司 | A kind of image processing method and terminal device |
CN109509240A (en) * | 2018-11-28 | 2019-03-22 | 湖南新云网科技有限公司 | A kind of smart machine display methods, readable storage medium storing program for executing and smart machine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710276A (en) * | 2009-12-02 | 2010-05-19 | 中兴通讯股份有限公司 | Method and device for setting and unlocking screensaver |
CN104580918A (en) * | 2015-02-02 | 2015-04-29 | 联想(北京)有限公司 | Image processing method and device and electronic device |
CN105472241A (en) * | 2015-11-20 | 2016-04-06 | 努比亚技术有限公司 | Image splicing method and mobile terminals |
CN105808145A (en) * | 2016-03-28 | 2016-07-27 | 努比亚技术有限公司 | Method and terminal for achieving image processing |
CN106303229A (en) * | 2016-08-04 | 2017-01-04 | 努比亚技术有限公司 | A kind of photographic method and device |
CN106791414A (en) * | 2016-12-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of take pictures synthesizer and method based on edge input |
-
2017
- 2017-01-19 CN CN201710039772.XA patent/CN106780346B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710276A (en) * | 2009-12-02 | 2010-05-19 | 中兴通讯股份有限公司 | Method and device for setting and unlocking screensaver |
CN104580918A (en) * | 2015-02-02 | 2015-04-29 | 联想(北京)有限公司 | Image processing method and device and electronic device |
CN105472241A (en) * | 2015-11-20 | 2016-04-06 | 努比亚技术有限公司 | Image splicing method and mobile terminals |
CN105808145A (en) * | 2016-03-28 | 2016-07-27 | 努比亚技术有限公司 | Method and terminal for achieving image processing |
CN106303229A (en) * | 2016-08-04 | 2017-01-04 | 努比亚技术有限公司 | A kind of photographic method and device |
CN106791414A (en) * | 2016-12-29 | 2017-05-31 | 努比亚技术有限公司 | A kind of take pictures synthesizer and method based on edge input |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595239A (en) * | 2018-04-18 | 2018-09-28 | 腾讯科技(深圳)有限公司 | image processing method, device, terminal and computer readable storage medium |
CN108595239B (en) * | 2018-04-18 | 2021-08-13 | 腾讯科技(深圳)有限公司 | Picture processing method, device, terminal and computer readable storage medium |
CN108898555A (en) * | 2018-07-27 | 2018-11-27 | 维沃移动通信有限公司 | A kind of image processing method and terminal device |
CN108898555B (en) * | 2018-07-27 | 2022-09-23 | 维沃移动通信有限公司 | Image processing method and terminal equipment |
CN109509240A (en) * | 2018-11-28 | 2019-03-22 | 湖南新云网科技有限公司 | A kind of smart machine display methods, readable storage medium storing program for executing and smart machine |
Also Published As
Publication number | Publication date |
---|---|
CN106780346B (en) | 2021-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7033152B2 (en) | User interface camera effect | |
US10516830B2 (en) | Guided image composition on mobile devices | |
KR102132367B1 (en) | Eyebrow shape guide device and method thereof | |
JP6612913B2 (en) | Eyeliner drawing guide apparatus and method | |
EP2759921A3 (en) | Image display apparatus, image displaying method and program | |
CN109893852B (en) | Interface information processing method and device | |
CN105812650A (en) | Image obtaining method and electronic device | |
JP2013257762A5 (en) | ||
CN106780346A (en) | A kind of picture splicing apparatus and method based on edge input | |
CN105573485B (en) | A kind of display content adjustment method and terminal | |
WO2011029067A2 (en) | Large scale multi-user, multi-touch system | |
US11496718B2 (en) | Method and device for homogenizing images of multiple projectors | |
TWI546772B (en) | Method and system for processing laminated images | |
JP2012213019A5 (en) | ||
JP2019040251A5 (en) | ||
CN104580918A (en) | Image processing method and device and electronic device | |
CN106888333A (en) | A kind of image pickup method and device | |
US20160026244A1 (en) | Gui device | |
WO2019095519A1 (en) | Virtual mouse drawing tool and drawing method | |
CN104822024B (en) | A kind of method and device for controlling camera rotation | |
CN106325745A (en) | Screen capturing method and device | |
CN106791414B (en) | A kind of take pictures synthesizer and method based on edge input | |
JP5115499B2 (en) | Presentation device | |
WO2019127158A1 (en) | Terminal device, graphical user interface thereof, and control method for graphical user interface | |
TWI585715B (en) | Method and apparatus for processing border of computer figure to be blended into background image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |